@malloy-publisher/sdk 0.10.6 → 0.11.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.
Files changed (52) hide show
  1. package/dist/{RenderedResult-BlYdT4lz.cjs.js → RenderedResult-C2r3Zkwl.cjs.js} +1 -1
  2. package/dist/{RenderedResult-B_sW7neX.es.js → RenderedResult-r3dg2xOJ.es.js} +2 -2
  3. package/dist/ServerProvider-CFHqDHFO.cjs.js +1 -0
  4. package/dist/{ServerProvider-BN399NH6.es.js → ServerProvider-DdGjhDhY.es.js} +2077 -1604
  5. package/dist/builder/index.cjs.js +1 -1
  6. package/dist/builder/index.es.js +3 -3
  7. package/dist/client/api.d.ts +673 -165
  8. package/dist/client/configuration.d.ts +1 -1
  9. package/dist/client/index.cjs.js +1 -1
  10. package/dist/client/index.d.ts +1 -1
  11. package/dist/client/index.es.js +101 -92
  12. package/dist/components/Materializations/Materializations.d.ts +8 -1
  13. package/dist/components/Package/Package.d.ts +15 -1
  14. package/dist/components/Package/VersionSwitch.d.ts +51 -0
  15. package/dist/components/Package/index.d.ts +2 -0
  16. package/dist/components/Package/usePackageVersions.d.ts +48 -0
  17. package/dist/components/ServerProvider.d.ts +2 -1
  18. package/dist/hooks/useDimensionFiltersQuery.d.ts +2 -0
  19. package/dist/index.cjs.js +14 -14
  20. package/dist/index.es.js +8290 -7677
  21. package/dist/{useCompiledDocument-xJRD5DRP.es.js → useCompiledDocument-Bc0HuUtz.es.js} +3 -3
  22. package/dist/{useCompiledDocument-CyPOSStA.cjs.js → useCompiledDocument-QgySwHGA.cjs.js} +2 -2
  23. package/dist/utils/dataAppEmbed.d.ts +6 -1
  24. package/package.json +1 -1
  25. package/src/components/DataAppViewer/DataAppViewer.tsx +18 -5
  26. package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +2 -0
  27. package/src/components/Environment/Packages.tsx +12 -5
  28. package/src/components/Environment/Packages.versions.spec.tsx +62 -0
  29. package/src/components/Materializations/Materializations.tsx +26 -6
  30. package/src/components/Materializations/Materializations.versions.spec.tsx +101 -0
  31. package/src/components/Package/Package.agents.spec.tsx +2 -0
  32. package/src/components/Package/Package.artifacts.spec.tsx +35 -0
  33. package/src/components/Package/Package.create.spec.tsx +37 -1
  34. package/src/components/Package/Package.notebooks.spec.tsx +2 -0
  35. package/src/components/Package/Package.spec.tsx +23 -11
  36. package/src/components/Package/Package.tsx +111 -20
  37. package/src/components/Package/VersionSwitch.spec.tsx +668 -0
  38. package/src/components/Package/VersionSwitch.tsx +779 -0
  39. package/src/components/Package/index.ts +7 -0
  40. package/src/components/Package/usePackageVersions.spec.tsx +78 -0
  41. package/src/components/Package/usePackageVersions.ts +146 -0
  42. package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
  43. package/src/components/ReportBuilder/ReportEditor.authoritative.spec.tsx +5 -1
  44. package/src/components/ServerProvider.tsx +2 -0
  45. package/src/hooks/useDimensionFiltersFromSpec.ts +1 -0
  46. package/src/hooks/useDimensionFiltersQuery.ts +5 -1
  47. package/src/utils/dataAppEmbed.spec.ts +27 -0
  48. package/src/utils/dataAppEmbed.ts +11 -3
  49. package/src/utils/formatting.spec.ts +25 -0
  50. package/src/utils/formatting.ts +2 -1
  51. package/test/serverProvider.tsx +15 -0
  52. package/dist/ServerProvider-e2369oom.cjs.js +0 -1
@@ -20,9 +20,19 @@ export interface Agent {
20
20
  */
21
21
  'skills'?: Array<AgentSkillFile>;
22
22
  'schedules'?: Array<AgentSchedule>;
23
+ 'budget'?: AgentBudget;
23
24
  'warnings'?: Array<string>;
24
25
  'source'?: AgentSource;
25
26
  }
27
+ /**
28
+ * The run limits an agent declares. Validated and exposed only: the server never enforces them. A platform that runs the agent decides how to apply them and may clamp each to its own maximum. Every field is optional and only the fields the manifest sets are present; an unset field keeps the platform\'s default. Absent when the manifest sets none.
29
+ */
30
+ export interface AgentBudget {
31
+ 'turns'?: number;
32
+ 'wall_clock_minutes'?: number;
33
+ 'llm_tokens'?: number;
34
+ 'job_minutes'?: number;
35
+ }
26
36
  /**
27
37
  * A cron schedule an agent declares. Validated and exposed only: the server never runs it.
28
38
  */
