@malloy-publisher/sdk 0.12.4 → 0.12.6

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.
@@ -1674,7 +1674,7 @@ export interface ModelError {
1674
1674
  */
1675
1675
  'details'?: string;
1676
1676
  /**
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.
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). * 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
1678
  */
1679
1679
  'reason'?: string;
1680
1680
  /**
@@ -2059,7 +2059,7 @@ export declare const PackageManifestBindingStatusEnum: {
2059
2059
  };
2060
2060
  export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
2061
2061
  /**
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. Every count is scoped to the embedding model currently configured, so rows left behind by an earlier model are never counted. Read `status` for readiness and the counts for progress: they answer different questions, and only `status` tracks what the search path will do. The first read after a package loads builds the package\'s entity index and its content fingerprint, which is work a metadata read would not otherwise do. After that a read is two row counts and never waits on a sync, so polling is cheap.
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. 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
2063
  */
2064
2064
  export interface PackageEmbeddingIndex {
2065
2065
  /**
@@ -2082,19 +2082,19 @@ export interface PackageEmbeddingIndex {
2082
2082
  */
2083
2083
  'startedAt'?: string;
2084
2084
  /**
2085
- * Cached vectors for this package under the current embedding model. 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 keyphrase row is an extra on top of those and is not counted here or in `totalRows`. Scoped by model only, not by vector length, so it counts what is cached rather than what a search could read today: after a change to `EMBEDDING_DIMENSIONS` that no question has probed yet, rows of the old length are still counted here until the next search discards them. `status` is already `indexing` in that window.
2085
+ * 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
2086
  */
2087
2087
  'embeddedRows'?: number;
2088
2088
  /**
2089
- * Rows the package wants cached: the denominator for `embeddedRows`. `embeddedRows` of `totalRows` is the progress of a first index.
2089
+ * Rows the index wants for this package: the denominator for `embeddedRows`. `embeddedRows` of `totalRows` is the progress of a build.
2090
2090
  */
2091
2091
  'totalRows'?: number;
2092
2092
  /**
2093
- * Entities the package currently exposes to retrieval.
2093
+ * Entities the package exposes to retrieval, each of which wants at least one row.
2094
2094
  */
2095
2095
  'totalEntities'?: number;
2096
2096
  /**
2097
- * Of `totalEntities`, how many have at least one usable 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`: an edit that rewrote every doc without renaming anything leaves each entity holding its stale name vector. Read `status` for readiness and this pair for how much of the package is covered.
2097
+ * 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
2098
  */
2099
2099
  'embeddedEntities'?: number;
2100
2100
  /**
@@ -3874,9 +3874,13 @@ export interface Table {
3874
3874
  */
3875
3875
  'source'?: string;
3876
3876
  /**
3877
- * Table fields
3877
+ * 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
3878
  */
3879
3879
  'columns'?: Array<Column>;
3880
+ /**
3881
+ * 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.
3882
+ */
3883
+ 'membersUnread'?: boolean;
3880
3884
  }
3881
3885
  /**
3882
3886
  * Database table structure and metadata
@@ -5338,7 +5342,7 @@ export declare const EnvironmentsApiAxiosParamCreator: (configuration?: Configur
5338
5342
  * 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
5343
  * @summary Get environment details and metadata
5340
5344
  * @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: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5345
+ * @param {boolean} [reload] **Deprecated.** Re-reads the environment\&#39;s block of &#x60;publisher.config.json&#x60; and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to &#x60;reload&#x3D;true&#x60; carries &#x60;Deprecation: true&#x60;, and each use is counted in &#x60;publisher_deprecated_usage_total{feature&#x3D;\&quot;environment_reload\&quot;}&#x60;; it is removed once that reads zero (#1540). Under &#x60;frozenConfig&#x60; it is refused with 403, like any change to an environment. To pick up a package\&#39;s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5342
5346
  * @param {*} [options] Override http request option.
5343
5347
  * @throws {RequiredError}
5344
5348
  */
@@ -5384,7 +5388,7 @@ export declare const EnvironmentsApiFp: (configuration?: Configuration) => {
5384
5388
  * 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
5389
  * @summary Get environment details and metadata
5386
5390
  * @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: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5391
+ * @param {boolean} [reload] **Deprecated.** Re-reads the environment\&#39;s block of &#x60;publisher.config.json&#x60; and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to &#x60;reload&#x3D;true&#x60; carries &#x60;Deprecation: true&#x60;, and each use is counted in &#x60;publisher_deprecated_usage_total{feature&#x3D;\&quot;environment_reload\&quot;}&#x60;; it is removed once that reads zero (#1540). Under &#x60;frozenConfig&#x60; it is refused with 403, like any change to an environment. To pick up a package\&#39;s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5388
5392
  * @param {*} [options] Override http request option.
5389
5393
  * @throws {RequiredError}
5390
5394
  */
@@ -5430,7 +5434,7 @@ export declare const EnvironmentsApiFactory: (configuration?: Configuration, bas
5430
5434
  * 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
5435
  * @summary Get environment details and metadata
5432
5436
  * @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: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5437
+ * @param {boolean} [reload] **Deprecated.** Re-reads the environment\&#39;s block of &#x60;publisher.config.json&#x60; and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to &#x60;reload&#x3D;true&#x60; carries &#x60;Deprecation: true&#x60;, and each use is counted in &#x60;publisher_deprecated_usage_total{feature&#x3D;\&quot;environment_reload\&quot;}&#x60;; it is removed once that reads zero (#1540). Under &#x60;frozenConfig&#x60; it is refused with 403, like any change to an environment. To pick up a package\&#39;s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5434
5438
  * @param {*} [options] Override http request option.
5435
5439
  * @throws {RequiredError}
5436
5440
  */
@@ -5476,7 +5480,7 @@ export declare class EnvironmentsApi extends BaseAPI {
5476
5480
  * 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
5481
  * @summary Get environment details and metadata
5478
5482
  * @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: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5483
+ * @param {boolean} [reload] **Deprecated.** Re-reads the environment\&#39;s block of &#x60;publisher.config.json&#x60; and reloads the environment from it. Nothing first-party calls it, and the v1 API has no environment reload. A response to &#x60;reload&#x3D;true&#x60; carries &#x60;Deprecation: true&#x60;, and each use is counted in &#x60;publisher_deprecated_usage_total{feature&#x3D;\&quot;environment_reload\&quot;}&#x60;; it is removed once that reads zero (#1540). Under &#x60;frozenConfig&#x60; it is refused with 403, like any change to an environment. To pick up a package\&#39;s changed files, reload the package. Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
5480
5484
  * @param {*} [options] Override http request option.
5481
5485
  * @throws {RequiredError}
5482
5486
  */
@@ -5803,7 +5807,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
5803
5807
  */
5804
5808
  listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5805
5809
  /**
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`).
5810
+ * 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
5811
  * @summary Write a report file into the package
5808
5812
  * @param {string} environmentName Name of the environment
5809
5813
  * @param {string} packageName Name of the package
@@ -5868,7 +5872,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
5868
5872
  */
5869
5873
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
5870
5874
  /**
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`).
5875
+ * 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
5876
  * @summary Write a report file into the package
5873
5877
  * @param {string} environmentName Name of the environment
5874
5878
  * @param {string} packageName Name of the package
@@ -5933,7 +5937,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
5933
5937
  */
5934
5938
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
5935
5939
  /**
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`).
5940
+ * 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
5941
  * @summary Write a report file into the package
5938
5942
  * @param {string} environmentName Name of the environment
5939
5943
  * @param {string} packageName Name of the package
@@ -5998,7 +6002,7 @@ export declare class ModelsApi extends BaseAPI {
5998
6002
  */
5999
6003
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
6000
6004
  /**
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`).
6005
+ * 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
6006
  * @summary Write a report file into the package
6003
6007
  * @param {string} environmentName Name of the environment
6004
6008
  * @param {string} packageName Name of the package
@@ -6285,7 +6289,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
6285
6289
  */
6286
6290
  listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6287
6291
  /**
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.
6292
+ * 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
6293
  * @summary Update package configuration
6290
6294
  * @param {string} environmentName Name of the environment
6291
6295
  * @param {string} packageName Name of the package
@@ -6390,7 +6394,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
6390
6394
  */
6391
6395
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
6392
6396
  /**
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.
6397
+ * 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
6398
  * @summary Update package configuration
6395
6399
  * @param {string} environmentName Name of the environment
6396
6400
  * @param {string} packageName Name of the package
@@ -6495,7 +6499,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
6495
6499
  */
6496
6500
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
6497
6501
  /**
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.
6502
+ * 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
6503
  * @summary Update package configuration
6500
6504
  * @param {string} environmentName Name of the environment
6501
6505
  * @param {string} packageName Name of the package
@@ -6600,7 +6604,7 @@ export declare class PackagesApi extends BaseAPI {
6600
6604
  */
6601
6605
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
6602
6606
  /**
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.
6607
+ * 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
6608
  * @summary Update package configuration
6605
6609
  * @param {string} environmentName Name of the environment
6606
6610
  * @param {string} packageName Name of the package
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as i, c as n, d as o, e as r, C as u, f as p, g as m, h as A, i as E, j as c, k as l, l as b, m as S, n as g, o as y, p as P, q as d, r as C, s as F, t as k, u as h, D as M, v, w as D, x, y as R, z as f, B as T, E as N, F as z, G as V, H as K, I as L, J as Q, K as B, L as O, M as W, N as I, O as q, P as w, Q as G, R as U, S as j, T as H, U as J, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ia, a3 as na, a4 as oa, a5 as ra, a6 as ua, a7 as pa, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as ba, ae as Sa, af as ga, ag as ya, ah as Pa, ai as da, aj as Ca, ak as Fa, al as ka, am as ha, an as Ma, ao as va, ap as Da, aq as xa, ar as Ra, as as fa, at as Ta, au as Na, av as za, aw as Va, ax as Ka, ay as La, az as Qa, aA as Ba, aB as Oa, aC as Wa, aD as Ia, aE as qa, aF as wa, aG as Ga, aH as Ua, aI as ja, aJ as Ha, aK as Ja, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as ts, aU as is, aV as ns, aW as os, aX as rs, aY as us, aZ as ps, a_ as ms, a$ as As, b0 as Es, b1 as cs, b2 as ls, b3 as bs, b4 as Ss, b5 as gs, b6 as ys, b7 as Ps, b8 as ds, b9 as Cs, ba as Fs, bb as ks, bc as hs, bd as Ms, be as vs, bf as Ds, bg as xs, bh as Rs, bi as fs, bj as Ts, bk as Ns, bl as zs, bm as Vs, bn as Ks, bo as Ls, bp as Qs, bq as Bs, br as Os, bs as Ws } from "../ServerProvider-DRbZ6tLP.es.js";
1
+ import { A as e, a as t, b as i, c as n, d as o, e as r, C as u, f as p, g as m, h as A, i as E, j as c, k as l, l as b, m as S, n as g, o as y, p as P, q as d, r as C, s as F, t as k, u as h, D as M, v, w as D, x, y as R, z as f, B as T, E as N, F as z, G as V, H as K, I as L, J as Q, K as B, L as O, M as W, N as I, O as q, P as w, Q as G, R as U, S as j, T as H, U as J, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ia, a3 as na, a4 as oa, a5 as ra, a6 as ua, a7 as pa, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as ba, ae as Sa, af as ga, ag as ya, ah as Pa, ai as da, aj as Ca, ak as Fa, al as ka, am as ha, an as Ma, ao as va, ap as Da, aq as xa, ar as Ra, as as fa, at as Ta, au as Na, av as za, aw as Va, ax as Ka, ay as La, az as Qa, aA as Ba, aB as Oa, aC as Wa, aD as Ia, aE as qa, aF as wa, aG as Ga, aH as Ua, aI as ja, aJ as Ha, aK as Ja, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as ts, aU as is, aV as ns, aW as os, aX as rs, aY as us, aZ as ps, a_ as ms, a$ as As, b0 as Es, b1 as cs, b2 as ls, b3 as bs, b4 as Ss, b5 as gs, b6 as ys, b7 as Ps, b8 as ds, b9 as Cs, ba as Fs, bb as ks, bc as hs, bd as Ms, be as vs, bf as Ds, bg as xs, bh as Rs, bi as fs, bj as Ts, bk as Ns, bl as zs, bm as Vs, bn as Ks, bo as Ls, bp as Qs, bq as Bs, br as Os, bs as Ws } from "../ServerProvider-Qd3zdOsC.es.js";
2
2
  export {
3
3
  e as AgentsApi,
4
4
  t as AgentsApiAxiosParamCreator,