@malloy-publisher/sdk 0.18.7 → 0.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-BkBdGb49.es.js → RenderedResult-DW_0pVGi.es.js} +35 -35
- package/dist/{RenderedResult-B7Vw2U4r.cjs.js → RenderedResult-iBneEusY.cjs.js} +1 -1
- package/dist/ServerProvider-Bm0MYmLk.cjs.js +1 -0
- package/dist/{ServerProvider-Caw1M640.es.js → ServerProvider-Dt1toUPl.es.js} +274 -274
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +128 -79
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +117 -116
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +1 -1
- package/dist/components/Materializations/ScopeButton.d.ts +1 -1
- package/dist/components/ModelViewer/docAnnotations.d.ts +9 -8
- package/dist/components/ModelViewer/schemaModel.d.ts +2 -2
- package/dist/index.cjs.js +28 -28
- package/dist/index.es.js +1975 -1970
- package/dist/{useCompiledDocument-C3k5Ro8W.es.js → useCompiledDocument-D6zLiPHq.es.js} +2 -2
- package/dist/{useCompiledDocument-CqI1slum.cjs.js → useCompiledDocument-fX3JV1Ca.cjs.js} +2 -2
- package/package.json +1 -1
- package/src/components/Materializations/CreateMaterializationDialog.tsx +1 -1
- package/src/components/Materializations/MaterializationDetailDialog.tsx +2 -2
- package/src/components/Materializations/Materializations.tsx +2 -2
- package/src/components/Materializations/Materializations.versions.spec.tsx +3 -3
- package/src/components/Materializations/ScopeButton.tsx +1 -1
- package/src/components/ModelViewer/docAnnotations.spec.ts +32 -2
- package/src/components/ModelViewer/docAnnotations.ts +29 -11
- package/src/components/ModelViewer/schemaModel.ts +2 -2
- package/dist/ServerProvider-DorQnQ-Q.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -1612,6 +1612,10 @@ export interface ManifestEntry {
|
|
|
1612
1612
|
* Mirrors `PersistSourcePlan.origin` for the source this entry was built from: `persist` for a source the modeler wrote `#@ persist` on, which is the meaning of an absent value, and `rollup` for a rollup synthesized from `#(rollup)` or `#@ preaggregate` measures. `preaggregate`, what releases before this one wrote for a rollup, is retained, no longer produced, and still read as a rollup, since a host echoes the entries it stored. The plan\'s other values (`materialize`, `view`, `query`) are accepted; `persist` or an absent value stays valid for every entry that is not a rollup, since a host echoes the entries it stored, and Publisher reads only whether an entry is a rollup, taking the mechanism from its own plan. Repeated here because a manifest travels without its build plan, and a consumer holding only the manifest otherwise cannot tell why it holds a table for a source that does not appear in the package.
|
|
1613
1613
|
*/
|
|
1614
1614
|
'origin'?: ManifestEntryOriginEnum;
|
|
1615
|
+
/**
|
|
1616
|
+
* `simulated`: an entry simulated materialization predicted, for a table it never creates. Its address, physical name, schema and contract are those a build would record, and `builtAt` is the simulated build\'s time. Absent on an entry a build wrote. Never stored, and never on a manifest a run commits.
|
|
1617
|
+
*/
|
|
1618
|
+
'mode'?: ManifestEntryModeEnum;
|
|
1615
1619
|
/**
|
|
1616
1620
|
* Echoes the caller-assigned id from the BuildInstruction.
|
|
1617
1621
|
*/
|
|
@@ -1704,6 +1708,10 @@ export declare const ManifestEntryOriginEnum: {
|
|
|
1704
1708
|
readonly Preaggregate: "preaggregate";
|
|
1705
1709
|
};
|
|
1706
1710
|
export type ManifestEntryOriginEnum = typeof ManifestEntryOriginEnum[keyof typeof ManifestEntryOriginEnum];
|
|
1711
|
+
export declare const ManifestEntryModeEnum: {
|
|
1712
|
+
readonly Simulated: "simulated";
|
|
1713
|
+
};
|
|
1714
|
+
export type ManifestEntryModeEnum = typeof ManifestEntryModeEnum[keyof typeof ManifestEntryModeEnum];
|
|
1707
1715
|
export declare const ManifestEntryUpstreamReuseEnum: {
|
|
1708
1716
|
readonly Reused: "reused";
|
|
1709
1717
|
readonly Recomputed: "recomputed";
|
|
@@ -1759,7 +1767,7 @@ export interface ManifestReference {
|
|
|
1759
1767
|
*/
|
|
1760
1768
|
'storageDestinationName'?: string;
|
|
1761
1769
|
/**
|
|
1762
|
-
* 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,
|
|
1770
|
+
* 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, the build is refused; no build recomputes the upstream from its definition. Without it nothing can be checked: the build reads the table unchecked, with a warning and a count (`publisher_materialization_upstream_read_unchecked_total`). Ignored for a `storage=` upstream: omit it there. Optional and additive.
|
|
1763
1771
|
*/
|
|
1764
1772
|
'nativeSchema'?: Array<Column>;
|
|
1765
1773
|
/**
|
|
@@ -1859,15 +1867,20 @@ export declare const MaterializationDigestNotServedInnerServesEnum: {
|
|
|
1859
1867
|
};
|
|
1860
1868
|
export type MaterializationDigestNotServedInnerServesEnum = typeof MaterializationDigestNotServedInnerServesEnum[keyof typeof MaterializationDigestNotServedInnerServesEnum];
|
|
1861
1869
|
/**
|
|
1862
|
-
* One fact about an item\'s table, and how it is known. `basis` is `exact` for a fact read off a table that exists; `predicted`
|
|
1870
|
+
* One fact about an item\'s table, and how it is known. `basis` is `exact` for a fact read off a table that exists, or off column metadata; `predicted` for one simulated materialization predicts without building; `not_knowable_locally` for one that depends on what only the host knows (its build times, limits, catalogs), for which `value` says why.
|
|
1863
1871
|
*/
|
|
1864
1872
|
export interface MaterializationFact {
|
|
1865
1873
|
/**
|
|
1866
|
-
* Which fact: `table` (the physical table a query reads, present once built) or `builtAt` (when that table was built). An open string: a client must skip a fact it does not know.
|
|
1874
|
+
* Which fact: `table` (the physical table a query reads, present once built) or `builtAt` (when that table was built). Under simulated materialization also `storedTypes`, `collation`, `rowCount`, `bytes`, `keyUniqueness`, `freshness`, `limits`, `sameCatalog`, `managed`, `buildCost` and `reuse`. An open string: a client must skip a fact it does not know.
|
|
1867
1875
|
*/
|
|
1868
1876
|
'fact': string;
|
|
1869
1877
|
'value': string;
|
|
1870
1878
|
'basis': MaterializationFactBasisEnum;
|
|
1879
|
+
/**
|
|
1880
|
+
* How the fact was obtained, where that is more than reading a built table: `described` (the build SQL\'s output as the warehouse describes it, never run), `declared` (the build source\'s declared output), `catalog`, `estimated` or `counted` (the table stats route\'s methods), `build_sql` (read off the build SQL without running it), `aggregate` (one aggregate per key check: the `COUNT(*)` of the rows the build\'s own check SQL finds, or, for a `storage=` table\'s own key, `count()` against `count(distinct key)` over the rows its build SQL selects; only counts come back), `address` (the content address). Metadata is read with the author\'s own credentials. An open string.
|
|
1881
|
+
*/
|
|
1882
|
+
'method'?: string;
|
|
1883
|
+
'band'?: MaterializationFactBand;
|
|
1871
1884
|
}
|
|
1872
1885
|
export declare const MaterializationFactBasisEnum: {
|
|
1873
1886
|
readonly Exact: "exact";
|
|
@@ -1875,6 +1888,13 @@ export declare const MaterializationFactBasisEnum: {
|
|
|
1875
1888
|
readonly NotKnowableLocally: "not_knowable_locally";
|
|
1876
1889
|
};
|
|
1877
1890
|
export type MaterializationFactBasisEnum = typeof MaterializationFactBasisEnum[keyof typeof MaterializationFactBasisEnum];
|
|
1891
|
+
/**
|
|
1892
|
+
* Where a fact is approximate, its spread; an upper bound sets only `high`.
|
|
1893
|
+
*/
|
|
1894
|
+
export interface MaterializationFactBand {
|
|
1895
|
+
'low'?: string;
|
|
1896
|
+
'high'?: string;
|
|
1897
|
+
}
|
|
1878
1898
|
/**
|
|
1879
1899
|
* One thing a package materializes (a `#(materialize)` or `#@ persist` source, a `#@ persist` view or named query, or a `#(rollup)`), and its fate: the one row the build plan\'s refusals, the last build\'s failures and the serve verdicts are joined into.
|
|
1880
1900
|
*/
|
|
@@ -1899,6 +1919,10 @@ export interface MaterializationItem {
|
|
|
1899
1919
|
* `sourceName@modelPath`, package-relative: the `BuildPlan.sources` key with its file URL read relative to the package, so it names no place the server keeps files.
|
|
1900
1920
|
*/
|
|
1901
1921
|
'sourceID': string;
|
|
1922
|
+
/**
|
|
1923
|
+
* The content address its table is built under: the key of a build manifest\'s `entries` and `failures`, so a run\'s manifest can be matched to its items. Absent for an item the plan never addressed (a refused one).
|
|
1924
|
+
*/
|
|
1925
|
+
'sourceEntityId'?: string;
|
|
1902
1926
|
/**
|
|
1903
1927
|
* The package-relative model that declares it.
|
|
1904
1928
|
*/
|
|
@@ -1937,6 +1961,10 @@ export interface MaterializationItem {
|
|
|
1937
1961
|
*/
|
|
1938
1962
|
'fixes'?: Array<string>;
|
|
1939
1963
|
'facts'?: Array<MaterializationFact>;
|
|
1964
|
+
/**
|
|
1965
|
+
* On a `refused` item, as `ServeVerdict.readsThrough`: the stored source whose table answers its queries through the served copy.
|
|
1966
|
+
*/
|
|
1967
|
+
'readsThrough'?: ReadsThrough;
|
|
1940
1968
|
}
|
|
1941
1969
|
export declare const MaterializationItemKindEnum: {
|
|
1942
1970
|
readonly Persist: "persist";
|
|
@@ -2009,7 +2037,7 @@ export declare const MaterializationMetadataKeptTablesInnerReasonEnum: {
|
|
|
2009
2037
|
};
|
|
2010
2038
|
export type MaterializationMetadataKeptTablesInnerReasonEnum = typeof MaterializationMetadataKeptTablesInnerReasonEnum[keyof typeof MaterializationMetadataKeptTablesInnerReasonEnum];
|
|
2011
2039
|
/**
|
|
2012
|
-
* How a package\'s tables came to be, so a reader never mistakes one kind for another. `local`: an unversioned package (a watched one, or one installed in place) whose tables this server builds itself. `published`: a published version, or a package whose tables a host\'s manifest bound. `simulated`: a package simulated materialization serves, its tables predicted and never built
|
|
2040
|
+
* How a package\'s tables came to be, so a reader never mistakes one kind for another. `local`: an unversioned package (a watched one, or one installed in place) whose tables this server builds itself. `published`: a published version, or a package whose tables a host\'s manifest bound. `simulated`: a package simulated materialization serves, its tables predicted and never built, every query routed to one answered from live. `draft` is reserved for a later release. A client must accept a value it does not know.
|
|
2013
2041
|
*/
|
|
2014
2042
|
export declare const MaterializationMode: {
|
|
2015
2043
|
readonly Simulated: "simulated";
|
|
@@ -2046,6 +2074,10 @@ export interface MaterializationSummary {
|
|
|
2046
2074
|
'mode': MaterializationMode;
|
|
2047
2075
|
'counts': MaterializationStateCounts;
|
|
2048
2076
|
'items': Array<MaterializationItem>;
|
|
2077
|
+
/**
|
|
2078
|
+
* Set only on `GET …/packages/{packageName}/status`: the items `items` leaves out because they are not on the package\'s published surface, by the rule `MaterializationDigest.hiddenNotServed` follows. Counted, never named; `counts` still counts them.
|
|
2079
|
+
*/
|
|
2080
|
+
'hiddenItems'?: number;
|
|
2049
2081
|
}
|
|
2050
2082
|
/**
|
|
2051
2083
|
* How a connection metadata answer was read: `catalog`, from the warehouse\'s catalog or metadata tables; `counted`, by an aggregate `count(*)` over the table; `sampled`, from a sample; `history`, from query history; `host`, relayed from the remote connection a `publisher` proxy names, which read it with its own credentials.
|
|
@@ -2146,7 +2178,7 @@ export interface ModelError {
|
|
|
2146
2178
|
*/
|
|
2147
2179
|
'unbuiltReason'?: string;
|
|
2148
2180
|
/**
|
|
2149
|
-
* 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 refusal 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. The one 403 an `#(access_filter)` answers with another reason is INHERITED_FILTER_UNVERIFIED, below, when the model\'s own text moved a field the filter reads: that is no refusal of the caller. A 403 with any other reason is not a gate\'s. INHERITED_FILTER_UNVERIFIED, on a 403, means a `where:` the queried source inherits from a source it is built from could not be verified to read the fields it was written against there: a field it reads is defined again on the way (`rename:`, `except:`, a new definition), or the check could not follow it. It also answers an inherited `#(access_filter)` whose condition the model\'s own text moved (`rename:`, `except:`, a new definition) once the caller has supplied every given it reads; a caller missing one gets ACCESS_DENIED, and so does a rebind written in the caller\'s own query. It is the model\'s own text, not a permission rule, so givens and a rewritten query do not help. The message names the source and the reason class (`redefined_field`, `unrecorded_join`, `unresolved_declaration`, `resolution_bound`, or `check_failed` when the check itself failed unexpectedly), never the filter or the file; the server log names both. INDEX_SOURCE_UNBUILT, on a 409 from a model query, means a query with `queryClass: index` was refused because the source it queries declares a stored table of its own (`#(materialize)`, or its own `#@ persist`, not one it only inherits) and no ready table of it is bound. An index query on such a source is answered from that table or not at all, never run live against the warehouse; it is deferred, not wrong, and the same query succeeds once the table is built. The body\'s `unbuiltReason` says why the table is not ready. Only `queryClass: index` is refused this way: the same query in any other class is answered as before. Every governance check (the package\'s published surface, `#(authorize)`, row-level gates) decides first, so a caller who may not query the source gets that 404 or 403 instead, never this. The message names the source as the caller queried it, never a table, a path or a connection. 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. SIMULATION_ACTIVE, on a 409, means the server runs simulated materialization (`PUBLISHER_MATERIALIZE_SIMULATE`), an authoring mode that makes no materialization write. It refuses a materialization create, stop or delete, a materialized table drop, a storage destination\'s table drop and file cleanup, a version delete or archive, the delete of an environment or of a package that has versions, run records or incremental-ledger rows, a publish of a version whose id a deleted version left run records under, a watch-mode change, and a manifest binding (`update-package` or `create-package` with a `manifestLocation`, `set-package-version-manifest`). It fails the same way until the server restarts without simulation. MANIFEST_NOT_FOUND, on a 400 from the same routes, means nothing is at the `manifestLocation` (no such file, object or bucket), and MANIFEST_INVALID, on a 422, that what is there does not parse or is not a build manifest. Both are the caller\'s input: nothing of the manifest was applied, as with MANIFEST_BIND_FAILED, and sending it unchanged fails the same way. 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, INHERITED_FILTER_UNVERIFIED, INDEX_SOURCE_UNBUILT, 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, SIMULATION_ACTIVE.
|
|
2181
|
+
* 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 refusal 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. The one 403 an `#(access_filter)` answers with another reason is INHERITED_FILTER_UNVERIFIED, below, when the model\'s own text moved a field the filter reads: that is no refusal of the caller. A 403 with any other reason is not a gate\'s. INHERITED_FILTER_UNVERIFIED, on a 403, means a `where:` the queried source inherits from a source it is built from could not be verified to read the fields it was written against there: a field it reads is defined again on the way (`rename:`, `except:`, a new definition), or the check could not follow it. It also answers an inherited `#(access_filter)` whose condition the model\'s own text moved (`rename:`, `except:`, a new definition) once the caller has supplied every given it reads; a caller missing one gets ACCESS_DENIED, and so does a rebind written in the caller\'s own query. It is the model\'s own text, not a permission rule, so givens and a rewritten query do not help. The message names the source and the reason class (`redefined_field`, `unrecorded_join`, `unresolved_declaration`, `resolution_bound`, or `check_failed` when the check itself failed unexpectedly), never the filter or the file; the server log names both. INDEX_SOURCE_UNBUILT, on a 409 from a model query, means a query with `queryClass: index` was refused because the source it queries declares a stored table of its own (`#(materialize)`, or its own `#@ persist`, not one it only inherits) and no ready table of it is bound. An index query on such a source is answered from that table or not at all, never run live against the warehouse; it is deferred, not wrong, and the same query succeeds once the table is built. The body\'s `unbuiltReason` says why the table is not ready. Only `queryClass: index` is refused this way: the same query in any other class is answered as before. Every governance check (the package\'s published surface, `#(authorize)`, row-level gates) decides first, so a caller who may not query the source gets that 404 or 403 instead, never this. The message names the source as the caller queried it, never a table, a path or a connection. 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. SIMULATION_ACTIVE, on a 409, means the server runs simulated materialization (`PUBLISHER_MATERIALIZE_SIMULATE`), an authoring mode that makes no materialization write. It refuses a materialization create, stop or delete, a materialized table drop, a storage destination\'s table drop and file cleanup, a version delete or archive, the delete of an environment or of a package that has versions, run records or incremental-ledger rows, a publish of a version whose id a deleted version left run records under, a watch-mode change, and a manifest binding (`update-package` or `create-package` with a `manifestLocation`, `set-package-version-manifest`). It fails the same way until the server restarts without simulation. MANIFEST_NOT_FOUND, on a 400 from the same routes, means nothing is at the `manifestLocation` (no such file, object or bucket), and MANIFEST_INVALID, on a 422, that what is there does not parse or is not a build manifest. Both are the caller\'s input: nothing of the manifest was applied, as with MANIFEST_BIND_FAILED, and sending it unchanged fails the same way. 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): 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 registering a directory under its name). * PACKAGE_NOT_VERSIONED (409): a package update named a new `location` for a package with no versions; new content from a location is published as a version, not installed in place. * 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, INHERITED_FILTER_UNVERIFIED, INDEX_SOURCE_UNBUILT, 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_NOT_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, SIMULATION_ACTIVE.
|
|
2150
2182
|
*/
|
|
2151
2183
|
'reason'?: string;
|
|
2152
2184
|
/**
|
|
@@ -2235,7 +2267,7 @@ export interface NotServedIn {
|
|
|
2235
2267
|
*/
|
|
2236
2268
|
'model': string;
|
|
2237
2269
|
/**
|
|
2238
|
-
* Every reason the served copy gives for not reading the source\'s table in this model: the `reason` of each `served-copy-not-served` package warning on that model that names the source or the model\'s whole copy, the codes `
|
|
2270
|
+
* Every reason the served copy gives for not reading the source\'s table in this model: the `reason` of each `served-copy-not-served` package warning on that model that names the source or the model\'s whole copy, the codes `publisher_served_copy_outcome_total` counts, most actionable first (for example `cross_connection_join` before `fields_not_carried`): `cross_connection_join`, `cross_connection_unbuilt`, `sql_embed_cross_connection` (a `.sql()` source reads it through `%{}` on another connection than its table is read on: a storage destination, or a managed catalog read through one), `sql_embed_bare` (a `.sql()` source embeds it bare, `%{ x }`, which its stored table cannot be embedded as), `inline_join_kept`, `read_terms_not_kept`, `refinement_left_as_written` (declared by refinement alone over a base whose filter or gate its table does not hold, and reading no re-rooted base), `fields_not_carried`, `column_types`, `classification_not_kept`, `pair_join_not_found`, `pair_not_compiled`, `definition_not_parsed`, `compile_failed`, `no_declaration`, `reroot_not_compiled`. With no warning naming one, `inherited_gate` alone (it is re-rooted, or read through a re-rooted base, but a row-level gate declared on a source the re-root replaces cannot be grafted on the copy, so its queries are answered live, under that gate), `through_base` alone (a refinement left as written by design, which reads the re-rooted source it refines by name, so that source\'s table answers its queries and its own is unread), or `not_rerooted` alone (no reason at all, a Publisher defect; also `servePathReason`\'s value for that case). Never empty. An open set: treat an unknown value as `not_rerooted`.
|
|
2239
2271
|
*/
|
|
2240
2272
|
'reasons': Array<string>;
|
|
2241
2273
|
}
|
|
@@ -2321,7 +2353,7 @@ export interface OmittedSource {
|
|
|
2321
2353
|
*/
|
|
2322
2354
|
'sourceID': string;
|
|
2323
2355
|
/**
|
|
2324
|
-
* Why the source was left out, as a code. An OPEN set: a client must accept a code it does not know (read it as a failure) rather than reject the plan. Today\'s codes: `unkeyable` (Malloy could not key the source\'s build: an unbound parameter or a given with no value); `eligibility_check_failed` (an eligibility gate failed with an error rather than a refusal); `projection_failed` (the plan entry could not otherwise be computed); `rollup_companion_failed` (the generated `#(rollup)` rollup companion, which also plans v1 `#@ preaggregate` rollups, did not plan or compile); `rollup_companion_blanking_failed` (that companion was not built because a `#@` line of the author\'s files could not be set aside); `materialize_companion_failed` (the generated `#(materialize)` companion did not plan or compile); `persisted_view_companion_failed` (the persisted-view companion did not plan or compile); `
|
|
2356
|
+
* Why the source was left out, as a code. An OPEN set: a client must accept a code it does not know (read it as a failure) rather than reject the plan. Today\'s codes: `unkeyable` (Malloy could not key the source\'s build: an unbound parameter or a given with no value); `eligibility_check_failed` (an eligibility gate failed with an error rather than a refusal); `projection_failed` (the plan entry could not otherwise be computed); `rollup_companion_failed` (the generated `#(rollup)` rollup companion, which also plans v1 `#@ preaggregate` rollups, did not plan or compile); `rollup_companion_blanking_failed` (that companion was not built because a `#@` line of the author\'s files could not be set aside); `materialize_companion_failed` (the generated `#(materialize)` companion did not plan or compile); `persisted_view_companion_failed` (the persisted-view companion did not plan or compile); `persist_companion_failed` (planning a model file\'s `#@ persist` sources failed, so none of the ones it declares were planned; the file\'s other legs and the package\'s other files still plan).
|
|
2325
2357
|
*/
|
|
2326
2358
|
'reason': string;
|
|
2327
2359
|
}
|
|
@@ -2390,7 +2422,7 @@ export interface Package {
|
|
|
2390
2422
|
*/
|
|
2391
2423
|
'exploresWarnings'?: Array<string>;
|
|
2392
2424
|
/**
|
|
2393
|
-
* Set only on the response of a reload (`?reload=true`), when the package materializes anything: each materialized item, with its tier, destination, state, whether queries are answered from it, and why not. Ignored on create and update requests.
|
|
2425
|
+
* Set only on the response of a reload (`?reload=true`) or a dry-run publish (`?dryRun=true`), when the package materializes anything: each materialized item, with its tier, destination, state, whether queries are answered from it, and why not. A dry run builds and binds nothing, so none of its items is `built` or `serves`. Ignored on create and update requests.
|
|
2394
2426
|
*/
|
|
2395
2427
|
'materializationSummary'?: MaterializationSummary;
|
|
2396
2428
|
/**
|
|
@@ -2692,6 +2724,10 @@ export interface PackageServingState {
|
|
|
2692
2724
|
* Server-computed, read-only: for each source the package materializes (each `#@ persist` source and each synthesized rollup), whether queries are answered from its table, and when not, why and what to change. Recomputed on every read from the build plan and the binding as they stand, so it moves with each bind. Absent when the package materializes nothing. A `live` verdict is the package-level form of a live fallback that is otherwise visible only per query: a source no published source reaches, one under a row-level gate the storage tier cannot keep. `POST …/packages?dryRun=true` answers the same verdicts for a package before it is published, with each stored source\'s named views checked as well.
|
|
2693
2725
|
*/
|
|
2694
2726
|
'serveVerdicts'?: Array<ServeVerdict>;
|
|
2727
|
+
/**
|
|
2728
|
+
* Server-computed, read-only: each materialized item of the loaded copy on the package\'s published surface, with its tier, destination, state, whether queries are answered from it, and why not, as a reload\'s response carries it. An item off that surface is counted in `hiddenItems`, never named, as the `/status` digest counts it. Recomputed on every read, like `serveVerdicts`. Absent when the package materializes nothing or no copy is loaded. `malloy-pub materialize --wait` prints it when a run settles.
|
|
2729
|
+
*/
|
|
2730
|
+
'materializationSummary'?: MaterializationSummary;
|
|
2695
2731
|
}
|
|
2696
2732
|
export declare const PackageServingStateArchiveStatusEnum: {
|
|
2697
2733
|
readonly Archive: "archive";
|
|
@@ -2772,7 +2808,7 @@ export interface PackageStatusEntry {
|
|
|
2772
2808
|
*/
|
|
2773
2809
|
'exploresWarnings'?: Array<string>;
|
|
2774
2810
|
/**
|
|
2775
|
-
* Set only on the response of a reload (`?reload=true`), when the package materializes anything: each materialized item, with its tier, destination, state, whether queries are answered from it, and why not. Ignored on create and update requests.
|
|
2811
|
+
* Set only on the response of a reload (`?reload=true`) or a dry-run publish (`?dryRun=true`), when the package materializes anything: each materialized item, with its tier, destination, state, whether queries are answered from it, and why not. A dry run builds and binds nothing, so none of its items is `built` or `serves`. Ignored on create and update requests.
|
|
2776
2812
|
*/
|
|
2777
2813
|
'materializationSummary'?: MaterializationSummary;
|
|
2778
2814
|
/**
|
|
@@ -2855,7 +2891,7 @@ export interface PackageStatusEntry {
|
|
|
2855
2891
|
*/
|
|
2856
2892
|
'secureGivens'?: Array<SecureGivenSummary>;
|
|
2857
2893
|
/**
|
|
2858
|
-
* Set on a loaded copy that materializes anything: counts of its materialized items by state, and the ones not answered from a table, with reason codes. Recomputed at most every few seconds. The full rows are on the reload response
|
|
2894
|
+
* Set on a loaded copy that materializes anything: counts of its materialized items by state, and the ones not answered from a table, with reason codes. Recomputed at most every few seconds. The full rows are on the reload response, `compile` at scope `package`, and `GET …/packages/{packageName}/status` (`materializationSummary`).
|
|
2859
2895
|
*/
|
|
2860
2896
|
'materializationDigest'?: MaterializationDigest;
|
|
2861
2897
|
}
|
|
@@ -2919,7 +2955,7 @@ export interface PackageStatusEntryFields {
|
|
|
2919
2955
|
*/
|
|
2920
2956
|
'boundManifestUri'?: string | null;
|
|
2921
2957
|
/**
|
|
2922
|
-
* Set on a loaded copy that materializes anything: counts of its materialized items by state, and the ones not answered from a table, with reason codes. Recomputed at most every few seconds. The full rows are on the reload response
|
|
2958
|
+
* Set on a loaded copy that materializes anything: counts of its materialized items by state, and the ones not answered from a table, with reason codes. Recomputed at most every few seconds. The full rows are on the reload response, `compile` at scope `package`, and `GET …/packages/{packageName}/status` (`materializationSummary`).
|
|
2923
2959
|
*/
|
|
2924
2960
|
'materializationDigest'?: MaterializationDigest;
|
|
2925
2961
|
}
|
|
@@ -3046,7 +3082,7 @@ export interface PackageWarningsInner {
|
|
|
3046
3082
|
*/
|
|
3047
3083
|
'message'?: string;
|
|
3048
3084
|
/**
|
|
3049
|
-
* 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. `render-tag`: a render annotation the renderer cannot apply as written, malformed for its field (`error`) or inert where it sits (`warn`); one per finding, `model` its file and `subject` the query or view it sits on. `render-tag-check-failed`: a model whose render-tag check did not finish (it could not be read, `error`, or the validator failed, `warn`), so its render-tag findings are unknown rather than clean; reported by a package-scope compile, one per model. `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 `#@ preaggregate` line, naming the `#(rollup)` line it is read as, or one per measure for `#(preaggregate)`; `model` its file, `subject` the source and the message the measure; `warn`). `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); 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-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, or, for a `join_one` the rollup\'s grain reads, queries that read nothing through it, 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`, `sql_embed_cross_connection`, `sql_embed_bare`; an open set) (`subject` the source; `warn`). `model-recompile-failed`: a model file that compiled before did not compile when the package bound new tables, although neither its text nor that of any file it imports changed since (most often because a table it reads directly was dropped), so the file keeps serving the model it last compiled rather than answering every query on its sources with the compile error, and the package reads `stale: true` in `/status` `loadErrors`. A file an author edited that fails to compile is never kept: it answers with its compile error. The message carries the compile error and names the file\'s sources, and which of them stopped serving their stored tables because an upstream table they were built from changed (those answer live, and read `incompatible`, `upstream_altered`) (`model` the file; `reason` `compile_failed`; `warn`). Cleared by the next bind or reload that compiles the file. `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`). `simulation-manifest-bound`: a package or version whose `manifestLocation` simulated materialization left unbound, its manifest never fetched, so it serves live (`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, or, for a `join_one` its grain reads, a query reading nothing through it; it clears once a build finds the key unique (one per rollup and key; `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.
|
|
3085
|
+
* 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. `render-tag`: a render annotation the renderer cannot apply as written, malformed for its field (`error`) or inert where it sits (`warn`); one per finding, `model` its file and `subject` the query or view it sits on. `render-tag-check-failed`: a model whose render-tag check did not finish (it could not be read, `error`, or the validator failed, `warn`), so its render-tag findings are unknown rather than clean; reported by a package-scope compile, one per model. `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 `#@ preaggregate` line, naming the `#(rollup)` line it is read as, or one per measure for `#(preaggregate)`; `model` its file, `subject` the source and the message the measure; `warn`). `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); 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-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, or, for a `join_one` the rollup\'s grain reads, queries that read nothing through it, 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`, `refinement_left_as_written`, `cross_connection_join`, `inline_join_kept`, `reroot_not_compiled`, `classification_not_kept`, `sql_embed_cross_connection`, `sql_embed_bare`; an open set) (`subject` the source; `warn`). `model-recompile-failed`: a model file that compiled before did not compile when the package bound new tables, although neither its text nor that of any file it imports changed since (most often because a table it reads directly was dropped), so the file keeps serving the model it last compiled rather than answering every query on its sources with the compile error, and the package reads `stale: true` in `/status` `loadErrors`. A file an author edited that fails to compile is never kept: it answers with its compile error. The message carries the compile error and names the file\'s sources, and which of them stopped serving their stored tables because an upstream table they were built from changed (those answer live, and read `incompatible`, `upstream_altered`) (`model` the file; `reason` `compile_failed`; `warn`). Cleared by the next bind or reload that compiles the file. `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`). `simulation-manifest-bound`: a package or version whose `manifestLocation` simulated materialization left unbound, its manifest never fetched, so it serves live (`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, or, for a `join_one` its grain reads, a query reading nothing through it; it clears once a build finds the key unique (one per rollup and key; `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.
|
|
3050
3086
|
*/
|
|
3051
3087
|
'code'?: string;
|
|
3052
3088
|
/**
|
|
@@ -3404,6 +3440,15 @@ export interface QueryPathServer {
|
|
|
3404
3440
|
* How a `materialized` table was read, when it was not today\'s serve shape: `served_copy` means the model\'s served copy answered (the author\'s own files with each stored source re-rooted on its table). An open string; absent otherwise.
|
|
3405
3441
|
*/
|
|
3406
3442
|
'via'?: string;
|
|
3443
|
+
'mode'?: MaterializationMode;
|
|
3444
|
+
/**
|
|
3445
|
+
* The SQL that reads the table that answered, in every mode. Under simulated materialization it is what would have run, since the table does not exist and the rows came from live. Given only in the full response, beside the result\'s own `sql`: a `compactJson` response carries no SQL, so it leaves this out. Absent too when `kind` is `live`, or when the SQL could not be prepared.
|
|
3446
|
+
*/
|
|
3447
|
+
'tableSql'?: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* What the query\'s rows, latency and cost were measured on: `table`, the table that answered; `live`, the warehouse (a simulated table, or a stored run that fell back to live). A latency or cost measured on `live` is never the table\'s. Absent when `kind` is `live`.
|
|
3450
|
+
*/
|
|
3451
|
+
'measuredOn'?: QueryPathServerMeasuredOnEnum;
|
|
3407
3452
|
}
|
|
3408
3453
|
export declare const QueryPathServerOriginEnum: {
|
|
3409
3454
|
readonly Persist: "persist";
|
|
@@ -3418,6 +3463,11 @@ export declare const QueryPathServerTierEnum: {
|
|
|
3418
3463
|
readonly Storage: "storage";
|
|
3419
3464
|
};
|
|
3420
3465
|
export type QueryPathServerTierEnum = typeof QueryPathServerTierEnum[keyof typeof QueryPathServerTierEnum];
|
|
3466
|
+
export declare const QueryPathServerMeasuredOnEnum: {
|
|
3467
|
+
readonly Table: "table";
|
|
3468
|
+
readonly Live: "live";
|
|
3469
|
+
};
|
|
3470
|
+
export type QueryPathServerMeasuredOnEnum = typeof QueryPathServerMeasuredOnEnum[keyof typeof QueryPathServerMeasuredOnEnum];
|
|
3421
3471
|
/**
|
|
3422
3472
|
* What kind of answer: `view`, a persisted view\'s table; `query`, a persisted named query\'s table (`#@ persist` on a top-level `query:`); `rollup`, a pre-aggregation; `materialized`, a materialized source\'s table (`origin` `persist` or `materialize`; this kind is not extended); `live`, the source\'s own warehouse. A client treats a kind it does not know as a materialized table it cannot name.
|
|
3423
3473
|
*/
|
|
@@ -3588,6 +3638,23 @@ export interface QueryShape {
|
|
|
3588
3638
|
*/
|
|
3589
3639
|
'timeZone'?: string;
|
|
3590
3640
|
}
|
|
3641
|
+
/**
|
|
3642
|
+
* The stored source a refused refinement is read through, and the table that answers its queries.
|
|
3643
|
+
*/
|
|
3644
|
+
export interface ReadsThrough {
|
|
3645
|
+
/**
|
|
3646
|
+
* The stored source it refines, by name.
|
|
3647
|
+
*/
|
|
3648
|
+
'sourceName': string;
|
|
3649
|
+
/**
|
|
3650
|
+
* That source\'s identity, as `ServeVerdict.sourceID` gives one (package-relative on a `MaterializationItem`, as its own `sourceID` is): a name alone is ambiguous across models.
|
|
3651
|
+
*/
|
|
3652
|
+
'sourceID': string;
|
|
3653
|
+
/**
|
|
3654
|
+
* That source\'s table: its `sourceEntityId` in the build plan, the `tableId` a query\'s `path.servedBy` names when this table answers it. Absent when the plan does not address the source.
|
|
3655
|
+
*/
|
|
3656
|
+
'tableId'?: string;
|
|
3657
|
+
}
|
|
3591
3658
|
/**
|
|
3592
3659
|
* COPY = CREATE TABLE AS SELECT, the only realization built. SNAPSHOT (a warehouse clone or snapshot) is refused.
|
|
3593
3660
|
*/
|
|
@@ -3621,7 +3688,7 @@ export interface RefusedSource {
|
|
|
3621
3688
|
*/
|
|
3622
3689
|
'tier': RefusedSourceTierEnum;
|
|
3623
3690
|
/**
|
|
3624
|
-
* The bounded refusal reason; `message` says the specifics. On every mechanism: `free_parameter
|
|
3691
|
+
* The bounded refusal reason; `message` says the specifics. On every mechanism: `free_parameter` (the source declares a parameter left unbound: a source with one is never stored, whether or not its rows read it); `bound_invocation_unkeyable` (the source extends a bound invocation of a source that reads the parameter it binds, `s(x is 50) extend { … }`, whose build cannot be keyed: write it as a query source over the invocation, `s(x is 50) -> { select: * } extend { … }`, which is stored); `address_unresolved` (a run\'s own refusal of a source whose build Malloy could not key, so its content address could not be resolved, of any other shape: it alone is not built, and the rest of the package is); 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` (a declaration whose `name=` puts it on one table with another, so neither is built; a package that declares one 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). `container_not_found` (a database table whose `name=` places it in a container its warehouse does not hold: a BigQuery dataset that does not exist in the project the `name=` names, else the connection\'s billing project, or one in another location than the connection declares; a Postgres, Snowflake or DuckDB schema that does not exist. Read once per connection and container when the package is planned; `message` names the container, and the location for a mismatch, and says to create it or change `name=`. A read that fails refuses nothing, and a build checks again before it writes anything. Planned again once a reload, or a plan refresh, finds the container; `storage=` declarations are never checked). A persisted view or named query: `materialization_off` (retained, no longer produced: materialization v2 is always 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), `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.
|
|
3625
3692
|
*/
|
|
3626
3693
|
'reason': RefusedSourceReasonEnum;
|
|
3627
3694
|
/**
|
|
@@ -3652,9 +3719,6 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
3652
3719
|
readonly FreeParameter: "free_parameter";
|
|
3653
3720
|
readonly Given: "given";
|
|
3654
3721
|
readonly GivenInPersistedQuery: "given_in_persisted_query";
|
|
3655
|
-
readonly DynamicProjection: "dynamic_projection";
|
|
3656
|
-
readonly DynamicJoin: "dynamic_join";
|
|
3657
|
-
readonly DynamicJoinedWhere: "dynamic_joined_where";
|
|
3658
3722
|
readonly InheritedWhereWithGiven: "inherited_where_with_given";
|
|
3659
3723
|
readonly PartitionWithoutStorage: "partition_without_storage";
|
|
3660
3724
|
readonly PartitionColumnUnknown: "partition_column_unknown";
|
|
@@ -3695,6 +3759,8 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
3695
3759
|
readonly UpstreamUnread: "upstream_unread";
|
|
3696
3760
|
readonly UpstreamTableUnusable: "upstream_table_unusable";
|
|
3697
3761
|
readonly ContainerNotFound: "container_not_found";
|
|
3762
|
+
readonly BoundInvocationUnkeyable: "bound_invocation_unkeyable";
|
|
3763
|
+
readonly AddressUnresolved: "address_unresolved";
|
|
3698
3764
|
};
|
|
3699
3765
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
3700
3766
|
/**
|
|
@@ -4092,23 +4158,17 @@ export interface ServeVerdict {
|
|
|
4092
4158
|
*/
|
|
4093
4159
|
'servePath'?: string;
|
|
4094
4160
|
/**
|
|
4095
|
-
* Why the path is what it is, when that is not the source\'s own table. With a `live` `servePath`: `refused` (the plan refused it), `inherited_gate` (a row-level gate declared on a base the served copy replaces, which it cannot graft), the served copy\'s reason for leaving the source as written (`column_types`, `fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and the like), the verdict\'s own `reason`, or `not_rerooted` when none names one. With a `served_copy` `servePath`: `through_base` (an extension of a re-rooted source, left as written, which reads that source\'s table by name). An open string.
|
|
4161
|
+
* Why the path is what it is, when that is not the source\'s own table. With a `live` `servePath`: `refused` (the plan refused it), `inherited_gate` (a row-level gate declared on a base the served copy replaces, which it cannot graft), the served copy\'s reason for leaving the source as written (`column_types`, `fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and the like), the verdict\'s own `reason`, or `not_rerooted` when none names one. With a `served_copy` `servePath`: `through_base` (an extension of a re-rooted source, left as written, which reads that source\'s table by name, a plan-refused one with `readsThrough` included). An open string.
|
|
4096
4162
|
*/
|
|
4097
4163
|
'servePathReason'?: string;
|
|
4098
|
-
/**
|
|
4099
|
-
* Deprecated: the same value as `servePath`, under its old name. Emitted beside it for this release only.
|
|
4100
|
-
* @deprecated
|
|
4101
|
-
*/
|
|
4102
|
-
'cutoverPath'?: string;
|
|
4103
|
-
/**
|
|
4104
|
-
* Deprecated: the same value as `servePathReason`, under its old name. Emitted beside it for this release only.
|
|
4105
|
-
* @deprecated
|
|
4106
|
-
*/
|
|
4107
|
-
'cutoverReason'?: string;
|
|
4108
4164
|
/**
|
|
4109
4165
|
* On a dry run, for a source stored with `storage=`: each named view on it, and whether it compiles against a compile-only served copy. A view that does not is answered live, and `detail` carries the compile error that says why (usually a field the stored table cannot reproduce).
|
|
4110
4166
|
*/
|
|
4111
4167
|
'views'?: Array<ViewServeVerdict>;
|
|
4168
|
+
/**
|
|
4169
|
+
* With a `refused` reason: present when the source has no table of its own but the served copy answers its queries from the table of a stored source it refines (by `extend` or rename, never across a query), with that source\'s row-level gate applied, so a query on it reports `path.servedBy.kind: materialized` with `via: served_copy`. `verdict` and `reason` still describe its own table, which is never built. Read off the compiled served copies and the build plan as they stand, never by running a query; absent when no served copy reads it through a base (the base is reached across a query, the served copy declines the base or the source itself for a gate, or the copy has yet to compile). On a dry run it is judged from the preview\'s served copy, compiled over bindings declared from the plan, as `servePath` is, and such a source\'s `servePath` is `served_copy` with `servePathReason` `through_base`.
|
|
4170
|
+
*/
|
|
4171
|
+
'readsThrough'?: ReadsThrough;
|
|
4112
4172
|
}
|
|
4113
4173
|
/**
|
|
4114
4174
|
* 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.
|
|
@@ -4148,10 +4208,6 @@ export interface ServerStatus {
|
|
|
4148
4208
|
* This server\'s release version, for example \"0.8.2\". Use it to tell which build answered, for instance to rule out an old copy served from the npx cache.
|
|
4149
4209
|
*/
|
|
4150
4210
|
'version'?: string;
|
|
4151
|
-
/**
|
|
4152
|
-
* \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on`, the default); \"off\" when it installs the package in place, as before versions (`PUBLISHER_PACKAGE_VERSIONING=off`). Reads and the versions routes answer in both. Absent from a server that predates versions, which reads as \"off\": how an orchestrator talking to servers mid-rollout tells which ones publish native versions.
|
|
4153
|
-
*/
|
|
4154
|
-
'packageVersioning'?: ServerStatusPackageVersioningEnum;
|
|
4155
4211
|
/**
|
|
4156
4212
|
* The `versionPromotion` setting this server runs with. With \"explicit\", a publish never moves a package\'s `latest`; only `PUT .../packages/{packageName}/latest` does.
|
|
4157
4213
|
*/
|
|
@@ -4188,11 +4244,6 @@ export declare const ServerStatusOperationalStateEnum: {
|
|
|
4188
4244
|
readonly Throttled: "throttled";
|
|
4189
4245
|
};
|
|
4190
4246
|
export type ServerStatusOperationalStateEnum = typeof ServerStatusOperationalStateEnum[keyof typeof ServerStatusOperationalStateEnum];
|
|
4191
|
-
export declare const ServerStatusPackageVersioningEnum: {
|
|
4192
|
-
readonly Off: "off";
|
|
4193
|
-
readonly On: "on";
|
|
4194
|
-
};
|
|
4195
|
-
export type ServerStatusPackageVersioningEnum = typeof ServerStatusPackageVersioningEnum[keyof typeof ServerStatusPackageVersioningEnum];
|
|
4196
4247
|
export declare const ServerStatusVersionPromotionEnum: {
|
|
4197
4248
|
readonly OnPublish: "on-publish";
|
|
4198
4249
|
readonly Explicit: "explicit";
|
|
@@ -4305,7 +4356,7 @@ export declare const SkillSummaryOriginEnum: {
|
|
|
4305
4356
|
};
|
|
4306
4357
|
export type SkillSummaryOriginEnum = typeof SkillSummaryOriginEnum[keyof typeof SkillSummaryOriginEnum];
|
|
4307
4358
|
/**
|
|
4308
|
-
* Why a table could not answer a query. `NOT_BUILT`, it is not bound to this package yet; `NOT_SERVED`, either its serve verdict is `live`, so it answers no query, and the candidate\'s `code` names the verdict\'s reason, or the table otherwise serves and the served copy declined this one query on it. A `storage=` table only the served copy reads is then `NOT_SERVED` with `code` `served_copy` when the served copy re-roots nothing the query reads, cannot graft a gate on the queried source, would answer without a column a gate or the result (through a wildcard) needs because it leaves that column out of a stored table\'s type, would expose a field the compile of record does not classify or carry, resolves a composite to another member than live, or the source\'s ungated `where:` reads a column the table does not hold exactly or does not compare as its source does (a zoned timestamp, or a collation: on Postgres a database table\'s stored collation that differs from its source\'s or cannot be read). A database table is `NOT_SERVED` this way only for
|
|
4359
|
+
* Why a table could not answer a query. `NOT_BUILT`, it is not bound to this package yet; `NOT_SERVED`, either its serve verdict is `live`, so it answers no query, and the candidate\'s `code` names the verdict\'s reason, or the table otherwise serves and the served copy declined this one query on it. A `storage=` table only the served copy reads is then `NOT_SERVED` with `code` `served_copy` when the served copy re-roots nothing the query reads, cannot graft a gate on the queried source, would answer without a column a gate or the result (through a wildcard) needs because it leaves that column out of a stored table\'s type, would expose a field the compile of record does not classify or carry, resolves a composite to another member than live, or the source\'s ungated `where:` reads a column the table does not hold exactly or does not compare as its source does (a zoned timestamp, or a collation: on Postgres a database table\'s stored collation that differs from its source\'s or cannot be read), the caller\'s own filters or the result\'s string ordering or grouping compare a string the table does not compare as its source does, or an access decision (a gate, or a given) would read a table stored as of its build. A database table is `NOT_SERVED` this way only for those last cases, with a `detail` and no `code`. A query that itself names a column a stored table leaves out is `MISSING_FIELD`, and a gate the table cannot keep is `ROW_LEVEL_GATE`; `OPTED_OUT`, the queried source opts out of its tables with `#@ -persist`; `MISSING_FIELD`, the query reads a field the table lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`, the query is not the shape the stored result answers: it is not a call of the persisted view or query, it refines the call, or its text names beside the call a name the stored result\'s variant takes over; `ROW_LEVEL_GATE`, answering from it would bypass a row-level gate on the queried source, or, from a rollup, persisted view or persisted query, the source\'s ungated `where:` reads a column the table does not hold exactly or does not compare as its source does, or an access decision (a gate, or a given) would read a table stored as of its build; `COMPARISON_SEMANTICS`, from a rollup, persisted view or persisted query, the caller\'s own filters, or the string the result orders or groups by, compare a string the table does not compare as the source does (a collation, or a zoned timestamp), or could not be read to tell (releases through 0.18.7 said `ROW_LEVEL_GATE` for these on a rollup or past a gate, and `MISSING_FIELD` on a persisted view or query); `GRAIN_TOO_COARSE`, a rollup\'s grain does not cover the query\'s groups or filters; `TIME_ZONE`, it was built in another time zone than the query\'s; `CROSS_CONNECTION`, the query needs a join the table\'s connection cannot reach; `COUNT_SEMANTICS`, an aggregate the table cannot reproduce as the live query computes it; `STALE`, it is past its freshness window; `READ_FAILED`, it was chosen but reading it failed at run time and the query was answered live: its freshness fallback allowed live, or the failure answers live whatever the fallback says (DECIMAL arithmetic past what the destination holds, or a destination catalog missing on the worker). A closed list to which codes may be added, so a client treats an unknown one as a skip it cannot explain.
|
|
4309
4360
|
*/
|
|
4310
4361
|
export declare const SkipReason: {
|
|
4311
4362
|
readonly NotBuilt: "NOT_BUILT";
|
|
@@ -4318,11 +4369,9 @@ export declare const SkipReason: {
|
|
|
4318
4369
|
readonly TimeZone: "TIME_ZONE";
|
|
4319
4370
|
readonly CrossConnection: "CROSS_CONNECTION";
|
|
4320
4371
|
readonly CountSemantics: "COUNT_SEMANTICS";
|
|
4372
|
+
readonly ComparisonSemantics: "COMPARISON_SEMANTICS";
|
|
4321
4373
|
readonly Stale: "STALE";
|
|
4322
4374
|
readonly ReadFailed: "READ_FAILED";
|
|
4323
|
-
readonly Warned: "WARNED";
|
|
4324
|
-
readonly Contract: "CONTRACT";
|
|
4325
|
-
readonly RunFailed: "RUN_FAILED";
|
|
4326
4375
|
};
|
|
4327
4376
|
export type SkipReason = typeof SkipReason[keyof typeof SkipReason];
|
|
4328
4377
|
/**
|
|
@@ -4760,11 +4809,11 @@ export interface TableStats {
|
|
|
4760
4809
|
'rowCount'?: number | null;
|
|
4761
4810
|
'rowCountBand'?: TableStatsRowCountBand;
|
|
4762
4811
|
/**
|
|
4763
|
-
* The table\'s stored bytes (Postgres, its total relation size with indexes and TOAST); null when not recorded.
|
|
4812
|
+
* The table\'s stored bytes (Postgres, its total relation size with indexes and TOAST; DuckLake, its live data and delete files); null when not recorded.
|
|
4764
4813
|
*/
|
|
4765
4814
|
'bytes'?: number | null;
|
|
4766
4815
|
/**
|
|
4767
|
-
* When the table\'s data last changed; null when the catalog does not record it.
|
|
4816
|
+
* When the table\'s data last changed; null when the catalog does not record it. On DuckLake, the latest snapshot that wrote or retired the table\'s storage (a compaction or a flush included); it may be null, or earlier than the true last write, after snapshot expiry.
|
|
4768
4817
|
*/
|
|
4769
4818
|
'lastModified'?: string | null;
|
|
4770
4819
|
}
|
|
@@ -4774,7 +4823,7 @@ export declare const TableStatsStatusEnum: {
|
|
|
4774
4823
|
};
|
|
4775
4824
|
export type TableStatsStatusEnum = typeof TableStatsStatusEnum[keyof typeof TableStatsStatusEnum];
|
|
4776
4825
|
/**
|
|
4777
|
-
* Present only when `rowCount` is an estimate
|
|
4826
|
+
* Present only when `rowCount` is an estimate. Postgres: the spread of the catalog\'s own estimates (`reltuples`, that value scaled to the table\'s current pages, and the statistics collector\'s live-row count). DuckLake, where its catalog leaves deletes unaccounted: `high` is `rowCount`, which counts them as nothing, and `low` takes off the most they could remove. DuckDB and MotherDuck, where the count is declined: `high` is `rowCount`, DuckDB\'s `estimated_size` (the rows its row groups hold, which a delete does not lower), and `low` is 0. It is not a confidence interval.
|
|
4778
4827
|
*/
|
|
4779
4828
|
export interface TableStatsRowCountBand {
|
|
4780
4829
|
'low': number;
|
|
@@ -5230,7 +5279,7 @@ export type GetAgentSkillsEnum = typeof GetAgentSkillsEnum[keyof typeof GetAgent
|
|
|
5230
5279
|
*/
|
|
5231
5280
|
export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5232
5281
|
/**
|
|
5233
|
-
* Creates a new database connection in the specified environment.
|
|
5282
|
+
* Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
|
|
5234
5283
|
* @summary Create a new database connection
|
|
5235
5284
|
* @param {string} environmentName Name of the environment
|
|
5236
5285
|
* @param {string} connectionName Name of the connection
|
|
@@ -5284,7 +5333,7 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
5284
5333
|
*/
|
|
5285
5334
|
getTableInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, include?: Array<GetTableInPackageIncludeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5286
5335
|
/**
|
|
5287
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5336
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5288
5337
|
* @summary Read a table\'s row count, bytes and last modification
|
|
5289
5338
|
* @param {string} environmentName Name of the environment
|
|
5290
5339
|
* @param {string} connectionName Name of the connection
|
|
@@ -5295,7 +5344,7 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
5295
5344
|
*/
|
|
5296
5345
|
getTableStats: (environmentName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5297
5346
|
/**
|
|
5298
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5347
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5299
5348
|
* @summary Read a table\'s row count, bytes and last modification (per-package)
|
|
5300
5349
|
* @param {string} environmentName Name of the environment
|
|
5301
5350
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -5441,7 +5490,7 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
5441
5490
|
*/
|
|
5442
5491
|
export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
5443
5492
|
/**
|
|
5444
|
-
* Creates a new database connection in the specified environment.
|
|
5493
|
+
* Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
|
|
5445
5494
|
* @summary Create a new database connection
|
|
5446
5495
|
* @param {string} environmentName Name of the environment
|
|
5447
5496
|
* @param {string} connectionName Name of the connection
|
|
@@ -5495,7 +5544,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
5495
5544
|
*/
|
|
5496
5545
|
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, include?: Array<GetTableInPackageIncludeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Table>>;
|
|
5497
5546
|
/**
|
|
5498
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5547
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5499
5548
|
* @summary Read a table\'s row count, bytes and last modification
|
|
5500
5549
|
* @param {string} environmentName Name of the environment
|
|
5501
5550
|
* @param {string} connectionName Name of the connection
|
|
@@ -5506,7 +5555,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
5506
5555
|
*/
|
|
5507
5556
|
getTableStats(environmentName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TableStats>>;
|
|
5508
5557
|
/**
|
|
5509
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5558
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5510
5559
|
* @summary Read a table\'s row count, bytes and last modification (per-package)
|
|
5511
5560
|
* @param {string} environmentName Name of the environment
|
|
5512
5561
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -5652,7 +5701,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
5652
5701
|
*/
|
|
5653
5702
|
export declare const ConnectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5654
5703
|
/**
|
|
5655
|
-
* Creates a new database connection in the specified environment.
|
|
5704
|
+
* Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
|
|
5656
5705
|
* @summary Create a new database connection
|
|
5657
5706
|
* @param {string} environmentName Name of the environment
|
|
5658
5707
|
* @param {string} connectionName Name of the connection
|
|
@@ -5706,7 +5755,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
5706
5755
|
*/
|
|
5707
5756
|
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, include?: Array<GetTableInPackageIncludeEnum>, options?: RawAxiosRequestConfig): AxiosPromise<Table>;
|
|
5708
5757
|
/**
|
|
5709
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5758
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5710
5759
|
* @summary Read a table\'s row count, bytes and last modification
|
|
5711
5760
|
* @param {string} environmentName Name of the environment
|
|
5712
5761
|
* @param {string} connectionName Name of the connection
|
|
@@ -5717,7 +5766,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
5717
5766
|
*/
|
|
5718
5767
|
getTableStats(environmentName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): AxiosPromise<TableStats>;
|
|
5719
5768
|
/**
|
|
5720
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5769
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5721
5770
|
* @summary Read a table\'s row count, bytes and last modification (per-package)
|
|
5722
5771
|
* @param {string} environmentName Name of the environment
|
|
5723
5772
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -5863,7 +5912,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
5863
5912
|
*/
|
|
5864
5913
|
export declare class ConnectionsApi extends BaseAPI {
|
|
5865
5914
|
/**
|
|
5866
|
-
* Creates a new database connection in the specified environment.
|
|
5915
|
+
* Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
|
|
5867
5916
|
* @summary Create a new database connection
|
|
5868
5917
|
* @param {string} environmentName Name of the environment
|
|
5869
5918
|
* @param {string} connectionName Name of the connection
|
|
@@ -5917,7 +5966,7 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
5917
5966
|
*/
|
|
5918
5967
|
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, include?: Array<GetTableInPackageIncludeEnum>, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table, any, {}, any>>;
|
|
5919
5968
|
/**
|
|
5920
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5969
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5921
5970
|
* @summary Read a table\'s row count, bytes and last modification
|
|
5922
5971
|
* @param {string} environmentName Name of the environment
|
|
5923
5972
|
* @param {string} connectionName Name of the connection
|
|
@@ -5928,7 +5977,7 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
5928
5977
|
*/
|
|
5929
5978
|
getTableStats(environmentName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<TableStats, any, {}, any>>;
|
|
5930
5979
|
/**
|
|
5931
|
-
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples
|
|
5980
|
+
* Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
|
|
5932
5981
|
* @summary Read a table\'s row count, bytes and last modification (per-package)
|
|
5933
5982
|
* @param {string} environmentName Name of the environment
|
|
5934
5983
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -6254,7 +6303,7 @@ export declare class DatabasesApi extends BaseAPI {
|
|
|
6254
6303
|
*/
|
|
6255
6304
|
export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6256
6305
|
/**
|
|
6257
|
-
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
6306
|
+
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
|
|
6258
6307
|
* @summary Create a new environment
|
|
6259
6308
|
* @param {Environment} environment
|
|
6260
6309
|
* @param {*} [options] Override http request option.
|
|
@@ -6286,7 +6335,7 @@ export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configur
|
|
|
6286
6335
|
*/
|
|
6287
6336
|
listEnvironments: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6288
6337
|
/**
|
|
6289
|
-
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
6338
|
+
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
|
|
6290
6339
|
* @summary Update environment configuration
|
|
6291
6340
|
* @param {string} environmentName Name of the environment
|
|
6292
6341
|
* @param {Environment} environment
|
|
@@ -6300,7 +6349,7 @@ export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configur
|
|
|
6300
6349
|
*/
|
|
6301
6350
|
export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
|
|
6302
6351
|
/**
|
|
6303
|
-
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
6352
|
+
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
|
|
6304
6353
|
* @summary Create a new environment
|
|
6305
6354
|
* @param {Environment} environment
|
|
6306
6355
|
* @param {*} [options] Override http request option.
|
|
@@ -6332,7 +6381,7 @@ export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
|
|
|
6332
6381
|
*/
|
|
6333
6382
|
listEnvironments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Environment>>>;
|
|
6334
6383
|
/**
|
|
6335
|
-
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
6384
|
+
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
|
|
6336
6385
|
* @summary Update environment configuration
|
|
6337
6386
|
* @param {string} environmentName Name of the environment
|
|
6338
6387
|
* @param {Environment} environment
|
|
@@ -6346,7 +6395,7 @@ export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
|
|
|
6346
6395
|
*/
|
|
6347
6396
|
export declare const EnvironmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6348
6397
|
/**
|
|
6349
|
-
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
6398
|
+
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
|
|
6350
6399
|
* @summary Create a new environment
|
|
6351
6400
|
* @param {Environment} environment
|
|
6352
6401
|
* @param {*} [options] Override http request option.
|
|
@@ -6378,7 +6427,7 @@ export declare const EnvironmentsApiFactory: (configuration?: Configuration, bas
|
|
|
6378
6427
|
*/
|
|
6379
6428
|
listEnvironments(options?: RawAxiosRequestConfig): AxiosPromise<Array<Environment>>;
|
|
6380
6429
|
/**
|
|
6381
|
-
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
6430
|
+
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
|
|
6382
6431
|
* @summary Update environment configuration
|
|
6383
6432
|
* @param {string} environmentName Name of the environment
|
|
6384
6433
|
* @param {Environment} environment
|
|
@@ -6392,7 +6441,7 @@ export declare const EnvironmentsApiFactory: (configuration?: Configuration, bas
|
|
|
6392
6441
|
*/
|
|
6393
6442
|
export declare class EnvironmentsApi extends BaseAPI {
|
|
6394
6443
|
/**
|
|
6395
|
-
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
6444
|
+
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
|
|
6396
6445
|
* @summary Create a new environment
|
|
6397
6446
|
* @param {Environment} environment
|
|
6398
6447
|
* @param {*} [options] Override http request option.
|
|
@@ -6424,7 +6473,7 @@ export declare class EnvironmentsApi extends BaseAPI {
|
|
|
6424
6473
|
*/
|
|
6425
6474
|
listEnvironments(options?: RawAxiosRequestConfig): Promise< AxiosResponse<Environment[], any, {}, any>>;
|
|
6426
6475
|
/**
|
|
6427
|
-
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
6476
|
+
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
|
|
6428
6477
|
* @summary Update environment configuration
|
|
6429
6478
|
* @param {string} environmentName Name of the environment
|
|
6430
6479
|
* @param {Environment} environment
|
|
@@ -7002,7 +7051,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
7002
7051
|
*/
|
|
7003
7052
|
export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7004
7053
|
/**
|
|
7005
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built)
|
|
7054
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
7006
7055
|
* @summary Create a new package
|
|
7007
7056
|
* @param {string} environmentName Name of the environment
|
|
7008
7057
|
* @param {Package} _package
|
|
@@ -7032,7 +7081,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7032
7081
|
*/
|
|
7033
7082
|
getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7034
7083
|
/**
|
|
7035
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7084
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7036
7085
|
* @summary Read the persist build plan of a loaded package
|
|
7037
7086
|
* @param {string} environmentName Name of the environment
|
|
7038
7087
|
* @param {string} packageName Name of the package
|
|
@@ -7091,7 +7140,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7091
7140
|
*/
|
|
7092
7141
|
listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7093
7142
|
/**
|
|
7094
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description,
|
|
7143
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
7095
7144
|
* @summary Update package configuration
|
|
7096
7145
|
* @param {string} environmentName Name of the environment
|
|
7097
7146
|
* @param {string} packageName Name of the package
|
|
@@ -7107,7 +7156,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7107
7156
|
*/
|
|
7108
7157
|
export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
7109
7158
|
/**
|
|
7110
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built)
|
|
7159
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
7111
7160
|
* @summary Create a new package
|
|
7112
7161
|
* @param {string} environmentName Name of the environment
|
|
7113
7162
|
* @param {Package} _package
|
|
@@ -7137,7 +7186,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
7137
7186
|
*/
|
|
7138
7187
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
7139
7188
|
/**
|
|
7140
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7189
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7141
7190
|
* @summary Read the persist build plan of a loaded package
|
|
7142
7191
|
* @param {string} environmentName Name of the environment
|
|
7143
7192
|
* @param {string} packageName Name of the package
|
|
@@ -7196,7 +7245,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
7196
7245
|
*/
|
|
7197
7246
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
|
|
7198
7247
|
/**
|
|
7199
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description,
|
|
7248
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
7200
7249
|
* @summary Update package configuration
|
|
7201
7250
|
* @param {string} environmentName Name of the environment
|
|
7202
7251
|
* @param {string} packageName Name of the package
|
|
@@ -7212,7 +7261,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
7212
7261
|
*/
|
|
7213
7262
|
export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7214
7263
|
/**
|
|
7215
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built)
|
|
7264
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
7216
7265
|
* @summary Create a new package
|
|
7217
7266
|
* @param {string} environmentName Name of the environment
|
|
7218
7267
|
* @param {Package} _package
|
|
@@ -7242,7 +7291,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
7242
7291
|
*/
|
|
7243
7292
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
7244
7293
|
/**
|
|
7245
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7294
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7246
7295
|
* @summary Read the persist build plan of a loaded package
|
|
7247
7296
|
* @param {string} environmentName Name of the environment
|
|
7248
7297
|
* @param {string} packageName Name of the package
|
|
@@ -7301,7 +7350,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
7301
7350
|
*/
|
|
7302
7351
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
|
|
7303
7352
|
/**
|
|
7304
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description,
|
|
7353
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
7305
7354
|
* @summary Update package configuration
|
|
7306
7355
|
* @param {string} environmentName Name of the environment
|
|
7307
7356
|
* @param {string} packageName Name of the package
|
|
@@ -7317,7 +7366,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
7317
7366
|
*/
|
|
7318
7367
|
export declare class PackagesApi extends BaseAPI {
|
|
7319
7368
|
/**
|
|
7320
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built)
|
|
7369
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
7321
7370
|
* @summary Create a new package
|
|
7322
7371
|
* @param {string} environmentName Name of the environment
|
|
7323
7372
|
* @param {Package} _package
|
|
@@ -7347,7 +7396,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
7347
7396
|
*/
|
|
7348
7397
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
7349
7398
|
/**
|
|
7350
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7399
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
7351
7400
|
* @summary Read the persist build plan of a loaded package
|
|
7352
7401
|
* @param {string} environmentName Name of the environment
|
|
7353
7402
|
* @param {string} packageName Name of the package
|
|
@@ -7406,7 +7455,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
7406
7455
|
*/
|
|
7407
7456
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
|
|
7408
7457
|
/**
|
|
7409
|
-
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description,
|
|
7458
|
+
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
7410
7459
|
* @summary Update package configuration
|
|
7411
7460
|
* @param {string} environmentName Name of the environment
|
|
7412
7461
|
* @param {string} packageName Name of the package
|
|
@@ -7946,7 +7995,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7946
7995
|
*/
|
|
7947
7996
|
getPackageVersion: (environmentName: string, packageName: string, versionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7948
7997
|
/**
|
|
7949
|
-
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or
|
|
7998
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or installed by an earlier release with versioning off) has no versions and returns an empty list.
|
|
7950
7999
|
* @summary List a package\'s published versions
|
|
7951
8000
|
* @param {string} environmentName Name of the environment
|
|
7952
8001
|
* @param {string} packageName Name of the package
|
|
@@ -8012,7 +8061,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
|
|
|
8012
8061
|
*/
|
|
8013
8062
|
getPackageVersion(environmentName: string, packageName: string, versionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
8014
8063
|
/**
|
|
8015
|
-
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or
|
|
8064
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or installed by an earlier release with versioning off) has no versions and returns an empty list.
|
|
8016
8065
|
* @summary List a package\'s published versions
|
|
8017
8066
|
* @param {string} environmentName Name of the environment
|
|
8018
8067
|
* @param {string} packageName Name of the package
|
|
@@ -8078,7 +8127,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
|
|
|
8078
8127
|
*/
|
|
8079
8128
|
getPackageVersion(environmentName: string, packageName: string, versionId: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
8080
8129
|
/**
|
|
8081
|
-
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or
|
|
8130
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or installed by an earlier release with versioning off) has no versions and returns an empty list.
|
|
8082
8131
|
* @summary List a package\'s published versions
|
|
8083
8132
|
* @param {string} environmentName Name of the environment
|
|
8084
8133
|
* @param {string} packageName Name of the package
|
|
@@ -8144,7 +8193,7 @@ export declare class VersionsApi extends BaseAPI {
|
|
|
8144
8193
|
*/
|
|
8145
8194
|
getPackageVersion(environmentName: string, packageName: string, versionId: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
8146
8195
|
/**
|
|
8147
|
-
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or
|
|
8196
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or installed by an earlier release with versioning off) has no versions and returns an empty list.
|
|
8148
8197
|
* @summary List a package\'s published versions
|
|
8149
8198
|
* @param {string} environmentName Name of the environment
|
|
8150
8199
|
* @param {string} packageName Name of the package
|