@malloy-publisher/sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/README.md +22 -9
  2. package/dist/DocumentStorageProvider-CyOJ0hqf.es.js +24443 -0
  3. package/dist/DocumentStorageProvider-DGPQEd_l.cjs.js +134 -0
  4. package/dist/RenderedResult-BnPzJ9Jf.es.js +549 -0
  5. package/dist/RenderedResult-Dp22kZsQ.cjs.js +115 -0
  6. package/dist/{ServerProvider-DSK9rfSY.es.js → ServerProvider-BWOEKg0O.es.js} +1256 -1318
  7. package/dist/ServerProvider-Cc489A3f.cjs.js +1 -0
  8. package/dist/builder/index.cjs.js +105 -0
  9. package/dist/builder/index.d.ts +2 -0
  10. package/dist/builder/index.es.js +9482 -0
  11. package/dist/builder-entry.d.ts +8 -0
  12. package/dist/client/api.d.ts +100 -42
  13. package/dist/client/index.cjs.js +1 -1
  14. package/dist/client/index.es.js +1 -1
  15. package/dist/components/AppDialog.d.ts +30 -0
  16. package/dist/components/BackLink.d.ts +32 -0
  17. package/dist/components/Dashboard/Dashboard.d.ts +19 -14
  18. package/dist/components/Dashboard/DashboardBar.d.ts +21 -0
  19. package/dist/components/Dashboard/DashboardGrid.d.ts +67 -0
  20. package/dist/components/Dashboard/DashboardTile.d.ts +6 -1
  21. package/dist/components/Dashboard/ExploreDialog.d.ts +18 -0
  22. package/dist/components/Dashboard/RowsDialog.d.ts +47 -0
  23. package/dist/components/Dashboard/TileCard.d.ts +44 -0
  24. package/dist/components/Dashboard/index.d.ts +2 -0
  25. package/dist/components/Dashboard/promoteMeasureRow.d.ts +7 -3
  26. package/dist/components/Dashboard/telemetry.d.ts +48 -0
  27. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +35 -0
  28. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +31 -0
  29. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +118 -0
  30. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +30 -0
  31. package/dist/components/DashboardBuilder/DiffDialog.d.ts +15 -0
  32. package/dist/components/DashboardBuilder/DrillDialog.d.ts +15 -0
  33. package/dist/components/DashboardBuilder/FilterDialog.d.ts +54 -0
  34. package/dist/components/DashboardBuilder/FilterStrip.d.ts +17 -0
  35. package/dist/components/DashboardBuilder/SettingsPopover.d.ts +20 -0
  36. package/dist/components/DashboardBuilder/TileFrame.d.ts +42 -0
  37. package/dist/components/DashboardBuilder/TileMenu.d.ts +24 -0
  38. package/dist/components/DashboardBuilder/catalog.d.ts +62 -0
  39. package/dist/components/DashboardBuilder/controls.d.ts +157 -0
  40. package/dist/components/DashboardBuilder/diff.d.ts +35 -0
  41. package/dist/components/DashboardBuilder/document.d.ts +218 -0
  42. package/dist/components/DashboardBuilder/layout.d.ts +71 -0
  43. package/dist/components/DashboardBuilder/malloyText.d.ts +45 -0
  44. package/dist/components/DashboardBuilder/newDashboard.d.ts +17 -0
  45. package/dist/components/DashboardBuilder/preview.d.ts +60 -0
  46. package/dist/components/DashboardBuilder/readDocument.d.ts +106 -0
  47. package/dist/components/DashboardBuilder/sortable.d.ts +51 -0
  48. package/dist/components/DashboardBuilder/spliceDocument.d.ts +53 -0
  49. package/dist/components/DashboardBuilder/testing/fixtures.d.ts +10 -0
  50. package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +22 -0
  51. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +63 -0
  52. package/dist/components/DashboardBuilder/useDraft.d.ts +13 -0
  53. package/dist/components/DashboardBuilder/useFilterForm.d.ts +65 -0
  54. package/dist/components/DashboardBuilder/useTileReorder.d.ts +22 -0
  55. package/dist/components/DashboardBuilder/useTileResize.d.ts +29 -0
  56. package/dist/components/DocumentStorage/DocumentStorageProvider.d.ts +7 -0
  57. package/dist/components/DocumentStorage/index.d.ts +1 -1
  58. package/dist/components/FloatingIconButton.d.ts +16 -0
  59. package/dist/components/ItemRow.d.ts +38 -0
  60. package/dist/components/Materializations/MaterializationDetailDialog.d.ts +1 -2
  61. package/dist/components/Materializations/MaterializationRunsList.d.ts +1 -5
  62. package/dist/components/Materializations/Materializations.d.ts +7 -3
  63. package/dist/components/Materializations/ScopeButton.d.ts +18 -0
  64. package/dist/components/Materializations/SectionLabel.d.ts +7 -4
  65. package/dist/components/Materializations/TriggerLabel.d.ts +14 -0
  66. package/dist/components/Materializations/index.d.ts +0 -1
  67. package/dist/components/Package/ContentTypeIcon.d.ts +3 -5
  68. package/dist/components/Package/NewDashboardDialog.d.ts +18 -0
  69. package/dist/components/Package/index.d.ts +0 -1
  70. package/dist/components/PackageSection.d.ts +23 -0
  71. package/dist/components/Prose.d.ts +46 -0
  72. package/dist/components/RenderedResult/ResultPanel.d.ts +30 -0
  73. package/dist/components/RenderedResult/index.d.ts +1 -0
  74. package/dist/components/buttons.d.ts +53 -0
  75. package/dist/components/drill/index.d.ts +1 -1
  76. package/dist/components/drill/resolveDrill.d.ts +22 -0
  77. package/dist/components/drill/useDrill.d.ts +11 -2
  78. package/dist/components/index.d.ts +6 -0
  79. package/dist/components/styles.d.ts +49 -44
  80. package/dist/hooks/index.d.ts +2 -0
  81. package/dist/hooks/useCrudMutation.d.ts +42 -0
  82. package/dist/hooks/useDocumentControls.d.ts +70 -0
  83. package/dist/hooks/useQueryResult.d.ts +40 -0
  84. package/dist/index.cjs.js +22 -273
  85. package/dist/index.d.ts +1 -0
  86. package/dist/index.es.js +16888 -44451
  87. package/dist/telemetry/consoleEvents.d.ts +60 -0
  88. package/dist/utils/malloyLiteral.d.ts +11 -0
  89. package/dist/utils/sha256.d.ts +2 -0
  90. package/package.json +24 -9
  91. package/src/builder-entry.ts +55 -0
  92. package/src/components/AppDialog.tsx +115 -0
  93. package/src/components/BackLink.tsx +83 -0
  94. package/src/components/Connections/AddConnectionDialog.tsx +50 -70
  95. package/src/components/Connections/DeleteConnectionDialog.tsx +23 -50
  96. package/src/components/Connections/EditConnectionDialog.tsx +54 -73
  97. package/src/components/Dashboard/Dashboard.spec.tsx +7 -10
  98. package/src/components/Dashboard/Dashboard.tsx +165 -175
  99. package/src/components/Dashboard/DashboardBar.tsx +88 -0
  100. package/src/components/Dashboard/DashboardGrid.tsx +124 -0
  101. package/src/components/Dashboard/DashboardTile.spec.tsx +30 -6
  102. package/src/components/Dashboard/DashboardTile.tsx +66 -123
  103. package/src/components/Dashboard/ExploreDialog.tsx +84 -0
  104. package/src/components/Dashboard/RowsDialog.spec.ts +42 -0
  105. package/src/components/Dashboard/RowsDialog.tsx +234 -0
  106. package/src/components/Dashboard/TileCard.tsx +120 -0
  107. package/src/components/Dashboard/index.ts +2 -0
  108. package/src/components/Dashboard/promoteMeasureRow.spec.ts +70 -0
  109. package/src/components/Dashboard/promoteMeasureRow.ts +33 -2
  110. package/src/components/Dashboard/telemetry.ts +51 -0
  111. package/src/components/Dashboard/tileGridColumn.spec.ts +1 -1
  112. package/src/components/DashboardBuilder/AddTileDialog.tsx +247 -0
  113. package/src/components/DashboardBuilder/BuilderToolbar.tsx +162 -0
  114. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +852 -0
  115. package/src/components/DashboardBuilder/DashboardBuilder.tsx +666 -0
  116. package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +163 -0
  117. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +188 -0
  118. package/src/components/DashboardBuilder/DashboardEditor.tsx +567 -0
  119. package/src/components/DashboardBuilder/DiffDialog.tsx +122 -0
  120. package/src/components/DashboardBuilder/DrillDialog.tsx +269 -0
  121. package/src/components/DashboardBuilder/FilterDialog.tsx +562 -0
  122. package/src/components/DashboardBuilder/FilterStrip.tsx +126 -0
  123. package/src/components/DashboardBuilder/SettingsPopover.tsx +168 -0
  124. package/src/components/DashboardBuilder/TileFrame.tsx +380 -0
  125. package/src/components/DashboardBuilder/TileMenu.tsx +188 -0
  126. package/src/components/DashboardBuilder/catalog.spec.ts +215 -0
  127. package/src/components/DashboardBuilder/catalog.ts +225 -0
  128. package/src/components/DashboardBuilder/controls.spec.ts +243 -0
  129. package/src/components/DashboardBuilder/controls.ts +398 -0
  130. package/src/components/DashboardBuilder/diff.spec.ts +44 -0
  131. package/src/components/DashboardBuilder/diff.ts +93 -0
  132. package/src/components/DashboardBuilder/document.ts +209 -0
  133. package/src/components/DashboardBuilder/keepRowStructure.spec.ts +84 -0
  134. package/src/components/DashboardBuilder/layout.ts +143 -0
  135. package/src/components/DashboardBuilder/malloyText.spec.ts +84 -0
  136. package/src/components/DashboardBuilder/malloyText.ts +151 -0
  137. package/src/components/DashboardBuilder/moveIntoGap.spec.ts +90 -0
  138. package/src/components/DashboardBuilder/newDashboard.spec.ts +40 -0
  139. package/src/components/DashboardBuilder/newDashboard.ts +48 -0
  140. package/src/components/DashboardBuilder/preview.spec.ts +149 -0
  141. package/src/components/DashboardBuilder/preview.ts +172 -0
  142. package/src/components/DashboardBuilder/readDocument.spec.ts +375 -0
  143. package/src/components/DashboardBuilder/readDocument.ts +467 -0
  144. package/src/components/DashboardBuilder/sortable.tsx +151 -0
  145. package/src/components/DashboardBuilder/spliceDocument.spec.ts +1161 -0
  146. package/src/components/DashboardBuilder/spliceDocument.ts +1135 -0
  147. package/src/components/DashboardBuilder/testing/fixtures.ts +48 -0
  148. package/src/components/DashboardBuilder/useBuilderShortcuts.ts +88 -0
  149. package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +311 -0
  150. package/src/components/DashboardBuilder/useDashboardEditor.ts +201 -0
  151. package/src/components/DashboardBuilder/useDraft.ts +43 -0
  152. package/src/components/DashboardBuilder/useFilterForm.spec.tsx +144 -0
  153. package/src/components/DashboardBuilder/useFilterForm.ts +352 -0
  154. package/src/components/DashboardBuilder/useTileReorder.spec.tsx +97 -0
  155. package/src/components/DashboardBuilder/useTileReorder.ts +115 -0
  156. package/src/components/DashboardBuilder/useTileResize.spec.tsx +121 -0
  157. package/src/components/DashboardBuilder/useTileResize.ts +110 -0
  158. package/src/components/DashboardBuilder/withGaps.spec.ts +96 -0
  159. package/src/components/DocumentStorage/DocumentStorageProvider.tsx +12 -0
  160. package/src/components/DocumentStorage/index.ts +1 -0
  161. package/src/components/Environment/About.tsx +16 -62
  162. package/src/components/Environment/AddPackageDialog.tsx +85 -154
  163. package/src/components/Environment/Connections.tsx +125 -205
  164. package/src/components/Environment/DeletePackageDialog.tsx +32 -77
  165. package/src/components/Environment/EditPackageDialog.tsx +46 -58
  166. package/src/components/Environment/Environment.tsx +34 -36
  167. package/src/components/Environment/Packages.tsx +63 -128
  168. package/src/components/FloatingIconButton.tsx +41 -0
  169. package/src/components/Home/AddEnvironmentDialog.tsx +47 -70
  170. package/src/components/Home/DeleteEnvironmentDialog.tsx +32 -77
  171. package/src/components/Home/EditEnvironmentDialog.tsx +47 -61
  172. package/src/components/Home/Home.tsx +101 -214
  173. package/src/components/ItemRow.tsx +165 -0
  174. package/src/components/Materializations/CreateMaterializationDialog.tsx +34 -51
  175. package/src/components/Materializations/DeleteMaterializationDialog.tsx +31 -53
  176. package/src/components/Materializations/MaterializationDetailDialog.tsx +60 -69
  177. package/src/components/Materializations/MaterializationRunsList.tsx +29 -42
  178. package/src/components/Materializations/Materializations.tsx +137 -140
  179. package/src/components/Materializations/ScopeButton.tsx +85 -0
  180. package/src/components/Materializations/SectionLabel.tsx +7 -4
  181. package/src/components/Materializations/SetScheduleDialog.tsx +48 -89
  182. package/src/components/Materializations/TriggerLabel.tsx +36 -0
  183. package/src/components/Materializations/cron.spec.ts +113 -0
  184. package/src/components/Materializations/index.ts +0 -1
  185. package/src/components/Materializations/utils.spec.ts +182 -0
  186. package/src/components/Model/Model.tsx +6 -23
  187. package/src/components/Model/ModelCell.tsx +33 -72
  188. package/src/components/Notebook/Notebook.tsx +25 -88
  189. package/src/components/Notebook/NotebookCell.tsx +35 -183
  190. package/src/components/Package/ContentTypeIcon.spec.ts +22 -37
  191. package/src/components/Package/ContentTypeIcon.tsx +10 -12
  192. package/src/components/Package/NewDashboardDialog.spec.tsx +129 -0
  193. package/src/components/Package/NewDashboardDialog.tsx +265 -0
  194. package/src/components/Package/Package.tsx +179 -238
  195. package/src/components/Package/index.ts +0 -1
  196. package/src/components/PackageSection.tsx +85 -0
  197. package/src/components/Prose.spec.tsx +85 -0
  198. package/src/components/Prose.tsx +179 -0
  199. package/src/components/QueryResult/QueryResult.tsx +15 -43
  200. package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +198 -0
  201. package/src/components/RenderedResult/RenderedResult.tsx +22 -8
  202. package/src/components/RenderedResult/ResultContainer.tsx +4 -12
  203. package/src/components/RenderedResult/ResultPanel.spec.tsx +49 -0
  204. package/src/components/RenderedResult/ResultPanel.tsx +73 -0
  205. package/src/components/RenderedResult/index.ts +1 -0
  206. package/src/components/ResultsDialog.tsx +8 -32
  207. package/src/components/buttons.tsx +114 -0
  208. package/src/components/designSystem.spec.tsx +316 -0
  209. package/src/components/drill/index.ts +1 -0
  210. package/src/components/drill/resolveDrill.ts +22 -1
  211. package/src/components/drill/useDrill.spec.tsx +94 -0
  212. package/src/components/drill/useDrill.tsx +52 -12
  213. package/src/components/given/GivensPanel.tsx +1 -1
  214. package/src/components/given/paramCodec.spec.ts +1 -1
  215. package/src/components/index.ts +16 -0
  216. package/src/components/styles.ts +49 -122
  217. package/src/hooks/index.ts +13 -0
  218. package/src/hooks/useCrudMutation.spec.tsx +119 -0
  219. package/src/hooks/useCrudMutation.tsx +85 -0
  220. package/src/hooks/useDocumentControls.ts +170 -0
  221. package/src/hooks/useQueryResult.ts +82 -0
  222. package/src/index.ts +9 -0
  223. package/src/telemetry/consoleEvents.spec.ts +130 -0
  224. package/src/telemetry/consoleEvents.ts +124 -0
  225. package/src/theme/defaults.ts +34 -23
  226. package/src/theme/resolveTheme.spec.ts +9 -4
  227. package/src/theme/resolveTheme.ts +12 -8
  228. package/src/utils/malloyLiteral.spec.ts +43 -0
  229. package/src/utils/malloyLiteral.ts +76 -0
  230. package/src/utils/sha256.ts +13 -0
  231. package/test/README.md +1 -1
  232. package/test/serverProvider.tsx +5 -2
  233. package/vite.config.ts +5 -0
  234. package/dist/ServerProvider-CGnLjzag.cjs.js +0 -1
  235. package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +0 -14
  236. package/dist/components/Materializations/EnvironmentMaterializations.d.ts +0 -7
  237. package/dist/components/Materializations/ScheduleCard.d.ts +0 -20
  238. package/dist/components/Materializations/TriggerChip.d.ts +0 -10
  239. package/dist/components/Package/Models.d.ts +0 -6
  240. package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +0 -179
  241. package/src/components/Materializations/EnvironmentMaterializations.tsx +0 -267
  242. package/src/components/Materializations/ScheduleCard.tsx +0 -231
  243. package/src/components/Materializations/TriggerChip.tsx +0 -44
  244. package/src/components/Package/Models.tsx +0 -71
