@malloy-publisher/sdk 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{RenderedResult-DwB0-9Yx.es.js → RenderedResult-BUb2Xvr2.es.js} +34 -19
  2. package/dist/{RenderedResult-hKjFEqaN.cjs.js → RenderedResult-qnpbr4tc.cjs.js} +15 -3
  3. package/dist/{ServerProvider-CcSrGaRN.es.js → ServerProvider-C6QQVKPm.es.js} +149 -141
  4. package/dist/ServerProvider-Gj-im5VD.cjs.js +1 -0
  5. package/dist/builder/index.cjs.js +82 -82
  6. package/dist/builder/index.es.js +3242 -3188
  7. package/dist/client/api.d.ts +49 -10
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +57 -56
  10. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -5
  11. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +3 -1
  12. package/dist/components/DashboardBuilder/addTileToDocument.d.ts +14 -0
  13. package/dist/components/DashboardBuilder/catalog.d.ts +5 -1
  14. package/dist/components/DashboardBuilder/imports.d.ts +11 -12
  15. package/dist/components/DashboardBuilder/spliceDocument.d.ts +2 -0
  16. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +2 -0
  17. package/dist/components/DashboardBuilder/useTileEditing.d.ts +3 -1
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.es.js +5 -5
  20. package/dist/theme/buildVegaThemeOverride.d.ts +7 -3
  21. package/dist/{useCompiledDocument-BU6d8FPp.es.js → useCompiledDocument-0sxonf6N.es.js} +3707 -3686
  22. package/dist/{useCompiledDocument-pOg2W-Yt.cjs.js → useCompiledDocument-tBejqZ7s.cjs.js} +31 -31
  23. package/package.json +2 -1
  24. package/src/components/DashboardBuilder/AddTileDialog.tsx +16 -11
  25. package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +13 -5
  26. package/src/components/DashboardBuilder/DashboardBuilder.tsx +5 -0
  27. package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +3 -0
  28. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +3 -0
  29. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +10 -2
  30. package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +79 -3
  31. package/src/components/DashboardBuilder/EditorSurface.tsx +30 -2
  32. package/src/components/DashboardBuilder/addTile.compile.spec.ts +184 -0
  33. package/src/components/DashboardBuilder/addTileToDocument.spec.ts +58 -0
  34. package/src/components/DashboardBuilder/addTileToDocument.ts +64 -0
  35. package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +1 -0
  36. package/src/components/DashboardBuilder/catalog.spec.ts +79 -3
  37. package/src/components/DashboardBuilder/catalog.ts +23 -5
  38. package/src/components/DashboardBuilder/imports.spec.ts +56 -0
  39. package/src/components/DashboardBuilder/imports.ts +16 -13
  40. package/src/components/DashboardBuilder/preview.spec.ts +21 -0
  41. package/src/components/DashboardBuilder/preview.ts +10 -1
  42. package/src/components/DashboardBuilder/spliceDocument.spec.ts +24 -9
  43. package/src/components/DashboardBuilder/spliceDocument.ts +18 -6
  44. package/src/components/DashboardBuilder/useDashboardEditor.ts +6 -2
  45. package/src/components/DashboardBuilder/useTileEditing.ts +13 -48
  46. package/src/components/RenderedResult/RenderedResult.tsx +12 -0
  47. package/src/components/given/GivenInput.tsx +39 -16
  48. package/src/components/given/utils.spec.ts +5 -0
  49. package/src/components/given/utils.ts +1 -1
  50. package/src/theme/buildVegaThemeOverride.spec.ts +11 -1
  51. package/src/theme/buildVegaThemeOverride.ts +10 -3
  52. package/src/timezone_runs.spec.ts +64 -0
  53. package/dist/ServerProvider-Gbf1YPOP.cjs.js +0 -1
@@ -775,9 +775,13 @@ export interface DatabricksConnection {
775
775
  'setupSQL'?: string;
776
776
  }
777
777
  /**
778
- * DuckDB database connection configuration. Publisher intentionally exposes only data-source intent here. Database files, working directories, filesystem/network policy, extension loading, setup SQL, temp directories, and resource knobs are owned by Publisher so environment configs cannot widen deployment policy through low-level DuckDB settings.
778
+ * DuckDB database connection configuration. Exposes data-source intent, attached foreign databases, and optional setup SQL for initialization (e.g. ATTACH commands for external lakehouses), subject to Publisher policy (setup SQL must be enabled with PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true and is refused under EXTENSION_FETCH_POLICY=local-only).
779
779
  */
