@malloy-publisher/sdk 0.9.0 → 0.9.2

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 (292) hide show
  1. package/dist/{Dashboard-H1kJlDFo.es.js → DashboardTile-BFcxdv7R.es.js} +15918 -17760
  2. package/dist/DashboardTile-sg8LjUk8.cjs.js +137 -0
  3. package/dist/RenderedResult-B48wAjM8.cjs.js +141 -0
  4. package/dist/{RenderedResult-BRgIgxWh.es.js → RenderedResult-CBLHr32C.es.js} +193 -183
  5. package/dist/{ServerProvider-Boxrv6Ym.es.js → ServerProvider-DCV8BUWD.es.js} +529 -521
  6. package/dist/ServerProvider-HRqT3w1C.cjs.js +1 -0
  7. package/dist/builder/index.cjs.js +146 -58
  8. package/dist/builder/index.es.js +9076 -6479
  9. package/dist/builder-entry.d.ts +4 -0
  10. package/dist/client/api.d.ts +82 -48
  11. package/dist/client/configuration.d.ts +1 -1
  12. package/dist/client/index.cjs.js +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.es.js +84 -82
  15. package/dist/components/Dashboard/Dashboard.d.ts +8 -15
  16. package/dist/components/Dashboard/DashboardGrid.d.ts +23 -6
  17. package/dist/components/Dashboard/DashboardTile.d.ts +10 -1
  18. package/dist/components/Dashboard/DashboardView.d.ts +36 -0
  19. package/dist/components/Dashboard/TileCard.d.ts +15 -4
  20. package/dist/components/Dashboard/TileFilterTag.d.ts +12 -0
  21. package/dist/components/Dashboard/index.d.ts +3 -0
  22. package/dist/components/Dashboard/telemetry.d.ts +15 -3
  23. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -1
  24. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +16 -5
  25. package/dist/components/DashboardBuilder/ChartPicker.d.ts +29 -0
  26. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +48 -21
  27. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +17 -4
  28. package/dist/components/DashboardBuilder/DiffDialog.d.ts +2 -10
  29. package/dist/components/DashboardBuilder/FilterDialog.d.ts +2 -2
  30. package/dist/components/DashboardBuilder/FilterStrip.d.ts +3 -1
  31. package/dist/components/DashboardBuilder/InlineMarkdown.d.ts +18 -0
  32. package/dist/components/DashboardBuilder/InlineText.d.ts +19 -0
  33. package/dist/components/DashboardBuilder/NotebookEditor.d.ts +15 -0
  34. package/dist/components/DashboardBuilder/SaveNotice.d.ts +27 -0
  35. package/dist/components/DashboardBuilder/SettingsPopover.d.ts +19 -7
  36. package/dist/components/DashboardBuilder/SourceViewPicker.d.ts +9 -0
  37. package/dist/components/DashboardBuilder/TextTileBody.d.ts +7 -0
  38. package/dist/components/DashboardBuilder/TileFrame.d.ts +14 -12
  39. package/dist/components/DashboardBuilder/TileMenu.d.ts +11 -3
  40. package/dist/components/DashboardBuilder/annotationText.d.ts +4 -0
  41. package/dist/components/DashboardBuilder/catalog.d.ts +4 -0
  42. package/dist/components/DashboardBuilder/changedTile.d.ts +7 -0
  43. package/dist/components/DashboardBuilder/chartLine.d.ts +33 -0
  44. package/dist/components/DashboardBuilder/controls.d.ts +2 -2
  45. package/dist/components/DashboardBuilder/document.d.ts +42 -26
  46. package/dist/components/DashboardBuilder/documentSession.d.ts +100 -0
  47. package/dist/components/DashboardBuilder/legacyNotebook.d.ts +73 -0
  48. package/dist/components/DashboardBuilder/loadMalloy.d.ts +15 -0
  49. package/dist/components/DashboardBuilder/malloyText.d.ts +45 -5
  50. package/dist/components/DashboardBuilder/malloyTree.d.ts +119 -0
  51. package/dist/components/DashboardBuilder/newDashboard.d.ts +3 -1
  52. package/dist/components/DashboardBuilder/openDraft.d.ts +10 -0
  53. package/dist/components/DashboardBuilder/preview.d.ts +24 -4
  54. package/dist/components/DashboardBuilder/readDocument.d.ts +4 -1
  55. package/dist/components/DashboardBuilder/readForEditor.d.ts +16 -0
  56. package/dist/components/DashboardBuilder/sortable.d.ts +14 -0
  57. package/dist/components/DashboardBuilder/spliceDocument.d.ts +13 -13
  58. package/dist/components/DashboardBuilder/spliceResult.d.ts +11 -0
  59. package/dist/components/DashboardBuilder/tagParse.d.ts +24 -0
  60. package/dist/components/DashboardBuilder/telemetry.d.ts +43 -0
  61. package/dist/components/DashboardBuilder/testing/fixtures.d.ts +3 -1
  62. package/dist/components/DashboardBuilder/testing/inline.d.ts +4 -0
  63. package/dist/components/DashboardBuilder/useBuilderSession.d.ts +89 -0
  64. package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +9 -6
  65. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +17 -55
  66. package/dist/components/DashboardBuilder/useDocumentEditor.d.ts +105 -0
  67. package/dist/components/DashboardBuilder/useExitGuard.d.ts +19 -0
  68. package/dist/components/DashboardBuilder/useFilterForm.d.ts +3 -3
  69. package/dist/components/DocumentCreate/canRetry.d.ts +6 -0
  70. package/dist/components/DocumentCreate/createDocument.d.ts +58 -0
  71. package/dist/components/DocumentCreate/documentPath.d.ts +10 -0
  72. package/dist/components/DocumentCreate/events.d.ts +10 -0
  73. package/dist/components/DocumentCreate/exportedSources.d.ts +7 -0
  74. package/dist/components/DocumentCreate/guards.d.ts +12 -0
  75. package/dist/components/DocumentCreate/index.d.ts +6 -0
  76. package/dist/components/DocumentCreate/newNotebook.d.ts +9 -0
  77. package/dist/components/DocumentCreate/useDocumentChoices.d.ts +32 -0
  78. package/dist/components/DocumentStorage/DocumentStorage.d.ts +2 -1
  79. package/dist/components/NarrowEditGate.d.ts +8 -0
  80. package/dist/components/Notebook/Notebook.d.ts +1 -1
  81. package/dist/components/Package/NewDocumentDialog.d.ts +33 -0
  82. package/dist/components/Package/Package.d.ts +1 -0
  83. package/dist/components/Package/documentLocation.d.ts +28 -0
  84. package/dist/components/Package/index.d.ts +4 -0
  85. package/dist/components/Package/useDocumentLocation.d.ts +12 -0
  86. package/dist/components/PackageSection.d.ts +2 -2
  87. package/dist/components/RenderedResult/RenderedResult.d.ts +2 -0
  88. package/dist/components/RenderedResult/ResultContainer.d.ts +8 -1
  89. package/dist/components/RenderedResult/ResultPanel.d.ts +3 -1
  90. package/dist/components/RenderedResult/resultSizing.d.ts +9 -1
  91. package/dist/components/ServerProvider.d.ts +2 -1
  92. package/dist/components/UnsavedChangesDialog.d.ts +9 -0
  93. package/dist/components/given/GivensPanel.d.ts +2 -2
  94. package/dist/components/index.d.ts +2 -0
  95. package/dist/hooks/index.d.ts +1 -0
  96. package/dist/hooks/useNarrowScreen.d.ts +4 -0
  97. package/dist/hooks/useQueryResult.d.ts +2 -0
  98. package/dist/hooks/useSettled.d.ts +14 -0
  99. package/dist/index.cjs.js +23 -24
  100. package/dist/index.es.js +9714 -7072
  101. package/dist/text/index.cjs.js +1 -0
  102. package/dist/text/index.d.ts +2 -0
  103. package/dist/text/index.es.js +6 -0
  104. package/dist/text-entry-BJwltZiy.cjs.js +7 -0
  105. package/dist/text-entry-CbbBcZl8.es.js +196 -0
  106. package/dist/text-entry.d.ts +2 -0
  107. package/dist/utils/clock.d.ts +2 -0
  108. package/package.json +10 -1
  109. package/src/builder-entry.ts +35 -0
  110. package/src/components/Dashboard/Dashboard.tsx +27 -278
  111. package/src/components/Dashboard/DashboardGrid.tsx +68 -7
  112. package/src/components/Dashboard/DashboardTile.spec.tsx +24 -0
  113. package/src/components/Dashboard/DashboardTile.tsx +31 -4
  114. package/src/components/Dashboard/DashboardView.spec.tsx +212 -0
  115. package/src/components/Dashboard/DashboardView.tsx +352 -0
  116. package/src/components/Dashboard/RowsDialog.tsx +1 -1
  117. package/src/components/Dashboard/TileCard.tsx +44 -10
  118. package/src/components/Dashboard/TileFilterTag.spec.tsx +73 -0
  119. package/src/components/Dashboard/TileFilterTag.tsx +78 -0
  120. package/src/components/Dashboard/defaultTileSpan.spec.ts +32 -0
  121. package/src/components/Dashboard/index.ts +3 -0
  122. package/src/components/Dashboard/telemetry.ts +16 -5
  123. package/src/components/DashboardBuilder/AddTileDialog.spec.tsx +88 -0
  124. package/src/components/DashboardBuilder/AddTileDialog.tsx +137 -111
  125. package/src/components/DashboardBuilder/BuilderToolbar.tsx +85 -27
  126. package/src/components/DashboardBuilder/ChartPicker.render.spec.tsx +25 -0
  127. package/src/components/DashboardBuilder/ChartPicker.spec.ts +77 -0
  128. package/src/components/DashboardBuilder/ChartPicker.tsx +153 -0
  129. package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +205 -0
  130. package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +192 -0
  131. package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +329 -0
  132. package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +363 -0
  133. package/src/components/DashboardBuilder/DashboardBuilder.notice.spec.tsx +194 -0
  134. package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +157 -0
  135. package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +124 -0
  136. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +103 -78
  137. package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +177 -0
  138. package/src/components/DashboardBuilder/DashboardBuilder.tsx +610 -315
  139. package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +58 -8
  140. package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +191 -0
  141. package/src/components/DashboardBuilder/DashboardEditor.filterTag.spec.tsx +162 -0
  142. package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +316 -0
  143. package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +56 -10
  144. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +5 -22
  145. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +96 -14
  146. package/src/components/DashboardBuilder/DashboardEditor.tsx +482 -332
  147. package/src/components/DashboardBuilder/DiffDialog.spec.tsx +25 -0
  148. package/src/components/DashboardBuilder/DiffDialog.tsx +5 -24
  149. package/src/components/DashboardBuilder/DrillDialog.tsx +1 -1
  150. package/src/components/DashboardBuilder/FilterDialog.tsx +10 -3
  151. package/src/components/DashboardBuilder/FilterStrip.tsx +26 -4
  152. package/src/components/DashboardBuilder/InlineMarkdown.tsx +184 -0
  153. package/src/components/DashboardBuilder/InlineText.tsx +106 -0
  154. package/src/components/DashboardBuilder/NotebookEditor.tsx +44 -0
  155. package/src/components/DashboardBuilder/SaveNotice.tsx +113 -0
  156. package/src/components/DashboardBuilder/SettingsPopover.spec.tsx +87 -0
  157. package/src/components/DashboardBuilder/SettingsPopover.tsx +225 -67
  158. package/src/components/DashboardBuilder/SourceViewPicker.tsx +122 -0
  159. package/src/components/DashboardBuilder/TextTileBody.tsx +28 -0
  160. package/src/components/DashboardBuilder/TileFrame.tsx +89 -115
  161. package/src/components/DashboardBuilder/TileMenu.tsx +168 -90
  162. package/src/components/DashboardBuilder/annotationText.spec.ts +33 -0
  163. package/src/components/DashboardBuilder/annotationText.ts +17 -0
  164. package/src/components/DashboardBuilder/artifactBlock.spec.ts +248 -0
  165. package/src/components/DashboardBuilder/artifactTagParity.spec.ts +41 -0
  166. package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +49 -0
  167. package/src/components/DashboardBuilder/catalog.spec.ts +2 -0
  168. package/src/components/DashboardBuilder/catalog.ts +61 -21
  169. package/src/components/DashboardBuilder/changedTile.spec.ts +46 -0
  170. package/src/components/DashboardBuilder/changedTile.ts +28 -0
  171. package/src/components/DashboardBuilder/chartLine.spec.ts +180 -0
  172. package/src/components/DashboardBuilder/chartLine.ts +121 -0
  173. package/src/components/DashboardBuilder/controls.spec.ts +21 -10
  174. package/src/components/DashboardBuilder/controls.ts +22 -8
  175. package/src/components/DashboardBuilder/document.ts +53 -5
  176. package/src/components/DashboardBuilder/documentSession.spec.ts +209 -0
  177. package/src/components/DashboardBuilder/documentSession.ts +257 -0
  178. package/src/components/DashboardBuilder/emptyStart.spec.ts +131 -0
  179. package/src/components/DashboardBuilder/invariants.spec.ts +6 -2
  180. package/src/components/DashboardBuilder/legacyNotebook.chart.spec.ts +77 -0
  181. package/src/components/DashboardBuilder/legacyNotebook.convert.spec.ts +630 -0
  182. package/src/components/DashboardBuilder/legacyNotebook.read.spec.ts +338 -0
  183. package/src/components/DashboardBuilder/legacyNotebook.ts +1117 -0
  184. package/src/components/DashboardBuilder/loadMalloy.spec.ts +80 -0
  185. package/src/components/DashboardBuilder/loadMalloy.ts +39 -0
  186. package/src/components/DashboardBuilder/malloyText.spec.ts +48 -0
  187. package/src/components/DashboardBuilder/malloyText.ts +181 -27
  188. package/src/components/DashboardBuilder/malloyTree.ts +155 -7
  189. package/src/components/DashboardBuilder/newDashboard.spec.ts +46 -2
  190. package/src/components/DashboardBuilder/newDashboard.ts +30 -3
  191. package/src/components/DashboardBuilder/openDraft.ts +52 -0
  192. package/src/components/DashboardBuilder/preview.shapes.spec.ts +75 -0
  193. package/src/components/DashboardBuilder/preview.spec.ts +159 -12
  194. package/src/components/DashboardBuilder/preview.ts +83 -9
  195. package/src/components/DashboardBuilder/readDocument.spec.ts +139 -27
  196. package/src/components/DashboardBuilder/readDocument.ts +130 -44
  197. package/src/components/DashboardBuilder/readForEditor.spec.ts +80 -0
  198. package/src/components/DashboardBuilder/readForEditor.ts +47 -0
  199. package/src/components/DashboardBuilder/scannerShapes.spec.ts +14 -13
  200. package/src/components/DashboardBuilder/sortable.spec.ts +65 -0
  201. package/src/components/DashboardBuilder/sortable.tsx +2 -12
  202. package/src/components/DashboardBuilder/spliceDocument.chart.spec.ts +340 -0
  203. package/src/components/DashboardBuilder/spliceDocument.imports.spec.ts +167 -0
  204. package/src/components/DashboardBuilder/spliceDocument.spec.ts +229 -94
  205. package/src/components/DashboardBuilder/spliceDocument.ts +762 -130
  206. package/src/components/DashboardBuilder/spliceResult.ts +15 -0
  207. package/src/components/DashboardBuilder/statementExtent.spec.ts +33 -30
  208. package/src/components/DashboardBuilder/tagParse.spec.ts +149 -0
  209. package/src/components/DashboardBuilder/tagParse.ts +103 -0
  210. package/src/components/DashboardBuilder/telemetry.ts +47 -0
  211. package/src/components/DashboardBuilder/testing/artifactTagParity.json +197 -0
  212. package/src/components/DashboardBuilder/testing/fixtures.ts +16 -1
  213. package/src/components/DashboardBuilder/testing/inline.ts +25 -0
  214. package/src/components/DashboardBuilder/textTiles.spec.ts +718 -0
  215. package/src/components/DashboardBuilder/useBuilderSession.spec.ts +335 -0
  216. package/src/components/DashboardBuilder/useBuilderSession.ts +292 -0
  217. package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +65 -0
  218. package/src/components/DashboardBuilder/useBuilderShortcuts.spec.tsx +60 -0
  219. package/src/components/DashboardBuilder/useBuilderShortcuts.ts +36 -10
  220. package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +16 -13
  221. package/src/components/DashboardBuilder/useDashboardEditor.ts +54 -181
  222. package/src/components/DashboardBuilder/useDocumentEditor.spec.ts +565 -0
  223. package/src/components/DashboardBuilder/useDocumentEditor.ts +399 -0
  224. package/src/components/DashboardBuilder/useExitGuard.spec.ts +159 -0
  225. package/src/components/DashboardBuilder/useExitGuard.ts +89 -0
  226. package/src/components/DashboardBuilder/useFilterForm.existing.spec.tsx +41 -0
  227. package/src/components/DashboardBuilder/useFilterForm.spec.tsx +24 -2
  228. package/src/components/DashboardBuilder/useFilterForm.ts +41 -13
  229. package/src/components/DashboardBuilder/useTileReorder.spec.tsx +28 -5
  230. package/src/components/DashboardBuilder/useTileReorder.ts +5 -7
  231. package/src/components/DocumentCreate/canRetry.spec.ts +32 -0
  232. package/src/components/DocumentCreate/canRetry.ts +19 -0
  233. package/src/components/DocumentCreate/createDocument.spec.ts +310 -0
  234. package/src/components/DocumentCreate/createDocument.ts +159 -0
  235. package/src/components/DocumentCreate/documentPath.ts +40 -0
  236. package/src/components/DocumentCreate/events.ts +15 -0
  237. package/src/components/DocumentCreate/exportedSources.ts +25 -0
  238. package/src/components/DocumentCreate/guards.ts +45 -0
  239. package/src/components/DocumentCreate/index.ts +27 -0
  240. package/src/components/DocumentCreate/newNotebook.spec.ts +156 -0
  241. package/src/components/DocumentCreate/newNotebook.ts +44 -0
  242. package/src/components/DocumentCreate/useDocumentChoices.spec.tsx +138 -0
  243. package/src/components/DocumentCreate/useDocumentChoices.ts +113 -0
  244. package/src/components/DocumentStorage/DocumentStorage.ts +2 -1
  245. package/src/components/Model/ModelExplorer.spec.tsx +2 -2
  246. package/src/components/Model/SourcesExplorer.tsx +2 -4
  247. package/src/components/NarrowEditGate.spec.tsx +73 -0
  248. package/src/components/NarrowEditGate.tsx +29 -0
  249. package/src/components/Notebook/Notebook.layout.spec.tsx +94 -0
  250. package/src/components/Notebook/Notebook.tsx +66 -27
  251. package/src/components/Package/NewDocumentDialog.spec.tsx +749 -0
  252. package/src/components/Package/NewDocumentDialog.tsx +401 -0
  253. package/src/components/Package/Package.artifacts.spec.tsx +190 -0
  254. package/src/components/Package/Package.create.spec.tsx +380 -0
  255. package/src/components/Package/Package.notebooks.spec.tsx +18 -0
  256. package/src/components/Package/Package.tsx +366 -171
  257. package/src/components/Package/documentLocation.spec.ts +81 -0
  258. package/src/components/Package/documentLocation.ts +55 -0
  259. package/src/components/Package/index.ts +13 -0
  260. package/src/components/Package/useDocumentLocation.ts +59 -0
  261. package/src/components/PackageSection.tsx +2 -2
  262. package/src/components/RenderedResult/RenderedResult.tsx +18 -1
  263. package/src/components/RenderedResult/ResultContainer.tsx +44 -11
  264. package/src/components/RenderedResult/ResultPanel.tsx +4 -0
  265. package/src/components/RenderedResult/resultSizing.spec.ts +68 -0
  266. package/src/components/RenderedResult/resultSizing.ts +14 -3
  267. package/src/components/ServerProvider.tsx +2 -1
  268. package/src/components/UnsavedChangesDialog.spec.tsx +70 -0
  269. package/src/components/UnsavedChangesDialog.tsx +49 -0
  270. package/src/components/given/GivensPanel.spec.tsx +6 -6
  271. package/src/components/given/GivensPanel.tsx +3 -3
  272. package/src/components/index.ts +2 -0
  273. package/src/hooks/index.ts +3 -0
  274. package/src/hooks/useNarrowScreen.ts +21 -0
  275. package/src/hooks/useQueryResult.ts +16 -0
  276. package/src/hooks/useSettled.spec.ts +41 -0
  277. package/src/hooks/useSettled.ts +27 -0
  278. package/src/mainEntry.spec.ts +145 -0
  279. package/src/text-entry.ts +12 -0
  280. package/src/textEntry.spec.ts +118 -0
  281. package/src/utils/clock.spec.ts +12 -0
  282. package/src/utils/clock.ts +6 -0
  283. package/vite.config.ts +4 -0
  284. package/dist/Dashboard-ChyylkTD.cjs.js +0 -136
  285. package/dist/RenderedResult-AJPMUkAD.cjs.js +0 -135
  286. package/dist/ServerProvider-CXrOKD6g.cjs.js +0 -1
  287. package/dist/components/DashboardBuilder/useTileResize.d.ts +0 -29
  288. package/dist/components/Package/NewDashboardDialog.d.ts +0 -18
  289. package/src/components/DashboardBuilder/useTileResize.spec.tsx +0 -121
  290. package/src/components/DashboardBuilder/useTileResize.ts +0 -110
  291. package/src/components/Package/NewDashboardDialog.spec.tsx +0 -129
  292. package/src/components/Package/NewDashboardDialog.tsx +0 -265