@@ -0,0 +1,8 @@
1
+ export { DashboardBuilder } from './components/DashboardBuilder/DashboardBuilder';
2
+ export type { BuilderGiven, DashboardBuilderProps, } from './components/DashboardBuilder/DashboardBuilder';
3
+ export { DashboardEditor, type DashboardEditorProps, } from './components/DashboardBuilder/DashboardEditor';
4
+ export type { DashboardDocument, DashboardTile, LocalGiven, } from './components/DashboardBuilder/document';
5
+ export { readDashboardDocument, readFailed, type ReadResult, } from './components/DashboardBuilder/readDocument';
6
+ export { spliceDashboardDocument, spliceFailed, type SpliceResult, } from './components/DashboardBuilder/spliceDocument';
7
+ export { buildCatalog, type PackageCatalog, } from './components/DashboardBuilder/catalog';
8
+ export type { DashboardEvent, DashboardEventHandler, } from './components/Dashboard/telemetry';
@@ -1952,6 +1952,56 @@ export interface ModelError {
1952
1952
  */
1953
1953
  'reason'?: string;
1954
1954
  }
1955
+ /**
1956
+ * The text to write into a dashboard file
1957
+ * @export
1958
+ * @interface ModelSourceWriteRequest
1959
+ */
1960
+ export interface ModelSourceWriteRequest {
1961
+ /**
1962
+ * The whole file\'s Malloy text
1963
+ * @type {string}
1964
+ * @memberof ModelSourceWriteRequest
1965
+ */
1966
+ 'source': string;
1967
+ /**
1968
+ * SHA-256 (hex) of the text the caller opened. Refused with 409 when the file on disk no longer hashes to it. Omit to create the file, which is then refused with 409 if it already exists.
1969
+ * @type {string}
1970
+ * @memberof ModelSourceWriteRequest
1971
+ */
1972
+ 'expectedHash'?: string;
1973
+ }
1974
+ /**
1975
+ * What a dashboard write left in the package
1976
+ * @export
1977
+ * @interface ModelSourceWriteResult
1978
+ */
1979
+ export interface ModelSourceWriteResult {
1980
+ /**
1981
+ * Resource path to the model file that was written
1982
+ * @type {string}
1983
+ * @memberof ModelSourceWriteResult
1984
+ */
1985
+ 'resource'?: string;
1986
+ /**
1987
+ * The file written, relative to the package
1988
+ * @type {string}
1989
+ * @memberof ModelSourceWriteResult
1990
+ */
1991
+ 'path': string;
1992
+ /**
1993
+ * SHA-256 (hex) of the text as written; the next write\'s `expectedHash`
1994
+ * @type {string}
1995
+ * @memberof ModelSourceWriteResult
1996
+ */
1997
+ 'contentHash': string;
1998
+ /**
1999
+ * True when the file did not exist before
2000
+ * @type {boolean}
2001
+ * @memberof ModelSourceWriteResult
2002
+ */
2003
+ 'created'?: boolean;
2004
+ }
1955
2005
  /**
1956
2006
  * MotherDuck database connection configuration
1957
2007
  * @export
@@ -2588,7 +2638,7 @@ export interface PostgresConnection {
2588
2638
  */