780
780
  export interface DuckdbConnection {
781
+ /**
782
+ * Optional initialization SQL script executed against the DuckDB session upon connection (e.g. ATTACH commands for external lakehouses). Multiple statements must be separated by a semicolon and newline (;\\n). Refused unless the deployment sets PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true.
783
+ */
784
+ 'setupSQL'?: string;
781
785
  'attachedDatabases'?: Array<AttachedDatabase>;
782
786
  }
783
787
  /**
@@ -1133,6 +1137,14 @@ export interface ManifestEntry {
1133
1137
  * Warehouse bytes SCANNED by the read that produced this table — the recurring cost of keeping the source materialized, and the debit against whatever materializing it saves on the read side. Bytes scanned, never bytes billed. The two differ by up to BigQuery\'s 10MB-per-query floor, and materialization refreshes are mostly small reads, so a field carrying one on some paths and the other elsewhere would be unsummable across a package\'s sources. **Null is not zero**, and which paths report a figure differs. A COLOCATED build reports one, taken from the Malloy connection\'s own statistics. A plain `storage=` build reports one when its warehouse read carried query metadata, and null otherwise. That read goes through DuckDB\'s query-passthrough rather than a Malloy connector, so the figure is read back from the warehouse\'s own accounting afterwards — which needs an identifier for the job, and obtaining one is part of how a TAGGED read is issued. An untagged read is issued the older way, which yields no such identifier, and reports null. A read whose connection cannot reach its own job records also reports null; that case is counted by `publisher_storage_build_attribution_skipped_total`. A COLOCATED incremental delta reports null because its statements do not run through a single call whose result reaches here. A delta into a `storage=` destination reports whatever its own bounded read reported: that read is issued through the same call a full build\'s is, so a tagged one is costed and an untagged one is not. A SNOWFLAKE source reports null on a delta even though its full build reports a figure — Snowflake does not return one with the read, so the full build looks it up afterwards by matching the statement text, and a delta\'s text is the bounded, projected wrapper rather than the build SQL that lookup keys on. Summing this field across refreshes therefore understates a Snowflake source; it does not mean those reads were free. A chained `storage=` build reports null because it read its parent\'s already-materialized table and touched no warehouse at all. A POSTGRES source reports null on every path: the label that makes a read reportable is BigQuery\'s, and Postgres has no per-statement tag to carry one. And a bag whose every property is unusable as a BigQuery label key renders no label, so such a read is issued the untagged way and reports null too.
1134
1138
  */
1135
1139
  'queryCostBytes'?: number | null;
1140
+ /**
1141
+ * For a source that reads another persisted source, how this table\'s rows were computed from it. `reused`: every persisted upstream was read from its already-materialized table, so the rows are a function of those snapshots and consistent with them. `recomputed`: at least one persisted upstream was recomputed from its definition and inlined into this build, because its table could not be read -- on either tier, an upstream this build neither materialized nor was handed by reference; for a colocated build, an upstream that landed in a `storage=` destination; for a `storage=` build, a source that reaches the warehouse through a non-persisted source, or whose shape does not compile in the destination. `upstreamRecomputeReason` says which. Such a table reflects the warehouse at THIS build\'s time rather than the upstream\'s snapshot, so the two can disagree when their refresh cadences differ. Not a location: it does not name the table the rows came from. Absent for a source that reads no persisted upstream, which has one way to build and no choice to report.
1142
+ */
1143
+ 'upstreamReuse'?: ManifestEntryUpstreamReuseEnum;
1144
+ /**
1145
+ * Why a persisted upstream was not read from its table, present only when `upstreamReuse` is `recomputed`: which upstream, and the compiler\'s or engine\'s own words for what could not be expressed over it, redacted against the connections involved.
1146
+ */
1147
+ 'upstreamRecomputeReason'?: string;
1136
1148
  /**
1137
1149
  * Instant up to which the materialized artifact provably reflects its sources (full build: snapshot start). The freshness age anchor: age = now - dataAsOf. NOT build-completion time.
1138
1150
  */
@@ -1159,6 +1171,11 @@ export declare const ManifestEntryOriginEnum: {
1159
1171
  readonly Preaggregate: "preaggregate";
1160
1172
  };
1161
1173
  export type ManifestEntryOriginEnum = typeof ManifestEntryOriginEnum[keyof typeof ManifestEntryOriginEnum];
