@malloy-publisher/sdk 0.17.2 → 0.18.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,15 +303,12 @@ export interface BuildInstructions {
303
303
  */
304
304
  'referenceManifest'?: Array<ManifestReference>;
305
305
  /**
306
- * 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.
306
+ * Deprecated: accepted and ignored. Every build is strict: a persist upstream that is neither built here nor present in referenceManifest (nor carried by a standalone run, which builds the upstreams a named source reads when it cannot carry them) fails the build, and a downstream is never built by recomputing its upstreams from raw.
307
+ * @deprecated
307
308
  */
308
309
  'strictUpstreams'?: boolean;
309
310
  /**
310
- * 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.
311
- */
312
- 'warehouseReach'?: string;
313
- /**
314
- * 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.
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, while one whose own shape is malformed is dropped and its source seeds (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.
315
312
  */
316
313
  'ledger'?: Array<LedgerEntry>;
317
314
  }
@@ -376,6 +373,35 @@ export interface BuildPlan {
376
373
  */
377
374
  'omittedFiles'?: Array<OmittedFile>;
378
375
  }
376
+ /**
377
+ * One upstream table a build read (`ManifestEntry.builtFrom`).
378
+ */
379
+ export interface BuiltFromTable {
380
+ /**
381
+ * The upstream\'s CONTENT address: the key of its entry in the manifest the build read.
382
+ */
383
+ 'sourceEntityId': string;
384
+ /**
385
+ * The upstream table\'s logical (unquoted) name, as its entry holds it.
386
+ */
387
+ 'physicalTableName': string;
388
+ /**
389
+ * The `storage=` destination the upstream table lives in; absent for a table in its source\'s own warehouse.
390
+ */
391
+ 'storageDestinationName'?: string;
392
+ /**
393
+ * The upstream entry\'s own `builtAt`: which build of that table was read. Absent when its entry carries none (a reference, or an entry written before 0.17.2).
394
+ */
395
+ 'builtAt'?: string;
396
+ /**
397
+ * A digest of the upstream table\'s column contract (`ManifestEntry.contract`: each column\'s name, native type and collation) as this build read it. A downstream is carried forward only while its upstream\'s current entry still has this digest, so a rebuilt or altered upstream rebuilds its readers. Absent when the upstream carried no contract.
398
+ */
399
+ 'contractDigest'?: string;
400
+ /**
401
+ * The upstream\'s incremental boundary when the build read it: its entry\'s `ledger.coveredThrough`, as canonical scalar text. Absent when the upstream is not incrementally refreshed. An incremental extension\'s range ends no later than this, so it never records coverage its parent\'s table lacks.
402
+ */
403
+ 'coveredThrough'?: string;
404
+ }
379
405
  /**
380
406
  * 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.
381
407
  */
@@ -420,6 +446,45 @@ export interface Column {
420
446
  */
421
447
  'type'?: string;
422
448
  }
449
+ /**
450
+ * What a materialized table\'s build recorded about each of its columns, so a stored read is judged against facts recorded once at build rather than probed per query. A host that stores entries keeps it as written (as text is fine) and sends it back unparsed. Readers ignore keys they do not know, at every level, so later releases may add keys. An entry with no `contract`, an empty one, or one without `v` has no contract: its table is not served from until it is rebuilt (serve verdict reason `contract_missing`). A column the contract does not list is treated as unknown: `compare` `none`, `gateExact` false.
451
+ */
452
+ export interface ColumnContract {
453
+ [key: string]: any;
454
+ /**
455
+ * The contract\'s shape version. `1`.
456
+ */
457
+ 'v'?: number;
458
+ /**
459
+ * The Publisher version whose build wrote it; diagnostic only.
460
+ */
461
+ 'producer'?: string;
462
+ /**
463
+ * The dialect of the engine holding the table: the warehouse\'s for a database table, the destination\'s (`duckdb`) for a `storage=` one.
464
+ */
465
+ 'dialect'?: string;
466
+ /**
467
+ * The holding engine\'s default collation as the build read it, normalised (`binary` for a byte-wise default). Absent when unread.
468
+ */
469
+ 'defaultCollation'?: string;
470
+ /**
471
+ * The table\'s columns, in table order.
472
+ */
473
+ 'columns'?: Array<ContractColumn>;
474
+ /**
475
+ * The key checks the table\'s build ran, each named `<level>:<subject>.<keyColumn>` (or `<level>:<keyColumn>` when it has no subject), with whether the key held one row per value and no NULL. `leaf`: a pair table\'s (an `inline=` join_many\'s) leaf key, its subject the join path (`leaf:items.options.option_id`); a view built over a pair table needs it recorded as passed. `rollup`: a rollup\'s own key, its one grain dimension, with no subject (`rollup:category`). `parent`: the primary key of a query source that reads the rollup through a join_many, and `stored`: a stored source\'s own primary key, each with the source as its subject, named by its sourceID with the file relative to the package (`parent:orders@models/orders.malloy.id`). A rollup or source check serves a join only under the key the model declares now. Readers look up the names they need and never parse one; an unknown name or level is ignored.
476
+ */
477
+ 'keys'?: {
478
+ [key: string]: ColumnContractKeysValue;
479
+ };
480
+ }
481
+ export interface ColumnContractKeysValue {
482
+ 'unique': boolean;
483
+ /**
484
+ * `leaf`, `rollup`, `parent` or `stored`, as the name\'s prefix. An open set.
485
+ */
486
+ 'level'?: string;
487
+ }
423
488
  /**
424
489
  * A compilation problem reported by the Malloy compiler
425
490
  */