2589
2639
  'connectionString'?: string;
2590
2640
  /**
2591
- * TLS mode for a connection reached through a `proxy` (SSH bastion). Because the driver connects to a local tunnel endpoint, the cert hostname can\'t be checked from the tunnel address alone; use `verify-full` to check it against the real host. `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `verify-full` validates the chain AND the hostname against the real host (verified via SNI through the tunnel; requires the target\'s CA to be trusted by Node\'s bundled CA roots or NODE_EXTRA_CA_CERTS), `no-verify` encrypts without verifying, and `disable` uses no TLS. Note `verify-full` trusts a broader CA set than `verify-ca` here — ambient roots plus NODE_EXTRA_CA_CERTS, rather than the pinned NODE_EXTRA_CA_CERTS bundle that `verify-ca` uses — so it is intentionally not a strict superset; it adds the hostname check without narrowing CA trust. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. Only valid on a proxied connection — a direct connection uses the deployment PGSSLMODE and rejects this field.
2641
+ * TLS mode for a connection reached through a `proxy` (SSH bastion). Because the driver connects to a local tunnel endpoint, the cert hostname can\'t be checked from the tunnel address alone; use `verify-full` to check it against the real host. `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `verify-full` validates the chain AND the hostname against the real host (verified via SNI through the tunnel; requires the target\'s CA to be trusted by Node\'s bundled CA roots or NODE_EXTRA_CA_CERTS), `no-verify` encrypts without verifying, and `disable` uses no TLS. A `storage=` build of a proxied source applies the same mode through its own tunnel, `verify-full` included. Note `verify-full` trusts a broader CA set than `verify-ca` here — ambient roots plus NODE_EXTRA_CA_CERTS, rather than the pinned NODE_EXTRA_CA_CERTS bundle that `verify-ca` uses — so it is intentionally not a strict superset; it adds the hostname check without narrowing CA trust. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. Only valid on a proxied connection — a direct connection uses the deployment PGSSLMODE and rejects this field.
2592
2642
  * @type {string}
2593
2643
  * @memberof PostgresConnection
2594
2644
  */
