@malloy-publisher/sdk 0.9.7 → 0.9.9
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/README.md +117 -17
- package/dist/{RenderedResult-CkUS04tl.es.js → RenderedResult-BHuJpdSn.es.js} +2 -2
- package/dist/{RenderedResult-qnpbr4tc.cjs.js → RenderedResult-Bw7EQc42.cjs.js} +1 -1
- package/dist/ServerProvider-B0dUY8be.cjs.js +1 -0
- package/dist/{ServerProvider-DnLLeXEX.es.js → ServerProvider-CQy4jVYK.es.js} +1602 -1074
- package/dist/builder/index.cjs.js +93 -93
- package/dist/builder/index.es.js +4630 -4562
- package/dist/builder-entry.d.ts +13 -12
- package/dist/client/api.d.ts +893 -104
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +125 -104
- package/dist/components/Dashboard/DashboardTile.d.ts +3 -1
- package/dist/components/Dashboard/DashboardView.d.ts +1 -3
- package/dist/components/Dashboard/index.d.ts +0 -2
- package/dist/components/DocumentCreate/createDocument.d.ts +29 -9
- package/dist/components/DocumentCreate/documentPath.d.ts +21 -6
- package/dist/components/DocumentCreate/guards.d.ts +2 -3
- package/dist/components/DocumentCreate/index.d.ts +2 -3
- package/dist/components/DocumentCreate/newNotebook.d.ts +14 -5
- package/dist/components/DocumentStorage/BrowserDocumentStorage.d.ts +6 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +52 -24
- package/dist/components/Loading.d.ts +1 -1
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -3
- package/dist/components/Package/DataSchemaDialog.d.ts +26 -0
- package/dist/components/Package/NewDocumentDialog.d.ts +19 -10
- package/dist/components/Package/Package.d.ts +14 -9
- package/dist/components/Package/documentLocation.d.ts +66 -23
- package/dist/components/Package/index.d.ts +3 -2
- package/dist/components/Package/reportQueries.d.ts +8 -0
- package/dist/components/Package/useDocumentLocation.d.ts +36 -6
- package/dist/components/Package/useDraftLayout.d.ts +20 -0
- package/dist/components/Report/CellReport.d.ts +89 -0
- package/dist/components/Report/LinearReport.d.ts +18 -0
- package/dist/components/Report/Report.d.ts +62 -0
- package/dist/components/Report/index.d.ts +2 -0
- package/dist/components/Report/telemetry.d.ts +163 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.d.ts +5 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/EditorSurface.d.ts +10 -7
- package/dist/components/{DashboardBuilder/DashboardBuilder.d.ts → ReportBuilder/ReportBuilder.d.ts} +17 -8
- package/dist/components/{DashboardBuilder/DashboardEditor.d.ts → ReportBuilder/ReportEditor.d.ts} +41 -14
- package/dist/components/ReportBuilder/builderReport.d.ts +14 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/catalog.d.ts +8 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/document.d.ts +3 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/documentSession.d.ts +1 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/imports.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/malloyTree.d.ts +9 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/newDashboard.d.ts +7 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/readDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/readForEditor.d.ts +1 -1
- package/dist/components/ReportBuilder/reportTag.d.ts +52 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/spliceDocument.d.ts +1 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/useControlBindings.d.ts +2 -2
- package/dist/components/ReportBuilder/useEditorCatalog.d.ts +25 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/useHostCopy.d.ts +5 -3
- package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder/useDashboardEditor.d.ts → ReportBuilder/useReportEditor.d.ts} +3 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.d.ts +6 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/useTileEditing.d.ts +2 -2
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/components/drill/resolveDrill.d.ts +8 -1
- package/dist/components/drill/useDrillSelf.d.ts +4 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/{Dashboard → legacy}/Dashboard.d.ts +15 -9
- package/dist/components/legacy/MalloynbCells.d.ts +13 -0
- package/dist/components/legacy/Notebook.d.ts +15 -0
- package/dist/components/{DashboardBuilder → legacy}/NotebookEditor.d.ts +3 -3
- package/dist/components/legacy/builderNames.d.ts +10 -0
- package/dist/components/legacy/index.d.ts +11 -0
- package/dist/components/legacy/kindAdapter.d.ts +11 -0
- package/dist/components/legacy/kindTypedDrafts.d.ts +10 -0
- package/dist/components/legacy/nameAlias.d.ts +44 -0
- package/dist/components/legacy/queryKeys.d.ts +8 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.es.js +8216 -7635
- package/dist/text/index.es.js +2 -2
- package/dist/{text-entry-CA0LZ1xL.es.js → text-entry-72YFLeNk.es.js} +10 -10
- package/dist/{useCompiledDocument-Bf72Ob5v.es.js → useCompiledDocument-1dgF5CC9.es.js} +4593 -4395
- package/dist/useCompiledDocument-BKyRnXmA.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +32 -24
- package/src/components/Dashboard/DashboardTile.tsx +17 -0
- package/src/components/Dashboard/DashboardView.spec.tsx +0 -21
- package/src/components/Dashboard/DashboardView.tsx +8 -24
- package/src/components/Dashboard/dropValueUrlTags.spec.ts +1 -4
- package/src/components/Dashboard/index.ts +0 -2
- package/src/components/DocumentCreate/createDocument.spec.ts +346 -53
- package/src/components/DocumentCreate/createDocument.ts +143 -63
- package/src/components/DocumentCreate/documentPath.ts +41 -12
- package/src/components/DocumentCreate/guards.ts +7 -15
- package/src/components/DocumentCreate/index.ts +3 -7
- package/src/components/DocumentCreate/newNotebook.spec.ts +113 -43
- package/src/components/DocumentCreate/newNotebook.ts +32 -10
- package/src/components/DocumentStorage/BrowserDocumentStorage.spec.ts +130 -28
- package/src/components/DocumentStorage/BrowserDocumentStorage.ts +78 -40
- package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +426 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +57 -24
- package/src/components/Home/AddEnvironmentDialog.tsx +1 -1
- package/src/components/Home/Home.tsx +1 -1
- package/src/components/Loading.tsx +1 -1
- package/src/components/Model/SourcesExplorer.tsx +1 -1
- package/src/components/Notebook/NotebookCell.tsx +6 -5
- package/src/components/Notebook/cellKind.spec.ts +15 -7
- package/src/components/Package/ContentTypeIcon.tsx +16 -3
- package/src/components/Package/DataSchemaDialog.spec.tsx +85 -0
- package/src/components/Package/DataSchemaDialog.tsx +367 -0
- package/src/components/Package/NewDocumentDialog.spec.tsx +145 -88
- package/src/components/Package/NewDocumentDialog.tsx +93 -48
- package/src/components/Package/Package.agents.spec.tsx +76 -0
- package/src/components/Package/Package.artifacts.spec.tsx +79 -60
- package/src/components/Package/Package.create.spec.tsx +126 -112
- package/src/components/Package/Package.notebooks.spec.tsx +46 -27
- package/src/components/Package/Package.spec.tsx +43 -30
- package/src/components/Package/Package.tsx +217 -293
- package/src/components/Package/documentLocation.spec.ts +145 -50
- package/src/components/Package/documentLocation.ts +118 -39
- package/src/components/Package/index.ts +12 -3
- package/src/components/Package/reportQueries.ts +25 -0
- package/src/components/Package/useDocumentLocation.spec.ts +58 -0
- package/src/components/Package/useDocumentLocation.ts +90 -32
- package/src/components/Package/useDraftLayout.spec.tsx +143 -0
- package/src/components/Package/useDraftLayout.ts +81 -0
- package/src/components/Prose.spec.tsx +3 -3
- package/src/components/RenderedResult/RenderedResult.tsx +1 -1
- package/src/components/Report/CellReport.spec.tsx +155 -0
- package/src/components/{Notebook/Notebook.tsx → Report/CellReport.tsx} +178 -220
- package/src/components/Report/LinearReport.tsx +71 -0
- package/src/components/Report/Report.spec.tsx +238 -0
- package/src/components/Report/Report.telemetry.spec.tsx +292 -0
- package/src/components/Report/Report.tsx +277 -0
- package/src/components/Report/index.ts +12 -0
- package/src/components/Report/telemetry.spec.ts +90 -0
- package/src/components/Report/telemetry.ts +250 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.tsx +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.tsx +6 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.tsx +33 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/DrillDialog.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/EditorSurface.tsx +67 -107
- package/src/components/{DashboardBuilder → ReportBuilder}/FilterDialog.tsx +3 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.charts.spec.tsx → ReportBuilder/ReportBuilder.charts.spec.tsx} +4 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.exit.spec.tsx → ReportBuilder/ReportBuilder.exit.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.inline.spec.tsx → ReportBuilder/ReportBuilder.inline.spec.tsx} +4 -4
- package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +145 -0
- package/src/components/{DashboardBuilder/DashboardBuilder.notebook.spec.tsx → ReportBuilder/ReportBuilder.notebook.spec.tsx} +22 -21
- package/src/components/{DashboardBuilder/DashboardBuilder.openDraft.spec.tsx → ReportBuilder/ReportBuilder.openDraft.spec.tsx} +3 -3
- package/src/components/{DashboardBuilder/DashboardBuilder.sources.spec.tsx → ReportBuilder/ReportBuilder.sources.spec.tsx} +19 -8
- package/src/components/{DashboardBuilder/DashboardBuilder.spec.tsx → ReportBuilder/ReportBuilder.spec.tsx} +34 -34
- package/src/components/{DashboardBuilder/DashboardBuilder.textTiles.spec.tsx → ReportBuilder/ReportBuilder.textTiles.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.tsx → ReportBuilder/ReportBuilder.tsx} +46 -21
- package/src/components/{DashboardBuilder/DashboardEditor.authoritative.spec.tsx → ReportBuilder/ReportEditor.authoritative.spec.tsx} +28 -20
- package/src/components/{DashboardBuilder/DashboardEditor.emptyStart.spec.tsx → ReportBuilder/ReportEditor.emptyStart.spec.tsx} +19 -11
- package/src/components/{DashboardBuilder/DashboardEditor.filterTag.spec.tsx → ReportBuilder/ReportEditor.filterTag.spec.tsx} +7 -7
- package/src/components/{DashboardBuilder/DashboardEditor.notebook.spec.tsx → ReportBuilder/ReportEditor.notebook.spec.tsx} +70 -49
- package/src/components/{DashboardBuilder/DashboardEditor.package.spec.tsx → ReportBuilder/ReportEditor.package.spec.tsx} +52 -8
- package/src/components/{DashboardBuilder/DashboardEditor.resourceUri.spec.tsx → ReportBuilder/ReportEditor.resourceUri.spec.tsx} +50 -18
- package/src/components/{DashboardBuilder/DashboardEditor.spec.tsx → ReportBuilder/ReportEditor.spec.tsx} +65 -20
- package/src/components/{DashboardBuilder/DashboardEditor.textSource.spec.tsx → ReportBuilder/ReportEditor.textSource.spec.tsx} +6 -6
- package/src/components/{DashboardBuilder/DashboardEditor.tsx → ReportBuilder/ReportEditor.tsx} +92 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/addTile.compile.spec.ts +1 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/artifactBlock.spec.ts +21 -29
- package/src/components/ReportBuilder/builderReport.ts +53 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.spec.ts +28 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.ts +17 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/controls.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/document.ts +4 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.spec.ts +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.spec.ts +6 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.ts +8 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.chart.spec.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.convert.spec.ts +9 -13
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.read.spec.ts +15 -15
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.ts +7 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.ts +25 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.spec.ts +12 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.ts +11 -24
- package/src/components/{DashboardBuilder → ReportBuilder}/preview.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.spec.ts +64 -36
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.ts +33 -32
- package/src/components/ReportBuilder/readForEditor.spec.ts +96 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readForEditor.ts +3 -11
- package/src/components/ReportBuilder/reportTag.ts +108 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.imports.spec.ts +28 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.spec.ts +32 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.ts +37 -60
- package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.spec.ts +3 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/testing/artifactTagParity.json +2 -2
- package/src/components/ReportBuilder/testing/drillResolution.json +279 -0
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +125 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/textTiles.spec.ts +66 -143
- package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.ts +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/useControlBindings.ts +2 -2
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +156 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +119 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/useHostCopy.ts +7 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.ts +56 -35
- package/src/components/{DashboardBuilder/useDashboardEditor.spec.ts → ReportBuilder/useReportEditor.spec.ts} +6 -6
- package/src/components/{DashboardBuilder/useDashboardEditor.ts → ReportBuilder/useReportEditor.ts} +6 -17
- package/src/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.ts +36 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/useTileEditing.ts +2 -2
- package/src/components/ServerProvider.tsx +2 -0
- package/src/components/drill/resolveDrill.ts +9 -2
- package/src/components/drill/useDrill.tsx +1 -0
- package/src/components/drill/useDrillSelf.spec.tsx +60 -7
- package/src/components/drill/useDrillSelf.ts +29 -12
- package/src/components/index.ts +2 -1
- package/src/components/{Dashboard → legacy}/Dashboard.spec.tsx +1 -1
- package/src/components/{Dashboard → legacy}/Dashboard.tsx +40 -28
- package/src/components/legacy/MalloynbCells.tsx +88 -0
- package/src/components/{Notebook → legacy}/Notebook.served.spec.tsx +17 -13
- package/src/components/{Notebook → legacy}/Notebook.spec.tsx +24 -20
- package/src/components/legacy/Notebook.tsx +44 -0
- package/src/components/{DashboardBuilder → legacy}/NotebookEditor.tsx +7 -4
- package/src/components/legacy/builderNames.ts +25 -0
- package/src/components/legacy/index.ts +20 -0
- package/src/components/legacy/kindAdapter.ts +19 -0
- package/src/components/legacy/kindTypedDrafts.ts +34 -0
- package/src/components/legacy/nameAlias.spec.ts +124 -0
- package/src/components/legacy/nameAlias.ts +95 -0
- package/src/components/legacy/queryKeys.ts +26 -0
- package/src/hooks/useGivensState.spec.ts +9 -9
- package/src/mainEntry.spec.ts +1 -1
- package/src/textEntry.spec.ts +9 -9
- package/src/utils/formatting.spec.ts +5 -5
- package/src/utils/parsing.spec.ts +1 -1
- package/src/utils/parsing.ts +1 -1
- package/dist/ServerProvider-Gj-im5VD.cjs.js +0 -1
- package/dist/components/Dashboard/telemetry.d.ts +0 -73
- package/dist/components/DashboardBuilder/builderReport.d.ts +0 -13
- package/dist/components/DashboardBuilder/telemetry.d.ts +0 -43
- package/dist/components/DocumentCreate/events.d.ts +0 -10
- package/dist/components/Notebook/Notebook.d.ts +0 -52
- package/dist/components/Notebook/index.d.ts +0 -1
- package/dist/useCompiledDocument-tBejqZ7s.cjs.js +0 -142
- package/src/components/Dashboard/telemetry.ts +0 -75
- package/src/components/DashboardBuilder/builderReport.ts +0 -74
- package/src/components/DashboardBuilder/readForEditor.spec.ts +0 -80
- package/src/components/DashboardBuilder/telemetry.ts +0 -47
- package/src/components/DashboardBuilder/testing/documentKindRule.json +0 -40
- package/src/components/DocumentCreate/events.ts +0 -15
- package/src/components/Notebook/index.ts +0 -4
- /package/dist/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/ChartPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/DrillDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterStrip.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TextTileBody.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileFrame.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileMenu.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/annotationText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/changedTile.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/chartLine.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/controls.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/inlineEdit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/layout.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/loadMalloy.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/openDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/preview.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/sortable.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/spliceResult.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tagParse.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/inline.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/resize.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useExitGuard.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useFilterForm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileReorder.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileResize.d.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.render.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/FilterStrip.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineText.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TextTileBody.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileFrame.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileMenu.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/__test__/inventory.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/artifactTagParity.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/catalog.aggregate.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/controls.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/emptyStart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/inlineEdit.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/invariants.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/keepRowStructure.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/layout.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/moveIntoGap.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/openDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.shapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/scannerShapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.chart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceResult.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/statementExtent.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/inline.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/resize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/urlRenderTags.json +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.overlay.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.existing.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/withGaps.spec.ts +0 -0
- /package/src/components/{Notebook → legacy}/Notebook.layout.spec.tsx +0 -0
package/dist/client/api.d.ts
CHANGED
|
@@ -1,6 +1,112 @@
|
|
|
1
1
|
import { Configuration } from './configuration';
|
|
2
2
|
import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
import { RequestArgs, BaseAPI } from './base';
|
|
4
|
+
/**
|
|
5
|
+
* An agent a package declares, resolved to its instructions, skill files and schedules. Adopt it only when the user asks for it by name.
|
|
6
|
+
*/
|
|
7
|
+
export interface Agent {
|
|
8
|
+
'name'?: string;
|
|
9
|
+
'description'?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The model the agent asks for; `inherit` when the manifest sets none.
|
|
12
|
+
*/
|
|
13
|
+
'model'?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The instructions file\'s Markdown, at most 16 KB.
|
|
16
|
+
*/
|
|
17
|
+
'instructions'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The agent\'s own skill files, sorted by `relative_filepath`.
|
|
20
|
+
*/
|
|
21
|
+
'skills'?: Array<AgentSkillFile>;
|
|
22
|
+
'schedules'?: Array<AgentSchedule>;
|
|
23
|
+
'warnings'?: Array<string>;
|
|
24
|
+
'source'?: AgentSource;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A cron schedule an agent declares. Validated and exposed only: the server never runs it.
|
|
28
|
+
*/
|
|
29
|
+
export interface AgentSchedule {
|
|
30
|
+
/**
|
|
31
|
+
* A 5-field UNIX cron expression, evaluated in UTC.
|
|
32
|
+
*/
|
|
33
|
+
'cron'?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Package-relative path of the task file, as written in the manifest.
|
|
36
|
+
*/
|
|
37
|
+
'task'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The task file\'s Markdown. Only on the resolved agent, not the listing.
|
|
40
|
+
*/
|
|
41
|
+
'taskContent'?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* One of an agent\'s skill files. The snake_case keys (`relative_filepath`, `file_contents`) mirror the MCP `get_agent` tool the shape is shared with, unlike the camelCase used elsewhere in this API.
|
|
45
|
+
*/
|
|
46
|
+
export interface AgentSkillFile {
|
|
47
|
+
/**
|
|
48
|
+
* Path relative to the agent\'s skills directory, for example `analyst-conventions/SKILL.md` or `analyst-conventions/reference/glossary.md`.
|
|
49
|
+
*/
|
|
50
|
+
'relative_filepath'?: string;
|
|
51
|
+
/**
|
|
52
|
+
* A `SKILL.md` is re-emitted with only a quoted `name` and `description` in its frontmatter; reference files are served raw. Absent when the agent was fetched with `skills=summary`.
|
|
53
|
+
*/
|
|
54
|
+
'file_contents'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* A `SKILL.md`\'s name. Only in the `skills=summary` view.
|
|
57
|
+
*/
|
|
58
|
+
'name'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A `SKILL.md`\'s description. Only in the `skills=summary` view.
|
|
61
|
+
*/
|
|
62
|
+
'description'?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Size of `file_contents` in UTF-8 bytes. Only in the `skills=summary` view.
|
|
65
|
+
*/
|
|
66
|
+
'bytes'?: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* One agent skill file, with the pin of the definition it belongs to.
|
|
70
|
+
*/
|
|
71
|
+
export interface AgentSkillRead {
|
|
72
|
+
'relative_filepath'?: string;
|
|
73
|
+
'file_contents'?: string;
|
|
74
|
+
'source'?: AgentSource;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* What a resolved agent was read from, so a runner can prove which bytes ran.
|
|
78
|
+
*/
|
|
79
|
+
export interface AgentSource {
|
|
80
|
+
'environment'?: string;
|
|
81
|
+
'package'?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The package\'s `sourceContentSha` at the load this definition came from.
|
|
84
|
+
*/
|
|
85
|
+
'sourceContentSha'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* SHA-256 over this agent\'s canonical config, instructions, skill files and task files. Editing another agent, or a model, does not move it.
|
|
88
|
+
*/
|
|
89
|
+
'definitionSha'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The package\'s `servedRevision` at the load this definition came from.
|
|
92
|
+
*/
|
|
93
|
+
'servedRevision'?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* One agent a package declares, without its instructions or skills.
|
|
97
|
+
*/
|
|
98
|
+
export interface AgentSummary {
|
|
99
|
+
/**
|
|
100
|
+
* The agent\'s name (its key in the manifest\'s `agents` object).
|
|
101
|
+
*/
|
|
102
|
+
'name'?: string;
|
|
103
|
+
'description'?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The model the agent asks for; `inherit` when the manifest sets none.
|
|
106
|
+
*/
|
|
107
|
+
'model'?: string;
|
|
108
|
+
'schedules'?: Array<AgentSchedule>;
|
|
109
|
+
}
|
|
4
110
|
/**
|
|
5
111
|
* Attached DuckDB database
|
|
6
112
|
*/
|
|
@@ -314,11 +420,17 @@ export type CompileResultStatusEnum = typeof CompileResultStatusEnum[keyof typeo
|
|
|
314
420
|
*/
|
|
315
421
|
export interface CompiledDocument {
|
|
316
422
|
/**
|
|
317
|
-
*
|
|
423
|
+
* The report\'s layout, by the one rule every report follows: the tag\'s `layout=`, else grid when it lists `tiles` or carries a `dashboard { … }` grid tag, else linear.
|
|
424
|
+
*/
|
|
425
|
+
'layout'?: CompiledDocumentLayoutEnum;
|
|
426
|
+
/**
|
|
427
|
+
* DEPRECATED: read `layout`. The same thing in the old vocabulary: `dashboard` for grid, `notebook` for linear.
|
|
428
|
+
* @deprecated
|
|
318
429
|
*/
|
|
319
430
|
'kind'?: CompiledDocumentKindEnum;
|
|
320
431
|
/**
|
|
321
432
|
* 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.
|
|
433
|
+
* @deprecated
|
|
322
434
|
*/
|
|
323
435
|
'manifest'?: DashboardManifest;
|
|
324
436
|
/**
|
|
@@ -326,6 +438,11 @@ export interface CompiledDocument {
|
|
|
326
438
|
*/
|
|
327
439
|
'cells'?: Array<NotebookCell>;
|
|
328
440
|
}
|
|
441
|
+
export declare const CompiledDocumentLayoutEnum: {
|
|
442
|
+
readonly Grid: "grid";
|
|
443
|
+
readonly Linear: "linear";
|
|
444
|
+
};
|
|
445
|
+
export type CompiledDocumentLayoutEnum = typeof CompiledDocumentLayoutEnum[keyof typeof CompiledDocumentLayoutEnum];
|
|
329
446
|
export declare const CompiledDocumentKindEnum: {
|
|
330
447
|
readonly Dashboard: "dashboard";
|
|
331
448
|
readonly Notebook: "notebook";
|
|
@@ -527,7 +644,7 @@ export interface CreateMaterializationRequest {
|
|
|
527
644
|
'runContext'?: RunContext | null;
|
|
528
645
|
}
|
|
529
646
|
/**
|
|
530
|
-
*
|
|
647
|
+
* DEPRECATED: use `Report`. A grid report (see list-reports), as the deprecated list-dashboards route lists it. The list entry; see DashboardManifest for the detail a viewer needs to render one.
|
|
531
648
|
*/
|
|
532
649
|
export interface Dashboard {
|
|
533
650
|
/**
|
|
@@ -539,11 +656,11 @@ export interface Dashboard {
|
|
|
539
656
|
*/
|
|
540
657
|
'packageName'?: string;
|
|
541
658
|
/**
|
|
542
|
-
* The
|
|
659
|
+
* The report\'s filename basename: a display label, and the segment of the deprecated get-dashboard URL. Not an identity: two reports may share it. A change since reports: it used to be unique within the package (every dashboard was directly under `dashboards/`), and a client that keyed a map on it must key on `path` instead.
|
|
543
660
|
*/
|
|
544
661
|
'name'?: string;
|
|
545
662
|
/**
|
|
546
|
-
* Relative path to the
|
|
663
|
+
* Relative path to the report file within its package directory, which is its identity
|
|
547
664
|
*/
|
|
548
665
|
'path'?: string;
|
|
549
666
|
/**
|
|
@@ -560,7 +677,7 @@ export interface Dashboard {
|
|
|
560
677
|
'error'?: string;
|
|
561
678
|
}
|
|
562
679
|
/**
|
|
563
|
-
* Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
|
|
680
|
+
* DEPRECATED: use `ReportManifest`. Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
|
|
564
681
|
*/
|
|
565
682
|
export interface DashboardManifest {
|
|
566
683
|
/**
|
|
@@ -572,11 +689,11 @@ export interface DashboardManifest {
|
|
|
572
689
|
*/
|
|
573
690
|
'packageName'?: string;
|
|
574
691
|
/**
|
|
575
|
-
* The
|
|
692
|
+
* The report\'s filename basename: a display label, and the segment of the deprecated get-dashboard URL. Not an identity: two reports may share it. A change since reports: it used to be unique within the package (every dashboard was directly under `dashboards/`), and a client that keyed a map on it must key on `path` instead.
|
|
576
693
|
*/
|
|
577
694
|
'name'?: string;
|
|
578
695
|
/**
|
|
579
|
-
* Relative path to the
|
|
696
|
+
* Relative path to the report file within its package directory, which is its identity. This is also the model to POST to: `query`, each tile, and each control\'s suggest query all run through `POST /environments/{environmentName}/packages/{packageName}/models/{path}/query` with `givens`, which is why there is no dashboard-specific run endpoint.
|
|
580
697
|
*/
|
|
581
698
|
'path'?: string;
|
|
582
699
|
/**
|
|
@@ -592,15 +709,16 @@ export interface DashboardManifest {
|
|
|
592
709
|
*/
|
|
593
710
|
'error'?: string;
|
|
594
711
|
/**
|
|
595
|
-
*
|
|
712
|
+
* The report\'s layout (see list-reports). A `linear` report is laid out as one column: `dashboardColumns` is 1 whatever the file says.
|
|
596
713
|
*/
|
|
597
|
-
'
|
|
714
|
+
'layout'?: DashboardManifestLayoutEnum;
|
|
598
715
|
/**
|
|
599
|
-
*
|
|
716
|
+
* DEPRECATED: read `layout`. The same thing in the old vocabulary: `dashboard` for a grid report, `notebook` for a linear one. Always `dashboard` on `GET …/dashboards/{dashboardName}`; a linear report\'s manifest is the `dashboard` field of `GET …/notebooks/{path}`.
|
|
717
|
+
* @deprecated
|
|
600
718
|
*/
|
|
601
|
-
'
|
|
719
|
+
'kind'?: DashboardManifestKindEnum;
|
|
602
720
|
/**
|
|
603
|
-
* The dashboard\'s tiles, each run as its own query and combined into one grid.
|
|
721
|
+
* The dashboard\'s tiles, each run as its own query and combined into one grid. Absent on a dashboard listed with its compile `error`.
|
|
604
722
|
*/
|
|
605
723
|
'tiles'?: Array<DashboardTile>;
|
|
606
724
|
/**
|
|
@@ -622,13 +740,18 @@ export interface DashboardManifest {
|
|
|
622
740
|
*/
|
|
623
741
|
'givens'?: Array<Given>;
|
|
624
742
|
}
|
|
743
|
+
export declare const DashboardManifestLayoutEnum: {
|
|
744
|
+
readonly Grid: "grid";
|
|
745
|
+
readonly Linear: "linear";
|
|
746
|
+
};
|
|
747
|
+
export type DashboardManifestLayoutEnum = typeof DashboardManifestLayoutEnum[keyof typeof DashboardManifestLayoutEnum];
|
|
625
748
|
export declare const DashboardManifestKindEnum: {
|
|
626
749
|
readonly Dashboard: "dashboard";
|
|
627
750
|
readonly Notebook: "notebook";
|
|
628
751
|
};
|
|
629
752
|
export type DashboardManifestKindEnum = typeof DashboardManifestKindEnum[keyof typeof DashboardManifestKindEnum];
|
|
630
753
|
/**
|
|
631
|
-
*
|
|
754
|
+
* DEPRECATED: `ReportTile`, under the name the deprecated dashboard routes gave it.
|
|
632
755
|
*/
|
|
633
756
|
export interface DashboardTile {
|
|
634
757
|
/**
|
|
@@ -644,7 +767,7 @@ export interface DashboardTile {
|
|
|
644
767
|
*/
|
|
645
768
|
'markdown'?: string;
|
|
646
769
|
/**
|
|
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:`.
|
|
770
|
+
* 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:`.
|
|
648
771
|
*/
|
|
649
772
|
'query'?: string;
|
|
650
773
|
/**
|
|
@@ -652,7 +775,7 @@ export interface DashboardTile {
|
|
|
652
775
|
*/
|
|
653
776
|
'restricted'?: boolean;
|
|
654
777
|
/**
|
|
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 `
|
|
778
|
+
* 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 `ReportManifest.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.
|
|
656
779
|
*/
|
|
657
780
|
'givenNames'?: Array<string>;
|
|
658
781
|
/**
|
|
@@ -1364,7 +1487,7 @@ export interface MysqlConnection {
|
|
|
1364
1487
|
'password'?: string;
|
|
1365
1488
|
}
|
|
1366
1489
|
/**
|
|
1367
|
-
*
|
|
1490
|
+
* DEPRECATED, use `Report`. A linear report as the deprecated list-notebooks route lists it.
|
|
1368
1491
|
*/
|
|
1369
1492
|
export interface Notebook {
|
|
1370
1493
|
/**
|
|
@@ -1525,7 +1648,7 @@ export interface Package {
|
|
|
1525
1648
|
*/
|
|
1526
1649
|
'scope'?: PackageScopeEnum;
|
|
1527
1650
|
/**
|
|
1528
|
-
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and the surface is the union of their `export {}` closures. Every other .malloy file still compiles for import/join resolution but is hidden.
|
|
1651
|
+
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and the surface is the union of their `export {}` closures. Every other .malloy file still compiles for import/join resolution but is hidden. Reports are always listed regardless of this field, and a report needs no listing: a report listed here reads the surface and adds nothing to it, and the package warns about it (`report-on-surface`). An untagged file that is listed is an ordinary surface file, wherever it lives. DEPRECATED, still honored. Every non-empty value gets a load warning naming the replacement: a root `index.malloy` that imports the listed files and exports what they publish. `[]` is deprecated too: beside an `index.malloy` it stops that file from limiting what the package publishes (the fix is to rename `index.malloy` and delete this key), and without one it does nothing. A value that is not a list of strings refuses the package load (424). This value MAY have been derived by the server from a root `index.malloy` rather than written by the package author, and the response does not distinguish the two — deliberately, because nothing downstream treats them differently. An explicit key always wins over `index.malloy`. A package is uncurated only when it has neither this key nor a root `index.malloy`.
|
|
1529
1652
|
* @deprecated
|
|
1530
1653
|
*/
|
|
1531
1654
|
'explores'?: Array<string>;
|
|
@@ -1534,7 +1657,7 @@ export interface Package {
|
|
|
1534
1657
|
*/
|
|
1535
1658
|
'exploresWarnings'?: Array<string>;
|
|
1536
1659
|
/**
|
|
1537
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning.
|
|
1660
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, `report-layout-implicit` for a tag that names no layout and lists no tiles, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1538
1661
|
*/
|
|
1539
1662
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1540
1663
|
/**
|
|
@@ -1581,6 +1704,18 @@ export interface Package {
|
|
|
1581
1704
|
* 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.
|
|
1582
1705
|
*/
|
|
1583
1706
|
'embeddingIndex'?: PackageEmbeddingIndex | null;
|
|
1707
|
+
/**
|
|
1708
|
+
* Server-computed, read-only: an identifier for the load that produced what this package is currently serving. Minted fresh per load, so two loads of byte-identical files carry different revisions. Use it to tell one load from another, NOT to tell whether content changed: it moves on every reload regardless. `sourceContentSha` answers that.
|
|
1709
|
+
*/
|
|
1710
|
+
'servedRevision'?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* Server-computed, read-only: SHA-256 over the package-relative path and bytes of every file the package is serving: each model file, each package skill file under `skills/`, and, when the manifest declares `agents`, the canonical form of that `agents` object plus every instructions, task and skill file those agents read. This is the reload receipt. Publisher serves a COPY of a package under `publisher_data/<env>/<pkg>/` unless the environment was started with `--watch-env`, so an edit to the original source directory reaches nothing and the reload still reports success. Comparing this value across a reload is what distinguishes \"the server recompiled my edit\" from \"the server recompiled the same bytes it already had\". It covers EVERY model path in the package, so an edit to an imported file moves it where a hash of one model path would not. It covers nothing outside the list above: a data file, a `public/` asset, a `version` bump or any other key in publisher.json (`retrieval`, `explores`, `queryableSources`, `scope`) all leave it unchanged, although some of those do change what is served. An unchanged value therefore proves an edit to a hashed file did not reach the served copy, and says nothing about an edit to anything else.
|
|
1713
|
+
*/
|
|
1714
|
+
'sourceContentSha'?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Server-computed, read-only: the agents this package\'s `publisher.json` declares and the server accepted, without their instructions. Absent when the manifest declares no `agents`. An agent that failed validation is left out and named in `warnings`. Fetch one with `GET .../agents/{agentName}`.
|
|
1717
|
+
*/
|
|
1718
|
+
'agents'?: Array<AgentSummary>;
|
|
1584
1719
|
}
|
|
1585
1720
|
export declare const PackageScopeEnum: {
|
|
1586
1721
|
readonly Version: "version";
|
|
@@ -1773,7 +1908,7 @@ export interface PackageWarningsInner {
|
|
|
1773
1908
|
*/
|
|
1774
1909
|
'model'?: string;
|
|
1775
1910
|
/**
|
|
1776
|
-
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), the source a materialization finding belongs to, or, for a
|
|
1911
|
+
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), the source a materialization finding belongs to, or, for a report finding, the report\'s name or the `source.dimension` a `# drill` is declared on. Absent when a finding sits on none of those, either because it spans several, in which case the message names them, or because it is about the lint itself rather than about any one dashboard.
|
|
1777
1912
|
*/
|
|
1778
1913
|
'subject'?: string;
|
|
1779
1914
|
/**
|
|
@@ -1781,7 +1916,11 @@ export interface PackageWarningsInner {
|
|
|
1781
1916
|
*/
|
|
1782
1917
|
'message'?: string;
|
|
1783
1918
|
/**
|
|
1784
|
-
*
|
|
1919
|
+
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
1920
|
+
*/
|
|
1921
|
+
'code'?: string;
|
|
1922
|
+
/**
|
|
1923
|
+
* Finding severity, `error` or `warn` and nothing else; a deprecated form that still loads (such as `deprecated-malloynb-notebook`) is `warn`. Render-tag findings use both: `error` for a tag malformed for the field it sits on, which renders as \"[object Object]\" or an inline error at query time, and `warn` for one that is well-formed but inert where it sits and so is silently ignored (e.g. `# colspan` outside `# dashboard { columns=N }`), where nothing looks broken at query time and the layout simply is not what was written. Those are the only two severities the renderer emits, so no render finding is withheld. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended, such as a dashboard name outside the conventional shape. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
|
|
1785
1924
|
*/
|
|
1786
1925
|
'severity'?: PackageWarningsInnerSeverityEnum;
|
|
1787
1926
|
}
|
|
@@ -2094,7 +2233,7 @@ export declare const QueryResultServedFromEnum: {
|
|
|
2094
2233
|
};
|
|
2095
2234
|
export type QueryResultServedFromEnum = typeof QueryResultServedFromEnum[keyof typeof QueryResultServedFromEnum];
|
|
2096
2235
|
/**
|
|
2097
|
-
*
|
|
2236
|
+
* DEPRECATED: `ReportCells`, as get-notebook answers them, plus the tile layout of a linear report written as tiles.
|
|
2098
2237
|
*/
|
|
2099
2238
|
export interface RawNotebook {
|
|
2100
2239
|
/**
|
|
@@ -2110,7 +2249,7 @@ export interface RawNotebook {
|
|
|
2110
2249
|
*/
|
|
2111
2250
|
'modelPath'?: string;
|
|
2112
2251
|
/**
|
|
2113
|
-
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a `.malloy`
|
|
2252
|
+
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a linear `.malloy` report (see list-reports), wherever it lives, whose cells are its statements and its floating `(markdown)` notes in file order.
|
|
2114
2253
|
*/
|
|
2115
2254
|
'format'?: RawNotebookFormatEnum;
|
|
2116
2255
|
/**
|
|
@@ -2125,10 +2264,6 @@ export interface RawNotebook {
|
|
|
2125
2264
|
* Array of notebook cells containing raw markdown and code content
|
|
2126
2265
|
*/
|
|
2127
2266
|
'notebookCells'?: Array<NotebookCell>;
|
|
2128
|
-
/**
|
|
2129
|
-
* 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.
|
|
2130
|
-
*/
|
|
2131
|
-
'dashboard'?: DashboardManifest;
|
|
2132
2267
|
/**
|
|
2133
2268
|
* 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.
|
|
2134
2269
|
*/
|
|
@@ -2151,6 +2286,11 @@ export interface RawNotebook {
|
|
|
2151
2286
|
* Named queries defined in the notebook\'s model
|
|
2152
2287
|
*/
|
|
2153
2288
|
'queries'?: Array<Query>;
|
|
2289
|
+
/**
|
|
2290
|
+
* The tile layout of a linear report written as one (`## artifact { layout=linear tiles=[…] }`), in the shape a dashboard has, with `layout` `linear` 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.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2293
|
+
'dashboard'?: DashboardManifest;
|
|
2154
2294
|
}
|
|
2155
2295
|
export declare const RawNotebookFormatEnum: {
|
|
2156
2296
|
readonly Malloynb: "malloynb";
|
|
@@ -2217,6 +2357,238 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
2217
2357
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
2218
2358
|
};
|
|
2219
2359
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
2360
|
+
/**
|
|
2361
|
+
* One report in a package, as list-reports lists it: a `.malloy` file whose model-level `## artifact` tag makes it one, wherever it lives outside `public/`, or a `.malloynb`. See ReportManifest for the detail a viewer needs to render one.
|
|
2362
|
+
*/
|
|
2363
|
+
export interface Report {
|
|
2364
|
+
/**
|
|
2365
|
+
* Resource path to the report (get-report)
|
|
2366
|
+
*/
|
|
2367
|
+
'resource': string;
|
|
2368
|
+
/**
|
|
2369
|
+
* Name of the package containing this report
|
|
2370
|
+
*/
|
|
2371
|
+
'packageName': string;
|
|
2372
|
+
/**
|
|
2373
|
+
* The report\'s path within its package, such as `sales/q3.malloy`. Its identity, and the only thing that addresses it.
|
|
2374
|
+
*/
|
|
2375
|
+
'path': string;
|
|
2376
|
+
/**
|
|
2377
|
+
* The file\'s basename without its extension. A display label only: two reports in different directories may share it.
|
|
2378
|
+
*/
|
|
2379
|
+
'name': string;
|
|
2380
|
+
/**
|
|
2381
|
+
* How its tiles are placed: `linear` top to bottom, one column, or `grid` by `columns`, `colspan` and `break`. Decided by its tags (see list-reports), never by where the file lives.
|
|
2382
|
+
*/
|
|
2383
|
+
'layout': ReportLayoutEnum;
|
|
2384
|
+
/**
|
|
2385
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a linear report, its first markdown heading, else `name`.
|
|
2386
|
+
*/
|
|
2387
|
+
'title': string;
|
|
2388
|
+
/**
|
|
2389
|
+
* The report\'s doc comment, when it has one.
|
|
2390
|
+
*/
|
|
2391
|
+
'description'?: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* Whether the builder opens it as it is: false for a `.malloynb` and for a linear report written as `run:` cells.
|
|
2394
|
+
*/
|
|
2395
|
+
'editable': boolean;
|
|
2396
|
+
/**
|
|
2397
|
+
* Error message when the report failed to compile, or its cells could not be read.
|
|
2398
|
+
*/
|
|
2399
|
+
'error'?: string;
|
|
2400
|
+
}
|
|
2401
|
+
export declare const ReportLayoutEnum: {
|
|
2402
|
+
readonly Grid: "grid";
|
|
2403
|
+
readonly Linear: "linear";
|
|
2404
|
+
};
|
|
2405
|
+
export type ReportLayoutEnum = typeof ReportLayoutEnum[keyof typeof ReportLayoutEnum];
|
|
2406
|
+
/**
|
|
2407
|
+
* A linear report written as cells, or a `.malloynb`: its cells, unexecuted, and its model.
|
|
2408
|
+
*/
|
|
2409
|
+
export interface ReportCells {
|
|
2410
|
+
/**
|
|
2411
|
+
* Always `notebook`. Distinguishes the payload from the compiled-model shape returned by the model endpoint.
|
|
2412
|
+
*/
|
|
2413
|
+
'type'?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* Name of the package containing this notebook
|
|
2416
|
+
*/
|
|
2417
|
+
'packageName'?: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* Relative path to the notebook file within its package directory
|
|
2420
|
+
*/
|
|
2421
|
+
'modelPath'?: string;
|
|
2422
|
+
/**
|
|
2423
|
+
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a linear `.malloy` report (see list-reports), wherever it lives, whose cells are its statements and its floating `(markdown)` notes in file order.
|
|
2424
|
+
*/
|
|
2425
|
+
'format'?: ReportCellsFormatEnum;
|
|
2426
|
+
/**
|
|
2427
|
+
* Version of the Malloy compiler used to generate the notebook data
|
|
2428
|
+
*/
|
|
2429
|
+
'malloyVersion'?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* JSON string containing model metadata and structure information
|
|
2432
|
+
*/
|
|
2433
|
+
'modelInfo'?: string;
|
|
2434
|
+
/**
|
|
2435
|
+
* Array of notebook cells containing raw markdown and code content
|
|
2436
|
+
*/
|
|
2437
|
+
'notebookCells'?: Array<NotebookCell>;
|
|
2438
|
+
/**
|
|
2439
|
+
* 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.
|
|
2440
|
+
*/
|
|
2441
|
+
'annotations'?: Array<string>;
|
|
2442
|
+
/**
|
|
2443
|
+
* Starting values for the notebook\'s controls. A `.malloy` notebook declares them in its artifact tag (`## artifact { givens { … } }`), a `.malloynb` in its file-level tags (`## givens { … }`). URL parameters override these, which is why the two share a shape. Omitted when the notebook declares none.
|
|
2444
|
+
*/
|
|
2445
|
+
'startingGivens'?: {
|
|
2446
|
+
[key: string]: string;
|
|
2447
|
+
};
|
|
2448
|
+
/**
|
|
2449
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true. A `.malloy` notebook reads it from its artifact tag (`## artifact { autorun=false }`), a `.malloynb` from its file-level tags (`## autorun=false`). The same flag, with the same default, that `DashboardManifest.autorun` carries.
|
|
2450
|
+
*/
|
|
2451
|
+
'autorun'?: boolean;
|
|
2452
|
+
/**
|
|
2453
|
+
* Sources defined in the notebook\'s model
|
|
2454
|
+
*/
|
|
2455
|
+
'sources'?: Array<Source>;
|
|
2456
|
+
/**
|
|
2457
|
+
* Named queries defined in the notebook\'s model
|
|
2458
|
+
*/
|
|
2459
|
+
'queries'?: Array<Query>;
|
|
2460
|
+
}
|
|
2461
|
+
export declare const ReportCellsFormatEnum: {
|
|
2462
|
+
readonly Malloynb: "malloynb";
|
|
2463
|
+
readonly Malloy: "malloy";
|
|
2464
|
+
};
|
|
2465
|
+
export type ReportCellsFormatEnum = typeof ReportCellsFormatEnum[keyof typeof ReportCellsFormatEnum];
|
|
2466
|
+
/**
|
|
2467
|
+
* A `Report` plus what a viewer needs to draw it. A report written as tiles, of either layout, carries `tiles`, `dashboardColumns`, `startingGivens`, `autorun` and `givens`, whose tiles and suggest queries run through `POST …/models/{path}/query` with `givens`. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead.
|
|
2468
|
+
*/
|
|
2469
|
+
export interface ReportManifest {
|
|
2470
|
+
/**
|
|
2471
|
+
* Resource path to the report (get-report)
|
|
2472
|
+
*/
|
|
2473
|
+
'resource': string;
|
|
2474
|
+
/**
|
|
2475
|
+
* Name of the package containing this report
|
|
2476
|
+
*/
|
|
2477
|
+
'packageName': string;
|
|
2478
|
+
/**
|
|
2479
|
+
* The report\'s path within its package, such as `sales/q3.malloy`. Its identity, and the only thing that addresses it.
|
|
2480
|
+
*/
|
|
2481
|
+
'path': string;
|
|
2482
|
+
/**
|
|
2483
|
+
* The file\'s basename without its extension. A display label only: two reports in different directories may share it.
|
|
2484
|
+
*/
|
|
2485
|
+
'name': string;
|
|
2486
|
+
/**
|
|
2487
|
+
* How its tiles are placed: `linear` top to bottom, one column, or `grid` by `columns`, `colspan` and `break`. Decided by its tags (see list-reports), never by where the file lives.
|
|
2488
|
+
*/
|
|
2489
|
+
'layout': ReportManifestLayoutEnum;
|
|
2490
|
+
/**
|
|
2491
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a linear report, its first markdown heading, else `name`.
|
|
2492
|
+
*/
|
|
2493
|
+
'title': string;
|
|
2494
|
+
/**
|
|
2495
|
+
* The report\'s doc comment, when it has one.
|
|
2496
|
+
*/
|
|
2497
|
+
'description'?: string;
|
|
2498
|
+
/**
|
|
2499
|
+
* Whether the builder opens it as it is: false for a `.malloynb` and for a linear report written as `run:` cells.
|
|
2500
|
+
*/
|
|
2501
|
+
'editable': boolean;
|
|
2502
|
+
/**
|
|
2503
|
+
* Error message when the report failed to compile, or its cells could not be read.
|
|
2504
|
+
*/
|
|
2505
|
+
'error'?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a `run:`-cell report.
|
|
2508
|
+
*/
|
|
2509
|
+
'tiles'?: Array<ReportTile>;
|
|
2510
|
+
/**
|
|
2511
|
+
* Grid width, from the `# dashboard {columns=N}` tag beside the artifact tag. 1 on a linear report. Absent means the viewer\'s default.
|
|
2512
|
+
*/
|
|
2513
|
+
'dashboardColumns'?: number;
|
|
2514
|
+
/**
|
|
2515
|
+
* Starting values for controls, from the artifact tag. URL parameters override these.
|
|
2516
|
+
*/
|
|
2517
|
+
'startingGivens'?: {
|
|
2518
|
+
[key: string]: string;
|
|
2519
|
+
};
|
|
2520
|
+
/**
|
|
2521
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true.
|
|
2522
|
+
*/
|
|
2523
|
+
'autorun'?: boolean;
|
|
2524
|
+
/**
|
|
2525
|
+
* The control row: one entry per given the report\'s tiles run with (less a given only a source\'s gate reads, which a host injects), widened to every given the entry file surfaces when a tile cannot be resolved (see `ReportTile.givenNames`). `default` is the value the query endpoint takes, not the Malloy literal: a `filter<…>` given declared `f\'West\'` publishes `West`.
|
|
2526
|
+
*/
|
|
2527
|
+
'givens'?: Array<Given>;
|
|
2528
|
+
/**
|
|
2529
|
+
* For a linear report written as `run:` cells, or a `.malloynb`: its cells and model. Run a `.malloy` report\'s cell through the model query endpoint, its `text` as `query`; a `.malloynb`\'s with execute-notebook-cell. Absent on a report written as tiles, and on a report that failed to compile.
|
|
2530
|
+
*/
|
|
2531
|
+
'notebook'?: ReportCells;
|
|
2532
|
+
}
|
|
2533
|
+
export declare const ReportManifestLayoutEnum: {
|
|
2534
|
+
readonly Grid: "grid";
|
|
2535
|
+
readonly Linear: "linear";
|
|
2536
|
+
};
|
|
2537
|
+
export type ReportManifestLayoutEnum = typeof ReportManifestLayoutEnum[keyof typeof ReportManifestLayoutEnum];
|
|
2538
|
+
/**
|
|
2539
|
+
* One tile of a report. A `query` tile (the default) runs a query; a `text` tile shows markdown and runs nothing, so a caller that runs a report\'s tiles skips the ones with `kind` `text`.
|
|
2540
|
+
*/
|
|
2541
|
+
export interface ReportTile {
|
|
2542
|
+
/**
|
|
2543
|
+
* `query` runs `query` through the model query endpoint; `text` shows `markdown`. Absent means `query`.
|
|
2544
|
+
*/
|
|
2545
|
+
'kind'?: ReportTileKindEnum;
|
|
2546
|
+
/**
|
|
2547
|
+
* A text tile\'s name: the bare word in `tiles=[…]` and on its `##|(markdown) name` block. Absent on a query tile.
|
|
2548
|
+
*/
|
|
2549
|
+
'name'?: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* 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.
|
|
2552
|
+
*/
|
|
2553
|
+
'markdown'?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* 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:`.
|
|
2556
|
+
*/
|
|
2557
|
+
'query'?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* 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.
|
|
2560
|
+
*/
|
|
2561
|
+
'restricted'?: boolean;
|
|
2562
|
+
/**
|
|
2563
|
+
* 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 `ReportManifest.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.
|
|
2564
|
+
*/
|
|
2565
|
+
'givenNames'?: Array<string>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Heading for the tile, from a `# label` on the view or query it names. Absent when it carries none, in which case a viewer derives one from the run expression.
|
|
2568
|
+
*/
|
|
2569
|
+
'label'?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Second line under the heading, from a `# subtitle` on the view or query it names.
|
|
2572
|
+
*/
|
|
2573
|
+
'subtitle'?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* 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.
|
|
2576
|
+
*/
|
|
2577
|
+
'colspan'?: number;
|
|
2578
|
+
/**
|
|
2579
|
+
* 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`.
|
|
2580
|
+
*/
|
|
2581
|
+
'break'?: boolean;
|
|
2582
|
+
/**
|
|
2583
|
+
* Draw the result with no card around it, from a `# borderless` on the view or query it names. Together with `label`, `subtitle`, `colspan` and `break` this is the whole per-child tag set `@malloydata/render` resolves for a `# dashboard` nest child, read the same way here so one view presents identically as a tile and as a nest.
|
|
2584
|
+
*/
|
|
2585
|
+
'borderless'?: boolean;
|
|
2586
|
+
}
|
|
2587
|
+
export declare const ReportTileKindEnum: {
|
|
2588
|
+
readonly Query: "query";
|
|
2589
|
+
readonly Text: "text";
|
|
2590
|
+
};
|
|
2591
|
+
export type ReportTileKindEnum = typeof ReportTileKindEnum[keyof typeof ReportTileKindEnum];
|
|
2220
2592
|
/**
|
|
2221
2593
|
* Caller-supplied context for one materialization run, folded into the per-query metadata of the statements it issues (see `QueryMetadata`). Observability only — it never affects what gets built or how anything is addressed.
|
|
2222
2594
|
*/
|
|
@@ -2349,26 +2721,74 @@ export declare const ServerStatusOperationalStateEnum: {
|
|
|
2349
2721
|
export type ServerStatusOperationalStateEnum = typeof ServerStatusOperationalStateEnum[keyof typeof ServerStatusOperationalStateEnum];
|
|
2350
2722
|
export interface ServerStatusLoadErrorsInner {
|
|
2351
2723
|
/**
|
|
2352
|
-
* Name of the configured environment the failure belongs to.
|
|
2724
|
+
* Name of the configured environment the failure belongs to.
|
|
2725
|
+
*/
|
|
2726
|
+
'environment'?: string;
|
|
2727
|
+
/**
|
|
2728
|
+
* Name of the configured package that did not load. Absent when the whole environment was skipped, which is what happens when a package location cannot be mounted at all; in that case no package in the environment loads, including ones that would otherwise have succeeded.
|
|
2729
|
+
*/
|
|
2730
|
+
'package'?: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* Why it did not load.
|
|
2733
|
+
*/
|
|
2734
|
+
'message'?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* When true, the package did load earlier and is still serving that last successful compile; the message is why its most recent reload (a watch-mode save, reload_package, or reload=true) failed. The served model is older than the files on disk. Absent on ordinary load failures. This array is the only place staleness is reported, because the package\'s entry under environments, and its own package resource, both read SERVING; join on the package name here to tell a current package from a stale one.
|
|
2737
|
+
*/
|
|
2738
|
+
'stale'?: boolean;
|
|
2739
|
+
/**
|
|
2740
|
+
* When the failed reload happened. Only present alongside stale = true.
|
|
2741
|
+
*/
|
|
2742
|
+
'failedAt'?: string;
|
|
2743
|
+
}
|
|
2744
|
+
/**
|
|
2745
|
+
* An agent skill with its full Markdown body.
|
|
2746
|
+
*/
|
|
2747
|
+
export interface Skill {
|
|
2748
|
+
/**
|
|
2749
|
+
* The skill\'s name.
|
|
2750
|
+
*/
|
|
2751
|
+
'name'?: string;
|
|
2752
|
+
/**
|
|
2753
|
+
* One line saying when to read this skill.
|
|
2353
2754
|
*/
|
|
2354
|
-
'
|
|
2755
|
+
'description'?: string;
|
|
2355
2756
|
/**
|
|
2356
|
-
*
|
|
2757
|
+
* The skill\'s full guidance, Markdown.
|
|
2357
2758
|
*/
|
|
2358
|
-
'
|
|
2759
|
+
'content'?: string;
|
|
2359
2760
|
/**
|
|
2360
|
-
*
|
|
2761
|
+
* Where this skill came from. See SkillSummary.origin.
|
|
2361
2762
|
*/
|
|
2362
|
-
'
|
|
2763
|
+
'origin'?: SkillOriginEnum;
|
|
2764
|
+
}
|
|
2765
|
+
export declare const SkillOriginEnum: {
|
|
2766
|
+
readonly Bundled: "bundled";
|
|
2767
|
+
readonly Package: "package";
|
|
2768
|
+
};
|
|
2769
|
+
export type SkillOriginEnum = typeof SkillOriginEnum[keyof typeof SkillOriginEnum];
|
|
2770
|
+
/**
|
|
2771
|
+
* One agent skill in force for a package, without its body. This is what a caller reads to decide which skill to fetch.
|
|
2772
|
+
*/
|
|
2773
|
+
export interface SkillSummary {
|
|
2363
2774
|
/**
|
|
2364
|
-
*
|
|
2775
|
+
* The skill\'s name, and the identifier for fetching it. A name containing a slash (`<skill>/<stem>`) is one skill\'s on-demand reference file rather than a skill in its own right.
|
|
2365
2776
|
*/
|
|
2366
|
-
'
|
|
2777
|
+
'name'?: string;
|
|
2367
2778
|
/**
|
|
2368
|
-
*
|
|
2779
|
+
* One line saying when to read this skill. Empty when the package author omitted it, which is also reported as a package warning.
|
|
2369
2780
|
*/
|
|
2370
|
-
'
|
|
2781
|
+
'description'?: string;
|
|
2782
|
+
/**
|
|
2783
|
+
* `bundled` = shipped with this server. `package` = shipped by the package under `skills/`, which includes a package skill whose name matches a bundled one and therefore REPLACES it for this package. Present so a caller can tell a replaced skill from the original, which is otherwise invisible.
|
|
2784
|
+
*/
|
|
2785
|
+
'origin'?: SkillSummaryOriginEnum;
|
|
2371
2786
|
}
|
|
2787
|
+
export declare const SkillSummaryOriginEnum: {
|
|
2788
|
+
readonly Bundled: "bundled";
|
|
2789
|
+
readonly Package: "package";
|
|
2790
|
+
};
|
|
2791
|
+
export type SkillSummaryOriginEnum = typeof SkillSummaryOriginEnum[keyof typeof SkillSummaryOriginEnum];
|
|
2372
2792
|
/**
|
|
2373
2793
|
* Snowflake database connection configuration
|
|
2374
2794
|
*/
|
|
@@ -2806,6 +3226,155 @@ export interface WatchStatus {
|
|
|
2806
3226
|
*/
|
|
2807
3227
|
'watchingPath': string;
|
|
2808
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* AgentsApi - axios parameter creator
|
|
3231
|
+
*/
|
|
3232
|
+
export declare const AgentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3233
|
+
/**
|
|
3234
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3235
|
+
* @summary Get one agent, resolved
|
|
3236
|
+
* @param {string} environmentName Name of the environment
|
|
3237
|
+
* @param {string} packageName Name of the package
|
|
3238
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3239
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3240
|
+
* @param {*} [options] Override http request option.
|
|
3241
|
+
* @throws {RequiredError}
|
|
3242
|
+
*/
|
|
3243
|
+
getAgent: (environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3244
|
+
/**
|
|
3245
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3246
|
+
* @summary Get one of an agent\'s skill files
|
|
3247
|
+
* @param {string} environmentName Name of the environment
|
|
3248
|
+
* @param {string} packageName Name of the package
|
|
3249
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3250
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3251
|
+
* @param {*} [options] Override http request option.
|
|
3252
|
+
* @throws {RequiredError}
|
|
3253
|
+
*/
|
|
3254
|
+
getAgentSkillFile: (environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3257
|
+
* @summary List the agents a package declares
|
|
3258
|
+
* @param {string} environmentName Name of the environment
|
|
3259
|
+
* @param {string} packageName Name of the package
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
*/
|
|
3263
|
+
listAgents: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3264
|
+
};
|
|
3265
|
+
/**
|
|
3266
|
+
* AgentsApi - functional programming interface
|
|
3267
|
+
*/
|
|
3268
|
+
export declare const AgentsApiFp: (configuration?: Configuration) => {
|
|
3269
|
+
/**
|
|
3270
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3271
|
+
* @summary Get one agent, resolved
|
|
3272
|
+
* @param {string} environmentName Name of the environment
|
|
3273
|
+
* @param {string} packageName Name of the package
|
|
3274
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3275
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3276
|
+
* @param {*} [options] Override http request option.
|
|
3277
|
+
* @throws {RequiredError}
|
|
3278
|
+
*/
|
|
3279
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3280
|
+
/**
|
|
3281
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3282
|
+
* @summary Get one of an agent\'s skill files
|
|
3283
|
+
* @param {string} environmentName Name of the environment
|
|
3284
|
+
* @param {string} packageName Name of the package
|
|
3285
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3286
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3287
|
+
* @param {*} [options] Override http request option.
|
|
3288
|
+
* @throws {RequiredError}
|
|
3289
|
+
*/
|
|
3290
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentSkillRead>>;
|
|
3291
|
+
/**
|
|
3292
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3293
|
+
* @summary List the agents a package declares
|
|
3294
|
+
* @param {string} environmentName Name of the environment
|
|
3295
|
+
* @param {string} packageName Name of the package
|
|
3296
|
+
* @param {*} [options] Override http request option.
|
|
3297
|
+
* @throws {RequiredError}
|
|
3298
|
+
*/
|
|
3299
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentSummary>>>;
|
|
3300
|
+
};
|
|
3301
|
+
/**
|
|
3302
|
+
* AgentsApi - factory interface
|
|
3303
|
+
*/
|
|
3304
|
+
export declare const AgentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3305
|
+
/**
|
|
3306
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3307
|
+
* @summary Get one agent, resolved
|
|
3308
|
+
* @param {string} environmentName Name of the environment
|
|
3309
|
+
* @param {string} packageName Name of the package
|
|
3310
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3311
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3312
|
+
* @param {*} [options] Override http request option.
|
|
3313
|
+
* @throws {RequiredError}
|
|
3314
|
+
*/
|
|
3315
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3316
|
+
/**
|
|
3317
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3318
|
+
* @summary Get one of an agent\'s skill files
|
|
3319
|
+
* @param {string} environmentName Name of the environment
|
|
3320
|
+
* @param {string} packageName Name of the package
|
|
3321
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3322
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3323
|
+
* @param {*} [options] Override http request option.
|
|
3324
|
+
* @throws {RequiredError}
|
|
3325
|
+
*/
|
|
3326
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentSkillRead>;
|
|
3327
|
+
/**
|
|
3328
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3329
|
+
* @summary List the agents a package declares
|
|
3330
|
+
* @param {string} environmentName Name of the environment
|
|
3331
|
+
* @param {string} packageName Name of the package
|
|
3332
|
+
* @param {*} [options] Override http request option.
|
|
3333
|
+
* @throws {RequiredError}
|
|
3334
|
+
*/
|
|
3335
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentSummary>>;
|
|
3336
|
+
};
|
|
3337
|
+
/**
|
|
3338
|
+
* AgentsApi - object-oriented interface
|
|
3339
|
+
*/
|
|
3340
|
+
export declare class AgentsApi extends BaseAPI {
|
|
3341
|
+
/**
|
|
3342
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
3343
|
+
* @summary Get one agent, resolved
|
|
3344
|
+
* @param {string} environmentName Name of the environment
|
|
3345
|
+
* @param {string} packageName Name of the package
|
|
3346
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3347
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
getAgent(environmentName: string, packageName: string, agentName: string, skills?: GetAgentSkillsEnum, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Agent, any, {}, any>>;
|
|
3352
|
+
/**
|
|
3353
|
+
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
3354
|
+
* @summary Get one of an agent\'s skill files
|
|
3355
|
+
* @param {string} environmentName Name of the environment
|
|
3356
|
+
* @param {string} packageName Name of the package
|
|
3357
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
3358
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
getAgentSkillFile(environmentName: string, packageName: string, agentName: string, relativeFilepath: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSkillRead, any, {}, any>>;
|
|
3363
|
+
/**
|
|
3364
|
+
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
3365
|
+
* @summary List the agents a package declares
|
|
3366
|
+
* @param {string} environmentName Name of the environment
|
|
3367
|
+
* @param {string} packageName Name of the package
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
listAgents(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<AgentSummary[], any, {}, any>>;
|
|
3372
|
+
}
|
|
3373
|
+
export declare const GetAgentSkillsEnum: {
|
|
3374
|
+
readonly Full: "full";
|
|
3375
|
+
readonly Summary: "summary";
|
|
3376
|
+
};
|
|
3377
|
+
export type GetAgentSkillsEnum = typeof GetAgentSkillsEnum[keyof typeof GetAgentSkillsEnum];
|
|
2809
3378
|
/**
|
|
2810
3379
|
* ConnectionsApi - axios parameter creator
|
|
2811
3380
|
*/
|
|
@@ -3579,23 +4148,25 @@ export declare class ConnectionsTestApi extends BaseAPI {
|
|
|
3579
4148
|
*/
|
|
3580
4149
|
export declare const DashboardsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3581
4150
|
/**
|
|
3582
|
-
* Retrieves everything a viewer needs to render one
|
|
3583
|
-
* @summary Get a dashboard manifest
|
|
4151
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
4152
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3584
4153
|
* @param {string} environmentName Name of the environment
|
|
3585
4154
|
* @param {string} packageName Name of the package
|
|
3586
|
-
* @param {string} dashboardName The
|
|
4155
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3587
4156
|
* @param {string} [versionId] Version identifier for the package
|
|
3588
4157
|
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @deprecated
|
|
3589
4159
|
* @throws {RequiredError}
|
|
3590
4160
|
*/
|
|
3591
4161
|
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3592
4162
|
/**
|
|
3593
|
-
*
|
|
3594
|
-
* @summary List package dashboards
|
|
4163
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. 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.
|
|
4164
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3595
4165
|
* @param {string} environmentName Name of the environment
|
|
3596
4166
|
* @param {string} packageName Name of the package
|
|
3597
4167
|
* @param {string} [versionId] Version identifier for the package
|
|
3598
4168
|
* @param {*} [options] Override http request option.
|
|
4169
|
+
* @deprecated
|
|
3599
4170
|
* @throws {RequiredError}
|
|
3600
4171
|
*/
|
|
3601
4172
|
listDashboards: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -3605,23 +4176,25 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
3605
4176
|
*/
|
|
3606
4177
|
export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
3607
4178
|
/**
|
|
3608
|
-
* Retrieves everything a viewer needs to render one
|
|
3609
|
-
* @summary Get a dashboard manifest
|
|
4179
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
4180
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3610
4181
|
* @param {string} environmentName Name of the environment
|
|
3611
4182
|
* @param {string} packageName Name of the package
|
|
3612
|
-
* @param {string} dashboardName The
|
|
4183
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3613
4184
|
* @param {string} [versionId] Version identifier for the package
|
|
3614
4185
|
* @param {*} [options] Override http request option.
|
|
4186
|
+
* @deprecated
|
|
3615
4187
|
* @throws {RequiredError}
|
|
3616
4188
|
*/
|
|
3617
4189
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
3618
4190
|
/**
|
|
3619
|
-
*
|
|
3620
|
-
* @summary List package dashboards
|
|
4191
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. 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.
|
|
4192
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3621
4193
|
* @param {string} environmentName Name of the environment
|
|
3622
4194
|
* @param {string} packageName Name of the package
|
|
3623
4195
|
* @param {string} [versionId] Version identifier for the package
|
|
3624
4196
|
* @param {*} [options] Override http request option.
|
|
4197
|
+
* @deprecated
|
|
3625
4198
|
* @throws {RequiredError}
|
|
3626
4199
|
*/
|
|
3627
4200
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dashboard>>>;
|
|
@@ -3631,23 +4204,25 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
3631
4204
|
*/
|
|
3632
4205
|
export declare const DashboardsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3633
4206
|
/**
|
|
3634
|
-
* Retrieves everything a viewer needs to render one
|
|
3635
|
-
* @summary Get a dashboard manifest
|
|
4207
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
4208
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3636
4209
|
* @param {string} environmentName Name of the environment
|
|
3637
4210
|
* @param {string} packageName Name of the package
|
|
3638
|
-
* @param {string} dashboardName The
|
|
4211
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3639
4212
|
* @param {string} [versionId] Version identifier for the package
|
|
3640
4213
|
* @param {*} [options] Override http request option.
|
|
4214
|
+
* @deprecated
|
|
3641
4215
|
* @throws {RequiredError}
|
|
3642
4216
|
*/
|
|
3643
4217
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
3644
4218
|
/**
|
|
3645
|
-
*
|
|
3646
|
-
* @summary List package dashboards
|
|
4219
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. 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.
|
|
4220
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3647
4221
|
* @param {string} environmentName Name of the environment
|
|
3648
4222
|
* @param {string} packageName Name of the package
|
|
3649
4223
|
* @param {string} [versionId] Version identifier for the package
|
|
3650
4224
|
* @param {*} [options] Override http request option.
|
|
4225
|
+
* @deprecated
|
|
3651
4226
|
* @throws {RequiredError}
|
|
3652
4227
|
*/
|
|
3653
4228
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Dashboard>>;
|
|
@@ -3657,23 +4232,25 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
3657
4232
|
*/
|
|
3658
4233
|
export declare class DashboardsApi extends BaseAPI {
|
|
3659
4234
|
/**
|
|
3660
|
-
* Retrieves everything a viewer needs to render one
|
|
3661
|
-
* @summary Get a dashboard manifest
|
|
4235
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
4236
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3662
4237
|
* @param {string} environmentName Name of the environment
|
|
3663
4238
|
* @param {string} packageName Name of the package
|
|
3664
|
-
* @param {string} dashboardName The
|
|
4239
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3665
4240
|
* @param {string} [versionId] Version identifier for the package
|
|
3666
4241
|
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @deprecated
|
|
3667
4243
|
* @throws {RequiredError}
|
|
3668
4244
|
*/
|
|
3669
4245
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}, any>>;
|
|
3670
4246
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* @summary List package dashboards
|
|
4247
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. 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.
|
|
4248
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3673
4249
|
* @param {string} environmentName Name of the environment
|
|
3674
4250
|
* @param {string} packageName Name of the package
|
|
3675
4251
|
* @param {string} [versionId] Version identifier for the package
|
|
3676
4252
|
* @param {*} [options] Override http request option.
|
|
4253
|
+
* @deprecated
|
|
3677
4254
|
* @throws {RequiredError}
|
|
3678
4255
|
*/
|
|
3679
4256
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Dashboard[], any, {}, any>>;
|
|
@@ -4219,7 +4796,7 @@ export type MaterializationActionActionEnum = typeof MaterializationActionAction
|
|
|
4219
4796
|
*/
|
|
4220
4797
|
export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4221
4798
|
/**
|
|
4222
|
-
* 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`.
|
|
4799
|
+
* 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`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4223
4800
|
* @summary Compile Malloy source code
|
|
4224
4801
|
* @param {string} environmentName Name of the environment
|
|
4225
4802
|
* @param {string} packageName Name of the package
|
|
@@ -4242,7 +4819,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4242
4819
|
*/
|
|
4243
4820
|
executeQueryModel: (environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4244
4821
|
/**
|
|
4245
|
-
* 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.
|
|
4822
|
+
* 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. Reports (see list-reports), wherever they live in the package, 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 report is always returned.
|
|
4246
4823
|
* @summary Get compiled Malloy model
|
|
4247
4824
|
* @param {string} environmentName Name of the environment
|
|
4248
4825
|
* @param {string} packageName Name of the package
|
|
@@ -4254,7 +4831,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4254
4831
|
*/
|
|
4255
4832
|
getModel: (environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4256
4833
|
/**
|
|
4257
|
-
* 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.
|
|
4834
|
+
* 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. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4258
4835
|
* @summary List package models
|
|
4259
4836
|
* @param {string} environmentName Name of the environment
|
|
4260
4837
|
* @param {string} packageName Name of the package
|
|
@@ -4265,11 +4842,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4265
4842
|
*/
|
|
4266
4843
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4267
4844
|
/**
|
|
4268
|
-
* Writes the Malloy text of a
|
|
4269
|
-
* @summary Write a
|
|
4845
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. 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 path over an existing file the package does not read as a report 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 tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report 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.
|
|
4846
|
+
* @summary Write a report file into the package
|
|
4270
4847
|
* @param {string} environmentName Name of the environment
|
|
4271
4848
|
* @param {string} packageName Name of the package
|
|
4272
|
-
* @param {string} path The file,
|
|
4849
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4273
4850
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4274
4851
|
* @param {string} [versionId] Version identifier for the package
|
|
4275
4852
|
* @param {*} [options] Override http request option.
|
|
@@ -4282,7 +4859,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4282
4859
|
*/
|
|
4283
4860
|
export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
4284
4861
|
/**
|
|
4285
|
-
* 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`.
|
|
4862
|
+
* 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`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4286
4863
|
* @summary Compile Malloy source code
|
|
4287
4864
|
* @param {string} environmentName Name of the environment
|
|
4288
4865
|
* @param {string} packageName Name of the package
|
|
@@ -4305,7 +4882,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4305
4882
|
*/
|
|
4306
4883
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryResult>>;
|
|
4307
4884
|
/**
|
|
4308
|
-
* 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.
|
|
4885
|
+
* 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. Reports (see list-reports), wherever they live in the package, 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 report is always returned.
|
|
4309
4886
|
* @summary Get compiled Malloy model
|
|
4310
4887
|
* @param {string} environmentName Name of the environment
|
|
4311
4888
|
* @param {string} packageName Name of the package
|
|
@@ -4317,7 +4894,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4317
4894
|
*/
|
|
4318
4895
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompiledModel>>;
|
|
4319
4896
|
/**
|
|
4320
|
-
* 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.
|
|
4897
|
+
* 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. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4321
4898
|
* @summary List package models
|
|
4322
4899
|
* @param {string} environmentName Name of the environment
|
|
4323
4900
|
* @param {string} packageName Name of the package
|
|
@@ -4328,11 +4905,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4328
4905
|
*/
|
|
4329
4906
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
4330
4907
|
/**
|
|
4331
|
-
* Writes the Malloy text of a
|
|
4332
|
-
* @summary Write a
|
|
4908
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. 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 path over an existing file the package does not read as a report 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 tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report 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.
|
|
4909
|
+
* @summary Write a report file into the package
|
|
4333
4910
|
* @param {string} environmentName Name of the environment
|
|
4334
4911
|
* @param {string} packageName Name of the package
|
|
4335
|
-
* @param {string} path The file,
|
|
4912
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4336
4913
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4337
4914
|
* @param {string} [versionId] Version identifier for the package
|
|
4338
4915
|
* @param {*} [options] Override http request option.
|
|
@@ -4345,7 +4922,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4345
4922
|
*/
|
|
4346
4923
|
export declare const ModelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4347
4924
|
/**
|
|
4348
|
-
* 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`.
|
|
4925
|
+
* 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`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4349
4926
|
* @summary Compile Malloy source code
|
|
4350
4927
|
* @param {string} environmentName Name of the environment
|
|
4351
4928
|
* @param {string} packageName Name of the package
|
|
@@ -4368,7 +4945,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4368
4945
|
*/
|
|
4369
4946
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<QueryResult>;
|
|
4370
4947
|
/**
|
|
4371
|
-
* 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.
|
|
4948
|
+
* 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. Reports (see list-reports), wherever they live in the package, 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 report is always returned.
|
|
4372
4949
|
* @summary Get compiled Malloy model
|
|
4373
4950
|
* @param {string} environmentName Name of the environment
|
|
4374
4951
|
* @param {string} packageName Name of the package
|
|
@@ -4380,7 +4957,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4380
4957
|
*/
|
|
4381
4958
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<CompiledModel>;
|
|
4382
4959
|
/**
|
|
4383
|
-
* 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.
|
|
4960
|
+
* 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. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4384
4961
|
* @summary List package models
|
|
4385
4962
|
* @param {string} environmentName Name of the environment
|
|
4386
4963
|
* @param {string} packageName Name of the package
|
|
@@ -4391,11 +4968,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4391
4968
|
*/
|
|
4392
4969
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
4393
4970
|
/**
|
|
4394
|
-
* Writes the Malloy text of a
|
|
4395
|
-
* @summary Write a
|
|
4971
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. 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 path over an existing file the package does not read as a report 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 tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report 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.
|
|
4972
|
+
* @summary Write a report file into the package
|
|
4396
4973
|
* @param {string} environmentName Name of the environment
|
|
4397
4974
|
* @param {string} packageName Name of the package
|
|
4398
|
-
* @param {string} path The file,
|
|
4975
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4399
4976
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4400
4977
|
* @param {string} [versionId] Version identifier for the package
|
|
4401
4978
|
* @param {*} [options] Override http request option.
|
|
@@ -4408,7 +4985,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4408
4985
|
*/
|
|
4409
4986
|
export declare class ModelsApi extends BaseAPI {
|
|
4410
4987
|
/**
|
|
4411
|
-
* 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`.
|
|
4988
|
+
* 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`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4412
4989
|
* @summary Compile Malloy source code
|
|
4413
4990
|
* @param {string} environmentName Name of the environment
|
|
4414
4991
|
* @param {string} packageName Name of the package
|
|
@@ -4431,7 +5008,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4431
5008
|
*/
|
|
4432
5009
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryResult, any, {}, any>>;
|
|
4433
5010
|
/**
|
|
4434
|
-
* 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.
|
|
5011
|
+
* 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. Reports (see list-reports), wherever they live in the package, 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 report is always returned.
|
|
4435
5012
|
* @summary Get compiled Malloy model
|
|
4436
5013
|
* @param {string} environmentName Name of the environment
|
|
4437
5014
|
* @param {string} packageName Name of the package
|
|
@@ -4443,7 +5020,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4443
5020
|
*/
|
|
4444
5021
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompiledModel, any, {}, any>>;
|
|
4445
5022
|
/**
|
|
4446
|
-
* 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.
|
|
5023
|
+
* 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. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4447
5024
|
* @summary List package models
|
|
4448
5025
|
* @param {string} environmentName Name of the environment
|
|
4449
5026
|
* @param {string} packageName Name of the package
|
|
@@ -4454,11 +5031,11 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4454
5031
|
*/
|
|
4455
5032
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
4456
5033
|
/**
|
|
4457
|
-
* Writes the Malloy text of a
|
|
4458
|
-
* @summary Write a
|
|
5034
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. 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 path over an existing file the package does not read as a report 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 tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report 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.
|
|
5035
|
+
* @summary Write a report file into the package
|
|
4459
5036
|
* @param {string} environmentName Name of the environment
|
|
4460
5037
|
* @param {string} packageName Name of the package
|
|
4461
|
-
* @param {string} path The file,
|
|
5038
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4462
5039
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4463
5040
|
* @param {string} [versionId] Version identifier for the package
|
|
4464
5041
|
* @param {*} [options] Override http request option.
|
|
@@ -4471,8 +5048,8 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4471
5048
|
*/
|
|
4472
5049
|
export declare const NotebooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4473
5050
|
/**
|
|
4474
|
-
* Executes a specific cell in a
|
|
4475
|
-
* @summary Execute a specific notebook cell
|
|
5051
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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 linear `.malloy` report, wherever it lives, 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.
|
|
5052
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4476
5053
|
* @param {string} environmentName Name of the environment
|
|
4477
5054
|
* @param {string} packageName Name of the package
|
|
4478
5055
|
* @param {string} path Path to notebook within the package
|
|
@@ -4482,27 +5059,30 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4482
5059
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4483
5060
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4484
5061
|
* @param {*} [options] Override http request option.
|
|
5062
|
+
* @deprecated
|
|
4485
5063
|
* @throws {RequiredError}
|
|
4486
5064
|
*/
|
|
4487
5065
|
executeNotebookCell: (environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4488
5066
|
/**
|
|
4489
|
-
* Retrieves a
|
|
4490
|
-
* @summary Get Malloy notebook cells
|
|
5067
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
5068
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4491
5069
|
* @param {string} environmentName Name of the environment
|
|
4492
5070
|
* @param {string} packageName Name of the package
|
|
4493
5071
|
* @param {string} path Path to notebook within the package.
|
|
4494
5072
|
* @param {string} [versionId] Version identifier for the package
|
|
4495
5073
|
* @param {*} [options] Override http request option.
|
|
5074
|
+
* @deprecated
|
|
4496
5075
|
* @throws {RequiredError}
|
|
4497
5076
|
*/
|
|
4498
5077
|
getNotebook: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4499
5078
|
/**
|
|
4500
|
-
*
|
|
4501
|
-
* @summary List package notebooks
|
|
5079
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
5080
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4502
5081
|
* @param {string} environmentName Name of the environment
|
|
4503
5082
|
* @param {string} packageName Name of the package
|
|
4504
5083
|
* @param {string} [versionId] Version identifier for the package
|
|
4505
5084
|
* @param {*} [options] Override http request option.
|
|
5085
|
+
* @deprecated
|
|
4506
5086
|
* @throws {RequiredError}
|
|
4507
5087
|
*/
|
|
4508
5088
|
listNotebooks: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -4512,8 +5092,8 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4512
5092
|
*/
|
|
4513
5093
|
export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
4514
5094
|
/**
|
|
4515
|
-
* Executes a specific cell in a
|
|
4516
|
-
* @summary Execute a specific notebook cell
|
|
5095
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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 linear `.malloy` report, wherever it lives, 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.
|
|
5096
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4517
5097
|
* @param {string} environmentName Name of the environment
|
|
4518
5098
|
* @param {string} packageName Name of the package
|
|
4519
5099
|
* @param {string} path Path to notebook within the package
|
|
@@ -4523,27 +5103,30 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4523
5103
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4524
5104
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4525
5105
|
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @deprecated
|
|
4526
5107
|
* @throws {RequiredError}
|
|
4527
5108
|
*/
|
|
4528
5109
|
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>>;
|
|
4529
5110
|
/**
|
|
4530
|
-
* Retrieves a
|
|
4531
|
-
* @summary Get Malloy notebook cells
|
|
5111
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
5112
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4532
5113
|
* @param {string} environmentName Name of the environment
|
|
4533
5114
|
* @param {string} packageName Name of the package
|
|
4534
5115
|
* @param {string} path Path to notebook within the package.
|
|
4535
5116
|
* @param {string} [versionId] Version identifier for the package
|
|
4536
5117
|
* @param {*} [options] Override http request option.
|
|
5118
|
+
* @deprecated
|
|
4537
5119
|
* @throws {RequiredError}
|
|
4538
5120
|
*/
|
|
4539
5121
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RawNotebook>>;
|
|
4540
5122
|
/**
|
|
4541
|
-
*
|
|
4542
|
-
* @summary List package notebooks
|
|
5123
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
5124
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4543
5125
|
* @param {string} environmentName Name of the environment
|
|
4544
5126
|
* @param {string} packageName Name of the package
|
|
4545
5127
|
* @param {string} [versionId] Version identifier for the package
|
|
4546
5128
|
* @param {*} [options] Override http request option.
|
|
5129
|
+
* @deprecated
|
|
4547
5130
|
* @throws {RequiredError}
|
|
4548
5131
|
*/
|
|
4549
5132
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Notebook>>>;
|
|
@@ -4553,8 +5136,8 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4553
5136
|
*/
|
|
4554
5137
|
export declare const NotebooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4555
5138
|
/**
|
|
4556
|
-
* Executes a specific cell in a
|
|
4557
|
-
* @summary Execute a specific notebook cell
|
|
5139
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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 linear `.malloy` report, wherever it lives, 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.
|
|
5140
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4558
5141
|
* @param {string} environmentName Name of the environment
|
|
4559
5142
|
* @param {string} packageName Name of the package
|
|
4560
5143
|
* @param {string} path Path to notebook within the package
|
|
@@ -4564,27 +5147,30 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4564
5147
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4565
5148
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4566
5149
|
* @param {*} [options] Override http request option.
|
|
5150
|
+
* @deprecated
|
|
4567
5151
|
* @throws {RequiredError}
|
|
4568
5152
|
*/
|
|
4569
5153
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): AxiosPromise<NotebookCellResult>;
|
|
4570
5154
|
/**
|
|
4571
|
-
* Retrieves a
|
|
4572
|
-
* @summary Get Malloy notebook cells
|
|
5155
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
5156
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4573
5157
|
* @param {string} environmentName Name of the environment
|
|
4574
5158
|
* @param {string} packageName Name of the package
|
|
4575
5159
|
* @param {string} path Path to notebook within the package.
|
|
4576
5160
|
* @param {string} [versionId] Version identifier for the package
|
|
4577
5161
|
* @param {*} [options] Override http request option.
|
|
5162
|
+
* @deprecated
|
|
4578
5163
|
* @throws {RequiredError}
|
|
4579
5164
|
*/
|
|
4580
5165
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<RawNotebook>;
|
|
4581
5166
|
/**
|
|
4582
|
-
*
|
|
4583
|
-
* @summary List package notebooks
|
|
5167
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
5168
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4584
5169
|
* @param {string} environmentName Name of the environment
|
|
4585
5170
|
* @param {string} packageName Name of the package
|
|
4586
5171
|
* @param {string} [versionId] Version identifier for the package
|
|
4587
5172
|
* @param {*} [options] Override http request option.
|
|
5173
|
+
* @deprecated
|
|
4588
5174
|
* @throws {RequiredError}
|
|
4589
5175
|
*/
|
|
4590
5176
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Notebook>>;
|
|
@@ -4594,8 +5180,8 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4594
5180
|
*/
|
|
4595
5181
|
export declare class NotebooksApi extends BaseAPI {
|
|
4596
5182
|
/**
|
|
4597
|
-
* Executes a specific cell in a
|
|
4598
|
-
* @summary Execute a specific notebook cell
|
|
5183
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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 linear `.malloy` report, wherever it lives, 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.
|
|
5184
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4599
5185
|
* @param {string} environmentName Name of the environment
|
|
4600
5186
|
* @param {string} packageName Name of the package
|
|
4601
5187
|
* @param {string} path Path to notebook within the package
|
|
@@ -4605,27 +5191,30 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
4605
5191
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4606
5192
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4607
5193
|
* @param {*} [options] Override http request option.
|
|
5194
|
+
* @deprecated
|
|
4608
5195
|
* @throws {RequiredError}
|
|
4609
5196
|
*/
|
|
4610
5197
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<NotebookCellResult, any, {}, any>>;
|
|
4611
5198
|
/**
|
|
4612
|
-
* Retrieves a
|
|
4613
|
-
* @summary Get Malloy notebook cells
|
|
5199
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
5200
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4614
5201
|
* @param {string} environmentName Name of the environment
|
|
4615
5202
|
* @param {string} packageName Name of the package
|
|
4616
5203
|
* @param {string} path Path to notebook within the package.
|
|
4617
5204
|
* @param {string} [versionId] Version identifier for the package
|
|
4618
5205
|
* @param {*} [options] Override http request option.
|
|
5206
|
+
* @deprecated
|
|
4619
5207
|
* @throws {RequiredError}
|
|
4620
5208
|
*/
|
|
4621
5209
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<RawNotebook, any, {}, any>>;
|
|
4622
5210
|
/**
|
|
4623
|
-
*
|
|
4624
|
-
* @summary List package notebooks
|
|
5211
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
5212
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4625
5213
|
* @param {string} environmentName Name of the environment
|
|
4626
5214
|
* @param {string} packageName Name of the package
|
|
4627
5215
|
* @param {string} [versionId] Version identifier for the package
|
|
4628
5216
|
* @param {*} [options] Override http request option.
|
|
5217
|
+
* @deprecated
|
|
4629
5218
|
* @throws {RequiredError}
|
|
4630
5219
|
*/
|
|
4631
5220
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Notebook[], any, {}, any>>;
|
|
@@ -4983,6 +5572,206 @@ export declare class PublisherApi extends BaseAPI {
|
|
|
4983
5572
|
*/
|
|
4984
5573
|
updateTheme(theme: Theme, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Theme, any, {}, any>>;
|
|
4985
5574
|
}
|
|
5575
|
+
/**
|
|
5576
|
+
* ReportsApi - axios parameter creator
|
|
5577
|
+
*/
|
|
5578
|
+
export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5579
|
+
/**
|
|
5580
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5581
|
+
* @summary Get a report manifest
|
|
5582
|
+
* @param {string} environmentName Name of the environment
|
|
5583
|
+
* @param {string} packageName Name of the package
|
|
5584
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5585
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5586
|
+
* @param {*} [options] Override http request option.
|
|
5587
|
+
* @throws {RequiredError}
|
|
5588
|
+
*/
|
|
5589
|
+
getReport: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5590
|
+
/**
|
|
5591
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5592
|
+
* @summary List package reports
|
|
5593
|
+
* @param {string} environmentName Name of the environment
|
|
5594
|
+
* @param {string} packageName Name of the package
|
|
5595
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5596
|
+
* @param {*} [options] Override http request option.
|
|
5597
|
+
* @throws {RequiredError}
|
|
5598
|
+
*/
|
|
5599
|
+
listReports: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5600
|
+
};
|
|
5601
|
+
/**
|
|
5602
|
+
* ReportsApi - functional programming interface
|
|
5603
|
+
*/
|
|
5604
|
+
export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
5605
|
+
/**
|
|
5606
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5607
|
+
* @summary Get a report manifest
|
|
5608
|
+
* @param {string} environmentName Name of the environment
|
|
5609
|
+
* @param {string} packageName Name of the package
|
|
5610
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5611
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5612
|
+
* @param {*} [options] Override http request option.
|
|
5613
|
+
* @throws {RequiredError}
|
|
5614
|
+
*/
|
|
5615
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportManifest>>;
|
|
5616
|
+
/**
|
|
5617
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5618
|
+
* @summary List package reports
|
|
5619
|
+
* @param {string} environmentName Name of the environment
|
|
5620
|
+
* @param {string} packageName Name of the package
|
|
5621
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5622
|
+
* @param {*} [options] Override http request option.
|
|
5623
|
+
* @throws {RequiredError}
|
|
5624
|
+
*/
|
|
5625
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Report>>>;
|
|
5626
|
+
};
|
|
5627
|
+
/**
|
|
5628
|
+
* ReportsApi - factory interface
|
|
5629
|
+
*/
|
|
5630
|
+
export declare const ReportsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5631
|
+
/**
|
|
5632
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5633
|
+
* @summary Get a report manifest
|
|
5634
|
+
* @param {string} environmentName Name of the environment
|
|
5635
|
+
* @param {string} packageName Name of the package
|
|
5636
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5637
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5638
|
+
* @param {*} [options] Override http request option.
|
|
5639
|
+
* @throws {RequiredError}
|
|
5640
|
+
*/
|
|
5641
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportManifest>;
|
|
5642
|
+
/**
|
|
5643
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5644
|
+
* @summary List package reports
|
|
5645
|
+
* @param {string} environmentName Name of the environment
|
|
5646
|
+
* @param {string} packageName Name of the package
|
|
5647
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5648
|
+
* @param {*} [options] Override http request option.
|
|
5649
|
+
* @throws {RequiredError}
|
|
5650
|
+
*/
|
|
5651
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Report>>;
|
|
5652
|
+
};
|
|
5653
|
+
/**
|
|
5654
|
+
* ReportsApi - object-oriented interface
|
|
5655
|
+
*/
|
|
5656
|
+
export declare class ReportsApi extends BaseAPI {
|
|
5657
|
+
/**
|
|
5658
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5659
|
+
* @summary Get a report manifest
|
|
5660
|
+
* @param {string} environmentName Name of the environment
|
|
5661
|
+
* @param {string} packageName Name of the package
|
|
5662
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5663
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5664
|
+
* @param {*} [options] Override http request option.
|
|
5665
|
+
* @throws {RequiredError}
|
|
5666
|
+
*/
|
|
5667
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ReportManifest, any, {}, any>>;
|
|
5668
|
+
/**
|
|
5669
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5670
|
+
* @summary List package reports
|
|
5671
|
+
* @param {string} environmentName Name of the environment
|
|
5672
|
+
* @param {string} packageName Name of the package
|
|
5673
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5674
|
+
* @param {*} [options] Override http request option.
|
|
5675
|
+
* @throws {RequiredError}
|
|
5676
|
+
*/
|
|
5677
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Report[], any, {}, any>>;
|
|
5678
|
+
}
|
|
5679
|
+
/**
|
|
5680
|
+
* SkillsApi - axios parameter creator
|
|
5681
|
+
*/
|
|
5682
|
+
export declare const SkillsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5683
|
+
/**
|
|
5684
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5685
|
+
* @summary Get one agent skill, with its body
|
|
5686
|
+
* @param {string} environmentName Name of the environment
|
|
5687
|
+
* @param {string} packageName Name of the package
|
|
5688
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5689
|
+
* @param {*} [options] Override http request option.
|
|
5690
|
+
* @throws {RequiredError}
|
|
5691
|
+
*/
|
|
5692
|
+
getSkill: (environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5693
|
+
/**
|
|
5694
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5695
|
+
* @summary List the agent skills in force for a package
|
|
5696
|
+
* @param {string} environmentName Name of the environment
|
|
5697
|
+
* @param {string} packageName Name of the package
|
|
5698
|
+
* @param {*} [options] Override http request option.
|
|
5699
|
+
* @throws {RequiredError}
|
|
5700
|
+
*/
|
|
5701
|
+
listSkills: (environmentName: string, packageName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5702
|
+
};
|
|
5703
|
+
/**
|
|
5704
|
+
* SkillsApi - functional programming interface
|
|
5705
|
+
*/
|
|
5706
|
+
export declare const SkillsApiFp: (configuration?: Configuration) => {
|
|
5707
|
+
/**
|
|
5708
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5709
|
+
* @summary Get one agent skill, with its body
|
|
5710
|
+
* @param {string} environmentName Name of the environment
|
|
5711
|
+
* @param {string} packageName Name of the package
|
|
5712
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5713
|
+
* @param {*} [options] Override http request option.
|
|
5714
|
+
* @throws {RequiredError}
|
|
5715
|
+
*/
|
|
5716
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Skill>>;
|
|
5717
|
+
/**
|
|
5718
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5719
|
+
* @summary List the agent skills in force for a package
|
|
5720
|
+
* @param {string} environmentName Name of the environment
|
|
5721
|
+
* @param {string} packageName Name of the package
|
|
5722
|
+
* @param {*} [options] Override http request option.
|
|
5723
|
+
* @throws {RequiredError}
|
|
5724
|
+
*/
|
|
5725
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillSummary>>>;
|
|
5726
|
+
};
|
|
5727
|
+
/**
|
|
5728
|
+
* SkillsApi - factory interface
|
|
5729
|
+
*/
|
|
5730
|
+
export declare const SkillsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5731
|
+
/**
|
|
5732
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5733
|
+
* @summary Get one agent skill, with its body
|
|
5734
|
+
* @param {string} environmentName Name of the environment
|
|
5735
|
+
* @param {string} packageName Name of the package
|
|
5736
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5737
|
+
* @param {*} [options] Override http request option.
|
|
5738
|
+
* @throws {RequiredError}
|
|
5739
|
+
*/
|
|
5740
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): AxiosPromise<Skill>;
|
|
5741
|
+
/**
|
|
5742
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5743
|
+
* @summary List the agent skills in force for a package
|
|
5744
|
+
* @param {string} environmentName Name of the environment
|
|
5745
|
+
* @param {string} packageName Name of the package
|
|
5746
|
+
* @param {*} [options] Override http request option.
|
|
5747
|
+
* @throws {RequiredError}
|
|
5748
|
+
*/
|
|
5749
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillSummary>>;
|
|
5750
|
+
};
|
|
5751
|
+
/**
|
|
5752
|
+
* SkillsApi - object-oriented interface
|
|
5753
|
+
*/
|
|
5754
|
+
export declare class SkillsApi extends BaseAPI {
|
|
5755
|
+
/**
|
|
5756
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
5757
|
+
* @summary Get one agent skill, with its body
|
|
5758
|
+
* @param {string} environmentName Name of the environment
|
|
5759
|
+
* @param {string} packageName Name of the package
|
|
5760
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
5761
|
+
* @param {*} [options] Override http request option.
|
|
5762
|
+
* @throws {RequiredError}
|
|
5763
|
+
*/
|
|
5764
|
+
getSkill(environmentName: string, packageName: string, skillName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Skill, any, {}, any>>;
|
|
5765
|
+
/**
|
|
5766
|
+
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
5767
|
+
* @summary List the agent skills in force for a package
|
|
5768
|
+
* @param {string} environmentName Name of the environment
|
|
5769
|
+
* @param {string} packageName Name of the package
|
|
5770
|
+
* @param {*} [options] Override http request option.
|
|
5771
|
+
* @throws {RequiredError}
|
|
5772
|
+
*/
|
|
5773
|
+
listSkills(environmentName: string, packageName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<SkillSummary[], any, {}, any>>;
|
|
5774
|
+
}
|
|
4986
5775
|
/**
|
|
4987
5776
|
* WatchModeApi - axios parameter creator
|
|
4988
5777
|
*/
|