@@ -1,8 +1,12 @@
1
1
  export { DashboardBuilder } from './components/DashboardBuilder/DashboardBuilder';
2
2
  export type { BuilderGiven, DashboardBuilderProps, } from './components/DashboardBuilder/DashboardBuilder';
3
3
  export { DashboardEditor, type DashboardEditorProps, } from './components/DashboardBuilder/DashboardEditor';
4
+ export type { SaveContext, SaveHandler, } from './components/DashboardBuilder/useDocumentEditor';
4
5
  export type { DashboardDocument, DashboardTile, LocalGiven, } from './components/DashboardBuilder/document';
5
6
  export { readDashboardDocument, readFailed, type ReadResult, } from './components/DashboardBuilder/readDocument';
6
7
  export { spliceDashboardDocument, spliceFailed, type SpliceResult, } from './components/DashboardBuilder/spliceDocument';
7
8
  export { buildCatalog, type PackageCatalog, } from './components/DashboardBuilder/catalog';
8
9
  export type { DashboardEvent, DashboardEventHandler, } from './components/Dashboard/telemetry';
10
+ export { NotebookEditor, type NotebookEditorProps, } from './components/DashboardBuilder/NotebookEditor';
11
+ export type { BuilderEvent, NotebookEvent, NotebookEventHandler, } from './components/DashboardBuilder/telemetry';
12
+ export { createDocument, createRoute, documentPathFor, documentPathForTitle, locatorFor, MAX_SLUG_ATTEMPTS, newDashboardSource, newDocumentProblem, newNotebookSource, slugFor, slugOrFallback, useDocumentChoices, type CreatedDocument, type CreateDocumentOptions, type CreateTarget, type DashboardCreatedEvent, type DocumentChoice, type DocumentCreatedEvent, type NewDocument, type NotebookCreatedEvent, } from './components/DocumentCreate';
@@ -349,7 +349,7 @@ export interface CompiledModel {
349
349
  */
350
350
  'givens'?: Array<Given>;
351
351
  /**
352
- * The model file\'s Malloy text, verbatim, so a client can show the code beside the compiled view of the same file without a second, differently-shaped fetch. Named `sourceText`, not `source`, because `sources` on this same object are the model\'s Malloy sources. Optional: absent from servers that predate it; omitted (with a server-side warning) when the file cannot be read, so a compiled model is never withheld for want of its text; and omitted when the file text names a source it does not publish, on a package with a surface. A dashboard\'s text is always returned.
352
+ * The model file\'s Malloy text, verbatim, so a client can show the code beside the compiled view of the same file without a second, differently-shaped fetch. Named `sourceText`, not `source`, because `sources` on this same object are the model\'s Malloy sources. Optional: absent from servers that predate it; omitted (with a server-side warning) when the file cannot be read, so a compiled model is never withheld for want of its text; and omitted when the file text names a source it does not publish, on a package with a surface, unless `includeHiddenFilesAndSources` is true. A dashboard\'s text is always returned.
353
353
  */
354
354
  'sourceText'?: string;
355
355
  }