@@ -5177,16 +5227,6 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
5177
5227
  * @throws {RequiredError}
5178
5228
  */
5179
5229
  getMaterialization: (environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5180
- /**
5181
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
5182
- * @summary List all materializations in an environment
5183
- * @param {string} environmentName Name of the environment
5184
- * @param {number} [limit] Maximum number of materializations to return
5185
- * @param {number} [offset] Number of materializations to skip
5186
- * @param {*} [options] Override http request option.
5187
- * @throws {RequiredError}
5188
- */
5189
- listEnvironmentMaterializations: (environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5190
5230
  /**
5191
5231
  * Returns the materialization history for the package, ordered by most recent first.
5192
5232
  * @summary List materializations for a package
@@ -5246,16 +5286,6 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
5246
5286
  * @throws {RequiredError}
5247
5287
  */
5248
5288
  getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
5249
- /**
5250
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
5251
- * @summary List all materializations in an environment
5252
- * @param {string} environmentName Name of the environment
5253
- * @param {number} [limit] Maximum number of materializations to return
5254
- * @param {number} [offset] Number of materializations to skip
5255
- * @param {*} [options] Override http request option.
5256
- * @throws {RequiredError}
5257
- */
5258
- listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
5259
5289
  /**
5260
5290
  * Returns the materialization history for the package, ordered by most recent first.
5261
5291
  * @summary List materializations for a package
@@ -5315,16 +5345,6 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
5315
5345
  * @throws {RequiredError}
5316
5346
  */
5317
5347
  getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
5318
- /**
5319
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
5320
- * @summary List all materializations in an environment
5321
- * @param {string} environmentName Name of the environment
5322
- * @param {number} [limit] Maximum number of materializations to return
5323
- * @param {number} [offset] Number of materializations to skip
5324
- * @param {*} [options] Override http request option.
5325
- * @throws {RequiredError}
5326
- */
5327
- listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
5328
5348
  /**
5329
5349
  * Returns the materialization history for the package, ordered by most recent first.
5330
5350
  * @summary List materializations for a package
@@ -5389,17 +5409,6 @@ export declare class MaterializationsApi extends BaseAPI {
5389
5409
  * @memberof MaterializationsApi
5390
5410
  */
5391
5411
  getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}>>;
5392
- /**
5393
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
5394
- * @summary List all materializations in an environment
5395
- * @param {string} environmentName Name of the environment
5396
- * @param {number} [limit] Maximum number of materializations to return
5397
- * @param {number} [offset] Number of materializations to skip
5398
- * @param {*} [options] Override http request option.
5399
- * @throws {RequiredError}
5400
- * @memberof MaterializationsApi
5401
- */
5402
- listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}>>;
5403
5412
  /**
5404
5413
  * Returns the materialization history for the package, ordered by most recent first.
5405
5414
  * @summary List materializations for a package
@@ -5480,6 +5489,18 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
5480
5489
  * @throws {RequiredError}
5481
5490
  */
