@malloy-publisher/sdk 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocumentStorage-DkwqA8SA.es.js → DocumentStorage-BypSIWDg.es.js} +2 -2
- package/dist/{DocumentStorage-mMn5SZ1c.cjs.js → DocumentStorage-D7yF4_T3.cjs.js} +2 -2
- package/dist/{RenderedResult-CTD2Ej2S.es.js → RenderedResult-CYyhQekT.es.js} +2 -2
- package/dist/{RenderedResult-GukOadCi.cjs.js → RenderedResult-ChkvK7b2.cjs.js} +1 -1
- package/dist/{ServerProvider-IzXlqSVe.es.js → ServerProvider-AsUiy22k.es.js} +4 -5
- package/dist/ServerProvider-CuYLH_Yi.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +19 -13
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/dist/ServerProvider-CC9ein5-.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -1504,7 +1504,7 @@ export interface GivenSuggest {
|
|
|
1504
1504
|
*/
|
|
1505
1505
|
'dimension'?: string;
|
|
1506
1506
|
/**
|
|
1507
|
-
* The givens the suggest query needs in its request to run: the ones the source it reads is scoped by (a source-level `where: … ~ $X`) or gated by (an
|
|
1507
|
+
* The givens the suggest query needs in its request to run: the ones the source it reads is scoped by (a source-level `where: … ~ $X`) or gated by (an authorize gate reading `$X`), plus, for the `query` form, the named query\'s own. A client sends the current values of exactly these, so a gated source\'s options load while the option list still does not depend on the page\'s other filters. Absent when the query needs none.
|
|
1508
1508
|
* @type {Array<string>}
|
|
1509
1509
|
* @memberof GivenSuggest
|
|
1510
1510
|
*/
|
|
@@ -2216,7 +2216,7 @@ export interface Package {
|
|
|
2216
2216
|
*/
|
|
2217
2217
|
'scope'?: PackageScopeEnum;
|
|
2218
2218
|
/**
|
|
2219
|
-
*
|
|
2219
|
+
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and within-file discovery is filtered to each model\'s `export {}` closure. Every other .malloy file still compiles for import/join resolution but is hidden. Notebooks are always listed regardless of this field. DEPRECATED for a one-file surface, still honored: a root `index.malloy` is the surface when this key is absent, and gives the same listing and the same boundary with no manifest field. A surface spanning several files is what the convention cannot express, so that use stays supported, with no replacement and no deprecation warning at load. This value MAY have been derived by the server from a root `index.malloy` rather than written by the package author, and the response does not distinguish the two — deliberately, because nothing downstream treats them differently. An explicit key always wins over the convention, and an explicit empty array means \"do not curate\" and suppresses it. A package is uncurated only when it has neither this key nor a root `index.malloy`.
|
|
2220
2220
|
* @type {Array<string>}
|
|
2221
2221
|
* @memberof Package
|
|
2222
2222
|
*/
|
|
@@ -2228,15 +2228,16 @@ export interface Package {
|
|
|
2228
2228
|
*/
|
|
2229
2229
|
'exploresWarnings'?: Array<string>;
|
|
2230
2230
|
/**
|
|
2231
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model
|
|
2231
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface withheld is listed and queryable by name again. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a dashboard held back from the listing because its entry file is not on the package\'s surface. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
2232
2232
|
* @type {Array<PackageWarningsInner>}
|
|
2233
2233
|
* @memberof Package
|
|
2234
2234
|
*/
|
|
2235
2235
|
'warnings'?: Array<PackageWarningsInner>;
|
|
2236
2236
|
/**
|
|
2237
|
-
* Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and
|
|
2237
|
+
* Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and authorize-gated still answers `/compile` with the generic 404, so the exemption cannot be used to enumerate gated names. `\"all\"` decouples the axes: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. The two modes are equivalent (everything queryable) only where there is no curated surface at all, which now means no `explores` AND no root `index.malloy` — a package with that file has a surface whether or not the key is present. Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)` and `#(access_filter)`. DEPRECATED, still honored. `\"declared\"` is already the default, so the key changes nothing and a root `index.malloy` gives the same curated-and-enforced surface with no manifest field. `\"all\"` is the exception: `index.malloy` does NOT replace it, because a surface derived from one always enforces the boundary. It stays supported with no deprecation warning at load. To curate listings without refusing queries, keep both this key and an explicit `explores`.
|
|
2238
2238
|
* @type {string}
|
|
2239
2239
|
* @memberof Package
|
|
2240
|
+
* @deprecated
|
|
2240
2241
|
*/
|
|
2241
2242
|
'queryableSources'?: PackageQueryableSourcesEnum;
|
|
2242
2243
|
/**
|
|
@@ -3007,7 +3008,7 @@ export declare const Realization: {
|
|
|
3007
3008
|
};
|
|
3008
3009
|
export type Realization = typeof Realization[keyof typeof Realization];
|
|
3009
3010
|
/**
|
|
3010
|
-
* One `#@ persist` source refused at compile time, and why. Computed from the SAME tier-appropriate eligibility assert the build path itself enforces (the colocated tier\'s post-relaxation admission for a proven row-level, fully-attributed
|
|
3011
|
+
* One `#@ persist` source refused at compile time, and why. Computed from the SAME tier-appropriate eligibility assert the build path itself enforces (the colocated tier\'s post-relaxation admission for a proven row-level, fully-attributed authorize gate applies here too), so a source this reports as refused is refused for the tier it would actually build under — never the unconditional `storage=`-destination check applied to a source that declares no `storage=`. A `preaggregate`-tier entry can coexist with an entry of the same sourceID in `BuildPlan.sources` — the one tier where refused-and-present-in-sources is the correct, intended state, unlike `storage`/`colocated` where a refusal means absence from `sources`.
|
|
3011
3012
|
* @export
|
|
3012
3013
|
* @interface RefusedSource
|
|
3013
3014
|
*/
|
|
@@ -3031,13 +3032,13 @@ export interface RefusedSource {
|
|
|
3031
3032
|
*/
|
|
3032
3033
|
'modelPath'?: string;
|
|
3033
3034
|
/**
|
|
3034
|
-
* Which build path this source was evaluated against: `storage` for a source declaring `#@ persist storage=<ref>` (evaluated against the full storage-destination eligibility gate, which never admits an
|
|
3035
|
+
* Which build path this source was evaluated against: `storage` for a source declaring `#@ persist storage=<ref>` (evaluated against the full storage-destination eligibility gate, which never admits an authorize-gated source); `colocated` for a plain `#@ persist` (evaluated against the colocated gate, which admits a proven row-level, fully-attributed gate); `preaggregate` for a `#@ preaggregate` rollup (evaluated against the pre-aggregation gate, which refuses unconditionally when the rollup\'s base is authorize-gated — rollups group away the gate column, so there is no row-level admission the way colocated has).
|
|
3035
3036
|
* @type {string}
|
|
3036
3037
|
* @memberof RefusedSource
|
|
3037
3038
|
*/
|
|
3038
3039
|
'tier': RefusedSourceTierEnum;
|
|
3039
3040
|
/**
|
|
3040
|
-
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`,
|
|
3041
|
+
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), and `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is decided against the post-build captured schema, which does not exist at compile time, and `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
|
|
3041
3042
|
* @type {string}
|
|
3042
3043
|
* @memberof RefusedSource
|
|
3043
3044
|
*/
|
|
@@ -3068,7 +3069,6 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
3068
3069
|
readonly MergeKeyScopeUnresolved: "merge_key_scope_unresolved";
|
|
3069
3070
|
readonly PreaggregateOverDynamicSource: "preaggregate_over_dynamic_source";
|
|
3070
3071
|
readonly Authorize: "authorize";
|
|
3071
|
-
readonly Partition: "partition";
|
|
3072
3072
|
readonly NotDuckdbPortable: "not_duckdb_portable";
|
|
3073
3073
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
3074
3074
|
};
|
|
@@ -3380,11 +3380,17 @@ export interface Source {
|
|
|
3380
3380
|
*/
|
|
3381
3381
|
'givens'?: Array<Given>;
|
|
3382
3382
|
/**
|
|
3383
|
-
* Effective authorize
|
|
3383
|
+
* Effective `#(authorize)` expressions locking this source: a rule about the CALLER (`\'literal\' <op> $GIVEN`), or a whole-body `\"true\"`/`\"false\"` sentinel. It answers whether the caller may reach the source at all, so **a caller it does not admit is refused with HTTP 403** — not served zero rows. An empty or absent list means no lock. Reported whether the gate is declared on this source itself or carried in from elsewhere (the source it extends, a query-source base, a composite member). Where the gate registry cannot attribute an expression to a declaring source it reports `\"false\"` instead — a fail-closed placeholder, not something the author wrote, and one more reason to read this list only as \"locked\" rather than as a predicate. IMPORTANT for anything re-implementing the decision: this flat list is not a predicate you can evaluate, and it is not a count of one. A source may declare more than one gate of its OWN — repeats AND together — and the list also flattens every gate carried in, so several elements are normal; a query source over a composite reports the same authored gate twice, once from its base and once from the resolved member. Expressions from different declaring sources are likewise AND-ed rather than OR-ed. Treat the list as \"at least these constraints apply\": use it to decide THAT a source is locked, not to recompute WHETHER a given caller passes. Reading it as a pure disjunction grants where Publisher denies. Read the sentinels ELEMENT-WISE, never as a verdict on the list: a list is unlocked only when `\"true\"` is its SOLE element, because gates from different declaring sources are flattened in here and AND together, so `[\"true\", \"\'finance\' in $GROUPS\"]` is a real shape and is locked. `\"false\"` needs no such care — anywhere in the list it denies. Givens are caller-asserted, so this is a boundary only behind a trusted tier — see docs/authorize.md.
|
|
3384
3384
|
* @type {Array<string>}
|
|
3385
3385
|
* @memberof Source
|
|
3386
3386
|
*/
|
|
3387
3387
|
'authorize'?: Array<string>;
|
|
3388
|
+
/**
|
|
3389
|
+
* Effective `#(access_filter)` expressions filtering this source\'s rows: `field_path <op> $GIVEN`, grafted onto the source the query enters through. It answers which rows the caller may see, so **a caller it admits nowhere gets HTTP 200 with zero rows**, not a 403. An empty or absent list means no row filter. Do not read a 200 with zero rows as \"no filter applied\", and do not read a non-empty result as proof rows got through: an ungrouped aggregate is row-count-preserving over empty input, so `count()` returns one row reading 0 even when the filter admitted nothing. Same flattening, AND-not-OR and attribution caveats as `authorize` apply — this is a signal that the source is filtered, not a predicate to re-evaluate. There are no sentinels on this route: `true` and `false` belong to `authorize`. Givens are caller-asserted, so this is a boundary only behind a trusted tier — see docs/authorize.md.
|
|
3390
|
+
* @type {Array<string>}
|
|
3391
|
+
* @memberof Source
|
|
3392
|
+
*/
|
|
3393
|
+
'accessFilter'?: Array<string>;
|
|
3388
3394
|
}
|
|
3389
3395
|
/**
|
|
3390
3396
|
* One source that failed to materialize, and why. Kept beside `entries` rather than inside a manifest entry because a failed source names no table that exists: an entry carries a required `physicalTableName`, so putting a failure there would hand every consumer a table name it must know not to resolve.
|
|
@@ -4823,7 +4829,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
4823
4829
|
*/
|
|
4824
4830
|
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4825
4831
|
/**
|
|
4826
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4832
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4827
4833
|
* @summary List package dashboards
|
|
4828
4834
|
* @param {string} environmentName Name of the environment
|
|
4829
4835
|
* @param {string} packageName Name of the package
|
|
@@ -4850,7 +4856,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
4850
4856
|
*/
|
|
4851
4857
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
4852
4858
|
/**
|
|
4853
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4859
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4854
4860
|
* @summary List package dashboards
|
|
4855
4861
|
* @param {string} environmentName Name of the environment
|
|
4856
4862
|
* @param {string} packageName Name of the package
|
|
@@ -4877,7 +4883,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
4877
4883
|
*/
|
|
4878
4884
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
4879
4885
|
/**
|
|
4880
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4886
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4881
4887
|
* @summary List package dashboards
|
|
4882
4888
|
* @param {string} environmentName Name of the environment
|
|
4883
4889
|
* @param {string} packageName Name of the package
|
|
@@ -4907,7 +4913,7 @@ export declare class DashboardsApi extends BaseAPI {
|
|
|
4907
4913
|
*/
|
|
4908
4914
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}>>;
|
|
4909
4915
|
/**
|
|
4910
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4916
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4911
4917
|
* @summary List package dashboards
|
|
4912
4918
|
* @param {string} environmentName Name of the environment
|
|
4913
4919
|
* @param {string} packageName Name of the package
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CuYLH_Yi.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-AsUiy22k.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
i as AzureConnectionAuthTypeEnum,
|