@malloy-publisher/sdk 0.12.5 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-C2arX5Zz.cjs.js → RenderedResult-C4rimzu4.cjs.js} +3 -3
- package/dist/{RenderedResult-DqPvGZgL.es.js → RenderedResult-D5HJr2Xo.es.js} +139 -125
- package/dist/{ServerProvider-DRbZ6tLP.es.js → ServerProvider-8Eul_YOl.es.js} +1480 -1449
- package/dist/ServerProvider-Cvllj0GN.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +335 -335
- package/dist/client/api.d.ts +344 -43
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +75 -71
- package/dist/components/Package/usePackageVersions.d.ts +2 -2
- package/dist/components/RenderedResult/RenderedResult.d.ts +1 -0
- package/dist/components/ServerProvider.d.ts +18 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/dist/{useCompiledDocument-BnT2QpG0.es.js → useCompiledDocument-CwMwrEXo.es.js} +228 -218
- package/dist/{useCompiledDocument--Z7vKZL5.cjs.js → useCompiledDocument-UADoxvYb.cjs.js} +6 -6
- package/package.json +13 -12
- package/src/components/DocumentCreate/createDocument.spec.ts +126 -4
- package/src/components/DocumentCreate/createDocument.ts +38 -4
- package/src/components/Package/usePackageVersions.ts +2 -2
- package/src/components/RenderedResult/RenderedResult.tsx +25 -0
- package/src/components/ServerProvider.host.isolated.spec.tsx +95 -0
- package/src/components/ServerProvider.tsx +25 -5
- package/test/README.md +5 -3
- package/dist/ServerProvider-CqL6xzta.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -303,6 +303,10 @@ export interface BuildInstructions {
|
|
|
303
303
|
* When true, a persist upstream that is neither built here nor present in referenceManifest fails the build (compiler strict mode) instead of silently recomputing it live. Per-unit dispatch should set this true.
|
|
304
304
|
*/
|
|
305
305
|
'strictUpstreams'?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* What a strict build (`strictUpstreams: true`) does with a `storage=` source whose only build recomputes a stored upstream from the source warehouse: the source reaches the warehouse through an intermediate that no stored table can stand in for, so no build over the stored tables exists for it. `recompute` (the default, and what an absent or null value means) builds it and reports `upstreamReuse: recomputed` with the reason; `refuse` fails the source instead, with that reason in its `SourceFailure.reason` and `retryable: false`, and nothing reads the warehouse. Non-strict builds ignore it, as they ignore `strictUpstreams`. An open string, not an enum, so a later value needs no client change; today\'s values are `recompute` and `refuse`, and any other is a 400.
|
|
308
|
+
*/
|
|
309
|
+
'warehouseReach'?: string;
|
|
306
310
|
/**
|
|
307
311
|
* The incremental ledger for this run, supplied by the caller: each entry is a `ManifestEntry.ledger` an earlier run reported, returned unmodified. Absent, the publisher uses its own ledger store — today\'s behavior, every existing caller. Present (even empty), it IS the ledger for this run: boundaries are read from here, the local store is neither read nor written, and an incremental source with no entry here seeds. An entry that does not validate against this run is a 400 (see `LedgerEntry`); an entry for a source being `reseed`-ed is ignored. For an orchestrator that dispatches one package\'s refreshes across interchangeable workers: the local store is per-process, so a refresh landing on a worker that has never built the table would otherwise re-seed a source whose whole purpose is not being rebuilt.
|
|
308
312
|
*/
|
|
@@ -360,6 +364,14 @@ export interface BuildPlan {
|
|
|
360
364
|
'refusedSources'?: {
|
|
361
365
|
[key: string]: RefusedSource;
|
|
362
366
|
};
|
|
367
|
+
/**
|
|
368
|
+
* The sources this plan would have listed but left out because planning them FAILED, sorted by `sourceID`: a generated companion (a pre-aggregation rollup, a `#(materialize)` build source, a persisted view, the v1 build copy) that did not compile, or a source whose plan entry could not be projected. Each is a planner failure, not a decision: a source the plan decides not to build is in `refusedSources` or reported as a package warning, and is not listed here. Never names a sourceID that is in `sources`. Every entry is a real sourceID: a failure that came before its sources could be named is in `omittedFiles` instead. Lets a host tell \"this source left the plan\" from \"this plan could not say\": when both this list and `omittedFiles` are empty, every source the package\'s declarations plan is in `sources` or `refusedSources`, so a host may retire an anchor whose source is absent from both. Otherwise the plan is incomplete: an anchor whose source an entry names, or whose source is declared in a file `omittedFiles` names, must be kept. Always present on a plan from a Publisher that reports it (`[]` when nothing was lost); absent on one from an older Publisher, which must be read as \"completeness unknown\".
|
|
369
|
+
*/
|
|
370
|
+
'omittedSources'?: Array<OmittedSource>;
|
|
371
|
+
/**
|
|
372
|
+
* The files whose sources this plan could not name, sorted by `file`: a generated companion whose planning failed before it knew which sources it would plan. A host must retire nothing declared in a listed file (a sourceID whose part after its `@` is that `file`), since any of them may have been lost. Always present beside `omittedSources` (`[]` when nothing was lost); absent on a plan from a Publisher that predates it.
|
|
373
|
+
*/
|
|
374
|
+
'omittedFiles'?: Array<OmittedFile>;
|
|
363
375
|
}
|
|
364
376
|
/**
|
|
365
377
|
* Server-computed, read-only, as `GET …/packages/{packageName}/classification` returns it: for each published entry point, the classes its `#(carries)` declares and how many of its fields carry each class (`#(classification)`, declared or inherited). Covers only the sources discovery shows, so it reveals nothing curation hides; a source locked to every caller is left out. A field\'s own classes, and what they were inherited from, are on its `get_context` card. `sources` is empty when no published field carries a class.
|
|
@@ -1480,6 +1492,10 @@ export interface ManifestEntry {
|
|
|
1480
1492
|
* The authoritative column schema of the materialized table, captured from the destination engine AFTER the build (a `DESCRIBE` of the landed table), for `storage=` entries only. The serve-time virtual-source transform declares exactly this schema — the compiler does not type-check a virtual source\'s declared columns, so a wrong or pre-build-approximated schema would surface as a serve-time execution error, which is why the post-build capture is authoritative.
|
|
1481
1493
|
*/
|
|
1482
1494
|
'schema'?: Array<Column>;
|
|
1495
|
+
/**
|
|
1496
|
+
* For a colocated entry (no `storageDestinationName`): each column of the built table with its type as the warehouse\'s own catalog names it (`bigint`, `numeric`, `NUMBER(38,0)`, `UHUGEINT`), captured after the build. The served copy reads a big-integer column through a cast to exactly this type, so a value past 2^53 comes back with every digit and no wider value is narrowed; a column whose type it does not know is answered live instead. Absent when the capture failed or the producer did not record it.
|
|
1497
|
+
*/
|
|
1498
|
+
'nativeSchema'?: Array<Column>;
|
|
1483
1499
|
'realization'?: Realization;
|
|
1484
1500
|
'rowCount'?: number | null;
|
|
1485
1501
|
/**
|
|
@@ -1557,6 +1573,10 @@ export interface ManifestReference {
|
|
|
1557
1573
|
* The connection the upstream table lives on. The publisher quotes the reference for this connection\'s dialect when it seeds the build manifest, so a downstream persist source resolves the upstream on a case-folding engine (Snowflake). Optional: omit it and the reference seeds unquoted (the pre-existing behavior), which fails a downstream build on such an engine.
|
|
1558
1574
|
*/
|
|
1559
1575
|
'connectionName'?: string;
|
|
1576
|
+
/**
|
|
1577
|
+
* The storage destination the upstream table lives in, for a table a `storage=` build wrote; omit it for a table in the source\'s own warehouse. A stored table\'s `connectionName` is the source\'s warehouse connection, so without this field a reference to a stored table reads as a warehouse table. The publisher uses a reference as an upstream only where this agrees with where the upstream source is declared now (a source that moved to or from `storage=` keeps its content address): a stored upstream is stacked on in its destination, and never rendered into warehouse SQL. Optional and additive: a reference without it still serves a colocated upstream.
|
|
1578
|
+
*/
|
|
1579
|
+
'storageDestinationName'?: string;
|
|
1560
1580
|
}
|
|
1561
1581
|
/**
|
|
1562
1582
|
* A record of one materialization run for a package.
|
|
@@ -1577,7 +1597,7 @@ export interface Materialization {
|
|
|
1577
1597
|
*/
|
|
1578
1598
|
'error'?: string | null;
|
|
1579
1599
|
/**
|
|
1580
|
-
* Materialization metadata including build options, source counts, and durations. Free-form object — fields such as `trigger` (ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema client does not need to know them. Promoting any such field to a top-level `Materialization` property is a breaking schema change that orchestrated clients must adopt first; do not do it casually.
|
|
1600
|
+
* Materialization metadata including build options, source counts, and durations. Free-form object — fields such as `trigger` (ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema client does not need to know them. Promoting any such field to a top-level `Materialization` property is a breaking schema change that orchestrated clients must adopt first; do not do it casually. `errorRetryable` (boolean) is set on a FAILED run that built nothing, which commits no manifest and so reports no per-source `failures`: `false` when every source failed deterministically or was refused, `true` when any failure was transient, with the same rules as `SourceFailure.retryable`. Absent when unclassified, for a cancelled run, and from a Publisher that predates it. `errorAtCancel` (string) is set on a CANCELLED run whose last error was not the cancellation itself: the message of the failure the cancel raced, which `error` reports only as \"Cancelled\".
|
|
1581
1601
|
*/
|
|
1582
1602
|
'metadata'?: object | null;
|
|
1583
1603
|
'createdAt'?: string;
|
|
@@ -1674,7 +1694,7 @@ export interface ModelError {
|
|
|
1674
1694
|
*/
|
|
1675
1695
|
'details'?: string;
|
|
1676
1696
|
/**
|
|
1677
|
-
* 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. 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. 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). * 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, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID, VERSION_CONFLICT, PACKAGE_IS_VERSIONED, VERSION_IS_LATEST, VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID, VERSION_NOT_LATEST, VERSION_NOT_FOUND, VERSION_ARCHIVED.
|
|
1697
|
+
* 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. 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. 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, 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.
|
|
1678
1698
|
*/
|
|
1679
1699
|
'reason'?: string;
|
|
1680
1700
|
/**
|
|
@@ -1891,6 +1911,32 @@ export declare const NotebookCellResultKindEnum: {
|
|
|
1891
1911
|
readonly Definition: "definition";
|
|
1892
1912
|
};
|
|
1893
1913
|
export type NotebookCellResultKindEnum = typeof NotebookCellResultKindEnum[keyof typeof NotebookCellResultKindEnum];
|
|
1914
|
+
/**
|
|
1915
|
+
* A file whose sources a build plan could not name, because the planner that would have named them failed first, and a code for the failure. Carries the file and a code only, never the failure\'s message.
|
|
1916
|
+
*/
|
|
1917
|
+
export interface OmittedFile {
|
|
1918
|
+
/**
|
|
1919
|
+
* The URL every sourceID declared in the file carries after its `@` (`sourceName@<file>`): for a generated companion, the companion\'s own URL, which its generated sources\' sourceIDs carry. Formed as the sourceIDs in `sources` are, so it matches them on the same server.
|
|
1920
|
+
*/
|
|
1921
|
+
'file': string;
|
|
1922
|
+
/**
|
|
1923
|
+
* Why, as a code from the same OPEN set as `OmittedSource.reason`; a client must accept a code it does not know.
|
|
1924
|
+
*/
|
|
1925
|
+
'reason': string;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* One source a build plan left out because planning it failed, and a code for the failure. Carries names and a code only: never the failure\'s message, which could quote the source\'s SQL or a value. The failure itself is logged at the Publisher, with the model it was planned from.
|
|
1929
|
+
*/
|
|
1930
|
+
export interface OmittedSource {
|
|
1931
|
+
/**
|
|
1932
|
+
* \"sourceName@modelURL\", the key the source would have had in `sources`. Always a real sourceID, never a pattern.
|
|
1933
|
+
*/
|
|
1934
|
+
'sourceID': string;
|
|
1935
|
+
/**
|
|
1936
|
+
* Why the source was left out, as a code. An OPEN set: a client must accept a code it does not know (read it as a failure) rather than reject the plan. Today\'s codes: `unkeyable` (Malloy could not key the source\'s build: an unbound parameter or a given with no value); `eligibility_check_failed` (an eligibility gate failed with an error rather than a refusal); `projection_failed` (the plan entry could not otherwise be computed); `rollup_companion_failed` (the generated `#(preaggregate)` rollup companion, which also plans v1 `#@ preaggregate` rollups, did not plan or compile); `rollup_companion_blanking_failed` (that companion was not built because a `#@` line of the author\'s files could not be set aside); `materialize_companion_failed` (the generated `#(materialize)` companion did not plan or compile); `persisted_view_companion_failed` (the persisted-view companion did not plan or compile); `v1_build_companion_failed` (the build copy of a model file without `##! experimental.persistence` did not compile, so none of its `#@ persist` sources were planned); `persist_annotation_unparseable` (none of the source\'s `#@` lines parse, so Malloy planned nothing for it; the package warning names the line).
|
|
1937
|
+
*/
|
|
1938
|
+
'reason': string;
|
|
1939
|
+
}
|
|
1894
1940
|
/**
|
|
1895
1941
|
* One file of a request\'s `files` overlay.
|
|
1896
1942
|
*/
|
|
@@ -2003,6 +2049,10 @@ export interface Package {
|
|
|
2003
2049
|
* @deprecated
|
|
2004
2050
|
*/
|
|
2005
2051
|
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Present only on the answer to `POST …/packages?dryRun=true`: the serve verdict of each source the package would materialize, as `PackageServingState.serveVerdicts` reports it once published, plus each stored source\'s named views compiled against a serve shape declared from the plan\'s output columns, which needs no built table. A served package reports its verdicts at `GET …/packages/{packageName}/status`.
|
|
2054
|
+
*/
|
|
2055
|
+
'serveVerdicts'?: Array<ServeVerdict>;
|
|
2006
2056
|
/**
|
|
2007
2057
|
* **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
|
|
2008
2058
|
*/
|
|
@@ -2059,7 +2109,7 @@ export declare const PackageManifestBindingStatusEnum: {
|
|
|
2059
2109
|
};
|
|
2060
2110
|
export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
|
|
2061
2111
|
/**
|
|
2062
|
-
* State of a package\'s semantic discovery index. The server builds the index in the background when the package loads (and reloads), one package at a time across the whole server, saving each batch of vectors as it goes. Poll `status` until `ready` to know retrieval is warm. While `indexing`, `embeddedRows` rises toward `totalRows`. A restart starts every package\'s index again, but vectors already stored for unchanged content are reused, so a restart over an unchanged package embeds nothing new.
|
|
2112
|
+
* State of a package\'s semantic discovery index. The server builds the index in the background when the package loads (and reloads), one package at a time across the whole server, saving each batch of vectors as it goes. Poll `status` until `ready` to know retrieval is warm. While `indexing`, `embeddedRows` rises toward `totalRows`. A restart starts every package\'s index again, but vectors already stored for unchanged content are reused, so a restart over an unchanged package embeds nothing new. The counts are the search index\'s own: the vectors it holds in `catalog_embeddings` under the embedding model currently configured, so rows left behind by an earlier model are never counted. Every count is 0 until the index build reaches its vectors step, and 0 again while `status` is `error`. Read `status` for readiness and the counts for progress: they answer different questions, and only `status` tracks what the search path will do. A read is answered from memory and never waits on a build, so polling is cheap.
|
|
2063
2113
|
*/
|
|
2064
2114
|
export interface PackageEmbeddingIndex {
|
|
2065
2115
|
/**
|
|
@@ -2082,19 +2132,19 @@ export interface PackageEmbeddingIndex {
|
|
|
2082
2132
|
*/
|
|
2083
2133
|
'startedAt'?: string;
|
|
2084
2134
|
/**
|
|
2085
|
-
*
|
|
2135
|
+
* Vectors the index holds for this package under the current embedding model, reused or newly embedded; it rises batch by batch while `indexing`. With the default `retrieval.representation` of `single` an entity contributes one row, so this equals `totalEntities` once indexed. With `facets` an entity contributes one row for its name plus one per chunk of its documentation, so this exceeds `totalEntities` on a documented model and is not a count of entities. A vector stored under another embedding model or `EMBEDDING_DIMENSIONS` is embedded again rather than counted.
|
|
2086
2136
|
*/
|
|
2087
2137
|
'embeddedRows'?: number;
|
|
2088
2138
|
/**
|
|
2089
|
-
* Rows the
|
|
2139
|
+
* Rows the index wants for this package: the denominator for `embeddedRows`. `embeddedRows` of `totalRows` is the progress of a build.
|
|
2090
2140
|
*/
|
|
2091
2141
|
'totalRows'?: number;
|
|
2092
2142
|
/**
|
|
2093
|
-
* Entities the package
|
|
2143
|
+
* Entities the package exposes to retrieval, each of which wants at least one row.
|
|
2094
2144
|
*/
|
|
2095
2145
|
'totalEntities'?: number;
|
|
2096
2146
|
/**
|
|
2097
|
-
* Of `totalEntities`, how many have at least one
|
|
2147
|
+
* Of `totalEntities`, how many have at least one vector. Reported because a row count cannot show a model edit that removes two entities and adds two others: the row total is unchanged while the new entities have no vector at all. Coverage by identity, so equality does NOT imply `ready`. Read `status` for readiness and this pair for how much of the package is covered.
|
|
2098
2148
|
*/
|
|
2099
2149
|
'embeddedEntities'?: number;
|
|
2100
2150
|
/**
|
|
@@ -2245,6 +2295,10 @@ export interface PackageServingState {
|
|
|
2245
2295
|
* Server-computed, read-only: sources currently bound to serve from a `storage=` destination via the virtual-source transform (distinct from the same-connection manifest binding above — a storage source is read cross-connection from its destination, not substituted in the manifest). Present only when at least one source is bound. Whether a query actually routes to these tables additionally depends on `PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may be present but the serve path still runs live (see `warnings`). Like `boundManifestUri`, this describes whatever is CURRENTLY bound rather than the configured manifest: after a failed rebind it goes on listing the previously bound manifest\'s sources, which are still serving. \"Bound\" is not the same as \"serving\", and an entry with `origin: preaggregate` is where the two most often part: a rollup is listed here once its table exists, but it is only offered to a query through a composite re-exposing its base\'s name, so it does not serve when something else already claims that name. Read `origin` before treating a row as evidence that queries are being accelerated.
|
|
2246
2296
|
*/
|
|
2247
2297
|
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Server-computed, read-only: for each source the package materializes (each `#@ persist` source and each synthesized rollup), whether queries are answered from its table, and when not, why and what to change. Recomputed on every read from the build plan and the binding as they stand, so it moves with each bind. Absent when the package materializes nothing. A `live` verdict is the package-level form of a live fallback that is otherwise visible only per query: a source built into storage while `PERSIST_STORAGE_MODE` is off, one no published source reaches, one under a row-level gate the storage tier cannot keep. `POST …/packages?dryRun=true` answers the same verdicts for a package before it is published, with each stored source\'s named views checked as well.
|
|
2300
|
+
*/
|
|
2301
|
+
'serveVerdicts'?: Array<ServeVerdict>;
|
|
2248
2302
|
}
|
|
2249
2303
|
export declare const PackageServingStateArchiveStatusEnum: {
|
|
2250
2304
|
readonly Archive: "archive";
|
|
@@ -2365,6 +2419,10 @@ export interface PackageStatusEntry {
|
|
|
2365
2419
|
* @deprecated
|
|
2366
2420
|
*/
|
|
2367
2421
|
'storageServeBindings'?: Array<StorageServeBinding>;
|
|
2422
|
+
/**
|
|
2423
|
+
* Present only on the answer to `POST …/packages?dryRun=true`: the serve verdict of each source the package would materialize, as `PackageServingState.serveVerdicts` reports it once published, plus each stored source\'s named views compiled against a serve shape declared from the plan\'s output columns, which needs no built table. A served package reports its verdicts at `GET …/packages/{packageName}/status`.
|
|
2424
|
+
*/
|
|
2425
|
+
'serveVerdicts'?: Array<ServeVerdict>;
|
|
2368
2426
|
/**
|
|
2369
2427
|
* **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
|
|
2370
2428
|
*/
|
|
@@ -2548,9 +2606,9 @@ export type PackageVersionArchiveStatusEnum = typeof PackageVersionArchiveStatus
|
|
|
2548
2606
|
*/
|
|
2549
2607
|
export interface PackageVersionManifest {
|
|
2550
2608
|
/**
|
|
2551
|
-
* Where the build manifest to bind is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). Null clears the binding and serves live. An empty string or a relative path is refused with 400.
|
|
2609
|
+
* Where the build manifest to bind is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). Null, or leaving the field out, clears the binding and serves live, so a client that drops a field it meant to send (a value left undefined) clears the binding. An empty string or a relative path is refused with 400, and so is any other field in the body and a body not sent as application/json.
|
|
2552
2610
|
*/
|
|
2553
|
-
'manifestLocation'
|
|
2611
|
+
'manifestLocation'?: string | null;
|
|
2554
2612
|
}
|
|
2555
2613
|
/**
|
|
2556
2614
|
* A lifecycle change to a published version
|
|
@@ -2580,7 +2638,7 @@ export interface PackageWarningsInner {
|
|
|
2580
2638
|
*/
|
|
2581
2639
|
'message'?: string;
|
|
2582
2640
|
/**
|
|
2583
|
-
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). `classification-downgrade`: a field that declares a lower class than the fields its expression reads, which Publisher cannot tell from a real de-identification, so a review has to (one per field, `subject` the source; `warn`; a plain copy under `#(carries)` refuses the load instead). `join-bypass`: an author join from a published source to one with a stricter gate, which the join does not carry (one per join, or one for a walk cut short at the join bound; always a `warn`, never a load refusal; see docs/authorize.md). `entities-…` (`entities-not-a-dimension`, `entities-parameterized-source`, `entities-multiple-required-filters`, `entities-sharing-not-allowed-on-dimension`, `entities-schedule-not-allowed-on-dimension`, `entities-required-filter-missing-dimension`, `entities-required-filter-non-public-dimension`): an `#(index)` or required `#(filter)` an index cannot honor, left out of `GET …/entities` (`model` its file; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
2641
|
+
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `deprecated-preaggregate-annotation`: a measure declaring `#@ preaggregate`, whose v2 spelling is `#(preaggregate)` (one per measure, `model` its file, `subject` the source and the message the measure; `warn`; only while `PUBLISHER_MATERIALIZE` is on). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). `classification-downgrade`: a field that declares a lower class than the fields its expression reads, which Publisher cannot tell from a real de-identification, so a review has to (one per field, `subject` the source; `warn`; a plain copy under `#(carries)` refuses the load instead). `preaggregate-over-stored-base`: a source persisted with `#@ persist storage=` that also declares `#@ preaggregate storage=` rollups, which are left out of the build plan and every run because a rollup over a stored base can neither build nor serve yet (one per base, `subject` the base; `warn`; the base still builds and serves from storage). `persist-unparseable`: a `#@` annotation that does not parse, so Malloy drops its source from the build and it is served live (one per annotation, `model` its file; `error`; refused at publish, while a package already published keeps loading). `persist-retired-key`: a `#@ persist` key no longer read, `sharing=` or `schedule=`, with what to write instead (one per key, `subject` the source; `error`; refused at publish). `persist-unknown-key`: a `#@ persist` key Publisher does not read, such as a misspelled `merge_key=` (one per key, `subject` the source; `warn`). `persist-not-materializable`: a `#@ persist` source the build walk did not recognize, served live (`subject` the source; `warn`). `persist-source-refused`: a `#@ persist` source a compile-time gate refused (a row-level gate, a free parameter, a given in the persisted query, or the `storage=` gate), served live, with the gate\'s message (`subject` the source, or a rollup\'s base; `warn`). `persist-incremental-no-merge-key`: an incremental source with no `merge_key=`, so each refresh replaces its watermark range (`subject` the source; `warn`). `persist-incremental-shared-address`: sources that compile to the same SQL on one connection, so they share one table and one boundary, where at least one is incremental (one per source; `warn`). `preaggregate-hidden-field`: a `#@ preaggregate` on a private or internal field or grain dimension (`warn`). `join-bypass`: an author join from a published source to one with a stricter gate, which the join does not carry (one per join, or one for a walk cut short at the join bound; always a `warn`, never a load refusal; see docs/authorize.md). `storage-column-type-mismatch`: a `storage=` table stores a column as a type other than the one Malloy declares for it. It is read through a cast to the declared type where that is faithful, and otherwise answered live (one per source and column, `model` the first model binding it, `subject` the source, the message naming the column, both types and which of the two applies; `warn`; see docs/materialization.md). `entities-…` (`entities-not-a-dimension`, `entities-parameterized-source`, `entities-multiple-required-filters`, `entities-sharing-not-allowed-on-dimension`, `entities-schedule-not-allowed-on-dimension`, `entities-required-filter-missing-dimension`, `entities-required-filter-non-public-dimension`): an `#(index)` or required `#(filter)` an index cannot honor, left out of `GET …/entities` (`model` its file; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
2584
2642
|
*/
|
|
2585
2643
|
'code'?: string;
|
|
2586
2644
|
/**
|
|
@@ -2792,6 +2850,123 @@ export interface QueryData {
|
|
|
2792
2850
|
*/
|
|
2793
2851
|
'queryCorrelationId'?: string | null;
|
|
2794
2852
|
}
|
|
2853
|
+
/**
|
|
2854
|
+
* The path report: what answered a query and why. Agents read it to learn whether a materialized table answered, and if not, what would let one. Tables are named by `tableId`, the source\'s content address (`sourceEntityId` in the build plan and manifest), because a source name alone is ambiguous across a package\'s models. `warnings` is always present (empty when there are none). The join paths the query crossed (`joins`, in the v1 API\'s path report) arrive in a later release, with reference and inline joins; until then the report carries none.
|
|
2855
|
+
*/
|
|
2856
|
+
export interface QueryPath {
|
|
2857
|
+
'query': QueryShape;
|
|
2858
|
+
'servedBy': QueryPathServer;
|
|
2859
|
+
/**
|
|
2860
|
+
* Every materialized table on the queried source\'s chain, and every rollup of a source on it, that could have answered this query: the one that served it marked `used`, the rest `skipped` with a reason. In the order Publisher tries them: `storage=` tables, then colocated rollups, then colocated `#@ persist` tables nearest first. A table that was not tried because an earlier one answered is left out. Empty when the queried source has no materialized table.
|
|
2861
|
+
*/
|
|
2862
|
+
'considered': Array<QueryPathCandidate>;
|
|
2863
|
+
/**
|
|
2864
|
+
* Materialized tables near the queried source that this query cannot use: a sibling\'s (a source sharing an ancestor, off the queried source\'s chain), or one on a source that extends the queried one. Nearest first, at most ten. They say what the model has that this query cannot use, and where moving the query, or an annotation, would let a table answer.
|
|
2865
|
+
*/
|
|
2866
|
+
'notConsidered': Array<QueryPathNearby>;
|
|
2867
|
+
/**
|
|
2868
|
+
* The serve verdicts behind this query\'s `WARNED` skips: one per table on the queried source\'s chain that no query can be answered from, each with a code and a sentence for a person. A table whose source the caller cannot list is left out, as in `notConsidered`. Empty when there are none. The package\'s own warnings, and its status, carry the full message and the fixes.
|
|
2869
|
+
*/
|
|
2870
|
+
'warnings'?: Array<QueryPathWarning>;
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* A materialized table that could have answered the query.
|
|
2874
|
+
*/
|
|
2875
|
+
export interface QueryPathCandidate {
|
|
2876
|
+
'tableId': string;
|
|
2877
|
+
'kind': QueryPathTableKind;
|
|
2878
|
+
/**
|
|
2879
|
+
* `used`, the table answered; `skipped`, it could not, and `reason` says why.
|
|
2880
|
+
*/
|
|
2881
|
+
'outcome': QueryPathCandidateOutcomeEnum;
|
|
2882
|
+
'reason'?: SkipReason;
|
|
2883
|
+
/**
|
|
2884
|
+
* For a `WARNED` skip, the serve verdict\'s reason the table answers no query: `storage_mode`, `unreachable`, `row_level_gate`, `refused`, `shadowed` or `served_copy` (see `QueryPathWarning`); or, for a table only the served copy reads, `served-copy-not-served` (the package warning of that code) or `persist-opt-out` (the queried source opts out with `#@ -persist`). An open set. Absent on any other outcome, and on a `WARNED` skip whose verdict is not known.
|
|
2885
|
+
*/
|
|
2886
|
+
'code'?: string;
|
|
2887
|
+
/**
|
|
2888
|
+
* For a skip, the specifics, for a person, in the caller\'s own terms: for example the field path or aggregate in the query that a rollup cannot reproduce. Never an internal error message (a compile error against the stored form, a run-time storage error), which can name storage paths or synthesized sources; those skips carry no detail. Absent when `outcome` is `used`.
|
|
2889
|
+
*/
|
|
2890
|
+
'detail'?: string;
|
|
2891
|
+
}
|
|
2892
|
+
export declare const QueryPathCandidateOutcomeEnum: {
|
|
2893
|
+
readonly Used: "used";
|
|
2894
|
+
readonly Skipped: "skipped";
|
|
2895
|
+
};
|
|
2896
|
+
export type QueryPathCandidateOutcomeEnum = typeof QueryPathCandidateOutcomeEnum[keyof typeof QueryPathCandidateOutcomeEnum];
|
|
2897
|
+
/**
|
|
2898
|
+
* A materialized table near the queried source that this query cannot use.
|
|
2899
|
+
*/
|
|
2900
|
+
export interface QueryPathNearby {
|
|
2901
|
+
'tableId': string;
|
|
2902
|
+
'kind': QueryPathTableKind;
|
|
2903
|
+
/**
|
|
2904
|
+
* The source the table materializes; for a rollup, the source it rolls up.
|
|
2905
|
+
*/
|
|
2906
|
+
'sourceName': string;
|
|
2907
|
+
/**
|
|
2908
|
+
* `sibling`, its source shares an ancestor with the queried source but is off its chain; `below`, its source extends the queried one.
|
|
2909
|
+
*/
|
|
2910
|
+
'relationship': QueryPathNearbyRelationshipEnum;
|
|
2911
|
+
/**
|
|
2912
|
+
* Whether the table is bound to this package.
|
|
2913
|
+
*/
|
|
2914
|
+
'built': boolean;
|
|
2915
|
+
}
|
|
2916
|
+
export declare const QueryPathNearbyRelationshipEnum: {
|
|
2917
|
+
readonly Sibling: "sibling";
|
|
2918
|
+
readonly Below: "below";
|
|
2919
|
+
};
|
|
2920
|
+
export type QueryPathNearbyRelationshipEnum = typeof QueryPathNearbyRelationshipEnum[keyof typeof QueryPathNearbyRelationshipEnum];
|
|
2921
|
+
/**
|
|
2922
|
+
* What answered the query.
|
|
2923
|
+
*/
|
|
2924
|
+
export interface QueryPathServer {
|
|
2925
|
+
'kind': QueryPathTableKind;
|
|
2926
|
+
/**
|
|
2927
|
+
* The table that answered. Absent when `kind` is `live`.
|
|
2928
|
+
*/
|
|
2929
|
+
'tableId'?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* The moment the table\'s rows reflect, as on its manifest entry. Absent when `kind` is `live`, or when the manifest entry does not record it.
|
|
2932
|
+
*/
|
|
2933
|
+
'dataAsOf'?: string;
|
|
2934
|
+
/**
|
|
2935
|
+
* How a `materialized` table was read, when it was not today\'s serve shape: `served_copy` means the model\'s served copy answered (the author\'s own files with each stored source re-rooted on its table, behind `PUBLISHER_MATERIALIZE`). An open string; absent otherwise.
|
|
2936
|
+
*/
|
|
2937
|
+
'via'?: string;
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* What kind of answer: `view`, a persisted view\'s table; `rollup`, a pre-aggregation; `materialized`, a materialized source\'s table; `live`, the source\'s own warehouse.
|
|
2941
|
+
*/
|
|
2942
|
+
export declare const QueryPathTableKind: {
|
|
2943
|
+
readonly View: "view";
|
|
2944
|
+
readonly Rollup: "rollup";
|
|
2945
|
+
readonly Materialized: "materialized";
|
|
2946
|
+
readonly Live: "live";
|
|
2947
|
+
};
|
|
2948
|
+
export type QueryPathTableKind = typeof QueryPathTableKind[keyof typeof QueryPathTableKind];
|
|
2949
|
+
/**
|
|
2950
|
+
* Why a table on the queried source\'s chain answers no query.
|
|
2951
|
+
*/
|
|
2952
|
+
export interface QueryPathWarning {
|
|
2953
|
+
/**
|
|
2954
|
+
* The serve verdict\'s reason: `storage_mode` (built into storage, but the server\'s PERSIST_STORAGE_MODE routes no query to it), `unreachable` (no published source reaches it), `row_level_gate` (every published entry point over it carries a gate it cannot keep yet), `refused` (the package refuses to serve it), `shadowed` (its storage table is bound to another source of the same name) or `served_copy` (only the served copy reads it, and it does not answer from it). An open set: treat a code you do not know as a warning like any other.
|
|
2955
|
+
*/
|
|
2956
|
+
'code': string;
|
|
2957
|
+
/**
|
|
2958
|
+
* The table, as `considered` names it.
|
|
2959
|
+
*/
|
|
2960
|
+
'tableId': string;
|
|
2961
|
+
/**
|
|
2962
|
+
* The source a query names to reach the table; for a rollup, the source it rolls up.
|
|
2963
|
+
*/
|
|
2964
|
+
'sourceName'?: string;
|
|
2965
|
+
/**
|
|
2966
|
+
* What the code means, for a person. Never a refusal\'s own detail.
|
|
2967
|
+
*/
|
|
2968
|
+
'message': string;
|
|
2969
|
+
}
|
|
2795
2970
|
/**
|
|
2796
2971
|
* Request body for executing a Malloy query
|
|
2797
2972
|
*/
|
|
@@ -2874,7 +3049,7 @@ export interface QueryResult {
|
|
|
2874
3049
|
*/
|
|
2875
3050
|
'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
|
|
2876
3051
|
/**
|
|
2877
|
-
* How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. This value is NOT the same event as the `live_fallback` label on `publisher_storage_serve_routing_total` — see the warning below. **This field describes the `storage=` tier and nothing else.** It records how the storage routing decision came out, so it says nothing about the colocated `#@ persist` tier, which answers a query by substituting the materialized table into the model and never reaches that decision. **Null is three different outcomes**, and they are worth telling apart because two of them mean materialization worked and one means it silently did not: 1. The query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. 2. It was answered from a **colocated** materialized table. The query never reached the routing decision, so a fully materialized answer reports the same null a fully live one does. 3. The storage transform was **ineligible** for this query, so it was served live. The query DID reach the routing decision and the tier declined it — a storage-tier miss, reported identically to \"no materialization exists anywhere.\" Case 3 is the one that costs time, because nothing about
|
|
3052
|
+
* How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. This value is NOT the same event as the `live_fallback` label on `publisher_storage_serve_routing_total` — see the warning below. **This field describes the `storage=` tier and nothing else.** It records how the storage routing decision came out, so it says nothing about the colocated `#@ persist` tier, which answers a query by substituting the materialized table into the model and never reaches that decision. **Null is three different outcomes**, and they are worth telling apart because two of them mean materialization worked and one means it silently did not: 1. The query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. 2. It was answered from a **colocated** materialized table. The query never reached the routing decision, so a fully materialized answer reports the same null a fully live one does. 3. The storage transform was **ineligible** for this query, so it was served live. The query DID reach the routing decision and the tier declined it — a storage-tier miss, reported identically to \"no materialization exists anywhere.\" Case 3 is the one that costs time, because nothing about this field distinguishes it from case 1. `path`, the path report, does: it names the table that answered in every tier, and why each table that could have answered did not. The server does log it: one `storage serve-shape ineligible for this query; serving live` line at INFO per routed query, carrying the compile error that made the shape ineligible, plus `shapeSources` (what the shape offered) and `staleSources` (bound, but withheld by the freshness gate). The compile error alone does not separate those: `Reference to undefined object \'x\'` reads identically whether `x` carries no `#@ persist` at all or is materialized and merely past its freshness window. That log is currently the only per-query account of a storage-tier miss. It is not a hypothetical shape — a source warehouse that folds unquoted identifiers to upper case made every query on every `storage=` source in a package ineligible, and the whole tier reported null for months while looking exactly like a deployment that had never enabled it. For the colocated tier there is no per-query signal at all. The package-grain fields are the nearest thing — `manifestBindingStatus`, `manifestEntryCount` and `storageServeBindings` — but read what each actually claims: `bound` reports that the bind ran to completion, explicitly NOT that any query routes to a materialized table, and `manifestEntryCount` counts colocated entries only, so a package whose sources are all `storage=` reports 0 while being fully bound. ⚠️ **`live_fallback` names two different things across two surfaces, and correlating them on the token is wrong in both directions.** On this field it means the store failed at run time. On `publisher_storage_serve_routing_total{outcome}` it means the transform was ineligible — this field\'s null case 3 — and that metric spells the run-time failure `runtime_live_fallback`. So the field\'s `live_fallback` is the metric\'s `runtime_live_fallback`, and the metric\'s `live_fallback` is this field\'s `null`. A third surface, `manifestBindingStatus`, uses the same token for a third thing: a configured `manifestLocation` whose fetch or bind failed. Each surface is internally consistent; none of them means what the others do.
|
|
2878
3053
|
*/
|
|
2879
3054
|
'servedFrom'?: QueryResultServedFromEnum | null;
|
|
2880
3055
|
/**
|
|
@@ -2885,6 +3060,10 @@ export interface QueryResult {
|
|
|
2885
3060
|
* Warehouse bytes this query SCANNED, as reported by the backend that ran it. Not what it is billed — see below. **Null is not zero.** It means the backend did not report a figure, and there are two very different reasons for that. Either the backend has no inline equivalent — BigQuery returns `totalBytesProcessed` in the job metadata the driver already fetches, while Snowflake exposes bytes only in `QUERY_HISTORY` keyed by query id (join it later on the `query_id` query-metadata property rather than paying a round trip per query) and Postgres has none at all. Or the query touched no warehouse, which is the case for every `servedFrom: storage` answer. Check `servedFrom` before reading a null as \"free\". Where it is reported it is the executed job\'s ACTUAL bytes processed, i.e. bytes SCANNED — not an estimate, and not what the query is billed. BigQuery bills a 10MB minimum per query, so a small read is billed well above this figure. Good for comparing queries against each other; not a spend number. Named `cost` rather than `scanned` because it carries Malloy\'s own `runStats.queryCostBytes` through verbatim — the name follows the figure back to its source. One asymmetry worth knowing on BigQuery: the connector reports a genuinely-zero scan as absent rather than as 0, so a fully cached query is indistinguishable here from a backend that cannot say. Free and unknown are the same value, and a savings calculation built on this will treat free queries as unmeasured rather than as free.
|
|
2886
3061
|
*/
|
|
2887
3062
|
'queryCostBytes'?: number | null;
|
|
3063
|
+
/**
|
|
3064
|
+
* The path report: what answered this query and why. It names the materialized table that served it (or `live`), every materialized table on the queried source\'s chain with the reason each one that did not answer was skipped, and nearby tables the query could not use. Unlike `servedFrom`, it covers the colocated `#@ persist` tier and pre-aggregation rollups as well as `storage=`, so a null `servedFrom` no longer hides whether a table answered. Absent only when the report could not be assembled; the query\'s answer never depends on it.
|
|
3065
|
+
*/
|
|
3066
|
+
'path'?: QueryPath;
|
|
2888
3067
|
}
|
|
2889
3068
|
export declare const QueryResultQueryRowLimitSourceEnum: {
|
|
2890
3069
|
readonly Query: "query";
|
|
@@ -2896,6 +3075,35 @@ export declare const QueryResultServedFromEnum: {
|
|
|
2896
3075
|
readonly LiveFallback: "live_fallback";
|
|
2897
3076
|
};
|
|
2898
3077
|
export type QueryResultServedFromEnum = typeof QueryResultServedFromEnum[keyof typeof QueryResultServedFromEnum];
|
|
3078
|
+
/**
|
|
3079
|
+
* The query\'s shape, as routing reads it: the stage that touches the source\'s data.
|
|
3080
|
+
*/
|
|
3081
|
+
export interface QueryShape {
|
|
3082
|
+
/**
|
|
3083
|
+
* The source the query reads.
|
|
3084
|
+
*/
|
|
3085
|
+
'sourceName': string;
|
|
3086
|
+
/**
|
|
3087
|
+
* The view the request named (`queryName` with `sourceName`). Absent for a query written inline, including one written as `run: source -> view`.
|
|
3088
|
+
*/
|
|
3089
|
+
'viewName'?: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* The dimensions the query groups by (or selects), as dotted paths from `sourceName`. A dimension defined in the query lists the fields it reads.
|
|
3092
|
+
*/
|
|
3093
|
+
'groupedBy': Array<string>;
|
|
3094
|
+
/**
|
|
3095
|
+
* The fields the query\'s filters read, as dotted paths from `sourceName`.
|
|
3096
|
+
*/
|
|
3097
|
+
'filteredBy': Array<string>;
|
|
3098
|
+
/**
|
|
3099
|
+
* The measures the query aggregates, as dotted paths from `sourceName`. A measure defined in the query lists the fields it aggregates.
|
|
3100
|
+
*/
|
|
3101
|
+
'measures': Array<string>;
|
|
3102
|
+
/**
|
|
3103
|
+
* The query\'s time zone, when it sets one.
|
|
3104
|
+
*/
|
|
3105
|
+
'timeZone'?: string;
|
|
3106
|
+
}
|
|
2899
3107
|
/**
|
|
2900
3108
|
* DEPRECATED: `ReportCells`, as get-notebook answers them, plus the tile layout of a linear report written as tiles.
|
|
2901
3109
|
*/
|
|
@@ -2990,7 +3198,7 @@ export interface RefusedSource {
|
|
|
2990
3198
|
*/
|
|
2991
3199
|
'tier': RefusedSourceTierEnum;
|
|
2992
3200
|
/**
|
|
2993
|
-
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back),
|
|
3201
|
+
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back), `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`), `env_reference` (a source with an `@env.` reference on one of its `#@` lines, whose directives are all ignored, so it serves live rather than build into the source warehouse), and `rollup_name_collision` (a pre-aggregation rollup whose generated name, and so its table, is also another model\'s rollup with different content; neither builds or serves, and each model answers from its base) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is decided against the post-build captured schema, which does not exist at compile time, and `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
|
|
2994
3202
|
*/
|
|
2995
3203
|
'reason': RefusedSourceReasonEnum;
|
|
2996
3204
|
/**
|
|
@@ -3020,6 +3228,8 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
3020
3228
|
readonly NotDuckdbPortable: "not_duckdb_portable";
|
|
3021
3229
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
3022
3230
|
readonly ReadOnlyDialect: "read_only_dialect";
|
|
3231
|
+
readonly EnvReference: "env_reference";
|
|
3232
|
+
readonly RollupNameCollision: "rollup_name_collision";
|
|
3023
3233
|
};
|
|
3024
3234
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
3025
3235
|
/**
|
|
@@ -3361,6 +3571,59 @@ export interface SecureGivenSummary {
|
|
|
3361
3571
|
*/
|
|
3362
3572
|
'modelPaths': Array<string>;
|
|
3363
3573
|
}
|
|
3574
|
+
/**
|
|
3575
|
+
* One materialized source\'s serve verdict: whether queries are answered from its table. `reason` is an open string, so a later release can add one; treat an unknown value as `live` for an unnamed cause.
|
|
3576
|
+
*/
|
|
3577
|
+
export interface ServeVerdict {
|
|
3578
|
+
/**
|
|
3579
|
+
* The source\'s name. A rollup\'s is generated and names no source in any model file; its message names the base it pre-aggregates.
|
|
3580
|
+
*/
|
|
3581
|
+
'sourceName': string;
|
|
3582
|
+
/**
|
|
3583
|
+
* The source\'s identity, `name@modelURL`.
|
|
3584
|
+
*/
|
|
3585
|
+
'sourceID': string;
|
|
3586
|
+
/**
|
|
3587
|
+
* The model file that declares it.
|
|
3588
|
+
*/
|
|
3589
|
+
'modelPath'?: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* `persist` for a source a modeler annotated, `preaggregate` for a rollup the publisher synthesized. A string, not an enum, so a new kind of variant needs no client change.
|
|
3592
|
+
*/
|
|
3593
|
+
'origin': string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Where its table lives: `colocated` (the source\'s own connection) or `storage` (a `storage=` destination).
|
|
3596
|
+
*/
|
|
3597
|
+
'tier': string;
|
|
3598
|
+
/**
|
|
3599
|
+
* `serves`: its table is bound and queries can be answered from it. `not_built`: nothing is bound yet; queries are answered from its table once a build binds it. `live`: no query is answered from it, for `reason`, until something changes.
|
|
3600
|
+
*/
|
|
3601
|
+
'verdict': string;
|
|
3602
|
+
/**
|
|
3603
|
+
* For a `live` verdict, why: `refused` (the plan refused to build it), `storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not `on`), `rollup_over_stored_base` (a rollup over a `storage=` base, left out of the plan), `unreachable` (no source on the package\'s published surface reads it), `row_level_gate` (every query through it carries an `#(authorize)` or `#(access_filter)` gate, which the storage tier and rollups cannot keep yet), `shadowed` (its storage table is bound, but every model\'s source of that name is another source), `destination_missing` (`storage=` names a destination the environment does not configure), `connection_cannot_hold_table` (colocated, on a connection whose type creates no tables), `served_copy` (a `#(materialize)` source, which only the served copy reads: the served copy is off, no model\'s served copy reads its table, or it is colocated, which the served copy does not serve yet). An open set.
|
|
3604
|
+
*/
|
|
3605
|
+
'reason'?: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* What the verdict means for this source, in a sentence.
|
|
3608
|
+
*/
|
|
3609
|
+
'message': string;
|
|
3610
|
+
/**
|
|
3611
|
+
* For a `live` verdict, the changes that would let it serve.
|
|
3612
|
+
*/
|
|
3613
|
+
'fixes'?: Array<string>;
|
|
3614
|
+
/**
|
|
3615
|
+
* On a dry run: the path that will answer queries on this source (the v1 cutover\'s, now the only one), judged by compiling the package\'s served copy over bindings declared from the plan\'s output columns (no table is built): `served_copy` (the served copy re-roots it on its table), `rollup` (a rollup the rollup leg reads), or `live`, with `cutoverReason`. An open string, so a later release can add a path; treat an unknown value as `live`.
|
|
3616
|
+
*/
|
|
3617
|
+
'cutoverPath'?: string;
|
|
3618
|
+
/**
|
|
3619
|
+
* With a `live` `cutoverPath`, why: the served copy\'s reason for leaving the source as written (`column_types`, `fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and the like), or `not_rerooted` when it names none. An open string.
|
|
3620
|
+
*/
|
|
3621
|
+
'cutoverReason'?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
* On a dry run, for a source stored with `storage=`: each named view on it, and whether it compiles against the serve shape. A view that does not is answered live, and `detail` carries the compile error that says why (usually a field the shape cannot reproduce).
|
|
3624
|
+
*/
|
|
3625
|
+
'views'?: Array<ViewServeVerdict>;
|
|
3626
|
+
}
|
|
3364
3627
|
/**
|
|
3365
3628
|
* Current server status and health information
|
|
3366
3629
|
*/
|
|
@@ -3386,7 +3649,7 @@ export interface ServerStatus {
|
|
|
3386
3649
|
*/
|
|
3387
3650
|
'version'?: string;
|
|
3388
3651
|
/**
|
|
3389
|
-
* \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on
|
|
3652
|
+
* \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on`, the default); \"off\" when it installs the package in place, as before versions (`PUBLISHER_PACKAGE_VERSIONING=off`). Reads and the versions routes answer in both. Absent from a server that predates versions, which reads as \"off\": how an orchestrator talking to servers mid-rollout tells which ones publish native versions.
|
|
3390
3653
|
*/
|
|
3391
3654
|
'packageVersioning'?: ServerStatusPackageVersioningEnum;
|
|
3392
3655
|
/**
|
|
@@ -3537,6 +3800,22 @@ export declare const SkillSummaryOriginEnum: {
|
|
|
3537
3800
|
readonly Package: "package";
|
|
3538
3801
|
};
|
|
3539
3802
|
export type SkillSummaryOriginEnum = typeof SkillSummaryOriginEnum[keyof typeof SkillSummaryOriginEnum];
|
|
3803
|
+
/**
|
|
3804
|
+
* Why a table could not answer a query. `NOT_BUILT`, it is not bound to this package; `WARNED`, its annotation carries a publish warning and serves live, and the candidate\'s `code` says which; `MISSING_FIELD`, the query reads a field the table lacks (or otherwise does not compile against it); `CONTRACT`, answering from it would bypass an access control on the queried source; `GRAIN_TOO_COARSE`, a rollup\'s grain does not cover the query\'s groups or filters; `TIME_ZONE`, it was built in another time zone than the query\'s; `CROSS_CONNECTION`, the query needs a join the table\'s connection cannot reach; `COUNT_SEMANTICS`, an aggregate the table cannot reproduce as the live query computes it; `STALE`, it is past its freshness window; `RUN_FAILED`, it was chosen but reading it failed at run time, and its freshness fallback allowed live. A closed list to which codes may be added, so a client treats an unknown one as a skip it cannot explain.
|
|
3805
|
+
*/
|
|
3806
|
+
export declare const SkipReason: {
|
|
3807
|
+
readonly NotBuilt: "NOT_BUILT";
|
|
3808
|
+
readonly Warned: "WARNED";
|
|
3809
|
+
readonly MissingField: "MISSING_FIELD";
|
|
3810
|
+
readonly Contract: "CONTRACT";
|
|
3811
|
+
readonly GrainTooCoarse: "GRAIN_TOO_COARSE";
|
|
3812
|
+
readonly TimeZone: "TIME_ZONE";
|
|
3813
|
+
readonly CrossConnection: "CROSS_CONNECTION";
|
|
3814
|
+
readonly CountSemantics: "COUNT_SEMANTICS";
|
|
3815
|
+
readonly Stale: "STALE";
|
|
3816
|
+
readonly RunFailed: "RUN_FAILED";
|
|
3817
|
+
};
|
|
3818
|
+
export type SkipReason = typeof SkipReason[keyof typeof SkipReason];
|
|
3540
3819
|
/**
|
|
3541
3820
|
* Snowflake database connection configuration
|
|
3542
3821
|
*/
|
|
@@ -3683,9 +3962,13 @@ export interface SourceFailure {
|
|
|
3683
3962
|
*/
|
|
3684
3963
|
'storageDestinationName'?: string;
|
|
3685
3964
|
/**
|
|
3686
|
-
* True when the materialization-eligibility gate refused this source, so the build was never attempted and `reason` is the gate\'s message. A refusal is a property of the model, not of the run: retrying returns the same answer until the model changes
|
|
3965
|
+
* True when the materialization-eligibility gate refused this source, so the build was never attempted and `reason` is the gate\'s message. A refusal is a property of the model, not of the run: retrying returns the same answer until the model changes. Absent for every other failure; see `retryable` for how those are classified.
|
|
3687
3966
|
*/
|
|
3688
3967
|
'refused'?: boolean;
|
|
3968
|
+
/**
|
|
3969
|
+
* Whether rebuilding this source unchanged could succeed, so an orchestrator that retries failed builds can stop spending attempts on one that cannot. `false` is a deterministic failure: the same model, instructions and bounds fail the same way on every attempt. It is reported for an eligibility refusal (always, beside `refused`), a Malloy or SQL compile defect (a syntax or parser error), a rejected credential or missing grant (permission or access denied), and a source refused under `strictUpstreams` because a persisted upstream it reads failed deterministically earlier in the same run. That last source inherits its upstream\'s classification (`true` when any such upstream\'s failure is transient) and its `reason` names the upstream\'s own failure. Also `false` for a source a strict build refused under `warehouseReach: refuse`, whose only build would recompute its stored upstreams from the warehouse. `true` is a transient failure, not a property of the inputs: the database could not be reached or reset the connection, a timeout, a rate limit, the build session running out of memory (`Out of Memory Error`, `could not allocate block`, `failed to pin block`: a worker\'s builds share its memory, so a build that ran out beside others can fit alone, and the consumer\'s retry cap bounds one that never fits), or a cancellation. Absent when Publisher does not recognize the error, and from every Publisher that predates the field. A consumer treats absence exactly as it did before this field existed. Deliberately absent: a missing table or column (a binder error, an unrecognized name), because a referenced upstream reclaimed mid-build reads the same as a model defect; and a persisted upstream no manifest holds, on its own, because it may be materialized in another destination or left out of instructions an orchestrator fixed, so retrying the same instructions would not supply it.
|
|
3970
|
+
*/
|
|
3971
|
+
'retryable'?: boolean;
|
|
3689
3972
|
}
|
|
3690
3973
|
export interface SourceSchema {
|
|
3691
3974
|
'name': string;
|
|
@@ -3874,9 +4157,13 @@ export interface Table {
|
|
|
3874
4157
|
*/
|
|
3875
4158
|
'source'?: string;
|
|
3876
4159
|
/**
|
|
3877
|
-
*
|
|
4160
|
+
* The table\'s columns. A record column (a BigQuery RECORD, a DuckDB STRUCT, a Trino ROW, a Databricks STRUCT) is followed by its members, named by their dotted path (`delivery.city`, `delivery.address.zip`). A member that follows an `array` column belongs to a repeated record: it has one value per element of the array, not one per row. A member whose name is not a plain identifier (`a.b`, `two words`) is not listed, nor anything under it. Types: a member always has Malloy\'s type name (`string`, `number`, `record`, `array`). A top-level column has the type the database reports in a schema listing on a dialect read through INFORMATION_SCHEMA (DuckDB, Trino, Postgres and others; on Databricks a STRUCT or ARRAY column reports its full_data_type, `struct<city:string>`), and Malloy\'s type name in a BigQuery listing and from the single-table route.
|
|
3878
4161
|
*/
|
|
3879
4162
|
'columns'?: Array<Column>;
|
|
4163
|
+
/**
|
|
4164
|
+
* Present, and true, when the table has a record column (a DuckDB STRUCT, a Trino ROW, a Databricks STRUCT) whose members this listing did not add to `columns`: the table\'s schema read failed, or had not finished within the listing\'s time limit. Either can clear on a later listing. `columns` then holds the database\'s top-level columns only, so a missing member is not a removed one. Absent when every record\'s members are listed, and when they are never listed: a column type that declares none (a plain array, a Snowflake OBJECT), or a table name that needs quoting. Never set on BigQuery, whose listing reads each table\'s whole schema: a table whose read failed there is listed with no columns.
|
|
4165
|
+
*/
|
|
4166
|
+
'membersUnread'?: boolean;
|
|
3880
4167
|
}
|
|
3881
4168
|
/**
|
|
3882
4169
|
* Database table structure and metadata
|
|
@@ -4112,6 +4399,20 @@ export interface View {
|
|
|
4112
4399
|
*/
|
|
4113
4400
|
'annotations'?: Array<string>;
|
|
4114
4401
|
}
|
|
4402
|
+
export interface ViewServeVerdict {
|
|
4403
|
+
/**
|
|
4404
|
+
* The named view.
|
|
4405
|
+
*/
|
|
4406
|
+
'view': string;
|
|
4407
|
+
/**
|
|
4408
|
+
* `serves` or `live`.
|
|
4409
|
+
*/
|
|
4410
|
+
'verdict': string;
|
|
4411
|
+
/**
|
|
4412
|
+
* For a `live` view, the compile error that sends it live.
|
|
4413
|
+
*/
|
|
4414
|
+
'detail'?: string;
|
|
4415
|
+
}
|
|
4115
4416
|
/**
|
|
4116
4417
|
* Current file watching status and configuration
|
|
4117
4418
|
*/
|
|
@@ -5338,7 +5639,7 @@ export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configur
|
|
|
5338
5639
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
5339
5640
|
* @summary Get environment details and metadata
|
|
5340
5641
|
* @param {string} environmentName Name of the environment
|
|
5341
|
-
* @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5642
|
+
* @param {boolean} [reload] **Deprecated.** Re-reads the environment\'s block of `publisher.config.json` and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to `reload=true` carries `Deprecation: true`, and each use is counted in `publisher_deprecated_usage_total{feature=\"environment_reload\"}`; it is removed once that reads zero (#1540). Under `frozenConfig` it is refused with 403, like any change to an environment. To pick up a package\'s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5342
5643
|
* @param {*} [options] Override http request option.
|
|
5343
5644
|
* @throws {RequiredError}
|
|
5344
5645
|
*/
|
|
@@ -5384,7 +5685,7 @@ export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
|
|
|
5384
5685
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
5385
5686
|
* @summary Get environment details and metadata
|
|
5386
5687
|
* @param {string} environmentName Name of the environment
|
|
5387
|
-
* @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5688
|
+
* @param {boolean} [reload] **Deprecated.** Re-reads the environment\'s block of `publisher.config.json` and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to `reload=true` carries `Deprecation: true`, and each use is counted in `publisher_deprecated_usage_total{feature=\"environment_reload\"}`; it is removed once that reads zero (#1540). Under `frozenConfig` it is refused with 403, like any change to an environment. To pick up a package\'s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5388
5689
|
* @param {*} [options] Override http request option.
|
|
5389
5690
|
* @throws {RequiredError}
|
|
5390
5691
|
*/
|
|
@@ -5430,7 +5731,7 @@ export declare const EnvironmentsApiFactory: (configuration?: Configuration, bas
|
|
|
5430
5731
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
5431
5732
|
* @summary Get environment details and metadata
|
|
5432
5733
|
* @param {string} environmentName Name of the environment
|
|
5433
|
-
* @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5734
|
+
* @param {boolean} [reload] **Deprecated.** Re-reads the environment\'s block of `publisher.config.json` and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to `reload=true` carries `Deprecation: true`, and each use is counted in `publisher_deprecated_usage_total{feature=\"environment_reload\"}`; it is removed once that reads zero (#1540). Under `frozenConfig` it is refused with 403, like any change to an environment. To pick up a package\'s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5434
5735
|
* @param {*} [options] Override http request option.
|
|
5435
5736
|
* @throws {RequiredError}
|
|
5436
5737
|
*/
|
|
@@ -5476,7 +5777,7 @@ export declare class EnvironmentsApi extends BaseAPI {
|
|
|
5476
5777
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
5477
5778
|
* @summary Get environment details and metadata
|
|
5478
5779
|
* @param {string} environmentName Name of the environment
|
|
5479
|
-
* @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5780
|
+
* @param {boolean} [reload] **Deprecated.** Re-reads the environment\'s block of `publisher.config.json` and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to `reload=true` carries `Deprecation: true`, and each use is counted in `publisher_deprecated_usage_total{feature=\"environment_reload\"}`; it is removed once that reads zero (#1540). Under `frozenConfig` it is refused with 403, like any change to an environment. To pick up a package\'s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5480
5781
|
* @param {*} [options] Override http request option.
|
|
5481
5782
|
* @throws {RequiredError}
|
|
5482
5783
|
*/
|
|
@@ -5803,7 +6104,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
5803
6104
|
*/
|
|
5804
6105
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5805
6106
|
/**
|
|
5806
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`).
|
|
6107
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
5807
6108
|
* @summary Write a report file into the package
|
|
5808
6109
|
* @param {string} environmentName Name of the environment
|
|
5809
6110
|
* @param {string} packageName Name of the package
|
|
@@ -5868,7 +6169,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
5868
6169
|
*/
|
|
5869
6170
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
5870
6171
|
/**
|
|
5871
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`).
|
|
6172
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
5872
6173
|
* @summary Write a report file into the package
|
|
5873
6174
|
* @param {string} environmentName Name of the environment
|
|
5874
6175
|
* @param {string} packageName Name of the package
|
|
@@ -5933,7 +6234,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5933
6234
|
*/
|
|
5934
6235
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
5935
6236
|
/**
|
|
5936
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`).
|
|
6237
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
5937
6238
|
* @summary Write a report file into the package
|
|
5938
6239
|
* @param {string} environmentName Name of the environment
|
|
5939
6240
|
* @param {string} packageName Name of the package
|
|
@@ -5998,7 +6299,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5998
6299
|
*/
|
|
5999
6300
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
6000
6301
|
/**
|
|
6001
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`).
|
|
6302
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
6002
6303
|
* @summary Write a report file into the package
|
|
6003
6304
|
* @param {string} environmentName Name of the environment
|
|
6004
6305
|
* @param {string} packageName Name of the package
|
|
@@ -6196,7 +6497,7 @@ export type ExecuteNotebookCellBypassFiltersEnum = typeof ExecuteNotebookCellByp
|
|
|
6196
6497
|
*/
|
|
6197
6498
|
export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6198
6499
|
/**
|
|
6199
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
6500
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a serve shape (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
6200
6501
|
* @summary Create a new package
|
|
6201
6502
|
* @param {string} environmentName Name of the environment
|
|
6202
6503
|
* @param {Package} _package
|
|
@@ -6226,7 +6527,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6226
6527
|
*/
|
|
6227
6528
|
getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6228
6529
|
/**
|
|
6229
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6530
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
6230
6531
|
* @summary Read the persist build plan of a loaded package
|
|
6231
6532
|
* @param {string} environmentName Name of the environment
|
|
6232
6533
|
* @param {string} packageName Name of the package
|
|
@@ -6285,7 +6586,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6285
6586
|
*/
|
|
6286
6587
|
listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6287
6588
|
/**
|
|
6288
|
-
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
6589
|
+
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
6289
6590
|
* @summary Update package configuration
|
|
6290
6591
|
* @param {string} environmentName Name of the environment
|
|
6291
6592
|
* @param {string} packageName Name of the package
|
|
@@ -6301,7 +6602,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6301
6602
|
*/
|
|
6302
6603
|
export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
6303
6604
|
/**
|
|
6304
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
6605
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a serve shape (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
6305
6606
|
* @summary Create a new package
|
|
6306
6607
|
* @param {string} environmentName Name of the environment
|
|
6307
6608
|
* @param {Package} _package
|
|
@@ -6331,7 +6632,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
6331
6632
|
*/
|
|
6332
6633
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
6333
6634
|
/**
|
|
6334
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6635
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
6335
6636
|
* @summary Read the persist build plan of a loaded package
|
|
6336
6637
|
* @param {string} environmentName Name of the environment
|
|
6337
6638
|
* @param {string} packageName Name of the package
|
|
@@ -6390,7 +6691,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
6390
6691
|
*/
|
|
6391
6692
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
|
|
6392
6693
|
/**
|
|
6393
|
-
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
6694
|
+
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
6394
6695
|
* @summary Update package configuration
|
|
6395
6696
|
* @param {string} environmentName Name of the environment
|
|
6396
6697
|
* @param {string} packageName Name of the package
|
|
@@ -6406,7 +6707,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
6406
6707
|
*/
|
|
6407
6708
|
export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6408
6709
|
/**
|
|
6409
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
6710
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a serve shape (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
6410
6711
|
* @summary Create a new package
|
|
6411
6712
|
* @param {string} environmentName Name of the environment
|
|
6412
6713
|
* @param {Package} _package
|
|
@@ -6436,7 +6737,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
6436
6737
|
*/
|
|
6437
6738
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
6438
6739
|
/**
|
|
6439
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6740
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
6440
6741
|
* @summary Read the persist build plan of a loaded package
|
|
6441
6742
|
* @param {string} environmentName Name of the environment
|
|
6442
6743
|
* @param {string} packageName Name of the package
|
|
@@ -6495,7 +6796,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
6495
6796
|
*/
|
|
6496
6797
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
|
|
6497
6798
|
/**
|
|
6498
|
-
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
6799
|
+
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
6499
6800
|
* @summary Update package configuration
|
|
6500
6801
|
* @param {string} environmentName Name of the environment
|
|
6501
6802
|
* @param {string} packageName Name of the package
|
|
@@ -6511,7 +6812,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
6511
6812
|
*/
|
|
6512
6813
|
export declare class PackagesApi extends BaseAPI {
|
|
6513
6814
|
/**
|
|
6514
|
-
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
6815
|
+
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a serve shape (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
6515
6816
|
* @summary Create a new package
|
|
6516
6817
|
* @param {string} environmentName Name of the environment
|
|
6517
6818
|
* @param {Package} _package
|
|
@@ -6541,7 +6842,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
6541
6842
|
*/
|
|
6542
6843
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
6543
6844
|
/**
|
|
6544
|
-
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
6845
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
6545
6846
|
* @summary Read the persist build plan of a loaded package
|
|
6546
6847
|
* @param {string} environmentName Name of the environment
|
|
6547
6848
|
* @param {string} packageName Name of the package
|
|
@@ -6600,7 +6901,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
6600
6901
|
*/
|
|
6601
6902
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
|
|
6602
6903
|
/**
|
|
6603
|
-
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
6904
|
+
* 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/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
6604
6905
|
* @summary Update package configuration
|
|
6605
6906
|
* @param {string} environmentName Name of the environment
|
|
6606
6907
|
* @param {string} packageName Name of the package
|
|
@@ -7140,7 +7441,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7140
7441
|
*/
|
|
7141
7442
|
getPackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7142
7443
|
/**
|
|
7143
|
-
* 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,
|
|
7444
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
7144
7445
|
* @summary List a package\'s published versions
|
|
7145
7446
|
* @param {string} environmentName Name of the environment
|
|
7146
7447
|
* @param {string} packageName Name of the package
|
|
@@ -7159,7 +7460,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7159
7460
|
*/
|
|
7160
7461
|
setPackageLatestVersion: (environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7161
7462
|
/**
|
|
7162
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
7463
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
7163
7464
|
* @summary Bind a version to a build manifest
|
|
7164
7465
|
* @param {string} environmentName Name of the environment
|
|
7165
7466
|
* @param {string} packageName Name of the package
|
|
@@ -7206,7 +7507,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
|
|
|
7206
7507
|
*/
|
|
7207
7508
|
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
7208
7509
|
/**
|
|
7209
|
-
* 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,
|
|
7510
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
7210
7511
|
* @summary List a package\'s published versions
|
|
7211
7512
|
* @param {string} environmentName Name of the environment
|
|
7212
7513
|
* @param {string} packageName Name of the package
|
|
@@ -7225,7 +7526,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
|
|
|
7225
7526
|
*/
|
|
7226
7527
|
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
7227
7528
|
/**
|
|
7228
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
7529
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
7229
7530
|
* @summary Bind a version to a build manifest
|
|
7230
7531
|
* @param {string} environmentName Name of the environment
|
|
7231
7532
|
* @param {string} packageName Name of the package
|
|
@@ -7272,7 +7573,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
|
|
|
7272
7573
|
*/
|
|
7273
7574
|
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
7274
7575
|
/**
|
|
7275
|
-
* 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,
|
|
7576
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
7276
7577
|
* @summary List a package\'s published versions
|
|
7277
7578
|
* @param {string} environmentName Name of the environment
|
|
7278
7579
|
* @param {string} packageName Name of the package
|
|
@@ -7291,7 +7592,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
|
|
|
7291
7592
|
*/
|
|
7292
7593
|
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
7293
7594
|
/**
|
|
7294
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
7595
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
7295
7596
|
* @summary Bind a version to a build manifest
|
|
7296
7597
|
* @param {string} environmentName Name of the environment
|
|
7297
7598
|
* @param {string} packageName Name of the package
|
|
@@ -7338,7 +7639,7 @@ export declare class VersionsApi extends BaseAPI {
|
|
|
7338
7639
|
*/
|
|
7339
7640
|
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
7340
7641
|
/**
|
|
7341
|
-
* 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,
|
|
7642
|
+
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
7342
7643
|
* @summary List a package\'s published versions
|
|
7343
7644
|
* @param {string} environmentName Name of the environment
|
|
7344
7645
|
* @param {string} packageName Name of the package
|
|
@@ -7357,7 +7658,7 @@ export declare class VersionsApi extends BaseAPI {
|
|
|
7357
7658
|
*/
|
|
7358
7659
|
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
7359
7660
|
/**
|
|
7360
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
7661
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
7361
7662
|
* @summary Bind a version to a build manifest
|
|
7362
7663
|
* @param {string} environmentName Name of the environment
|
|
7363
7664
|
* @param {string} packageName Name of the package
|