@@ -616,7 +681,7 @@ export interface Connection {
616
681
  */
617
682
  'withheldFields'?: Array<string>;
618
683
  /**
619
- * Serve this DuckLake connection as a catalog of its own tables, as an orchestrator that provisions catalogs does. Two effects. Its session gets `SET search_path = \'<name>.main\'` after the attach, so a model\'s `<name>.table(\'t\')`, which compiles to the bare table name, resolves inside the catalog: DuckDB does not search an attached catalog for an unqualified name otherwise. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the catalog role and by the session\'s storage secret, which on a managed connection attached read-only is scoped to the `main` schema\'s recorded path, so a SELECT reads only that schema\'s files; another schema\'s files, and any other object in the bucket, are unsigned (403). Absent or false is the pre-existing behavior.
684
+ * Serve this DuckLake connection as a catalog of its own tables, as an orchestrator that provisions catalogs does. Two effects. Its session gets `SET search_path = \'<name>.main\'` after the attach, so a model\'s `<name>.table(\'t\')`, which compiles to the bare table name, resolves inside the catalog: DuckDB does not search an attached catalog for an unqualified name otherwise. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the catalog role and by the session\'s storage secret, which on a managed connection attached read-only is scoped to the recorded paths of the `main` schema and of the schemas `ducklakeConnection.readableSchemas` lists, so a SELECT reads only those schemas\' files; another schema\'s files, and any other object in the bucket, are unsigned (403). Absent or false is the pre-existing behavior.
620
685
  */
621
686
  'managed'?: boolean;
622
687
  /**
@@ -720,6 +785,33 @@ export declare const ConnectionStatusStatusEnum: {
720
785
  readonly Failed: "failed";
721
786
  };
722
787
  export type ConnectionStatusStatusEnum = typeof ConnectionStatusStatusEnum[keyof typeof ConnectionStatusStatusEnum];
788
+ /**
789
+ * One column of a `ColumnContract`.
790
+ */
791
+ export interface ContractColumn {
792
+ [key: string]: any;
793
+ 'name': string;
794
+ /**
795
+ * The column\'s type as the holding engine\'s catalog names it, read from the table the build wrote, by the same catalog read a bind makes.
796
+ */
797
+ 'nativeType': string;
798
+ /**
799
+ * For a string column, the stored column\'s collation identity as the holding engine\'s catalog reports it (normalised; `binary` for byte-wise). Null or absent for a non-string column.
800
+ */
801
+ 'collation'?: string | null;
802
+ /**
803
+ * What a stored read of this column may answer in place of live: `exact` (equality, grouping, filters and ordering all match live), `equality` (equality, grouping, equality filters and joins match; ordering and ranges may not), or `none` (no string comparison is known to match). Every non-string column is `exact`. An open set: read an unknown value as `none`.
804
+ */
805
+ 'compare'?: string;
806
+ /**
807
+ * Whether a row-level gate comparing this column reads the same rows from the stored table as live (a binary64 double read from a binary64 source, never a DECIMAL or float4 stored as a double, nor a 128-bit integer).
808
+ */
809
+ 'gateExact'?: boolean;
810
+ /**
811
+ * The Malloy type the build source declared for this column when the table was built. A bind whose source now declares another type finds the table incompatible (`declared_moved`): its values are of the type it was built for.
812
+ */
813
+ 'declaredType'?: string;
814
+ }
723
815
  export interface CreateConnection201Response {
724
816
  'message'?: string;
725
817
  }
@@ -1009,9 +1101,13 @@ export interface DucklakeConnection {
1009
1101
  'storage'?: DucklakeConnectionStorage;
1010
1102
  'catalog': DucklakeConnectionCatalog;
1011
1103
  /**
1012
- * Storage destinations only; ignored on a connection. The schema a destination builds its tables into and binds them from, so an orchestrator can keep the tables it owns apart from a catalog\'s `main` (where people put their own). Absent means `main`, the pre-existing layout. The schema must already exist in the catalog: a build does not create it. A `#@ persist name=` that already names a schema keeps that schema. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`). Serving reads the schema configured now, not the one a table was built into, so changing it on a destination re-points every bound table at once: rebuild or rebind as you change it.
1104
+ * Storage destinations only; ignored on a connection. The schema a destination builds its tables into and binds them from, so an orchestrator can keep the tables it owns apart from a catalog\'s `main` (a table PUT may write people\'s own tables there; a load may not, so loads go in a schema created through the admin API). Absent means `main`, the pre-existing layout. The schema must already exist in the catalog: a build does not create it. A `#@ persist name=` that already names a schema keeps that schema. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`). Serving reads the schema configured now, not the one a table was built into, so changing it on a destination re-points every bound table at once: rebuild or rebind as you change it.
1013
1105
  */
1014
1106
  'destinationSchema'?: string;
1107
+ /**
1108
+ * Additional schemas a managed read-only view may read. Only on a connection with `managed: true` and a read-only attach (never on a storage destination). `main` is always readable and may be omitted. The view\'s storage secret is scoped to the recorded path of `main` and of each schema listed here, so a SELECT reads those schemas\' files and nothing else in the bucket. Each name is a plain lowercase identifier (`[a-z_][a-z0-9_]*`); order and duplicates are ignored. A schema the catalog does not record, or whose recorded path is not under the catalog\'s data path, is left out of the scope. On a local data path the view\'s file allowlist is scoped the same way. SQL on the connection may name a listed schema\'s tables as it does `main`\'s, its schema and table listings show the listed schemas beside `main`, and every other schema stays refused. `main` is implicit, and the request is refused with a 400 when it lists `memory`, `information_schema`, `pg_catalog`, `temp`, `system` or a name starting with `__ducklake_metadata_`, or a schema that a storage destination of the same environment on the same catalog builds into (that destination\'s stored copies, gated sources\' rows among them, would be readable by name without their gate); the same pair in a configured environment fails that environment\'s load at startup. A destination that shares the catalog and builds into `main` must set `destinationSchema`. Create a schema in the catalog before listing it: a schema listed before it exists gets no file access until the connection is next edited or the server restarts. Removing a schema from the list takes effect for already-loaded packages only after they reload.
1109
+ */
1110
+ 'readableSchemas'?: Array<string>;
1015
1111
  /**
1016
1112
  * Whether the serve-path attach is read-only. Absent or true keeps the pre-existing read-only attach, which every DuckLake connection a person registers should keep. False attaches the connection read-write, and then everything that runs on it runs read-write: every query, `.sql()` source, `sql_*` expression and the connection\'s SQL endpoints can create, drop and overwrite tables, write files with the storage credential (`COPY … TO`) and change the catalog\'s settings. Set it only where something else decides who may run SQL on the connection. A storage destination\'s build sessions attach read-write regardless; this field governs only the connection.
1017
1113
  */
@@ -1343,9 +1439,10 @@ export interface JoinedTerms {
1343
1439
  'terms': Array<StrippedTerm>;
1344
1440
  }
1345
1441
  /**
1346
- * One incremental source\'s `covered_through` boundary: the table it belongs to, the boundary itself, and the source definition it was measured under. Reported on the manifest entry of every incrementally refreshed source. A caller that owns the ledger stores each one and returns it verbatim in `BuildInstructions.ledger` on the next run — only the publisher derives these values. A returned entry is validated at create time: one naming a table the run does not instruct, or whose `sourceEntityId` is no longer the source\'s, is a 400. After a publish or rollback that changes the source, delete the entry (the source seeds) or set `reseed`.
1442
+ * One incremental source\'s `covered_through` boundary: the table it belongs to, the boundary itself, and the source definition it was measured under. Reported on the manifest entry of every incrementally refreshed source. A caller that owns the ledger stores each one and returns it verbatim in `BuildInstructions.ledger` on the next run — only the publisher derives these values. OPAQUE to hosts: store each entry whole (as JSON, say) and echo it back unchanged. Do not rebuild it from the fields listed here. The publisher may add keys at any time (`additionalProperties`): it carries a key it does not know on an echoed entry onto the entry the next run reports (a release before this one dropped such keys), and a key a host drops is lost to the next run. A returned entry is validated at create time: one naming a table the run does not instruct, or whose `sourceEntityId` is no longer the source\'s, is a 400, as are duplicate entries for one table. An entry whose own shape is malformed (not an object, a required field missing, empty or not a string, an unknown `strategy`, `mergeKeys` not an array of strings, an empty `storageDestinationName`, an unusable `physicalTableName`) is not a 400: it is dropped with a logged warning before those checks, and its source seeds (rebuilds in full) under the reason `ledger_entry_malformed`, so one corrupted entry cannot wedge every build of the package. After a publish or rollback that changes the source, delete the entry (the source seeds) or set `reseed`.
1347
1443
  */
1348
1444
  export interface LedgerEntry {
1445
+ [key: string]: any;
1349
1446
  /**
1350
1447
  * The connection whose SQL computes the table\'s rows. With `physicalTableName` — and `storageDestinationName`, when the table is in a storage destination — the table the boundary belongs to.
1351
1448
  */
@@ -1382,12 +1479,42 @@ export interface LedgerEntry {
1382
1479
  * The publisher\'s CONTENT address for the source when the boundary was measured (`PersistSourcePlan.sourceEntityId`, a fingerprint of the build SQL) — NOT the caller-assigned `BuildInstruction.sourceEntityId`. The match is what guarantees a boundary is never applied to a table whose definition has moved on since it was measured.
1383
1480
  */
1384
1481
  'sourceEntityId': string;
1482
+ /**
1483
+ * The materialization run that last changed the table: a delta, or a full rebuild. A run that applied nothing (`refresh: none`) keeps the one before. Which build of the table the boundary describes, for an extension table built over it (`parent.advancedBy`). Returned verbatim; absent on an entry an older release reported.
1484
+ */
1485
+ 'advancedBy'?: string;
1486
+ 'parent'?: LedgerEntryParent;
1385
1487
  }
1386
1488
  export declare const LedgerEntryStrategyEnum: {
1387
1489
  readonly Merge: "merge";
1388
1490
  readonly RangeReplace: "range_replace";
1389
1491
  };
1390
1492
  export type LedgerEntryStrategyEnum = typeof LedgerEntryStrategyEnum[keyof typeof LedgerEntryStrategyEnum];
1493
+ /**
1494
+ * For an incremental extension table (a `#(materialize)` extension of a `#(materialize)` parent, built over the parent\'s table): which build of the parent\'s table this boundary was reached over, as `builtFrom` names it. The next refresh deltas only when the parent\'s table is still that build, or was refreshed in that run from exactly it; otherwise the extension rebuilds in full over the parent\'s table (step reason `upstream_generation_skipped`), since a delta could miss rows a parent refresh it never read restated. Returned verbatim like every other field; a caller that drops it costs each extension a full rebuild, never a wrong row. Absent for any other source.
1495
+ */
1496
+ export interface LedgerEntryParent {
1497
+ /**
1498
+ * The parent\'s content address, as its manifest entry is keyed.
1499
+ */
1500
+ 'sourceEntityId': string;
1501
+ /**
1502
+ * The parent\'s own `ledger.advancedBy` when the extension read it: the build of the parent\'s table it read, compared with the one the parent\'s next refresh starts from.
1503
+ */
1504
+ 'advancedBy'?: string;
1505
+ /**
1506
+ * The parent entry\'s `builtAt` when the extension read it.
1507
+ */
1508
+ 'builtAt'?: string;
1509
+ /**
1510
+ * The parent\'s own `ledger.coveredThrough` when the extension read it, when the parent is incremental.
1511
+ */
1512
+ 'coveredThrough'?: string;
1513
+ /**
1514
+ * The Malloy type of `coveredThrough`.
1515
+ */
1516
+ 'coveredThroughType'?: string;
1517
+ }
1391
1518
  /**
1392
1519
  * A log message from render tag validation
1393
1520
  */
@@ -1484,9 +1611,21 @@ export interface ManifestEntry {
1484
1611
  */
1485
1612
  'queryCostBytes'?: number | null;
1486
1613
  /**
1487
- * For a source that reads another persisted source, how this table\'s rows were computed from it. `reused`: every persisted upstream was read from its already-materialized table, so the rows are a function of those snapshots and consistent with them. `recomputed`: at least one persisted upstream was recomputed from its definition and inlined into this build, because its table could not be read -- on either tier, an upstream this build neither materialized nor was handed by reference; for a database build, an upstream that landed in a `storage=` destination; for a `storage=` build, a source that reaches the warehouse through a non-persisted source, or whose shape does not compile in the destination; on the database tier, an upstream whose table holds other columns than its build recorded (retyped or dropped since), could not be read, or whose build recorded no column types; and always, for a persisted view or named query, which builds from its source\'s definition. `upstreamRecomputeReason` says which. Such a table reflects the warehouse at THIS build\'s time rather than the upstream\'s snapshot, so the two can disagree when their refresh cadences differ. Not a location: it does not name the table the rows came from. Absent for a source that reads no persisted upstream, which has one way to build and no choice to report. A database rollup reports what its build actually read: `reused` only when it built from its base\'s materialized table, `recomputed` when it could not because that table holds other columns than its build recorded, could not be read, or recorded no column types, and absent when it built from the warehouse for any other reason. Before 0.15.0 every rollup over a persisted base reported `reused`. A `storage=` rollup reports `reused` only when it stacked on a stored table.
1614
+ * For a source that reads another persisted source, how this table\'s rows were computed from it. `reused`: every persisted upstream was read from its already-materialized table, so the rows are a function of those snapshots and consistent with them. Every build is strict: a downstream is built over its upstreams\' tables or not at all, and is never built by recomputing an upstream from raw. A downstream the plan cannot build over its upstreams\' tables is refused when the package is planned (`upstream_table_unusable`), and one whose upstream\'s table a run cannot read fails that build (a missing upstream, a moved table as `schema_incompatible`, a shape the destination cannot carry); neither reports `upstreamReuse`. `recomputed`: retained, and no longer planned. No build is planned to read a persisted upstream\'s definition rather than its table: a persisted view, named query or rollup that cannot be built over its upstream\'s table is refused at plan. The value stays for the run\'s own check, which labels a build whose SQL inlined an upstream it should have read (with `upstreamRecomputeReason` naming it); a strict build refuses such a build before writing it, so an entry is not expected to carry it. Not a location: it does not name the table the rows came from (`builtFrom` does). Absent for a source that reads no persisted upstream, which has one way to build and no choice to report. A rollup reports `reused` when it built from its base\'s table, and nothing otherwise.
1488
1615
  */
1489
1616
  'upstreamReuse'?: ManifestEntryUpstreamReuseEnum;
1617
+ /**
1618
+ * When the run that produced this entry built its table: the instant its build finished. Not a freshness anchor (that is `dataAsOf`). A host that stores entries keeps it as written, so a downstream\'s `builtFrom` can name the build of each table it read. Absent on an entry written before 0.17.2, and on a reference.
1619
+ */
1620
+ 'builtAt'?: string;
1621
+ /**
1622
+ * The stored tables of other persisted sources this table\'s build read in place of their definitions, each named as the run\'s manifest held it, with that table\'s `builtAt`. Recorded for every build that read an upstream\'s table: a database or `storage=` build whose warehouse SQL read it (a chained `#@ persist` source, a persisted view or named query, or a rollup built over its base\'s table), and a `storage=` build that read its upstreams\' tables in its destination (a chained source, an extension, or a rollup that grouped its base\'s stored table). Provenance, not a location the entry is served from: the entry\'s own table is `physicalTableName`. Absent, or empty (read the same), when the build read no upstream\'s table.
1623
+ */
1624
+ 'builtFrom'?: Array<BuiltFromTable>;
1625
+ /**
1626
+ * The table\'s column contract, written by the build that produced it on both tiers: each column\'s native type, collation, how a stored read of it compares with live, and whether a gate over it is exact. A host that stores entries keeps it as written, as text if it likes, and returns it unparsed. A table whose entry has no contract (built before this field existed, or whose capture failed) is never served from: it answers live, with serve verdict reason `contract_missing`, and the next build rebuilds it in full.
1627
+ */
1628
+ 'contract'?: ColumnContract;
1490
1629
  /**
1491
1630
  * Why a persisted upstream was not read from its table, present only when `upstreamReuse` is `recomputed`: which upstream, and the compiler\'s or engine\'s own words for what could not be expressed over it, redacted against the connections involved.
1492
1631
  */
@@ -1580,6 +1719,26 @@ export interface ManifestReference {
1580
1719
  * For a database upstream (no `storageDestinationName`): the `nativeSchema` the upstream\'s build reported on its manifest entry, sent back as it came. Before a build reads the referenced table in place of its source, it reads the table\'s columns from the warehouse and compares each with this type (case and spacing aside). If a column was retyped or dropped since, or cannot be read, a strict build is refused and any other build recomputes the upstream from its definition. Without it nothing can be checked: a strict build reads the table unchecked, with a warning and a count (`publisher_materialization_upstream_recompute_total`, `reason=\"reference_types_unrecorded\"`), and any other build recomputes the upstream. Ignored for a `storage=` upstream: omit it there. Optional and additive.
1581
1720
  */
1582
1721
  'nativeSchema'?: Array<Column>;
1722
+ /**
1723
+ * For a `storage=` upstream: the `schema` its build reported on its manifest entry, sent back as it came. A `storage=` build stacked on the referenced table declares exactly these columns, so without it (and without this worker\'s own record of the table) that build is refused rather than recomputing the upstream. Optional and additive.
1724
+ */
1725
+ 'schema'?: Array<Column>;
1726
+ /**
1727
+ * The upstream entry\'s `dataAsOf`, sent back as it came: how fresh the referenced table is. A downstream with a freshness window reads a referenced table only when it is fresh enough by this instant; without it the table is of unknown age, and such a downstream is refused rather than built from raw. Optional and additive.
1728
+ */
1729
+ 'dataAsOf'?: string;
1730
+ /**
1731
+ * The upstream entry\'s `builtAt`, sent back as it came, so a downstream\'s `builtFrom` names which build of the table it read. Optional and additive.
1732
+ */
1733
+ 'builtAt'?: string;
1734
+ /**
1735
+ * The upstream entry\'s `contract`, sent back unparsed. A downstream built over the referenced table reads it to know how the table\'s strings compare with live, and, for a pair table, whether its leaf key check passed; without it those columns are unknown, and a downstream that needs them is refused. Optional and additive.
1736
+ */
1737
+ 'contract'?: ColumnContract;
1738
+ /**
1739
+ * The referenced upstream\'s ledger entry (`ManifestEntry.ledger`), exactly as the publisher reported it, sent back whole: opaque, like an entry in `BuildInstructions.ledger`. Absent means unknown. An incremental `#(materialize)` extension built in this run over a referenced incremental parent reads the parent\'s history from it (`seededBy`, `advances`, `advancedBy`) to prove it may refresh by delta. Without it, on a worker whose bound manifest and own store do not name the parent\'s current build, the extension rebuilds in full (`upstream_generation_skipped`). It is preferred over both. It must name the reference\'s table and source (the same `connectionName`, `physicalTableName`, `storageDestinationName` and `sourceEntityId`). One that does not, or whose own shape is malformed (see `LedgerEntry`), is dropped with a logged warning and the request proceeds as if it were absent, never a 400: the extensions fall back to the bound manifest\'s entry, then the worker\'s own, and rebuild in full only when neither proves which build of the parent they read. Keys this release does not know are kept. Unlike `BuildInstructions.ledger`, it names a table this run does not build, and is never written to. Optional and additive.
1740
+ */
1741
+ 'ledger'?: LedgerEntry;
1583
1742
  }
1584
1743
  /**
1585
1744
  * A record of one materialization run for a package.
@@ -1740,7 +1899,7 @@ export interface ModelError {
1740
1899
  */
1741
1900
  'refusalReason'?: string;
1742
1901
  /**
1743
- * Machine-readable discriminator, for callers that must branch on which error they got rather than on prose. Absent unless a caller is expected to act on it, so treat absence as \"no special handling\". TABLE_NOT_FOUND distinguishes a table that is not in the database from the other conditions that also answer 404 on these routes -- an environment or connection this server does not host. The former says nothing about whether the caller reached the right server; the latter is a routing problem worth retrying elsewhere. CONNECTION_FAILED, on a 502, means the database could not be reached (the connection was refused, reset or timed out, or the server closed it), so the query never ran. The query and the model are fine; retrying elsewhere will not help, and neither will rewriting the query. RESULT_TRUNCATED, on a 502, means the database returned fewer rows than it reported and no row limit cut them: a BigQuery answer larger than one results page (about 10 MB) whose later pages were not read. The query is refused rather than answered short. Retrying returns the same page; select fewer columns, aggregate, or return fewer rows. RESULT_SHAPE_MISMATCH, on a 502, means the database answered but a row does not fit the schema Malloy declared for the result (a value of another type than its column\'s), so the result could not be built. The query is not the caller\'s to fix; the server logs the cause. CONNECTION_AUTH_FAILED, on a 424, means the database rejected the connection\'s credentials (a wrong password, an invalid key, an expired token), so the query never ran. Whoever configures the connection has to fix it; retrying fails the same way. CONNECTION_NOT_FOUND, on a 424, means the model names a connection the environment does not have, usually one deleted after the package was loaded. STORAGE_ACCESS_DENIED, on a 403, means an object store refused the database\'s read under a data path the environment configures (a DuckLake catalog\'s, a storage destination\'s): the query and the model are fine, and whoever configures the database\'s storage credentials has to fix it. PATH_ACCESS_DENIED, on a 403, means the object store at a path the query or the model reads itself (a file or table URL) refused access: change the path, or get the caller a grant to it. Retrying either fails the same way. The body names the source or connection the caller read and no storage path. ACCESS_DENIED, on a 403, means a gate (`#(authorize)` or `#(access_filter)`) refused the caller. Every gate 403 carries it, including a gate that could not be decided, which fails closed and answers the same: only the server\'s metrics and log tell those apart. A 403 with any other reason is not a gate\'s. MATERIALIZATION_REFUSED means a valid materialization declaration this server will not build, and the body\'s `refusalReason` is the refusal\'s `RefusedSource.reason`. Reserved: no route answers with it today. The eligibility gate runs inside a materialization run, after `POST …/materializations` has answered 201, so a refusal is recorded on the run instead: as a `SourceFailure` with `refused` and `refusalReason` on a run with `buildInstructions`, otherwise in the run\'s `metadata.refusedSources`, or its `error` when nothing else was left to build. TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400, mean a build was refused before it wrote because its `name=` is held by a table this package does not own, or because who holds it could not be read. On a 409 from dropping a materialized table (`drop-materialized-table`), they mean the drop was refused for the same reasons: the table is another\'s, or nothing proves it is this package\'s. TABLE_IN_USE, on a 409 from dropping a materialized table, means the table may still be read: a committed run of the package, of any version, names a table with that name (other than the run the caller named, unless that run is the one a version or the package serves); a loaded copy of any package in the environment, or any loaded version of one, is bound to a table with that name; or the warehouse refused the drop because other objects depend on the table. Delete or replace that run, rebind that copy, or drop those objects first. BUILD_INSTRUCTIONS_INVALID, on a 400 from creating a materialization, means its body or build instructions are not a run this package can take (a field of the wrong shape, an unknown source, a table named twice, a ledger entry that does not fit); the message names which. Retrying unchanged fails the same way. MATERIALIZATION_CONFLICT, on a 409, means a materialization run conflicts with another run or with the package\'s binding. Two of its cases clear on their own, so retry later: a run already active for the package, and a table another run is writing. Two do not clear until something changes, so a retry fails the same way: an auto-run of a package or version a host manifest serves (pass `buildInstructions`, or clear the binding), and a run of a version that is not latest touching the tables a `scope: package` package\'s versions share (name tables of its own in `buildInstructions`). The message says which. Deliberately an open string rather than an enum. Generators render an enum closed, so adding a second value here would break every client generated before it -- on the one field whose purpose is to grow. Callers must treat an unrecognized value as absent. The package-version values let a caller tell \"forgot to bump the version\" from \"the model is broken\", which share a status code: * MANIFEST_VERSION_MISSING (400): with package versioning on, a publish whose publisher.json has no `version`. * MANIFEST_VERSION_INVALID (400): such a publish whose `version` is not a semantic version. * VERSION_CONFLICT (409): that version is already published with different content. * PACKAGE_IS_VERSIONED (409): the package has published versions, so it cannot be changed in place (a write, or a publish with package versioning off). * PACKAGE_INSTALLED_FROM_LOCATION (409): the package is fetched again from a `location` on reload, which would discard a report write or a package update\'s change to its settings. * FILE_EXISTS (409): a report write with no `expectedHash` (a create) found a file already at the path; another path may be free. A stale `expectedHash` answers 409 with no `reason`. * VERSION_IS_LATEST (409): the package\'s `latest` version cannot be archived, or deleted while other versions remain. * VERSION_IS_LAST_ACTIVE (409): the package\'s last version in service cannot be archived, or deleted while archived versions remain. * VERSION_BUILDING (409): a materialization of the version is running, so it cannot be archived or deleted yet. * VERSION_ID_INVALID (400): a requested `versionId` is not a semantic version. * VERSION_NOT_LATEST (400): an auto-run of a version other than `latest`, in a package whose versions share their tables. A package with no `latest` yet refuses none. * VERSION_NOT_FOUND (404): the package has no such version. * VERSION_ARCHIVED (410): the version is archived. Known values: TABLE_NOT_FOUND, CONNECTION_FAILED, CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND, RESULT_TRUNCATED, RESULT_SHAPE_MISMATCH, STORAGE_ACCESS_DENIED, PATH_ACCESS_DENIED, ACCESS_DENIED, MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE, TABLE_OWNERSHIP_UNVERIFIED, TABLE_IN_USE, BUILD_INSTRUCTIONS_INVALID, MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID, VERSION_CONFLICT, PACKAGE_IS_VERSIONED, PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST, VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID, VERSION_NOT_LATEST, VERSION_NOT_FOUND, VERSION_ARCHIVED.
1902
+ * Machine-readable discriminator, for callers that must branch on which error they got rather than on prose. Absent unless a caller is expected to act on it, so treat absence as \"no special handling\". TABLE_NOT_FOUND distinguishes a table that is not in the database from the other conditions that also answer 404 on these routes -- an environment or connection this server does not host. The former says nothing about whether the caller reached the right server; the latter is a routing problem worth retrying elsewhere. CONNECTION_FAILED, on a 502, means the database could not be reached (the connection was refused, reset or timed out, or the server closed it), so the query never ran. The query and the model are fine; retrying elsewhere will not help, and neither will rewriting the query. RESULT_TRUNCATED, on a 502, means the database returned fewer rows than it reported and no row limit cut them: a BigQuery answer larger than one results page (about 10 MB) whose later pages were not read. The query is refused rather than answered short. Retrying returns the same page; select fewer columns, aggregate, or return fewer rows. RESULT_SHAPE_MISMATCH, on a 502, means the database answered but a row does not fit the schema Malloy declared for the result (a value of another type than its column\'s), so the result could not be built. The query is not the caller\'s to fix; the server logs the cause. CONNECTION_AUTH_FAILED, on a 424, means the database rejected the connection\'s credentials (a wrong password, an invalid key, an expired token), so the query never ran. Whoever configures the connection has to fix it; retrying fails the same way. CONNECTION_NOT_FOUND, on a 424, means the model names a connection the environment does not have, usually one deleted after the package was loaded. STORAGE_ACCESS_DENIED, on a 403, means an object store refused the database\'s read under a data path the environment configures (a DuckLake catalog\'s, a storage destination\'s): the query and the model are fine, and whoever configures the database\'s storage credentials has to fix it. PATH_ACCESS_DENIED, on a 403, means the object store at a path the query or the model reads itself (a file or table URL) refused access: change the path, or get the caller a grant to it. Retrying either fails the same way. The body names the source or connection the caller read and no storage path. ACCESS_DENIED, on a 403, means a gate (`#(authorize)` or `#(access_filter)`) refused the caller. Every gate 403 carries it, including a gate that could not be decided, which fails closed and answers the same: only the server\'s metrics and log tell those apart. A 403 with any other reason is not a gate\'s. MATERIALIZATION_REFUSED means a valid materialization declaration this server will not build, and the body\'s `refusalReason` is the refusal\'s `RefusedSource.reason`. Reserved: no route answers with it today. The eligibility gate runs inside a materialization run, after `POST …/materializations` has answered 201, so a refusal is recorded on the run instead: as a `SourceFailure` with `refused` and `refusalReason` on a run with `buildInstructions`, otherwise in the run\'s `metadata.refusedSources`, or its `error` when nothing else was left to build. `failures` holds one outcome per address, so on a run with `buildInstructions` a refused source whose address holds another outcome (a table an eligible source built, another source\'s build failure, or another source\'s refusal) is in `metadata.refusedSources` instead, with its own reason, on a FAILED run too. TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400, mean a build was refused before it wrote because its `name=` is held by a table this package does not own, or because who holds it could not be read. On a 409 from dropping a materialized table (`drop-materialized-table`), they mean the drop was refused for the same reasons: the table is another\'s, or nothing proves it is this package\'s. TABLE_IN_USE, on a 409 from dropping a materialized table, means the table may still be read: a committed run of the package, of any version, names a table with that name (other than the run the caller named, unless that run is the one a version or the package serves); a loaded copy of any package in the environment, or any loaded version of one, is bound to a table with that name; or the warehouse refused the drop because other objects depend on the table. Delete or replace that run, rebind that copy, or drop those objects first. BUILD_INSTRUCTIONS_INVALID, on a 400 from creating a materialization, means its body or build instructions are not a run this package can take (a field of the wrong shape, an unknown source, a table named twice, a ledger entry that does not fit); the message names which. Retrying unchanged fails the same way. MATERIALIZATION_CONFLICT, on a 409, means a materialization run conflicts with another run or with the package\'s binding. Two of its cases clear on their own, so retry later: a run already active for the package, and a table another run is writing. Two do not clear until something changes, so a retry fails the same way: an auto-run of a package or version a host manifest serves (pass `buildInstructions`, or clear the binding), and a run of a version that is not latest touching the tables a `scope: package` package\'s versions share (name tables of its own in `buildInstructions`). The message says which. MANIFEST_BIND_FAILED, on a 500 from `set-package-version-manifest` or the deprecated `update-package` PATCH that names a `manifestLocation` (on a versioned or an unversioned package), means the manifest could not be fetched or bound, so nothing of it was applied: the `manifestLocation` stays what it was (an unversioned package\'s whole PATCH is undone, publisher.json included), and the package or version serves what it served before. The message carries the cause. Deliberately an open string rather than an enum. Generators render an enum closed, so adding a second value here would break every client generated before it -- on the one field whose purpose is to grow. Callers must treat an unrecognized value as absent. The package-version values let a caller tell \"forgot to bump the version\" from \"the model is broken\", which share a status code: * MANIFEST_VERSION_MISSING (400): with package versioning on, a publish whose publisher.json has no `version`. * MANIFEST_VERSION_INVALID (400): such a publish whose `version` is not a semantic version. * VERSION_CONFLICT (409): that version is already published with different content. * PACKAGE_IS_VERSIONED (409): the package has published versions, so it cannot be changed in place (a write, or a publish with package versioning off). * PACKAGE_INSTALLED_FROM_LOCATION (409): the package is fetched again from a `location` on reload, which would discard a report write or a package update\'s change to its settings. * FILE_EXISTS (409): a report write with no `expectedHash` (a create) found a file already at the path; another path may be free. A stale `expectedHash` answers 409 with no `reason`. * VERSION_IS_LATEST (409): the package\'s `latest` version cannot be archived, or deleted while other versions remain. * VERSION_IS_LAST_ACTIVE (409): the package\'s last version in service cannot be archived, or deleted while archived versions remain. * VERSION_BUILDING (409): a materialization of the version is running, so it cannot be archived or deleted yet. * VERSION_ID_INVALID (400): a requested `versionId` is not a semantic version. * VERSION_NOT_LATEST (400): an auto-run of a version other than `latest`, in a package whose versions share their tables. A package with no `latest` yet refuses none. * VERSION_NOT_FOUND (404): the package has no such version. * VERSION_ARCHIVED (410): the version is archived. Known values: TABLE_NOT_FOUND, CONNECTION_FAILED, CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND, RESULT_TRUNCATED, RESULT_SHAPE_MISMATCH, STORAGE_ACCESS_DENIED, PATH_ACCESS_DENIED, ACCESS_DENIED, MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE, TABLE_OWNERSHIP_UNVERIFIED, TABLE_IN_USE, BUILD_INSTRUCTIONS_INVALID, MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID, VERSION_CONFLICT, PACKAGE_IS_VERSIONED, PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST, VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID, VERSION_NOT_LATEST, VERSION_NOT_FOUND, VERSION_ARCHIVED.
1744
1903
  */
1745
1904
  'reason'?: string;
1746
1905
  /**
@@ -2624,13 +2783,21 @@ export interface PackageWarningsInner {
2624
2783
  */
2625
2784
  'message'?: string;
2626
2785
  /**
2627
- * 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). `malloynb-cell-refused`: a `.malloynb` code cell whose `run:` statement the query route refuses for every reader in the Console, which sends no privilege and no `filterParams`, so the cell never runs there. One per cell, up to the bound below, `model` naming the notebook, severity `warn`. The message names the cell by its 1-based position among the notebook\'s cells, markdown cells included, and the fix. `reason` names the rule: `off_surface` is the 404 for a source the package surface does not publish, which a source the notebook declares never is on a package with a curated surface, an `index.malloy` or the deprecated `explores`; a caller with `includeHiddenFilesAndSources` still runs such a cell. `caller_annotation` is the 400 for text carrying an annotation only the model author may write, such as `#(authorize)`, comments included. `required_filter` is the 400 for a source with a required `#(filter)`. `restricted_mode` is the 400 for a `sql_*` call or a direct table read. `compile_error` is the 400 for any other failure of the statement to compile on its own. A cell that only a reader\'s givens refuse, by `#(authorize)` or a row-level gate, is not reported. Markdown cells are not read, as the Console does not run them. A notebook lists at most 10 refused cells one by one, and the package at most 50. The rest of a notebook that lists some are named by number and reason in one `malloynb-cells-unlisted` warning (`model` the notebook; `warn`). The notebooks after the package limit share one `malloynb-cells-unlisted` warning with no `model`, which counts their cells by reason and names the first 10 of them. The report lint metric still counts each refused cell under `malloynb-cell-refused`. `malloynb-cell-check-failed`: a notebook whose cell check could not run, so a refused cell of it may have no warning; the cause is in the server log (one per notebook, `warn`). `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` or the deprecated alias `#(preaggregate)`, whose v2 spelling is `#(rollup)`; the message names the spelling it found (one per measure, `model` its file, `subject` the source and the message the measure; `warn`; only while `PUBLISHER_MATERIALIZE` is on). `deprecated-rollup-namespace`: a rollup line placed with `namespace=`, the deprecated spelling of its `name=` container; still read, in that container under the readable name (one per measure and container, `subject` `<base>.<measure>`; `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). Materialization codes follow one rule: the suffix tells the outcome. An INVALID annotation (or invalid code it covers) fails the publish and the load, on every path, so its code appears only in the load failure\'s message (the publish 4xx and `loadErrors`), never as a warning here: `persist-invalid`, `materialize-invalid`, `rollup-invalid`, `persist-view-invalid` and `persist-query-invalid` (a bad value or contradictory combination: a `storage=` that names nothing, an `@env.` reference, an unusable, unsafe, unquoted or reserved `name=`, an `inline=` that names no join, an incremental key or `refresh=\"incremental\"` on a view or query); `persist-unknown-key`, `materialize-unknown-key` and `rollup-unknown-key` (every route\'s key set is closed, a `freshness.` group\'s included); `persist-retired-key` and `materialize-retired-key` (`sharing=`, `schedule=`, `partition=`, and on `#@ persist` `realization=`); `persist-unparseable`, `materialize-unparseable`, `rollup-unparseable`, `persist-view-unparseable` and `persist-query-unparseable`; `persist-not-materializable` (a `#@ persist` on a shape Malloy does not plan); `rollup-not-a-measure`, `rollup-unknown-grain` and `rollup-not-mergeable` (a rollup line on a field that is not a measure, a grain naming no dimension, a measure no rollup can merge); `materialization-table-collision` (two sources whose `name=` puts them on one table; under `PERSIST_COLLISION_ENFORCE=false` a refusal instead); and `materialization-near-miss` (a misspelled materialization route or directive, such as `#(materialise)` or `#@ persits`). `preaggregate-malformed` is retained and no longer produced: it is `rollup-invalid` or `rollup-unparseable` now. Retained, no longer produced: `preaggregate-invalid`, `preaggregate-unknown-key`, `preaggregate-unparseable`, `preaggregate-not-a-measure`, `preaggregate-unknown-grain` and `preaggregate-not-mergeable`, now `rollup-invalid`, `rollup-unknown-key`, `rollup-unparseable`, `rollup-not-a-measure`, `rollup-unknown-grain` and `rollup-not-mergeable`. A measure or source that carries both `#(rollup)` and `#(preaggregate)` is `rollup-invalid`. A VALID annotation Publisher cannot build here is refused alone, answered live, while the package loads, and is severity `warn`, never `error`. Every one is a `BuildPlan.refusedSources` entry with a bounded `reason`, and its warning\'s code names the mechanism: `persist-not-built` (a `#@ persist` source; `subject` the source), `materialize-not-built` (a `#(materialize)` source; `subject` the source), `persist-view-not-built` and `persist-query-not-built` (a persisted view or named query; `subject` the view or query), and `rollup-not-built` (a `#(rollup)` or `#@ preaggregate` rollup; `subject` the base, or `<base>.<measure>` for one measure). The message says why, and `reason` is the refusal record\'s bounded reason. `preaggregate-not-built` is `rollup-not-built`\'s former name, retained, no longer produced: 0.15.0 and 0.16 repeated each `rollup-not-built` warning under it. `persist-source-refused`, the former name of `persist-not-built` repeated beside it in 0.14.0, is no longer produced. Retained, no longer produced: the rollup sub-family `preaggregate-hidden-field`, `-access-filter`, `-time-zone`, `-current-time`, `-reads-given`, `-unreadable-measure`, `-join-level` and `-name-clash`, now each `rollup-not-built` with the reasons `hidden_field`, `access_filter` (or `authorize`), `time_zone`, `current_time`, `reads_given`, `inherited_where_with_given` or `given_where_over_unstored_field`, `unreadable_measure`, `join_not_in_grain` and `partial_name_collision`. `materialization-storage-mode`: a `storage=` source the deployment\'s `PERSIST_STORAGE_MODE` (`off` or `write-only`) does not serve from storage (`subject` the source, or a rollup\'s base; `reason` `storage_mode`; `warn`). `materialization-unreachable`, `materialization-destination-missing` and `materialization-connection-cannot-hold-table`: a source whose serve verdict is `live` for the reason each names (no published source reaches it; its `storage=` destination is not configured; its connection creates no tables), with the verdict\'s `message` and `fixes` (`subject` the source; `reason` the verdict\'s; `warn`). `materialize-pair-full-refresh`: a `#(materialize)` pair table (an inlined `join_many`) whose `refresh=\"incremental\"` is not honoured: it is rebuilt in full on every refresh, and served (`subject` the source; `warn`). `rollup-join-one-key-repeated`: a rollup\'s last build found a `join_one` key repeated in the data, so queries that read that join beside other aggregates are answered live (`subject` the rollup\'s base; `warn`). Its former name, `preaggregate-join-one-key-repeated`, is retained, no longer produced. `served-copy-not-served`: the served copy (the author\'s own files, each stored source re-rooted on its table) leaves a source as written, so it answers live, or serves it with a join read as written or left out; `reason` names why (`compile_failed`, `cross_connection_unbuilt`, `column_types`, `no_declaration`, `definition_not_parsed`, `pair_join_not_found`, `pair_not_compiled`, `fields_not_carried`, `read_terms_not_kept`, `cross_connection_join`, `inline_join_kept`, `reroot_not_compiled`, `classification_not_kept`; an open set) (`subject` the source; `warn`). `row-level-gate-unexpressible`: a row-level gate an entry point inherits, whose field it no longer carries, so that entry point denies every request; `row-level-gate-reads-no-given`: a source-line gate that reads no given, a fixed predicate rather than an access rule keyed on the caller; `row-level-gate-negated-membership`: a source-line gate that negates a membership test, which an empty given turns into match-all, or that is too deep to check for one (its message then says it is too deep to check, not that it negates one) (`model` the entry point\'s file, `subject` the entry point; `warn`; the model still loads). `annotation-near-miss` and `annotation-malformed-route`: an annotation whose route or directive looks like a misspelled one Publisher reads (`warn`); `annotation-gate-near-miss`: a misspelled gate annotation (`#(authorise)`), which `compile_model` refuses. `persist-incremental-no-merge-key`: an incremental source with no `merge_key=`, so each refresh replaces its watermark range (`subject` the source; `warn`). `persist-reads-current-time`: a `#@ persist` source, persisted view or persisted named query whose stored relation reads the current time (`now`, or a relative time filter string such as `f\'last 7 days\'`), so its answers are as of its last build and it is rebuilt on every run; the message names where it reads the clock and how to answer as of each query instead (one per table, `subject` the source, the view as `<source> -> <view>`, or the query; `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`). `persist-incremental-late-rows`: an incremental source whose bound table a delta\'s late-row check found missing rows stamped just below where a delta started reading, which no later delta reads (its manifest entry\'s `lateRows`); it is carried until the source is rebuilt in full (one per source; `warn`). `rollup-join-one-key-repeated`: a bound rollup whose last build found the key of a `join_one` it reads repeated, so a query reading that join beside other aggregates is answered live; it clears once a build finds the key unique (one per rollup; `warn`). `preaggregate-join-one-key-repeated` is retained, no longer produced: it is `rollup-join-one-key-repeated` now. `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 of any kind (`#@ persist`, `#(materialize)`, a rollup, a persisted view or query) stores a column as a type other than the one its build declares. It is read through a cast to the declared type where that is faithful, and otherwise answered live, never read as its stored type (one per source and column, `model` the model declaring it, `subject` the source, a rollup\'s base, or a view\'s or query\'s build source, the message naming the column, both types and which applies; `warn`; see docs/materialization.md). `database-column-type-mismatch`: a bound table in a source\'s own database whose column was altered, or dropped, outside a build, so it no longer stores the declared type; it is read through a cast where that is faithful, and otherwise answered live, until the table is rebuilt (one per source and column, `subject` the source; `warn`). `table-kept`: a table an auto-run replaced when its source\'s table was renamed or moved, which Publisher keeps rather than drops: one at an author\'s exact `name=` (never dropped), one in a storage destination that is no longer configured (which, when the destination was renamed rather than removed, may be the table served under the new name), or one a `storage=` or tier move left under the name the source is served under now (which may be the very table served, so it is never dropped). Listed on the newest run\'s `metadata.keptTables` until no committed run names it in its place (its runs deleted; a delete is record-only), a run finds it dropped by hand (never on Snowflake or MySQL, whose catalogs hide tables), or its name is used again in its own place (one per table, `model` the model declaring the source, `subject` the source or a rollup\'s base, the message naming the table and where it is, `reason` the kept table\'s `author_name`, `destination_missing` or `may_be_served`; `warn`; see docs/materialization.md). `database-table-unread`: a bound table in a source\'s own database whose columns could not be read when it was bound (missing, unreadable, slower than the read\'s bound, or named in more than one schema), so its queries are answered live until a read succeeds; the message names the table or rollup, one fixed reason (its connection could not be opened, the catalog read timed out, the catalog query failed, not found, a name matching more than one table, a name the catalog cannot read; never the driver\'s text) and whether a retry is pending, and the warning clears once the table is read (only for a table a source of the package reads; one per table, `model` the model declaring its source, `subject` the source, or a rollup\'s base, when the plan knows the table; `reason` one of `connection_failed`, `timed_out`, `catalog_query_failed`, `not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`; see docs/materialization.md). `database-native-type-missing`: a database table is bound with no captured warehouse type (its manifest entry\'s `nativeSchema`) for a column whose field Malloy types as a big integer. On BigQuery the column is read as `INT64`, its only integer type, and still serves; on any other dialect it is left out, so a query that reads it is answered live. The next full rebuild captures the types (one per source, `model` the first model binding it, `subject` the source, the message naming the columns and which applies; `warn`; see docs/materialization.md). Its former name, `stored-native-schema-missing`, is retained, no longer produced. `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.
2786
+ * 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). `malloynb-cell-refused`: a `.malloynb` code cell whose `run:` statement the query route refuses for every reader in the Console, which sends no privilege and no `filterParams`, so the cell never runs there. One per cell, up to the bound below, `model` naming the notebook, severity `warn`. The message names the cell by its 1-based position among the notebook\'s cells, markdown cells included, and the fix. `reason` names the rule: `off_surface` is the 404 for a source the package surface does not publish, which a source the notebook declares never is on a package with a curated surface, an `index.malloy` or the deprecated `explores`; a caller with `includeHiddenFilesAndSources` still runs such a cell. `caller_annotation` is the 400 for text carrying an annotation only the model author may write, such as `#(authorize)`, comments included. `required_filter` is the 400 for a source with a required `#(filter)`. `restricted_mode` is the 400 for a `sql_*` call or a direct table read. `compile_error` is the 400 for any other failure of the statement to compile on its own. A cell that only a reader\'s givens refuse, by `#(authorize)` or a row-level gate, is not reported. Markdown cells are not read, as the Console does not run them. A notebook lists at most 10 refused cells one by one, and the package at most 50. The rest of a notebook that lists some are named by number and reason in one `malloynb-cells-unlisted` warning (`model` the notebook; `warn`). The notebooks after the package limit share one `malloynb-cells-unlisted` warning with no `model`, which counts their cells by reason and names the first 10 of them. The report lint metric still counts each refused cell under `malloynb-cell-refused`. `malloynb-cell-check-failed`: a notebook whose cell check could not run, so a refused cell of it may have no warning; the cause is in the server log (one per notebook, `warn`). `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` or the deprecated alias `#(preaggregate)`, whose v2 spelling is `#(rollup)`; the message names the spelling it found (one per measure, `model` its file, `subject` the source and the message the measure; `warn`; only while `PUBLISHER_MATERIALIZE` is on). `deprecated-rollup-namespace`: a rollup line placed with `namespace=`, the deprecated spelling of its `name=` container; still read, in that container under the readable name (one per measure and container, `subject` `<base>.<measure>`; `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). Materialization codes follow one rule: the suffix tells the outcome. An INVALID annotation (or invalid code it covers) fails the publish and the load, on every path, so its code appears only in the load failure\'s message (the publish 4xx and `loadErrors`), never as a warning here: `persist-invalid`, `materialize-invalid`, `rollup-invalid`, `persist-view-invalid` and `persist-query-invalid` (a bad value or contradictory combination: a `storage=` that names nothing, an `@env.` reference, an unusable, unsafe, unquoted or reserved `name=`, an `inline=` that names no join, an incremental key or `refresh=\"incremental\"` on a view or query); `persist-unknown-key`, `materialize-unknown-key` and `rollup-unknown-key` (every route\'s key set is closed, a `freshness.` group\'s included); `persist-retired-key` and `materialize-retired-key` (`sharing=`, `schedule=`, `partition=`, and on `#@ persist` `realization=`); `persist-unparseable`, `materialize-unparseable`, `rollup-unparseable`, `persist-view-unparseable` and `persist-query-unparseable`; `persist-not-materializable` (a `#@ persist` on a shape Malloy does not plan); `rollup-not-a-measure`, `rollup-unknown-grain` and `rollup-not-mergeable` (a rollup line on a field that is not a measure, a grain naming no dimension, a measure no rollup can merge); `materialization-table-collision` (two sources whose `name=` puts them on one table; under `PERSIST_COLLISION_ENFORCE=false` a refusal instead); and `materialization-near-miss` (a misspelled materialization route or directive, such as `#(materialise)` or `#@ persits`). `preaggregate-malformed` is retained and no longer produced: it is `rollup-invalid` or `rollup-unparseable` now. Retained, no longer produced: `preaggregate-invalid`, `preaggregate-unknown-key`, `preaggregate-unparseable`, `preaggregate-not-a-measure`, `preaggregate-unknown-grain` and `preaggregate-not-mergeable`, now `rollup-invalid`, `rollup-unknown-key`, `rollup-unparseable`, `rollup-not-a-measure`, `rollup-unknown-grain` and `rollup-not-mergeable`. A measure or source that carries both `#(rollup)` and `#(preaggregate)` is `rollup-invalid`. A VALID annotation Publisher cannot build here is refused alone, answered live, while the package loads, and is severity `warn`, never `error`. Every one is a `BuildPlan.refusedSources` entry with a bounded `reason`, and its warning\'s code names the mechanism: `persist-not-built` (a `#@ persist` source; `subject` the source), `materialize-not-built` (a `#(materialize)` source; `subject` the source), `persist-view-not-built` and `persist-query-not-built` (a persisted view or named query; `subject` the view or query), and `rollup-not-built` (a `#(rollup)` or `#@ preaggregate` rollup; `subject` the base, or `<base>.<measure>` for one measure). The message says why, and `reason` is the refusal record\'s bounded reason. `preaggregate-not-built` is `rollup-not-built`\'s former name, retained, no longer produced: 0.15.0 and 0.16 repeated each `rollup-not-built` warning under it. `persist-source-refused`, the former name of `persist-not-built` repeated beside it in 0.14.0, is no longer produced. Retained, no longer produced: the rollup sub-family `preaggregate-hidden-field`, `-access-filter`, `-time-zone`, `-current-time`, `-reads-given`, `-unreadable-measure`, `-join-level` and `-name-clash`, now each `rollup-not-built` with the reasons `hidden_field`, `access_filter` (or `authorize`), `time_zone`, `current_time`, `reads_given`, `inherited_where_with_given` or `given_where_over_unstored_field`, `unreadable_measure`, `join_not_in_grain` and `partial_name_collision`. `materialization-storage-mode`: a `storage=` source the deployment\'s `PERSIST_STORAGE_MODE` (`off` or `write-only`) does not serve from storage (`subject` the source, or a rollup\'s base; `reason` `storage_mode`; `warn`). `materialization-unreachable`, `materialization-destination-missing` and `materialization-connection-cannot-hold-table`: a source whose serve verdict is `live` for the reason each names (no published source reaches it; its `storage=` destination is not configured; its connection creates no tables), with the verdict\'s `message` and `fixes` (`subject` the source; `reason` the verdict\'s; `warn`). `materialize-pair-full-refresh`: a `#(materialize)` pair table (an inlined `join_many`) whose `refresh=\"incremental\"` is not honoured: it is rebuilt in full on every refresh, and served (`subject` the source; `warn`). `materialize-extension-full-refresh`: an incremental `#(materialize)` extension whose watermark is not the same stored column as its incremental parent\'s: it is rebuilt in full over the parent\'s table whenever that table changes, and served (`subject` the extension; `warn`; the message names both watermarks). `materialize-extension-generation-unproven`: the newest run rebuilt an incremental extension in full because it could not prove which build of its parent\'s table it last read (neither the run\'s ledger entry nor the bound manifest records it; step reason `upstream_generation_skipped`) (`subject` the extension; `warn`). `rollup-join-one-key-repeated`: a rollup\'s last build found a `join_one` key repeated in the data, so queries that read that join beside other aggregates are answered live (`subject` the rollup\'s base; `warn`). Its former name, `preaggregate-join-one-key-repeated`, is retained, no longer produced. `served-copy-not-served`: the served copy (the author\'s own files, each stored source re-rooted on its table) leaves a source as written, so it answers live, or serves it with a join read as written or left out; `reason` names why (`compile_failed`, `cross_connection_unbuilt`, `column_types`, `no_declaration`, `definition_not_parsed`, `pair_join_not_found`, `pair_not_compiled`, `fields_not_carried`, `read_terms_not_kept`, `cross_connection_join`, `inline_join_kept`, `reroot_not_compiled`, `classification_not_kept`; an open set) (`subject` the source; `warn`). `row-level-gate-unexpressible`: a row-level gate an entry point inherits, whose field it no longer carries, so that entry point denies every request; `row-level-gate-reads-no-given`: a source-line gate that reads no given, a fixed predicate rather than an access rule keyed on the caller; `row-level-gate-negated-membership`: a source-line gate that negates a membership test, which an empty given turns into match-all, or that is too deep to check for one (its message then says it is too deep to check, not that it negates one) (`model` the entry point\'s file, `subject` the entry point; `warn`; the model still loads). `annotation-near-miss` and `annotation-malformed-route`: an annotation whose route or directive looks like a misspelled one Publisher reads (`warn`); `annotation-gate-near-miss`: a misspelled gate annotation (`#(authorise)`), which `compile_model` refuses. `persist-incremental-no-merge-key`: an incremental source with no `merge_key=`, so each refresh replaces its watermark range (`subject` the source; `warn`). `persist-reads-current-time`: a `#@ persist` source, persisted view or persisted named query whose stored relation reads the current time (`now`, or a relative time filter string such as `f\'last 7 days\'`), so its answers are as of its last build and it is rebuilt on every run; the message names where it reads the clock and how to answer as of each query instead (one per table, `subject` the source, the view as `<source> -> <view>`, or the query; `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`). `persist-incremental-late-rows`: an incremental source whose bound table a delta\'s late-row check found missing rows stamped just below where a delta started reading, which no later delta reads (its manifest entry\'s `lateRows`); it is carried until the source is rebuilt in full (one per source; `warn`). `rollup-join-one-key-repeated`: a bound rollup whose last build found the key of a `join_one` it reads repeated, so a query reading that join beside other aggregates is answered live; it clears once a build finds the key unique (one per rollup; `warn`). `preaggregate-join-one-key-repeated` is retained, no longer produced: it is `rollup-join-one-key-repeated` now. `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 of any kind (`#@ persist`, `#(materialize)`, a rollup, a persisted view or query) stores a column as a type other than the one its build declares, as its build wrote it (a change after the build is `materialization-table-incompatible`). It is read through a cast to the declared type where that is faithful, and otherwise answered live, never read as its stored type (one per source and column, `model` the model declaring it, `subject` the source, a rollup\'s base, or a view\'s or query\'s build source, the message naming the column, both types and which applies; `warn`; see docs/materialization.md). `database-column-type-mismatch` is retained, no longer produced: a bound table altered outside a build is now `materialization-table-incompatible`, answered live whole until it is rebuilt, never read through a cast. `materialization-table-incompatible`: a bound table, on either tier, that no longer matches the column contract its build recorded (a column gone, retyped or recollated since, or its source now declaring another type than it was built for); it is answered live until a build rebuilds it (one per source, `subject` the source; `warn`; the serve verdict\'s `incompatible` names the table and what changed). `materialization-contract-missing`: a bound table whose entry carries no column contract (built before contracts were recorded); it is answered live until a build rebuilds it in full (one per source, `subject` the source; `warn`). `materialization-types-unrecorded` is retained, no longer produced: a table with no recorded types is `materialization-contract-missing` now. `table-kept`: a table an auto-run replaced when its source\'s table was renamed or moved, which Publisher keeps rather than drops: one at an author\'s exact `name=` (never dropped), one in a storage destination that is no longer configured (which, when the destination was renamed rather than removed, may be the table served under the new name), or one a `storage=` or tier move left under the name the source is served under now (which may be the very table served, so it is never dropped). Listed on the newest run\'s `metadata.keptTables` until no committed run names it in its place (its runs deleted; a delete is record-only), a run finds it dropped by hand (never on Snowflake or MySQL, whose catalogs hide tables), or its name is used again in its own place (one per table, `model` the model declaring the source, `subject` the source or a rollup\'s base, the message naming the table and where it is, `reason` the kept table\'s `author_name`, `destination_missing` or `may_be_served`; `warn`; see docs/materialization.md). `database-table-unread`: a bound table in a source\'s own database whose columns could not be read when it was bound (missing, unreadable, slower than the read\'s bound, or named in more than one schema), so its queries are answered live until a read succeeds; the message names the table or rollup, one fixed reason (its connection could not be opened, the catalog read timed out, the catalog query failed, not found, a name matching more than one table, a name the catalog cannot read; never the driver\'s text) and whether a retry is pending, and the warning clears once the table is read (only for a table a source of the package reads; one per table, `model` the model declaring its source, `subject` the source, or a rollup\'s base, when the plan knows the table; `reason` one of `connection_failed`, `timed_out`, `catalog_query_failed`, `not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`; see docs/materialization.md). `storage-table-unread`: the same, for a bound `storage=` table whose columns its destination session could not read when it was bound, or that a query\'s failed read left unread until the package reads it again; the message names the table or rollup and its destination; same fields and reasons. `database-native-type-missing`: a database table is bound with no captured warehouse type (its manifest entry\'s `nativeSchema`) for a column whose field Malloy types as a big integer. On BigQuery the column is read as `INT64`, its only integer type, and still serves; on any other dialect it is left out, so a query that reads it is answered live. The next full rebuild captures the types (one per source, `model` the first model binding it, `subject` the source, the message naming the columns and which applies; `warn`; see docs/materialization.md). Its former name, `stored-native-schema-missing`, is retained, no longer produced. `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.
2628
2787
  */
2629
2788
  'code'?: string;
2630
2789
  /**
2631
- * The bounded cause of a finding, so a client branches on it rather than on the message (whose wording may change): the refusal record\'s `reason` on a `*-not-built` warning; the served copy\'s reason on `served-copy-not-served`; the unread reason on `database-table-unread`; the kept table\'s reason on `table-kept`; the serve verdict\'s reason on a `materialization-*` verdict warning; `storage_mode` on `materialization-storage-mode`; the rule a cell breaks on `malloynb-cell-refused` (`off_surface`, `caller_annotation`, `required_filter`, `restricted_mode`, `compile_error`). Always snake_case. An open string; absent on a finding that has none.
2790
+ * The bounded cause of a finding, so a client branches on it rather than on the message (whose wording may change): the refusal record\'s `reason` on a `*-not-built` warning; the served copy\'s reason on `served-copy-not-served`; the unread reason on `database-table-unread` and `storage-table-unread`; the kept table\'s reason on `table-kept`; the serve verdict\'s reason on a `materialization-*` verdict warning; `storage_mode` on `materialization-storage-mode`; the rule a cell breaks on `malloynb-cell-refused` (`off_surface`, `caller_annotation`, `required_filter`, `restricted_mode`, `compile_error`). Always snake_case. An open string; absent on a finding that has none.
2632
2791
  */
2633
2792
  'reason'?: string;
2793
+ /**
2794
+ * The content address (its manifest key) of the stored table a finding is about, so a client routes it without reading the message: set on `database-table-unread` and `storage-table-unread`, where `subject` names the source a query names (a rollup\'s base) and this names the unread table\'s own source. Absent on every other finding.
2795
+ */
2796
+ 'sourceEntityId'?: string;
2797
+ /**
2798
+ * The name of the source whose stored table a finding is about, beside `sourceEntityId`: for a rollup\'s table, the rollup\'s own source (`<base>__rollup__…`), not the base `subject` names. Set on `database-table-unread` and `storage-table-unread` when the build plan knows the table; absent otherwise.
2799
+ */
2800
+ 'sourceName'?: string;
2634
2801
  /**
2635
2802
  * Finding severity, `error` or `warn` and nothing else; a deprecated form that still loads (such as `deprecated-malloynb-notebook`) is `warn`. Render-tag findings use both: `error` for a tag malformed for the field it sits on, which renders as \"[object Object]\" or an inline error at query time, and `warn` for one that is well-formed but inert where it sits and so is silently ignored (e.g. `# colspan` outside `# dashboard { columns=N }`), where nothing looks broken at query time and the layout simply is not what was written. Those are the only two severities the renderer emits, so no render finding is withheld. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
2636
2803
  */
@@ -3191,7 +3358,7 @@ export interface RefusedSource {
3191
3358
  */
3192
3359
  'tier': RefusedSourceTierEnum;
3193
3360
  /**
3194
- * The bounded refusal reason; `message` says the specifics. On every mechanism: `free_parameter`; a row-level gate the table could not keep, named by the gate\'s kind, `access_filter` for a row filter (`#(access_filter)`, any of the gates that refused it) and `authorize` for a lock (`#(authorize)`); `reads_given`, the one reason every mechanism gives for a stored result that would read a given, so its table would hold one caller\'s rows or could not be read per caller (a given in a `#@ persist` source\'s persisted query, in a field it declares, in a join\'s `on:` condition or in a source it joins that is not stored per caller; a persisted view or query whose result reads one; a rollup whose build reads one), with `message` naming where the given sits; `inherited_where_with_given` (a given-reading `where:` or dimension the declaration inherits from a source it is built from, in its own file or another, rather than writing it in its own declaration: only the declaration\'s own terms are re-applied over the stored table at read; move the `where:` onto the persisted source to serve it from a table); `given_where_over_unstored_field` (a given-reading `where:` of the declaration\'s own over a field its table does not store, so it cannot be re-applied over the table at read: a field the rollup\'s grain drops, which adding it to the grain fixes, or on `#(materialize)` a field that is not a stored dimension); `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns); `connection_cannot_hold_table` (a database build on a connection that cannot create tables; SQL Server today, whose connection reports `canPersist: false`: the same words as the serve verdict\'s reason for the same case); `needs_qualified_name` (a database table on BigQuery, where a table needs a dataset, whose `name=` names none: a `#@ persist` source, a persisted view or query, a `#(materialize)` source, or a rollup whose own `name=` and base\'s give no container; refused at plan, before any warehouse work); `storage_source_unsupported` (`storage=` on a source whose connection the build cannot pass through to a destination, e.g. the package\'s DuckDB sandbox; or a source that carries author SQL, an `.sql()` source, a `sql_*` expression or a file or URL read as a table, whose table would be built inside a catalog, which runs only SQL Malloy generated: a `storage=` source on a DuckLake connection, or a source of any tier on a connection configured `managed`); `table_name_collision` (under `PERSIST_COLLISION_ENFORCE=false`, a declaration whose `name=` puts it on one table with another, so neither is built; by default such a package does not load; a run also records it in its `metadata.refusedSources` for a source whose readable table name another source\'s table already takes in that run); `current_time` (the build reads the current time, `now`, or keeps rows older than a moving cut-off it cannot leave out, so its table would hold the rows as of the build; `now` in the source\'s own extend block is applied at every read and is admitted); `incremental_unsupported` (a valid incremental declaration this deployment\'s dialect or destination cannot honour); `upstream_unread` (a table its build reads could not be read from its warehouse\'s catalog when the package loaded, after retrying, and this process has no earlier reading of it, so its content address is not known: it is not built, no run builds it, and a host\'s instruction for it is refused, until a reload or a plan refresh reads the catalog and plans it at its address; the `*-not-built` warning names the table). A persisted view or named query: `materialization_off` (persisted named queries are built only with `PUBLISHER_MATERIALIZE` on), `multi_line_annotation` (its `#@` line spans more than one line), `build_name_collision` (its generated build source\'s name is one the model, or another persisted view, already takes), `run_target_unsupported` (its source is declared in another file, is not in the model\'s namespace, or cannot be read), `nested_result` (a result that nests, which its table cannot answer yet), `access_filter` or `authorize` (it reaches a row-level gate its stored result cannot keep, named by the gate\'s kind), `reads_given` (its result reads a given), `current_time` (its result reads `now`), `no_stored_columns` (it has no stage to store) and `generated_build_failed` (its build does not compile on its own). A `#(materialize)` source: `inherited_persist` (it inherits `#@ persist`, so it is already its base\'s table), `inline_unsupported` (an `inline=` join or pair-table layout the build cannot store), `no_stored_columns` (the source has no dimension to store), `needs_qualified_name` (as above), `time_zone` (the source sets its own time zone, which its stored columns cannot follow at read), and `generated_build_failed` (Publisher could not write or compile its generated build, a Publisher bug worth reporting). A rollup (`#(rollup)` or `#@ preaggregate`): `hidden_field` (a measure or grain dimension the published surface hides, which a rollup would publish), `access_filter` or `authorize` (a row-level gate a rollup cannot re-apply to its rows, named by the gate\'s kind as on every mechanism), `time_zone` (the source sets its own time zone, so no query reads the rollup), `unreadable_measure` (a measure definition outside what a rollup reads), `join_not_in_grain` (a measure that aggregates through a join its grain does not key, or through a fan-out join), `partial_name_collision` (a field already takes the name of the measure\'s stored partial), and `unreadable_grain` (a `storage=` rollup over a DuckDB source whose grain dimension is stored as a type no stored read declares, a BLOB, INTERVAL, MAP or JSON, so no query would read its table; database, it is built). Retained, no longer produced: `given` (replaced by the positional given reasons above), `given_in_persisted_query` (shipped in 0.14.0: a `#@ persist` source\'s persisted query, or a `#(materialize)` source, whose build reads a given; now `reads_given`, the one name every mechanism gives the case), `preaggregate_over_dynamic_source` (shipped in 0.14.0: a rollup over a caller-scoped source, now `reads_given`, `given_where_over_unstored_field` or `inherited_where_with_given`, as every mechanism names the same case), `dynamic_projection`, `dynamic_join` and `dynamic_joined_where` (a `storage=` `#@ persist` source\'s given in a field it declares, in a join\'s `on:` condition, or in a source it joins; now `reads_given`, whose `message` still names the position), `not_duckdb_portable` (a `storage=` table no column of which Malloy can type is now built, and its source is answered live), the three `partition_*` reasons (`partition=` is a retired key, which fails the publish and the load as `persist-retired-key` or `materialize-retired-key`), `env_reference` and `empty_storage` (invalid annotations, which fail the publish and the load, so no served package reports them; the plan keeps refusing such a source as a backstop, so a plan computed without the load\'s check can still carry one), and `rollup_name_collision` (a rollup\'s generated name digests its declaring source, so no two rollups share one). `read_only_dialect` (shipped in 0.14.0: now `connection_cannot_hold_table`). `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns, never by a plan; it shares the enum with the eligibility metric.
3361
+ * The bounded refusal reason; `message` says the specifics. On every mechanism: `free_parameter`; a row-level gate the table could not keep, named by the gate\'s kind, `access_filter` for a row filter (`#(access_filter)`, any of the gates that refused it) and `authorize` for a lock (`#(authorize)`); `reads_given`, the one reason every mechanism gives for a stored result that would read a given, so its table would hold one caller\'s rows or could not be read per caller (a given in a `#@ persist` source\'s persisted query, in a field it declares, in a join\'s `on:` condition or in a source it joins that is not stored per caller; a persisted view or query whose result reads one; a rollup whose build reads one), with `message` naming where the given sits; `inherited_where_with_given` (a given-reading `where:` or dimension the declaration inherits from a source it is built from, in its own file or another, rather than writing it in its own declaration: only the declaration\'s own terms are re-applied over the stored table at read; move the `where:` onto the persisted source to serve it from a table); `given_where_over_unstored_field` (a given-reading `where:` of the declaration\'s own over a field its table does not store, so it cannot be re-applied over the table at read: a field the rollup\'s grain drops, which adding it to the grain fixes, or on `#(materialize)` a field that is not a stored dimension); `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns); `connection_cannot_hold_table` (a database build on a connection that cannot create tables; SQL Server today, whose connection reports `canPersist: false`: the same words as the serve verdict\'s reason for the same case); `needs_qualified_name` (a database table on BigQuery, where a table needs a dataset, whose `name=` names none: a `#@ persist` source, a persisted view or query, a `#(materialize)` source, or a rollup whose own `name=` and base\'s give no container; refused at plan, before any warehouse work); `storage_source_unsupported` (`storage=` on a source whose connection the build cannot pass through to a destination, e.g. the package\'s DuckDB sandbox; or a source that carries author SQL, an `.sql()` source, a `sql_*` expression or a file or URL read as a table, whose table would be built inside a catalog, which runs only SQL Malloy generated: a `storage=` source on a DuckLake connection, or a source of any tier on a connection configured `managed`); `table_name_collision` (under `PERSIST_COLLISION_ENFORCE=false`, a declaration whose `name=` puts it on one table with another, so neither is built; by default such a package does not load; a run also records it in its `metadata.refusedSources` for a source whose readable table name another source\'s table already takes in that run); `current_time` (the build reads the current time, `now`, or keeps rows older than a moving cut-off it cannot leave out, so its table would hold the rows as of the build; `now` in the source\'s own extend block is applied at every read and is admitted); `incremental_unsupported` (a valid incremental declaration this deployment\'s dialect or destination cannot honour); `upstream_unread` (a table its build reads could not be read from its warehouse\'s catalog when the package loaded, after retrying, and this process has no earlier reading of it, so its content address is not known: it is not built, no run builds it, and a host\'s instruction for it is refused, until a reload or a plan refresh reads the catalog and plans it at its address; the `*-not-built` warning names the table). `upstream_table_unusable` (a persisted source, view, named query or rollup that is built from its upstream\'s stored table, and never by recomputing the upstream from raw, in any build, when that table cannot be read where it is built: a database one over an upstream declared `storage=`, whose table lives in a storage destination a build in the warehouse cannot read; a `storage=` one over an upstream stored in another destination; or one over an upstream that declares a persisted table but is itself refused, or not planned, so it has none. `message` names the upstream and why. Terminal until the model changes; the declaration is answered live). A persisted view or named query: `materialization_off` (persisted named queries are built only with `PUBLISHER_MATERIALIZE` on), `multi_line_annotation` (its `#@` line spans more than one line), `build_name_collision` (its generated build source\'s name is one the model, or another persisted view, already takes), `run_target_unsupported` (its source is declared in another file, is not in the model\'s namespace, or cannot be read), `nested_result` (a result that nests, which its table cannot answer yet), `access_filter` or `authorize` (it reaches a row-level gate its stored result cannot keep, named by the gate\'s kind), `reads_given` (its result reads a given), `current_time` (its result reads `now`), `no_stored_columns` (it has no stage to store) and `generated_build_failed` (its build does not compile on its own). A `#(materialize)` source: `inherited_persist` (it inherits `#@ persist`, so it is already its base\'s table), `inline_unsupported` (an `inline=` join or pair-table layout the build cannot store), `no_stored_columns` (the source has no dimension to store), `needs_qualified_name` (as above), `time_zone` (the source sets its own time zone, which its stored columns cannot follow at read), and `generated_build_failed` (Publisher could not write or compile its generated build, a Publisher bug worth reporting). A rollup (`#(rollup)` or `#@ preaggregate`): `hidden_field` (a measure or grain dimension the published surface hides, which a rollup would publish), `access_filter` or `authorize` (a row-level gate a rollup cannot re-apply to its rows, named by the gate\'s kind as on every mechanism), `time_zone` (the source sets its own time zone, so no query reads the rollup), `unreadable_measure` (a measure definition outside what a rollup reads), `join_not_in_grain` (a measure that aggregates through a join its grain does not key, or through a fan-out join), `partial_name_collision` (a field already takes the name of the measure\'s stored partial), and `unreadable_grain` (a `storage=` rollup over a DuckDB source whose grain dimension is stored as a type no stored read declares, a BLOB, INTERVAL, MAP or JSON, so no query would read its table; database, it is built). Retained, no longer produced: `given` (replaced by the positional given reasons above), `given_in_persisted_query` (shipped in 0.14.0: a `#@ persist` source\'s persisted query, or a `#(materialize)` source, whose build reads a given; now `reads_given`, the one name every mechanism gives the case), `preaggregate_over_dynamic_source` (shipped in 0.14.0: a rollup over a caller-scoped source, now `reads_given`, `given_where_over_unstored_field` or `inherited_where_with_given`, as every mechanism names the same case), `dynamic_projection`, `dynamic_join` and `dynamic_joined_where` (a `storage=` `#@ persist` source\'s given in a field it declares, in a join\'s `on:` condition, or in a source it joins; now `reads_given`, whose `message` still names the position), `not_duckdb_portable` (a `storage=` table no column of which Malloy can type is now built, and its source is answered live), the three `partition_*` reasons (`partition=` is a retired key, which fails the publish and the load as `persist-retired-key` or `materialize-retired-key`), `env_reference` and `empty_storage` (invalid annotations, which fail the publish and the load, so no served package reports them; the plan keeps refusing such a source as a backstop, so a plan computed without the load\'s check can still carry one), and `rollup_name_collision` (a rollup\'s generated name digests its declaring source, so no two rollups share one). `read_only_dialect` (shipped in 0.14.0: now `connection_cannot_hold_table`). `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns, never by a plan; it shares the enum with the eligibility metric.
3195
3362
  */
3196
3363
  'reason': RefusedSourceReasonEnum;
3197
3364
  /**
@@ -3263,6 +3430,7 @@ export declare const RefusedSourceReasonEnum: {
3263
3430
  readonly GivenWhereOverUnstoredField: "given_where_over_unstored_field";
3264
3431
  readonly UnreadableGrain: "unreadable_grain";
3265
3432
  readonly UpstreamUnread: "upstream_unread";
3433
+ readonly UpstreamTableUnusable: "upstream_table_unusable";
3266
3434
  };
3267
3435
  export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
3268
3436
  /**
@@ -3633,15 +3801,18 @@ export interface ServeVerdict {
3633
3801
  */
3634
3802
  'verdict': string;
3635
3803
  /**
3636
- * For a `live` verdict, why: `refused` (the plan refused to build it), `storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not `on`), `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 its table cannot keep yet, on either tier), `stale` (its table is past its freshness window, and its fallback does not serve stale), `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` (database, on a connection whose type creates no tables), `types_unrecorded` (database, bound, but its manifest entry records no column types, neither `schema` nor `nativeSchema`, so a change since the build cannot be ruled out; rebuild it), `materialization_off` (a `#(materialize)` source, which only the served copy reads, and the served copy is off: `PUBLISHER_MATERIALIZE`, and for `storage=` `PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy reads, `#(materialize)` or `#@ persist`, whose table is bound and built, but no model\'s served copy re-roots it, so its queries are answered live; `notServedIn` says where and why). An open set.
3804
+ * For a `live` verdict, why: `refused` (the plan refused to build it), `storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not `on`), `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 its table cannot keep yet, on either tier), `stale` (its table is past its freshness window, and its fallback does not serve stale), `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` (database, on a connection whose type creates no tables), `types_unrecorded` (retained, no longer produced: an entry with no recorded types reads `contract_missing` now), `materialization_off` (a `#(materialize)` source, which only the served copy reads, and the served copy is off: `PUBLISHER_MATERIALIZE`, and for `storage=` `PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy reads, `#(materialize)` or `#@ persist`, whose table is bound and built, but no model\'s served copy re-roots it, so its queries are answered live; `notServedIn` says where and why), `contract_missing` (bound, but its manifest entry carries no column contract, `ManifestEntry.contract`: built before contracts were recorded, or by an older worker), `incompatible` (bound, but the table no longer matches the contract its build recorded: a column gone, retyped or recollated since, or the source of a substituted table now declaring another type; `incompatibility` says what). Both judge the table itself, never anything local to one worker: a catalog read that failed or timed out leaves the table unread (answered live, read again), never `incompatible`. Both are non-terminal and never a plan-time refusal: a rebuild fixes them, and a source with either counts as stale, so the next build rebuilds it in full. Each names the generation it judged in `table`, so a consumer drops a verdict about a table it has since replaced. An open set.
3637
3805
  */
3638
3806
  'reason'?: string;
3807
+ 'table'?: ServeVerdictTable;
3808
+ 'incompatibility'?: ServeVerdictIncompatibility;
3639
3809
  /**
3640
3810
  * Each model file whose served copy holds this source (declares or imports it) but does not read its table, sorted by model, the same for a `#(materialize)` source and a `#@ persist` one. Present exactly when some model that holds the source does not read its table. With a `served_copy` reason it lists every such model (a model whose whole copy is off lists every stored source it holds, not only the one whose join failed it; a source no model\'s copy holds lists its declaring model, `not_rerooted`). On a `serves` verdict it lists the models that answer the source\'s queries live while another model serves it, so a consumer must read it: `serves` alone does not mean every model reads the table. Absent while a served copy has yet to compile. Read from the same compile of record as the `served-copy-not-served` warnings, never by running a query.
3641
3811
  */
3642
3812
  'notServedIn'?: Array<NotServedIn>;
3643
3813
  /**
3644
- * Present, and always `true`, while some model that holds this source, which its served copy reads (`#(materialize)` or `#@ persist`), has yet to compile its served copy over the tables bound now. A bind returns before that compile, so the verdict carries no served-copy judgement yet: it may read `serves` for a table the compile will leave unread. A host must re-read the verdict while it is present; it is absent once every such model\'s copy is current, and then `notServedIn` and a `served_copy` reason are final for the bind.
3814
+ * Retained, no longer produced. A bind compiles each model\'s served copy over the new tables before they are swapped in. A freshness window that lapses changes the tables a query reads with no bind: from that edge, each query compiles its own copy without the lapsed table, the package recompiles each served copy at the edge, and until that compile lands a verdict leaves the lapsed table out by its recorded window, judged against the clock. A verdict is therefore never pending, and this field is never present.
3815
+ * @deprecated
3645
3816
  */
3646
3817
  'servedCopyPending'?: boolean;
3647
3818
  /**
@@ -3675,6 +3846,20 @@ export interface ServeVerdict {
3675
3846
  */
3676
3847
  'views'?: Array<ViewServeVerdict>;
3677
3848
  }
3849
+ /**
3850
+ * With `incompatible`: what changed (`column_gone`, `column_retyped`, `collation_changed`, `declared_moved`, or `upstream_altered`: a table an upstream it was built from changed under, found when a reload could not recompile; an open set) and the columns it changed (none for `upstream_altered`). A query\'s failed read of a table never makes it `incompatible`: it leaves the table unread, answered live, until the package\'s rebind reads its catalog and holds it to its contract.
3851
+ */
3852
+ export interface ServeVerdictIncompatibility {
3853
+ 'code': string;
3854
+ 'columns': Array<string>;
3855
+ }
3856
+ /**
3857
+ * With `contract_missing` or `incompatible`: the table generation the verdict judged, its `physicalTableName` and the `builtAt` its entry carried (absent when the entry carried none).
3858
+ */
3859
+ export interface ServeVerdictTable {
3860
+ 'physicalTableName': string;
3861
+ 'builtAt'?: string;
3862
+ }
3678
3863
  /**
3679
3864
  * Current server status and health information
3680
3865
  */
@@ -4026,7 +4211,7 @@ export interface SourceFailure {
4026
4211
  */
4027
4212
  'refusalReason'?: string;
4028
4213
  /**
4029
- * A bounded code for a failure a client may branch on, beside `reason`\'s prose: `table-owned-elsewhere` (the build\'s `name=` is held by a table this package does not own) or `table-ownership-unverified` (who holds it could not be read). An open set; absent for a failure that has none.
4214
+ * A bounded code for a failure a client may branch on, beside `reason`\'s prose: `table-owned-elsewhere` (the build\'s `name=` is held by a table this package does not own), `table-ownership-unverified` (who holds it could not be read), or `contract_capture_failed` (the build wrote its table but could not read back its column contract, `ManifestEntry.contract`, which a table must carry to be served from). `contract_capture_failed` is non-terminal, never a refusal: a rebuild fixes it, and the source is `retryable`. The read runs before the write is swapped in or committed wherever the build has a staging table or a transaction, so the previous table is left as it was; an incremental delta, which writes in place, fails after its write, and its previous entry then understates the table\'s freshness, never its rows. `schema_incompatible` (a build whose upstream\'s stored table is not what it was planned or built over: a `storage=` view\'s or named query\'s upstream whose columns differ from its plan\'s, or any upstream table altered since its build). It is non-terminal, never a refusal: the package reads its tables and derives its plan again at once, and the next build either builds the source over the upstream\'s table as it is or the plan refuses it (`upstream_table_unusable`); the source is `retryable`. `instruction_unresolved` (an instruction no source in the run\'s build plan resolves to, so nothing was built for it; not `retryable` until the caller reads the plan again). Every instructed source ends in `entries` or `failures`: one the run\'s plan refused since the caller read it is a refusal carrying the plan\'s reason, and any other unmatched instruction fails with this code; none is dropped. An open set; absent for a failure that has none.
4030
4215
  */
4031
4216
  'code'?: string;
4032
4217
  /**
@@ -4034,7 +4219,7 @@ export interface SourceFailure {
4034
4219
  */
4035
4220
  'refused'?: boolean;
4036
4221
  /**
4037
- * 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 (a message that says permission or access denied), a warehouse\'s own data or syntax error, 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. A warehouse\'s own data or syntax error is one the warehouse names as such: a Postgres or Snowflake SQLSTATE in class 22 (data exception) or 42 (syntax error or access rule violation), or a BigQuery `invalidQuery` or `invalid` job error, and a Postgres data exception that reaches Publisher as text only (through a DuckDB passthrough). Five SQLSTATEs in class 42 are left to the other rules: a missing table or column (`42P01`, `42703`, `42S02`, `42S22`, and a BigQuery `Unrecognized name` or `Not found`), which stays absent, and `42501` (insufficient privilege). A Postgres `42501` still reports `false`, because its message says permission denied; a Snowflake `42501` stays absent. Transient codes (`40001`, `40P01`, and BigQuery\'s backend and quota reasons) are never `false`. `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.
4222
+ * 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 (a message that says permission or access denied), a warehouse\'s own data or syntax error, and a source that fails because a persisted upstream it reads failed deterministically earlier in the same run (every build is strict, so it is never recomputed from raw instead). 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. A warehouse\'s own data or syntax error is one the warehouse names as such: a Postgres or Snowflake SQLSTATE in class 22 (data exception) or 42 (syntax error or access rule violation), or a BigQuery `invalidQuery` or `invalid` job error, and a Postgres data exception that reaches Publisher as text only (through a DuckDB passthrough). Five SQLSTATEs in class 42 are left to the other rules: a missing table or column (`42P01`, `42703`, `42S02`, `42S22`, and a BigQuery `Unrecognized name` or `Not found`), which stays absent, and `42501` (insufficient privilege). A Postgres `42501` still reports `false`, because its message says permission denied; a Snowflake `42501` stays absent. Transient codes (`40001`, `40P01`, and BigQuery\'s backend and quota reasons) are never `false`. `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.
4038
4223
  */
4039
4224
  'retryable'?: boolean;
4040
4225
  }
@@ -6466,7 +6651,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
6466
6651
  */
6467
6652
  listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6468
6653
  /**
6469
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6654
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6470
6655
  * @summary Update package configuration
6471
6656
  * @param {string} environmentName Name of the environment
6472
6657
  * @param {string} packageName Name of the package
@@ -6571,7 +6756,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
6571
6756
  */
6572
6757
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
6573
6758
  /**
6574
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6759
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6575
6760
  * @summary Update package configuration
6576
6761
  * @param {string} environmentName Name of the environment
6577
6762
  * @param {string} packageName Name of the package
@@ -6676,7 +6861,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
6676
6861
  */
6677
6862
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
6678
6863
  /**
6679
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6864
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6680
6865
  * @summary Update package configuration
6681
6866
  * @param {string} environmentName Name of the environment
6682
6867
  * @param {string} packageName Name of the package
@@ -6781,7 +6966,7 @@ export declare class PackagesApi extends BaseAPI {
6781
6966
  */
6782
6967
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
6783
6968
  /**
6784
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6969
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason` `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
6785
6970
  * @summary Update package configuration
6786
6971
  * @param {string} environmentName Name of the environment
6787
6972
  * @param {string} packageName Name of the package
@@ -7156,11 +7341,11 @@ export declare const StorageDestinationsApiAxiosParamCreator: (configuration?: C
7156
7341
  */
7157
7342
  createStorageDestinationFileCleanup: (environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7158
7343
  /**
7159
- * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7344
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7160
7345
  * @summary Drop a table from a storage destination
7161
7346
  * @param {string} environmentName Name of the environment
7162
7347
  * @param {string} destinationName Name of a storage destination configured on the environment
7163
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7348
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7164
7349
  * @param {string} tableName Name of the table
7165
7350
  * @param {*} [options] Override http request option.
7166
7351
  * @deprecated
@@ -7172,7 +7357,7 @@ export declare const StorageDestinationsApiAxiosParamCreator: (configuration?: C
7172
7357
  * @summary List tables in a storage destination
7173
7358
  * @param {string} environmentName Name of the environment
7174
7359
  * @param {string} destinationName Name of a storage destination configured on the environment
7175
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7360
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7176
7361
  * @param {*} [options] Override http request option.
7177
7362
  * @deprecated
7178
7363
  * @throws {RequiredError}
@@ -7195,11 +7380,11 @@ export declare const StorageDestinationsApiFp: (configuration?: Configuration) =
7195
7380
  */
7196
7381
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageFileCleanup>>;
7197
7382
  /**
7198
- * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7383
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7199
7384
  * @summary Drop a table from a storage destination
7200
7385
  * @param {string} environmentName Name of the environment
7201
7386
  * @param {string} destinationName Name of a storage destination configured on the environment
7202
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7387
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7203
7388
  * @param {string} tableName Name of the table
7204
7389
  * @param {*} [options] Override http request option.
7205
7390
  * @deprecated
@@ -7211,7 +7396,7 @@ export declare const StorageDestinationsApiFp: (configuration?: Configuration) =
7211
7396
  * @summary List tables in a storage destination
7212
7397
  * @param {string} environmentName Name of the environment
7213
7398
  * @param {string} destinationName Name of a storage destination configured on the environment
7214
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7399
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7215
7400
  * @param {*} [options] Override http request option.
7216
7401
  * @deprecated
7217
7402
  * @throws {RequiredError}
@@ -7234,11 +7419,11 @@ export declare const StorageDestinationsApiFactory: (configuration?: Configurati
7234
7419
  */
7235
7420
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): AxiosPromise<StorageFileCleanup>;
7236
7421
  /**
7237
- * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7422
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7238
7423
  * @summary Drop a table from a storage destination
7239
7424
  * @param {string} environmentName Name of the environment
7240
7425
  * @param {string} destinationName Name of a storage destination configured on the environment
7241
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7426
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7242
7427
  * @param {string} tableName Name of the table
7243
7428
  * @param {*} [options] Override http request option.
7244
7429
  * @deprecated
@@ -7250,7 +7435,7 @@ export declare const StorageDestinationsApiFactory: (configuration?: Configurati
7250
7435
  * @summary List tables in a storage destination
7251
7436
  * @param {string} environmentName Name of the environment
7252
7437
  * @param {string} destinationName Name of a storage destination configured on the environment
7253
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7438
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7254
7439
  * @param {*} [options] Override http request option.
7255
7440
  * @deprecated
7256
7441
  * @throws {RequiredError}
@@ -7273,11 +7458,11 @@ export declare class StorageDestinationsApi extends BaseAPI {
7273
7458
  */
7274
7459
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageFileCleanup, any, {}, any>>;
7275
7460
  /**
7276
- * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7461
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. The path\'s schema qualifies the table. On a destination whose `destinationSchema` is set and is not `main`, a `main` path answers `400` naming the `destinationSchema` (an earlier release read `main` as the destination\'s own schema): name the `destinationSchema` to drop a build table, and drop a table in `main` through the admin API. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
7277
7462
  * @summary Drop a table from a storage destination
7278
7463
  * @param {string} environmentName Name of the environment
7279
7464
  * @param {string} destinationName Name of a storage destination configured on the environment
7280
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7465
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7281
7466
  * @param {string} tableName Name of the table
7282
7467
  * @param {*} [options] Override http request option.
7283
7468
  * @deprecated
@@ -7289,7 +7474,7 @@ export declare class StorageDestinationsApi extends BaseAPI {
7289
7474
  * @summary List tables in a storage destination
7290
7475
  * @param {string} environmentName Name of the environment
7291
7476
  * @param {string} destinationName Name of a storage destination configured on the environment
7292
- * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
7477
+ * @param {string} schemaName Schema within the storage destination: the path\&#39;s table is &#x60;{schemaName}.{tableName}&#x60;. A build writes a bare physical name into the destination\&#39;s &#x60;destinationSchema&#x60; (&#x60;main&#x60; when it declares none), so a drop in &#x60;main&#x60; on a destination that sets another &#x60;destinationSchema&#x60; answers &#x60;400&#x60; naming it.
7293
7478
  * @param {*} [options] Override http request option.
7294
7479
  * @deprecated
7295
7480
  * @throws {RequiredError}
@@ -7340,7 +7525,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
7340
7525
  */
7341
7526
  setPackageLatestVersion: (environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7342
7527
  /**
7343
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7528
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
7344
7529
  * @summary Bind a version to a build manifest
7345
7530
  * @param {string} environmentName Name of the environment
7346
7531
  * @param {string} packageName Name of the package
@@ -7406,7 +7591,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
7406
7591
  */
7407
7592
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
7408
7593
  /**
7409
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7594
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
7410
7595
  * @summary Bind a version to a build manifest
7411
7596
  * @param {string} environmentName Name of the environment
7412
7597
  * @param {string} packageName Name of the package
@@ -7472,7 +7657,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
7472
7657
  */
7473
7658
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
7474
7659
  /**
7475
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7660
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
7476
7661
  * @summary Bind a version to a build manifest
7477
7662
  * @param {string} environmentName Name of the environment
7478
7663
  * @param {string} packageName Name of the package
@@ -7538,7 +7723,7 @@ export declare class VersionsApi extends BaseAPI {
7538
7723
  */
7539
7724
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
7540
7725
  /**
7541
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7726
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
7542
7727
  * @summary Bind a version to a build manifest
7543
7728
  * @param {string} environmentName Name of the environment
7544
7729
  * @param {string} packageName Name of the package