@@ -79,6 +89,10 @@ export interface AgentSkillRead {
79
89
  export interface AgentSource {
80
90
  'environment'?: string;
81
91
  'package'?: string;
92
+ /**
93
+ * The published version the definition was read from. Absent for a package that has no published versions. Pass it as `?versionId=` to fetch the same definition again after `latest` moves.
94
+ */
95
+ 'versionId'?: string;
82
96
  /**
83
97
  * The package\'s `sourceContentSha` at the load this definition came from.
84
98
  */
@@ -106,6 +120,7 @@ export interface AgentSummary {
106
120
  */
107
121
  'model'?: string;
108
122
  'schedules'?: Array<AgentSchedule>;
123
+ 'budget'?: AgentBudget;
109
124
  }
110
125
  /**
111
126
  * Attached DuckDB database
@@ -628,6 +643,10 @@ export interface CreateConnection409Response {
628
643
  * Options for starting a materialization. Two modes — (1) auto-run (default), omit `buildInstructions` and the publisher self-assigns names and runs all phases in one pass; (2) orchestrated build, supply `buildInstructions` and the publisher builds directly into the caller-assigned names from the package\'s already-compiled build plan (read off `Package.buildPlan`).
629
644
  */
630
645
  export interface CreateMaterializationRequest {
646
+ /**
647
+ * The published version of the package to build. `latest`, omitted or empty, the package\'s `latest` version is built. An unknown version answers 404 (`reason` VERSION_NOT_FOUND) and an archived one 410 (`reason` VERSION_ARCHIVED). Carried in the body rather than the query string because the body is optional: a new optional query parameter ahead of it would move the body argument of every generated client. The run records the version it built in `metadata.versionId`, with the package\'s materialization scope in `metadata.scope`, which decides whose tables it builds. Under `scope: \"version\"` each version builds into tables of its own: a self-assigned name gains the version and a hash of the environment, package and version as a suffix (`order_summary__v1_2_0_3f9c2a1b`), so no other package\'s version builds the same table. Under `scope: \"package\"` (the default) the versions share the package\'s tables, so an auto-run (no `buildInstructions`) of a version other than `latest` is refused with 400 (`reason` VERSION_NOT_LATEST): it would rebuild the table `latest` serves. While the package has no `latest` (`explicit` promotion, before the first `PUT …/latest`), an auto-run of any named version builds. Pass `buildInstructions` to build any version into tables you name, other than the ones the versions share. A run with `buildInstructions`, or under `scope: \"version\"`, holds its own version\'s slot, so one such run is active per version at a time; an auto-run under `scope: \"package\"` writes the shared tables, so one is active per package. A second run where one is already active answers 409, and so does a run with `buildInstructions` that would write a table another active run of the package writes. An auto-run learns its tables only when it starts building, so one that would write such a table fails then.
648
+ */
649
+ 'versionId'?: string;
631
650
  /**
632
651
  * Orchestrated build. When present, the publisher creates the materialization already building these caller-assigned sources (table id, physical name, realization) into the exact names provided — the caller derived these instructions from `Package.buildPlan` up front. Omit for auto-run (the publisher self-assigns names and builds all persist sources).
633
652
  */
@@ -834,6 +853,10 @@ export interface DataApp {
834
853
  * Name of the package containing this data app
835
854
  */
836
855
  'packageName'?: string;
856
+ /**
857
+ * The published version this data app was listed from. Absent for a package that has no published versions. A link that must keep opening this version after `latest` moves carries it as `?versionId=`, as `resource` does. The static route serving the page reads it only when it names a version the package has: otherwise (a package with no versions, or a `versionId` that is no version of this package) it serves the files of `latest`, so a router that forwards a page\'s query string unchanged keeps working. The page\'s queries, through the data-app runtime, follow the same rule. Files the page loads by relative URL carry no `?versionId=`, so they come from `latest`.
858
+ */
859
+ 'versionId'?: string | null;
837
860
  /**
838
861
  * Relative path to the HTML file within its package directory
839
862
  */
@@ -1436,7 +1459,7 @@ export interface ModelError {
1436
1459
  */
1437
1460
  'details'?: string;
1438
1461
  /**
1439
- * 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. Known values: TABLE_NOT_FOUND, CONNECTION_FAILED, CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND.
1462
+ * 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.
1440
1463
  */
1441
1464
  'reason'?: string;
1442
1465
  /**
@@ -1665,6 +1688,22 @@ export interface Package {
1665
1688
  * Package name
1666
1689
  */
1667
1690
  'name'?: string;
1691
+ /**
1692
+ * The published version this response describes. Absent for a package that has no published versions. A request that names no `versionId` is answered with the package\'s `latest` version, so this is how a caller learns which version it got. In a package listing it is null for a package none of whose versions is `latest` yet (under `versionPromotion: explicit`, before `PUT .../latest`). Set from the version\'s publisher.json at publish; never sent by a client.
1693
+ */
1694
+ 'versionId'?: string | null;
1695
+ /**
1696
+ * The package\'s `latest` version. Absent for a package that has no published versions, and null while none of its versions is `latest`. Equal to `versionId` unless the request named another one.
1697
+ */
1698
+ 'latestVersion'?: string | null;
1699
+ /**
1700
+ * Set only on a version\'s entry in `GET /status`: whether this server holds the version in memory. A published version that is not loaded (an archived one, or one not loaded since the server started) is still held, so it is still listed, with `loaded: false` and only its `resource`, name, version, `latestVersion`, `archiveStatus` and `status`. It loads when a request next names it. A version still being published is listed only under `includeLoading`, with `loaded: false`, no `archiveStatus`, and `status.loading`.
1701
+ */
1702
+ 'loaded'?: boolean;
1703
+ /**
1704
+ * Set only on a version\'s entry in `GET /status`, except one still being published: whether the version is archived.
1705
+ */
1706
+ 'archiveStatus'?: PackageArchiveStatusEnum;
1668
1707
  /**
1669
1708
  * Package description
1670
1709
  */
@@ -1696,7 +1735,7 @@ export interface Package {
1696
1735
  */
1697
1736
  'queryableSources'?: PackageQueryableSourcesEnum;
1698
1737
  /**
1699
- * URI (gs:// or s3://) of the externally-computed manifest for this package. On (re)load the publisher reads it and binds persist references (sourceEntityId -> physicalTableName). Null = serve live.
1738
+ * Where the externally-computed manifest for this package is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). On (re)load the publisher reads it and binds persist references (sourceEntityId -> physicalTableName). Null = serve live. For a package with published versions, a relative path is refused with 400.
1700
1739
  */
1701
1740
  'manifestLocation'?: string | null;
1702
1741
  /**
@@ -1747,6 +1786,11 @@ export interface Package {
1747
1786
  */
1748
1787
  'agents'?: Array<AgentSummary>;
1749
1788
  }
1789
+ export declare const PackageArchiveStatusEnum: {
1790
+ readonly Archive: "archive";
1791
+ readonly Unarchive: "unarchive";
1792
+ };
1793
+ export type PackageArchiveStatusEnum = typeof PackageArchiveStatusEnum[keyof typeof PackageArchiveStatusEnum];
1750
1794
  export declare const PackageScopeEnum: {
1751
1795
  readonly Version: "version";
1752
1796
  readonly Package: "package";
@@ -1873,6 +1917,15 @@ export interface PackageEmbeddingIndexSourceSummaryProgress {
1873
1917
  */
1874
1918
  'capped'?: boolean;
1875
1919
  }
1920
+ /**
1921
+ * The version to make the package\'s `latest`
1922
+ */
1923
+ export interface PackageLatestVersion {
1924
+ /**
1925
+ * A package version: a semantic version (SemVer 2.0), MAJOR.MINOR.PATCH with an optional pre-release suffix (`-rc1`, `-alpha.2`) and optional build metadata (`+20231120.deadbeef`). Pre-release and build suffixes are accepted so release-candidate builds can be published. A numeric identifier may have leading zeros (`01.0.0`), which strict SemVer 2.0 does not allow, so a version a system in front of Publisher validated with this same pattern is never refused. Such a version compares equal to the one without the zeros, and a package holds only one of the two: publishing the other is 409 `VERSION_CONFLICT`.
1926
+ */
1927
+ 'version': string;
1928
+ }
1876
1929
  /**
1877
1930
  * Package-level Malloy Persistence policy from publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
1878
1931
  */
@@ -1893,7 +1946,7 @@ export interface PackageMaterializationConfig {
1893
1946
  } | null;
1894
1947
  }
1895
1948
  /**
1896
- * Server-computed, read-only: how this server holds the package right now. `serving` is whether a compiled copy answers queries here; `loading` is whether a load, reinstall or recompile of the package is in progress here. The two are independent. A first load reports `loading` without `serving`. A reload of a package that is already served reports both, because the previous copy keeps answering until the new one is swapped in. Steady state reports `serving` alone. `loadingSince` is when the in-progress load began, so a caller can bound one that never completes. Which tables a serving copy answers from is a separate question, answered by `manifestBindingStatus`. A package that is loading for the first time, so is not yet serving, is listed only where a caller asks for it: `GET /status?includeLoading=true` includes it as its name and `status`. Every other listing, the environment resources included, shows packages that can be queried.
1949
+ * Server-computed, read-only: how this server holds the package right now. `serving` is whether a compiled copy answers queries here; `loading` is whether a load, reinstall or recompile of the package is in progress here. The two are independent. A first load reports `loading` without `serving`. A reload of a package that is already served reports both, because the previous copy keeps answering until the new one is swapped in. Steady state reports `serving` alone. `loadingSince` is when the in-progress load began, so a caller can bound one that never completes. Which tables a serving copy answers from is a separate question, answered by `manifestBindingStatus`. A publish of a package version is a load from its download until it settles, and while it runs every entry of that package reports `loading`. With `includeLoading=true`, once its tree has named the version, a version the package does not hold yet is listed as its own entry, with its `versionId`, `loaded: false` and `loading`, unless an unversioned copy of the package still serves. A package that is loading for the first time, so is not yet serving, is listed only where a caller asks for it: `GET /status?includeLoading=true` includes it as its name and `status`. Every other listing, the environment resources included, shows packages that can be queried.
1897
1950
  */
1898
1951
  export interface PackageStatus {
1899
1952
  /**
@@ -1932,6 +1985,103 @@ export declare const PackageStorageServeBindingsInnerOriginEnum: {
1932
1985
  readonly Preaggregate: "preaggregate";
1933
1986
  };
1934
1987
  export type PackageStorageServeBindingsInnerOriginEnum = typeof PackageStorageServeBindingsInnerOriginEnum[keyof typeof PackageStorageServeBindingsInnerOriginEnum];
1988
+ /**
1989
+ * One published version of a package. Its content is immutable; what changes over its life is its lifecycle state (`archiveStatus`), whether it is the package\'s `latest`, and the build manifest it is bound to.
1990
+ */
1991
+ export interface PackageVersion {
1992
+ /**
1993
+ * Resource path to the version
1994
+ */
1995
+ 'resource': string;
1996
+ /**
1997
+ * The package this version belongs to
1998
+ */
1999
+ 'packageName': string;
2000
+ /**
2001
+ * The version, from the package\'s publisher.json: the value a `versionId` names everywhere else.
2002
+ */
2003
+ 'id': string;
2004
+ /**
2005
+ * Whether this is the package\'s `latest` version, the one served when a request names no `versionId`.
2006
+ */
2007
+ 'latest': boolean;
2008
+ /**
2009
+ * `unarchive` while the version is in service; `archive` once it has been taken out of service (reads that name it answer 410). Each value is named for the action that sets it.
2010
+ */
2011
+ 'archiveStatus': PackageVersionArchiveStatusEnum;
2012
+ /**
2013
+ * When the version was archived; null while it is in service.
2014
+ */
2015
+ 'archivedAt': string | null;
2016
+ /**
2017
+ * When the version last became the package\'s `latest`; null if it never has.
2018
+ */
2019
+ 'promotedAt': string | null;
2020
+ /**
2021
+ * When the version last stopped being the package\'s `latest`; null if it never has.
2022
+ */
2023
+ 'demotedAt': string | null;
2024
+ /**
2025
+ * The `description` from the version\'s publisher.json
2026
+ */
2027
+ 'description'?: string;
2028
+ /**
2029
+ * Where the version was published from. A version whose files are missing on disk is fetched again from here, and checked against `contentHash` before it is served.
2030
+ */
2031
+ 'location'?: string;
2032
+ /**
2033
+ * SHA-256 (hex) over the version\'s files. Publishing the same version with the same content again succeeds and changes nothing; with different content it is refused with 409 VERSION_CONFLICT.
2034
+ */
2035
+ 'contentHash': string;
2036
+ /**
2037
+ * The build manifest this version is bound to (see `Package.manifestLocation`); null when it serves live. Set with `PUT .../versions/{version}/manifest`.
2038
+ */
2039
+ 'manifestLocation': string | null;
2040
+ /**
2041
+ * Git commit the version was published from, when the publisher recorded it. Reserved: nothing records it yet.
2042
+ */
2043
+ 'gitCommitSha': string | null;
2044
+ /**
2045
+ * Git ref the version was published from. Reserved, like `gitCommitSha`.
2046
+ */
2047
+ 'gitRef': string | null;
2048
+ /**
2049
+ * When the version was published
2050
+ */
2051
+ 'createdAt': string;
2052
+ /**
2053
+ * When the version\'s lifecycle state or binding last changed
2054
+ */
2055
+ 'updatedAt': string;
2056
+ }
2057
+ export declare const PackageVersionArchiveStatusEnum: {
2058
+ readonly Archive: "archive";
2059
+ readonly Unarchive: "unarchive";
2060
+ };
2061
+ export type PackageVersionArchiveStatusEnum = typeof PackageVersionArchiveStatusEnum[keyof typeof PackageVersionArchiveStatusEnum];
2062
+ /**
2063
+ * The build manifest to bind a published version to
2064
+ */
2065
+ export interface PackageVersionManifest {
2066
+ /**
2067
+ * 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.
2068
+ */
2069
+ 'manifestLocation': string | null;
2070
+ }
2071
+ /**
2072
+ * A lifecycle change to a published version
2073
+ */
2074
+ export interface PackageVersionUpdate {
2075
+ /**
2076
+ * `archive` takes the version out of service; `unarchive` puts it back.
2077
+ */
2078
+ 'archiveStatus': PackageVersionUpdateArchiveStatusEnum;
2079
+ }
2080
+ export declare const PackageVersionUpdateArchiveStatusEnum: {
2081
+ readonly Archive: "archive";
2082
+ readonly Unarchive: "unarchive";
2083
+ };
2084
+ export type PackageVersionUpdateArchiveStatusEnum = typeof PackageVersionUpdateArchiveStatusEnum[keyof typeof PackageVersionUpdateArchiveStatusEnum];
1935
2085
  export interface PackageWarningsInner {
1936
2086
  /**
1937
2087
  * Package-relative path of the model the finding is on. Absent for a package-wide finding.
@@ -2179,7 +2329,7 @@ export interface QueryRequest {
2179
2329
  */
2180
2330
  'compactJson'?: boolean;
2181
2331
  /**
2182
- * Version ID
2332
+ * The published version of the package to query. `latest`, omitted or empty, the query runs against the package\'s `latest` version. An unknown version answers 404 (`reason` VERSION_NOT_FOUND) and an archived one 410 (`reason` VERSION_ARCHIVED). A `versionId` in the request\'s query string, as a proxy forwarding a page\'s URL sends, is read the same way; when both name a version they must agree, or the request answers 400. It is not declared as a query parameter, so generated clients keep their argument order.
2183
2333
  */
2184
2334
  'versionId'?: string;
2185
2335
  /**
@@ -2719,7 +2869,7 @@ export interface ServerStatus {
2719
2869
  */
2720
2870
  'timestamp'?: number;
2721
2871
  /**
2722
- * List of available environments
2872
+ * List of available environments. Each environment\'s `packages` lists one entry per package, as `GET .../packages` does, except that a versioned package is listed once for EVERY version this server holds, each entry with its own `versionId`, `archiveStatus` and `loaded`. A loaded version\'s entry also carries its manifest binding (`manifestBindingStatus`, `boundManifestUri`); an unloaded one (an archived version, or one not loaded since the server started) carries only its name and version. An orchestrator reconciles what a server holds from this list, so it names every version rather than only `latest` or only what is in memory; `resource` keeps its shape.
2723
2873
  */
2724
2874
  'environments'?: Array<Environment>;
2725
2875
  /**
@@ -2734,6 +2884,14 @@ export interface ServerStatus {
2734
2884
  * This server\'s release version, for example \"0.8.2\". Use it to tell which build answered, for instance to rule out an old copy served from the npx cache.
2735
2885
  */
2736
2886
  'version'?: string;
2887
+ /**
2888
+ * \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on`); \"off\" when it installs the package in place, as before versions. Reads and the versions routes answer in both. Absent from a server that predates versions, which reads as \"off\": how an orchestrator talking to servers mid-rollout tells which ones publish native versions.
2889
+ */
2890
+ 'packageVersioning'?: ServerStatusPackageVersioningEnum;
2891
+ /**
2892
+ * The `versionPromotion` setting this server runs with. With \"explicit\", a publish never moves a package\'s `latest`; only `PUT .../packages/{packageName}/latest` does.
2893
+ */
2894
+ 'versionPromotion'?: ServerStatusVersionPromotionEnum;
2737
2895
  /**
2738
2896
  * Present only when the server has no environments because no publisher.config.json was found at startup, or because the --config path it was given does not exist. It names the path that was checked and how to fix it. It describes startup, so a config written while the server runs is not read until a restart. A server in this state still reports serving, so check this before treating an empty environments list as intended. Absent once any environment exists, including one created at runtime through the API, and absent when a config was found but lists no environments.
2739
2897
  */
@@ -2762,6 +2920,16 @@ export declare const ServerStatusOperationalStateEnum: {
2762
2920
  readonly Throttled: "throttled";
2763
2921
  };
2764
2922
  export type ServerStatusOperationalStateEnum = typeof ServerStatusOperationalStateEnum[keyof typeof ServerStatusOperationalStateEnum];
2923
+ export declare const ServerStatusPackageVersioningEnum: {
2924
+ readonly Off: "off";
2925
+ readonly On: "on";
2926
+ };
2927
+ export type ServerStatusPackageVersioningEnum = typeof ServerStatusPackageVersioningEnum[keyof typeof ServerStatusPackageVersioningEnum];
2928
+ export declare const ServerStatusVersionPromotionEnum: {
2929
+ readonly OnPublish: "on-publish";
2930
+ readonly Explicit: "explicit";
2931
+ };
2932
+ export type ServerStatusVersionPromotionEnum = typeof ServerStatusVersionPromotionEnum[keyof typeof ServerStatusVersionPromotionEnum];
2765
2933
  export interface ServerStatusLoadErrorsInner {
2766
2934
  /**
2767
2935
  * Name of the configured environment the failure belongs to.
@@ -3356,10 +3524,11 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
3356
3524
  * @param {string} packageName Name of the package
3357
3525
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3358
3526
  * @param {GetAgentSkillsEnum} [skills] &#x60;full&#x60; (the default) returns every skill file with its text. &#x60;summary&#x60; returns each file\&#39;s &#x60;relative_filepath&#x60; and &#x60;bytes&#x60;, plus &#x60;name&#x60; and &#x60;description&#x60; for a &#x60;SKILL.md&#x60;, and no &#x60;file_contents&#x60;; fetch a file with &#x60;GET .../agents/{agentName}/skills/{path}&#x60;. The &#x60;source&#x60; pin is identical in both. Any other value, including an empty one, is a 400.
3527
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3359
3528
  * @param {*} [options] Override http request option.
3360
3529
  * @throws {RequiredError}
3361
3530
  */
3362
- getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3531
+ getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3363
3532
  /**
3364
3533
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
3365
3534
  * @summary Get one of an agent\'s skill files
@@ -3367,19 +3536,21 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
3367
3536
  * @param {string} packageName Name of the package
3368
3537
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3369
3538
  * @param {string} relativeFilepath A &#x60;relative_filepath&#x60; from the agent\&#39;s skill summary. Slashes may be sent literally or as &#x60;%2F&#x60;; a literal &#x60;%&#x60; in a name must be sent as &#x60;%25&#x60;.
3539
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3370
3540
  * @param {*} [options] Override http request option.
3371
3541
  * @throws {RequiredError}
3372
3542
  */
3373
- getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3543
+ getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3374
3544
  /**
3375
3545
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
3376
3546
  * @summary List the agents a package declares
3377
3547
  * @param {string} environmentName Name of the environment
3378
3548
  * @param {string} packageName Name of the package
3549
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3379
3550
  * @param {*} [options] Override http request option.
3380
3551
  * @throws {RequiredError}
3381
3552
  */
3382
- listAgents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3553
+ listAgents: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3383
3554
  };
3384
3555
  /**
3385
3556
  * AgentsApi - functional programming interface
@@ -3392,10 +3563,11 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
3392
3563
  * @param {string} packageName Name of the package
3393
3564
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3394
3565
  * @param {GetAgentSkillsEnum} [skills] &#x60;full&#x60; (the default) returns every skill file with its text. &#x60;summary&#x60; returns each file\&#39;s &#x60;relative_filepath&#x60; and &#x60;bytes&#x60;, plus &#x60;name&#x60; and &#x60;description&#x60; for a &#x60;SKILL.md&#x60;, and no &#x60;file_contents&#x60;; fetch a file with &#x60;GET .../agents/{agentName}/skills/{path}&#x60;. The &#x60;source&#x60; pin is identical in both. Any other value, including an empty one, is a 400.
3566
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3395
3567
  * @param {*} [options] Override http request option.
3396
3568
  * @throws {RequiredError}
3397
3569
  */
3398
- getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
3570
+ getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
3399
3571
  /**
3400
3572
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
3401
3573
  * @summary Get one of an agent\'s skill files
@@ -3403,19 +3575,21 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
3403
3575
  * @param {string} packageName Name of the package
3404
3576
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3405
3577
  * @param {string} relativeFilepath A &#x60;relative_filepath&#x60; from the agent\&#39;s skill summary. Slashes may be sent literally or as &#x60;%2F&#x60;; a literal &#x60;%&#x60; in a name must be sent as &#x60;%25&#x60;.
3578
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3406
3579
  * @param {*} [options] Override http request option.
3407
3580
  * @throws {RequiredError}
3408
3581
  */
3409
- getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
3582
+ getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
3410
3583
  /**
3411
3584
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
3412
3585
  * @summary List the agents a package declares
3413
3586
  * @param {string} environmentName Name of the environment
3414
3587
  * @param {string} packageName Name of the package
3588
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3415
3589
  * @param {*} [options] Override http request option.
3416
3590
  * @throws {RequiredError}
3417
3591
  */
3418
- listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
3592
+ listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
3419
3593
  };
3420
3594
  /**
3421
3595
  * AgentsApi - factory interface
@@ -3428,10 +3602,11 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
3428
3602
  * @param {string} packageName Name of the package
3429
3603
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3430
3604
  * @param {GetAgentSkillsEnum} [skills] &#x60;full&#x60; (the default) returns every skill file with its text. &#x60;summary&#x60; returns each file\&#39;s &#x60;relative_filepath&#x60; and &#x60;bytes&#x60;, plus &#x60;name&#x60; and &#x60;description&#x60; for a &#x60;SKILL.md&#x60;, and no &#x60;file_contents&#x60;; fetch a file with &#x60;GET .../agents/{agentName}/skills/{path}&#x60;. The &#x60;source&#x60; pin is identical in both. Any other value, including an empty one, is a 400.
3605
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3431
3606
  * @param {*} [options] Override http request option.
3432
3607
  * @throws {RequiredError}
3433
3608
  */
3434
- getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
3609
+ getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
3435
3610
  /**
3436
3611
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
3437
3612
  * @summary Get one of an agent\'s skill files
@@ -3439,19 +3614,21 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
3439
3614
  * @param {string} packageName Name of the package
3440
3615
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3441
3616
  * @param {string} relativeFilepath A &#x60;relative_filepath&#x60; from the agent\&#39;s skill summary. Slashes may be sent literally or as &#x60;%2F&#x60;; a literal &#x60;%&#x60; in a name must be sent as &#x60;%25&#x60;.
3617
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3442
3618
  * @param {*} [options] Override http request option.
3443
3619
  * @throws {RequiredError}
3444
3620
  */
3445
- getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
3621
+ getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
3446
3622
  /**
3447
3623
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
3448
3624
  * @summary List the agents a package declares
3449
3625
  * @param {string} environmentName Name of the environment
3450
3626
  * @param {string} packageName Name of the package
3627
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3451
3628
  * @param {*} [options] Override http request option.
3452
3629
  * @throws {RequiredError}
3453
3630
  */
3454
- listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
3631
+ listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
3455
3632
  };
3456
3633
  /**
3457
3634
  * AgentsApi - object-oriented interface
@@ -3464,10 +3641,11 @@ export declare class AgentsApi extends BaseAPI {
3464
3641
  * @param {string} packageName Name of the package
3465
3642
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3466
3643
  * @param {GetAgentSkillsEnum} [skills] &#x60;full&#x60; (the default) returns every skill file with its text. &#x60;summary&#x60; returns each file\&#39;s &#x60;relative_filepath&#x60; and &#x60;bytes&#x60;, plus &#x60;name&#x60; and &#x60;description&#x60; for a &#x60;SKILL.md&#x60;, and no &#x60;file_contents&#x60;; fetch a file with &#x60;GET .../agents/{agentName}/skills/{path}&#x60;. The &#x60;source&#x60; pin is identical in both. Any other value, including an empty one, is a 400.
3644
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3467
3645
  * @param {*} [options] Override http request option.
3468
3646
  * @throws {RequiredError}
3469
3647
  */
3470
- getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
3648
+ getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
3471
3649
  /**
3472
3650
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
3473
3651
  * @summary Get one of an agent\'s skill files
@@ -3475,19 +3653,21 @@ export declare class AgentsApi extends BaseAPI {
3475
3653
  * @param {string} packageName Name of the package
3476
3654
  * @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
3477
3655
  * @param {string} relativeFilepath A &#x60;relative_filepath&#x60; from the agent\&#39;s skill summary. Slashes may be sent literally or as &#x60;%2F&#x60;; a literal &#x60;%&#x60; in a name must be sent as &#x60;%25&#x60;.
3656
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3478
3657
  * @param {*} [options] Override http request option.
3479
3658
  * @throws {RequiredError}
3480
3659
  */
3481
- getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
3660
+ getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
3482
3661
  /**
3483
3662
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
3484
3663
  * @summary List the agents a package declares
3485
3664
  * @param {string} environmentName Name of the environment
3486
3665
  * @param {string} packageName Name of the package
3666
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3487
3667
  * @param {*} [options] Override http request option.
3488
3668
  * @throws {RequiredError}
3489
3669
  */
3490
- listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
3670
+ listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
3491
3671
  }
3492
3672
  export declare const GetAgentSkillsEnum: {
3493
3673
  readonly Full: "full";
@@ -3545,10 +3725,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3545
3725
  * @param {string} connectionName Name of the connection
3546
3726
  * @param {string} schemaName Name of the schema
3547
3727
  * @param {string} tablePath Full path to the table
3728
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3548
3729
  * @param {*} [options] Override http request option.
3549
3730
  * @throws {RequiredError}
3550
3731
  */
3551
- getTableInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3732
+ getTableInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3552
3733
  /**
3553
3734
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
3554
3735
  * @summary List environment database connections
@@ -3572,10 +3753,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3572
3753
  * @param {string} environmentName Name of the environment
3573
3754
  * @param {string} packageName Name of the package whose connection context to use
3574
3755
  * @param {string} connectionName Name of the connection
3756
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3575
3757
  * @param {*} [options] Override http request option.
3576
3758
  * @throws {RequiredError}
3577
3759
  */
3578
- listSchemasInPackage: (environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3760
+ listSchemasInPackage: (environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3579
3761
  /**
3580
3762
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
3581
3763
  * @summary List tables in database
@@ -3595,10 +3777,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3595
3777
  * @param {string} connectionName Name of the connection
3596
3778
  * @param {string} schemaName Name of the schema
3597
3779
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
3780
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3598
3781
  * @param {*} [options] Override http request option.
3599
3782
  * @throws {RequiredError}
3600
3783
  */
3601
- listTablesInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3784
+ listTablesInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3602
3785
  /**
3603
3786
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
3604
3787
  * @summary Execute SQL query
@@ -3616,10 +3799,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3616
3799
  * @param {string} packageName Name of the package whose connection context to use
3617
3800
  * @param {string} connectionName Name of the connection
3618
3801
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
3802
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3619
3803
  * @param {*} [options] Override http request option.
3620
3804
  * @throws {RequiredError}
3621
3805
  */
3622
- postQuerydataInPackage: (environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3806
+ postQuerydataInPackage: (environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3623
3807
  /**
3624
3808
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
3625
3809
  * @summary Create SQL source from statement
@@ -3637,10 +3821,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3637
3821
  * @param {string} packageName Name of the package whose connection context to use
3638
3822
  * @param {string} connectionName Name of the connection
3639
3823
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
3824
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3640
3825
  * @param {*} [options] Override http request option.
3641
3826
  * @throws {RequiredError}
3642
3827
  */
3643
- postSqlsourceInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3828
+ postSqlsourceInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3644
3829
  /**
3645
3830
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
3646
3831
  * @summary Create temporary table
@@ -3658,10 +3843,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
3658
3843
  * @param {string} packageName Name of the package whose connection context to use
3659
3844
  * @param {string} connectionName Name of the connection
3660
3845
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
3846
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3661
3847
  * @param {*} [options] Override http request option.
3662
3848
  * @throws {RequiredError}
3663
3849
  */
3664
- postTemporarytableInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3850
+ postTemporarytableInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3665
3851
  /**
3666
3852
  * Updates the configuration of an existing database connection.
3667
3853
  * @summary Update an existing database connection
@@ -3724,10 +3910,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3724
3910
  * @param {string} connectionName Name of the connection
3725
3911
  * @param {string} schemaName Name of the schema
3726
3912
  * @param {string} tablePath Full path to the table
3913
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3727
3914
  * @param {*} [options] Override http request option.
3728
3915
  * @throws {RequiredError}
3729
3916
  */
3730
- getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Table>>;
3917
+ getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Table>>;
3731
3918
  /**
3732
3919
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
3733
3920
  * @summary List environment database connections
@@ -3751,10 +3938,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3751
3938
  * @param {string} environmentName Name of the environment
3752
3939
  * @param {string} packageName Name of the package whose connection context to use
3753
3940
  * @param {string} connectionName Name of the connection
3941
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3754
3942
  * @param {*} [options] Override http request option.
3755
3943
  * @throws {RequiredError}
3756
3944
  */
3757
- listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Schema>>>;
3945
+ listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Schema>>>;
3758
3946
  /**
3759
3947
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
3760
3948
  * @summary List tables in database
@@ -3774,10 +3962,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3774
3962
  * @param {string} connectionName Name of the connection
3775
3963
  * @param {string} schemaName Name of the schema
3776
3964
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
3965
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3777
3966
  * @param {*} [options] Override http request option.
3778
3967
  * @throws {RequiredError}
3779
3968
  */
3780
- listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Table>>>;
3969
+ listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Table>>>;
3781
3970
  /**
3782
3971
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
3783
3972
  * @summary Execute SQL query
@@ -3795,10 +3984,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3795
3984
  * @param {string} packageName Name of the package whose connection context to use
3796
3985
  * @param {string} connectionName Name of the connection
3797
3986
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
3987
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3798
3988
  * @param {*} [options] Override http request option.
3799
3989
  * @throws {RequiredError}
3800
3990
  */
3801
- postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryData>>;
3991
+ postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryData>>;
3802
3992
  /**
3803
3993
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
3804
3994
  * @summary Create SQL source from statement
@@ -3816,10 +4006,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3816
4006
  * @param {string} packageName Name of the package whose connection context to use
3817
4007
  * @param {string} connectionName Name of the connection
3818
4008
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
4009
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3819
4010
  * @param {*} [options] Override http request option.
3820
4011
  * @throws {RequiredError}
3821
4012
  */
3822
- postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SqlSource>>;
4013
+ postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SqlSource>>;
3823
4014
  /**
3824
4015
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
3825
4016
  * @summary Create temporary table
@@ -3837,10 +4028,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
3837
4028
  * @param {string} packageName Name of the package whose connection context to use
3838
4029
  * @param {string} connectionName Name of the connection
3839
4030
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
4031
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3840
4032
  * @param {*} [options] Override http request option.
3841
4033
  * @throws {RequiredError}
3842
4034
  */
3843
- postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemporaryTable>>;
4035
+ postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemporaryTable>>;
3844
4036
  /**
3845
4037
  * Updates the configuration of an existing database connection.
3846
4038
  * @summary Update an existing database connection
@@ -3903,10 +4095,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
3903
4095
  * @param {string} connectionName Name of the connection
3904
4096
  * @param {string} schemaName Name of the schema
3905
4097
  * @param {string} tablePath Full path to the table
4098
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3906
4099
  * @param {*} [options] Override http request option.
3907
4100
  * @throws {RequiredError}
3908
4101
  */
3909
- getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): AxiosPromise<Table>;
4102
+ getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Table>;
3910
4103
  /**
3911
4104
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
3912
4105
  * @summary List environment database connections
@@ -3930,10 +4123,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
3930
4123
  * @param {string} environmentName Name of the environment
3931
4124
  * @param {string} packageName Name of the package whose connection context to use
3932
4125
  * @param {string} connectionName Name of the connection
4126
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3933
4127
  * @param {*} [options] Override http request option.
3934
4128
  * @throws {RequiredError}
3935
4129
  */
3936
- listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Schema>>;
4130
+ listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Schema>>;
3937
4131
  /**
3938
4132
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
3939
4133
  * @summary List tables in database
@@ -3953,10 +4147,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
3953
4147
  * @param {string} connectionName Name of the connection
3954
4148
  * @param {string} schemaName Name of the schema
3955
4149
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
4150
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3956
4151
  * @param {*} [options] Override http request option.
3957
4152
  * @throws {RequiredError}
3958
4153
  */
3959
- listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<Array<Table>>;
4154
+ listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Table>>;
3960
4155
  /**
3961
4156
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
3962
4157
  * @summary Execute SQL query
@@ -3974,10 +4169,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
3974
4169
  * @param {string} packageName Name of the package whose connection context to use
3975
4170
  * @param {string} connectionName Name of the connection
3976
4171
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
4172
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3977
4173
  * @param {*} [options] Override http request option.
3978
4174
  * @throws {RequiredError}
3979
4175
  */
3980
- postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): AxiosPromise<QueryData>;
4176
+ postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryData>;
3981
4177
  /**
3982
4178
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
3983
4179
  * @summary Create SQL source from statement
@@ -3995,10 +4191,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
3995
4191
  * @param {string} packageName Name of the package whose connection context to use
3996
4192
  * @param {string} connectionName Name of the connection
3997
4193
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
4194
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
3998
4195
  * @param {*} [options] Override http request option.
3999
4196
  * @throws {RequiredError}
4000
4197
  */
4001
- postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SqlSource>;
4198
+ postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SqlSource>;
4002
4199
  /**
4003
4200
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
4004
4201
  * @summary Create temporary table
@@ -4016,10 +4213,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
4016
4213
  * @param {string} packageName Name of the package whose connection context to use
4017
4214
  * @param {string} connectionName Name of the connection
4018
4215
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
4216
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4019
4217
  * @param {*} [options] Override http request option.
4020
4218
  * @throws {RequiredError}
4021
4219
  */
4022
- postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemporaryTable>;
4220
+ postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TemporaryTable>;
4023
4221
  /**
4024
4222
  * Updates the configuration of an existing database connection.
4025
4223
  * @summary Update an existing database connection
@@ -4082,10 +4280,11 @@ export declare class ConnectionsApi extends BaseAPI {
4082
4280
  * @param {string} connectionName Name of the connection
4083
4281
  * @param {string} schemaName Name of the schema
4084
4282
  * @param {string} tablePath Full path to the table
4283
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4085
4284
  * @param {*} [options] Override http request option.
4086
4285
  * @throws {RequiredError}
4087
4286
  */
4088
- getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table, any, {}, any>>;
4287
+ getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table, any, {}, any>>;
4089
4288
  /**
4090
4289
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
4091
4290
  * @summary List environment database connections
@@ -4109,10 +4308,11 @@ export declare class ConnectionsApi extends BaseAPI {
4109
4308
  * @param {string} environmentName Name of the environment
4110
4309
  * @param {string} packageName Name of the package whose connection context to use
4111
4310
  * @param {string} connectionName Name of the connection
4311
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4112
4312
  * @param {*} [options] Override http request option.
4113
4313
  * @throws {RequiredError}
4114
4314
  */
4115
- listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Schema[], any, {}, any>>;
4315
+ listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Schema[], any, {}, any>>;
4116
4316
  /**
4117
4317
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
4118
4318
  * @summary List tables in database
@@ -4132,10 +4332,11 @@ export declare class ConnectionsApi extends BaseAPI {
4132
4332
  * @param {string} connectionName Name of the connection
4133
4333
  * @param {string} schemaName Name of the schema
4134
4334
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
4335
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4135
4336
  * @param {*} [options] Override http request option.
4136
4337
  * @throws {RequiredError}
4137
4338
  */
4138
- listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table[], any, {}, any>>;
4339
+ listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table[], any, {}, any>>;
4139
4340
  /**
4140
4341
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
4141
4342
  * @summary Execute SQL query
@@ -4153,10 +4354,11 @@ export declare class ConnectionsApi extends BaseAPI {
4153
4354
  * @param {string} packageName Name of the package whose connection context to use
4154
4355
  * @param {string} connectionName Name of the connection
4155
4356
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
4357
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4156
4358
  * @param {*} [options] Override http request option.
4157
4359
  * @throws {RequiredError}
4158
4360
  */
4159
- postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryData, any, {}, any>>;
4361
+ postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryData, any, {}, any>>;
4160
4362
  /**
4161
4363
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
4162
4364
  * @summary Create SQL source from statement
@@ -4174,10 +4376,11 @@ export declare class ConnectionsApi extends BaseAPI {
4174
4376
  * @param {string} packageName Name of the package whose connection context to use
4175
4377
  * @param {string} connectionName Name of the connection
4176
4378
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
4379
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4177
4380
  * @param {*} [options] Override http request option.
4178
4381
  * @throws {RequiredError}
4179
4382
  */
4180
- postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SqlSource, any, {}, any>>;
4383
+ postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SqlSource, any, {}, any>>;
4181
4384
  /**
4182
4385
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
4183
4386
  * @summary Create temporary table
@@ -4195,10 +4398,11 @@ export declare class ConnectionsApi extends BaseAPI {
4195
4398
  * @param {string} packageName Name of the package whose connection context to use
4196
4399
  * @param {string} connectionName Name of the connection
4197
4400
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
4401
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4198
4402
  * @param {*} [options] Override http request option.
4199
4403
  * @throws {RequiredError}
4200
4404
  */
4201
- postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<TemporaryTable, any, {}, any>>;
4405
+ postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<TemporaryTable, any, {}, any>>;
4202
4406
  /**
4203
4407
  * Updates the configuration of an existing database connection.
4204
4408
  * @summary Update an existing database connection
@@ -4272,7 +4476,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
4272
4476
  * @param {string} environmentName Name of the environment
4273
4477
  * @param {string} packageName Name of the package
4274
4478
  * @param {string} dashboardName The report\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4275
- * @param {string} [versionId] Version identifier for the package
4479
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4276
4480
  * @param {*} [options] Override http request option.
4277
4481
  * @deprecated
4278
4482
  * @throws {RequiredError}
@@ -4283,7 +4487,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
4283
4487
  * @summary List package dashboards (deprecated; use list-reports)
4284
4488
  * @param {string} environmentName Name of the environment
4285
4489
  * @param {string} packageName Name of the package
4286
- * @param {string} [versionId] Version identifier for the package
4490
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4287
4491
  * @param {*} [options] Override http request option.
4288
4492
  * @deprecated
4289
4493
  * @throws {RequiredError}
@@ -4300,7 +4504,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
4300
4504
  * @param {string} environmentName Name of the environment
4301
4505
  * @param {string} packageName Name of the package
4302
4506
  * @param {string} dashboardName The report\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4303
- * @param {string} [versionId] Version identifier for the package
4507
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4304
4508
  * @param {*} [options] Override http request option.
4305
4509
  * @deprecated
4306
4510
  * @throws {RequiredError}
@@ -4311,7 +4515,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
4311
4515
  * @summary List package dashboards (deprecated; use list-reports)
4312
4516
  * @param {string} environmentName Name of the environment
4313
4517
  * @param {string} packageName Name of the package
4314
- * @param {string} [versionId] Version identifier for the package
4518
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4315
4519
  * @param {*} [options] Override http request option.
4316
4520
  * @deprecated
4317
4521
  * @throws {RequiredError}
@@ -4328,7 +4532,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
4328
4532
  * @param {string} environmentName Name of the environment
4329
4533
  * @param {string} packageName Name of the package
4330
4534
  * @param {string} dashboardName The report\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4331
- * @param {string} [versionId] Version identifier for the package
4535
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4332
4536
  * @param {*} [options] Override http request option.
4333
4537
  * @deprecated
4334
4538
  * @throws {RequiredError}
@@ -4339,7 +4543,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
4339
4543
  * @summary List package dashboards (deprecated; use list-reports)
4340
4544
  * @param {string} environmentName Name of the environment
4341
4545
  * @param {string} packageName Name of the package
4342
- * @param {string} [versionId] Version identifier for the package
4546
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4343
4547
  * @param {*} [options] Override http request option.
4344
4548
  * @deprecated
4345
4549
  * @throws {RequiredError}
@@ -4356,7 +4560,7 @@ export declare class DashboardsApi extends BaseAPI {
4356
4560
  * @param {string} environmentName Name of the environment
4357
4561
  * @param {string} packageName Name of the package
4358
4562
  * @param {string} dashboardName The report\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4359
- * @param {string} [versionId] Version identifier for the package
4563
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4360
4564
  * @param {*} [options] Override http request option.
4361
4565
  * @deprecated
4362
4566
  * @throws {RequiredError}
@@ -4367,7 +4571,7 @@ export declare class DashboardsApi extends BaseAPI {
4367
4571
  * @summary List package dashboards (deprecated; use list-reports)
4368
4572
  * @param {string} environmentName Name of the environment
4369
4573
  * @param {string} packageName Name of the package
4370
- * @param {string} [versionId] Version identifier for the package
4574
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4371
4575
  * @param {*} [options] Override http request option.
4372
4576
  * @deprecated
4373
4577
  * @throws {RequiredError}
@@ -4383,10 +4587,11 @@ export declare const DataAppsApiAxiosParamCreator: (configuration?: Configuratio
4383
4587
  * @summary List package data apps
4384
4588
  * @param {string} environmentName Name of the environment
4385
4589
  * @param {string} packageName Name of the package
4590
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4386
4591
  * @param {*} [options] Override http request option.
4387
4592
  * @throws {RequiredError}
4388
4593
  */
4389
- listDataApps: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4594
+ listDataApps: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4390
4595
  };
4391
4596
  /**
4392
4597
  * DataAppsApi - functional programming interface
@@ -4397,10 +4602,11 @@ export declare const DataAppsApiFp: (configuration?: Configuration) => {
4397
4602
  * @summary List package data apps
4398
4603
  * @param {string} environmentName Name of the environment
4399
4604
  * @param {string} packageName Name of the package
4605
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4400
4606
  * @param {*} [options] Override http request option.
4401
4607
  * @throws {RequiredError}
4402
4608
  */
4403
- listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataApp>>>;
4609
+ listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataApp>>>;
4404
4610
  };
4405
4611
  /**
4406
4612
  * DataAppsApi - factory interface
@@ -4411,10 +4617,11 @@ export declare const DataAppsApiFactory: (configuration?: Configuration, basePat
4411
4617
  * @summary List package data apps
4412
4618
  * @param {string} environmentName Name of the environment
4413
4619
  * @param {string} packageName Name of the package
4620
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4414
4621
  * @param {*} [options] Override http request option.
4415
4622
  * @throws {RequiredError}
4416
4623
  */
4417
- listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataApp>>;
4624
+ listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataApp>>;
4418
4625
  };
4419
4626
  /**
4420
4627
  * DataAppsApi - object-oriented interface
@@ -4425,10 +4632,11 @@ export declare class DataAppsApi extends BaseAPI {
4425
4632
  * @summary List package data apps
4426
4633
  * @param {string} environmentName Name of the environment
4427
4634
  * @param {string} packageName Name of the package
4635
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4428
4636
  * @param {*} [options] Override http request option.
4429
4637
  * @throws {RequiredError}
4430
4638
  */
4431
- listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DataApp[], any, {}, any>>;
4639
+ listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DataApp[], any, {}, any>>;
4432
4640
  }
4433
4641
  /**
4434
4642
  * DatabasesApi - axios parameter creator
@@ -4439,7 +4647,7 @@ export declare const DatabasesApiAxiosParamCreator: (configuration?: Configurati
4439
4647
  * @summary List embedded databases
4440
4648
  * @param {string} environmentName Name of the environment
4441
4649
  * @param {string} packageName Name of the package
4442
- * @param {string} [versionId] Version identifier for the package
4650
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4443
4651
  * @param {*} [options] Override http request option.
4444
4652
  * @throws {RequiredError}
4445
4653
  */
@@ -4454,7 +4662,7 @@ export declare const DatabasesApiFp: (configuration?: Configuration) => {
4454
4662
  * @summary List embedded databases
4455
4663
  * @param {string} environmentName Name of the environment
4456
4664
  * @param {string} packageName Name of the package
4457
- * @param {string} [versionId] Version identifier for the package
4665
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4458
4666
  * @param {*} [options] Override http request option.
4459
4667
  * @throws {RequiredError}
4460
4668
  */
@@ -4469,7 +4677,7 @@ export declare const DatabasesApiFactory: (configuration?: Configuration, basePa
4469
4677
  * @summary List embedded databases
4470
4678
  * @param {string} environmentName Name of the environment
4471
4679
  * @param {string} packageName Name of the package
4472
- * @param {string} [versionId] Version identifier for the package
4680
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4473
4681
  * @param {*} [options] Override http request option.
4474
4682
  * @throws {RequiredError}
4475
4683
  */
@@ -4484,7 +4692,7 @@ export declare class DatabasesApi extends BaseAPI {
4484
4692
  * @summary List embedded databases
4485
4693
  * @param {string} environmentName Name of the environment
4486
4694
  * @param {string} packageName Name of the package
4487
- * @param {string} [versionId] Version identifier for the package
4695
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4488
4696
  * @param {*} [options] Override http request option.
4489
4697
  * @throws {RequiredError}
4490
4698
  */
@@ -4695,31 +4903,34 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
4695
4903
  * @param {string} packageName Name of the package
4696
4904
  * @param {string} materializationId ID of the materialization
4697
4905
  * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
4906
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4698
4907
  * @param {*} [options] Override http request option.
4699
4908
  * @throws {RequiredError}
4700
4909
  */
4701
- deleteMaterialization: (environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4910
+ deleteMaterialization: (environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4702
4911
  /**
4703
- *
4912
+ * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
4704
4913
  * @summary Get a specific materialization
4705
4914
  * @param {string} environmentName Name of the environment
4706
4915
  * @param {string} packageName Name of the package
4707
4916
  * @param {string} materializationId ID of the materialization
4917
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4708
4918
  * @param {*} [options] Override http request option.
4709
4919
  * @throws {RequiredError}
4710
4920
  */
4711
- getMaterialization: (environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4921
+ getMaterialization: (environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4712
4922
  /**
4713
- * Returns the materialization history for the package, ordered by most recent first.
4923
+ * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
4714
4924
  * @summary List materializations for a package
4715
4925
  * @param {string} environmentName Name of the environment
4716
4926
  * @param {string} packageName Name of the package
4717
4927
  * @param {number} [limit] Maximum number of materializations to return
4718
4928
  * @param {number} [offset] Number of materializations to skip
4929
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4719
4930
  * @param {*} [options] Override http request option.
4720
4931
  * @throws {RequiredError}
4721
4932
  */
4722
- listMaterializations: (environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4933
+ listMaterializations: (environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4723
4934
  /**
4724
4935
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
4725
4936
  * @summary Perform an action on a materialization
@@ -4727,10 +4938,11 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
4727
4938
  * @param {string} packageName Name of the package
4728
4939
  * @param {string} materializationId ID of the materialization
4729
4940
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
4941
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4730
4942
  * @param {*} [options] Override http request option.
4731
4943
  * @throws {RequiredError}
4732
4944
  */
4733
- materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4945
+ materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4734
4946
  };
4735
4947
  /**
4736
4948
  * MaterializationsApi - functional programming interface
@@ -4753,31 +4965,34 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
4753
4965
  * @param {string} packageName Name of the package
4754
4966
  * @param {string} materializationId ID of the materialization
4755
4967
  * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
4968
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4756
4969
  * @param {*} [options] Override http request option.
4757
4970
  * @throws {RequiredError}
4758
4971
  */
4759
- deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4972
+ deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4760
4973
  /**
4761
- *
4974
+ * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
4762
4975
  * @summary Get a specific materialization
4763
4976
  * @param {string} environmentName Name of the environment
4764
4977
  * @param {string} packageName Name of the package
4765
4978
  * @param {string} materializationId ID of the materialization
4979
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4766
4980
  * @param {*} [options] Override http request option.
4767
4981
  * @throws {RequiredError}
4768
4982
  */
4769
- getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
4983
+ getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
4770
4984
  /**
4771
- * Returns the materialization history for the package, ordered by most recent first.
4985
+ * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
4772
4986
  * @summary List materializations for a package
4773
4987
  * @param {string} environmentName Name of the environment
4774
4988
  * @param {string} packageName Name of the package
4775
4989
  * @param {number} [limit] Maximum number of materializations to return
4776
4990
  * @param {number} [offset] Number of materializations to skip
4991
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4777
4992
  * @param {*} [options] Override http request option.
4778
4993
  * @throws {RequiredError}
4779
4994
  */
4780
- listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
4995
+ listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
4781
4996
  /**
4782
4997
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
4783
4998
  * @summary Perform an action on a materialization
@@ -4785,10 +5000,11 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
4785
5000
  * @param {string} packageName Name of the package
4786
5001
  * @param {string} materializationId ID of the materialization
4787
5002
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
5003
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4788
5004
  * @param {*} [options] Override http request option.
4789
5005
  * @throws {RequiredError}
4790
5006
  */
4791
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
5007
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
4792
5008
  };
4793
5009
  /**
4794
5010
  * MaterializationsApi - factory interface
@@ -4811,31 +5027,34 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
4811
5027
  * @param {string} packageName Name of the package
4812
5028
  * @param {string} materializationId ID of the materialization
4813
5029
  * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5030
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4814
5031
  * @param {*} [options] Override http request option.
4815
5032
  * @throws {RequiredError}
4816
5033
  */
4817
- deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5034
+ deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
4818
5035
  /**
4819
- *
5036
+ * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
4820
5037
  * @summary Get a specific materialization
4821
5038
  * @param {string} environmentName Name of the environment
4822
5039
  * @param {string} packageName Name of the package
4823
5040
  * @param {string} materializationId ID of the materialization
5041
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4824
5042
  * @param {*} [options] Override http request option.
4825
5043
  * @throws {RequiredError}
4826
5044
  */
4827
- getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
5045
+ getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
4828
5046
  /**
4829
- * Returns the materialization history for the package, ordered by most recent first.
5047
+ * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
4830
5048
  * @summary List materializations for a package
4831
5049
  * @param {string} environmentName Name of the environment
4832
5050
  * @param {string} packageName Name of the package
4833
5051
  * @param {number} [limit] Maximum number of materializations to return
4834
5052
  * @param {number} [offset] Number of materializations to skip
5053
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4835
5054
  * @param {*} [options] Override http request option.
4836
5055
  * @throws {RequiredError}
4837
5056
  */
4838
- listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
5057
+ listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
4839
5058
  /**
4840
5059
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
4841
5060
  * @summary Perform an action on a materialization
@@ -4843,10 +5062,11 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
4843
5062
  * @param {string} packageName Name of the package
4844
5063
  * @param {string} materializationId ID of the materialization
4845
5064
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
5065
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4846
5066
  * @param {*} [options] Override http request option.
4847
5067
  * @throws {RequiredError}
4848
5068
  */
4849
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
5069
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
4850
5070
  };
4851
5071
  /**
4852
5072
  * MaterializationsApi - object-oriented interface
@@ -4869,31 +5089,34 @@ export declare class MaterializationsApi extends BaseAPI {
4869
5089
  * @param {string} packageName Name of the package
4870
5090
  * @param {string} materializationId ID of the materialization
4871
5091
  * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
5092
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4872
5093
  * @param {*} [options] Override http request option.
4873
5094
  * @throws {RequiredError}
4874
5095
  */
4875
- deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
5096
+ deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
4876
5097
  /**
4877
- *
5098
+ * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
4878
5099
  * @summary Get a specific materialization
4879
5100
  * @param {string} environmentName Name of the environment
4880
5101
  * @param {string} packageName Name of the package
4881
5102
  * @param {string} materializationId ID of the materialization
5103
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4882
5104
  * @param {*} [options] Override http request option.
4883
5105
  * @throws {RequiredError}
4884
5106
  */
4885
- getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
5107
+ getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
4886
5108
  /**
4887
- * Returns the materialization history for the package, ordered by most recent first.
5109
+ * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
4888
5110
  * @summary List materializations for a package
4889
5111
  * @param {string} environmentName Name of the environment
4890
5112
  * @param {string} packageName Name of the package
4891
5113
  * @param {number} [limit] Maximum number of materializations to return
4892
5114
  * @param {number} [offset] Number of materializations to skip
5115
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4893
5116
  * @param {*} [options] Override http request option.
4894
5117
  * @throws {RequiredError}
4895
5118
  */
4896
- listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}, any>>;
5119
+ listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}, any>>;
4897
5120
  /**
4898
5121
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
4899
5122
  * @summary Perform an action on a materialization
@@ -4901,10 +5124,11 @@ export declare class MaterializationsApi extends BaseAPI {
4901
5124
  * @param {string} packageName Name of the package
4902
5125
  * @param {string} materializationId ID of the materialization
4903
5126
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
5127
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4904
5128
  * @param {*} [options] Override http request option.
4905
5129
  * @throws {RequiredError}
4906
5130
  */
4907
- materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
5131
+ materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
4908
5132
  }
4909
5133
  export declare const MaterializationActionActionEnum: {
4910
5134
  readonly Stop: "stop";
@@ -4921,10 +5145,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4921
5145
  * @param {string} packageName Name of the package
4922
5146
  * @param {string} path Path to the model within the package (used to resolve relative imports)
4923
5147
  * @param {CompileRequest} compileRequest
5148
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4924
5149
  * @param {*} [options] Override http request option.
4925
5150
  * @throws {RequiredError}
4926
5151
  */
4927
- compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5152
+ compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4928
5153
  /**
4929
5154
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
4930
5155
  * @summary Execute Malloy query
@@ -4943,7 +5168,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4943
5168
  * @param {string} environmentName Name of the environment
4944
5169
  * @param {string} packageName Name of the package
4945
5170
  * @param {string} path Path to the model within the package
4946
- * @param {string} [versionId] Version identifier for the package
5171
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4947
5172
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4948
5173
  * @param {*} [options] Override http request option.
4949
5174
  * @throws {RequiredError}
@@ -4954,20 +5179,20 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4954
5179
  * @summary List package models
4955
5180
  * @param {string} environmentName Name of the environment
4956
5181
  * @param {string} packageName Name of the package
4957
- * @param {string} [versionId] Version identifier for the package
5182
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4958
5183
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4959
5184
  * @param {*} [options] Override http request option.
4960
5185
  * @throws {RequiredError}
4961
5186
  */
4962
5187
  listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4963
5188
  /**
4964
- * 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.
5189
+ * 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`).
4965
5190
  * @summary Write a report file into the package
4966
5191
  * @param {string} environmentName Name of the environment
4967
5192
  * @param {string} packageName Name of the package
4968
5193
  * @param {string} path The report file\&#39;s path in the package, such as &#x60;sales/q3.malloy&#x60;
4969
5194
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
4970
- * @param {string} [versionId] Version identifier for the package
5195
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4971
5196
  * @param {*} [options] Override http request option.
4972
5197
  * @throws {RequiredError}
4973
5198
  */
@@ -4984,10 +5209,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4984
5209
  * @param {string} packageName Name of the package
4985
5210
  * @param {string} path Path to the model within the package (used to resolve relative imports)
4986
5211
  * @param {CompileRequest} compileRequest
5212
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
4987
5213
  * @param {*} [options] Override http request option.
4988
5214
  * @throws {RequiredError}
4989
5215
  */
4990
- compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
5216
+ compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
4991
5217
  /**
4992
5218
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
4993
5219
  * @summary Execute Malloy query
@@ -5006,7 +5232,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
5006
5232
  * @param {string} environmentName Name of the environment
5007
5233
  * @param {string} packageName Name of the package
5008
5234
  * @param {string} path Path to the model within the package
5009
- * @param {string} [versionId] Version identifier for the package
5235
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5010
5236
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5011
5237
  * @param {*} [options] Override http request option.
5012
5238
  * @throws {RequiredError}
@@ -5017,20 +5243,20 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
5017
5243
  * @summary List package models
5018
5244
  * @param {string} environmentName Name of the environment
5019
5245
  * @param {string} packageName Name of the package
5020
- * @param {string} [versionId] Version identifier for the package
5246
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5021
5247
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5022
5248
  * @param {*} [options] Override http request option.
5023
5249
  * @throws {RequiredError}
5024
5250
  */
5025
5251
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
5026
5252
  /**
5027
- * 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.
5253
+ * 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`).
5028
5254
  * @summary Write a report file into the package
5029
5255
  * @param {string} environmentName Name of the environment
5030
5256
  * @param {string} packageName Name of the package
5031
5257
  * @param {string} path The report file\&#39;s path in the package, such as &#x60;sales/q3.malloy&#x60;
5032
5258
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5033
- * @param {string} [versionId] Version identifier for the package
5259
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5034
5260
  * @param {*} [options] Override http request option.
5035
5261
  * @throws {RequiredError}
5036
5262
  */
@@ -5047,10 +5273,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
5047
5273
  * @param {string} packageName Name of the package
5048
5274
  * @param {string} path Path to the model within the package (used to resolve relative imports)
5049
5275
  * @param {CompileRequest} compileRequest
5276
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5050
5277
  * @param {*} [options] Override http request option.
5051
5278
  * @throws {RequiredError}
5052
5279
  */
5053
- compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
5280
+ compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
5054
5281
  /**
5055
5282
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
5056
5283
  * @summary Execute Malloy query
@@ -5069,7 +5296,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
5069
5296
  * @param {string} environmentName Name of the environment
5070
5297
  * @param {string} packageName Name of the package
5071
5298
  * @param {string} path Path to the model within the package
5072
- * @param {string} [versionId] Version identifier for the package
5299
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5073
5300
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5074
5301
  * @param {*} [options] Override http request option.
5075
5302
  * @throws {RequiredError}
@@ -5080,20 +5307,20 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
5080
5307
  * @summary List package models
5081
5308
  * @param {string} environmentName Name of the environment
5082
5309
  * @param {string} packageName Name of the package
5083
- * @param {string} [versionId] Version identifier for the package
5310
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5084
5311
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5085
5312
  * @param {*} [options] Override http request option.
5086
5313
  * @throws {RequiredError}
5087
5314
  */
5088
5315
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
5089
5316
  /**
5090
- * 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.
5317
+ * 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`).
5091
5318
  * @summary Write a report file into the package
5092
5319
  * @param {string} environmentName Name of the environment
5093
5320
  * @param {string} packageName Name of the package
5094
5321
  * @param {string} path The report file\&#39;s path in the package, such as &#x60;sales/q3.malloy&#x60;
5095
5322
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5096
- * @param {string} [versionId] Version identifier for the package
5323
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5097
5324
  * @param {*} [options] Override http request option.
5098
5325
  * @throws {RequiredError}
5099
5326
  */
@@ -5110,10 +5337,11 @@ export declare class ModelsApi extends BaseAPI {
5110
5337
  * @param {string} packageName Name of the package
5111
5338
  * @param {string} path Path to the model within the package (used to resolve relative imports)
5112
5339
  * @param {CompileRequest} compileRequest
5340
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5113
5341
  * @param {*} [options] Override http request option.
5114
5342
  * @throws {RequiredError}
5115
5343
  */
5116
- compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}, any>>;
5344
+ compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}, any>>;
5117
5345
  /**
5118
5346
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
5119
5347
  * @summary Execute Malloy query
@@ -5132,7 +5360,7 @@ export declare class ModelsApi extends BaseAPI {
5132
5360
  * @param {string} environmentName Name of the environment
5133
5361
  * @param {string} packageName Name of the package
5134
5362
  * @param {string} path Path to the model within the package
5135
- * @param {string} [versionId] Version identifier for the package
5363
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5136
5364
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5137
5365
  * @param {*} [options] Override http request option.
5138
5366
  * @throws {RequiredError}
@@ -5143,20 +5371,20 @@ export declare class ModelsApi extends BaseAPI {
5143
5371
  * @summary List package models
5144
5372
  * @param {string} environmentName Name of the environment
5145
5373
  * @param {string} packageName Name of the package
5146
- * @param {string} [versionId] Version identifier for the package
5374
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5147
5375
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
5148
5376
  * @param {*} [options] Override http request option.
5149
5377
  * @throws {RequiredError}
5150
5378
  */
5151
5379
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
5152
5380
  /**
5153
- * 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.
5381
+ * 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`).
5154
5382
  * @summary Write a report file into the package
5155
5383
  * @param {string} environmentName Name of the environment
5156
5384
  * @param {string} packageName Name of the package
5157
5385
  * @param {string} path The report file\&#39;s path in the package, such as &#x60;sales/q3.malloy&#x60;
5158
5386
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5159
- * @param {string} [versionId] Version identifier for the package
5387
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5160
5388
  * @param {*} [options] Override http request option.
5161
5389
  * @throws {RequiredError}
5162
5390
  */
@@ -5173,7 +5401,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
5173
5401
  * @param {string} packageName Name of the package
5174
5402
  * @param {string} path Path to notebook within the package
5175
5403
  * @param {number} cellIndex Index of the cell to execute (0-based)
5176
- * @param {string} [versionId] Version identifier for the package
5404
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5177
5405
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
5178
5406
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
5179
5407
  * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
@@ -5188,7 +5416,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
5188
5416
  * @param {string} environmentName Name of the environment
5189
5417
  * @param {string} packageName Name of the package
5190
5418
  * @param {string} path Path to notebook within the package.
5191
- * @param {string} [versionId] Version identifier for the package
5419
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5192
5420
  * @param {*} [options] Override http request option.
5193
5421
  * @deprecated
5194
5422
  * @throws {RequiredError}
@@ -5199,7 +5427,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
5199
5427
  * @summary List package notebooks (deprecated; use list-reports)
5200
5428
  * @param {string} environmentName Name of the environment
5201
5429
  * @param {string} packageName Name of the package
5202
- * @param {string} [versionId] Version identifier for the package
5430
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5203
5431
  * @param {*} [options] Override http request option.
5204
5432
  * @deprecated
5205
5433
  * @throws {RequiredError}
@@ -5217,7 +5445,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
5217
5445
  * @param {string} packageName Name of the package
5218
5446
  * @param {string} path Path to notebook within the package
5219
5447
  * @param {number} cellIndex Index of the cell to execute (0-based)
5220
- * @param {string} [versionId] Version identifier for the package
5448
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5221
5449
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
5222
5450
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
5223
5451
  * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
@@ -5232,7 +5460,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
5232
5460
  * @param {string} environmentName Name of the environment
5233
5461
  * @param {string} packageName Name of the package
5234
5462
  * @param {string} path Path to notebook within the package.
5235
- * @param {string} [versionId] Version identifier for the package
5463
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5236
5464
  * @param {*} [options] Override http request option.
5237
5465
  * @deprecated
5238
5466
  * @throws {RequiredError}
@@ -5243,7 +5471,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
5243
5471
  * @summary List package notebooks (deprecated; use list-reports)
5244
5472
  * @param {string} environmentName Name of the environment
5245
5473
  * @param {string} packageName Name of the package
5246
- * @param {string} [versionId] Version identifier for the package
5474
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5247
5475
  * @param {*} [options] Override http request option.
5248
5476
  * @deprecated
5249
5477
  * @throws {RequiredError}
@@ -5261,7 +5489,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
5261
5489
  * @param {string} packageName Name of the package
5262
5490
  * @param {string} path Path to notebook within the package
5263
5491
  * @param {number} cellIndex Index of the cell to execute (0-based)
5264
- * @param {string} [versionId] Version identifier for the package
5492
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5265
5493
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
5266
5494
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
5267
5495
  * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
@@ -5276,7 +5504,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
5276
5504
  * @param {string} environmentName Name of the environment
5277
5505
  * @param {string} packageName Name of the package
5278
5506
  * @param {string} path Path to notebook within the package.
5279
- * @param {string} [versionId] Version identifier for the package
5507
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5280
5508
  * @param {*} [options] Override http request option.
5281
5509
  * @deprecated
5282
5510
  * @throws {RequiredError}
@@ -5287,7 +5515,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
5287
5515
  * @summary List package notebooks (deprecated; use list-reports)
5288
5516
  * @param {string} environmentName Name of the environment
5289
5517
  * @param {string} packageName Name of the package
5290
- * @param {string} [versionId] Version identifier for the package
5518
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5291
5519
  * @param {*} [options] Override http request option.
5292
5520
  * @deprecated
5293
5521
  * @throws {RequiredError}
@@ -5305,7 +5533,7 @@ export declare class NotebooksApi extends BaseAPI {
5305
5533
  * @param {string} packageName Name of the package
5306
5534
  * @param {string} path Path to notebook within the package
5307
5535
  * @param {number} cellIndex Index of the cell to execute (0-based)
5308
- * @param {string} [versionId] Version identifier for the package
5536
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5309
5537
  * @param {string} [filterParams] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. Targets the deprecated &#x60;#(filter)&#x60; annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
5310
5538
  * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use &#x60;givens&#x60; (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
5311
5539
  * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
@@ -5320,7 +5548,7 @@ export declare class NotebooksApi extends BaseAPI {
5320
5548
  * @param {string} environmentName Name of the environment
5321
5549
  * @param {string} packageName Name of the package
5322
5550
  * @param {string} path Path to notebook within the package.
5323
- * @param {string} [versionId] Version identifier for the package
5551
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5324
5552
  * @param {*} [options] Override http request option.
5325
5553
  * @deprecated
5326
5554
  * @throws {RequiredError}
@@ -5331,7 +5559,7 @@ export declare class NotebooksApi extends BaseAPI {
5331
5559
  * @summary List package notebooks (deprecated; use list-reports)
5332
5560
  * @param {string} environmentName Name of the environment
5333
5561
  * @param {string} packageName Name of the package
5334
- * @param {string} [versionId] Version identifier for the package
5562
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5335
5563
  * @param {*} [options] Override http request option.
5336
5564
  * @deprecated
5337
5565
  * @throws {RequiredError}
@@ -5348,7 +5576,7 @@ export type ExecuteNotebookCellBypassFiltersEnum = typeof ExecuteNotebookCellByp
5348
5576
  */
5349
5577
  export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
5350
5578
  /**
5351
- * 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.
5579
+ * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
5352
5580
  * @summary Create a new package
5353
5581
  * @param {string} environmentName Name of the environment
5354
5582
  * @param {Package} _package
@@ -5357,7 +5585,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
5357
5585
  */
5358
5586
  createPackage: (environmentName: string, _package: Package, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5359
5587
  /**
5360
- * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
5588
+ * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
5361
5589
  * @summary Delete a package
5362
5590
  * @param {string} environmentName Name of the environment
5363
5591
  * @param {string} packageName Name of the package
@@ -5366,18 +5594,18 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
5366
5594
  */
5367
5595
  deletePackage: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5368
5596
  /**
5369
- * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
5597
+ * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
5370
5598
  * @summary Get package details and metadata
5371
5599
  * @param {string} environmentName Name of the environment
5372
5600
  * @param {string} packageName Package name
5373
- * @param {string} [versionId] Version identifier for the package
5374
- * @param {boolean} [reload] Load / reload the package 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.
5601
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5602
+ * @param {boolean} [reload] Load / reload the package 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. A published version is immutable, so it has nothing to reload: on a versioned package &#x60;reload&#x3D;true&#x60; returns the version as it is, neither recompiling nor re-fetching it.
5375
5603
  * @param {*} [options] Override http request option.
5376
5604
  * @throws {RequiredError}
5377
5605
  */
5378
5606
  getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5379
5607
  /**
5380
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5608
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
5381
5609
  * @summary List environment packages
5382
5610
  * @param {string} environmentName Name of the environment
5383
5611
  * @param {*} [options] Override http request option.
@@ -5385,12 +5613,13 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
5385
5613
  */
5386
5614
  listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5387
5615
  /**
5388
- * 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.
5616
+ * 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.
5389
5617
  * @summary Update package configuration
5390
5618
  * @param {string} environmentName Name of the environment
5391
5619
  * @param {string} packageName Name of the package
5392
5620
  * @param {Package} _package
5393
5621
  * @param {*} [options] Override http request option.
5622
+ * @deprecated
5394
5623
  * @throws {RequiredError}
5395
5624
  */
5396
5625
  updatePackage: (environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -5400,7 +5629,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
5400
5629
  */
5401
5630
  export declare const PackagesApiFp: (configuration?: Configuration) => {
5402
5631
  /**
5403
- * 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.
5632
+ * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
5404
5633
  * @summary Create a new package
5405
5634
  * @param {string} environmentName Name of the environment
5406
5635
  * @param {Package} _package
@@ -5409,7 +5638,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
5409
5638
  */
5410
5639
  createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
5411
5640
  /**
5412
- * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
5641
+ * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
5413
5642
  * @summary Delete a package
5414
5643
  * @param {string} environmentName Name of the environment
5415
5644
  * @param {string} packageName Name of the package
@@ -5418,18 +5647,18 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
5418
5647
  */
5419
5648
  deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
5420
5649
  /**
5421
- * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
5650
+ * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
5422
5651
  * @summary Get package details and metadata
5423
5652
  * @param {string} environmentName Name of the environment
5424
5653
  * @param {string} packageName Package name
5425
- * @param {string} [versionId] Version identifier for the package
5426
- * @param {boolean} [reload] Load / reload the package 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.
5654
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5655
+ * @param {boolean} [reload] Load / reload the package 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. A published version is immutable, so it has nothing to reload: on a versioned package &#x60;reload&#x3D;true&#x60; returns the version as it is, neither recompiling nor re-fetching it.
5427
5656
  * @param {*} [options] Override http request option.
5428
5657
  * @throws {RequiredError}
5429
5658
  */
5430
5659
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
5431
5660
  /**
5432
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5661
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
5433
5662
  * @summary List environment packages
5434
5663
  * @param {string} environmentName Name of the environment
5435
5664
  * @param {*} [options] Override http request option.
@@ -5437,12 +5666,13 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
5437
5666
  */
5438
5667
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
5439
5668
  /**
5440
- * 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.
5669
+ * 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.
5441
5670
  * @summary Update package configuration
5442
5671
  * @param {string} environmentName Name of the environment
5443
5672
  * @param {string} packageName Name of the package
5444
5673
  * @param {Package} _package
5445
5674
  * @param {*} [options] Override http request option.
5675
+ * @deprecated
5446
5676
  * @throws {RequiredError}
5447
5677
  */
5448
5678
  updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
@@ -5452,7 +5682,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
5452
5682
  */
5453
5683
  export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5454
5684
  /**
5455
- * 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.
5685
+ * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
5456
5686
  * @summary Create a new package
5457
5687
  * @param {string} environmentName Name of the environment
5458
5688
  * @param {Package} _package
@@ -5461,7 +5691,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
5461
5691
  */
5462
5692
  createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
5463
5693
  /**
5464
- * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
5694
+ * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
5465
5695
  * @summary Delete a package
5466
5696
  * @param {string} environmentName Name of the environment
5467
5697
  * @param {string} packageName Name of the package
@@ -5470,18 +5700,18 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
5470
5700
  */
5471
5701
  deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
5472
5702
  /**
5473
- * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
5703
+ * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
5474
5704
  * @summary Get package details and metadata
5475
5705
  * @param {string} environmentName Name of the environment
5476
5706
  * @param {string} packageName Package name
5477
- * @param {string} [versionId] Version identifier for the package
5478
- * @param {boolean} [reload] Load / reload the package 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.
5707
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5708
+ * @param {boolean} [reload] Load / reload the package 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. A published version is immutable, so it has nothing to reload: on a versioned package &#x60;reload&#x3D;true&#x60; returns the version as it is, neither recompiling nor re-fetching it.
5479
5709
  * @param {*} [options] Override http request option.
5480
5710
  * @throws {RequiredError}
5481
5711
  */
5482
5712
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
5483
5713
  /**
5484
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5714
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
5485
5715
  * @summary List environment packages
5486
5716
  * @param {string} environmentName Name of the environment
5487
5717
  * @param {*} [options] Override http request option.
@@ -5489,12 +5719,13 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
5489
5719
  */
5490
5720
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
5491
5721
  /**
5492
- * 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.
5722
+ * 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.
5493
5723
  * @summary Update package configuration
5494
5724
  * @param {string} environmentName Name of the environment
5495
5725
  * @param {string} packageName Name of the package
5496
5726
  * @param {Package} _package
5497
5727
  * @param {*} [options] Override http request option.
5728
+ * @deprecated
5498
5729
  * @throws {RequiredError}
5499
5730
  */
5500
5731
  updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
@@ -5504,7 +5735,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
5504
5735
  */
5505
5736
  export declare class PackagesApi extends BaseAPI {
5506
5737
  /**
5507
- * 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.
5738
+ * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
5508
5739
  * @summary Create a new package
5509
5740
  * @param {string} environmentName Name of the environment
5510
5741
  * @param {Package} _package
@@ -5513,7 +5744,7 @@ export declare class PackagesApi extends BaseAPI {
5513
5744
  */
5514
5745
  createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
5515
5746
  /**
5516
- * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
5747
+ * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
5517
5748
  * @summary Delete a package
5518
5749
  * @param {string} environmentName Name of the environment
5519
5750
  * @param {string} packageName Name of the package
@@ -5522,18 +5753,18 @@ export declare class PackagesApi extends BaseAPI {
5522
5753
  */
5523
5754
  deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
5524
5755
  /**
5525
- * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
5756
+ * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
5526
5757
  * @summary Get package details and metadata
5527
5758
  * @param {string} environmentName Name of the environment
5528
5759
  * @param {string} packageName Package name
5529
- * @param {string} [versionId] Version identifier for the package
5530
- * @param {boolean} [reload] Load / reload the package 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.
5760
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5761
+ * @param {boolean} [reload] Load / reload the package 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. A published version is immutable, so it has nothing to reload: on a versioned package &#x60;reload&#x3D;true&#x60; returns the version as it is, neither recompiling nor re-fetching it.
5531
5762
  * @param {*} [options] Override http request option.
5532
5763
  * @throws {RequiredError}
5533
5764
  */
5534
5765
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
5535
5766
  /**
5536
- * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
5767
+ * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
5537
5768
  * @summary List environment packages
5538
5769
  * @param {string} environmentName Name of the environment
5539
5770
  * @param {*} [options] Override http request option.
@@ -5541,12 +5772,13 @@ export declare class PackagesApi extends BaseAPI {
5541
5772
  */
5542
5773
  listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
5543
5774
  /**
5544
- * 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.
5775
+ * 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.
5545
5776
  * @summary Update package configuration
5546
5777
  * @param {string} environmentName Name of the environment
5547
5778
  * @param {string} packageName Name of the package
5548
5779
  * @param {Package} _package
5549
5780
  * @param {*} [options] Override http request option.
5781
+ * @deprecated
5550
5782
  * @throws {RequiredError}
5551
5783
  */
5552
5784
  updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
@@ -5701,7 +5933,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
5701
5933
  * @param {string} environmentName Name of the environment
5702
5934
  * @param {string} packageName Name of the package
5703
5935
  * @param {string} path The report\&#39;s path within the package, including &#x60;.malloy&#x60; (or &#x60;.malloynb&#x60;): the &#x60;path&#x60; list-reports returns.
5704
- * @param {string} [versionId] Version identifier for the package
5936
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5705
5937
  * @param {*} [options] Override http request option.
5706
5938
  * @throws {RequiredError}
5707
5939
  */
@@ -5711,7 +5943,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
5711
5943
  * @summary List package reports
5712
5944
  * @param {string} environmentName Name of the environment
5713
5945
  * @param {string} packageName Name of the package
5714
- * @param {string} [versionId] Version identifier for the package
5946
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5715
5947
  * @param {*} [options] Override http request option.
5716
5948
  * @throws {RequiredError}
5717
5949
  */
@@ -5727,7 +5959,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
5727
5959
  * @param {string} environmentName Name of the environment
5728
5960
  * @param {string} packageName Name of the package
5729
5961
  * @param {string} path The report\&#39;s path within the package, including &#x60;.malloy&#x60; (or &#x60;.malloynb&#x60;): the &#x60;path&#x60; list-reports returns.
5730
- * @param {string} [versionId] Version identifier for the package
5962
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5731
5963
  * @param {*} [options] Override http request option.
5732
5964
  * @throws {RequiredError}
5733
5965
  */
@@ -5737,7 +5969,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
5737
5969
  * @summary List package reports
5738
5970
  * @param {string} environmentName Name of the environment
5739
5971
  * @param {string} packageName Name of the package
5740
- * @param {string} [versionId] Version identifier for the package
5972
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5741
5973
  * @param {*} [options] Override http request option.
5742
5974
  * @throws {RequiredError}
5743
5975
  */
@@ -5753,7 +5985,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
5753
5985
  * @param {string} environmentName Name of the environment
5754
5986
  * @param {string} packageName Name of the package
5755
5987
  * @param {string} path The report\&#39;s path within the package, including &#x60;.malloy&#x60; (or &#x60;.malloynb&#x60;): the &#x60;path&#x60; list-reports returns.
5756
- * @param {string} [versionId] Version identifier for the package
5988
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5757
5989
  * @param {*} [options] Override http request option.
5758
5990
  * @throws {RequiredError}
5759
5991
  */
@@ -5763,7 +5995,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
5763
5995
  * @summary List package reports
5764
5996
  * @param {string} environmentName Name of the environment
5765
5997
  * @param {string} packageName Name of the package
5766
- * @param {string} [versionId] Version identifier for the package
5998
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5767
5999
  * @param {*} [options] Override http request option.
5768
6000
  * @throws {RequiredError}
5769
6001
  */
@@ -5779,7 +6011,7 @@ export declare class ReportsApi extends BaseAPI {
5779
6011
  * @param {string} environmentName Name of the environment
5780
6012
  * @param {string} packageName Name of the package
5781
6013
  * @param {string} path The report\&#39;s path within the package, including &#x60;.malloy&#x60; (or &#x60;.malloynb&#x60;): the &#x60;path&#x60; list-reports returns.
5782
- * @param {string} [versionId] Version identifier for the package
6014
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5783
6015
  * @param {*} [options] Override http request option.
5784
6016
  * @throws {RequiredError}
5785
6017
  */
@@ -5789,7 +6021,7 @@ export declare class ReportsApi extends BaseAPI {
5789
6021
  * @summary List package reports
5790
6022
  * @param {string} environmentName Name of the environment
5791
6023
  * @param {string} packageName Name of the package
5792
- * @param {string} [versionId] Version identifier for the package
6024
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5793
6025
  * @param {*} [options] Override http request option.
5794
6026
  * @throws {RequiredError}
5795
6027
  */
@@ -5805,19 +6037,21 @@ export declare const SkillsApiAxiosParamCreator: (configuration?: Configuration)
5805
6037
  * @param {string} environmentName Name of the environment
5806
6038
  * @param {string} packageName Name of the package
5807
6039
  * @param {string} skillName Skill name as returned by the listing. A reference file is &#x60;&lt;skill&gt;/&lt;stem&gt;&#x60;; the slash may be literal or &#x60;%2F&#x60;.
6040
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5808
6041
  * @param {*} [options] Override http request option.
5809
6042
  * @throws {RequiredError}
5810
6043
  */
5811
- getSkill: (environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6044
+ getSkill: (environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5812
6045
  /**
5813
6046
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
5814
6047
  * @summary List the agent skills in force for a package
5815
6048
  * @param {string} environmentName Name of the environment
5816
6049
  * @param {string} packageName Name of the package
6050
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5817
6051
  * @param {*} [options] Override http request option.
5818
6052
  * @throws {RequiredError}
5819
6053
  */
5820
- listSkills: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6054
+ listSkills: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5821
6055
  };
5822
6056
  /**
5823
6057
  * SkillsApi - functional programming interface
@@ -5829,19 +6063,21 @@ export declare const SkillsApiFp: (configuration?: Configuration) => {
5829
6063
  * @param {string} environmentName Name of the environment
5830
6064
  * @param {string} packageName Name of the package
5831
6065
  * @param {string} skillName Skill name as returned by the listing. A reference file is &#x60;&lt;skill&gt;/&lt;stem&gt;&#x60;; the slash may be literal or &#x60;%2F&#x60;.
6066
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5832
6067
  * @param {*} [options] Override http request option.
5833
6068
  * @throws {RequiredError}
5834
6069
  */
5835
- getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
6070
+ getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
5836
6071
  /**
5837
6072
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
5838
6073
  * @summary List the agent skills in force for a package
5839
6074
  * @param {string} environmentName Name of the environment
5840
6075
  * @param {string} packageName Name of the package
6076
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5841
6077
  * @param {*} [options] Override http request option.
5842
6078
  * @throws {RequiredError}
5843
6079
  */
5844
- listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
6080
+ listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
5845
6081
  };
5846
6082
  /**
5847
6083
  * SkillsApi - factory interface
@@ -5853,19 +6089,21 @@ export declare const SkillsApiFactory: (configuration?: Configuration, basePath?
5853
6089
  * @param {string} environmentName Name of the environment
5854
6090
  * @param {string} packageName Name of the package
5855
6091
  * @param {string} skillName Skill name as returned by the listing. A reference file is &#x60;&lt;skill&gt;/&lt;stem&gt;&#x60;; the slash may be literal or &#x60;%2F&#x60;.
6092
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5856
6093
  * @param {*} [options] Override http request option.
5857
6094
  * @throws {RequiredError}
5858
6095
  */
5859
- getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
6096
+ getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
5860
6097
  /**
5861
6098
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
5862
6099
  * @summary List the agent skills in force for a package
5863
6100
  * @param {string} environmentName Name of the environment
5864
6101
  * @param {string} packageName Name of the package
6102
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5865
6103
  * @param {*} [options] Override http request option.
5866
6104
  * @throws {RequiredError}
5867
6105
  */
5868
- listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
6106
+ listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
5869
6107
  };
5870
6108
  /**
5871
6109
  * SkillsApi - object-oriented interface
@@ -5877,19 +6115,21 @@ export declare class SkillsApi extends BaseAPI {
5877
6115
  * @param {string} environmentName Name of the environment
5878
6116
  * @param {string} packageName Name of the package
5879
6117
  * @param {string} skillName Skill name as returned by the listing. A reference file is &#x60;&lt;skill&gt;/&lt;stem&gt;&#x60;; the slash may be literal or &#x60;%2F&#x60;.
6118
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5880
6119
  * @param {*} [options] Override http request option.
5881
6120
  * @throws {RequiredError}
5882
6121
  */
5883
- getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
6122
+ getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
5884
6123
  /**
5885
6124
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
5886
6125
  * @summary List the agent skills in force for a package
5887
6126
  * @param {string} environmentName Name of the environment
5888
6127
  * @param {string} packageName Name of the package
6128
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
5889
6129
  * @param {*} [options] Override http request option.
5890
6130
  * @throws {RequiredError}
5891
6131
  */
5892
- listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
6132
+ listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
5893
6133
  }
5894
6134
  /**
5895
6135
  * StorageDestinationsApi - axios parameter creator
@@ -6047,6 +6287,270 @@ export declare class StorageDestinationsApi extends BaseAPI {
6047
6287
  */
6048
6288
  listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageTable[], any, {}, any>>;
6049
6289
  }
6290
+ /**
6291
+ * VersionsApi - axios parameter creator
6292
+ */
6293
+ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuration) => {
6294
+ /**
6295
+ * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
6296
+ * @summary Delete a version
6297
+ * @param {string} environmentName Name of the environment
6298
+ * @param {string} packageName Name of the package
6299
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6300
+ * @param {*} [options] Override http request option.
6301
+ * @throws {RequiredError}
6302
+ */
6303
+ deletePackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6304
+ /**
6305
+ * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
6306
+ * @summary Get one published version
6307
+ * @param {string} environmentName Name of the environment
6308
+ * @param {string} packageName Name of the package
6309
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6310
+ * @param {*} [options] Override http request option.
6311
+ * @throws {RequiredError}
6312
+ */
6313
+ getPackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6314
+ /**
6315
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
6316
+ * @summary List a package\'s published versions
6317
+ * @param {string} environmentName Name of the environment
6318
+ * @param {string} packageName Name of the package
6319
+ * @param {*} [options] Override http request option.
6320
+ * @throws {RequiredError}
6321
+ */
6322
+ listPackageVersions: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6323
+ /**
6324
+ * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
6325
+ * @summary Point the package\'s latest at a version
6326
+ * @param {string} environmentName Name of the environment
6327
+ * @param {string} packageName Name of the package
6328
+ * @param {PackageLatestVersion} packageLatestVersion
6329
+ * @param {*} [options] Override http request option.
6330
+ * @throws {RequiredError}
6331
+ */
6332
+ setPackageLatestVersion: (environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6333
+ /**
6334
+ * 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.
6335
+ * @summary Bind a version to a build manifest
6336
+ * @param {string} environmentName Name of the environment
6337
+ * @param {string} packageName Name of the package
6338
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6339
+ * @param {PackageVersionManifest} packageVersionManifest
6340
+ * @param {*} [options] Override http request option.
6341
+ * @throws {RequiredError}
6342
+ */
6343
+ setPackageVersionManifest: (environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6344
+ /**
6345
+ * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
6346
+ * @summary Archive or unarchive a version
6347
+ * @param {string} environmentName Name of the environment
6348
+ * @param {string} packageName Name of the package
6349
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6350
+ * @param {PackageVersionUpdate} packageVersionUpdate
6351
+ * @param {*} [options] Override http request option.
6352
+ * @throws {RequiredError}
6353
+ */
6354
+ updatePackageVersion: (environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6355
+ };
6356
+ /**
6357
+ * VersionsApi - functional programming interface
6358
+ */
6359
+ export declare const VersionsApiFp: (configuration?: Configuration) => {
6360
+ /**
6361
+ * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
6362
+ * @summary Delete a version
6363
+ * @param {string} environmentName Name of the environment
6364
+ * @param {string} packageName Name of the package
6365
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6366
+ * @param {*} [options] Override http request option.
6367
+ * @throws {RequiredError}
6368
+ */
6369
+ deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
6370
+ /**
6371
+ * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
6372
+ * @summary Get one published version
6373
+ * @param {string} environmentName Name of the environment
6374
+ * @param {string} packageName Name of the package
6375
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6376
+ * @param {*} [options] Override http request option.
6377
+ * @throws {RequiredError}
6378
+ */
6379
+ getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
6380
+ /**
6381
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
6382
+ * @summary List a package\'s published versions
6383
+ * @param {string} environmentName Name of the environment
6384
+ * @param {string} packageName Name of the package
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PackageVersion>>>;
6389
+ /**
6390
+ * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
6391
+ * @summary Point the package\'s latest at a version
6392
+ * @param {string} environmentName Name of the environment
6393
+ * @param {string} packageName Name of the package
6394
+ * @param {PackageLatestVersion} packageLatestVersion
6395
+ * @param {*} [options] Override http request option.
6396
+ * @throws {RequiredError}
6397
+ */
6398
+ setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
6399
+ /**
6400
+ * 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.
6401
+ * @summary Bind a version to a build manifest
6402
+ * @param {string} environmentName Name of the environment
6403
+ * @param {string} packageName Name of the package
6404
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6405
+ * @param {PackageVersionManifest} packageVersionManifest
6406
+ * @param {*} [options] Override http request option.
6407
+ * @throws {RequiredError}
6408
+ */
6409
+ setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
6410
+ /**
6411
+ * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
6412
+ * @summary Archive or unarchive a version
6413
+ * @param {string} environmentName Name of the environment
6414
+ * @param {string} packageName Name of the package
6415
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6416
+ * @param {PackageVersionUpdate} packageVersionUpdate
6417
+ * @param {*} [options] Override http request option.
6418
+ * @throws {RequiredError}
6419
+ */
6420
+ updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
6421
+ };
6422
+ /**
6423
+ * VersionsApi - factory interface
6424
+ */
6425
+ export declare const VersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6426
+ /**
6427
+ * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
6428
+ * @summary Delete a version
6429
+ * @param {string} environmentName Name of the environment
6430
+ * @param {string} packageName Name of the package
6431
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6432
+ * @param {*} [options] Override http request option.
6433
+ * @throws {RequiredError}
6434
+ */
6435
+ deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
6436
+ /**
6437
+ * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
6438
+ * @summary Get one published version
6439
+ * @param {string} environmentName Name of the environment
6440
+ * @param {string} packageName Name of the package
6441
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6442
+ * @param {*} [options] Override http request option.
6443
+ * @throws {RequiredError}
6444
+ */
6445
+ getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
6446
+ /**
6447
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
6448
+ * @summary List a package\'s published versions
6449
+ * @param {string} environmentName Name of the environment
6450
+ * @param {string} packageName Name of the package
6451
+ * @param {*} [options] Override http request option.
6452
+ * @throws {RequiredError}
6453
+ */
6454
+ listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PackageVersion>>;
6455
+ /**
6456
+ * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
6457
+ * @summary Point the package\'s latest at a version
6458
+ * @param {string} environmentName Name of the environment
6459
+ * @param {string} packageName Name of the package
6460
+ * @param {PackageLatestVersion} packageLatestVersion
6461
+ * @param {*} [options] Override http request option.
6462
+ * @throws {RequiredError}
6463
+ */
6464
+ setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
6465
+ /**
6466
+ * 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.
6467
+ * @summary Bind a version to a build manifest
6468
+ * @param {string} environmentName Name of the environment
6469
+ * @param {string} packageName Name of the package
6470
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6471
+ * @param {PackageVersionManifest} packageVersionManifest
6472
+ * @param {*} [options] Override http request option.
6473
+ * @throws {RequiredError}
6474
+ */
6475
+ setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
6476
+ /**
6477
+ * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
6478
+ * @summary Archive or unarchive a version
6479
+ * @param {string} environmentName Name of the environment
6480
+ * @param {string} packageName Name of the package
6481
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6482
+ * @param {PackageVersionUpdate} packageVersionUpdate
6483
+ * @param {*} [options] Override http request option.
6484
+ * @throws {RequiredError}
6485
+ */
6486
+ updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
6487
+ };
6488
+ /**
6489
+ * VersionsApi - object-oriented interface
6490
+ */
6491
+ export declare class VersionsApi extends BaseAPI {
6492
+ /**
6493
+ * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
6494
+ * @summary Delete a version
6495
+ * @param {string} environmentName Name of the environment
6496
+ * @param {string} packageName Name of the package
6497
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6498
+ * @param {*} [options] Override http request option.
6499
+ * @throws {RequiredError}
6500
+ */
6501
+ deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
6502
+ /**
6503
+ * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
6504
+ * @summary Get one published version
6505
+ * @param {string} environmentName Name of the environment
6506
+ * @param {string} packageName Name of the package
6507
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6508
+ * @param {*} [options] Override http request option.
6509
+ * @throws {RequiredError}
6510
+ */
6511
+ getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
6512
+ /**
6513
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
6514
+ * @summary List a package\'s published versions
6515
+ * @param {string} environmentName Name of the environment
6516
+ * @param {string} packageName Name of the package
6517
+ * @param {*} [options] Override http request option.
6518
+ * @throws {RequiredError}
6519
+ */
6520
+ listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion[], any, {}, any>>;
6521
+ /**
6522
+ * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
6523
+ * @summary Point the package\'s latest at a version
6524
+ * @param {string} environmentName Name of the environment
6525
+ * @param {string} packageName Name of the package
6526
+ * @param {PackageLatestVersion} packageLatestVersion
6527
+ * @param {*} [options] Override http request option.
6528
+ * @throws {RequiredError}
6529
+ */
6530
+ setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
6531
+ /**
6532
+ * 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.
6533
+ * @summary Bind a version to a build manifest
6534
+ * @param {string} environmentName Name of the environment
6535
+ * @param {string} packageName Name of the package
6536
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6537
+ * @param {PackageVersionManifest} packageVersionManifest
6538
+ * @param {*} [options] Override http request option.
6539
+ * @throws {RequiredError}
6540
+ */
6541
+ setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
6542
+ /**
6543
+ * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
6544
+ * @summary Archive or unarchive a version
6545
+ * @param {string} environmentName Name of the environment
6546
+ * @param {string} packageName Name of the package
6547
+ * @param {string} version A published version of the package, a semantic version such as &#x60;1.2.0&#x60;. Percent-encode build metadata (&#x60;+&#x60; as &#x60;%2B&#x60;).
6548
+ * @param {PackageVersionUpdate} packageVersionUpdate
6549
+ * @param {*} [options] Override http request option.
6550
+ * @throws {RequiredError}
6551
+ */
6552
+ updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
6553
+ }
6050
6554
  /**
6051
6555
  * WatchModeApi - axios parameter creator
6052
6556
  */
@@ -6077,14 +6581,15 @@ export declare const WatchModeApiAxiosParamCreator: (configuration?: Configurati
6077
6581
  */
6078
6582
  stopWatching: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6079
6583
  /**
6080
- * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
6584
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection. `versionId` is accepted so a data app can send it on every call, but a published version never changes: its stream carries `hello`, `mode` and heartbeats and no `changed` event. Watch mode only ever mounts unversioned packages.
6081
6585
  * @summary Stream package change events (SSE)
6082
6586
  * @param {string} environmentName Name of the environment
6083
6587
  * @param {string} packageName Name of the package
6588
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
6084
6589
  * @param {*} [options] Override http request option.
6085
6590
  * @throws {RequiredError}
6086
6591
  */
6087
- streamPackageEvents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6592
+ streamPackageEvents: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6088
6593
  };
6089
6594
  /**
6090
6595
  * WatchModeApi - functional programming interface
@@ -6116,14 +6621,15 @@ export declare const WatchModeApiFp: (configuration?: Configuration) => {
6116
6621
  */
6117
6622
  stopWatching(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
6118
6623
  /**
6119
- * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
6624
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection. `versionId` is accepted so a data app can send it on every call, but a published version never changes: its stream carries `hello`, `mode` and heartbeats and no `changed` event. Watch mode only ever mounts unversioned packages.
6120
6625
  * @summary Stream package change events (SSE)
6121
6626
  * @param {string} environmentName Name of the environment
6122
6627
  * @param {string} packageName Name of the package
6628
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
6123
6629
  * @param {*} [options] Override http request option.
6124
6630
  * @throws {RequiredError}
6125
6631
  */
6126
- streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
6632
+ streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
6127
6633
  };
6128
6634
  /**
6129
6635
  * WatchModeApi - factory interface
@@ -6155,14 +6661,15 @@ export declare const WatchModeApiFactory: (configuration?: Configuration, basePa
6155
6661
  */
6156
6662
  stopWatching(options?: RawAxiosRequestConfig): AxiosPromise<void>;
6157
6663
  /**
6158
- * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
6664
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection. `versionId` is accepted so a data app can send it on every call, but a published version never changes: its stream carries `hello`, `mode` and heartbeats and no `changed` event. Watch mode only ever mounts unversioned packages.
6159
6665
  * @summary Stream package change events (SSE)
6160
6666
  * @param {string} environmentName Name of the environment
6161
6667
  * @param {string} packageName Name of the package
6668
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
6162
6669
  * @param {*} [options] Override http request option.
6163
6670
  * @throws {RequiredError}
6164
6671
  */
6165
- streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
6672
+ streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
6166
6673
  };
6167
6674
  /**
6168
6675
  * WatchModeApi - object-oriented interface
@@ -6194,12 +6701,13 @@ export declare class WatchModeApi extends BaseAPI {
6194
6701
  */
6195
6702
  stopWatching(options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
6196
6703
  /**
6197
- * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
6704
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection. `versionId` is accepted so a data app can send it on every call, but a published version never changes: its stream carries `hello`, `mode` and heartbeats and no `changed` event. Watch mode only ever mounts unversioned packages.
6198
6705
  * @summary Stream package change events (SSE)
6199
6706
  * @param {string} environmentName Name of the environment
6200
6707
  * @param {string} packageName Name of the package
6708
+ * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
6201
6709
  * @param {*} [options] Override http request option.
6202
6710
  * @throws {RequiredError}
6203
6711
  */
6204
- streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<string, any, {}, any>>;
6712
+ streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<string, any, {}, any>>;
6205
6713
  }