@malloy-publisher/sdk 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-BRgIgxWh.es.js → RenderedResult-DwB0-9Yx.es.js} +219 -210
- package/dist/RenderedResult-hKjFEqaN.cjs.js +141 -0
- package/dist/{ServerProvider-Boxrv6Ym.es.js → ServerProvider-CcSrGaRN.es.js} +1473 -1326
- package/dist/ServerProvider-Gbf1YPOP.cjs.js +1 -0
- package/dist/builder/index.cjs.js +143 -58
- package/dist/builder/index.es.js +12179 -9318
- package/dist/builder-entry.d.ts +5 -1
- package/dist/client/api.d.ts +247 -56
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +94 -88
- package/dist/client-entry.d.ts +2 -0
- package/dist/components/ApiErrorDisplay.d.ts +11 -0
- package/dist/components/AppDialog.d.ts +6 -6
- package/dist/components/Dashboard/Dashboard.d.ts +8 -15
- package/dist/components/Dashboard/DashboardGrid.d.ts +38 -6
- package/dist/components/Dashboard/DashboardTile.d.ts +21 -2
- package/dist/components/Dashboard/DashboardView.d.ts +71 -0
- package/dist/components/Dashboard/TileCard.d.ts +30 -5
- package/dist/components/Dashboard/TileFilterTag.d.ts +12 -0
- package/dist/components/Dashboard/dropValueUrlTags.d.ts +6 -0
- package/dist/components/Dashboard/index.d.ts +5 -1
- package/dist/components/Dashboard/telemetry.d.ts +16 -3
- package/dist/components/Dashboard/textSource.d.ts +19 -0
- package/dist/components/DashboardBuilder/AddTileDialog.d.ts +15 -9
- package/dist/components/DashboardBuilder/BuilderDialogs.d.ts +25 -0
- package/dist/components/DashboardBuilder/BuilderGrid.d.ts +31 -0
- package/dist/components/DashboardBuilder/BuilderHeader.d.ts +17 -0
- package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +23 -15
- package/dist/components/DashboardBuilder/ChartPicker.d.ts +31 -0
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +56 -21
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +44 -5
- package/dist/components/DashboardBuilder/EditorSurface.d.ts +33 -0
- package/dist/components/DashboardBuilder/FilterDialog.d.ts +2 -2
- package/dist/components/DashboardBuilder/FilterStrip.d.ts +8 -4
- package/dist/components/DashboardBuilder/InlineMarkdown.d.ts +18 -0
- package/dist/components/DashboardBuilder/InlineText.d.ts +19 -0
- package/dist/components/DashboardBuilder/NotebookEditor.d.ts +15 -0
- package/dist/components/DashboardBuilder/SourceViewPicker.d.ts +9 -0
- package/dist/components/DashboardBuilder/TextTileBody.d.ts +10 -0
- package/dist/components/DashboardBuilder/TileFrame.d.ts +51 -12
- package/dist/components/DashboardBuilder/TileMenu.d.ts +12 -6
- package/dist/components/DashboardBuilder/annotationText.d.ts +4 -0
- package/dist/components/DashboardBuilder/builderReport.d.ts +13 -0
- package/dist/components/DashboardBuilder/catalog.d.ts +4 -18
- package/dist/components/DashboardBuilder/changedTile.d.ts +7 -0
- package/dist/components/DashboardBuilder/chartLine.d.ts +33 -0
- package/dist/components/DashboardBuilder/controls.d.ts +2 -2
- package/dist/components/DashboardBuilder/document.d.ts +42 -26
- package/dist/components/DashboardBuilder/documentSession.d.ts +100 -0
- package/dist/components/DashboardBuilder/imports.d.ts +19 -0
- package/dist/components/DashboardBuilder/inlineEdit.d.ts +18 -0
- package/dist/components/DashboardBuilder/legacyNotebook.d.ts +73 -0
- package/dist/components/DashboardBuilder/loadMalloy.d.ts +15 -0
- package/dist/components/DashboardBuilder/malloyTree.d.ts +119 -0
- package/dist/components/DashboardBuilder/newDashboard.d.ts +3 -1
- package/dist/components/DashboardBuilder/openDraft.d.ts +10 -0
- package/dist/components/DashboardBuilder/preview.d.ts +24 -4
- package/dist/components/DashboardBuilder/readDocument.d.ts +6 -1
- package/dist/components/DashboardBuilder/readForEditor.d.ts +16 -0
- package/dist/components/DashboardBuilder/sortable.d.ts +16 -0
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +15 -13
- package/dist/components/DashboardBuilder/spliceResult.d.ts +11 -0
- package/dist/components/DashboardBuilder/tagParse.d.ts +24 -0
- package/dist/components/DashboardBuilder/telemetry.d.ts +43 -0
- package/dist/components/DashboardBuilder/testing/fixtures.d.ts +3 -1
- package/dist/components/DashboardBuilder/testing/inline.d.ts +4 -0
- package/dist/components/DashboardBuilder/testing/resize.d.ts +7 -0
- package/dist/components/DashboardBuilder/tileDisplayTitle.d.ts +7 -0
- package/dist/components/DashboardBuilder/useBuilderSelection.d.ts +53 -0
- package/dist/components/DashboardBuilder/useBuilderSession.d.ts +86 -0
- package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +9 -6
- package/dist/components/DashboardBuilder/useControlBindings.d.ts +30 -0
- package/dist/components/DashboardBuilder/useConversionConfirm.d.ts +20 -0
- package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +19 -55
- package/dist/components/DashboardBuilder/useDocumentEditor.d.ts +105 -0
- package/dist/components/DashboardBuilder/useDraft.d.ts +3 -1
- package/dist/components/DashboardBuilder/useExitGuard.d.ts +19 -0
- package/dist/components/DashboardBuilder/useFilterForm.d.ts +3 -3
- package/dist/components/DashboardBuilder/useHostCopy.d.ts +26 -0
- package/dist/components/DashboardBuilder/useOpenDraftCommit.d.ts +17 -0
- package/dist/components/DashboardBuilder/useOpenedDocument.d.ts +71 -0
- package/dist/components/DashboardBuilder/useSaveChannel.d.ts +50 -0
- package/dist/components/DashboardBuilder/useTileEditing.d.ts +33 -0
- package/dist/components/DashboardBuilder/useTileResize.d.ts +6 -3
- package/dist/components/DocumentCreate/canRetry.d.ts +6 -0
- package/dist/components/DocumentCreate/createDocument.d.ts +58 -0
- package/dist/components/DocumentCreate/documentPath.d.ts +10 -0
- package/dist/components/DocumentCreate/events.d.ts +10 -0
- package/dist/components/DocumentCreate/exportedSources.d.ts +7 -0
- package/dist/components/DocumentCreate/guards.d.ts +12 -0
- package/dist/components/DocumentCreate/index.d.ts +6 -0
- package/dist/components/DocumentCreate/newNotebook.d.ts +9 -0
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +32 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +2 -1
- package/dist/components/Loading.d.ts +13 -0
- package/dist/components/NarrowEditGate.d.ts +8 -0
- package/dist/components/Notebook/Notebook.d.ts +1 -1
- package/dist/components/Notebook/NotebookCell.d.ts +1 -5
- package/dist/components/Package/NewDocumentDialog.d.ts +33 -0
- package/dist/components/Package/Package.d.ts +17 -1
- package/dist/components/Package/documentLocation.d.ts +28 -0
- package/dist/components/Package/index.d.ts +5 -1
- package/dist/components/Package/useDocumentLocation.d.ts +12 -0
- package/dist/components/PackageSection.d.ts +2 -2
- package/dist/components/Prose.d.ts +1 -1
- package/dist/components/RenderedResult/RenderedResult.d.ts +2 -0
- package/dist/components/RenderedResult/ResultContainer.d.ts +8 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +3 -1
- package/dist/components/RenderedResult/loadRenderer.d.ts +7 -0
- package/dist/components/RenderedResult/resultSizing.d.ts +9 -1
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/components/UnsavedChangesDialog.d.ts +9 -0
- package/dist/components/given/GivensPanel.d.ts +2 -2
- package/dist/components/given/paramCodec.d.ts +8 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/components/styles.d.ts +4 -4
- package/dist/hooks/givenValue.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useCompiledDocument.d.ts +23 -0
- package/dist/hooks/useDocumentControls.d.ts +6 -1
- package/dist/hooks/useNarrowScreen.d.ts +4 -0
- package/dist/hooks/useNearViewport.d.ts +16 -0
- package/dist/hooks/useQueryResult.d.ts +2 -0
- package/dist/hooks/useQueryWithApiError.d.ts +7 -2
- package/dist/hooks/useSettled.d.ts +14 -0
- package/dist/hooks/useSuggestOptions.d.ts +9 -2
- package/dist/index.cjs.js +23 -24
- package/dist/index.es.js +9041 -7002
- package/dist/text/index.cjs.js +1 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.es.js +6 -0
- package/dist/text-entry-BJwltZiy.cjs.js +7 -0
- package/dist/text-entry-CA0LZ1xL.es.js +196 -0
- package/dist/text-entry.d.ts +2 -0
- package/dist/theme/accent.d.ts +29 -0
- package/dist/theme/buildVegaThemeOverride.d.ts +3 -3
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/keys.d.ts +1 -1
- package/dist/theme/motion.d.ts +31 -0
- package/dist/theme/readChartAnnotations.d.ts +1 -1
- package/dist/theme/resolveTheme.d.ts +4 -4
- package/dist/theme/types.d.ts +33 -5
- package/dist/{Dashboard-H1kJlDFo.es.js → useCompiledDocument-BU6d8FPp.es.js} +17904 -19057
- package/dist/useCompiledDocument-pOg2W-Yt.cjs.js +142 -0
- package/dist/utils/clock.d.ts +2 -0
- package/dist/utils/malloyText.d.ts +104 -0
- package/package.json +20 -11
- package/src/builder-entry.ts +36 -0
- package/src/client-entry.ts +8 -0
- package/src/clientEntry.spec.ts +17 -0
- package/src/components/ApiErrorDisplay.tsx +37 -18
- package/src/components/AppDialog.tsx +8 -7
- package/src/components/Dashboard/Dashboard.spec.tsx +3 -32
- package/src/components/Dashboard/Dashboard.tsx +29 -280
- package/src/components/Dashboard/DashboardGrid.tsx +87 -8
- package/src/components/Dashboard/DashboardTile.spec.tsx +121 -2
- package/src/components/Dashboard/DashboardTile.tsx +121 -30
- package/src/components/Dashboard/DashboardView.spec.tsx +368 -0
- package/src/components/Dashboard/DashboardView.tsx +428 -0
- package/src/components/Dashboard/RowsDialog.tsx +4 -3
- package/src/components/Dashboard/TileCard.tsx +60 -11
- package/src/components/Dashboard/TileFilterTag.spec.tsx +73 -0
- package/src/components/Dashboard/TileFilterTag.tsx +78 -0
- package/src/components/Dashboard/defaultTileSpan.spec.ts +32 -0
- package/src/components/Dashboard/dropValueUrlTags.spec.ts +177 -0
- package/src/components/Dashboard/dropValueUrlTags.ts +108 -0
- package/src/components/Dashboard/index.ts +13 -1
- package/src/components/Dashboard/telemetry.ts +17 -5
- package/src/components/Dashboard/textSource.spec.ts +36 -0
- package/src/components/Dashboard/textSource.ts +39 -0
- package/src/components/DashboardBuilder/AddTileDialog.spec.tsx +88 -0
- package/src/components/DashboardBuilder/AddTileDialog.tsx +124 -138
- package/src/components/DashboardBuilder/BuilderDialogs.tsx +162 -0
- package/src/components/DashboardBuilder/BuilderGrid.tsx +245 -0
- package/src/components/DashboardBuilder/BuilderHeader.tsx +107 -0
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +111 -80
- package/src/components/DashboardBuilder/ChartPicker.render.spec.tsx +25 -0
- package/src/components/DashboardBuilder/ChartPicker.spec.ts +77 -0
- package/src/components/DashboardBuilder/ChartPicker.tsx +156 -0
- package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +205 -0
- package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +183 -0
- package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +373 -0
- package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +310 -0
- package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +105 -0
- package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +117 -0
- package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +146 -108
- package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +179 -0
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +330 -512
- package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +55 -25
- package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +142 -0
- package/src/components/DashboardBuilder/DashboardEditor.filterTag.spec.tsx +162 -0
- package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +310 -0
- package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +39 -13
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +9 -26
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +102 -25
- package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +317 -0
- package/src/components/DashboardBuilder/DashboardEditor.tsx +252 -780
- package/src/components/DashboardBuilder/DrillDialog.tsx +2 -2
- package/src/components/DashboardBuilder/EditorSurface.tsx +471 -0
- package/src/components/DashboardBuilder/FilterDialog.tsx +23 -11
- package/src/components/DashboardBuilder/FilterStrip.tsx +130 -70
- package/src/components/DashboardBuilder/InlineMarkdown.tsx +182 -0
- package/src/components/DashboardBuilder/InlineText.tsx +112 -0
- package/src/components/DashboardBuilder/NotebookEditor.tsx +44 -0
- package/src/components/DashboardBuilder/SourceViewPicker.tsx +122 -0
- package/src/components/DashboardBuilder/TextTileBody.tsx +31 -0
- package/src/components/DashboardBuilder/TileFrame.tsx +302 -163
- package/src/components/DashboardBuilder/TileMenu.tsx +125 -97
- package/src/components/DashboardBuilder/annotationText.spec.ts +33 -0
- package/src/components/DashboardBuilder/annotationText.ts +17 -0
- package/src/components/DashboardBuilder/artifactBlock.spec.ts +248 -0
- package/src/components/DashboardBuilder/artifactTagParity.spec.ts +46 -0
- package/src/components/DashboardBuilder/builderReport.ts +74 -0
- package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +49 -0
- package/src/components/DashboardBuilder/catalog.spec.ts +2 -44
- package/src/components/DashboardBuilder/catalog.ts +61 -57
- package/src/components/DashboardBuilder/changedTile.spec.ts +46 -0
- package/src/components/DashboardBuilder/changedTile.ts +28 -0
- package/src/components/DashboardBuilder/chartLine.spec.ts +180 -0
- package/src/components/DashboardBuilder/chartLine.ts +121 -0
- package/src/components/DashboardBuilder/controls.spec.ts +21 -10
- package/src/components/DashboardBuilder/controls.ts +22 -8
- package/src/components/DashboardBuilder/document.ts +53 -5
- package/src/components/DashboardBuilder/documentSession.spec.ts +209 -0
- package/src/components/DashboardBuilder/documentSession.ts +258 -0
- package/src/components/DashboardBuilder/emptyStart.spec.ts +131 -0
- package/src/components/DashboardBuilder/imports.spec.ts +61 -0
- package/src/components/DashboardBuilder/imports.ts +93 -0
- package/src/components/DashboardBuilder/inlineEdit.tsx +78 -0
- package/src/components/DashboardBuilder/invariants.spec.ts +6 -2
- package/src/components/DashboardBuilder/legacyNotebook.chart.spec.ts +77 -0
- package/src/components/DashboardBuilder/legacyNotebook.convert.spec.ts +630 -0
- package/src/components/DashboardBuilder/legacyNotebook.read.spec.ts +338 -0
- package/src/components/DashboardBuilder/legacyNotebook.ts +1117 -0
- package/src/components/DashboardBuilder/loadMalloy.spec.ts +80 -0
- package/src/components/DashboardBuilder/loadMalloy.ts +39 -0
- package/src/components/DashboardBuilder/malloyTree.ts +159 -7
- package/src/components/DashboardBuilder/newDashboard.spec.ts +46 -2
- package/src/components/DashboardBuilder/newDashboard.ts +30 -3
- package/src/components/DashboardBuilder/openDraft.ts +52 -0
- package/src/components/DashboardBuilder/preview.shapes.spec.ts +75 -0
- package/src/components/DashboardBuilder/preview.spec.ts +159 -12
- package/src/components/DashboardBuilder/preview.ts +83 -9
- package/src/components/DashboardBuilder/readDocument.spec.ts +174 -26
- package/src/components/DashboardBuilder/readDocument.ts +137 -45
- package/src/components/DashboardBuilder/readForEditor.spec.ts +80 -0
- package/src/components/DashboardBuilder/readForEditor.ts +52 -0
- package/src/components/DashboardBuilder/scannerShapes.spec.ts +14 -13
- package/src/components/DashboardBuilder/sortable.spec.ts +89 -0
- package/src/components/DashboardBuilder/sortable.tsx +11 -10
- package/src/components/DashboardBuilder/spliceDocument.chart.spec.ts +340 -0
- package/src/components/DashboardBuilder/spliceDocument.imports.spec.ts +167 -0
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +229 -94
- package/src/components/DashboardBuilder/spliceDocument.ts +768 -131
- package/src/components/DashboardBuilder/spliceResult.ts +15 -0
- package/src/components/DashboardBuilder/statementExtent.spec.ts +33 -30
- package/src/components/DashboardBuilder/tagParse.spec.ts +149 -0
- package/src/components/DashboardBuilder/tagParse.ts +103 -0
- package/src/components/DashboardBuilder/telemetry.ts +47 -0
- package/src/components/DashboardBuilder/testing/artifactTagParity.json +253 -0
- package/src/components/DashboardBuilder/testing/documentKindRule.json +40 -0
- package/src/components/DashboardBuilder/testing/fixtures.ts +16 -1
- package/src/components/DashboardBuilder/testing/inline.ts +25 -0
- package/src/components/DashboardBuilder/testing/resize.ts +48 -0
- package/src/components/DashboardBuilder/testing/urlRenderTags.json +62 -0
- package/src/components/DashboardBuilder/textTiles.spec.ts +760 -0
- package/src/components/DashboardBuilder/tileDisplayTitle.ts +13 -0
- package/src/components/DashboardBuilder/useBuilderSelection.ts +121 -0
- package/src/components/DashboardBuilder/useBuilderSession.spec.ts +250 -0
- package/src/components/DashboardBuilder/useBuilderSession.ts +255 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +97 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.spec.tsx +60 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.ts +45 -9
- package/src/components/DashboardBuilder/useControlBindings.ts +152 -0
- package/src/components/DashboardBuilder/useConversionConfirm.ts +55 -0
- package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +16 -13
- package/src/components/DashboardBuilder/useDashboardEditor.ts +57 -181
- package/src/components/DashboardBuilder/useDocumentEditor.spec.ts +565 -0
- package/src/components/DashboardBuilder/useDocumentEditor.ts +399 -0
- package/src/components/DashboardBuilder/useDraft.ts +15 -2
- package/src/components/DashboardBuilder/useExitGuard.spec.ts +159 -0
- package/src/components/DashboardBuilder/useExitGuard.ts +89 -0
- package/src/components/DashboardBuilder/useFilterForm.existing.spec.tsx +41 -0
- package/src/components/DashboardBuilder/useFilterForm.spec.tsx +24 -2
- package/src/components/DashboardBuilder/useFilterForm.ts +41 -13
- package/src/components/DashboardBuilder/useHostCopy.ts +104 -0
- package/src/components/DashboardBuilder/useOpenDraftCommit.ts +47 -0
- package/src/components/DashboardBuilder/useOpenedDocument.ts +314 -0
- package/src/components/DashboardBuilder/useSaveChannel.ts +275 -0
- package/src/components/DashboardBuilder/useTileEditing.ts +141 -0
- package/src/components/DashboardBuilder/useTileReorder.spec.tsx +28 -5
- package/src/components/DashboardBuilder/useTileReorder.ts +5 -7
- package/src/components/DashboardBuilder/useTileResize.spec.tsx +30 -5
- package/src/components/DashboardBuilder/useTileResize.ts +31 -8
- package/src/components/DataAppViewer/DataAppViewer.tsx +7 -4
- package/src/components/DocumentCreate/canRetry.spec.ts +32 -0
- package/src/components/DocumentCreate/canRetry.ts +19 -0
- package/src/components/DocumentCreate/createDocument.spec.ts +310 -0
- package/src/components/DocumentCreate/createDocument.ts +159 -0
- package/src/components/DocumentCreate/documentPath.ts +40 -0
- package/src/components/DocumentCreate/events.ts +15 -0
- package/src/components/DocumentCreate/exportedSources.ts +25 -0
- package/src/components/DocumentCreate/guards.ts +45 -0
- package/src/components/DocumentCreate/index.ts +27 -0
- package/src/components/DocumentCreate/newNotebook.spec.ts +156 -0
- package/src/components/DocumentCreate/newNotebook.ts +44 -0
- package/src/components/DocumentCreate/useDocumentChoices.spec.tsx +138 -0
- package/src/components/DocumentCreate/useDocumentChoices.ts +113 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +2 -1
- package/src/components/Environment/Environment.tsx +0 -10
- package/src/components/Loading.tsx +14 -0
- package/src/components/Model/Model.tsx +16 -9
- package/src/components/Model/ModelExplorer.spec.tsx +2 -2
- package/src/components/Model/ModelExplorer.tsx +2 -2
- package/src/components/Model/SourcesExplorer.tsx +2 -4
- package/src/components/NarrowEditGate.spec.tsx +73 -0
- package/src/components/NarrowEditGate.tsx +29 -0
- package/src/components/Notebook/Notebook.layout.spec.tsx +94 -0
- package/src/components/Notebook/Notebook.tsx +72 -29
- package/src/components/Notebook/NotebookCell.tsx +90 -215
- package/src/components/Package/NewDocumentDialog.spec.tsx +749 -0
- package/src/components/Package/NewDocumentDialog.tsx +401 -0
- package/src/components/Package/Package.artifacts.spec.tsx +186 -0
- package/src/components/Package/Package.create.spec.tsx +401 -0
- package/src/components/Package/Package.notebooks.spec.tsx +18 -0
- package/src/components/Package/Package.tsx +396 -177
- package/src/components/Package/documentLocation.spec.ts +81 -0
- package/src/components/Package/documentLocation.ts +55 -0
- package/src/components/Package/index.ts +14 -1
- package/src/components/Package/useDocumentLocation.ts +59 -0
- package/src/components/PackageSection.tsx +2 -2
- package/src/components/Prose.spec.tsx +37 -0
- package/src/components/Prose.tsx +35 -5
- package/src/components/RenderedResult/RenderedResult.tsx +23 -8
- package/src/components/RenderedResult/ResultContainer.tsx +51 -13
- package/src/components/RenderedResult/ResultPanel.tsx +24 -5
- package/src/components/RenderedResult/loadRenderer.ts +42 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +68 -0
- package/src/components/RenderedResult/resultSizing.ts +14 -3
- package/src/components/ServerProvider.tsx +2 -1
- package/src/components/UnsavedChangesDialog.spec.tsx +70 -0
- package/src/components/UnsavedChangesDialog.tsx +49 -0
- package/src/components/given/GivenInput.spec.tsx +5 -5
- package/src/components/given/GivenInput.tsx +46 -38
- package/src/components/given/GivensPanel.spec.tsx +6 -6
- package/src/components/given/GivensPanel.tsx +5 -11
- package/src/components/given/paramCodec.ts +27 -1
- package/src/components/index.ts +3 -2
- package/src/components/styles.ts +4 -5
- package/src/hooks/givenValue.ts +9 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/useCompiledDocument.spec.tsx +86 -0
- package/src/hooks/useCompiledDocument.ts +59 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +3 -1
- package/src/hooks/useDocumentControls.ts +13 -1
- package/src/hooks/useNarrowScreen.ts +21 -0
- package/src/hooks/useNearViewport.spec.tsx +150 -0
- package/src/hooks/useNearViewport.ts +102 -0
- package/src/hooks/useQueryResult.ts +23 -1
- package/src/hooks/useQueryWithApiError.ts +10 -3
- package/src/hooks/useRawQueryData.ts +3 -1
- package/src/hooks/useSettled.spec.ts +41 -0
- package/src/hooks/useSettled.ts +27 -0
- package/src/hooks/useSuggestOptions.dom.spec.ts +40 -1
- package/src/hooks/useSuggestOptions.ts +42 -10
- package/src/mainEntry.spec.ts +145 -0
- package/src/text-entry.ts +12 -0
- package/src/textEntry.spec.ts +112 -0
- package/src/theme/accent.spec.ts +116 -0
- package/src/theme/accent.ts +148 -0
- package/src/theme/buildTableCssVars.spec.ts +24 -0
- package/src/theme/buildTableCssVars.ts +1 -2
- package/src/theme/buildVegaThemeOverride.spec.ts +38 -2
- package/src/theme/buildVegaThemeOverride.ts +5 -5
- package/src/theme/defaults.ts +34 -0
- package/src/theme/index.ts +9 -0
- package/src/theme/keys.ts +6 -0
- package/src/theme/motion.ts +44 -0
- package/src/theme/readChartAnnotations.spec.ts +18 -0
- package/src/theme/readChartAnnotations.ts +1 -1
- package/src/theme/resolveTheme.spec.ts +73 -0
- package/src/theme/resolveTheme.ts +61 -20
- package/src/theme/types.ts +30 -5
- package/src/utils/clock.spec.ts +12 -0
- package/src/utils/clock.ts +6 -0
- package/src/{components/DashboardBuilder → utils}/malloyText.spec.ts +48 -0
- package/src/utils/malloyText.ts +368 -0
- package/src/utils/queryClient.ts +8 -0
- package/vite.config.ts +4 -0
- package/dist/Dashboard-ChyylkTD.cjs.js +0 -136
- package/dist/RenderedResult-AJPMUkAD.cjs.js +0 -135
- package/dist/ServerProvider-CXrOKD6g.cjs.js +0 -1
- package/dist/components/Dashboard/DashboardBar.d.ts +0 -21
- package/dist/components/Dashboard/ExploreDialog.d.ts +0 -20
- package/dist/components/DashboardBuilder/DiffDialog.d.ts +0 -15
- package/dist/components/DashboardBuilder/SettingsPopover.d.ts +0 -20
- package/dist/components/DashboardBuilder/diff.d.ts +0 -35
- package/dist/components/DashboardBuilder/malloyText.d.ts +0 -64
- package/dist/components/Package/NewDashboardDialog.d.ts +0 -18
- package/src/components/Dashboard/DashboardBar.tsx +0 -88
- package/src/components/Dashboard/ExploreDialog.tsx +0 -89
- package/src/components/DashboardBuilder/DiffDialog.tsx +0 -122
- package/src/components/DashboardBuilder/SettingsPopover.tsx +0 -168
- package/src/components/DashboardBuilder/diff.spec.ts +0 -44
- package/src/components/DashboardBuilder/diff.ts +0 -93
- package/src/components/DashboardBuilder/malloyText.ts +0 -214
- package/src/components/Package/NewDashboardDialog.spec.tsx +0 -129
- package/src/components/Package/NewDashboardDialog.tsx +0 -265
package/dist/client/api.d.ts
CHANGED
|
@@ -266,7 +266,7 @@ export interface CompileRequest {
|
|
|
266
266
|
*/
|
|
267
267
|
'source'?: string;
|
|
268
268
|
/**
|
|
269
|
-
* What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set.
|
|
269
|
+
* What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set. \"append\" text that carries a model-level `## artifact` tag is a document, which other viewers run, and is also refused with a 400 for `# image`, `# link`, markup in a `# label`, `@env.` in an annotation, an annotation the tag parser rejects or that exceeds 8,192 characters, `except:` or `rename:` followed by a declaration of the same name in the same extend chain, and more than 1,000 annotations or 64 KB of them. Plain \"append\" text without that tag keeps those tags; a model file defines them itself, and its edit is checked at \"file\".
|
|
270
270
|
*/
|
|
271
271
|
'scope'?: CompileRequestScopeEnum;
|
|
272
272
|
/**
|
|
@@ -302,12 +302,35 @@ export interface CompileResult {
|
|
|
302
302
|
* Generated SQL for the compiled query. Only present when includeSql is true and compilation succeeds with a runnable query.
|
|
303
303
|
*/
|
|
304
304
|
'sql'?: string;
|
|
305
|
+
'document'?: CompiledDocument;
|
|
305
306
|
}
|
|
306
307
|
export declare const CompileResultStatusEnum: {
|
|
307
308
|
readonly Success: "success";
|
|
308
309
|
readonly Error: "error";
|
|
309
310
|
};
|
|
310
311
|
export type CompileResultStatusEnum = typeof CompileResultStatusEnum[keyof typeof CompileResultStatusEnum];
|
|
312
|
+
/**
|
|
313
|
+
* The document a compiled source describes, in the shape the same text serves once saved. Present only when the source carries a model-level `## artifact` tag and compiled far enough to read.
|
|
314
|
+
*/
|
|
315
|
+
export interface CompiledDocument {
|
|
316
|
+
/**
|
|
317
|
+
* From the tag\'s `kind`. When it names none, a document that lists `tiles` or carries a `dashboard { … }` grid tag is a dashboard and any other is a notebook: submitted text has no folder to decide.
|
|
318
|
+
*/
|
|
319
|
+
'kind'?: CompiledDocumentKindEnum;
|
|
320
|
+
/**
|
|
321
|
+
* Shaped like a served dashboard\'s manifest, with two differences: `path` is absent (the text runs on the model it was compiled on top of, which is the model in the request URL) and `name` is that model\'s file slug rather than a document name, which the host owns; `title` is the heading.
|
|
322
|
+
*/
|
|
323
|
+
'manifest'?: DashboardManifest;
|
|
324
|
+
/**
|
|
325
|
+
* The file\'s own cells. A document laid out as tiles lists only its definition cells, as a saved one does; its prose and queries are `manifest.tiles`.
|
|
326
|
+
*/
|
|
327
|
+
'cells'?: Array<NotebookCell>;
|
|
328
|
+
}
|
|
329
|
+
export declare const CompiledDocumentKindEnum: {
|
|
330
|
+
readonly Dashboard: "dashboard";
|
|
331
|
+
readonly Notebook: "notebook";
|
|
332
|
+
};
|
|
333
|
+
export type CompiledDocumentKindEnum = typeof CompiledDocumentKindEnum[keyof typeof CompiledDocumentKindEnum];
|
|
311
334
|
/**
|
|
312
335
|
* Compiled Malloy model with sources, queries, and metadata
|
|
313
336
|
*/
|
|
@@ -349,7 +372,7 @@ export interface CompiledModel {
|
|
|
349
372
|
*/
|
|
350
373
|
'givens'?: Array<Given>;
|
|
351
374
|
/**
|
|
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.
|
|
375
|
+
* 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
376
|
*/
|
|
354
377
|
'sourceText'?: string;
|
|
355
378
|
}
|
|
@@ -504,7 +527,7 @@ export interface CreateMaterializationRequest {
|
|
|
504
527
|
'runContext'?: RunContext | null;
|
|
505
528
|
}
|
|
506
529
|
/**
|
|
507
|
-
* A dashboard within a Malloy package: a self-contained `.malloy` file
|
|
530
|
+
* 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
531
|
*/
|
|
509
532
|
export interface Dashboard {
|
|
510
533
|
/**
|
|
@@ -568,6 +591,10 @@ export interface DashboardManifest {
|
|
|
568
591
|
* Error message if the dashboard file failed to compile
|
|
569
592
|
*/
|
|
570
593
|
'error'?: string;
|
|
594
|
+
/**
|
|
595
|
+
* 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}`.
|
|
596
|
+
*/
|
|
597
|
+
'kind'?: DashboardManifestKindEnum;
|
|
571
598
|
/**
|
|
572
599
|
* 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
600
|
*/
|
|
@@ -591,20 +618,41 @@ export interface DashboardManifest {
|
|
|
591
618
|
*/
|
|
592
619
|
'autorun'?: boolean;
|
|
593
620
|
/**
|
|
594
|
-
* The control row. Normally one entry per given the dashboard runs with: the union over `tiles
|
|
621
|
+
* 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
622
|
*/
|
|
596
623
|
'givens'?: Array<Given>;
|
|
597
624
|
}
|
|
625
|
+
export declare const DashboardManifestKindEnum: {
|
|
626
|
+
readonly Dashboard: "dashboard";
|
|
627
|
+
readonly Notebook: "notebook";
|
|
628
|
+
};
|
|
629
|
+
export type DashboardManifestKindEnum = typeof DashboardManifestKindEnum[keyof typeof DashboardManifestKindEnum];
|
|
598
630
|
/**
|
|
599
|
-
* One tile of a dashboard
|
|
631
|
+
* 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
632
|
*/
|
|
601
633
|
export interface DashboardTile {
|
|
602
634
|
/**
|
|
603
|
-
*
|
|
635
|
+
* `query` runs `query` through the model query endpoint; `text` shows `markdown`. Absent means `query`.
|
|
636
|
+
*/
|
|
637
|
+
'kind'?: DashboardTileKindEnum;
|
|
638
|
+
/**
|
|
639
|
+
* A text tile\'s name: the bare word in `tiles=[…]` and on its `##|(markdown) name` block. Absent on a query tile.
|
|
640
|
+
*/
|
|
641
|
+
'name'?: string;
|
|
642
|
+
/**
|
|
643
|
+
* 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.
|
|
644
|
+
*/
|
|
645
|
+
'markdown'?: string;
|
|
646
|
+
/**
|
|
647
|
+
* 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
648
|
*/
|
|
605
649
|
'query'?: string;
|
|
606
650
|
/**
|
|
607
|
-
*
|
|
651
|
+
* Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query` and nothing derived from the source: no `givenNames`, no layout tags.
|
|
652
|
+
*/
|
|
653
|
+
'restricted'?: boolean;
|
|
654
|
+
/**
|
|
655
|
+
* 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
656
|
*/
|
|
609
657
|
'givenNames'?: Array<string>;
|
|
610
658
|
/**
|
|
@@ -616,11 +664,11 @@ export interface DashboardTile {
|
|
|
616
664
|
*/
|
|
617
665
|
'subtitle'?: string;
|
|
618
666
|
/**
|
|
619
|
-
* Grid columns this tile spans, from a `# colspan=N` on the view or query it names
|
|
667
|
+
* 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
668
|
*/
|
|
621
669
|
'colspan'?: number;
|
|
622
670
|
/**
|
|
623
|
-
* Start a new grid row at this tile, from a `# break` on the view or query it names
|
|
671
|
+
* 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
672
|
*/
|
|
625
673
|
'break'?: boolean;
|
|
626
674
|
/**
|
|
@@ -628,6 +676,11 @@ export interface DashboardTile {
|
|
|
628
676
|
*/
|
|
629
677
|
'borderless'?: boolean;
|
|
630
678
|
}
|
|
679
|
+
export declare const DashboardTileKindEnum: {
|
|
680
|
+
readonly Query: "query";
|
|
681
|
+
readonly Text: "text";
|
|
682
|
+
};
|
|
683
|
+
export type DashboardTileKindEnum = typeof DashboardTileKindEnum[keyof typeof DashboardTileKindEnum];
|
|
631
684
|
/**
|
|
632
685
|
* An in-package HTML data app within a Malloy package - a static page served from the package\'s public/ directory
|
|
633
686
|
*/
|
|
@@ -886,6 +939,10 @@ export interface Given {
|
|
|
886
939
|
* Annotations attached to the given declaration
|
|
887
940
|
*/
|
|
888
941
|
'annotations'?: Array<string>;
|
|
942
|
+
/**
|
|
943
|
+
* True when the declaration carries `#(secure)`: its value is the host\'s to set. The builder withholds its control only when it edits a document held as text; a saved dashboard or notebook renders it as before. Absent otherwise.
|
|
944
|
+
*/
|
|
945
|
+
'secure'?: boolean;
|
|
889
946
|
/**
|
|
890
947
|
* The given\'s default value as a Malloy source literal (e.g. `\'WN\'`, `2003`, `@2024-01-01`, `f\'WN\'`), exactly as written in the model. Omitted when the given declares no default. Consumers render or prefill it per the given\'s `type` (e.g. unquote a string literal for a text input).
|
|
891
948
|
*/
|
|
@@ -1218,7 +1275,7 @@ export interface ModelError {
|
|
|
1218
1275
|
'problems'?: Array<CompileProblem>;
|
|
1219
1276
|
}
|
|
1220
1277
|
/**
|
|
1221
|
-
* The text to write into a dashboard file
|
|
1278
|
+
* The text to write into a dashboard or notebook file
|
|
1222
1279
|
*/
|
|
1223
1280
|
export interface ModelSourceWriteRequest {
|
|
1224
1281
|
/**
|
|
@@ -1231,7 +1288,7 @@ export interface ModelSourceWriteRequest {
|
|
|
1231
1288
|
'expectedHash'?: string;
|
|
1232
1289
|
}
|
|
1233
1290
|
/**
|
|
1234
|
-
* What a dashboard write left in the package
|
|
1291
|
+
* What a dashboard or notebook write left in the package
|
|
1235
1292
|
*/
|
|
1236
1293
|
export interface ModelSourceWriteResult {
|
|
1237
1294
|
/**
|
|
@@ -1342,6 +1399,10 @@ export interface NotebookCell {
|
|
|
1342
1399
|
* Present on every code cell of a `.malloy` notebook, and absent on a `.malloynb` or from a server that predates it. The lines of `text` that hold `markdown`, as `[start, end]` pairs in file order; `[]` when the cell has none. Lines are 0-based and inclusive, counted on `text` split at `\\n`. Strip exactly these lines to get the cell\'s code without its prose; do not re-derive them from `text`, whose first line has lost its indentation.
|
|
1343
1400
|
*/
|
|
1344
1401
|
'proseLines'?: Array<Array<number>>;
|
|
1402
|
+
/**
|
|
1403
|
+
* Set on a cell of a compiled document (`CompileResult.document`) whose source the caller may not read. It was not compiled, so nothing else is known about what it reads.
|
|
1404
|
+
*/
|
|
1405
|
+
'restricted'?: boolean;
|
|
1345
1406
|
/**
|
|
1346
1407
|
* Present on every code cell of a `.malloy` notebook, as `proseLines` is. The 0-based line of `text` (split at `\\n`) where the statement\'s code starts, its first token that is neither a note nor a comment, so the `source`, `run`, `given` or `import` keyword sits on it.
|
|
1347
1408
|
*/
|
|
@@ -1499,7 +1560,7 @@ export interface Package {
|
|
|
1499
1560
|
*/
|
|
1500
1561
|
'buildPlan'?: BuildPlan | null;
|
|
1501
1562
|
/**
|
|
1502
|
-
* Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured.
|
|
1563
|
+
* Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe.
|
|
1503
1564
|
*/
|
|
1504
1565
|
'embeddingIndex'?: PackageEmbeddingIndex | null;
|
|
1505
1566
|
}
|
|
@@ -1520,17 +1581,36 @@ export declare const PackageManifestBindingStatusEnum: {
|
|
|
1520
1581
|
};
|
|
1521
1582
|
export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
|
|
1522
1583
|
/**
|
|
1523
|
-
* State of a package\'s semantic discovery index.
|
|
1584
|
+
* State of a package\'s semantic discovery index. The server builds the index in the background when the package loads (and reloads), one package at a time across the whole server, saving each batch of vectors as it goes. Poll `status` until `ready` to know retrieval is warm. While `indexing`, `embeddedRows` rises toward `totalRows`. A restart starts every package\'s index again, but vectors already stored for unchanged content are reused, so a restart over an unchanged package embeds nothing new. Every count is scoped to the embedding model currently configured, so rows left behind by an earlier model are never counted. Read `status` for readiness and the counts for progress: they answer different questions, and only `status` tracks what the search path will do. The first read after a package loads builds the package\'s entity index and its content fingerprint, which is work a metadata read would not otherwise do. After that a read is two row counts and never waits on a sync, so polling is cheap.
|
|
1524
1585
|
*/
|
|
1525
1586
|
export interface PackageEmbeddingIndex {
|
|
1526
1587
|
/**
|
|
1527
|
-
* `
|
|
1588
|
+
* `lexical` = no embedding provider is configured, so `get_context` ranks by words only. That is a mode of the server, not a failure. `indexing` = vectors for this package are being built or are queued behind another package\'s; while this lasts and a provider is configured, `get_context` answers a search with an \"indexing\" message and no results, not a lexical ranking. `ready` = the index is warm, so the next `get_context` question about this package is ranked semantically. (It is a statement about the index, not a promise about the next response: a question whose own query embedding fails returns an error naming the provider failure.) It is decided by the same completed sync the search path gates on, not by whether cached rows happen to cover the current entity names. `error` = the index cannot serve now; `reason` and `lastError` say why. A changed `EMBEDDING_MODEL` or a changed package moves a `ready` package back to `indexing`. `cooldown` and `too-many-entities` are deprecated. Earlier versions reported them as the `status` itself; they are now the `reason` of an `error`. They stay in this list so a client generated from an earlier spec still understands every value, and they are never sent.
|
|
1528
1589
|
*/
|
|
1529
1590
|
'status'?: PackageEmbeddingIndexStatusEnum;
|
|
1530
1591
|
/**
|
|
1531
|
-
*
|
|
1592
|
+
* Present when `status` is `error` for one of two reasons that earlier versions reported as the `status` itself. `cooldown` = the provider failed (after retries) and the package is waiting out a window before the next try; `lastError.retryAt` says when. `too-many-entities` = the package has more entities than the embedding cap, which no retry fixes. Absent for other errors, such as an invalid embedding configuration, which `lastError.message` describes.
|
|
1593
|
+
*/
|
|
1594
|
+
'reason'?: PackageEmbeddingIndexReasonEnum;
|
|
1595
|
+
/**
|
|
1596
|
+
* The sync stage that failed, when `status` is `error` because of one. `keyphrase` = the LLM could not write the package\'s keyphrases (after retries), so nothing was embedded; `source_summary` = the LLM could not write the package\'s source summaries (after retries), so nothing was embedded. `lastError.message` has the reason. Absent when the embedding call itself failed.
|
|
1597
|
+
*/
|
|
1598
|
+
'stage'?: PackageEmbeddingIndexStageEnum;
|
|
1599
|
+
'keyphraseProgress'?: PackageEmbeddingIndexKeyphraseProgress;
|
|
1600
|
+
'sourceSummaryProgress'?: PackageEmbeddingIndexSourceSummaryProgress;
|
|
1601
|
+
'lastError'?: PackageEmbeddingIndexLastError;
|
|
1602
|
+
/**
|
|
1603
|
+
* When the sync now running began. Absent when none is running, including while this package waits its turn in the queue.
|
|
1604
|
+
*/
|
|
1605
|
+
'startedAt'?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Cached vectors for this package under the current embedding model. With the default `retrieval.representation` of `single` an entity contributes one row, so this equals `totalEntities` once indexed. With `facets` an entity contributes one row for its name plus one per chunk of its documentation, so this exceeds `totalEntities` on a documented model and is not a count of entities. A keyphrase row is an extra on top of those and is not counted here or in `totalRows`. Scoped by model only, not by vector length, so it counts what is cached rather than what a search could read today: after a change to `EMBEDDING_DIMENSIONS` that no question has probed yet, rows of the old length are still counted here until the next search discards them. `status` is already `indexing` in that window.
|
|
1532
1608
|
*/
|
|
1533
1609
|
'embeddedRows'?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Rows the package wants cached: the denominator for `embeddedRows`. `embeddedRows` of `totalRows` is the progress of a first index.
|
|
1612
|
+
*/
|
|
1613
|
+
'totalRows'?: number;
|
|
1534
1614
|
/**
|
|
1535
1615
|
* Entities the package currently exposes to retrieval.
|
|
1536
1616
|
*/
|
|
@@ -1545,12 +1625,71 @@ export interface PackageEmbeddingIndex {
|
|
|
1545
1625
|
'lastSyncedAt'?: string;
|
|
1546
1626
|
}
|
|
1547
1627
|
export declare const PackageEmbeddingIndexStatusEnum: {
|
|
1628
|
+
readonly Lexical: "lexical";
|
|
1548
1629
|
readonly Indexing: "indexing";
|
|
1549
1630
|
readonly Ready: "ready";
|
|
1631
|
+
readonly Error: "error";
|
|
1550
1632
|
readonly Cooldown: "cooldown";
|
|
1551
1633
|
readonly TooManyEntities: "too-many-entities";
|
|
1552
1634
|
};
|
|
1553
1635
|
export type PackageEmbeddingIndexStatusEnum = typeof PackageEmbeddingIndexStatusEnum[keyof typeof PackageEmbeddingIndexStatusEnum];
|
|
1636
|
+
export declare const PackageEmbeddingIndexReasonEnum: {
|
|
1637
|
+
readonly Cooldown: "cooldown";
|
|
1638
|
+
readonly TooManyEntities: "too-many-entities";
|
|
1639
|
+
};
|
|
1640
|
+
export type PackageEmbeddingIndexReasonEnum = typeof PackageEmbeddingIndexReasonEnum[keyof typeof PackageEmbeddingIndexReasonEnum];
|
|
1641
|
+
export declare const PackageEmbeddingIndexStageEnum: {
|
|
1642
|
+
readonly Keyphrase: "keyphrase";
|
|
1643
|
+
readonly SourceSummary: "source_summary";
|
|
1644
|
+
};
|
|
1645
|
+
export type PackageEmbeddingIndexStageEnum = typeof PackageEmbeddingIndexStageEnum[keyof typeof PackageEmbeddingIndexStageEnum];
|
|
1646
|
+
/**
|
|
1647
|
+
* Present only when keyphrases are on: the package asks for them (`retrieval.keyphrases` is `auto` or `always`, the default being `auto`) and `retrieval.llm` is configured. Counts the entities whose keyphrase comes from the LLM; an entity with a short description uses it as its keyphrase and is not counted.
|
|
1648
|
+
*/
|
|
1649
|
+
export interface PackageEmbeddingIndexKeyphraseProgress {
|
|
1650
|
+
/**
|
|
1651
|
+
* Entities that need an LLM keyphrase and have one stored.
|
|
1652
|
+
*/
|
|
1653
|
+
'done'?: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* Entities that need an LLM keyphrase.
|
|
1656
|
+
*/
|
|
1657
|
+
'total'?: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* True when `retrieval.llm.maxCallsPerSync` stopped the step before every entity had one. The status can be `ready` with `done` below `total`; the next sync (a restart) continues from there.
|
|
1660
|
+
*/
|
|
1661
|
+
'capped'?: boolean;
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Present when `status` is `error`.
|
|
1665
|
+
*/
|
|
1666
|
+
export interface PackageEmbeddingIndexLastError {
|
|
1667
|
+
/**
|
|
1668
|
+
* What went wrong, with the fix where there is one. Never contains the provider\'s URL or the API key; the full error is in the server log.
|
|
1669
|
+
*/
|
|
1670
|
+
'message'?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* The earliest time a retry can start. Nothing retries on a timer: the first `get_context` question about this package after this time starts the retry, so a package nobody asks about stays in `error` and a status poll alone never sees it recover. Absent when no retry can start (for example `too-many-entities`).
|
|
1673
|
+
*/
|
|
1674
|
+
'retryAt'?: string;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Present only when source summaries are on: the package does not turn them off (`retrieval.sourceSummary.enabled` is `auto` or `true`, the default being `auto`) and `retrieval.llm` is configured. Counts the sources that get an LLM-written summary. A source with no fields is not counted.
|
|
1678
|
+
*/
|
|
1679
|
+
export interface PackageEmbeddingIndexSourceSummaryProgress {
|
|
1680
|
+
/**
|
|
1681
|
+
* Sources that get a summary and have a current one stored.
|
|
1682
|
+
*/
|
|
1683
|
+
'done'?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* Sources that get a summary.
|
|
1686
|
+
*/
|
|
1687
|
+
'total'?: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* True when `retrieval.llm.maxCallsPerSync` stopped the step before every source had one. The status can be `ready` with `done` below `total`; the next sync (a restart) continues from there.
|
|
1690
|
+
*/
|
|
1691
|
+
'capped'?: boolean;
|
|
1692
|
+
}
|
|
1554
1693
|
/**
|
|
1555
1694
|
* Package-level Malloy Persistence policy from publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
|
|
1556
1695
|
*/
|
|
@@ -1932,7 +2071,7 @@ export interface RawNotebook {
|
|
|
1932
2071
|
*/
|
|
1933
2072
|
'modelPath'?: string;
|
|
1934
2073
|
/**
|
|
1935
|
-
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a `.malloy`
|
|
2074
|
+
* 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
2075
|
*/
|
|
1937
2076
|
'format'?: RawNotebookFormatEnum;
|
|
1938
2077
|
/**
|
|
@@ -1947,6 +2086,10 @@ export interface RawNotebook {
|
|
|
1947
2086
|
* Array of notebook cells containing raw markdown and code content
|
|
1948
2087
|
*/
|
|
1949
2088
|
'notebookCells'?: Array<NotebookCell>;
|
|
2089
|
+
/**
|
|
2090
|
+
* 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.
|
|
2091
|
+
*/
|
|
2092
|
+
'dashboard'?: DashboardManifest;
|
|
1950
2093
|
/**
|
|
1951
2094
|
* 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
2095
|
*/
|
|
@@ -2447,6 +2590,19 @@ export interface ThemePalette {
|
|
|
2447
2590
|
'tile'?: ThemePaletteTile;
|
|
2448
2591
|
'tileTitle'?: ThemePaletteTileTitle;
|
|
2449
2592
|
'mapColor'?: ThemePaletteMapColor;
|
|
2593
|
+
'border'?: ThemePaletteBorder;
|
|
2594
|
+
'cardBorder'?: ThemePaletteCardBorder;
|
|
2595
|
+
'axis'?: ThemePaletteAxis;
|
|
2596
|
+
'gridline'?: ThemePaletteGridline;
|
|
2597
|
+
'chartText'?: ThemePaletteChartText;
|
|
2598
|
+
'value'?: ThemePaletteValue;
|
|
2599
|
+
}
|
|
2600
|
+
/**
|
|
2601
|
+
* Color of chart axis domain and tick lines, per mode.
|
|
2602
|
+
*/
|
|
2603
|
+
export interface ThemePaletteAxis {
|
|
2604
|
+
'light'?: string;
|
|
2605
|
+
'dark'?: string;
|
|
2450
2606
|
}
|
|
2451
2607
|
/**
|
|
2452
2608
|
* Page and chart background per mode.
|
|
@@ -2455,6 +2611,34 @@ export interface ThemePaletteBackground {
|
|
|
2455
2611
|
'light'?: string;
|
|
2456
2612
|
'dark'?: string;
|
|
2457
2613
|
}
|
|
2614
|
+
/**
|
|
2615
|
+
* Hairline color for table gridlines and row rules, per mode.
|
|
2616
|
+
*/
|
|
2617
|
+
export interface ThemePaletteBorder {
|
|
2618
|
+
'light'?: string;
|
|
2619
|
+
'dark'?: string;
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Edge color of a dashboard card and of a pinned table header row, per mode. A step stronger than `border`, so a card reads as a card on a page whose ground and tile share one colour.
|
|
2623
|
+
*/
|
|
2624
|
+
export interface ThemePaletteCardBorder {
|
|
2625
|
+
'light'?: string;
|
|
2626
|
+
'dark'?: string;
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Color of chart text (axis labels and titles, legend, chart and header titles), per mode.
|
|
2630
|
+
*/
|
|
2631
|
+
export interface ThemePaletteChartText {
|
|
2632
|
+
'light'?: string;
|
|
2633
|
+
'dark'?: string;
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Color of chart gridlines, per mode.
|
|
2637
|
+
*/
|
|
2638
|
+
export interface ThemePaletteGridline {
|
|
2639
|
+
'light'?: string;
|
|
2640
|
+
'dark'?: string;
|
|
2641
|
+
}
|
|
2458
2642
|
/**
|
|
2459
2643
|
* Saturated end of the gradient used by choropleth maps and other sequential color scales. The renderer pairs it with a near-neutral low end so the operator only picks the brand-saturated colour.
|
|
2460
2644
|
*/
|
|
@@ -2497,6 +2681,13 @@ export interface ThemePaletteTileTitle {
|
|
|
2497
2681
|
'light'?: string;
|
|
2498
2682
|
'dark'?: string;
|
|
2499
2683
|
}
|
|
2684
|
+
/**
|
|
2685
|
+
* Color of the big-value (KPI) number in a dashboard tile, per mode.
|
|
2686
|
+
*/
|
|
2687
|
+
export interface ThemePaletteValue {
|
|
2688
|
+
'light'?: string;
|
|
2689
|
+
'dark'?: string;
|
|
2690
|
+
}
|
|
2500
2691
|
/**
|
|
2501
2692
|
* Trino database connection configuration
|
|
2502
2693
|
*/
|
|
@@ -3360,7 +3551,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
3360
3551
|
*/
|
|
3361
3552
|
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3362
3553
|
/**
|
|
3363
|
-
* Lists the dashboards in the specified package — every `.malloy` file
|
|
3554
|
+
* 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.
|
|
3364
3555
|
* @summary List package dashboards
|
|
3365
3556
|
* @param {string} environmentName Name of the environment
|
|
3366
3557
|
* @param {string} packageName Name of the package
|
|
@@ -3386,7 +3577,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
3386
3577
|
*/
|
|
3387
3578
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
3388
3579
|
/**
|
|
3389
|
-
* Lists the dashboards in the specified package — every `.malloy` file
|
|
3580
|
+
* 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.
|
|
3390
3581
|
* @summary List package dashboards
|
|
3391
3582
|
* @param {string} environmentName Name of the environment
|
|
3392
3583
|
* @param {string} packageName Name of the package
|
|
@@ -3412,7 +3603,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
3412
3603
|
*/
|
|
3413
3604
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
3414
3605
|
/**
|
|
3415
|
-
* Lists the dashboards in the specified package — every `.malloy` file
|
|
3606
|
+
* 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.
|
|
3416
3607
|
* @summary List package dashboards
|
|
3417
3608
|
* @param {string} environmentName Name of the environment
|
|
3418
3609
|
* @param {string} packageName Name of the package
|
|
@@ -3438,7 +3629,7 @@ export declare class DashboardsApi extends BaseAPI {
|
|
|
3438
3629
|
*/
|
|
3439
3630
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}, any>>;
|
|
3440
3631
|
/**
|
|
3441
|
-
* Lists the dashboards in the specified package — every `.malloy` file
|
|
3632
|
+
* 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.
|
|
3442
3633
|
* @summary List package dashboards
|
|
3443
3634
|
* @param {string} environmentName Name of the environment
|
|
3444
3635
|
* @param {string} packageName Name of the package
|
|
@@ -3989,7 +4180,7 @@ export type MaterializationActionActionEnum = typeof MaterializationActionAction
|
|
|
3989
4180
|
*/
|
|
3990
4181
|
export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3991
4182
|
/**
|
|
3992
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4183
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
3993
4184
|
* @summary Compile Malloy source code
|
|
3994
4185
|
* @param {string} environmentName Name of the environment
|
|
3995
4186
|
* @param {string} packageName Name of the package
|
|
@@ -4012,7 +4203,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4012
4203
|
*/
|
|
4013
4204
|
executeQueryModel: (environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4014
4205
|
/**
|
|
4015
|
-
* 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
|
|
4206
|
+
* 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.
|
|
4016
4207
|
* @summary Get compiled Malloy model
|
|
4017
4208
|
* @param {string} environmentName Name of the environment
|
|
4018
4209
|
* @param {string} packageName Name of the package
|
|
@@ -4024,7 +4215,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4024
4215
|
*/
|
|
4025
4216
|
getModel: (environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4026
4217
|
/**
|
|
4027
|
-
* 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`
|
|
4218
|
+
* 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.
|
|
4028
4219
|
* @summary List package models
|
|
4029
4220
|
* @param {string} environmentName Name of the environment
|
|
4030
4221
|
* @param {string} packageName Name of the package
|
|
@@ -4035,11 +4226,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4035
4226
|
*/
|
|
4036
4227
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4037
4228
|
/**
|
|
4038
|
-
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts
|
|
4039
|
-
* @summary Write a dashboard file into the package
|
|
4229
|
+
* 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.
|
|
4230
|
+
* @summary Write a dashboard or notebook file into the package
|
|
4040
4231
|
* @param {string} environmentName Name of the environment
|
|
4041
4232
|
* @param {string} packageName Name of the package
|
|
4042
|
-
* @param {string} path The
|
|
4233
|
+
* @param {string} path The file, `dashboards/<slug>.malloy` or `notebooks/<slug>.malloy`
|
|
4043
4234
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4044
4235
|
* @param {string} [versionId] Version identifier for the package
|
|
4045
4236
|
* @param {*} [options] Override http request option.
|
|
@@ -4052,7 +4243,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4052
4243
|
*/
|
|
4053
4244
|
export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
4054
4245
|
/**
|
|
4055
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4246
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4056
4247
|
* @summary Compile Malloy source code
|
|
4057
4248
|
* @param {string} environmentName Name of the environment
|
|
4058
4249
|
* @param {string} packageName Name of the package
|
|
@@ -4075,7 +4266,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4075
4266
|
*/
|
|
4076
4267
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryResult>>;
|
|
4077
4268
|
/**
|
|
4078
|
-
* 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
|
|
4269
|
+
* 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.
|
|
4079
4270
|
* @summary Get compiled Malloy model
|
|
4080
4271
|
* @param {string} environmentName Name of the environment
|
|
4081
4272
|
* @param {string} packageName Name of the package
|
|
@@ -4087,7 +4278,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4087
4278
|
*/
|
|
4088
4279
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompiledModel>>;
|
|
4089
4280
|
/**
|
|
4090
|
-
* 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`
|
|
4281
|
+
* 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.
|
|
4091
4282
|
* @summary List package models
|
|
4092
4283
|
* @param {string} environmentName Name of the environment
|
|
4093
4284
|
* @param {string} packageName Name of the package
|
|
@@ -4098,11 +4289,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4098
4289
|
*/
|
|
4099
4290
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
4100
4291
|
/**
|
|
4101
|
-
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts
|
|
4102
|
-
* @summary Write a dashboard file into the package
|
|
4292
|
+
* 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.
|
|
4293
|
+
* @summary Write a dashboard or notebook file into the package
|
|
4103
4294
|
* @param {string} environmentName Name of the environment
|
|
4104
4295
|
* @param {string} packageName Name of the package
|
|
4105
|
-
* @param {string} path The
|
|
4296
|
+
* @param {string} path The file, `dashboards/<slug>.malloy` or `notebooks/<slug>.malloy`
|
|
4106
4297
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4107
4298
|
* @param {string} [versionId] Version identifier for the package
|
|
4108
4299
|
* @param {*} [options] Override http request option.
|
|
@@ -4115,7 +4306,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4115
4306
|
*/
|
|
4116
4307
|
export declare const ModelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4117
4308
|
/**
|
|
4118
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4309
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4119
4310
|
* @summary Compile Malloy source code
|
|
4120
4311
|
* @param {string} environmentName Name of the environment
|
|
4121
4312
|
* @param {string} packageName Name of the package
|
|
@@ -4138,7 +4329,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4138
4329
|
*/
|
|
4139
4330
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<QueryResult>;
|
|
4140
4331
|
/**
|
|
4141
|
-
* 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
|
|
4332
|
+
* 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.
|
|
4142
4333
|
* @summary Get compiled Malloy model
|
|
4143
4334
|
* @param {string} environmentName Name of the environment
|
|
4144
4335
|
* @param {string} packageName Name of the package
|
|
@@ -4150,7 +4341,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4150
4341
|
*/
|
|
4151
4342
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<CompiledModel>;
|
|
4152
4343
|
/**
|
|
4153
|
-
* 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`
|
|
4344
|
+
* 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.
|
|
4154
4345
|
* @summary List package models
|
|
4155
4346
|
* @param {string} environmentName Name of the environment
|
|
4156
4347
|
* @param {string} packageName Name of the package
|
|
@@ -4161,11 +4352,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4161
4352
|
*/
|
|
4162
4353
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
4163
4354
|
/**
|
|
4164
|
-
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts
|
|
4165
|
-
* @summary Write a dashboard file into the package
|
|
4355
|
+
* 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.
|
|
4356
|
+
* @summary Write a dashboard or notebook file into the package
|
|
4166
4357
|
* @param {string} environmentName Name of the environment
|
|
4167
4358
|
* @param {string} packageName Name of the package
|
|
4168
|
-
* @param {string} path The
|
|
4359
|
+
* @param {string} path The file, `dashboards/<slug>.malloy` or `notebooks/<slug>.malloy`
|
|
4169
4360
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4170
4361
|
* @param {string} [versionId] Version identifier for the package
|
|
4171
4362
|
* @param {*} [options] Override http request option.
|
|
@@ -4178,7 +4369,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4178
4369
|
*/
|
|
4179
4370
|
export declare class ModelsApi extends BaseAPI {
|
|
4180
4371
|
/**
|
|
4181
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4372
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4182
4373
|
* @summary Compile Malloy source code
|
|
4183
4374
|
* @param {string} environmentName Name of the environment
|
|
4184
4375
|
* @param {string} packageName Name of the package
|
|
@@ -4201,7 +4392,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4201
4392
|
*/
|
|
4202
4393
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryResult, any, {}, any>>;
|
|
4203
4394
|
/**
|
|
4204
|
-
* 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
|
|
4395
|
+
* 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.
|
|
4205
4396
|
* @summary Get compiled Malloy model
|
|
4206
4397
|
* @param {string} environmentName Name of the environment
|
|
4207
4398
|
* @param {string} packageName Name of the package
|
|
@@ -4213,7 +4404,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4213
4404
|
*/
|
|
4214
4405
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompiledModel, any, {}, any>>;
|
|
4215
4406
|
/**
|
|
4216
|
-
* 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`
|
|
4407
|
+
* 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.
|
|
4217
4408
|
* @summary List package models
|
|
4218
4409
|
* @param {string} environmentName Name of the environment
|
|
4219
4410
|
* @param {string} packageName Name of the package
|
|
@@ -4224,11 +4415,11 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4224
4415
|
*/
|
|
4225
4416
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
4226
4417
|
/**
|
|
4227
|
-
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts
|
|
4228
|
-
* @summary Write a dashboard file into the package
|
|
4418
|
+
* 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.
|
|
4419
|
+
* @summary Write a dashboard or notebook file into the package
|
|
4229
4420
|
* @param {string} environmentName Name of the environment
|
|
4230
4421
|
* @param {string} packageName Name of the package
|
|
4231
|
-
* @param {string} path The
|
|
4422
|
+
* @param {string} path The file, `dashboards/<slug>.malloy` or `notebooks/<slug>.malloy`
|
|
4232
4423
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4233
4424
|
* @param {string} [versionId] Version identifier for the package
|
|
4234
4425
|
* @param {*} [options] Override http request option.
|
|
@@ -4241,7 +4432,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4241
4432
|
*/
|
|
4242
4433
|
export declare const NotebooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4243
4434
|
/**
|
|
4244
|
-
* 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
|
|
4435
|
+
* 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.
|
|
4245
4436
|
* @summary Execute a specific notebook cell
|
|
4246
4437
|
* @param {string} environmentName Name of the environment
|
|
4247
4438
|
* @param {string} packageName Name of the package
|
|
@@ -4256,7 +4447,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4256
4447
|
*/
|
|
4257
4448
|
executeNotebookCell: (environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4258
4449
|
/**
|
|
4259
|
-
* 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
|
|
4450
|
+
* 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.
|
|
4260
4451
|
* @summary Get Malloy notebook cells
|
|
4261
4452
|
* @param {string} environmentName Name of the environment
|
|
4262
4453
|
* @param {string} packageName Name of the package
|
|
@@ -4267,7 +4458,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4267
4458
|
*/
|
|
4268
4459
|
getNotebook: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4269
4460
|
/**
|
|
4270
|
-
* Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file
|
|
4461
|
+
* 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.
|
|
4271
4462
|
* @summary List package notebooks
|
|
4272
4463
|
* @param {string} environmentName Name of the environment
|
|
4273
4464
|
* @param {string} packageName Name of the package
|
|
@@ -4282,7 +4473,7 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4282
4473
|
*/
|
|
4283
4474
|
export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
4284
4475
|
/**
|
|
4285
|
-
* 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
|
|
4476
|
+
* 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.
|
|
4286
4477
|
* @summary Execute a specific notebook cell
|
|
4287
4478
|
* @param {string} environmentName Name of the environment
|
|
4288
4479
|
* @param {string} packageName Name of the package
|
|
@@ -4297,7 +4488,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4297
4488
|
*/
|
|
4298
4489
|
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>>;
|
|
4299
4490
|
/**
|
|
4300
|
-
* 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
|
|
4491
|
+
* 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.
|
|
4301
4492
|
* @summary Get Malloy notebook cells
|
|
4302
4493
|
* @param {string} environmentName Name of the environment
|
|
4303
4494
|
* @param {string} packageName Name of the package
|
|
@@ -4308,7 +4499,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4308
4499
|
*/
|
|
4309
4500
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RawNotebook>>;
|
|
4310
4501
|
/**
|
|
4311
|
-
* Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file
|
|
4502
|
+
* 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.
|
|
4312
4503
|
* @summary List package notebooks
|
|
4313
4504
|
* @param {string} environmentName Name of the environment
|
|
4314
4505
|
* @param {string} packageName Name of the package
|
|
@@ -4323,7 +4514,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4323
4514
|
*/
|
|
4324
4515
|
export declare const NotebooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4325
4516
|
/**
|
|
4326
|
-
* 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
|
|
4517
|
+
* 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.
|
|
4327
4518
|
* @summary Execute a specific notebook cell
|
|
4328
4519
|
* @param {string} environmentName Name of the environment
|
|
4329
4520
|
* @param {string} packageName Name of the package
|
|
@@ -4338,7 +4529,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4338
4529
|
*/
|
|
4339
4530
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): AxiosPromise<NotebookCellResult>;
|
|
4340
4531
|
/**
|
|
4341
|
-
* 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
|
|
4532
|
+
* 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.
|
|
4342
4533
|
* @summary Get Malloy notebook cells
|
|
4343
4534
|
* @param {string} environmentName Name of the environment
|
|
4344
4535
|
* @param {string} packageName Name of the package
|
|
@@ -4349,7 +4540,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4349
4540
|
*/
|
|
4350
4541
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<RawNotebook>;
|
|
4351
4542
|
/**
|
|
4352
|
-
* Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file
|
|
4543
|
+
* 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.
|
|
4353
4544
|
* @summary List package notebooks
|
|
4354
4545
|
* @param {string} environmentName Name of the environment
|
|
4355
4546
|
* @param {string} packageName Name of the package
|
|
@@ -4364,7 +4555,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4364
4555
|
*/
|
|
4365
4556
|
export declare class NotebooksApi extends BaseAPI {
|
|
4366
4557
|
/**
|
|
4367
|
-
* 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
|
|
4558
|
+
* 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.
|
|
4368
4559
|
* @summary Execute a specific notebook cell
|
|
4369
4560
|
* @param {string} environmentName Name of the environment
|
|
4370
4561
|
* @param {string} packageName Name of the package
|
|
@@ -4379,7 +4570,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
4379
4570
|
*/
|
|
4380
4571
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<NotebookCellResult, any, {}, any>>;
|
|
4381
4572
|
/**
|
|
4382
|
-
* 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
|
|
4573
|
+
* 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.
|
|
4383
4574
|
* @summary Get Malloy notebook cells
|
|
4384
4575
|
* @param {string} environmentName Name of the environment
|
|
4385
4576
|
* @param {string} packageName Name of the package
|
|
@@ -4390,7 +4581,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
4390
4581
|
*/
|
|
4391
4582
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<RawNotebook, any, {}, any>>;
|
|
4392
4583
|
/**
|
|
4393
|
-
* Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file
|
|
4584
|
+
* 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.
|
|
4394
4585
|
* @summary List package notebooks
|
|
4395
4586
|
* @param {string} environmentName Name of the environment
|
|
4396
4587
|
* @param {string} packageName Name of the package
|