1174
+ export declare const ManifestEntryUpstreamReuseEnum: {
1175
+ readonly Reused: "reused";
1176
+ readonly Recomputed: "recomputed";
1177
+ };
1178
+ export type ManifestEntryUpstreamReuseEnum = typeof ManifestEntryUpstreamReuseEnum[keyof typeof ManifestEntryUpstreamReuseEnum];
1162
1179
  export declare const ManifestEntryFreshnessFallbackEnum: {
1163
1180
  readonly Live: "live";
1164
1181
  readonly StaleOk: "stale_ok";
@@ -1500,7 +1517,7 @@ export interface Package {
1500
1517
  */
1501
1518
  'description'?: string;
1502
1519
  /**
1503
- * Package location. A LOCAL path must start with `./`, `../`, `~/`, or `/`; a `./` or `../` path resolves against the config file\'s directory, and `~/` against the home directory. Anything else is read as a remote URI (github, s3, gcs, https), so a bare name like `sales` is not local and the package is skipped with \"Invalid package path\" in the server\'s loadErrors. At boot a local package is COPIED into publisher_data/ and the copy is served, so edits to the source directory are not read; starting the server with `--watch-env <env>` mounts local packages in place (symlink) and live-reloads them instead. The mount is chosen when the environment is first loaded from config, so adding `--watch-env` to a later boot needs `--init` to re-mount a package already copied.
1520
+ * Package location. A LOCAL path must start with `./`, `../`, `~/`, or `/`; a `./` or `../` path resolves against the config file\'s directory, and `~/` against the home directory. Anything else is read as a remote URI (github, s3, gcs, https), so a bare name like `sales` is not local and the package is skipped with \"Invalid package path\" in the server\'s loadErrors. At boot a local package is COPIED into publisher_data/ and the copy is served, so edits to the source directory are not read; starting the server with `--watch-env <env>` mounts local packages in place (symlink) and live-reloads them instead. The mount is chosen when the environment is first loaded from config, so adding `--watch-env` to a later boot needs `--init` to re-mount a package already copied. On an update, a `location` equal to the one the package was installed from is a metadata update and nothing is fetched; a different one reinstalls the package from it, and an update that arrives while an install is in progress waits for it and is decided against the copy that install leaves resident. To fetch the same location again, reload the package (`GET …?reload=true`). The location a package was installed from is recorded by the server when it installs it and read back from that record; a `location` written into a package\'s own `publisher.json` is not.
1504
1521
  */
1505
1522
  'location'?: string;
1506
1523
  /**
@@ -1551,6 +1568,7 @@ export interface Package {
1551
1568
  * Server-computed, read-only: the manifest URI actually bound to the served models. Usually equals `manifestLocation`, but can differ after an in-memory auto-load following a materialization build (no URI), in which case it is null. Null whenever the package is unbound. It also diverges after a FAILED REBIND: `manifestLocation` then names the configured manifest that did not apply, while this names the manifest still bound and still served from. So a non-null value here is a live reference regardless of `manifestBindingStatus` — see that field for the invariant a caller reclaiming superseded physical tables has to hold.
1552
1569
  */
1553
1570
  'boundManifestUri'?: string | null;
1571
+ 'status'?: PackageStatus;
1554
1572
  /**
1555
1573
  * Server-computed, read-only: sources currently bound to serve from a `storage=` destination via the virtual-source transform (distinct from the same-connection manifest binding above — a storage source is read cross-connection from its destination, not substituted in the manifest). Present only when at least one source is bound. Whether a query actually routes to these tables additionally depends on `PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may be present but the serve path still runs live (see `warnings`). Like `boundManifestUri`, this describes whatever is CURRENTLY bound rather than the configured manifest: after a failed rebind it goes on listing the previously bound manifest\'s sources, which are still serving. \"Bound\" is not the same as \"serving\", and an entry with `origin: preaggregate` is where the two most often part: a rollup is listed here once its table exists, but it is only offered to a query through a composite re-exposing its base\'s name, so it does not serve when something else already claims that name. Read `origin` before treating a row as evidence that queries are being accelerated.
1556
1574
  */
@@ -1709,6 +1727,23 @@ export interface PackageMaterializationConfig {
1709
1727
  [key: string]: string;
1710
1728
  } | null;
1711
1729
  }
1730
+ /**
1731
+ * 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.
1732
+ */
1733
+ export interface PackageStatus {
1734
+ /**
1735
+ * A compiled copy of the package answers queries here now.
1736
+ */
1737
+ 'serving': boolean;
1738
+ /**
1739
+ * A load, reinstall or recompile of the package is in progress here. While true, `manifestBindingStatus` describes the copy being replaced, not the one being built.
1740
+ */
1741
+ 'loading': boolean;
1742
+ /**
1743
+ * When the in-progress load began. Present only while `loading` is true.
1744
+ */
1745
+ 'loadingSince'?: string;
1746
+ }
1712
1747
  export interface PackageStorageServeBindingsInner {
1713
1748
  /**
1714
1749
  * The materialized source served from storage. **It may name no source in any model file**, exactly as `ManifestEntry.sourceName` may: a pre-aggregation rollup is a persist source the publisher synthesized, so its name is generated. Check `origin` rather than resolving this against a package\'s models and reading a miss as corruption.
@@ -4191,7 +4226,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4191
4226
  */
4192
4227
  compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4193
4228
  /**
4194
- * 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.
4229
+ * 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.
4195
4230
  * @summary Execute Malloy query
4196
4231
  * @param {string} environmentName Name of the environment
4197
4232
  * @param {string} packageName Name of the package
@@ -4254,7 +4289,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4254
4289
  */
4255
4290
  compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
4256
4291
  /**
4257
- * 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.
4292
+ * 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.
4258
4293
  * @summary Execute Malloy query
4259
4294
  * @param {string} environmentName Name of the environment
4260
4295
  * @param {string} packageName Name of the package
@@ -4317,7 +4352,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4317
4352
  */
4318
4353
  compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
4319
4354
  /**
4320
- * 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.
4355
+ * 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.
4321
4356
  * @summary Execute Malloy query
4322
4357
  * @param {string} environmentName Name of the environment
4323
4358
  * @param {string} packageName Name of the package
@@ -4380,7 +4415,7 @@ export declare class ModelsApi extends BaseAPI {
4380
4415
  */
4381
4416
  compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}, any>>;
4382
4417
  /**
4383
- * 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.
4418
+ * 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.
4384
4419
  * @summary Execute Malloy query
4385
4420
  * @param {string} environmentName Name of the environment
4386
4421
  * @param {string} packageName Name of the package
@@ -4818,10 +4853,11 @@ export declare const PublisherApiAxiosParamCreator: (configuration?: Configurati
4818
4853
  /**
4819
4854
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
4820
4855
  * @summary Get server status and health information
4856
+ * @param {boolean} [includeLoading] Also list, in each environment\&#39;s &#x60;packages&#x60;, a package that is loading here for the first time and so cannot serve yet, as its &#x60;name&#x60; and &#x60;status&#x60; only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads &#x60;Package.status&#x60; can tell the two apart. A package being reloaded while it serves is listed either way.
4821
4857
  * @param {*} [options] Override http request option.
4822
4858
  * @throws {RequiredError}
4823
4859
  */
4824
- getStatus: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4860
+ getStatus: (includeLoading?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4825
4861
  /**
4826
4862
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
4827
4863
  * @summary Get the active instance theme
@@ -4852,10 +4888,11 @@ export declare const PublisherApiFp: (configuration?: Configuration) => {
4852
4888
  /**
4853
4889
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
4854
4890
  * @summary Get server status and health information
4891
+ * @param {boolean} [includeLoading] Also list, in each environment\&#39;s &#x60;packages&#x60;, a package that is loading here for the first time and so cannot serve yet, as its &#x60;name&#x60; and &#x60;status&#x60; only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads &#x60;Package.status&#x60; can tell the two apart. A package being reloaded while it serves is listed either way.
4855
4892
  * @param {*} [options] Override http request option.
4856
4893
  * @throws {RequiredError}
4857
4894
  */
4858
- getStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatus>>;
4895
+ getStatus(includeLoading?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatus>>;
4859
4896
  /**
4860
4897
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
4861
4898
  * @summary Get the active instance theme
@@ -4886,10 +4923,11 @@ export declare const PublisherApiFactory: (configuration?: Configuration, basePa
4886
4923
  /**
4887
4924
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
4888
4925
  * @summary Get server status and health information
4926
+ * @param {boolean} [includeLoading] Also list, in each environment\&#39;s &#x60;packages&#x60;, a package that is loading here for the first time and so cannot serve yet, as its &#x60;name&#x60; and &#x60;status&#x60; only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads &#x60;Package.status&#x60; can tell the two apart. A package being reloaded while it serves is listed either way.
4889
4927
  * @param {*} [options] Override http request option.
4890
4928
  * @throws {RequiredError}
4891
4929
  */
4892
- getStatus(options?: RawAxiosRequestConfig): AxiosPromise<ServerStatus>;
4930
+ getStatus(includeLoading?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ServerStatus>;
4893
4931
  /**
4894
4932
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
4895
4933
  * @summary Get the active instance theme
@@ -4920,10 +4958,11 @@ export declare class PublisherApi extends BaseAPI {
4920
4958
  /**
4921
4959
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
4922
4960
  * @summary Get server status and health information
4961
+ * @param {boolean} [includeLoading] Also list, in each environment\&#39;s &#x60;packages&#x60;, a package that is loading here for the first time and so cannot serve yet, as its &#x60;name&#x60; and &#x60;status&#x60; only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads &#x60;Package.status&#x60; can tell the two apart. A package being reloaded while it serves is listed either way.
4923
4962
  * @param {*} [options] Override http request option.
4924
4963
  * @throws {RequiredError}
4925
4964
  */
4926
- getStatus(options?: RawAxiosRequestConfig): Promise< AxiosResponse<ServerStatus, any, {}, any>>;
4965
+ getStatus(includeLoading?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ServerStatus, any, {}, any>>;
4927
4966
  /**
4928
4967
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
4929
4968
  * @summary Get the active instance theme
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Gbf1YPOP.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;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.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;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.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;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.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;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.RawNotebookFormatEnum=e.RawNotebookFormatEnum;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.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Gj-im5VD.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;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.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;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.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;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.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;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.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;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.RawNotebookFormatEnum=e.RawNotebookFormatEnum;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.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
@@ -1,4 +1,4 @@
1
- import { A as e, a as n, C as o, b as i, c as t, d as r, e as p, f as u, g as m, h as A, i as E, j as c, k as l, l as d, m as C, n as y, o as b, p as P, D as F, q as g, r as S, s as k, t as h, u as M, v as x, w as D, x as T, y as v, z as R, B as f, E as N, F as z, G as I, H as K, I as Q, J as W, K as B, L, M as O, N as w, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as na, a2 as oa, a3 as ia, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as da, ae as Ca, af as ya, ag as ba, ah as Pa, ai as Fa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as xa, ap as Da, aq as Ta, ar as va, as as Ra, at as fa, au as Na, av as za, aw as Ia, ax as Ka, ay as Qa, az as Wa, aA as Ba, aB as La, aC as Oa, aD as wa, aE as qa, aF as Ga, aG as ja, aH as Ha, aI as Ja, aJ as Ua, aK as Va, aL as Xa } from "../ServerProvider-CcSrGaRN.es.js";
1
+ import { A as e, a as n, C as o, b as i, c as t, d as r, e as p, f as u, g as m, h as A, i as E, j as c, k as l, l as d, m as C, n as y, o as b, p as P, D as F, q as g, r as S, s as k, t as h, u as M, v as x, w as D, x as T, y as v, z as R, B as f, E as N, F as z, G as I, H as K, I as Q, J as W, K as B, L, M as O, N as w, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as na, a2 as oa, a3 as ia, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as da, ae as Ca, af as ya, ag as ba, ah as Pa, ai as Fa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as xa, ap as Da, aq as Ta, ar as va, as as Ra, at as fa, au as Na, av as za, aw as Ia, ax as Ka, ay as Qa, az as Wa, aA as Ba, aB as La, aC as Oa, aD as wa, aE as qa, aF as Ga, aG as ja, aH as Ha, aI as Ja, aJ as Ua, aK as Va, aL as Xa, aM as Ya } from "../ServerProvider-C6QQVKPm.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  n as AzureConnectionAuthTypeEnum,
@@ -47,59 +47,60 @@ export {
47
47
  J as ManifestEntryFreshnessFallbackEnum,
48
48
  U as ManifestEntryOriginEnum,
49
49
  V as ManifestEntryRefreshEnum,
50
- X as MaterializationActionActionEnum,
51
- Y as MaterializationStatus,
52
- Z as MaterializationsApi,
53
- _ as MaterializationsApiAxiosParamCreator,
54
- $ as MaterializationsApiFactory,
55
- aa as MaterializationsApiFp,
56
- sa as ModelsApi,
57
- ea as ModelsApiAxiosParamCreator,
58
- na as ModelsApiFactory,
59
- oa as ModelsApiFp,
60
- ia as NotebookCellKindEnum,
61
- ta as NotebookCellResultKindEnum,
62
- ra as NotebookCellResultTypeEnum,
63
- pa as NotebookCellTypeEnum,
64
- ua as NotebooksApi,
65
- ma as NotebooksApiAxiosParamCreator,
66
- Aa as NotebooksApiFactory,
67
- Ea as NotebooksApiFp,
68
- ca as PackageEmbeddingIndexReasonEnum,
69
- la as PackageEmbeddingIndexStageEnum,
70
- da as PackageEmbeddingIndexStatusEnum,
71
- Ca as PackageManifestBindingStatusEnum,
72
- ya as PackageQueryableSourcesEnum,
73
- ba as PackageScopeEnum,
74
- Pa as PackageStorageServeBindingsInnerOriginEnum,
75
- Fa as PackageWarningsInnerSeverityEnum,
76
- ga as PackagesApi,
77
- Sa as PackagesApiAxiosParamCreator,
78
- ka as PackagesApiFactory,
79
- ha as PackagesApiFp,
80
- Ma as PersistSourcePlanOriginEnum,
81
- xa as PostgresConnectionSslmodeEnum,
82
- Da as PublisherApi,
83
- Ta as PublisherApiAxiosParamCreator,
84
- va as PublisherApiFactory,
85
- Ra as PublisherApiFp,
86
- fa as QueryClass,
87
- Na as QueryResultQueryRowLimitSourceEnum,
88
- za as QueryResultServedFromEnum,
89
- Ia as RawNotebookFormatEnum,
90
- Ka as Realization,
91
- Qa as RefusedSourceReasonEnum,
92
- Wa as RefusedSourceTierEnum,
93
- Ba as RunContextTriggerEnum,
94
- La as S3ConnectionProviderEnum,
95
- Oa as ServerProvider,
96
- wa as ServerStatusOperationalStateEnum,
97
- qa as ThemeDefaultModeEnum,
98
- Ga as WatchModeApi,
99
- ja as WatchModeApiAxiosParamCreator,
100
- Ha as WatchModeApiFactory,
101
- Ja as WatchModeApiFp,
102
- Ua as globalQueryClient,
103
- Va as usePublisherTheme,
104
- Xa as useServer
50
+ X as ManifestEntryUpstreamReuseEnum,
51
+ Y as MaterializationActionActionEnum,
52
+ Z as MaterializationStatus,
53
+ _ as MaterializationsApi,
54
+ $ as MaterializationsApiAxiosParamCreator,
55
+ aa as MaterializationsApiFactory,
56
+ sa as MaterializationsApiFp,
57
+ ea as ModelsApi,
58
+ na as ModelsApiAxiosParamCreator,
59
+ oa as ModelsApiFactory,
60
+ ia as ModelsApiFp,
61
+ ta as NotebookCellKindEnum,
62
+ ra as NotebookCellResultKindEnum,
63
+ pa as NotebookCellResultTypeEnum,
64
+ ua as NotebookCellTypeEnum,
65
+ ma as NotebooksApi,
66
+ Aa as NotebooksApiAxiosParamCreator,
67
+ Ea as NotebooksApiFactory,
68
+ ca as NotebooksApiFp,
69
+ la as PackageEmbeddingIndexReasonEnum,
70
+ da as PackageEmbeddingIndexStageEnum,
71
+ Ca as PackageEmbeddingIndexStatusEnum,
72
+ ya as PackageManifestBindingStatusEnum,
73
+ ba as PackageQueryableSourcesEnum,
74
+ Pa as PackageScopeEnum,
75
+ Fa as PackageStorageServeBindingsInnerOriginEnum,
76
+ ga as PackageWarningsInnerSeverityEnum,
77
+ Sa as PackagesApi,
78
+ ka as PackagesApiAxiosParamCreator,
79
+ ha as PackagesApiFactory,
80
+ Ma as PackagesApiFp,
81
+ xa as PersistSourcePlanOriginEnum,
82
+ Da as PostgresConnectionSslmodeEnum,
83
+ Ta as PublisherApi,
84
+ va as PublisherApiAxiosParamCreator,
85
+ Ra as PublisherApiFactory,
86
+ fa as PublisherApiFp,
87
+ Na as QueryClass,
88
+ za as QueryResultQueryRowLimitSourceEnum,
89
+ Ia as QueryResultServedFromEnum,
90
+ Ka as RawNotebookFormatEnum,
91
+ Qa as Realization,
92
+ Wa as RefusedSourceReasonEnum,
93
+ Ba as RefusedSourceTierEnum,
94
+ La as RunContextTriggerEnum,
95
+ Oa as S3ConnectionProviderEnum,
96
+ wa as ServerProvider,
97
+ qa as ServerStatusOperationalStateEnum,
98
+ Ga as ThemeDefaultModeEnum,
99
+ ja as WatchModeApi,
100
+ Ha as WatchModeApiAxiosParamCreator,
101
+ Ja as WatchModeApiFactory,
102
+ Ua as WatchModeApiFp,
103
+ Va as globalQueryClient,
104
+ Xa as usePublisherTheme,
105
+ Ya as useServer
105
106
  };
@@ -9,16 +9,19 @@ import { DashboardDocument } from './document';
9
9
  * a tile that does not resolve — which is why saving needs no compile step
10
10
  * beyond the reader's own round-trip.
11
11
  *
12
- * Every source the package publishes is offered. A tile's view is declared in
13
- * an extension of its model source, so a source the file cannot see yet is
14
- * imported by name when the tile is added (`withSource`); one the file already
15
- * reaches, by name or through a whole-file import of its model, is left alone.
12
+ * Every source a model of the package exports is offered. A tile's view is
13
+ * declared in an extension of its model source, so a source the file cannot see
14
+ * yet is imported by name when the tile is added (`withSource`); one the file
15
+ * already reaches, by name or through a whole-file import of an exporter, is
16
+ * left alone.
16
17
  */
17
18
  export interface NewTile {
18
19
  /** The model source the view lives on. */
19
20
  base: string;
20
- /** The model that declares it, for the import a source the file cannot see yet needs. */
21
+ /** The model that exports it, for the import a source the file cannot see yet needs. */
21
22
  modelPath: string;
23
+ /** Every model that exports it; absent when only `modelPath` does. */
24
+ exporters?: string[];
22
25
  /** The view, as the catalog names it. */
23
26
  view: string;
24
27
  label?: string;
@@ -148,6 +148,8 @@ export interface DashboardBuilderProps {
148
148
  modelPath?: string;
149
149
  /** The document is held as text, which the server reads by its tags rather than its folder: the tag always carries `kind=`. */
150
150
  explicitKind?: boolean;
151
+ /** Set for a document held as text: the sources it sees without an `import`. A tile on one of them adds no import. */
152
+ visibleSources?: readonly string[];
151
153
  /**
152
154
  * Why "Add filter" is off, or absent when it is on. A document kept as bare
153
155
  * text has no `given:` of its own to write, so only the model's givens can
@@ -162,4 +164,4 @@ export interface DashboardBuilderProps {
162
164
  /** Leave the builder, opted into: draws Close, which asks first when edits are unsaved. */
163
165
  onExit?: () => void;
164
166
  }
165
- export declare function DashboardBuilder({ source, document, onSave, onChange, onDirtyChange, onExit, renderTile, controls, givens, catalog, toolbar, dashboards, onEvent, conversion, savesTo, saveLabel, replaces, modelPath, explicitKind, addFilterDisabledReason, }: DashboardBuilderProps): import("react/jsx-runtime").JSX.Element;
167
+ export declare function DashboardBuilder({ source, document, onSave, onChange, onDirtyChange, onExit, renderTile, controls, givens, catalog, toolbar, dashboards, onEvent, conversion, savesTo, saveLabel, replaces, modelPath, explicitKind, visibleSources, addFilterDisabledReason, }: DashboardBuilderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { NewTile } from './AddTileDialog';
2
+ import { DashboardDocument } from './document';
3
+ /** Where a tile is added and what the document is: the parts of an add that are not the tile. */
4
+ export interface AddTileContext {
5
+ /** The document's file within the package, which a tile's import is relative to. */
6
+ modelPath: string | undefined;
7
+ /** The document is held as text: it has no `import`, so a tile's source is the run model's and nothing is imported. */
8
+ textHeld: boolean;
9
+ notebook: boolean;
10
+ /** Where the tile lands; undefined appends. */
11
+ insertAt?: number;
12
+ }
13
+ /** A tile from the picker, added to a draft: on the extension of its source, or a new one. */
14
+ export declare function addTileToDocument(draft: DashboardDocument, tile: NewTile, { modelPath, textHeld, notebook, insertAt }: AddTileContext): void;
@@ -31,8 +31,12 @@ export interface CatalogView {
31
31
  }
32
32
  export interface CatalogSource {
33
33
  name: string;
34
- /** The model that declares it, which is what a preview runs against. */
34
+ /** The model that exports it, which its import names. */
35
35
  modelPath: string;
36
+ /** Every model that exports it: a whole-file import of any of them carries the source. Absent from a hand-built catalog, where `modelPath` is the only one. */
37
+ exporters?: string[];
38
+ /** Every model that lists it, imported or exported: what a document extending that model can name without an import. */
39
+ visibleIn?: string[];
36
40
  description?: string;
37
41
  views: CatalogView[];
38
42
  /**
@@ -2,18 +2,17 @@ import { DashboardDocument, DashboardImport } from './document';
2
2
  /** How the document at `documentPath` names the model at `modelPath`. */
3
3
  export declare function importPathOf(modelPath: string, documentPath: string): string;
4
4
  /**
5
- * Whether the file can already see `name` from `modelPath`: it extends it,
6
- * imports it by name, or imports that model whole. A whole-file import brings
7
- * every source the model exports, and naming one of them again would declare
8
- * it twice. A source the file sees only through another model that re-exports
9
- * it is not followed: that needs the catalog to say which model declares each
10
- * source, and the compile check on save catches the duplicate.
5
+ * Whether the file can already see `name`: it extends it, imports it by name,
6
+ * or imports a model that exports it whole. A whole-file import brings every
7
+ * source the model exports, and naming one again would declare it twice.
8
+ * `exporters` is every model that exports `name`, `[modelPath]` when the
9
+ * catalog names one.
11
10
  */
12
- export declare function reaches(document: Pick<DashboardDocument, "imports" | "sources">, name: string, modelPath: string, documentPath?: string): boolean;
11
+ export declare function reaches(document: Pick<DashboardDocument, "imports" | "sources">, name: string, modelPath: string, documentPath?: string, exporters?: readonly string[]): boolean;
13
12
  /**
14
- * `imports` with `name` from `modelPath` brought in, by name — into that
15
- * model's existing `{ … }` import when there is one, else as a new statement
16
- * written relative to where the document sits. Unchanged when the file can
17
- * already see it.
13
+ * `imports` with `name` brought in by name, from the exporter the file already
14
+ * imports by name when there is one (else `modelPath`) — into that model's
15
+ * existing `{ … }` import, else as a new statement written relative to where
16
+ * the document sits. Unchanged when the file can already see it.
18
17
  */
19
- export declare function withSource(document: Pick<DashboardDocument, "imports" | "sources">, name: string, modelPath: string, documentPath?: string): DashboardImport[];
18
+ export declare function withSource(document: Pick<DashboardDocument, "imports" | "sources">, name: string, modelPath: string, documentPath?: string, exporters?: readonly string[]): DashboardImport[];
@@ -63,5 +63,7 @@ export interface SpliceOptions {
63
63
  modelPath?: string;
64
64
  /** Write `kind=dashboard` too, whatever the folder: for a document held as text, which the server reads by its tags and not by a folder. */
65
65
  explicitKind?: boolean;
66
+ /** The sources a document held as text sees without an `import`: its run model's. */
67
+ visibleSources?: readonly string[];
66
68
  }
67
69
  export declare function spliceDashboardDocument(sourceText: string, requested: DashboardDocument, options?: SpliceOptions): Promise<SpliceResult>;
@@ -24,4 +24,6 @@ export declare function useDashboardEditor(options: {
24
24
  modelPath?: string;
25
25
  /** The document is held as text: a kind switch always writes `kind=`. */
26
26
  explicitKind?: boolean;
27
+ /** The sources a document held as text sees without an `import`. */
28
+ visibleSources?: readonly string[];
27
29
  }): DashboardEditor;
@@ -6,12 +6,14 @@ import { Dispatch, SetStateAction } from 'react';
6
6
  * Adding, changing and removing tiles, with the add-tile picker and a tile's
7
7
  * menu that they are reached from.
8
8
  */
9
- export declare function useTileEditing({ editor, notebook, columns, modelPath, selectTile, deselectTile, }: {
9
+ export declare function useTileEditing({ editor, notebook, columns, modelPath, textHeld, selectTile, deselectTile, }: {
10
10
  editor: DashboardEditor;
11
11
  notebook: boolean;
12
12
  columns: number;
13
13
  /** The document's file within the package, which a tile's import is relative to. */
14
14
  modelPath: string | undefined;
15
+ /** The document is held as text: it has no `import`, so a tile's source is the run model's and nothing is imported. */
16
+ textHeld: boolean;
15
17
  selectTile: (index: number) => void;
16
18
  deselectTile: () => void;
17
19
  }): {