5482
5491
  listModels: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5492
+ /**
5493
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
5494
+ * @summary Write a dashboard file into the package
5495
+ * @param {string} environmentName Name of the environment
5496
+ * @param {string} packageName Name of the package
5497
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
5498
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5499
+ * @param {string} [versionId] Version identifier for the package
5500
+ * @param {*} [options] Override http request option.
5501
+ * @throws {RequiredError}
5502
+ */
5503
+ updateModelSource: (environmentName: string, packageName: string, path: string, modelSourceWriteRequest: ModelSourceWriteRequest, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5483
5504
  };
5484
5505
  /**
5485
5506
  * ModelsApi - functional programming interface
@@ -5529,6 +5550,18 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
5529
5550
  * @throws {RequiredError}
5530
5551
  */
5531
5552
  listModels(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
5553
+ /**
5554
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
5555
+ * @summary Write a dashboard file into the package
5556
+ * @param {string} environmentName Name of the environment
5557
+ * @param {string} packageName Name of the package
5558
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
5559
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5560
+ * @param {string} [versionId] Version identifier for the package
5561
+ * @param {*} [options] Override http request option.
5562
+ * @throws {RequiredError}
5563
+ */
5564
+ updateModelSource(environmentName: string, packageName: string, path: string, modelSourceWriteRequest: ModelSourceWriteRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelSourceWriteResult>>;
5532
5565
  };
5533
5566
  /**
5534
5567
  * ModelsApi - factory interface
@@ -5578,6 +5611,18 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
5578
5611
  * @throws {RequiredError}
5579
5612
  */
5580
5613
  listModels(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
5614
+ /**
5615
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
5616
+ * @summary Write a dashboard file into the package
5617
+ * @param {string} environmentName Name of the environment
5618
+ * @param {string} packageName Name of the package
5619
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
5620
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5621
+ * @param {string} [versionId] Version identifier for the package
5622
+ * @param {*} [options] Override http request option.
5623
+ * @throws {RequiredError}
5624
+ */
5625
+ updateModelSource(environmentName: string, packageName: string, path: string, modelSourceWriteRequest: ModelSourceWriteRequest, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ModelSourceWriteResult>;
5581
5626
  };
5582
5627
  /**
5583
5628
  * ModelsApi - object-oriented interface
@@ -5633,6 +5678,19 @@ export declare class ModelsApi extends BaseAPI {
5633
5678
  * @memberof ModelsApi
5634
5679
  */
5635
5680
  listModels(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}>>;
5681
+ /**
5682
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
5683
+ * @summary Write a dashboard file into the package
5684
+ * @param {string} environmentName Name of the environment
5685
+ * @param {string} packageName Name of the package
5686
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
5687
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
5688
+ * @param {string} [versionId] Version identifier for the package
5689
+ * @param {*} [options] Override http request option.
5690
+ * @throws {RequiredError}
5691
+ * @memberof ModelsApi
5692
+ */
5693
+ updateModelSource(environmentName: string, packageName: string, path: string, modelSourceWriteRequest: ModelSourceWriteRequest, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ModelSourceWriteResult, any, {}>>;
5636
5694
  }
5637
5695
  /**
5638
5696
  * NotebooksApi - axios parameter creator
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CGnLjzag.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Cc489A3f.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;
@@ -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-DSK9rfSY.es.js";
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-BWOEKg0O.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  i as AzureConnectionAuthTypeEnum,
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Every dialog in the Console, in one shape.
4
+ *
5
+ * A dialog is a page that arrived in a box: it should be set like one. The
6
+ * title is the page's heading at the same size, weight and tracking; a line
7
+ * under it says what the dialog is for, where a page's description would be;
8
+ * the body is one column with one gap; and the actions sit at the bottom right
9
+ * with the same padding every time — a text Cancel and a filled confirm, the
10
+ * two roles `buttons.tsx` names.
11
+ *
12
+ * Three dialogs stay off it deliberately, and each needs something this does
13
+ * not have: `ModelExplorerDialog` is `fullScreen`, and `RowsDialog` and
14
+ * `MaterializationDetailDialog` title themselves with a node rather than a
15
+ * string. Widening this for three callers would cost more than it saves —
16
+ * but a fourth exception is a reason to widen it, not to hand-roll a fourth.
17
+ */
18
+ export declare function AppDialog({ open, onClose, title, description, maxWidth, showClose, actions, children, }: {
19
+ open: boolean;
20
+ onClose: () => void;
21
+ title: string;
22
+ /** What the dialog is for, in a line. The page's description, in a box. */
23
+ description?: React.ReactNode;
24
+ maxWidth?: "xs" | "sm" | "md" | "lg" | false;
25
+ /** An X in the title, for a dialog whose actions do not include a way out. */
26
+ showClose?: boolean;
27
+ /** The buttons, in order. Cancel first, the thing it does last. */
28
+ actions?: React.ReactNode;
29
+ children: React.ReactNode;
30
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,32 @@
1
+ import * as React from "react";
2
+ /**
3
+ * The way up, at the top of a page: an arrow and the name of the thing you came
4
+ * from.
5
+ *
6
+ * Every page that has a parent shows one, in this one shape. The breadcrumb in
7
+ * the app's header bar is a different affordance and does not replace it: it is
8
+ * chrome the eye skips, it cannot say what the parent IS (it renders a model
9
+ * path as one opaque chip), and it is absent on the pages the app shell does
10
+ * not parameterise.
11
+ *
12
+ * The click is the host's, so a Console navigates its router and an embedder
13
+ * does whatever it does. Give it an `href` as well wherever the parent has a
14
+ * URL: that is what makes it a link rather than a widget that looks like one —
15
+ * focusable from the keyboard, announced as a link, and shown in the status bar
16
+ * on hover. Without an `href` it still has to be reachable, so it renders as a
17
+ * button rather than as an anchor with nothing to point at, which is focusable
18
+ * by neither keyboard nor assistive technology.
19
+ *
20
+ * A PLAIN left click is the host's and the default is suppressed, or the page
21
+ * would navigate twice — once through the host's router and once as a document
22
+ * load, which is the slower of the two and undoes the first. A middle-click or
23
+ * a modified click is deliberately left to the browser: that is what opens the
24
+ * parent in a new tab, and it is the reason for the `href` in the first place.
25
+ */
26
+ export declare function BackLink({ label, href, onClick, }: {
27
+ /** The parent, named: "Back to {label}". */
28
+ label: string;
29
+ /** The parent's URL, when it has one. */
30
+ href?: string;
31
+ onClick: (event: React.MouseEvent) => void;
32
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,6 @@
1
1
  import { DrillNavigation } from '../drill';
2
+ import { DashboardEventHandler } from './telemetry';
3
+ export { DEFAULT_COLUMNS, tileGridColumn } from './DashboardGrid';
2
4
  export interface DashboardProps {
3
5
  /** `publisher://environments/{env}/packages/{pkg}`, optionally `?versionId=`. */
4
6
  resourceUri: string;
@@ -37,20 +39,9 @@ export interface DashboardProps {
37
39
  */
38
40
  height?: number;
39
41
  maxResultSize?: number;
42
+ /** The rows shown and tiles explored, for the host to log or count. */
43
+ onEvent?: DashboardEventHandler;
40
44
  }
41
- /**
42
- * The `grid-column` one tile occupies: its `# colspan`, and a `# break` forcing
43
- * it to start a fresh row.
44
- *
45
- * Clamped to the grid width the same way @malloydata/render clamps it, so one
46
- * view laid out as a composite tile and as a `nest:` under `# dashboard` lands
47
- * in the same place. A break is `1 / span N` — an explicit start line, which is
48
- * what pushes the tile down to the next row; the renderer's grid does the same.
49
- */
50
- export declare function tileGridColumn(tile: {
51
- colspan?: number;
52
- break?: boolean;
53
- }, columns: number): string;
54
45
  /**
55
46
  * A Malloyyo-style dashboard: a control row over one or more query results,
56
47
  * declared entirely by tags in a package's `dashboards/*.malloy`.
@@ -60,5 +51,19 @@ export declare function tileGridColumn(tile: {
60
51
  * Console and an external React app render the same component and differ only
61
52
  * in what they do with `onNavigate` and `onGivensChange`.
62
53
  */
63
- export declare function Dashboard({ resourceUri, dashboard, givens, onGivensChange, onNavigate, height, maxResultSize, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
54
+ export declare function Dashboard({ resourceUri, dashboard, givens, onGivensChange, onNavigate, height, maxResultSize, onEvent, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
55
+ /**
56
+ * The prose header itself, over the two fields it actually needs.
57
+ *
58
+ * Separate from {@link DashboardHeader} so the BUILDER can render the same
59
+ * header over a `DashboardDocument` — which carries `title` and `description`
60
+ * but is not a manifest. Same argument as {@link tileGridColumn}: what the
61
+ * builder shows a author is the thing a reader will see, and one component is
62
+ * what stops the two drifting. A builder that restated this markdown block
63
+ * would be one edit away from showing a different header than it writes.
64
+ */
65
+ export declare function DashboardProse({ title, description, }: {
66
+ title: string;
67
+ description?: string;
68
+ }): import("react/jsx-runtime").JSX.Element;
64
69
  export default Dashboard;
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * The bar above a dashboard, in the one shape both the reader's view and the
4
+ * builder use.
5
+ *
6
+ * Reading and editing are the same page in two states, so the bar that carries
7
+ * the switch is the same bar: same height, same ground, same edge, and the
8
+ * same left and right margins as the dashboard under it — the state on the
9
+ * left, the way out of it on the right. The fixed height is the load-bearing
10
+ * part: it is what makes switching modes move nothing on the page.
11
+ *
12
+ * No horizontal padding of its own: it is laid out inside whatever insets the
13
+ * dashboard, so the left item lines up with the title below it and the right
14
+ * item with the right edge of the grid.
15
+ */
16
+ export declare function DashboardBar({ left, children, }: {
17
+ /** The page's state, at the left edge: a chip, or nothing while reading. */
18
+ left?: ReactNode;
19
+ /** What can be done about it, at the right edge. */
20
+ children?: ReactNode;
21
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,67 @@
1
+ import { ReactNode } from 'react';
2
+ /** Grid width when the dashboard declares no `# dashboard { columns=N }`. */
3
+ export declare const DEFAULT_COLUMNS = 2;
4
+ /**
5
+ * The gutter between tiles, in px.
6
+ *
7
+ * A number rather than a `gap: 2` spacing unit because the BUILDER has to do
8
+ * arithmetic with it: turning a dragged edge into a column count means solving
9
+ * for the track width, and that needs the gutter in the same units as a
10
+ * `getBoundingClientRect`. Exported so the value the grid paints and the value
11
+ * the drag solves with cannot drift apart.
12
+ */
13
+ export declare const GRID_GAP_PX = 16;
14
+ /**
15
+ * The `grid-column` one tile occupies: its `# colspan`, and a `# break` forcing
16
+ * it to start a fresh row.
17
+ *
18
+ * Clamped to the grid width the same way @malloydata/render clamps it, so one
19
+ * view laid out as a composite tile and as a `nest:` under `# dashboard` lands
20
+ * in the same place. A break is `1 / span N` — an explicit start line, which is
21
+ * what pushes the tile down to the next row; the renderer's grid does the same.
22
+ */
23
+ export declare function tileGridColumn(tile: {
24
+ colspan?: number;
25
+ break?: boolean;
26
+ }, columns: number): string;
27
+ /** The layout a tile carries, whatever else its own shape holds. */
28
+ export interface GridTile {
29
+ colspan?: number;
30
+ break?: boolean;
31
+ }
32
+ /**
33
+ * The composite dashboard's grid: the column track, and each tile's place on
34
+ * it.
35
+ *
36
+ * Shared by the READER ({@link Dashboard}) and the BUILDER, which is the whole
37
+ * point of it being a component rather than a rule each surface applies. An
38
+ * author arranging a dashboard is arranging the thing a reader will open, so
39
+ * the two cannot be allowed to lay tiles out even slightly differently; a
40
+ * restated track without the grid item's own `display: grid` ends rows at
41
+ * ragged heights on one surface and level on the other.
42
+ *
43
+ * **Why the item is a grid and not a block.** A grid item stretches to its row,
44
+ * but a block CHILD of one does not — it keeps its content height. Results
45
+ * divide on exactly that line (see `resultSizing`): a table, a map or a
46
+ * `# big_value` sizes to its content, while a plotted chart fills whatever box
47
+ * it is handed. So a block item put a short table beside a tall chart and let
48
+ * the row end twice. Making the item a grid passes the row's height down to the
49
+ * tile, and every card in a row ends level.
50
+ *
51
+ * The tile itself is the caller's: the reader renders a `DashboardTile`, the
52
+ * builder wraps one in its selection outline. Anything this component rendered
53
+ * on their behalf would be a third opinion about what a tile looks like.
54
+ */
55
+ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, }: {
56
+ tiles: readonly T[];
57
+ /** Track count — `# dashboard { columns=N }`, or {@link DEFAULT_COLUMNS}. */
58
+ columns: number;
59
+ /**
60
+ * This tile's React key. Taken from the caller because the two surfaces
61
+ * identify a tile differently and both are right: the manifest's `tiles=[…]`
62
+ * can repeat one expression (a typo, not a request for two identical
63
+ * panels), so the reader keys on position as well.
64
+ */
65
+ keyOf: (tile: T, index: number) => string;
66
+ renderTile: (tile: T, index: number) => ReactNode;
67
+ }): import("react/jsx-runtime").JSX.Element;
@@ -35,6 +35,11 @@ export interface DashboardTileProps {
35
35
  maxResultSize?: number;
36
36
  /** Cell clicks and their affordance, for the dashboard's `# drill`. */
37
37
  drill?: DrillBinding;
38
+ /**
39
+ * Open this tile's query somewhere it can be changed. Shown as a button in
40
+ * the heading, on hover; absent, the heading has no button.
41
+ */
42
+ onExplore?: () => void;
38
43
  }
39
44
  /**
40
45
  * A composite tile's heading when the view it names carries no `# label`: the
@@ -54,4 +59,4 @@ export declare function tileTitle(tile: string): string;
54
59
  * tile: the broken one shows its error in place and the rest of the grid still
55
60
  * renders, rather than one failure blanking the page.
56
61
  */
57
- export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, label, subtitle, borderless, givens, declaredTypes, givenNames, height, maxResultSize, drill, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
62
+ export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, label, subtitle, borderless, givens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * "Explore from here": the tile's query, open in the model explorer on the
3
+ * tile's source, so the reader can change it rather than only look at it.
4
+ *
5
+ * The dashboard file is itself a model, so the explorer opens on that file:
6
+ * the tile's source is an extension declared there, and its query resolves
7
+ * as written. The model is fetched here rather than inside the explorer so
8
+ * the tile's source can be selected before it renders.
9
+ */
10
+ export declare function ExploreDialog({ tile, environmentName, packageName, versionId, modelPath, onClose, }: {
11
+ /** The tile expression to open, or undefined when closed. */
12
+ tile: string | undefined;
13
+ environmentName: string;
14
+ packageName: string;
15
+ versionId?: string;
16
+ modelPath: string;
17
+ onClose: () => void;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * The rows behind a value: "show the rows" on a cell, as one query.
3
+ *
4
+ * A grouped value is an aggregate over rows of the tile's source, and Malloy's
5
+ * `drill:` names exactly those rows: `drill: <view>.<field> = <value>` applies
6
+ * the view's own `where:` — the tile's control bindings included — and the
7
+ * clicked value's, so what comes back is the rows the number was made of.
8
+ * Measured: `where: name = …` alone failed on a view that spelled the column
9
+ * `name is products.name`, because the output name is not a source field;
10
+ * `drill:` resolves it through the view, which is where the name lives.
11
+ */
12
+ export declare const ROW_LIMIT = 200;
13
+ export interface RowsRequest {
14
+ /** The source the rows are of: the tile expression's first step. */
15
+ source: string;
16
+ /** The view the value was grouped in: the expression's last step. */
17
+ view: string;
18
+ field: string;
19
+ rawValue: unknown;
20
+ label: string;
21
+ }
22
+ /** The query the dialog runs, or undefined when the value cannot be spelled. */
23
+ export declare function rowsQuery(request: RowsRequest): string | undefined;
24
+ /**
25
+ * `overview -> revenue_trend` → its source and view; undefined for anything
26
+ * else — an inline stage has no view to drill through, a refined one carries
27
+ * filters `drill:` would not, and a longer pipeline has no one view its value
28
+ * came from.
29
+ */
30
+ export declare function stepsOf(tileExpression: string | undefined): {
31
+ source: string;
32
+ view: string;
33
+ } | undefined;
34
+ /** The source alone, for opening the explorer on it. */
35
+ export declare const sourceOf: (tileExpression: string | undefined) => string;
36
+ export declare function RowsDialog({ request, environmentName, packageName, versionId, modelPath, givens, onClose, onDone, }: {
37
+ request: RowsRequest | undefined;
38
+ environmentName: string;
39
+ packageName: string;
40
+ versionId?: string;
41
+ modelPath: string;
42
+ /** The applied control row, which the source's own `where:` may read. */
43
+ givens: Record<string, unknown>;
44
+ onClose: () => void;
45
+ /** The query's outcome and how long it took, once per request. */
46
+ onDone?: (ok: boolean, durationMs: number) => void;
47
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ /**
4
+ * The card a dashboard tile sits in, and nothing else — so the builder, which
5
+ * draws a stand-in tile when it has no server to run one, draws the same card
6
+ * the reader does rather than restating its geometry.
7
+ *
8
+ * The instance theme's border, not MUI's `divider`: the renderer card's edge is
9
+ * this same value, and a card that agrees with the theme everywhere except its
10
+ * outline still reads as a different card. Radius stays on the host's
11
+ * `shape.borderRadius`, which the renderer card is pointed at too. The
12
+ * background is `theme.tile`, the value the renderer card paints — left unset,
13
+ * on a theme whose page is also white the composite tiles lost the tint that
14
+ * separates a card from the page while the single-query form kept it.
15
+ *
16
+ * `borderless` is `# borderless` on the view: the result with no card, which
17
+ * the renderer honours by dropping background, border, radius and most padding
18
+ * on its own `.dashboard-item`. Same here, so the tag reads the same on both
19
+ * forms.
20
+ *
21
+ * `overflow: hidden` and `minWidth: 0` are load-bearing for RESIZING, not
22
+ * tidiness: this card is a grid item, and a grid item that clips gets a
23
+ * minimum width of zero instead of its content's, which is what lets it
24
+ * narrow below the chart it holds so the renderer redraws the chart to fit.
25
+ * See the `minWidth: 0` note in `DashboardGrid` for the rest of that chain.
26
+ */
27
+ export declare function TileCard({ borderless, sx, children, }: {
28
+ borderless?: boolean;
29
+ sx?: SxProps<Theme>;
30
+ children: ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ /**
33
+ * A tile's heading: its `# label`, and its `# subtitle` under it. In the
34
+ * instance theme's title colour and face, so a tile is titled the same
35
+ * whichever surface draws it.
36
+ */
37
+ export declare function TileHeading({ title, subtitle, tooltip, action, }: {
38
+ title: string;
39
+ subtitle?: string;
40
+ /** What actually ran, kept reachable without being the heading. */
41
+ tooltip?: string;
42
+ /** A control on the heading's row, hard right — the tile's Explore button. */
43
+ action?: ReactNode;
44
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,4 @@
1
1
  export { Dashboard, type DashboardProps } from './Dashboard';
2
2
  export { DashboardTile, type DashboardTileProps } from './DashboardTile';
3
+ export type { DashboardEvent, DashboardEventHandler } from './telemetry';
4
+ export { TileCard, TileHeading } from './TileCard';
@@ -1,8 +1,12 @@
1
+ interface ResultField {
2
+ kind?: string;
3
+ annotations?: Array<{
4
+ value?: string;
5
+ }>;
6
+ }
1
7
  interface ResultShape {
2
8
  schema?: {
3
- fields?: Array<{
4
- kind?: string;
5
- }>;
9
+ fields?: ResultField[];
6
10
  };
7
11
  data?: {
8
12
  kind?: string;