@malloy-publisher/sdk 0.10.7 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-BlYdT4lz.cjs.js → RenderedResult-C2r3Zkwl.cjs.js} +1 -1
- package/dist/{RenderedResult-B_sW7neX.es.js → RenderedResult-r3dg2xOJ.es.js} +2 -2
- package/dist/ServerProvider-CFHqDHFO.cjs.js +1 -0
- package/dist/{ServerProvider-BN399NH6.es.js → ServerProvider-DdGjhDhY.es.js} +2077 -1604
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +694 -165
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +101 -92
- package/dist/components/Materializations/Materializations.d.ts +8 -1
- package/dist/components/Package/Package.d.ts +15 -1
- package/dist/components/Package/VersionSwitch.d.ts +51 -0
- package/dist/components/Package/index.d.ts +2 -0
- package/dist/components/Package/usePackageVersions.d.ts +48 -0
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/hooks/useDimensionFiltersQuery.d.ts +2 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.es.js +8290 -7677
- package/dist/{useCompiledDocument-xJRD5DRP.es.js → useCompiledDocument-Bc0HuUtz.es.js} +3 -3
- package/dist/{useCompiledDocument-CyPOSStA.cjs.js → useCompiledDocument-QgySwHGA.cjs.js} +2 -2
- package/dist/utils/dataAppEmbed.d.ts +6 -1
- package/package.json +1 -1
- package/src/components/DataAppViewer/DataAppViewer.tsx +18 -5
- package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +2 -0
- package/src/components/Environment/Packages.tsx +12 -5
- package/src/components/Environment/Packages.versions.spec.tsx +62 -0
- package/src/components/Materializations/Materializations.tsx +26 -6
- package/src/components/Materializations/Materializations.versions.spec.tsx +101 -0
- package/src/components/Package/Package.agents.spec.tsx +2 -0
- package/src/components/Package/Package.artifacts.spec.tsx +35 -0
- package/src/components/Package/Package.create.spec.tsx +37 -1
- package/src/components/Package/Package.notebooks.spec.tsx +2 -0
- package/src/components/Package/Package.spec.tsx +23 -11
- package/src/components/Package/Package.tsx +111 -20
- package/src/components/Package/VersionSwitch.spec.tsx +668 -0
- package/src/components/Package/VersionSwitch.tsx +779 -0
- package/src/components/Package/index.ts +7 -0
- package/src/components/Package/usePackageVersions.spec.tsx +78 -0
- package/src/components/Package/usePackageVersions.ts +146 -0
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
- package/src/components/ReportBuilder/ReportEditor.authoritative.spec.tsx +5 -1
- package/src/components/ServerProvider.tsx +2 -0
- package/src/hooks/useDimensionFiltersFromSpec.ts +1 -0
- package/src/hooks/useDimensionFiltersQuery.ts +5 -1
- package/src/utils/dataAppEmbed.spec.ts +27 -0
- package/src/utils/dataAppEmbed.ts +11 -3
- package/src/utils/formatting.spec.ts +25 -0
- package/src/utils/formatting.ts +2 -1
- package/test/serverProvider.tsx +15 -0
- package/dist/ServerProvider-e2369oom.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
/**
|
|
@@ -1746,7 +1785,16 @@ export interface Package {
|
|
|
1746
1785
|
* Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
1747
1786
|
*/
|
|
1748
1787
|
'agents'?: Array<AgentSummary>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Server-computed, read-only: every `#(secure)` given the package\'s compiled models surface, so a host that sets those values learns which ones to set from the load response without compiling the package itself. Collected from every `.malloy` model and `.malloynb` notebook in the package, files outside `explores` included. A model\'s givens are the ones its `CompiledModel.givens` reports, so a given declared in one file and imported by another is listed under both; a notebook\'s are those of the model its cells build up to. One entry per distinct `name` and `type`, sorted by `name` then `type`; a name declared with two types is two entries. It always describes the models the package is serving now, so a reload that changes them changes it. Present, possibly empty, on a loaded package whose every model and notebook compiled, so `[]` means the package declares no secure given. Absent when the list cannot be known to be complete: when any model or notebook in the package failed to compile (a reload keeps serving the files that did), or when the server does not report it, as on a listing entry for a package that is not loaded. Treat absent as unknown, never as none. It cannot be set: a PATCH body carrying it is ignored.
|
|
1790
|
+
*/
|
|
1791
|
+
'secureGivens'?: Array<SecureGivenSummary>;
|
|
1749
1792
|
}
|
|
1793
|
+
export declare const PackageArchiveStatusEnum: {
|
|
1794
|
+
readonly Archive: "archive";
|
|
1795
|
+
readonly Unarchive: "unarchive";
|
|
1796
|
+
};
|
|
1797
|
+
export type PackageArchiveStatusEnum = typeof PackageArchiveStatusEnum[keyof typeof PackageArchiveStatusEnum];
|
|
1750
1798
|
export declare const PackageScopeEnum: {
|
|
1751
1799
|
readonly Version: "version";
|
|
1752
1800
|
readonly Package: "package";
|
|
@@ -1873,6 +1921,15 @@ export interface PackageEmbeddingIndexSourceSummaryProgress {
|
|
|
1873
1921
|
*/
|
|
1874
1922
|
'capped'?: boolean;
|
|
1875
1923
|
}
|
|
1924
|
+
/**
|
|
1925
|
+
* The version to make the package\'s `latest`
|
|
1926
|
+
*/
|
|
1927
|
+
export interface PackageLatestVersion {
|
|
1928
|
+
/**
|
|
1929
|
+
* 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`.
|
|
1930
|
+
*/
|
|
1931
|
+
'version': string;
|
|
1932
|
+
}
|
|
1876
1933
|
/**
|
|
1877
1934
|
* 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
1935
|
*/
|
|
@@ -1893,7 +1950,7 @@ export interface PackageMaterializationConfig {
|
|
|
1893
1950
|
} | null;
|
|
1894
1951
|
}
|
|
1895
1952
|
/**
|
|
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.
|
|
1953
|
+
* 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
1954
|
*/
|
|
1898
1955
|
export interface PackageStatus {
|
|
1899
1956
|
/**
|
|
@@ -1932,6 +1989,103 @@ export declare const PackageStorageServeBindingsInnerOriginEnum: {
|
|
|
1932
1989
|
readonly Preaggregate: "preaggregate";
|
|
1933
1990
|
};
|
|
1934
1991
|
export type PackageStorageServeBindingsInnerOriginEnum = typeof PackageStorageServeBindingsInnerOriginEnum[keyof typeof PackageStorageServeBindingsInnerOriginEnum];
|
|
1992
|
+
/**
|
|
1993
|
+
* 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.
|
|
1994
|
+
*/
|
|
1995
|
+
export interface PackageVersion {
|
|
1996
|
+
/**
|
|
1997
|
+
* Resource path to the version
|
|
1998
|
+
*/
|
|
1999
|
+
'resource': string;
|
|
2000
|
+
/**
|
|
2001
|
+
* The package this version belongs to
|
|
2002
|
+
*/
|
|
2003
|
+
'packageName': string;
|
|
2004
|
+
/**
|
|
2005
|
+
* The version, from the package\'s publisher.json: the value a `versionId` names everywhere else.
|
|
2006
|
+
*/
|
|
2007
|
+
'id': string;
|
|
2008
|
+
/**
|
|
2009
|
+
* Whether this is the package\'s `latest` version, the one served when a request names no `versionId`.
|
|
2010
|
+
*/
|
|
2011
|
+
'latest': boolean;
|
|
2012
|
+
/**
|
|
2013
|
+
* `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.
|
|
2014
|
+
*/
|
|
2015
|
+
'archiveStatus': PackageVersionArchiveStatusEnum;
|
|
2016
|
+
/**
|
|
2017
|
+
* When the version was archived; null while it is in service.
|
|
2018
|
+
*/
|
|
2019
|
+
'archivedAt': string | null;
|
|
2020
|
+
/**
|
|
2021
|
+
* When the version last became the package\'s `latest`; null if it never has.
|
|
2022
|
+
*/
|
|
2023
|
+
'promotedAt': string | null;
|
|
2024
|
+
/**
|
|
2025
|
+
* When the version last stopped being the package\'s `latest`; null if it never has.
|
|
2026
|
+
*/
|
|
2027
|
+
'demotedAt': string | null;
|
|
2028
|
+
/**
|
|
2029
|
+
* The `description` from the version\'s publisher.json
|
|
2030
|
+
*/
|
|
2031
|
+
'description'?: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* 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.
|
|
2034
|
+
*/
|
|
2035
|
+
'location'?: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* 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.
|
|
2038
|
+
*/
|
|
2039
|
+
'contentHash': string;
|
|
2040
|
+
/**
|
|
2041
|
+
* The build manifest this version is bound to (see `Package.manifestLocation`); null when it serves live. Set with `PUT .../versions/{version}/manifest`.
|
|
2042
|
+
*/
|
|
2043
|
+
'manifestLocation': string | null;
|
|
2044
|
+
/**
|
|
2045
|
+
* Git commit the version was published from, when the publisher recorded it. Reserved: nothing records it yet.
|
|
2046
|
+
*/
|
|
2047
|
+
'gitCommitSha': string | null;
|
|
2048
|
+
/**
|
|
2049
|
+
* Git ref the version was published from. Reserved, like `gitCommitSha`.
|
|
2050
|
+
*/
|
|
2051
|
+
'gitRef': string | null;
|
|
2052
|
+
/**
|
|
2053
|
+
* When the version was published
|
|
2054
|
+
*/
|
|
2055
|
+
'createdAt': string;
|
|
2056
|
+
/**
|
|
2057
|
+
* When the version\'s lifecycle state or binding last changed
|
|
2058
|
+
*/
|
|
2059
|
+
'updatedAt': string;
|
|
2060
|
+
}
|
|
2061
|
+
export declare const PackageVersionArchiveStatusEnum: {
|
|
2062
|
+
readonly Archive: "archive";
|
|
2063
|
+
readonly Unarchive: "unarchive";
|
|
2064
|
+
};
|
|
2065
|
+
export type PackageVersionArchiveStatusEnum = typeof PackageVersionArchiveStatusEnum[keyof typeof PackageVersionArchiveStatusEnum];
|
|
2066
|
+
/**
|
|
2067
|
+
* The build manifest to bind a published version to
|
|
2068
|
+
*/
|
|
2069
|
+
export interface PackageVersionManifest {
|
|
2070
|
+
/**
|
|
2071
|
+
* 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.
|
|
2072
|
+
*/
|
|
2073
|
+
'manifestLocation': string | null;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* A lifecycle change to a published version
|
|
2077
|
+
*/
|
|
2078
|
+
export interface PackageVersionUpdate {
|
|
2079
|
+
/**
|
|
2080
|
+
* `archive` takes the version out of service; `unarchive` puts it back.
|
|
2081
|
+
*/
|
|
2082
|
+
'archiveStatus': PackageVersionUpdateArchiveStatusEnum;
|
|
2083
|
+
}
|
|
2084
|
+
export declare const PackageVersionUpdateArchiveStatusEnum: {
|
|
2085
|
+
readonly Archive: "archive";
|
|
2086
|
+
readonly Unarchive: "unarchive";
|
|
2087
|
+
};
|
|
2088
|
+
export type PackageVersionUpdateArchiveStatusEnum = typeof PackageVersionUpdateArchiveStatusEnum[keyof typeof PackageVersionUpdateArchiveStatusEnum];
|
|
1935
2089
|
export interface PackageWarningsInner {
|
|
1936
2090
|
/**
|
|
1937
2091
|
* Package-relative path of the model the finding is on. Absent for a package-wide finding.
|
|
@@ -2179,7 +2333,7 @@ export interface QueryRequest {
|
|
|
2179
2333
|
*/
|
|
2180
2334
|
'compactJson'?: boolean;
|
|
2181
2335
|
/**
|
|
2182
|
-
*
|
|
2336
|
+
* 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
2337
|
*/
|
|
2184
2338
|
'versionId'?: string;
|
|
2185
2339
|
/**
|
|
@@ -2710,6 +2864,23 @@ export interface Schema {
|
|
|
2710
2864
|
*/
|
|
2711
2865
|
'isHidden'?: boolean;
|
|
2712
2866
|
}
|
|
2867
|
+
/**
|
|
2868
|
+
* One `#(secure)` given in a package\'s `secureGivens`: a given whose value the host sets, and the model files that surface it.
|
|
2869
|
+
*/
|
|
2870
|
+
export interface SecureGivenSummary {
|
|
2871
|
+
/**
|
|
2872
|
+
* Name as declared in the model.
|
|
2873
|
+
*/
|
|
2874
|
+
'name': string;
|
|
2875
|
+
/**
|
|
2876
|
+
* The given\'s type, rendered exactly as `Given.type` renders it (e.g. `string`, `number`, `string[]`, `filter<string>`).
|
|
2877
|
+
*/
|
|
2878
|
+
'type': string;
|
|
2879
|
+
/**
|
|
2880
|
+
* Package-relative paths of the `.malloy` models and `.malloynb` notebooks whose compiled givens include this given, the declaring file and every file that imports it alike. Sorted, no duplicates.
|
|
2881
|
+
*/
|
|
2882
|
+
'modelPaths': Array<string>;
|
|
2883
|
+
}
|
|
2713
2884
|
/**
|
|
2714
2885
|
* Current server status and health information
|
|
2715
2886
|
*/
|
|
@@ -2719,7 +2890,7 @@ export interface ServerStatus {
|
|
|
2719
2890
|
*/
|
|
2720
2891
|
'timestamp'?: number;
|
|
2721
2892
|
/**
|
|
2722
|
-
* List of available environments
|
|
2893
|
+
* 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
2894
|
*/
|
|
2724
2895
|
'environments'?: Array<Environment>;
|
|
2725
2896
|
/**
|
|
@@ -2734,6 +2905,14 @@ export interface ServerStatus {
|
|
|
2734
2905
|
* 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
2906
|
*/
|
|
2736
2907
|
'version'?: string;
|
|
2908
|
+
/**
|
|
2909
|
+
* \"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.
|
|
2910
|
+
*/
|
|
2911
|
+
'packageVersioning'?: ServerStatusPackageVersioningEnum;
|
|
2912
|
+
/**
|
|
2913
|
+
* The `versionPromotion` setting this server runs with. With \"explicit\", a publish never moves a package\'s `latest`; only `PUT .../packages/{packageName}/latest` does.
|
|
2914
|
+
*/
|
|
2915
|
+
'versionPromotion'?: ServerStatusVersionPromotionEnum;
|
|
2737
2916
|
/**
|
|
2738
2917
|
* 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
2918
|
*/
|
|
@@ -2762,6 +2941,16 @@ export declare const ServerStatusOperationalStateEnum: {
|
|
|
2762
2941
|
readonly Throttled: "throttled";
|
|
2763
2942
|
};
|
|
2764
2943
|
export type ServerStatusOperationalStateEnum = typeof ServerStatusOperationalStateEnum[keyof typeof ServerStatusOperationalStateEnum];
|
|
2944
|
+
export declare const ServerStatusPackageVersioningEnum: {
|
|
2945
|
+
readonly Off: "off";
|
|
2946
|
+
readonly On: "on";
|
|
2947
|
+
};
|
|
2948
|
+
export type ServerStatusPackageVersioningEnum = typeof ServerStatusPackageVersioningEnum[keyof typeof ServerStatusPackageVersioningEnum];
|
|
2949
|
+
export declare const ServerStatusVersionPromotionEnum: {
|
|
2950
|
+
readonly OnPublish: "on-publish";
|
|
2951
|
+
readonly Explicit: "explicit";
|
|
2952
|
+
};
|
|
2953
|
+
export type ServerStatusVersionPromotionEnum = typeof ServerStatusVersionPromotionEnum[keyof typeof ServerStatusVersionPromotionEnum];
|
|
2765
2954
|
export interface ServerStatusLoadErrorsInner {
|
|
2766
2955
|
/**
|
|
2767
2956
|
* Name of the configured environment the failure belongs to.
|
|
@@ -3356,10 +3545,11 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3356
3545
|
* @param {string} packageName Name of the package
|
|
3357
3546
|
* @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
3547
|
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3548
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3359
3549
|
* @param {*} [options] Override http request option.
|
|
3360
3550
|
* @throws {RequiredError}
|
|
3361
3551
|
*/
|
|
3362
|
-
getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3552
|
+
getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3363
3553
|
/**
|
|
3364
3554
|
* 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
3555
|
* @summary Get one of an agent\'s skill files
|
|
@@ -3367,19 +3557,21 @@ export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3367
3557
|
* @param {string} packageName Name of the package
|
|
3368
3558
|
* @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
3559
|
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3560
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3370
3561
|
* @param {*} [options] Override http request option.
|
|
3371
3562
|
* @throws {RequiredError}
|
|
3372
3563
|
*/
|
|
3373
|
-
getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3564
|
+
getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3374
3565
|
/**
|
|
3375
3566
|
* 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
3567
|
* @summary List the agents a package declares
|
|
3377
3568
|
* @param {string} environmentName Name of the environment
|
|
3378
3569
|
* @param {string} packageName Name of the package
|
|
3570
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3379
3571
|
* @param {*} [options] Override http request option.
|
|
3380
3572
|
* @throws {RequiredError}
|
|
3381
3573
|
*/
|
|
3382
|
-
listAgents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3574
|
+
listAgents: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3383
3575
|
};
|
|
3384
3576
|
/**
|
|
3385
3577
|
* AgentsApi - functional programming interface
|
|
@@ -3392,10 +3584,11 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
|
3392
3584
|
* @param {string} packageName Name of the package
|
|
3393
3585
|
* @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
3586
|
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3587
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3395
3588
|
* @param {*} [options] Override http request option.
|
|
3396
3589
|
* @throws {RequiredError}
|
|
3397
3590
|
*/
|
|
3398
|
-
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3591
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3399
3592
|
/**
|
|
3400
3593
|
* 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
3594
|
* @summary Get one of an agent\'s skill files
|
|
@@ -3403,19 +3596,21 @@ export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
|
3403
3596
|
* @param {string} packageName Name of the package
|
|
3404
3597
|
* @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
3598
|
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3599
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3406
3600
|
* @param {*} [options] Override http request option.
|
|
3407
3601
|
* @throws {RequiredError}
|
|
3408
3602
|
*/
|
|
3409
|
-
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
|
|
3603
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
|
|
3410
3604
|
/**
|
|
3411
3605
|
* 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
3606
|
* @summary List the agents a package declares
|
|
3413
3607
|
* @param {string} environmentName Name of the environment
|
|
3414
3608
|
* @param {string} packageName Name of the package
|
|
3609
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3415
3610
|
* @param {*} [options] Override http request option.
|
|
3416
3611
|
* @throws {RequiredError}
|
|
3417
3612
|
*/
|
|
3418
|
-
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
|
|
3613
|
+
listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
|
|
3419
3614
|
};
|
|
3420
3615
|
/**
|
|
3421
3616
|
* AgentsApi - factory interface
|
|
@@ -3428,10 +3623,11 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
|
|
|
3428
3623
|
* @param {string} packageName Name of the package
|
|
3429
3624
|
* @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
3625
|
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3626
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3431
3627
|
* @param {*} [options] Override http request option.
|
|
3432
3628
|
* @throws {RequiredError}
|
|
3433
3629
|
*/
|
|
3434
|
-
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3630
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3435
3631
|
/**
|
|
3436
3632
|
* 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
3633
|
* @summary Get one of an agent\'s skill files
|
|
@@ -3439,19 +3635,21 @@ export declare const AgentsApiFactory: (configuration?: Configuration, basePath?
|
|
|
3439
3635
|
* @param {string} packageName Name of the package
|
|
3440
3636
|
* @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
3637
|
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3638
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3442
3639
|
* @param {*} [options] Override http request option.
|
|
3443
3640
|
* @throws {RequiredError}
|
|
3444
3641
|
*/
|
|
3445
|
-
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
|
|
3642
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
|
|
3446
3643
|
/**
|
|
3447
3644
|
* 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
3645
|
* @summary List the agents a package declares
|
|
3449
3646
|
* @param {string} environmentName Name of the environment
|
|
3450
3647
|
* @param {string} packageName Name of the package
|
|
3648
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3451
3649
|
* @param {*} [options] Override http request option.
|
|
3452
3650
|
* @throws {RequiredError}
|
|
3453
3651
|
*/
|
|
3454
|
-
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
|
|
3652
|
+
listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
|
|
3455
3653
|
};
|
|
3456
3654
|
/**
|
|
3457
3655
|
* AgentsApi - object-oriented interface
|
|
@@ -3464,10 +3662,11 @@ export declare class AgentsApi extends BaseAPI {
|
|
|
3464
3662
|
* @param {string} packageName Name of the package
|
|
3465
3663
|
* @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
3664
|
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3665
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3467
3666
|
* @param {*} [options] Override http request option.
|
|
3468
3667
|
* @throws {RequiredError}
|
|
3469
3668
|
*/
|
|
3470
|
-
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
|
|
3669
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
|
|
3471
3670
|
/**
|
|
3472
3671
|
* 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
3672
|
* @summary Get one of an agent\'s skill files
|
|
@@ -3475,19 +3674,21 @@ export declare class AgentsApi extends BaseAPI {
|
|
|
3475
3674
|
* @param {string} packageName Name of the package
|
|
3476
3675
|
* @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
3676
|
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3677
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3478
3678
|
* @param {*} [options] Override http request option.
|
|
3479
3679
|
* @throws {RequiredError}
|
|
3480
3680
|
*/
|
|
3481
|
-
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
|
|
3681
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
|
|
3482
3682
|
/**
|
|
3483
3683
|
* 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
3684
|
* @summary List the agents a package declares
|
|
3485
3685
|
* @param {string} environmentName Name of the environment
|
|
3486
3686
|
* @param {string} packageName Name of the package
|
|
3687
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3487
3688
|
* @param {*} [options] Override http request option.
|
|
3488
3689
|
* @throws {RequiredError}
|
|
3489
3690
|
*/
|
|
3490
|
-
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
|
|
3691
|
+
listAgents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
|
|
3491
3692
|
}
|
|
3492
3693
|
export declare const GetAgentSkillsEnum: {
|
|
3493
3694
|
readonly Full: "full";
|
|
@@ -3545,10 +3746,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3545
3746
|
* @param {string} connectionName Name of the connection
|
|
3546
3747
|
* @param {string} schemaName Name of the schema
|
|
3547
3748
|
* @param {string} tablePath Full path to the table
|
|
3749
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3548
3750
|
* @param {*} [options] Override http request option.
|
|
3549
3751
|
* @throws {RequiredError}
|
|
3550
3752
|
*/
|
|
3551
|
-
getTableInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3753
|
+
getTableInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3552
3754
|
/**
|
|
3553
3755
|
* 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
3756
|
* @summary List environment database connections
|
|
@@ -3572,10 +3774,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3572
3774
|
* @param {string} environmentName Name of the environment
|
|
3573
3775
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3574
3776
|
* @param {string} connectionName Name of the connection
|
|
3777
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3575
3778
|
* @param {*} [options] Override http request option.
|
|
3576
3779
|
* @throws {RequiredError}
|
|
3577
3780
|
*/
|
|
3578
|
-
listSchemasInPackage: (environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3781
|
+
listSchemasInPackage: (environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3579
3782
|
/**
|
|
3580
3783
|
* 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
3784
|
* @summary List tables in database
|
|
@@ -3595,10 +3798,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3595
3798
|
* @param {string} connectionName Name of the connection
|
|
3596
3799
|
* @param {string} schemaName Name of the schema
|
|
3597
3800
|
* @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.
|
|
3801
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3598
3802
|
* @param {*} [options] Override http request option.
|
|
3599
3803
|
* @throws {RequiredError}
|
|
3600
3804
|
*/
|
|
3601
|
-
listTablesInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3805
|
+
listTablesInPackage: (environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3602
3806
|
/**
|
|
3603
3807
|
* 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
3808
|
* @summary Execute SQL query
|
|
@@ -3616,10 +3820,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3616
3820
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3617
3821
|
* @param {string} connectionName Name of the connection
|
|
3618
3822
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
3823
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3619
3824
|
* @param {*} [options] Override http request option.
|
|
3620
3825
|
* @throws {RequiredError}
|
|
3621
3826
|
*/
|
|
3622
|
-
postQuerydataInPackage: (environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3827
|
+
postQuerydataInPackage: (environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3623
3828
|
/**
|
|
3624
3829
|
* 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
3830
|
* @summary Create SQL source from statement
|
|
@@ -3637,10 +3842,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3637
3842
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3638
3843
|
* @param {string} connectionName Name of the connection
|
|
3639
3844
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
3845
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3640
3846
|
* @param {*} [options] Override http request option.
|
|
3641
3847
|
* @throws {RequiredError}
|
|
3642
3848
|
*/
|
|
3643
|
-
postSqlsourceInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3849
|
+
postSqlsourceInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3644
3850
|
/**
|
|
3645
3851
|
* 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
3852
|
* @summary Create temporary table
|
|
@@ -3658,10 +3864,11 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
3658
3864
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3659
3865
|
* @param {string} connectionName Name of the connection
|
|
3660
3866
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
3867
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3661
3868
|
* @param {*} [options] Override http request option.
|
|
3662
3869
|
* @throws {RequiredError}
|
|
3663
3870
|
*/
|
|
3664
|
-
postTemporarytableInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3871
|
+
postTemporarytableInPackage: (environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3665
3872
|
/**
|
|
3666
3873
|
* Updates the configuration of an existing database connection.
|
|
3667
3874
|
* @summary Update an existing database connection
|
|
@@ -3724,10 +3931,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3724
3931
|
* @param {string} connectionName Name of the connection
|
|
3725
3932
|
* @param {string} schemaName Name of the schema
|
|
3726
3933
|
* @param {string} tablePath Full path to the table
|
|
3934
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3727
3935
|
* @param {*} [options] Override http request option.
|
|
3728
3936
|
* @throws {RequiredError}
|
|
3729
3937
|
*/
|
|
3730
|
-
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Table>>;
|
|
3938
|
+
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Table>>;
|
|
3731
3939
|
/**
|
|
3732
3940
|
* 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
3941
|
* @summary List environment database connections
|
|
@@ -3751,10 +3959,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3751
3959
|
* @param {string} environmentName Name of the environment
|
|
3752
3960
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3753
3961
|
* @param {string} connectionName Name of the connection
|
|
3962
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3754
3963
|
* @param {*} [options] Override http request option.
|
|
3755
3964
|
* @throws {RequiredError}
|
|
3756
3965
|
*/
|
|
3757
|
-
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Schema>>>;
|
|
3966
|
+
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Schema>>>;
|
|
3758
3967
|
/**
|
|
3759
3968
|
* 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
3969
|
* @summary List tables in database
|
|
@@ -3774,10 +3983,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3774
3983
|
* @param {string} connectionName Name of the connection
|
|
3775
3984
|
* @param {string} schemaName Name of the schema
|
|
3776
3985
|
* @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.
|
|
3986
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3777
3987
|
* @param {*} [options] Override http request option.
|
|
3778
3988
|
* @throws {RequiredError}
|
|
3779
3989
|
*/
|
|
3780
|
-
listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Table>>>;
|
|
3990
|
+
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
3991
|
/**
|
|
3782
3992
|
* 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
3993
|
* @summary Execute SQL query
|
|
@@ -3795,10 +4005,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3795
4005
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3796
4006
|
* @param {string} connectionName Name of the connection
|
|
3797
4007
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
4008
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3798
4009
|
* @param {*} [options] Override http request option.
|
|
3799
4010
|
* @throws {RequiredError}
|
|
3800
4011
|
*/
|
|
3801
|
-
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryData>>;
|
|
4012
|
+
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryData>>;
|
|
3802
4013
|
/**
|
|
3803
4014
|
* 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
4015
|
* @summary Create SQL source from statement
|
|
@@ -3816,10 +4027,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3816
4027
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3817
4028
|
* @param {string} connectionName Name of the connection
|
|
3818
4029
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
4030
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3819
4031
|
* @param {*} [options] Override http request option.
|
|
3820
4032
|
* @throws {RequiredError}
|
|
3821
4033
|
*/
|
|
3822
|
-
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SqlSource>>;
|
|
4034
|
+
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SqlSource>>;
|
|
3823
4035
|
/**
|
|
3824
4036
|
* 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
4037
|
* @summary Create temporary table
|
|
@@ -3837,10 +4049,11 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
3837
4049
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3838
4050
|
* @param {string} connectionName Name of the connection
|
|
3839
4051
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
4052
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3840
4053
|
* @param {*} [options] Override http request option.
|
|
3841
4054
|
* @throws {RequiredError}
|
|
3842
4055
|
*/
|
|
3843
|
-
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemporaryTable>>;
|
|
4056
|
+
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TemporaryTable>>;
|
|
3844
4057
|
/**
|
|
3845
4058
|
* Updates the configuration of an existing database connection.
|
|
3846
4059
|
* @summary Update an existing database connection
|
|
@@ -3903,10 +4116,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
3903
4116
|
* @param {string} connectionName Name of the connection
|
|
3904
4117
|
* @param {string} schemaName Name of the schema
|
|
3905
4118
|
* @param {string} tablePath Full path to the table
|
|
4119
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3906
4120
|
* @param {*} [options] Override http request option.
|
|
3907
4121
|
* @throws {RequiredError}
|
|
3908
4122
|
*/
|
|
3909
|
-
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): AxiosPromise<Table>;
|
|
4123
|
+
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Table>;
|
|
3910
4124
|
/**
|
|
3911
4125
|
* 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
4126
|
* @summary List environment database connections
|
|
@@ -3930,10 +4144,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
3930
4144
|
* @param {string} environmentName Name of the environment
|
|
3931
4145
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3932
4146
|
* @param {string} connectionName Name of the connection
|
|
4147
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3933
4148
|
* @param {*} [options] Override http request option.
|
|
3934
4149
|
* @throws {RequiredError}
|
|
3935
4150
|
*/
|
|
3936
|
-
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Schema>>;
|
|
4151
|
+
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Schema>>;
|
|
3937
4152
|
/**
|
|
3938
4153
|
* 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
4154
|
* @summary List tables in database
|
|
@@ -3953,10 +4168,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
3953
4168
|
* @param {string} connectionName Name of the connection
|
|
3954
4169
|
* @param {string} schemaName Name of the schema
|
|
3955
4170
|
* @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.
|
|
4171
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3956
4172
|
* @param {*} [options] Override http request option.
|
|
3957
4173
|
* @throws {RequiredError}
|
|
3958
4174
|
*/
|
|
3959
|
-
listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<Array<Table>>;
|
|
4175
|
+
listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Table>>;
|
|
3960
4176
|
/**
|
|
3961
4177
|
* 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
4178
|
* @summary Execute SQL query
|
|
@@ -3974,10 +4190,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
3974
4190
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3975
4191
|
* @param {string} connectionName Name of the connection
|
|
3976
4192
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
4193
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3977
4194
|
* @param {*} [options] Override http request option.
|
|
3978
4195
|
* @throws {RequiredError}
|
|
3979
4196
|
*/
|
|
3980
|
-
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): AxiosPromise<QueryData>;
|
|
4197
|
+
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryData>;
|
|
3981
4198
|
/**
|
|
3982
4199
|
* 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
4200
|
* @summary Create SQL source from statement
|
|
@@ -3995,10 +4212,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
3995
4212
|
* @param {string} packageName Name of the package whose connection context to use
|
|
3996
4213
|
* @param {string} connectionName Name of the connection
|
|
3997
4214
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
4215
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3998
4216
|
* @param {*} [options] Override http request option.
|
|
3999
4217
|
* @throws {RequiredError}
|
|
4000
4218
|
*/
|
|
4001
|
-
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SqlSource>;
|
|
4219
|
+
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SqlSource>;
|
|
4002
4220
|
/**
|
|
4003
4221
|
* 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
4222
|
* @summary Create temporary table
|
|
@@ -4016,10 +4234,11 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
4016
4234
|
* @param {string} packageName Name of the package whose connection context to use
|
|
4017
4235
|
* @param {string} connectionName Name of the connection
|
|
4018
4236
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
4237
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4019
4238
|
* @param {*} [options] Override http request option.
|
|
4020
4239
|
* @throws {RequiredError}
|
|
4021
4240
|
*/
|
|
4022
|
-
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<TemporaryTable>;
|
|
4241
|
+
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TemporaryTable>;
|
|
4023
4242
|
/**
|
|
4024
4243
|
* Updates the configuration of an existing database connection.
|
|
4025
4244
|
* @summary Update an existing database connection
|
|
@@ -4082,10 +4301,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4082
4301
|
* @param {string} connectionName Name of the connection
|
|
4083
4302
|
* @param {string} schemaName Name of the schema
|
|
4084
4303
|
* @param {string} tablePath Full path to the table
|
|
4304
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4085
4305
|
* @param {*} [options] Override http request option.
|
|
4086
4306
|
* @throws {RequiredError}
|
|
4087
4307
|
*/
|
|
4088
|
-
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table, any, {}, any>>;
|
|
4308
|
+
getTableInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tablePath: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table, any, {}, any>>;
|
|
4089
4309
|
/**
|
|
4090
4310
|
* 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
4311
|
* @summary List environment database connections
|
|
@@ -4109,10 +4329,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4109
4329
|
* @param {string} environmentName Name of the environment
|
|
4110
4330
|
* @param {string} packageName Name of the package whose connection context to use
|
|
4111
4331
|
* @param {string} connectionName Name of the connection
|
|
4332
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4112
4333
|
* @param {*} [options] Override http request option.
|
|
4113
4334
|
* @throws {RequiredError}
|
|
4114
4335
|
*/
|
|
4115
|
-
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Schema[], any, {}, any>>;
|
|
4336
|
+
listSchemasInPackage(environmentName: string, packageName: string, connectionName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Schema[], any, {}, any>>;
|
|
4116
4337
|
/**
|
|
4117
4338
|
* 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
4339
|
* @summary List tables in database
|
|
@@ -4132,10 +4353,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4132
4353
|
* @param {string} connectionName Name of the connection
|
|
4133
4354
|
* @param {string} schemaName Name of the schema
|
|
4134
4355
|
* @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.
|
|
4356
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4135
4357
|
* @param {*} [options] Override http request option.
|
|
4136
4358
|
* @throws {RequiredError}
|
|
4137
4359
|
*/
|
|
4138
|
-
listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table[], any, {}, any>>;
|
|
4360
|
+
listTablesInPackage(environmentName: string, packageName: string, connectionName: string, schemaName: string, tableNames?: Array<string>, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Table[], any, {}, any>>;
|
|
4139
4361
|
/**
|
|
4140
4362
|
* 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
4363
|
* @summary Execute SQL query
|
|
@@ -4153,10 +4375,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4153
4375
|
* @param {string} packageName Name of the package whose connection context to use
|
|
4154
4376
|
* @param {string} connectionName Name of the connection
|
|
4155
4377
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
4378
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4156
4379
|
* @param {*} [options] Override http request option.
|
|
4157
4380
|
* @throws {RequiredError}
|
|
4158
4381
|
*/
|
|
4159
|
-
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryData, any, {}, any>>;
|
|
4382
|
+
postQuerydataInPackage(environmentName: string, packageName: string, connectionName: string, postQuerydataRequest: PostQuerydataRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryData, any, {}, any>>;
|
|
4160
4383
|
/**
|
|
4161
4384
|
* 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
4385
|
* @summary Create SQL source from statement
|
|
@@ -4174,10 +4397,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4174
4397
|
* @param {string} packageName Name of the package whose connection context to use
|
|
4175
4398
|
* @param {string} connectionName Name of the connection
|
|
4176
4399
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
4400
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4177
4401
|
* @param {*} [options] Override http request option.
|
|
4178
4402
|
* @throws {RequiredError}
|
|
4179
4403
|
*/
|
|
4180
|
-
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SqlSource, any, {}, any>>;
|
|
4404
|
+
postSqlsourceInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SqlSource, any, {}, any>>;
|
|
4181
4405
|
/**
|
|
4182
4406
|
* 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
4407
|
* @summary Create temporary table
|
|
@@ -4195,10 +4419,11 @@ export declare class ConnectionsApi extends BaseAPI {
|
|
|
4195
4419
|
* @param {string} packageName Name of the package whose connection context to use
|
|
4196
4420
|
* @param {string} connectionName Name of the connection
|
|
4197
4421
|
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
4422
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4198
4423
|
* @param {*} [options] Override http request option.
|
|
4199
4424
|
* @throws {RequiredError}
|
|
4200
4425
|
*/
|
|
4201
|
-
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<TemporaryTable, any, {}, any>>;
|
|
4426
|
+
postTemporarytableInPackage(environmentName: string, packageName: string, connectionName: string, postSqlsourceRequest: PostSqlsourceRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<TemporaryTable, any, {}, any>>;
|
|
4202
4427
|
/**
|
|
4203
4428
|
* Updates the configuration of an existing database connection.
|
|
4204
4429
|
* @summary Update an existing database connection
|
|
@@ -4272,7 +4497,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
4272
4497
|
* @param {string} environmentName Name of the environment
|
|
4273
4498
|
* @param {string} packageName Name of the package
|
|
4274
4499
|
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", 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 `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4275
|
-
* @param {string} [versionId]
|
|
4500
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4276
4501
|
* @param {*} [options] Override http request option.
|
|
4277
4502
|
* @deprecated
|
|
4278
4503
|
* @throws {RequiredError}
|
|
@@ -4283,7 +4508,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
4283
4508
|
* @summary List package dashboards (deprecated; use list-reports)
|
|
4284
4509
|
* @param {string} environmentName Name of the environment
|
|
4285
4510
|
* @param {string} packageName Name of the package
|
|
4286
|
-
* @param {string} [versionId]
|
|
4511
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4287
4512
|
* @param {*} [options] Override http request option.
|
|
4288
4513
|
* @deprecated
|
|
4289
4514
|
* @throws {RequiredError}
|
|
@@ -4300,7 +4525,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
4300
4525
|
* @param {string} environmentName Name of the environment
|
|
4301
4526
|
* @param {string} packageName Name of the package
|
|
4302
4527
|
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", 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 `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4303
|
-
* @param {string} [versionId]
|
|
4528
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4304
4529
|
* @param {*} [options] Override http request option.
|
|
4305
4530
|
* @deprecated
|
|
4306
4531
|
* @throws {RequiredError}
|
|
@@ -4311,7 +4536,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
4311
4536
|
* @summary List package dashboards (deprecated; use list-reports)
|
|
4312
4537
|
* @param {string} environmentName Name of the environment
|
|
4313
4538
|
* @param {string} packageName Name of the package
|
|
4314
|
-
* @param {string} [versionId]
|
|
4539
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4315
4540
|
* @param {*} [options] Override http request option.
|
|
4316
4541
|
* @deprecated
|
|
4317
4542
|
* @throws {RequiredError}
|
|
@@ -4328,7 +4553,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
4328
4553
|
* @param {string} environmentName Name of the environment
|
|
4329
4554
|
* @param {string} packageName Name of the package
|
|
4330
4555
|
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", 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 `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4331
|
-
* @param {string} [versionId]
|
|
4556
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4332
4557
|
* @param {*} [options] Override http request option.
|
|
4333
4558
|
* @deprecated
|
|
4334
4559
|
* @throws {RequiredError}
|
|
@@ -4339,7 +4564,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
4339
4564
|
* @summary List package dashboards (deprecated; use list-reports)
|
|
4340
4565
|
* @param {string} environmentName Name of the environment
|
|
4341
4566
|
* @param {string} packageName Name of the package
|
|
4342
|
-
* @param {string} [versionId]
|
|
4567
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4343
4568
|
* @param {*} [options] Override http request option.
|
|
4344
4569
|
* @deprecated
|
|
4345
4570
|
* @throws {RequiredError}
|
|
@@ -4356,7 +4581,7 @@ export declare class DashboardsApi extends BaseAPI {
|
|
|
4356
4581
|
* @param {string} environmentName Name of the environment
|
|
4357
4582
|
* @param {string} packageName Name of the package
|
|
4358
4583
|
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", 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 `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4359
|
-
* @param {string} [versionId]
|
|
4584
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4360
4585
|
* @param {*} [options] Override http request option.
|
|
4361
4586
|
* @deprecated
|
|
4362
4587
|
* @throws {RequiredError}
|
|
@@ -4367,7 +4592,7 @@ export declare class DashboardsApi extends BaseAPI {
|
|
|
4367
4592
|
* @summary List package dashboards (deprecated; use list-reports)
|
|
4368
4593
|
* @param {string} environmentName Name of the environment
|
|
4369
4594
|
* @param {string} packageName Name of the package
|
|
4370
|
-
* @param {string} [versionId]
|
|
4595
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4371
4596
|
* @param {*} [options] Override http request option.
|
|
4372
4597
|
* @deprecated
|
|
4373
4598
|
* @throws {RequiredError}
|
|
@@ -4383,10 +4608,11 @@ export declare const DataAppsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
4383
4608
|
* @summary List package data apps
|
|
4384
4609
|
* @param {string} environmentName Name of the environment
|
|
4385
4610
|
* @param {string} packageName Name of the package
|
|
4611
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4386
4612
|
* @param {*} [options] Override http request option.
|
|
4387
4613
|
* @throws {RequiredError}
|
|
4388
4614
|
*/
|
|
4389
|
-
listDataApps: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4615
|
+
listDataApps: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4390
4616
|
};
|
|
4391
4617
|
/**
|
|
4392
4618
|
* DataAppsApi - functional programming interface
|
|
@@ -4397,10 +4623,11 @@ export declare const DataAppsApiFp: (configuration?: Configuration) => {
|
|
|
4397
4623
|
* @summary List package data apps
|
|
4398
4624
|
* @param {string} environmentName Name of the environment
|
|
4399
4625
|
* @param {string} packageName Name of the package
|
|
4626
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4400
4627
|
* @param {*} [options] Override http request option.
|
|
4401
4628
|
* @throws {RequiredError}
|
|
4402
4629
|
*/
|
|
4403
|
-
listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataApp>>>;
|
|
4630
|
+
listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataApp>>>;
|
|
4404
4631
|
};
|
|
4405
4632
|
/**
|
|
4406
4633
|
* DataAppsApi - factory interface
|
|
@@ -4411,10 +4638,11 @@ export declare const DataAppsApiFactory: (configuration?: Configuration, basePat
|
|
|
4411
4638
|
* @summary List package data apps
|
|
4412
4639
|
* @param {string} environmentName Name of the environment
|
|
4413
4640
|
* @param {string} packageName Name of the package
|
|
4641
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4414
4642
|
* @param {*} [options] Override http request option.
|
|
4415
4643
|
* @throws {RequiredError}
|
|
4416
4644
|
*/
|
|
4417
|
-
listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataApp>>;
|
|
4645
|
+
listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataApp>>;
|
|
4418
4646
|
};
|
|
4419
4647
|
/**
|
|
4420
4648
|
* DataAppsApi - object-oriented interface
|
|
@@ -4425,10 +4653,11 @@ export declare class DataAppsApi extends BaseAPI {
|
|
|
4425
4653
|
* @summary List package data apps
|
|
4426
4654
|
* @param {string} environmentName Name of the environment
|
|
4427
4655
|
* @param {string} packageName Name of the package
|
|
4656
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4428
4657
|
* @param {*} [options] Override http request option.
|
|
4429
4658
|
* @throws {RequiredError}
|
|
4430
4659
|
*/
|
|
4431
|
-
listDataApps(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DataApp[], any, {}, any>>;
|
|
4660
|
+
listDataApps(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DataApp[], any, {}, any>>;
|
|
4432
4661
|
}
|
|
4433
4662
|
/**
|
|
4434
4663
|
* DatabasesApi - axios parameter creator
|
|
@@ -4439,7 +4668,7 @@ export declare const DatabasesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4439
4668
|
* @summary List embedded databases
|
|
4440
4669
|
* @param {string} environmentName Name of the environment
|
|
4441
4670
|
* @param {string} packageName Name of the package
|
|
4442
|
-
* @param {string} [versionId]
|
|
4671
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4443
4672
|
* @param {*} [options] Override http request option.
|
|
4444
4673
|
* @throws {RequiredError}
|
|
4445
4674
|
*/
|
|
@@ -4454,7 +4683,7 @@ export declare const DatabasesApiFp: (configuration?: Configuration) => {
|
|
|
4454
4683
|
* @summary List embedded databases
|
|
4455
4684
|
* @param {string} environmentName Name of the environment
|
|
4456
4685
|
* @param {string} packageName Name of the package
|
|
4457
|
-
* @param {string} [versionId]
|
|
4686
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4458
4687
|
* @param {*} [options] Override http request option.
|
|
4459
4688
|
* @throws {RequiredError}
|
|
4460
4689
|
*/
|
|
@@ -4469,7 +4698,7 @@ export declare const DatabasesApiFactory: (configuration?: Configuration, basePa
|
|
|
4469
4698
|
* @summary List embedded databases
|
|
4470
4699
|
* @param {string} environmentName Name of the environment
|
|
4471
4700
|
* @param {string} packageName Name of the package
|
|
4472
|
-
* @param {string} [versionId]
|
|
4701
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4473
4702
|
* @param {*} [options] Override http request option.
|
|
4474
4703
|
* @throws {RequiredError}
|
|
4475
4704
|
*/
|
|
@@ -4484,7 +4713,7 @@ export declare class DatabasesApi extends BaseAPI {
|
|
|
4484
4713
|
* @summary List embedded databases
|
|
4485
4714
|
* @param {string} environmentName Name of the environment
|
|
4486
4715
|
* @param {string} packageName Name of the package
|
|
4487
|
-
* @param {string} [versionId]
|
|
4716
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4488
4717
|
* @param {*} [options] Override http request option.
|
|
4489
4718
|
* @throws {RequiredError}
|
|
4490
4719
|
*/
|
|
@@ -4695,31 +4924,34 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
|
|
|
4695
4924
|
* @param {string} packageName Name of the package
|
|
4696
4925
|
* @param {string} materializationId ID of the materialization
|
|
4697
4926
|
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
4927
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4698
4928
|
* @param {*} [options] Override http request option.
|
|
4699
4929
|
* @throws {RequiredError}
|
|
4700
4930
|
*/
|
|
4701
|
-
deleteMaterialization: (environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4931
|
+
deleteMaterialization: (environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4702
4932
|
/**
|
|
4703
|
-
*
|
|
4933
|
+
* 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
4934
|
* @summary Get a specific materialization
|
|
4705
4935
|
* @param {string} environmentName Name of the environment
|
|
4706
4936
|
* @param {string} packageName Name of the package
|
|
4707
4937
|
* @param {string} materializationId ID of the materialization
|
|
4938
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4708
4939
|
* @param {*} [options] Override http request option.
|
|
4709
4940
|
* @throws {RequiredError}
|
|
4710
4941
|
*/
|
|
4711
|
-
getMaterialization: (environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4942
|
+
getMaterialization: (environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4712
4943
|
/**
|
|
4713
|
-
* Returns the materialization history for the package, ordered by most recent first.
|
|
4944
|
+
* 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
4945
|
* @summary List materializations for a package
|
|
4715
4946
|
* @param {string} environmentName Name of the environment
|
|
4716
4947
|
* @param {string} packageName Name of the package
|
|
4717
4948
|
* @param {number} [limit] Maximum number of materializations to return
|
|
4718
4949
|
* @param {number} [offset] Number of materializations to skip
|
|
4950
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4719
4951
|
* @param {*} [options] Override http request option.
|
|
4720
4952
|
* @throws {RequiredError}
|
|
4721
4953
|
*/
|
|
4722
|
-
listMaterializations: (environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4954
|
+
listMaterializations: (environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4723
4955
|
/**
|
|
4724
4956
|
* 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
4957
|
* @summary Perform an action on a materialization
|
|
@@ -4727,10 +4959,11 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
|
|
|
4727
4959
|
* @param {string} packageName Name of the package
|
|
4728
4960
|
* @param {string} materializationId ID of the materialization
|
|
4729
4961
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
4962
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4730
4963
|
* @param {*} [options] Override http request option.
|
|
4731
4964
|
* @throws {RequiredError}
|
|
4732
4965
|
*/
|
|
4733
|
-
materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4966
|
+
materializationAction: (environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4734
4967
|
};
|
|
4735
4968
|
/**
|
|
4736
4969
|
* MaterializationsApi - functional programming interface
|
|
@@ -4753,31 +4986,34 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
|
|
|
4753
4986
|
* @param {string} packageName Name of the package
|
|
4754
4987
|
* @param {string} materializationId ID of the materialization
|
|
4755
4988
|
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
4989
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4756
4990
|
* @param {*} [options] Override http request option.
|
|
4757
4991
|
* @throws {RequiredError}
|
|
4758
4992
|
*/
|
|
4759
|
-
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4993
|
+
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4760
4994
|
/**
|
|
4761
|
-
*
|
|
4995
|
+
* 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
4996
|
* @summary Get a specific materialization
|
|
4763
4997
|
* @param {string} environmentName Name of the environment
|
|
4764
4998
|
* @param {string} packageName Name of the package
|
|
4765
4999
|
* @param {string} materializationId ID of the materialization
|
|
5000
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4766
5001
|
* @param {*} [options] Override http request option.
|
|
4767
5002
|
* @throws {RequiredError}
|
|
4768
5003
|
*/
|
|
4769
|
-
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
|
|
5004
|
+
getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
|
|
4770
5005
|
/**
|
|
4771
|
-
* Returns the materialization history for the package, ordered by most recent first.
|
|
5006
|
+
* 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
5007
|
* @summary List materializations for a package
|
|
4773
5008
|
* @param {string} environmentName Name of the environment
|
|
4774
5009
|
* @param {string} packageName Name of the package
|
|
4775
5010
|
* @param {number} [limit] Maximum number of materializations to return
|
|
4776
5011
|
* @param {number} [offset] Number of materializations to skip
|
|
5012
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4777
5013
|
* @param {*} [options] Override http request option.
|
|
4778
5014
|
* @throws {RequiredError}
|
|
4779
5015
|
*/
|
|
4780
|
-
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
|
|
5016
|
+
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
|
|
4781
5017
|
/**
|
|
4782
5018
|
* 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
5019
|
* @summary Perform an action on a materialization
|
|
@@ -4785,10 +5021,11 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
|
|
|
4785
5021
|
* @param {string} packageName Name of the package
|
|
4786
5022
|
* @param {string} materializationId ID of the materialization
|
|
4787
5023
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
5024
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4788
5025
|
* @param {*} [options] Override http request option.
|
|
4789
5026
|
* @throws {RequiredError}
|
|
4790
5027
|
*/
|
|
4791
|
-
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
|
|
5028
|
+
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
|
|
4792
5029
|
};
|
|
4793
5030
|
/**
|
|
4794
5031
|
* MaterializationsApi - factory interface
|
|
@@ -4811,31 +5048,34 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
|
|
|
4811
5048
|
* @param {string} packageName Name of the package
|
|
4812
5049
|
* @param {string} materializationId ID of the materialization
|
|
4813
5050
|
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
5051
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4814
5052
|
* @param {*} [options] Override http request option.
|
|
4815
5053
|
* @throws {RequiredError}
|
|
4816
5054
|
*/
|
|
4817
|
-
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5055
|
+
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4818
5056
|
/**
|
|
4819
|
-
*
|
|
5057
|
+
* 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
5058
|
* @summary Get a specific materialization
|
|
4821
5059
|
* @param {string} environmentName Name of the environment
|
|
4822
5060
|
* @param {string} packageName Name of the package
|
|
4823
5061
|
* @param {string} materializationId ID of the materialization
|
|
5062
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4824
5063
|
* @param {*} [options] Override http request option.
|
|
4825
5064
|
* @throws {RequiredError}
|
|
4826
5065
|
*/
|
|
4827
|
-
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
|
|
5066
|
+
getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
|
|
4828
5067
|
/**
|
|
4829
|
-
* Returns the materialization history for the package, ordered by most recent first.
|
|
5068
|
+
* 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
5069
|
* @summary List materializations for a package
|
|
4831
5070
|
* @param {string} environmentName Name of the environment
|
|
4832
5071
|
* @param {string} packageName Name of the package
|
|
4833
5072
|
* @param {number} [limit] Maximum number of materializations to return
|
|
4834
5073
|
* @param {number} [offset] Number of materializations to skip
|
|
5074
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4835
5075
|
* @param {*} [options] Override http request option.
|
|
4836
5076
|
* @throws {RequiredError}
|
|
4837
5077
|
*/
|
|
4838
|
-
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
|
|
5078
|
+
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
|
|
4839
5079
|
/**
|
|
4840
5080
|
* 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
5081
|
* @summary Perform an action on a materialization
|
|
@@ -4843,10 +5083,11 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
|
|
|
4843
5083
|
* @param {string} packageName Name of the package
|
|
4844
5084
|
* @param {string} materializationId ID of the materialization
|
|
4845
5085
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
5086
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4846
5087
|
* @param {*} [options] Override http request option.
|
|
4847
5088
|
* @throws {RequiredError}
|
|
4848
5089
|
*/
|
|
4849
|
-
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
|
|
5090
|
+
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
|
|
4850
5091
|
};
|
|
4851
5092
|
/**
|
|
4852
5093
|
* MaterializationsApi - object-oriented interface
|
|
@@ -4869,31 +5110,34 @@ export declare class MaterializationsApi extends BaseAPI {
|
|
|
4869
5110
|
* @param {string} packageName Name of the package
|
|
4870
5111
|
* @param {string} materializationId ID of the materialization
|
|
4871
5112
|
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
5113
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4872
5114
|
* @param {*} [options] Override http request option.
|
|
4873
5115
|
* @throws {RequiredError}
|
|
4874
5116
|
*/
|
|
4875
|
-
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
|
|
5117
|
+
deleteMaterialization(environmentName: string, packageName: string, materializationId: string, dropTables?: boolean, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
|
|
4876
5118
|
/**
|
|
4877
|
-
*
|
|
5119
|
+
* 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
5120
|
* @summary Get a specific materialization
|
|
4879
5121
|
* @param {string} environmentName Name of the environment
|
|
4880
5122
|
* @param {string} packageName Name of the package
|
|
4881
5123
|
* @param {string} materializationId ID of the materialization
|
|
5124
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4882
5125
|
* @param {*} [options] Override http request option.
|
|
4883
5126
|
* @throws {RequiredError}
|
|
4884
5127
|
*/
|
|
4885
|
-
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
|
|
5128
|
+
getMaterialization(environmentName: string, packageName: string, materializationId: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
|
|
4886
5129
|
/**
|
|
4887
|
-
* Returns the materialization history for the package, ordered by most recent first.
|
|
5130
|
+
* 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
5131
|
* @summary List materializations for a package
|
|
4889
5132
|
* @param {string} environmentName Name of the environment
|
|
4890
5133
|
* @param {string} packageName Name of the package
|
|
4891
5134
|
* @param {number} [limit] Maximum number of materializations to return
|
|
4892
5135
|
* @param {number} [offset] Number of materializations to skip
|
|
5136
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4893
5137
|
* @param {*} [options] Override http request option.
|
|
4894
5138
|
* @throws {RequiredError}
|
|
4895
5139
|
*/
|
|
4896
|
-
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}, any>>;
|
|
5140
|
+
listMaterializations(environmentName: string, packageName: string, limit?: number, offset?: number, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}, any>>;
|
|
4897
5141
|
/**
|
|
4898
5142
|
* 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
5143
|
* @summary Perform an action on a materialization
|
|
@@ -4901,10 +5145,11 @@ export declare class MaterializationsApi extends BaseAPI {
|
|
|
4901
5145
|
* @param {string} packageName Name of the package
|
|
4902
5146
|
* @param {string} materializationId ID of the materialization
|
|
4903
5147
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
5148
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4904
5149
|
* @param {*} [options] Override http request option.
|
|
4905
5150
|
* @throws {RequiredError}
|
|
4906
5151
|
*/
|
|
4907
|
-
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
|
|
5152
|
+
materializationAction(environmentName: string, packageName: string, materializationId: string, action: MaterializationActionActionEnum, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}, any>>;
|
|
4908
5153
|
}
|
|
4909
5154
|
export declare const MaterializationActionActionEnum: {
|
|
4910
5155
|
readonly Stop: "stop";
|
|
@@ -4921,10 +5166,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4921
5166
|
* @param {string} packageName Name of the package
|
|
4922
5167
|
* @param {string} path Path to the model within the package (used to resolve relative imports)
|
|
4923
5168
|
* @param {CompileRequest} compileRequest
|
|
5169
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4924
5170
|
* @param {*} [options] Override http request option.
|
|
4925
5171
|
* @throws {RequiredError}
|
|
4926
5172
|
*/
|
|
4927
|
-
compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5173
|
+
compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4928
5174
|
/**
|
|
4929
5175
|
* 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
5176
|
* @summary Execute Malloy query
|
|
@@ -4943,7 +5189,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4943
5189
|
* @param {string} environmentName Name of the environment
|
|
4944
5190
|
* @param {string} packageName Name of the package
|
|
4945
5191
|
* @param {string} path Path to the model within the package
|
|
4946
|
-
* @param {string} [versionId]
|
|
5192
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4947
5193
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
4948
5194
|
* @param {*} [options] Override http request option.
|
|
4949
5195
|
* @throws {RequiredError}
|
|
@@ -4954,20 +5200,20 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4954
5200
|
* @summary List package models
|
|
4955
5201
|
* @param {string} environmentName Name of the environment
|
|
4956
5202
|
* @param {string} packageName Name of the package
|
|
4957
|
-
* @param {string} [versionId]
|
|
5203
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4958
5204
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
4959
5205
|
* @param {*} [options] Override http request option.
|
|
4960
5206
|
* @throws {RequiredError}
|
|
4961
5207
|
*/
|
|
4962
5208
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4963
5209
|
/**
|
|
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.
|
|
5210
|
+
* 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
5211
|
* @summary Write a report file into the package
|
|
4966
5212
|
* @param {string} environmentName Name of the environment
|
|
4967
5213
|
* @param {string} packageName Name of the package
|
|
4968
5214
|
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4969
5215
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4970
|
-
* @param {string} [versionId]
|
|
5216
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4971
5217
|
* @param {*} [options] Override http request option.
|
|
4972
5218
|
* @throws {RequiredError}
|
|
4973
5219
|
*/
|
|
@@ -4984,10 +5230,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4984
5230
|
* @param {string} packageName Name of the package
|
|
4985
5231
|
* @param {string} path Path to the model within the package (used to resolve relative imports)
|
|
4986
5232
|
* @param {CompileRequest} compileRequest
|
|
5233
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4987
5234
|
* @param {*} [options] Override http request option.
|
|
4988
5235
|
* @throws {RequiredError}
|
|
4989
5236
|
*/
|
|
4990
|
-
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
|
|
5237
|
+
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
|
|
4991
5238
|
/**
|
|
4992
5239
|
* 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
5240
|
* @summary Execute Malloy query
|
|
@@ -5006,7 +5253,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
5006
5253
|
* @param {string} environmentName Name of the environment
|
|
5007
5254
|
* @param {string} packageName Name of the package
|
|
5008
5255
|
* @param {string} path Path to the model within the package
|
|
5009
|
-
* @param {string} [versionId]
|
|
5256
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5010
5257
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5011
5258
|
* @param {*} [options] Override http request option.
|
|
5012
5259
|
* @throws {RequiredError}
|
|
@@ -5017,20 +5264,20 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
5017
5264
|
* @summary List package models
|
|
5018
5265
|
* @param {string} environmentName Name of the environment
|
|
5019
5266
|
* @param {string} packageName Name of the package
|
|
5020
|
-
* @param {string} [versionId]
|
|
5267
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5021
5268
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5022
5269
|
* @param {*} [options] Override http request option.
|
|
5023
5270
|
* @throws {RequiredError}
|
|
5024
5271
|
*/
|
|
5025
5272
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
5026
5273
|
/**
|
|
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.
|
|
5274
|
+
* 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
5275
|
* @summary Write a report file into the package
|
|
5029
5276
|
* @param {string} environmentName Name of the environment
|
|
5030
5277
|
* @param {string} packageName Name of the package
|
|
5031
5278
|
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
5032
5279
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
5033
|
-
* @param {string} [versionId]
|
|
5280
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5034
5281
|
* @param {*} [options] Override http request option.
|
|
5035
5282
|
* @throws {RequiredError}
|
|
5036
5283
|
*/
|
|
@@ -5047,10 +5294,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5047
5294
|
* @param {string} packageName Name of the package
|
|
5048
5295
|
* @param {string} path Path to the model within the package (used to resolve relative imports)
|
|
5049
5296
|
* @param {CompileRequest} compileRequest
|
|
5297
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5050
5298
|
* @param {*} [options] Override http request option.
|
|
5051
5299
|
* @throws {RequiredError}
|
|
5052
5300
|
*/
|
|
5053
|
-
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
|
|
5301
|
+
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
|
|
5054
5302
|
/**
|
|
5055
5303
|
* 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
5304
|
* @summary Execute Malloy query
|
|
@@ -5069,7 +5317,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5069
5317
|
* @param {string} environmentName Name of the environment
|
|
5070
5318
|
* @param {string} packageName Name of the package
|
|
5071
5319
|
* @param {string} path Path to the model within the package
|
|
5072
|
-
* @param {string} [versionId]
|
|
5320
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5073
5321
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5074
5322
|
* @param {*} [options] Override http request option.
|
|
5075
5323
|
* @throws {RequiredError}
|
|
@@ -5080,20 +5328,20 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5080
5328
|
* @summary List package models
|
|
5081
5329
|
* @param {string} environmentName Name of the environment
|
|
5082
5330
|
* @param {string} packageName Name of the package
|
|
5083
|
-
* @param {string} [versionId]
|
|
5331
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5084
5332
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5085
5333
|
* @param {*} [options] Override http request option.
|
|
5086
5334
|
* @throws {RequiredError}
|
|
5087
5335
|
*/
|
|
5088
5336
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
5089
5337
|
/**
|
|
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.
|
|
5338
|
+
* 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
5339
|
* @summary Write a report file into the package
|
|
5092
5340
|
* @param {string} environmentName Name of the environment
|
|
5093
5341
|
* @param {string} packageName Name of the package
|
|
5094
5342
|
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
5095
5343
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
5096
|
-
* @param {string} [versionId]
|
|
5344
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5097
5345
|
* @param {*} [options] Override http request option.
|
|
5098
5346
|
* @throws {RequiredError}
|
|
5099
5347
|
*/
|
|
@@ -5110,10 +5358,11 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5110
5358
|
* @param {string} packageName Name of the package
|
|
5111
5359
|
* @param {string} path Path to the model within the package (used to resolve relative imports)
|
|
5112
5360
|
* @param {CompileRequest} compileRequest
|
|
5361
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5113
5362
|
* @param {*} [options] Override http request option.
|
|
5114
5363
|
* @throws {RequiredError}
|
|
5115
5364
|
*/
|
|
5116
|
-
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}, any>>;
|
|
5365
|
+
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}, any>>;
|
|
5117
5366
|
/**
|
|
5118
5367
|
* 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
5368
|
* @summary Execute Malloy query
|
|
@@ -5132,7 +5381,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5132
5381
|
* @param {string} environmentName Name of the environment
|
|
5133
5382
|
* @param {string} packageName Name of the package
|
|
5134
5383
|
* @param {string} path Path to the model within the package
|
|
5135
|
-
* @param {string} [versionId]
|
|
5384
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5136
5385
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5137
5386
|
* @param {*} [options] Override http request option.
|
|
5138
5387
|
* @throws {RequiredError}
|
|
@@ -5143,20 +5392,20 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5143
5392
|
* @summary List package models
|
|
5144
5393
|
* @param {string} environmentName Name of the environment
|
|
5145
5394
|
* @param {string} packageName Name of the package
|
|
5146
|
-
* @param {string} [versionId]
|
|
5395
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5147
5396
|
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) 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 `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'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 `/projects/...` 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\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
5148
5397
|
* @param {*} [options] Override http request option.
|
|
5149
5398
|
* @throws {RequiredError}
|
|
5150
5399
|
*/
|
|
5151
5400
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
5152
5401
|
/**
|
|
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.
|
|
5402
|
+
* 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
5403
|
* @summary Write a report file into the package
|
|
5155
5404
|
* @param {string} environmentName Name of the environment
|
|
5156
5405
|
* @param {string} packageName Name of the package
|
|
5157
5406
|
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
5158
5407
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
5159
|
-
* @param {string} [versionId]
|
|
5408
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5160
5409
|
* @param {*} [options] Override http request option.
|
|
5161
5410
|
* @throws {RequiredError}
|
|
5162
5411
|
*/
|
|
@@ -5173,7 +5422,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5173
5422
|
* @param {string} packageName Name of the package
|
|
5174
5423
|
* @param {string} path Path to notebook within the package
|
|
5175
5424
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
5176
|
-
* @param {string} [versionId]
|
|
5425
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5177
5426
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
5178
5427
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
5179
5428
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
@@ -5188,7 +5437,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5188
5437
|
* @param {string} environmentName Name of the environment
|
|
5189
5438
|
* @param {string} packageName Name of the package
|
|
5190
5439
|
* @param {string} path Path to notebook within the package.
|
|
5191
|
-
* @param {string} [versionId]
|
|
5440
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5192
5441
|
* @param {*} [options] Override http request option.
|
|
5193
5442
|
* @deprecated
|
|
5194
5443
|
* @throws {RequiredError}
|
|
@@ -5199,7 +5448,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5199
5448
|
* @summary List package notebooks (deprecated; use list-reports)
|
|
5200
5449
|
* @param {string} environmentName Name of the environment
|
|
5201
5450
|
* @param {string} packageName Name of the package
|
|
5202
|
-
* @param {string} [versionId]
|
|
5451
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5203
5452
|
* @param {*} [options] Override http request option.
|
|
5204
5453
|
* @deprecated
|
|
5205
5454
|
* @throws {RequiredError}
|
|
@@ -5217,7 +5466,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
5217
5466
|
* @param {string} packageName Name of the package
|
|
5218
5467
|
* @param {string} path Path to notebook within the package
|
|
5219
5468
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
5220
|
-
* @param {string} [versionId]
|
|
5469
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5221
5470
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
5222
5471
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
5223
5472
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
@@ -5232,7 +5481,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
5232
5481
|
* @param {string} environmentName Name of the environment
|
|
5233
5482
|
* @param {string} packageName Name of the package
|
|
5234
5483
|
* @param {string} path Path to notebook within the package.
|
|
5235
|
-
* @param {string} [versionId]
|
|
5484
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5236
5485
|
* @param {*} [options] Override http request option.
|
|
5237
5486
|
* @deprecated
|
|
5238
5487
|
* @throws {RequiredError}
|
|
@@ -5243,7 +5492,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
5243
5492
|
* @summary List package notebooks (deprecated; use list-reports)
|
|
5244
5493
|
* @param {string} environmentName Name of the environment
|
|
5245
5494
|
* @param {string} packageName Name of the package
|
|
5246
|
-
* @param {string} [versionId]
|
|
5495
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5247
5496
|
* @param {*} [options] Override http request option.
|
|
5248
5497
|
* @deprecated
|
|
5249
5498
|
* @throws {RequiredError}
|
|
@@ -5261,7 +5510,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
5261
5510
|
* @param {string} packageName Name of the package
|
|
5262
5511
|
* @param {string} path Path to notebook within the package
|
|
5263
5512
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
5264
|
-
* @param {string} [versionId]
|
|
5513
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5265
5514
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
5266
5515
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
5267
5516
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
@@ -5276,7 +5525,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
5276
5525
|
* @param {string} environmentName Name of the environment
|
|
5277
5526
|
* @param {string} packageName Name of the package
|
|
5278
5527
|
* @param {string} path Path to notebook within the package.
|
|
5279
|
-
* @param {string} [versionId]
|
|
5528
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5280
5529
|
* @param {*} [options] Override http request option.
|
|
5281
5530
|
* @deprecated
|
|
5282
5531
|
* @throws {RequiredError}
|
|
@@ -5287,7 +5536,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
5287
5536
|
* @summary List package notebooks (deprecated; use list-reports)
|
|
5288
5537
|
* @param {string} environmentName Name of the environment
|
|
5289
5538
|
* @param {string} packageName Name of the package
|
|
5290
|
-
* @param {string} [versionId]
|
|
5539
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5291
5540
|
* @param {*} [options] Override http request option.
|
|
5292
5541
|
* @deprecated
|
|
5293
5542
|
* @throws {RequiredError}
|
|
@@ -5305,7 +5554,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
5305
5554
|
* @param {string} packageName Name of the package
|
|
5306
5555
|
* @param {string} path Path to notebook within the package
|
|
5307
5556
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
5308
|
-
* @param {string} [versionId]
|
|
5557
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5309
5558
|
* @param {string} [filterParams] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. Targets the deprecated `#(filter)` annotation path. See docs/givens.md for migration recipes. JSON-encoded filter parameter values keyed by filter name.
|
|
5310
5559
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
5311
5560
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
@@ -5320,7 +5569,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
5320
5569
|
* @param {string} environmentName Name of the environment
|
|
5321
5570
|
* @param {string} packageName Name of the package
|
|
5322
5571
|
* @param {string} path Path to notebook within the package.
|
|
5323
|
-
* @param {string} [versionId]
|
|
5572
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5324
5573
|
* @param {*} [options] Override http request option.
|
|
5325
5574
|
* @deprecated
|
|
5326
5575
|
* @throws {RequiredError}
|
|
@@ -5331,7 +5580,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
5331
5580
|
* @summary List package notebooks (deprecated; use list-reports)
|
|
5332
5581
|
* @param {string} environmentName Name of the environment
|
|
5333
5582
|
* @param {string} packageName Name of the package
|
|
5334
|
-
* @param {string} [versionId]
|
|
5583
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5335
5584
|
* @param {*} [options] Override http request option.
|
|
5336
5585
|
* @deprecated
|
|
5337
5586
|
* @throws {RequiredError}
|
|
@@ -5348,7 +5597,7 @@ export type ExecuteNotebookCellBypassFiltersEnum = typeof ExecuteNotebookCellByp
|
|
|
5348
5597
|
*/
|
|
5349
5598
|
export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5350
5599
|
/**
|
|
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.
|
|
5600
|
+
* 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
5601
|
* @summary Create a new package
|
|
5353
5602
|
* @param {string} environmentName Name of the environment
|
|
5354
5603
|
* @param {Package} _package
|
|
@@ -5357,7 +5606,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5357
5606
|
*/
|
|
5358
5607
|
createPackage: (environmentName: string, _package: Package, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5359
5608
|
/**
|
|
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.
|
|
5609
|
+
* 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
5610
|
* @summary Delete a package
|
|
5362
5611
|
* @param {string} environmentName Name of the environment
|
|
5363
5612
|
* @param {string} packageName Name of the package
|
|
@@ -5366,18 +5615,18 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5366
5615
|
*/
|
|
5367
5616
|
deletePackage: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5368
5617
|
/**
|
|
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
|
|
5618
|
+
* 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
5619
|
* @summary Get package details and metadata
|
|
5371
5620
|
* @param {string} environmentName Name of the environment
|
|
5372
5621
|
* @param {string} packageName Package name
|
|
5373
|
-
* @param {string} [versionId]
|
|
5374
|
-
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5622
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5623
|
+
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling. A published version is immutable, so it has nothing to reload: on a versioned package `reload=true` returns the version as it is, neither recompiling nor re-fetching it.
|
|
5375
5624
|
* @param {*} [options] Override http request option.
|
|
5376
5625
|
* @throws {RequiredError}
|
|
5377
5626
|
*/
|
|
5378
5627
|
getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5379
5628
|
/**
|
|
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`.
|
|
5629
|
+
* 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
5630
|
* @summary List environment packages
|
|
5382
5631
|
* @param {string} environmentName Name of the environment
|
|
5383
5632
|
* @param {*} [options] Override http request option.
|
|
@@ -5385,12 +5634,13 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5385
5634
|
*/
|
|
5386
5635
|
listPackages: (environmentName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5387
5636
|
/**
|
|
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.
|
|
5637
|
+
* 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
5638
|
* @summary Update package configuration
|
|
5390
5639
|
* @param {string} environmentName Name of the environment
|
|
5391
5640
|
* @param {string} packageName Name of the package
|
|
5392
5641
|
* @param {Package} _package
|
|
5393
5642
|
* @param {*} [options] Override http request option.
|
|
5643
|
+
* @deprecated
|
|
5394
5644
|
* @throws {RequiredError}
|
|
5395
5645
|
*/
|
|
5396
5646
|
updatePackage: (environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -5400,7 +5650,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5400
5650
|
*/
|
|
5401
5651
|
export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
5402
5652
|
/**
|
|
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.
|
|
5653
|
+
* 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
5654
|
* @summary Create a new package
|
|
5405
5655
|
* @param {string} environmentName Name of the environment
|
|
5406
5656
|
* @param {Package} _package
|
|
@@ -5409,7 +5659,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
5409
5659
|
*/
|
|
5410
5660
|
createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
5411
5661
|
/**
|
|
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.
|
|
5662
|
+
* 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
5663
|
* @summary Delete a package
|
|
5414
5664
|
* @param {string} environmentName Name of the environment
|
|
5415
5665
|
* @param {string} packageName Name of the package
|
|
@@ -5418,18 +5668,18 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
5418
5668
|
*/
|
|
5419
5669
|
deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
5420
5670
|
/**
|
|
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
|
|
5671
|
+
* 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
5672
|
* @summary Get package details and metadata
|
|
5423
5673
|
* @param {string} environmentName Name of the environment
|
|
5424
5674
|
* @param {string} packageName Package name
|
|
5425
|
-
* @param {string} [versionId]
|
|
5426
|
-
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5675
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5676
|
+
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling. A published version is immutable, so it has nothing to reload: on a versioned package `reload=true` returns the version as it is, neither recompiling nor re-fetching it.
|
|
5427
5677
|
* @param {*} [options] Override http request option.
|
|
5428
5678
|
* @throws {RequiredError}
|
|
5429
5679
|
*/
|
|
5430
5680
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
5431
5681
|
/**
|
|
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`.
|
|
5682
|
+
* 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
5683
|
* @summary List environment packages
|
|
5434
5684
|
* @param {string} environmentName Name of the environment
|
|
5435
5685
|
* @param {*} [options] Override http request option.
|
|
@@ -5437,12 +5687,13 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
5437
5687
|
*/
|
|
5438
5688
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Package>>>;
|
|
5439
5689
|
/**
|
|
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.
|
|
5690
|
+
* 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
5691
|
* @summary Update package configuration
|
|
5442
5692
|
* @param {string} environmentName Name of the environment
|
|
5443
5693
|
* @param {string} packageName Name of the package
|
|
5444
5694
|
* @param {Package} _package
|
|
5445
5695
|
* @param {*} [options] Override http request option.
|
|
5696
|
+
* @deprecated
|
|
5446
5697
|
* @throws {RequiredError}
|
|
5447
5698
|
*/
|
|
5448
5699
|
updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
@@ -5452,7 +5703,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
|
|
|
5452
5703
|
*/
|
|
5453
5704
|
export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5454
5705
|
/**
|
|
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.
|
|
5706
|
+
* 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
5707
|
* @summary Create a new package
|
|
5457
5708
|
* @param {string} environmentName Name of the environment
|
|
5458
5709
|
* @param {Package} _package
|
|
@@ -5461,7 +5712,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
5461
5712
|
*/
|
|
5462
5713
|
createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
5463
5714
|
/**
|
|
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.
|
|
5715
|
+
* 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
5716
|
* @summary Delete a package
|
|
5466
5717
|
* @param {string} environmentName Name of the environment
|
|
5467
5718
|
* @param {string} packageName Name of the package
|
|
@@ -5470,18 +5721,18 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
5470
5721
|
*/
|
|
5471
5722
|
deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
5472
5723
|
/**
|
|
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
|
|
5724
|
+
* 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
5725
|
* @summary Get package details and metadata
|
|
5475
5726
|
* @param {string} environmentName Name of the environment
|
|
5476
5727
|
* @param {string} packageName Package name
|
|
5477
|
-
* @param {string} [versionId]
|
|
5478
|
-
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5728
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5729
|
+
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling. A published version is immutable, so it has nothing to reload: on a versioned package `reload=true` returns the version as it is, neither recompiling nor re-fetching it.
|
|
5479
5730
|
* @param {*} [options] Override http request option.
|
|
5480
5731
|
* @throws {RequiredError}
|
|
5481
5732
|
*/
|
|
5482
5733
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
5483
5734
|
/**
|
|
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`.
|
|
5735
|
+
* 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
5736
|
* @summary List environment packages
|
|
5486
5737
|
* @param {string} environmentName Name of the environment
|
|
5487
5738
|
* @param {*} [options] Override http request option.
|
|
@@ -5489,12 +5740,13 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
5489
5740
|
*/
|
|
5490
5741
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Package>>;
|
|
5491
5742
|
/**
|
|
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.
|
|
5743
|
+
* 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
5744
|
* @summary Update package configuration
|
|
5494
5745
|
* @param {string} environmentName Name of the environment
|
|
5495
5746
|
* @param {string} packageName Name of the package
|
|
5496
5747
|
* @param {Package} _package
|
|
5497
5748
|
* @param {*} [options] Override http request option.
|
|
5749
|
+
* @deprecated
|
|
5498
5750
|
* @throws {RequiredError}
|
|
5499
5751
|
*/
|
|
5500
5752
|
updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
@@ -5504,7 +5756,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
|
|
|
5504
5756
|
*/
|
|
5505
5757
|
export declare class PackagesApi extends BaseAPI {
|
|
5506
5758
|
/**
|
|
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.
|
|
5759
|
+
* 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
5760
|
* @summary Create a new package
|
|
5509
5761
|
* @param {string} environmentName Name of the environment
|
|
5510
5762
|
* @param {Package} _package
|
|
@@ -5513,7 +5765,7 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
5513
5765
|
*/
|
|
5514
5766
|
createPackage(environmentName: string, _package: Package, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
5515
5767
|
/**
|
|
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.
|
|
5768
|
+
* 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
5769
|
* @summary Delete a package
|
|
5518
5770
|
* @param {string} environmentName Name of the environment
|
|
5519
5771
|
* @param {string} packageName Name of the package
|
|
@@ -5522,18 +5774,18 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
5522
5774
|
*/
|
|
5523
5775
|
deletePackage(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
5524
5776
|
/**
|
|
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
|
|
5777
|
+
* 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
5778
|
* @summary Get package details and metadata
|
|
5527
5779
|
* @param {string} environmentName Name of the environment
|
|
5528
5780
|
* @param {string} packageName Package name
|
|
5529
|
-
* @param {string} [versionId]
|
|
5530
|
-
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling.
|
|
5781
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5782
|
+
* @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: `true` and `false`. Any other value (`1`, `yes`, `TRUE`, or the parameter repeated) is refused with 400 rather than read as `false`, which would answer 200 without recompiling. A published version is immutable, so it has nothing to reload: on a versioned package `reload=true` returns the version as it is, neither recompiling nor re-fetching it.
|
|
5531
5783
|
* @param {*} [options] Override http request option.
|
|
5532
5784
|
* @throws {RequiredError}
|
|
5533
5785
|
*/
|
|
5534
5786
|
getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
5535
5787
|
/**
|
|
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`.
|
|
5788
|
+
* 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
5789
|
* @summary List environment packages
|
|
5538
5790
|
* @param {string} environmentName Name of the environment
|
|
5539
5791
|
* @param {*} [options] Override http request option.
|
|
@@ -5541,12 +5793,13 @@ export declare class PackagesApi extends BaseAPI {
|
|
|
5541
5793
|
*/
|
|
5542
5794
|
listPackages(environmentName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package[], any, {}, any>>;
|
|
5543
5795
|
/**
|
|
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.
|
|
5796
|
+
* 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
5797
|
* @summary Update package configuration
|
|
5546
5798
|
* @param {string} environmentName Name of the environment
|
|
5547
5799
|
* @param {string} packageName Name of the package
|
|
5548
5800
|
* @param {Package} _package
|
|
5549
5801
|
* @param {*} [options] Override http request option.
|
|
5802
|
+
* @deprecated
|
|
5550
5803
|
* @throws {RequiredError}
|
|
5551
5804
|
*/
|
|
5552
5805
|
updatePackage(environmentName: string, packageName: string, _package: Package, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
@@ -5701,7 +5954,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5701
5954
|
* @param {string} environmentName Name of the environment
|
|
5702
5955
|
* @param {string} packageName Name of the package
|
|
5703
5956
|
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5704
|
-
* @param {string} [versionId]
|
|
5957
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5705
5958
|
* @param {*} [options] Override http request option.
|
|
5706
5959
|
* @throws {RequiredError}
|
|
5707
5960
|
*/
|
|
@@ -5711,7 +5964,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5711
5964
|
* @summary List package reports
|
|
5712
5965
|
* @param {string} environmentName Name of the environment
|
|
5713
5966
|
* @param {string} packageName Name of the package
|
|
5714
|
-
* @param {string} [versionId]
|
|
5967
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5715
5968
|
* @param {*} [options] Override http request option.
|
|
5716
5969
|
* @throws {RequiredError}
|
|
5717
5970
|
*/
|
|
@@ -5727,7 +5980,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5727
5980
|
* @param {string} environmentName Name of the environment
|
|
5728
5981
|
* @param {string} packageName Name of the package
|
|
5729
5982
|
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5730
|
-
* @param {string} [versionId]
|
|
5983
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5731
5984
|
* @param {*} [options] Override http request option.
|
|
5732
5985
|
* @throws {RequiredError}
|
|
5733
5986
|
*/
|
|
@@ -5737,7 +5990,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5737
5990
|
* @summary List package reports
|
|
5738
5991
|
* @param {string} environmentName Name of the environment
|
|
5739
5992
|
* @param {string} packageName Name of the package
|
|
5740
|
-
* @param {string} [versionId]
|
|
5993
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5741
5994
|
* @param {*} [options] Override http request option.
|
|
5742
5995
|
* @throws {RequiredError}
|
|
5743
5996
|
*/
|
|
@@ -5753,7 +6006,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5753
6006
|
* @param {string} environmentName Name of the environment
|
|
5754
6007
|
* @param {string} packageName Name of the package
|
|
5755
6008
|
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5756
|
-
* @param {string} [versionId]
|
|
6009
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5757
6010
|
* @param {*} [options] Override http request option.
|
|
5758
6011
|
* @throws {RequiredError}
|
|
5759
6012
|
*/
|
|
@@ -5763,7 +6016,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5763
6016
|
* @summary List package reports
|
|
5764
6017
|
* @param {string} environmentName Name of the environment
|
|
5765
6018
|
* @param {string} packageName Name of the package
|
|
5766
|
-
* @param {string} [versionId]
|
|
6019
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5767
6020
|
* @param {*} [options] Override http request option.
|
|
5768
6021
|
* @throws {RequiredError}
|
|
5769
6022
|
*/
|
|
@@ -5779,7 +6032,7 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
5779
6032
|
* @param {string} environmentName Name of the environment
|
|
5780
6033
|
* @param {string} packageName Name of the package
|
|
5781
6034
|
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5782
|
-
* @param {string} [versionId]
|
|
6035
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5783
6036
|
* @param {*} [options] Override http request option.
|
|
5784
6037
|
* @throws {RequiredError}
|
|
5785
6038
|
*/
|
|
@@ -5789,7 +6042,7 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
5789
6042
|
* @summary List package reports
|
|
5790
6043
|
* @param {string} environmentName Name of the environment
|
|
5791
6044
|
* @param {string} packageName Name of the package
|
|
5792
|
-
* @param {string} [versionId]
|
|
6045
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5793
6046
|
* @param {*} [options] Override http request option.
|
|
5794
6047
|
* @throws {RequiredError}
|
|
5795
6048
|
*/
|
|
@@ -5805,19 +6058,21 @@ export declare const SkillsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
5805
6058
|
* @param {string} environmentName Name of the environment
|
|
5806
6059
|
* @param {string} packageName Name of the package
|
|
5807
6060
|
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
6061
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5808
6062
|
* @param {*} [options] Override http request option.
|
|
5809
6063
|
* @throws {RequiredError}
|
|
5810
6064
|
*/
|
|
5811
|
-
getSkill: (environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6065
|
+
getSkill: (environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5812
6066
|
/**
|
|
5813
6067
|
* 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
6068
|
* @summary List the agent skills in force for a package
|
|
5815
6069
|
* @param {string} environmentName Name of the environment
|
|
5816
6070
|
* @param {string} packageName Name of the package
|
|
6071
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5817
6072
|
* @param {*} [options] Override http request option.
|
|
5818
6073
|
* @throws {RequiredError}
|
|
5819
6074
|
*/
|
|
5820
|
-
listSkills: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6075
|
+
listSkills: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5821
6076
|
};
|
|
5822
6077
|
/**
|
|
5823
6078
|
* SkillsApi - functional programming interface
|
|
@@ -5829,19 +6084,21 @@ export declare const SkillsApiFp: (configuration?: Configuration) => {
|
|
|
5829
6084
|
* @param {string} environmentName Name of the environment
|
|
5830
6085
|
* @param {string} packageName Name of the package
|
|
5831
6086
|
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
6087
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5832
6088
|
* @param {*} [options] Override http request option.
|
|
5833
6089
|
* @throws {RequiredError}
|
|
5834
6090
|
*/
|
|
5835
|
-
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
|
|
6091
|
+
getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
|
|
5836
6092
|
/**
|
|
5837
6093
|
* 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
6094
|
* @summary List the agent skills in force for a package
|
|
5839
6095
|
* @param {string} environmentName Name of the environment
|
|
5840
6096
|
* @param {string} packageName Name of the package
|
|
6097
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5841
6098
|
* @param {*} [options] Override http request option.
|
|
5842
6099
|
* @throws {RequiredError}
|
|
5843
6100
|
*/
|
|
5844
|
-
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
|
|
6101
|
+
listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
|
|
5845
6102
|
};
|
|
5846
6103
|
/**
|
|
5847
6104
|
* SkillsApi - factory interface
|
|
@@ -5853,19 +6110,21 @@ export declare const SkillsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5853
6110
|
* @param {string} environmentName Name of the environment
|
|
5854
6111
|
* @param {string} packageName Name of the package
|
|
5855
6112
|
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
6113
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5856
6114
|
* @param {*} [options] Override http request option.
|
|
5857
6115
|
* @throws {RequiredError}
|
|
5858
6116
|
*/
|
|
5859
|
-
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
|
|
6117
|
+
getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
|
|
5860
6118
|
/**
|
|
5861
6119
|
* 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
6120
|
* @summary List the agent skills in force for a package
|
|
5863
6121
|
* @param {string} environmentName Name of the environment
|
|
5864
6122
|
* @param {string} packageName Name of the package
|
|
6123
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5865
6124
|
* @param {*} [options] Override http request option.
|
|
5866
6125
|
* @throws {RequiredError}
|
|
5867
6126
|
*/
|
|
5868
|
-
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
|
|
6127
|
+
listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
|
|
5869
6128
|
};
|
|
5870
6129
|
/**
|
|
5871
6130
|
* SkillsApi - object-oriented interface
|
|
@@ -5877,19 +6136,21 @@ export declare class SkillsApi extends BaseAPI {
|
|
|
5877
6136
|
* @param {string} environmentName Name of the environment
|
|
5878
6137
|
* @param {string} packageName Name of the package
|
|
5879
6138
|
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
6139
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5880
6140
|
* @param {*} [options] Override http request option.
|
|
5881
6141
|
* @throws {RequiredError}
|
|
5882
6142
|
*/
|
|
5883
|
-
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
|
|
6143
|
+
getSkill(environmentName: string, packageName: string, skillName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
|
|
5884
6144
|
/**
|
|
5885
6145
|
* 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
6146
|
* @summary List the agent skills in force for a package
|
|
5887
6147
|
* @param {string} environmentName Name of the environment
|
|
5888
6148
|
* @param {string} packageName Name of the package
|
|
6149
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
5889
6150
|
* @param {*} [options] Override http request option.
|
|
5890
6151
|
* @throws {RequiredError}
|
|
5891
6152
|
*/
|
|
5892
|
-
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
|
|
6153
|
+
listSkills(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
|
|
5893
6154
|
}
|
|
5894
6155
|
/**
|
|
5895
6156
|
* StorageDestinationsApi - axios parameter creator
|
|
@@ -6047,6 +6308,270 @@ export declare class StorageDestinationsApi extends BaseAPI {
|
|
|
6047
6308
|
*/
|
|
6048
6309
|
listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageTable[], any, {}, any>>;
|
|
6049
6310
|
}
|
|
6311
|
+
/**
|
|
6312
|
+
* VersionsApi - axios parameter creator
|
|
6313
|
+
*/
|
|
6314
|
+
export declare const VersionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6315
|
+
/**
|
|
6316
|
+
* 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.
|
|
6317
|
+
* @summary Delete a version
|
|
6318
|
+
* @param {string} environmentName Name of the environment
|
|
6319
|
+
* @param {string} packageName Name of the package
|
|
6320
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6321
|
+
* @param {*} [options] Override http request option.
|
|
6322
|
+
* @throws {RequiredError}
|
|
6323
|
+
*/
|
|
6324
|
+
deletePackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6325
|
+
/**
|
|
6326
|
+
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
6327
|
+
* @summary Get one published version
|
|
6328
|
+
* @param {string} environmentName Name of the environment
|
|
6329
|
+
* @param {string} packageName Name of the package
|
|
6330
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6331
|
+
* @param {*} [options] Override http request option.
|
|
6332
|
+
* @throws {RequiredError}
|
|
6333
|
+
*/
|
|
6334
|
+
getPackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6335
|
+
/**
|
|
6336
|
+
* 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.
|
|
6337
|
+
* @summary List a package\'s published versions
|
|
6338
|
+
* @param {string} environmentName Name of the environment
|
|
6339
|
+
* @param {string} packageName Name of the package
|
|
6340
|
+
* @param {*} [options] Override http request option.
|
|
6341
|
+
* @throws {RequiredError}
|
|
6342
|
+
*/
|
|
6343
|
+
listPackageVersions: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6344
|
+
/**
|
|
6345
|
+
* 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.
|
|
6346
|
+
* @summary Point the package\'s latest at a version
|
|
6347
|
+
* @param {string} environmentName Name of the environment
|
|
6348
|
+
* @param {string} packageName Name of the package
|
|
6349
|
+
* @param {PackageLatestVersion} packageLatestVersion
|
|
6350
|
+
* @param {*} [options] Override http request option.
|
|
6351
|
+
* @throws {RequiredError}
|
|
6352
|
+
*/
|
|
6353
|
+
setPackageLatestVersion: (environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6354
|
+
/**
|
|
6355
|
+
* 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.
|
|
6356
|
+
* @summary Bind a version to a build manifest
|
|
6357
|
+
* @param {string} environmentName Name of the environment
|
|
6358
|
+
* @param {string} packageName Name of the package
|
|
6359
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6360
|
+
* @param {PackageVersionManifest} packageVersionManifest
|
|
6361
|
+
* @param {*} [options] Override http request option.
|
|
6362
|
+
* @throws {RequiredError}
|
|
6363
|
+
*/
|
|
6364
|
+
setPackageVersionManifest: (environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6365
|
+
/**
|
|
6366
|
+
* 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.
|
|
6367
|
+
* @summary Archive or unarchive a version
|
|
6368
|
+
* @param {string} environmentName Name of the environment
|
|
6369
|
+
* @param {string} packageName Name of the package
|
|
6370
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6371
|
+
* @param {PackageVersionUpdate} packageVersionUpdate
|
|
6372
|
+
* @param {*} [options] Override http request option.
|
|
6373
|
+
* @throws {RequiredError}
|
|
6374
|
+
*/
|
|
6375
|
+
updatePackageVersion: (environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6376
|
+
};
|
|
6377
|
+
/**
|
|
6378
|
+
* VersionsApi - functional programming interface
|
|
6379
|
+
*/
|
|
6380
|
+
export declare const VersionsApiFp: (configuration?: Configuration) => {
|
|
6381
|
+
/**
|
|
6382
|
+
* 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.
|
|
6383
|
+
* @summary Delete a version
|
|
6384
|
+
* @param {string} environmentName Name of the environment
|
|
6385
|
+
* @param {string} packageName Name of the package
|
|
6386
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6387
|
+
* @param {*} [options] Override http request option.
|
|
6388
|
+
* @throws {RequiredError}
|
|
6389
|
+
*/
|
|
6390
|
+
deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
6391
|
+
/**
|
|
6392
|
+
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
6393
|
+
* @summary Get one published version
|
|
6394
|
+
* @param {string} environmentName Name of the environment
|
|
6395
|
+
* @param {string} packageName Name of the package
|
|
6396
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6397
|
+
* @param {*} [options] Override http request option.
|
|
6398
|
+
* @throws {RequiredError}
|
|
6399
|
+
*/
|
|
6400
|
+
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
6401
|
+
/**
|
|
6402
|
+
* 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.
|
|
6403
|
+
* @summary List a package\'s published versions
|
|
6404
|
+
* @param {string} environmentName Name of the environment
|
|
6405
|
+
* @param {string} packageName Name of the package
|
|
6406
|
+
* @param {*} [options] Override http request option.
|
|
6407
|
+
* @throws {RequiredError}
|
|
6408
|
+
*/
|
|
6409
|
+
listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PackageVersion>>>;
|
|
6410
|
+
/**
|
|
6411
|
+
* 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.
|
|
6412
|
+
* @summary Point the package\'s latest at a version
|
|
6413
|
+
* @param {string} environmentName Name of the environment
|
|
6414
|
+
* @param {string} packageName Name of the package
|
|
6415
|
+
* @param {PackageLatestVersion} packageLatestVersion
|
|
6416
|
+
* @param {*} [options] Override http request option.
|
|
6417
|
+
* @throws {RequiredError}
|
|
6418
|
+
*/
|
|
6419
|
+
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
6420
|
+
/**
|
|
6421
|
+
* 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.
|
|
6422
|
+
* @summary Bind a version to a build manifest
|
|
6423
|
+
* @param {string} environmentName Name of the environment
|
|
6424
|
+
* @param {string} packageName Name of the package
|
|
6425
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6426
|
+
* @param {PackageVersionManifest} packageVersionManifest
|
|
6427
|
+
* @param {*} [options] Override http request option.
|
|
6428
|
+
* @throws {RequiredError}
|
|
6429
|
+
*/
|
|
6430
|
+
setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
|
|
6431
|
+
/**
|
|
6432
|
+
* 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.
|
|
6433
|
+
* @summary Archive or unarchive a version
|
|
6434
|
+
* @param {string} environmentName Name of the environment
|
|
6435
|
+
* @param {string} packageName Name of the package
|
|
6436
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6437
|
+
* @param {PackageVersionUpdate} packageVersionUpdate
|
|
6438
|
+
* @param {*} [options] Override http request option.
|
|
6439
|
+
* @throws {RequiredError}
|
|
6440
|
+
*/
|
|
6441
|
+
updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
|
|
6442
|
+
};
|
|
6443
|
+
/**
|
|
6444
|
+
* VersionsApi - factory interface
|
|
6445
|
+
*/
|
|
6446
|
+
export declare const VersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6447
|
+
/**
|
|
6448
|
+
* 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.
|
|
6449
|
+
* @summary Delete a version
|
|
6450
|
+
* @param {string} environmentName Name of the environment
|
|
6451
|
+
* @param {string} packageName Name of the package
|
|
6452
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6453
|
+
* @param {*} [options] Override http request option.
|
|
6454
|
+
* @throws {RequiredError}
|
|
6455
|
+
*/
|
|
6456
|
+
deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
6457
|
+
/**
|
|
6458
|
+
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
6459
|
+
* @summary Get one published version
|
|
6460
|
+
* @param {string} environmentName Name of the environment
|
|
6461
|
+
* @param {string} packageName Name of the package
|
|
6462
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6463
|
+
* @param {*} [options] Override http request option.
|
|
6464
|
+
* @throws {RequiredError}
|
|
6465
|
+
*/
|
|
6466
|
+
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
6467
|
+
/**
|
|
6468
|
+
* 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.
|
|
6469
|
+
* @summary List a package\'s published versions
|
|
6470
|
+
* @param {string} environmentName Name of the environment
|
|
6471
|
+
* @param {string} packageName Name of the package
|
|
6472
|
+
* @param {*} [options] Override http request option.
|
|
6473
|
+
* @throws {RequiredError}
|
|
6474
|
+
*/
|
|
6475
|
+
listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PackageVersion>>;
|
|
6476
|
+
/**
|
|
6477
|
+
* 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.
|
|
6478
|
+
* @summary Point the package\'s latest at a version
|
|
6479
|
+
* @param {string} environmentName Name of the environment
|
|
6480
|
+
* @param {string} packageName Name of the package
|
|
6481
|
+
* @param {PackageLatestVersion} packageLatestVersion
|
|
6482
|
+
* @param {*} [options] Override http request option.
|
|
6483
|
+
* @throws {RequiredError}
|
|
6484
|
+
*/
|
|
6485
|
+
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
6486
|
+
/**
|
|
6487
|
+
* 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.
|
|
6488
|
+
* @summary Bind a version to a build manifest
|
|
6489
|
+
* @param {string} environmentName Name of the environment
|
|
6490
|
+
* @param {string} packageName Name of the package
|
|
6491
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6492
|
+
* @param {PackageVersionManifest} packageVersionManifest
|
|
6493
|
+
* @param {*} [options] Override http request option.
|
|
6494
|
+
* @throws {RequiredError}
|
|
6495
|
+
*/
|
|
6496
|
+
setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
|
|
6497
|
+
/**
|
|
6498
|
+
* 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.
|
|
6499
|
+
* @summary Archive or unarchive a version
|
|
6500
|
+
* @param {string} environmentName Name of the environment
|
|
6501
|
+
* @param {string} packageName Name of the package
|
|
6502
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6503
|
+
* @param {PackageVersionUpdate} packageVersionUpdate
|
|
6504
|
+
* @param {*} [options] Override http request option.
|
|
6505
|
+
* @throws {RequiredError}
|
|
6506
|
+
*/
|
|
6507
|
+
updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
|
|
6508
|
+
};
|
|
6509
|
+
/**
|
|
6510
|
+
* VersionsApi - object-oriented interface
|
|
6511
|
+
*/
|
|
6512
|
+
export declare class VersionsApi extends BaseAPI {
|
|
6513
|
+
/**
|
|
6514
|
+
* 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.
|
|
6515
|
+
* @summary Delete a version
|
|
6516
|
+
* @param {string} environmentName Name of the environment
|
|
6517
|
+
* @param {string} packageName Name of the package
|
|
6518
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6519
|
+
* @param {*} [options] Override http request option.
|
|
6520
|
+
* @throws {RequiredError}
|
|
6521
|
+
*/
|
|
6522
|
+
deletePackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
6523
|
+
/**
|
|
6524
|
+
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
6525
|
+
* @summary Get one published version
|
|
6526
|
+
* @param {string} environmentName Name of the environment
|
|
6527
|
+
* @param {string} packageName Name of the package
|
|
6528
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6529
|
+
* @param {*} [options] Override http request option.
|
|
6530
|
+
* @throws {RequiredError}
|
|
6531
|
+
*/
|
|
6532
|
+
getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
6533
|
+
/**
|
|
6534
|
+
* 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.
|
|
6535
|
+
* @summary List a package\'s published versions
|
|
6536
|
+
* @param {string} environmentName Name of the environment
|
|
6537
|
+
* @param {string} packageName Name of the package
|
|
6538
|
+
* @param {*} [options] Override http request option.
|
|
6539
|
+
* @throws {RequiredError}
|
|
6540
|
+
*/
|
|
6541
|
+
listPackageVersions(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion[], any, {}, any>>;
|
|
6542
|
+
/**
|
|
6543
|
+
* 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.
|
|
6544
|
+
* @summary Point the package\'s latest at a version
|
|
6545
|
+
* @param {string} environmentName Name of the environment
|
|
6546
|
+
* @param {string} packageName Name of the package
|
|
6547
|
+
* @param {PackageLatestVersion} packageLatestVersion
|
|
6548
|
+
* @param {*} [options] Override http request option.
|
|
6549
|
+
* @throws {RequiredError}
|
|
6550
|
+
*/
|
|
6551
|
+
setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
6552
|
+
/**
|
|
6553
|
+
* 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.
|
|
6554
|
+
* @summary Bind a version to a build manifest
|
|
6555
|
+
* @param {string} environmentName Name of the environment
|
|
6556
|
+
* @param {string} packageName Name of the package
|
|
6557
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6558
|
+
* @param {PackageVersionManifest} packageVersionManifest
|
|
6559
|
+
* @param {*} [options] Override http request option.
|
|
6560
|
+
* @throws {RequiredError}
|
|
6561
|
+
*/
|
|
6562
|
+
setPackageVersionManifest(environmentName: string, packageName: string, version: string, packageVersionManifest: PackageVersionManifest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
|
|
6563
|
+
/**
|
|
6564
|
+
* 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.
|
|
6565
|
+
* @summary Archive or unarchive a version
|
|
6566
|
+
* @param {string} environmentName Name of the environment
|
|
6567
|
+
* @param {string} packageName Name of the package
|
|
6568
|
+
* @param {string} version A published version of the package, a semantic version such as `1.2.0`. Percent-encode build metadata (`+` as `%2B`).
|
|
6569
|
+
* @param {PackageVersionUpdate} packageVersionUpdate
|
|
6570
|
+
* @param {*} [options] Override http request option.
|
|
6571
|
+
* @throws {RequiredError}
|
|
6572
|
+
*/
|
|
6573
|
+
updatePackageVersion(environmentName: string, packageName: string, version: string, packageVersionUpdate: PackageVersionUpdate, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
|
|
6574
|
+
}
|
|
6050
6575
|
/**
|
|
6051
6576
|
* WatchModeApi - axios parameter creator
|
|
6052
6577
|
*/
|
|
@@ -6077,14 +6602,15 @@ export declare const WatchModeApiAxiosParamCreator: (configuration?: Configurati
|
|
|
6077
6602
|
*/
|
|
6078
6603
|
stopWatching: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6079
6604
|
/**
|
|
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.
|
|
6605
|
+
* 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
6606
|
* @summary Stream package change events (SSE)
|
|
6082
6607
|
* @param {string} environmentName Name of the environment
|
|
6083
6608
|
* @param {string} packageName Name of the package
|
|
6609
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6084
6610
|
* @param {*} [options] Override http request option.
|
|
6085
6611
|
* @throws {RequiredError}
|
|
6086
6612
|
*/
|
|
6087
|
-
streamPackageEvents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6613
|
+
streamPackageEvents: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6088
6614
|
};
|
|
6089
6615
|
/**
|
|
6090
6616
|
* WatchModeApi - functional programming interface
|
|
@@ -6116,14 +6642,15 @@ export declare const WatchModeApiFp: (configuration?: Configuration) => {
|
|
|
6116
6642
|
*/
|
|
6117
6643
|
stopWatching(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
6118
6644
|
/**
|
|
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.
|
|
6645
|
+
* 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
6646
|
* @summary Stream package change events (SSE)
|
|
6121
6647
|
* @param {string} environmentName Name of the environment
|
|
6122
6648
|
* @param {string} packageName Name of the package
|
|
6649
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6123
6650
|
* @param {*} [options] Override http request option.
|
|
6124
6651
|
* @throws {RequiredError}
|
|
6125
6652
|
*/
|
|
6126
|
-
streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
6653
|
+
streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
6127
6654
|
};
|
|
6128
6655
|
/**
|
|
6129
6656
|
* WatchModeApi - factory interface
|
|
@@ -6155,14 +6682,15 @@ export declare const WatchModeApiFactory: (configuration?: Configuration, basePa
|
|
|
6155
6682
|
*/
|
|
6156
6683
|
stopWatching(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
6157
6684
|
/**
|
|
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.
|
|
6685
|
+
* 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
6686
|
* @summary Stream package change events (SSE)
|
|
6160
6687
|
* @param {string} environmentName Name of the environment
|
|
6161
6688
|
* @param {string} packageName Name of the package
|
|
6689
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6162
6690
|
* @param {*} [options] Override http request option.
|
|
6163
6691
|
* @throws {RequiredError}
|
|
6164
6692
|
*/
|
|
6165
|
-
streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
6693
|
+
streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
6166
6694
|
};
|
|
6167
6695
|
/**
|
|
6168
6696
|
* WatchModeApi - object-oriented interface
|
|
@@ -6194,12 +6722,13 @@ export declare class WatchModeApi extends BaseAPI {
|
|
|
6194
6722
|
*/
|
|
6195
6723
|
stopWatching(options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
|
|
6196
6724
|
/**
|
|
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.
|
|
6725
|
+
* 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
6726
|
* @summary Stream package change events (SSE)
|
|
6199
6727
|
* @param {string} environmentName Name of the environment
|
|
6200
6728
|
* @param {string} packageName Name of the package
|
|
6729
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` 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 `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
6201
6730
|
* @param {*} [options] Override http request option.
|
|
6202
6731
|
* @throws {RequiredError}
|
|
6203
6732
|
*/
|
|
6204
|
-
streamPackageEvents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<string, any, {}, any>>;
|
|
6733
|
+
streamPackageEvents(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<string, any, {}, any>>;
|
|
6205
6734
|
}
|