@@ -504,7 +504,7 @@ export interface CreateMaterializationRequest {
504
504
  'runContext'?: RunContext | null;
505
505
  }
506
506
  /**
507
- * A dashboard within a Malloy package: a self-contained `.malloy` file in the package\'s `dashboards/` directory carrying an `# artifact` (or model-level `## artifact`) annotation. The list entry; see DashboardManifest for the detail a viewer needs to render one.
507
+ * A dashboard within a Malloy package: a self-contained `.malloy` file at the top of the package\'s `dashboards/` or `notebooks/` directory carrying an `# artifact` (or model-level `## artifact`) annotation. The list entry; see DashboardManifest for the detail a viewer needs to render one.
508
508
  */
509
509
  export interface Dashboard {
510
510
  /**
@@ -568,6 +568,10 @@ export interface DashboardManifest {
568
568
  * Error message if the dashboard file failed to compile
569
569
  */
570
570
  'error'?: string;
571
+ /**
572
+ * What the document is, from the `kind` property of its artifact tag (the folder only decides the default when the tag says nothing). A `notebook` is laid out as one column: `dashboardColumns` is 1 whatever the file says. Always `dashboard` on `GET …/dashboards/{dashboardName}`; a notebook\'s manifest is the `dashboard` field of `GET …/notebooks/{path}`.
573
+ */
574
+ 'kind'?: DashboardManifestKindEnum;
571
575
  /**
572
576
  * Name of the tagged query whose single result IS the page. Set when the `# artifact` tag sits on a `query:`; a dashboard authored the ordinary way carries `tiles` instead and leaves this absent. A NAME rather than an expression, so it goes in the `queryName` field of a `POST …/models/{path}/query` body. A tile\'s `query` is the other shape and is not interchangeable with this one; see `DashboardTile.query`.
573
577
  */
@@ -591,20 +595,37 @@ export interface DashboardManifest {
591
595
  */
592
596
  'autorun'?: boolean;
593
597
  /**
594
- * The control row. Normally one entry per given the dashboard runs with: the union over `tiles`, or what `query` references when the tag sits on a query, and which the entry file can bind. The row widens to every given the entry file surfaces when any tile is one discovery cannot resolve, because that tile\'s givens are otherwise absent from the row it filters by; see `DashboardTile.givenNames`. So an entry here is always bindable, but on a widened row it is not necessarily referenced by any tile. A given reachable only through an import chain the entry file does not import itself cannot be bound at query time, so no control is offered for it and it stays at its default; that case is reported in the package\'s `warnings` rather than represented here by an unusable entry. Plain `Given`s, because the presentation a control takes is declared on the given itself, so a dashboard and a notebook render the same control for the same given, `#(description=…)` helper text included. ONE DELIBERATE DIVERGENCE from `Given` as the model surface sends it: `default` here is the value the QUERY ENDPOINT takes, not the Malloy source literal. A `filter<…>` given declared `f\'West\'` publishes `West`. As the literal it could not be used as a default at all, since sending it back verbatim matches zero rows silently, with no error to search for. Only filter-typed givens are unwrapped, so a plain string default that merely reads like `f\'x\'` is untouched. `startingGivens` uses the same shape for the same reason.
598
+ * The control row. Normally one entry per given the dashboard runs with: the union over `tiles` (less a given only a source\'s gate reads, which a host injects rather than a viewer sets), or what `query` references when the tag sits on a query, and which the entry file can bind. The row widens to every given the entry file surfaces when any tile is one discovery cannot resolve, because that tile\'s givens are otherwise absent from the row it filters by; see `DashboardTile.givenNames`. So an entry here is always bindable, but on a widened row it is not necessarily referenced by any tile. A given reachable only through an import chain the entry file does not import itself cannot be bound at query time, so no control is offered for it and it stays at its default; that case is reported in the package\'s `warnings` rather than represented here by an unusable entry. Plain `Given`s, because the presentation a control takes is declared on the given itself, so a dashboard and a notebook render the same control for the same given, `#(description=…)` helper text included. ONE DELIBERATE DIVERGENCE from `Given` as the model surface sends it: `default` here is the value the QUERY ENDPOINT takes, not the Malloy source literal. A `filter<…>` given declared `f\'West\'` publishes `West`. As the literal it could not be used as a default at all, since sending it back verbatim matches zero rows silently, with no error to search for. Only filter-typed givens are unwrapped, so a plain string default that merely reads like `f\'x\'` is untouched. `startingGivens` uses the same shape for the same reason.
595
599
  */
596
600
  'givens'?: Array<Given>;
597
601
  }
602
+ export declare const DashboardManifestKindEnum: {
603
+ readonly Dashboard: "dashboard";
604
+ readonly Notebook: "notebook";
605
+ };
606
+ export type DashboardManifestKindEnum = typeof DashboardManifestKindEnum[keyof typeof DashboardManifestKindEnum];
598
607
  /**
599
- * One tile of a dashboard
608
+ * One tile of a dashboard. A `query` tile (the default) runs a query; a `text` tile shows markdown and runs nothing, so a caller that runs a dashboard\'s tiles skips the ones with `kind` `text`.
600
609
  */
601
610
  export interface DashboardTile {
602
611
  /**
603
- * The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`. Sending it in `queryName`, the field `DashboardManifest.query` takes, is rejected.
612
+ * `query` runs `query` through the model query endpoint; `text` shows `markdown`. Absent means `query`.
613
+ */
614
+ 'kind'?: DashboardTileKindEnum;
615
+ /**
616
+ * A text tile\'s name: the bare word in `tiles=[…]` and on its `##|(markdown) name` block. Absent on a query tile.
617
+ */
618
+ 'name'?: string;
619
+ /**
620
+ * A text tile\'s body, the text of its `##|(markdown) name` block without the opener. Empty when the file has no such block. Absent on a query tile.
621
+ */
622
+ 'markdown'?: string;
623
+ /**
624
+ * Absent on a text tile. The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`. Sending it in `queryName`, the field `DashboardManifest.query` takes, is rejected.
604
625
  */
605
626
  'query'?: string;
606
627
  /**
607
- * Names of the givens this tile references. This is a scoping hint, not a binding constraint: it tells a caller which tiles a changed control actually needs to re-run. Running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when the tile expression is not one discovery can resolve, a refinement or a multi-stage pipeline for instance, in which case send the whole control row. One such tile widens `DashboardManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
628
+ * Names of the givens this tile\'s compiled query reads: through its view, its source\'s `where:`, a joined source\'s `where:`, a dimension or measure it uses, and its source\'s `#(authorize)` and `#(access_filter)` gates. A control not listed does not change the tile, which is what a viewer\'s \"Doesn\'t respond to\" chip says. It also tells a caller which tiles a changed control needs to re-run; running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when discovery could not resolve the tile (its expression neither compiles nor is a plain `source -> view` or named query the static walk reads), in which case send the whole control row. One such tile widens `DashboardManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
608
629
  */
609
630
  'givenNames'?: Array<string>;
610
631
  /**
@@ -616,11 +637,11 @@ export interface DashboardTile {
616
637
  */
617
638
  'subtitle'?: string;
618
639
  /**
619
- * Grid columns this tile spans, from a `# colspan=N` on the view or query it names. Clamped to `dashboardColumns` at render time. Absent means one column.
640
+ * Grid columns this tile spans, from a `# colspan=N` on the view or query it names, or from `colspan=N` on a text tile\'s entry in `tiles=[…]`. Clamped to `dashboardColumns` at render time. Absent means one column.
620
641
  */
621
642
  'colspan'?: number;
622
643
  /**
623
- * Start a new grid row at this tile, from a `# break` on the view or query it names. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
644
+ * Start a new grid row at this tile, from a `# break` on the view or query it names, or from `break` on a text tile\'s entry in `tiles=[…]`. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
624
645
  */
625
646
  'break'?: boolean;
626
647
  /**
@@ -628,6 +649,11 @@ export interface DashboardTile {
628
649
  */
629
650
  'borderless'?: boolean;
630
651
  }
652
+ export declare const DashboardTileKindEnum: {
653
+ readonly Query: "query";
654
+ readonly Text: "text";
655
+ };
656
+ export type DashboardTileKindEnum = typeof DashboardTileKindEnum[keyof typeof DashboardTileKindEnum];
631
657
  /**
632
658
  * An in-package HTML data app within a Malloy package - a static page served from the package\'s public/ directory
633
659
  */
@@ -1218,7 +1244,7 @@ export interface ModelError {
1218
1244
  'problems'?: Array<CompileProblem>;
1219
1245
  }
1220
1246
  /**
1221
- * The text to write into a dashboard file
1247
+ * The text to write into a dashboard or notebook file
1222
1248
  */
1223
1249
  export interface ModelSourceWriteRequest {
1224
1250
  /**
@@ -1231,7 +1257,7 @@ export interface ModelSourceWriteRequest {
1231
1257
  'expectedHash'?: string;
1232
1258
  }
1233
1259
  /**
1234
- * What a dashboard write left in the package
1260
+ * What a dashboard or notebook write left in the package
1235
1261
  */
1236
1262
  export interface ModelSourceWriteResult {
1237
1263
  /**
@@ -1932,7 +1958,7 @@ export interface RawNotebook {
1932
1958
  */
1933
1959
  'modelPath'?: string;
1934
1960
  /**
1935
- * The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a `.malloy` file under `notebooks/` with a model-level `## artifact` note, whose cells are its statements and its floating `(markdown)` notes in file order.
1961
+ * The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`), whose cells are its statements and its floating `(markdown)` notes in file order.
1936
1962
  */
1937
1963
  'format'?: RawNotebookFormatEnum;
1938
1964
  /**
@@ -1947,6 +1973,10 @@ export interface RawNotebook {
1947
1973
  * Array of notebook cells containing raw markdown and code content
1948
1974
  */
1949
1975
  'notebookCells'?: Array<NotebookCell>;
1976
+ /**
1977
+ * The tile layout of a notebook written as one (`## artifact { kind=notebook tiles=[…] }`), in the shape a dashboard has, with `kind` `notebook` and one column. Absent on a notebook written as cells. Its tiles run through the model query endpoint at `modelPath`; `notebookCells` carries the same content as cells for readers that do not draw a layout.
1978
+ */
1979
+ 'dashboard'?: DashboardManifest;
1950
1980
  /**
1951
1981
  * Array of file-level (##) annotations attached to the notebook. For a `.malloy` notebook, every own note that is not a floating `(markdown)` cell, in file order, each note once. A `\"` or `(text)` note below the `## artifact` tag is dropped and not listed.
1952
1982
  */
@@ -2142,7 +2172,11 @@ export interface ServerStatus {
2142
2172
  */
2143
2173
  'emptyReason'?: string;
2144
2174
  /**
2145
- * Configured packages and environments that did not load, and why. A load failure is not fatal to the server, so operationalState stays serving and the affected packages are absent from environments, unless the entry carries stale = true, in which case the package is still listed and still serving its last successful compile. This is the only place either difference is reported, so check it before treating a serving server as complete or current. Present only when something failed, so a healthy server omits the field.
2175
+ * Present only when initialization failed, and says why. Such a server stays up but never becomes ready, so operationalState stays initializing; without this field that reads as a server still starting. Typical causes are a config file the server cannot read or parse, and a server root it cannot write (where it creates publisher.db), such as a read-only root filesystem. A package or environment that fails to load is reported under loadErrors instead. Fix the cause and restart.
2176
+ */
2177
+ 'initError'?: string;
2178
+ /**
2179
+ * Configured packages and environments that did not load, and why, including a package add through the API that failed on the server\'s side, carrying the same message the add was answered with (an entry cleared by a later successful add of that package, or by deleting it). A load failure is not fatal to the server, so operationalState stays serving and the affected packages are absent from environments, unless the entry carries stale = true, in which case the package is still listed and still serving its last successful compile. This is the only place either difference is reported, so check it before treating a serving server as complete or current. Present only when something failed, so a healthy server omits the field.
2146
2180
  */
2147
2181
  'loadErrors'?: Array<ServerStatusLoadErrorsInner>;
2148
2182
  /**
@@ -3356,7 +3390,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
3356
3390
  */
3357
3391
  getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3358
3392
  /**
3359
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3393
+ * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3360
3394
  * @summary List package dashboards
3361
3395
  * @param {string} environmentName Name of the environment
3362
3396
  * @param {string} packageName Name of the package
@@ -3382,7 +3416,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
3382
3416
  */
3383
3417
  getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
3384
3418
  /**
3385
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3419
+ * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3386
3420
  * @summary List package dashboards
3387
3421
  * @param {string} environmentName Name of the environment
3388
3422
  * @param {string} packageName Name of the package
@@ -3408,7 +3442,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
3408
3442
  */
3409
3443
  getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
3410
3444
  /**
3411
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3445
+ * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3412
3446
  * @summary List package dashboards
3413
3447
  * @param {string} environmentName Name of the environment
3414
3448
  * @param {string} packageName Name of the package
@@ -3434,7 +3468,7 @@ export declare class DashboardsApi extends BaseAPI {
3434
3468
  */
3435
3469
  getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}, any>>;
3436
3470
  /**
3437
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3471
+ * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
3438
3472
  * @summary List package dashboards
3439
3473
  * @param {string} environmentName Name of the environment
3440
3474
  * @param {string} packageName Name of the package
@@ -4008,7 +4042,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4008
4042
  */
4009
4043
  executeQueryModel: (environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4010
4044
  /**
4011
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
4045
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a dashboard is always returned.
4012
4046
  * @summary Get compiled Malloy model
4013
4047
  * @param {string} environmentName Name of the environment
4014
4048
  * @param {string} packageName Name of the package
@@ -4020,7 +4054,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4020
4054
  */
4021
4055
  getModel: (environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4022
4056
  /**
4023
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
4057
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
4024
4058
  * @summary List package models
4025
4059
  * @param {string} environmentName Name of the environment
4026
4060
  * @param {string} packageName Name of the package
@@ -4031,11 +4065,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4031
4065
  */
4032
4066
  listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4033
4067
  /**
4034
- * 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.
4035
- * @summary Write a dashboard file into the package
4068
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook 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 file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A notebook path over an existing file the package does not serve as a notebook answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
4069
+ * @summary Write a dashboard or notebook file into the package
4036
4070
  * @param {string} environmentName Name of the environment
4037
4071
  * @param {string} packageName Name of the package
4038
- * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
4072
+ * @param {string} path The file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60; or &#x60;notebooks/&lt;slug&gt;.malloy&#x60;
4039
4073
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
4040
4074
  * @param {string} [versionId] Version identifier for the package
4041
4075
  * @param {*} [options] Override http request option.
@@ -4071,7 +4105,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4071
4105
  */
4072
4106
  executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryResult>>;
4073
4107
  /**
4074
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
4108
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a dashboard is always returned.
4075
4109
  * @summary Get compiled Malloy model
4076
4110
  * @param {string} environmentName Name of the environment
4077
4111
  * @param {string} packageName Name of the package
@@ -4083,7 +4117,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4083
4117
  */
4084
4118
  getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompiledModel>>;
4085
4119
  /**
4086
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
4120
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
4087
4121
  * @summary List package models
4088
4122
  * @param {string} environmentName Name of the environment
4089
4123
  * @param {string} packageName Name of the package
@@ -4094,11 +4128,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4094
4128
  */
4095
4129
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
4096
4130
  /**
4097
- * 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.
4098
- * @summary Write a dashboard file into the package
4131
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook 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 file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A notebook path over an existing file the package does not serve as a notebook answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
4132
+ * @summary Write a dashboard or notebook file into the package
4099
4133
  * @param {string} environmentName Name of the environment
4100
4134
  * @param {string} packageName Name of the package
4101
- * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
4135
+ * @param {string} path The file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60; or &#x60;notebooks/&lt;slug&gt;.malloy&#x60;
4102
4136
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
4103
4137
  * @param {string} [versionId] Version identifier for the package
4104
4138
  * @param {*} [options] Override http request option.
@@ -4134,7 +4168,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4134
4168
  */
4135
4169
  executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<QueryResult>;
4136
4170
  /**
4137
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
4171
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a dashboard is always returned.
4138
4172
  * @summary Get compiled Malloy model
4139
4173
  * @param {string} environmentName Name of the environment
4140
4174
  * @param {string} packageName Name of the package
@@ -4146,7 +4180,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4146
4180
  */
4147
4181
  getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<CompiledModel>;
4148
4182
  /**
4149
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
4183
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
4150
4184
  * @summary List package models
4151
4185
  * @param {string} environmentName Name of the environment
4152
4186
  * @param {string} packageName Name of the package
@@ -4157,11 +4191,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4157
4191
  */
4158
4192
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
4159
4193
  /**
4160
- * 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.
4161
- * @summary Write a dashboard file into the package
4194
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook 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 file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A notebook path over an existing file the package does not serve as a notebook answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
4195
+ * @summary Write a dashboard or notebook file into the package
4162
4196
  * @param {string} environmentName Name of the environment
4163
4197
  * @param {string} packageName Name of the package
4164
- * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
4198
+ * @param {string} path The file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60; or &#x60;notebooks/&lt;slug&gt;.malloy&#x60;
4165
4199
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
4166
4200
  * @param {string} [versionId] Version identifier for the package
4167
4201
  * @param {*} [options] Override http request option.
@@ -4197,7 +4231,7 @@ export declare class ModelsApi extends BaseAPI {
4197
4231
  */
4198
4232
  executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryResult, any, {}, any>>;
4199
4233
  /**
4200
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
4234
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a dashboard is always returned.
4201
4235
  * @summary Get compiled Malloy model
4202
4236
  * @param {string} environmentName Name of the environment
4203
4237
  * @param {string} packageName Name of the package
@@ -4209,7 +4243,7 @@ export declare class ModelsApi extends BaseAPI {
4209
4243
  */
4210
4244
  getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompiledModel, any, {}, any>>;
4211
4245
  /**
4212
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
4246
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
4213
4247
  * @summary List package models
4214
4248
  * @param {string} environmentName Name of the environment
4215
4249
  * @param {string} packageName Name of the package
@@ -4220,11 +4254,11 @@ export declare class ModelsApi extends BaseAPI {
4220
4254
  */
4221
4255
  listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
4222
4256
  /**
4223
- * 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.
4224
- * @summary Write a dashboard file into the package
4257
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook 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 file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A notebook path over an existing file the package does not serve as a notebook answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
4258
+ * @summary Write a dashboard or notebook file into the package
4225
4259
  * @param {string} environmentName Name of the environment
4226
4260
  * @param {string} packageName Name of the package
4227
- * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
4261
+ * @param {string} path The file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60; or &#x60;notebooks/&lt;slug&gt;.malloy&#x60;
4228
4262
  * @param {ModelSourceWriteRequest} modelSourceWriteRequest
4229
4263
  * @param {string} [versionId] Version identifier for the package
4230
4264
  * @param {*} [options] Override http request option.
@@ -4237,7 +4271,7 @@ export declare class ModelsApi extends BaseAPI {
4237
4271
  */
4238
4272
  export declare const NotebooksApiAxiosParamCreator: (configuration?: Configuration) => {
4239
4273
  /**
4240
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4274
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4241
4275
  * @summary Execute a specific notebook cell
4242
4276
  * @param {string} environmentName Name of the environment
4243
4277
  * @param {string} packageName Name of the package
@@ -4252,7 +4286,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
4252
4286
  */
4253
4287
  executeNotebookCell: (environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4254
4288
  /**
4255
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4289
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4256
4290
  * @summary Get Malloy notebook cells
4257
4291
  * @param {string} environmentName Name of the environment
4258
4292
  * @param {string} packageName Name of the package
@@ -4263,7 +4297,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
4263
4297
  */
4264
4298
  getNotebook: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4265
4299
  /**
4266
- * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4300
+ * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4267
4301
  * @summary List package notebooks
4268
4302
  * @param {string} environmentName Name of the environment
4269
4303
  * @param {string} packageName Name of the package
@@ -4278,7 +4312,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
4278
4312
  */
4279
4313
  export declare const NotebooksApiFp: (configuration?: Configuration) => {
4280
4314
  /**
4281
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4315
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4282
4316
  * @summary Execute a specific notebook cell
4283
4317
  * @param {string} environmentName Name of the environment
4284
4318
  * @param {string} packageName Name of the package
@@ -4293,7 +4327,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
4293
4327
  */
4294
4328
  executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotebookCellResult>>;
4295
4329
  /**
4296
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4330
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4297
4331
  * @summary Get Malloy notebook cells
4298
4332
  * @param {string} environmentName Name of the environment
4299
4333
  * @param {string} packageName Name of the package
@@ -4304,7 +4338,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
4304
4338
  */
4305
4339
  getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RawNotebook>>;
4306
4340
  /**
4307
- * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4341
+ * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4308
4342
  * @summary List package notebooks
4309
4343
  * @param {string} environmentName Name of the environment
4310
4344
  * @param {string} packageName Name of the package
@@ -4319,7 +4353,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
4319
4353
  */
4320
4354
  export declare const NotebooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4321
4355
  /**
4322
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4356
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4323
4357
  * @summary Execute a specific notebook cell
4324
4358
  * @param {string} environmentName Name of the environment
4325
4359
  * @param {string} packageName Name of the package
@@ -4334,7 +4368,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
4334
4368
  */
4335
4369
  executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): AxiosPromise<NotebookCellResult>;
4336
4370
  /**
4337
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4371
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4338
4372
  * @summary Get Malloy notebook cells
4339
4373
  * @param {string} environmentName Name of the environment
4340
4374
  * @param {string} packageName Name of the package
@@ -4345,7 +4379,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
4345
4379
  */
4346
4380
  getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<RawNotebook>;
4347
4381
  /**
4348
- * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4382
+ * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4349
4383
  * @summary List package notebooks
4350
4384
  * @param {string} environmentName Name of the environment
4351
4385
  * @param {string} packageName Name of the package
@@ -4360,7 +4394,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
4360
4394
  */
4361
4395
  export declare class NotebooksApi extends BaseAPI {
4362
4396
  /**
4363
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4397
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
4364
4398
  * @summary Execute a specific notebook cell
4365
4399
  * @param {string} environmentName Name of the environment
4366
4400
  * @param {string} packageName Name of the package
@@ -4375,7 +4409,7 @@ export declare class NotebooksApi extends BaseAPI {
4375
4409
  */
4376
4410
  executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<NotebookCellResult, any, {}, any>>;
4377
4411
  /**
4378
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4412
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
4379
4413
  * @summary Get Malloy notebook cells
4380
4414
  * @param {string} environmentName Name of the environment
4381
4415
  * @param {string} packageName Name of the package
@@ -4386,7 +4420,7 @@ export declare class NotebooksApi extends BaseAPI {
4386
4420
  */
4387
4421
  getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<RawNotebook, any, {}, any>>;
4388
4422
  /**
4389
- * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4423
+ * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
4390
4424
  * @summary List package notebooks
4391
4425
  * @param {string} environmentName Name of the environment
4392
4426
  * @param {string} packageName Name of the package
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Malloy Publisher - Semantic Model Serving API
3
- * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and `.malloy` files under `notebooks/`), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
3
+ * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
4
4
  *
5
5
  * The version of the OpenAPI document: v0
6
6
  *