@malloy-publisher/sdk 0.9.6 → 0.9.8
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-qnpbr4tc.cjs.js → RenderedResult-BrvrMDAP.cjs.js} +1 -1
- package/dist/{RenderedResult-BUb2Xvr2.es.js → RenderedResult-DZj-FnOJ.es.js} +2 -2
- package/dist/{ServerProvider-C6QQVKPm.es.js → ServerProvider-B_bPAsu2.es.js} +595 -410
- package/dist/ServerProvider-DuEOzwPc.cjs.js +1 -0
- 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 +489 -111
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +105 -95
- 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/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 +7984 -7452
- 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-oocN5cGE.cjs.js +141 -0
- package/dist/{useCompiledDocument-0sxonf6N.es.js → useCompiledDocument-x0B2RAH3.es.js} +4593 -4395
- 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/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.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 +173 -292
- 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 +6 -4
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as
|
|
2
|
+
import { QueryClient as ue, QueryClientProvider as ge, useQuery as be } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { styled as N, Card as
|
|
4
|
+
import { useContext as ae, useMemo as F, createContext as te, useState as X, useEffect as Pe, useCallback as ve } from "react";
|
|
5
|
+
import { styled as N, Card as Ve, CardContent as Oe, CardMedia as Se } from "@mui/material";
|
|
6
6
|
const I = {
|
|
7
7
|
blue: "#2563eb",
|
|
8
8
|
indigo: "#4f46e5",
|
|
@@ -16,36 +16,36 @@ const I = {
|
|
|
16
16
|
teal: "#0f766e",
|
|
17
17
|
cyan: "#0e7490",
|
|
18
18
|
slate: "#475569"
|
|
19
|
-
},
|
|
19
|
+
}, ba = {
|
|
20
20
|
environment: I.emerald,
|
|
21
21
|
package: I.teal,
|
|
22
22
|
connection: I.orange
|
|
23
|
-
},
|
|
23
|
+
}, Pa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', va = N(Ve)({
|
|
24
24
|
display: "flex",
|
|
25
25
|
flexDirection: "column",
|
|
26
26
|
height: "100%",
|
|
27
27
|
boxShadow: "none",
|
|
28
28
|
border: "none",
|
|
29
29
|
backgroundColor: "transparent"
|
|
30
|
-
}),
|
|
30
|
+
}), Va = N(Oe)({
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexDirection: "column",
|
|
33
33
|
padding: "0",
|
|
34
34
|
flexGrow: 1
|
|
35
|
-
}),
|
|
35
|
+
}), Oa = N(Se)({
|
|
36
36
|
padding: "0"
|
|
37
|
-
}),
|
|
37
|
+
}), Sa = N("div")(({ theme: c }) => ({
|
|
38
38
|
backgroundColor: c.palette.background.default,
|
|
39
39
|
borderRadius: "12px",
|
|
40
40
|
boxShadow: "none",
|
|
41
41
|
border: "none"
|
|
42
|
-
})),
|
|
42
|
+
})), ka = N("div")({
|
|
43
43
|
marginBottom: "48px",
|
|
44
44
|
padding: "0",
|
|
45
45
|
backgroundColor: "transparent",
|
|
46
46
|
border: "none",
|
|
47
47
|
boxShadow: "none"
|
|
48
|
-
}),
|
|
48
|
+
}), ya = N("div")({
|
|
49
49
|
backgroundColor: "transparent",
|
|
50
50
|
paddingTop: "12px",
|
|
51
51
|
paddingBottom: "2px",
|
|
@@ -53,13 +53,13 @@ const I = {
|
|
|
53
53
|
border: "none",
|
|
54
54
|
boxShadow: "none",
|
|
55
55
|
marginBottom: "0"
|
|
56
|
-
}),
|
|
56
|
+
}), Aa = N("div")({
|
|
57
57
|
height: "100%"
|
|
58
|
-
}),
|
|
58
|
+
}), Ca = N("div")({
|
|
59
59
|
height: "75vh",
|
|
60
60
|
width: "100%",
|
|
61
61
|
overflowY: "auto"
|
|
62
|
-
}),
|
|
62
|
+
}), ke = {
|
|
63
63
|
light: {
|
|
64
64
|
accent: I.blue,
|
|
65
65
|
accentHover: "#1d4ed8",
|
|
@@ -70,15 +70,15 @@ const I = {
|
|
|
70
70
|
accentHover: "#93c5fd",
|
|
71
71
|
accentContrast: "#0f172a"
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, ye = {
|
|
74
74
|
light: "#ffffff",
|
|
75
75
|
dark: "#0f172a"
|
|
76
|
-
},
|
|
76
|
+
}, Ae = 3, T = (c) => {
|
|
77
77
|
const t = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
|
|
78
78
|
if (!t) return;
|
|
79
79
|
const e = t[1].length === 3 ? [...t[1]].map((n) => n + n).join("") : t[1];
|
|
80
80
|
return [0, 2, 4].map((n) => parseInt(e.slice(n, n + 2), 16));
|
|
81
|
-
},
|
|
81
|
+
}, ne = (c) => `#${c.map((t) => Math.round(t).toString(16).padStart(2, "0")).join("")}`, z = (c, t, e) => ne(c.map((n) => n + (t - n) * e)), H = (c) => {
|
|
82
82
|
const [t, e, n] = c.map((a) => {
|
|
83
83
|
const r = a / 255;
|
|
84
84
|
return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
|
|
@@ -88,34 +88,34 @@ const I = {
|
|
|
88
88
|
const [e, n] = [H(c), H(t)].sort((a, r) => r - a);
|
|
89
89
|
return (e + 0.05) / (n + 0.05);
|
|
90
90
|
};
|
|
91
|
-
function
|
|
91
|
+
function Ia(c, t) {
|
|
92
92
|
const e = T(c), n = T(t);
|
|
93
93
|
return e && n ? q(e, n) : void 0;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function _(c, t, e =
|
|
95
|
+
const Ce = [15, 23, 42];
|
|
96
|
+
function _(c, t, e = Ae) {
|
|
97
97
|
const n = T(c), a = T(t);
|
|
98
98
|
if (!n || !a || q(n, a) >= e) return c;
|
|
99
99
|
const r = H(a) < 0.5 ? 255 : 0;
|
|
100
100
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
101
|
-
const s = T(
|
|
102
|
-
if (s && q(s, a) >= e) return
|
|
101
|
+
const s = T(z(n, r, o));
|
|
102
|
+
if (s && q(s, a) >= e) return ne(s);
|
|
103
103
|
}
|
|
104
104
|
return r === 255 ? "#ffffff" : "#000000";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
const n =
|
|
106
|
+
function Z(c, t, e = ye[t]) {
|
|
107
|
+
const n = ke[t];
|
|
108
108
|
if (!c || c.toLowerCase() === I.blue) return n;
|
|
109
109
|
if (!T(c))
|
|
110
110
|
return t === "light" ? { ...n, accent: c, accentHover: c } : n;
|
|
111
|
-
const a = _(c, e), r = T(a), o = t === "dark" ?
|
|
111
|
+
const a = _(c, e), r = T(a), o = t === "dark" ? z(r, 255, 0.25) : z(r, 0, 0.2), s = q(r, [255, 255, 255]), l = q(r, Ce);
|
|
112
112
|
return {
|
|
113
113
|
accent: a,
|
|
114
114
|
accentHover: o,
|
|
115
115
|
accentContrast: s >= l ? "#ffffff" : "#0f172a"
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const Ie = [
|
|
119
119
|
I.blue,
|
|
120
120
|
I.orange,
|
|
121
121
|
I.emerald,
|
|
@@ -124,11 +124,11 @@ const Ce = [
|
|
|
124
124
|
I.amber,
|
|
125
125
|
I.cyan,
|
|
126
126
|
I.lime
|
|
127
|
-
],
|
|
127
|
+
], xe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", ee = {
|
|
128
128
|
defaultMode: "light",
|
|
129
129
|
allowUserToggle: !0,
|
|
130
130
|
palette: {
|
|
131
|
-
series:
|
|
131
|
+
series: Ie,
|
|
132
132
|
// The chart canvas. One ground for the whole dashboard in both modes —
|
|
133
133
|
// canvas, card and the panel between cards are all this value, and the
|
|
134
134
|
// borders do the separating. See `tile`.
|
|
@@ -214,10 +214,10 @@ const Ce = [
|
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
font: {
|
|
217
|
-
family:
|
|
217
|
+
family: xe,
|
|
218
218
|
size: 12
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, Re = [
|
|
221
221
|
"background",
|
|
222
222
|
"tableHeader",
|
|
223
223
|
"tableHeaderBackground",
|
|
@@ -232,8 +232,8 @@ const Ce = [
|
|
|
232
232
|
"chartText",
|
|
233
233
|
"value"
|
|
234
234
|
];
|
|
235
|
-
function
|
|
236
|
-
const e =
|
|
235
|
+
function re(c, t) {
|
|
236
|
+
const e = ee.palette ?? {}, n = ee.font ?? {
|
|
237
237
|
family: "sans-serif",
|
|
238
238
|
size: 12
|
|
239
239
|
};
|
|
@@ -261,7 +261,7 @@ function ne(c, t) {
|
|
|
261
261
|
for (const k of c)
|
|
262
262
|
if (k) {
|
|
263
263
|
Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
|
|
264
|
-
for (const C of
|
|
264
|
+
for (const C of Re) {
|
|
265
265
|
const R = k.palette?.[C];
|
|
266
266
|
R && (l[C] = { ...l[C], ...R }, R.light !== void 0 && i.light.add(C), R.dark !== void 0 && i.dark.add(C));
|
|
267
267
|
}
|
|
@@ -274,7 +274,7 @@ function ne(c, t) {
|
|
|
274
274
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
275
275
|
// reads. The defaults are drawn as they always were.
|
|
276
276
|
series: p && r ? a.map((k) => _(k, m)) : a,
|
|
277
|
-
...
|
|
277
|
+
...Z(a[0], t, m),
|
|
278
278
|
font: { family: o, size: s },
|
|
279
279
|
background: m,
|
|
280
280
|
tableHeader: d("tableHeader"),
|
|
@@ -322,15 +322,15 @@ function ne(c, t) {
|
|
|
322
322
|
// contrast on the slate panel.
|
|
323
323
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
324
324
|
// link whatever the operator picked for the data.
|
|
325
|
-
drillLink:
|
|
325
|
+
drillLink: Z(void 0, t).accent
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ne(c, t, e) {
|
|
329
329
|
const n = t ?? c ?? "light";
|
|
330
330
|
return n === "auto" ? e ? "dark" : "light" : n;
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
function
|
|
332
|
+
const oe = te(void 0);
|
|
333
|
+
function Te({
|
|
334
334
|
layers: c,
|
|
335
335
|
mode: t,
|
|
336
336
|
userChoice: e,
|
|
@@ -338,16 +338,16 @@ function Ne({
|
|
|
338
338
|
allowUserToggle: a = !0,
|
|
339
339
|
children: r
|
|
340
340
|
}) {
|
|
341
|
-
const o = F(() =>
|
|
341
|
+
const o = F(() => re(c, t), [c, t]), s = F(
|
|
342
342
|
() => ({ theme: o, layers: c, mode: t, userChoice: e, setMode: n, allowUserToggle: a }),
|
|
343
343
|
[o, c, t, e, n, a]
|
|
344
344
|
);
|
|
345
|
-
return /* @__PURE__ */ D(
|
|
345
|
+
return /* @__PURE__ */ D(oe.Provider, { value: s, children: r });
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
const c =
|
|
347
|
+
function xa() {
|
|
348
|
+
const c = ae(oe);
|
|
349
349
|
return c || {
|
|
350
|
-
theme:
|
|
350
|
+
theme: re([], "light"),
|
|
351
351
|
layers: [],
|
|
352
352
|
mode: "light",
|
|
353
353
|
userChoice: void 0,
|
|
@@ -363,14 +363,14 @@ class x {
|
|
|
363
363
|
}
|
|
364
364
|
configuration;
|
|
365
365
|
}
|
|
366
|
-
class
|
|
366
|
+
class Ue extends Error {
|
|
367
367
|
constructor(t, e) {
|
|
368
368
|
super(e), this.field = t, this.name = "RequiredError";
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
const b = {}, P = "https://example.com", h = function(c, t, e) {
|
|
372
372
|
if (e == null)
|
|
373
|
-
throw new
|
|
373
|
+
throw new Ue(t, `Required parameter ${t} was null or undefined when calling ${c}.`);
|
|
374
374
|
};
|
|
375
375
|
function W(c, t, e = "") {
|
|
376
376
|
t != null && (typeof t == "object" ? Array.isArray(t) || t instanceof Set ? t.forEach((n) => W(c, n, e)) : Object.keys(t).forEach(
|
|
@@ -380,11 +380,11 @@ function W(c, t, e = "") {
|
|
|
380
380
|
const v = function(c, ...t) {
|
|
381
381
|
const e = new URLSearchParams(c.search);
|
|
382
382
|
W(e, t), c.search = e.toString();
|
|
383
|
-
},
|
|
383
|
+
}, Ee = function(c, t) {
|
|
384
384
|
return t instanceof Set ? Array.from(t) : t;
|
|
385
385
|
}, y = function(c, t, e) {
|
|
386
386
|
const n = typeof c != "string";
|
|
387
|
-
return (n && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(c !== void 0 ? c : {},
|
|
387
|
+
return (n && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(c !== void 0 ? c : {}, Ee) : c || "";
|
|
388
388
|
}, V = function(c) {
|
|
389
389
|
return c.pathname + c.search + c.hash;
|
|
390
390
|
}, O = function(c, t, e, n) {
|
|
@@ -392,31 +392,34 @@ const v = function(c, ...t) {
|
|
|
392
392
|
const o = { ...c.options, url: (a.defaults.baseURL ? "" : n?.basePath ?? r) + c.url };
|
|
393
393
|
return a.request(o);
|
|
394
394
|
};
|
|
395
|
-
},
|
|
395
|
+
}, Ra = {
|
|
396
396
|
Bigquery: "bigquery",
|
|
397
397
|
Snowflake: "snowflake",
|
|
398
398
|
Postgres: "postgres",
|
|
399
399
|
Gcs: "gcs",
|
|
400
400
|
S3: "s3",
|
|
401
401
|
Azure: "azure"
|
|
402
|
-
},
|
|
402
|
+
}, Na = {
|
|
403
403
|
ServicePrincipal: "service_principal",
|
|
404
404
|
SasToken: "sas_token"
|
|
405
|
-
},
|
|
405
|
+
}, Ta = {
|
|
406
406
|
Error: "error",
|
|
407
407
|
Warn: "warn",
|
|
408
408
|
Debug: "debug"
|
|
409
|
-
},
|
|
409
|
+
}, Ua = {
|
|
410
410
|
Append: "append",
|
|
411
411
|
File: "file",
|
|
412
412
|
Package: "package"
|
|
413
|
-
},
|
|
413
|
+
}, Ea = {
|
|
414
414
|
Success: "success",
|
|
415
415
|
Error: "error"
|
|
416
|
-
},
|
|
416
|
+
}, wa = {
|
|
417
|
+
Grid: "grid",
|
|
418
|
+
Linear: "linear"
|
|
419
|
+
}, fa = {
|
|
417
420
|
Dashboard: "dashboard",
|
|
418
421
|
Notebook: "notebook"
|
|
419
|
-
},
|
|
422
|
+
}, Ma = {
|
|
420
423
|
Postgres: "postgres",
|
|
421
424
|
Bigquery: "bigquery",
|
|
422
425
|
Snowflake: "snowflake",
|
|
@@ -427,136 +430,139 @@ const v = function(c, ...t) {
|
|
|
427
430
|
Motherduck: "motherduck",
|
|
428
431
|
Ducklake: "ducklake",
|
|
429
432
|
Publisher: "publisher"
|
|
430
|
-
},
|
|
433
|
+
}, Ba = {
|
|
431
434
|
Ssh: "ssh"
|
|
432
|
-
},
|
|
435
|
+
}, ja = {
|
|
433
436
|
Ok: "ok",
|
|
434
437
|
Failed: "failed"
|
|
435
|
-
},
|
|
438
|
+
}, Fa = {
|
|
439
|
+
Grid: "grid",
|
|
440
|
+
Linear: "linear"
|
|
441
|
+
}, Da = {
|
|
436
442
|
Dashboard: "dashboard",
|
|
437
443
|
Notebook: "notebook"
|
|
438
|
-
},
|
|
444
|
+
}, qa = {
|
|
439
445
|
Query: "query",
|
|
440
446
|
Text: "text"
|
|
441
|
-
},
|
|
447
|
+
}, Qa = {
|
|
442
448
|
Viewport: "viewport"
|
|
443
|
-
},
|
|
449
|
+
}, La = {
|
|
444
450
|
Embedded: "embedded",
|
|
445
451
|
Materialized: "materialized"
|
|
446
|
-
},
|
|
452
|
+
}, za = {
|
|
447
453
|
Equal: "equal",
|
|
448
454
|
In: "in",
|
|
449
455
|
Like: "like",
|
|
450
456
|
GreaterThan: "greater_than",
|
|
451
457
|
LessThan: "less_than"
|
|
452
|
-
},
|
|
458
|
+
}, Ha = {
|
|
453
459
|
Live: "live",
|
|
454
460
|
StaleOk: "stale_ok",
|
|
455
461
|
Fail: "fail"
|
|
456
|
-
},
|
|
462
|
+
}, _a = {
|
|
457
463
|
Select: "select",
|
|
458
464
|
Multiselect: "multiselect"
|
|
459
|
-
},
|
|
465
|
+
}, Wa = {
|
|
460
466
|
Merge: "merge",
|
|
461
467
|
RangeReplace: "range_replace"
|
|
462
|
-
},
|
|
468
|
+
}, Ga = {
|
|
463
469
|
Debug: "debug",
|
|
464
470
|
Info: "info",
|
|
465
471
|
Warn: "warn",
|
|
466
472
|
Error: "error"
|
|
467
|
-
},
|
|
473
|
+
}, $a = {
|
|
468
474
|
Persist: "persist",
|
|
469
475
|
Preaggregate: "preaggregate"
|
|
470
|
-
},
|
|
476
|
+
}, Ka = {
|
|
471
477
|
Reused: "reused",
|
|
472
478
|
Recomputed: "recomputed"
|
|
473
|
-
},
|
|
479
|
+
}, Ya = {
|
|
474
480
|
Live: "live",
|
|
475
481
|
StaleOk: "stale_ok",
|
|
476
482
|
Fail: "fail"
|
|
477
|
-
},
|
|
483
|
+
}, Ja = {
|
|
478
484
|
Delta: "delta",
|
|
479
485
|
Full: "full",
|
|
480
486
|
None: "none"
|
|
481
|
-
},
|
|
487
|
+
}, Xa = {
|
|
482
488
|
Pending: "PENDING",
|
|
483
489
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
484
490
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
485
491
|
Failed: "FAILED",
|
|
486
492
|
Cancelled: "CANCELLED"
|
|
487
|
-
},
|
|
493
|
+
}, Za = {
|
|
488
494
|
Markdown: "markdown",
|
|
489
495
|
Code: "code"
|
|
490
|
-
},
|
|
496
|
+
}, et = {
|
|
491
497
|
Markdown: "markdown",
|
|
492
498
|
Query: "query",
|
|
493
499
|
Definition: "definition"
|
|
494
|
-
},
|
|
500
|
+
}, at = {
|
|
495
501
|
Markdown: "markdown",
|
|
496
502
|
Code: "code"
|
|
497
|
-
},
|
|
503
|
+
}, tt = {
|
|
498
504
|
Markdown: "markdown",
|
|
499
505
|
Query: "query",
|
|
500
506
|
Definition: "definition"
|
|
501
|
-
},
|
|
507
|
+
}, nt = {
|
|
502
508
|
Version: "version",
|
|
503
509
|
Package: "package"
|
|
504
|
-
},
|
|
510
|
+
}, rt = {
|
|
505
511
|
Declared: "declared",
|
|
506
512
|
All: "all"
|
|
507
|
-
},
|
|
513
|
+
}, ot = {
|
|
508
514
|
Unbound: "unbound",
|
|
509
515
|
Bound: "bound",
|
|
510
516
|
LiveFallback: "live_fallback"
|
|
511
|
-
},
|
|
517
|
+
}, st = {
|
|
512
518
|
Lexical: "lexical",
|
|
513
519
|
Indexing: "indexing",
|
|
514
520
|
Ready: "ready",
|
|
515
521
|
Error: "error",
|
|
516
522
|
Cooldown: "cooldown",
|
|
517
523
|
TooManyEntities: "too-many-entities"
|
|
518
|
-
},
|
|
524
|
+
}, ct = {
|
|
519
525
|
Cooldown: "cooldown",
|
|
520
526
|
TooManyEntities: "too-many-entities"
|
|
521
|
-
},
|
|
527
|
+
}, lt = {
|
|
522
528
|
Keyphrase: "keyphrase",
|
|
523
529
|
SourceSummary: "source_summary"
|
|
524
|
-
},
|
|
530
|
+
}, it = {
|
|
525
531
|
Persist: "persist",
|
|
526
532
|
Preaggregate: "preaggregate"
|
|
527
|
-
},
|
|
533
|
+
}, pt = {
|
|
528
534
|
Error: "error",
|
|
529
535
|
Warn: "warn"
|
|
530
|
-
},
|
|
536
|
+
}, dt = {
|
|
531
537
|
Persist: "persist",
|
|
532
538
|
Preaggregate: "preaggregate"
|
|
533
|
-
},
|
|
539
|
+
}, ht = {
|
|
534
540
|
Disable: "disable",
|
|
535
541
|
NoVerify: "no-verify",
|
|
536
542
|
VerifyCa: "verify-ca",
|
|
537
543
|
VerifyFull: "verify-full"
|
|
538
|
-
},
|
|
544
|
+
}, mt = {
|
|
539
545
|
Interactive: "interactive",
|
|
540
546
|
Materialize: "materialize",
|
|
541
547
|
Index: "index",
|
|
542
548
|
Ops: "ops"
|
|
543
|
-
},
|
|
549
|
+
}, ut = {
|
|
544
550
|
Query: "query",
|
|
545
551
|
ServerDefault: "server_default"
|
|
546
|
-
},
|
|
552
|
+
}, gt = {
|
|
547
553
|
Storage: "storage",
|
|
548
554
|
LiveFallback: "live_fallback"
|
|
549
|
-
},
|
|
555
|
+
}, bt = {
|
|
550
556
|
Malloynb: "malloynb",
|
|
551
557
|
Malloy: "malloy"
|
|
552
|
-
},
|
|
558
|
+
}, Pt = {
|
|
553
559
|
Snapshot: "SNAPSHOT",
|
|
554
560
|
Copy: "COPY"
|
|
555
|
-
},
|
|
561
|
+
}, vt = {
|
|
556
562
|
Storage: "storage",
|
|
557
563
|
Colocated: "colocated",
|
|
558
564
|
Preaggregate: "preaggregate"
|
|
559
|
-
},
|
|
565
|
+
}, Vt = {
|
|
560
566
|
FreeParameter: "free_parameter",
|
|
561
567
|
Given: "given",
|
|
562
568
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -571,19 +577,31 @@ const v = function(c, ...t) {
|
|
|
571
577
|
Authorize: "authorize",
|
|
572
578
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
573
579
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
574
|
-
},
|
|
580
|
+
}, Ot = {
|
|
581
|
+
Grid: "grid",
|
|
582
|
+
Linear: "linear"
|
|
583
|
+
}, St = {
|
|
584
|
+
Malloynb: "malloynb",
|
|
585
|
+
Malloy: "malloy"
|
|
586
|
+
}, kt = {
|
|
587
|
+
Grid: "grid",
|
|
588
|
+
Linear: "linear"
|
|
589
|
+
}, yt = {
|
|
590
|
+
Query: "query",
|
|
591
|
+
Text: "text"
|
|
592
|
+
}, At = {
|
|
575
593
|
Publish: "publish",
|
|
576
594
|
OnDemand: "on_demand",
|
|
577
595
|
Scheduler: "scheduler"
|
|
578
|
-
},
|
|
596
|
+
}, Ct = {
|
|
579
597
|
Config: "config",
|
|
580
598
|
CredentialChain: "credential_chain"
|
|
581
|
-
},
|
|
599
|
+
}, It = {
|
|
582
600
|
Initializing: "initializing",
|
|
583
601
|
Serving: "serving",
|
|
584
602
|
Draining: "draining",
|
|
585
603
|
Throttled: "throttled"
|
|
586
|
-
},
|
|
604
|
+
}, xt = {
|
|
587
605
|
Light: "light",
|
|
588
606
|
Dark: "dark",
|
|
589
607
|
Auto: "auto"
|
|
@@ -1197,7 +1215,7 @@ const v = function(c, ...t) {
|
|
|
1197
1215
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1198
1216
|
}
|
|
1199
1217
|
};
|
|
1200
|
-
},
|
|
1218
|
+
}, Rt = function(c, t, e) {
|
|
1201
1219
|
const n = A(c);
|
|
1202
1220
|
return {
|
|
1203
1221
|
/**
|
|
@@ -1410,7 +1428,7 @@ const v = function(c, ...t) {
|
|
|
1410
1428
|
}
|
|
1411
1429
|
};
|
|
1412
1430
|
};
|
|
1413
|
-
class
|
|
1431
|
+
class fe extends x {
|
|
1414
1432
|
/**
|
|
1415
1433
|
* Creates a new database connection in the specified environment.
|
|
1416
1434
|
* @summary Create a new database connection
|
|
@@ -1620,7 +1638,7 @@ class Ee extends x {
|
|
|
1620
1638
|
return A(this.configuration).updateConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1621
1639
|
}
|
|
1622
1640
|
}
|
|
1623
|
-
const
|
|
1641
|
+
const Me = function(c) {
|
|
1624
1642
|
return {
|
|
1625
1643
|
/**
|
|
1626
1644
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1643,8 +1661,8 @@ const fe = function(c) {
|
|
|
1643
1661
|
};
|
|
1644
1662
|
}
|
|
1645
1663
|
};
|
|
1646
|
-
},
|
|
1647
|
-
const t =
|
|
1664
|
+
}, se = function(c) {
|
|
1665
|
+
const t = Me(c);
|
|
1648
1666
|
return {
|
|
1649
1667
|
/**
|
|
1650
1668
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1658,8 +1676,8 @@ const fe = function(c) {
|
|
|
1658
1676
|
return (s, l) => O(a, u, g, c)(s, o || l);
|
|
1659
1677
|
}
|
|
1660
1678
|
};
|
|
1661
|
-
},
|
|
1662
|
-
const n =
|
|
1679
|
+
}, Nt = function(c, t, e) {
|
|
1680
|
+
const n = se(c);
|
|
1663
1681
|
return {
|
|
1664
1682
|
/**
|
|
1665
1683
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1673,7 +1691,7 @@ const fe = function(c) {
|
|
|
1673
1691
|
}
|
|
1674
1692
|
};
|
|
1675
1693
|
};
|
|
1676
|
-
class
|
|
1694
|
+
class Tt extends x {
|
|
1677
1695
|
/**
|
|
1678
1696
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1679
1697
|
* @summary Test database connection configuration
|
|
@@ -1682,19 +1700,20 @@ class St extends x {
|
|
|
1682
1700
|
* @throws {RequiredError}
|
|
1683
1701
|
*/
|
|
1684
1702
|
testConnectionConfiguration(t, e) {
|
|
1685
|
-
return
|
|
1703
|
+
return se(this.configuration).testConnectionConfiguration(t, e).then((n) => n(this.axios, this.basePath));
|
|
1686
1704
|
}
|
|
1687
1705
|
}
|
|
1688
|
-
const
|
|
1706
|
+
const Be = function(c) {
|
|
1689
1707
|
return {
|
|
1690
1708
|
/**
|
|
1691
|
-
* Retrieves everything a viewer needs to render one
|
|
1692
|
-
* @summary Get a dashboard manifest
|
|
1709
|
+
* **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/`.
|
|
1710
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
1693
1711
|
* @param {string} environmentName Name of the environment
|
|
1694
1712
|
* @param {string} packageName Name of the package
|
|
1695
|
-
* @param {string} dashboardName The
|
|
1713
|
+
* @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.
|
|
1696
1714
|
* @param {string} [versionId] Version identifier for the package
|
|
1697
1715
|
* @param {*} [options] Override http request option.
|
|
1716
|
+
* @deprecated
|
|
1698
1717
|
* @throws {RequiredError}
|
|
1699
1718
|
*/
|
|
1700
1719
|
getDashboard: async (t, e, n, a, r = {}) => {
|
|
@@ -1711,12 +1730,13 @@ const Me = function(c) {
|
|
|
1711
1730
|
};
|
|
1712
1731
|
},
|
|
1713
1732
|
/**
|
|
1714
|
-
*
|
|
1715
|
-
* @summary List package dashboards
|
|
1733
|
+
* **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.
|
|
1734
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
1716
1735
|
* @param {string} environmentName Name of the environment
|
|
1717
1736
|
* @param {string} packageName Name of the package
|
|
1718
1737
|
* @param {string} [versionId] Version identifier for the package
|
|
1719
1738
|
* @param {*} [options] Override http request option.
|
|
1739
|
+
* @deprecated
|
|
1720
1740
|
* @throws {RequiredError}
|
|
1721
1741
|
*/
|
|
1722
1742
|
listDashboards: async (t, e, n, a = {}) => {
|
|
@@ -1734,16 +1754,17 @@ const Me = function(c) {
|
|
|
1734
1754
|
}
|
|
1735
1755
|
};
|
|
1736
1756
|
}, G = function(c) {
|
|
1737
|
-
const t =
|
|
1757
|
+
const t = Be(c);
|
|
1738
1758
|
return {
|
|
1739
1759
|
/**
|
|
1740
|
-
* Retrieves everything a viewer needs to render one
|
|
1741
|
-
* @summary Get a dashboard manifest
|
|
1760
|
+
* **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/`.
|
|
1761
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
1742
1762
|
* @param {string} environmentName Name of the environment
|
|
1743
1763
|
* @param {string} packageName Name of the package
|
|
1744
|
-
* @param {string} dashboardName The
|
|
1764
|
+
* @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.
|
|
1745
1765
|
* @param {string} [versionId] Version identifier for the package
|
|
1746
1766
|
* @param {*} [options] Override http request option.
|
|
1767
|
+
* @deprecated
|
|
1747
1768
|
* @throws {RequiredError}
|
|
1748
1769
|
*/
|
|
1749
1770
|
async getDashboard(e, n, a, r, o) {
|
|
@@ -1751,12 +1772,13 @@ const Me = function(c) {
|
|
|
1751
1772
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
1752
1773
|
},
|
|
1753
1774
|
/**
|
|
1754
|
-
*
|
|
1755
|
-
* @summary List package dashboards
|
|
1775
|
+
* **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.
|
|
1776
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
1756
1777
|
* @param {string} environmentName Name of the environment
|
|
1757
1778
|
* @param {string} packageName Name of the package
|
|
1758
1779
|
* @param {string} [versionId] Version identifier for the package
|
|
1759
1780
|
* @param {*} [options] Override http request option.
|
|
1781
|
+
* @deprecated
|
|
1760
1782
|
* @throws {RequiredError}
|
|
1761
1783
|
*/
|
|
1762
1784
|
async listDashboards(e, n, a, r) {
|
|
@@ -1764,29 +1786,31 @@ const Me = function(c) {
|
|
|
1764
1786
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1765
1787
|
}
|
|
1766
1788
|
};
|
|
1767
|
-
},
|
|
1789
|
+
}, Ut = function(c, t, e) {
|
|
1768
1790
|
const n = G(c);
|
|
1769
1791
|
return {
|
|
1770
1792
|
/**
|
|
1771
|
-
* Retrieves everything a viewer needs to render one
|
|
1772
|
-
* @summary Get a dashboard manifest
|
|
1793
|
+
* **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/`.
|
|
1794
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
1773
1795
|
* @param {string} environmentName Name of the environment
|
|
1774
1796
|
* @param {string} packageName Name of the package
|
|
1775
|
-
* @param {string} dashboardName The
|
|
1797
|
+
* @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.
|
|
1776
1798
|
* @param {string} [versionId] Version identifier for the package
|
|
1777
1799
|
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @deprecated
|
|
1778
1801
|
* @throws {RequiredError}
|
|
1779
1802
|
*/
|
|
1780
1803
|
getDashboard(a, r, o, s, l) {
|
|
1781
1804
|
return n.getDashboard(a, r, o, s, l).then((i) => i(e, t));
|
|
1782
1805
|
},
|
|
1783
1806
|
/**
|
|
1784
|
-
*
|
|
1785
|
-
* @summary List package dashboards
|
|
1807
|
+
* **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.
|
|
1808
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
1786
1809
|
* @param {string} environmentName Name of the environment
|
|
1787
1810
|
* @param {string} packageName Name of the package
|
|
1788
1811
|
* @param {string} [versionId] Version identifier for the package
|
|
1789
1812
|
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @deprecated
|
|
1790
1814
|
* @throws {RequiredError}
|
|
1791
1815
|
*/
|
|
1792
1816
|
listDashboards(a, r, o, s) {
|
|
@@ -1794,34 +1818,36 @@ const Me = function(c) {
|
|
|
1794
1818
|
}
|
|
1795
1819
|
};
|
|
1796
1820
|
};
|
|
1797
|
-
class
|
|
1821
|
+
class je extends x {
|
|
1798
1822
|
/**
|
|
1799
|
-
* Retrieves everything a viewer needs to render one
|
|
1800
|
-
* @summary Get a dashboard manifest
|
|
1823
|
+
* **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/`.
|
|
1824
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
1801
1825
|
* @param {string} environmentName Name of the environment
|
|
1802
1826
|
* @param {string} packageName Name of the package
|
|
1803
|
-
* @param {string} dashboardName The
|
|
1827
|
+
* @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.
|
|
1804
1828
|
* @param {string} [versionId] Version identifier for the package
|
|
1805
1829
|
* @param {*} [options] Override http request option.
|
|
1830
|
+
* @deprecated
|
|
1806
1831
|
* @throws {RequiredError}
|
|
1807
1832
|
*/
|
|
1808
1833
|
getDashboard(t, e, n, a, r) {
|
|
1809
1834
|
return G(this.configuration).getDashboard(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1810
1835
|
}
|
|
1811
1836
|
/**
|
|
1812
|
-
*
|
|
1813
|
-
* @summary List package dashboards
|
|
1837
|
+
* **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.
|
|
1838
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
1814
1839
|
* @param {string} environmentName Name of the environment
|
|
1815
1840
|
* @param {string} packageName Name of the package
|
|
1816
1841
|
* @param {string} [versionId] Version identifier for the package
|
|
1817
1842
|
* @param {*} [options] Override http request option.
|
|
1843
|
+
* @deprecated
|
|
1818
1844
|
* @throws {RequiredError}
|
|
1819
1845
|
*/
|
|
1820
1846
|
listDashboards(t, e, n, a) {
|
|
1821
1847
|
return G(this.configuration).listDashboards(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1822
1848
|
}
|
|
1823
1849
|
}
|
|
1824
|
-
const
|
|
1850
|
+
const Fe = function(c) {
|
|
1825
1851
|
return {
|
|
1826
1852
|
/**
|
|
1827
1853
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1845,8 +1871,8 @@ const je = function(c) {
|
|
|
1845
1871
|
};
|
|
1846
1872
|
}
|
|
1847
1873
|
};
|
|
1848
|
-
},
|
|
1849
|
-
const t =
|
|
1874
|
+
}, ce = function(c) {
|
|
1875
|
+
const t = Fe(c);
|
|
1850
1876
|
return {
|
|
1851
1877
|
/**
|
|
1852
1878
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1861,8 +1887,8 @@ const je = function(c) {
|
|
|
1861
1887
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
1862
1888
|
}
|
|
1863
1889
|
};
|
|
1864
|
-
},
|
|
1865
|
-
const n =
|
|
1890
|
+
}, Et = function(c, t, e) {
|
|
1891
|
+
const n = ce(c);
|
|
1866
1892
|
return {
|
|
1867
1893
|
/**
|
|
1868
1894
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1877,7 +1903,7 @@ const je = function(c) {
|
|
|
1877
1903
|
}
|
|
1878
1904
|
};
|
|
1879
1905
|
};
|
|
1880
|
-
class
|
|
1906
|
+
class De extends x {
|
|
1881
1907
|
/**
|
|
1882
1908
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
1883
1909
|
* @summary List package data apps
|
|
@@ -1887,10 +1913,10 @@ class Fe extends x {
|
|
|
1887
1913
|
* @throws {RequiredError}
|
|
1888
1914
|
*/
|
|
1889
1915
|
listDataApps(t, e, n) {
|
|
1890
|
-
return
|
|
1916
|
+
return ce(this.configuration).listDataApps(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
1891
1917
|
}
|
|
1892
1918
|
}
|
|
1893
|
-
const
|
|
1919
|
+
const qe = function(c) {
|
|
1894
1920
|
return {
|
|
1895
1921
|
/**
|
|
1896
1922
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1915,8 +1941,8 @@ const De = function(c) {
|
|
|
1915
1941
|
};
|
|
1916
1942
|
}
|
|
1917
1943
|
};
|
|
1918
|
-
},
|
|
1919
|
-
const t =
|
|
1944
|
+
}, le = function(c) {
|
|
1945
|
+
const t = qe(c);
|
|
1920
1946
|
return {
|
|
1921
1947
|
/**
|
|
1922
1948
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1932,8 +1958,8 @@ const De = function(c) {
|
|
|
1932
1958
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1933
1959
|
}
|
|
1934
1960
|
};
|
|
1935
|
-
},
|
|
1936
|
-
const n =
|
|
1961
|
+
}, wt = function(c, t, e) {
|
|
1962
|
+
const n = le(c);
|
|
1937
1963
|
return {
|
|
1938
1964
|
/**
|
|
1939
1965
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1949,7 +1975,7 @@ const De = function(c) {
|
|
|
1949
1975
|
}
|
|
1950
1976
|
};
|
|
1951
1977
|
};
|
|
1952
|
-
class
|
|
1978
|
+
class Qe extends x {
|
|
1953
1979
|
/**
|
|
1954
1980
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
1955
1981
|
* @summary List embedded databases
|
|
@@ -1960,10 +1986,10 @@ class qe extends x {
|
|
|
1960
1986
|
* @throws {RequiredError}
|
|
1961
1987
|
*/
|
|
1962
1988
|
listDatabases(t, e, n, a) {
|
|
1963
|
-
return
|
|
1989
|
+
return le(this.configuration).listDatabases(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1964
1990
|
}
|
|
1965
1991
|
}
|
|
1966
|
-
const
|
|
1992
|
+
const Le = function(c) {
|
|
1967
1993
|
return {
|
|
1968
1994
|
/**
|
|
1969
1995
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -2066,8 +2092,8 @@ const Qe = function(c) {
|
|
|
2066
2092
|
};
|
|
2067
2093
|
}
|
|
2068
2094
|
};
|
|
2069
|
-
},
|
|
2070
|
-
const t =
|
|
2095
|
+
}, E = function(c) {
|
|
2096
|
+
const t = Le(c);
|
|
2071
2097
|
return {
|
|
2072
2098
|
/**
|
|
2073
2099
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -2126,8 +2152,8 @@ const Qe = function(c) {
|
|
|
2126
2152
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
2127
2153
|
}
|
|
2128
2154
|
};
|
|
2129
|
-
},
|
|
2130
|
-
const n =
|
|
2155
|
+
}, ft = function(c, t, e) {
|
|
2156
|
+
const n = E(c);
|
|
2131
2157
|
return {
|
|
2132
2158
|
/**
|
|
2133
2159
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -2191,7 +2217,7 @@ class ze extends x {
|
|
|
2191
2217
|
* @throws {RequiredError}
|
|
2192
2218
|
*/
|
|
2193
2219
|
createEnvironment(t, e) {
|
|
2194
|
-
return
|
|
2220
|
+
return E(this.configuration).createEnvironment(t, e).then((n) => n(this.axios, this.basePath));
|
|
2195
2221
|
}
|
|
2196
2222
|
/**
|
|
2197
2223
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -2201,7 +2227,7 @@ class ze extends x {
|
|
|
2201
2227
|
* @throws {RequiredError}
|
|
2202
2228
|
*/
|
|
2203
2229
|
deleteEnvironment(t, e) {
|
|
2204
|
-
return
|
|
2230
|
+
return E(this.configuration).deleteEnvironment(t, e).then((n) => n(this.axios, this.basePath));
|
|
2205
2231
|
}
|
|
2206
2232
|
/**
|
|
2207
2233
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -2212,7 +2238,7 @@ class ze extends x {
|
|
|
2212
2238
|
* @throws {RequiredError}
|
|
2213
2239
|
*/
|
|
2214
2240
|
getEnvironment(t, e, n) {
|
|
2215
|
-
return
|
|
2241
|
+
return E(this.configuration).getEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
2216
2242
|
}
|
|
2217
2243
|
/**
|
|
2218
2244
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
|
|
@@ -2221,7 +2247,7 @@ class ze extends x {
|
|
|
2221
2247
|
* @throws {RequiredError}
|
|
2222
2248
|
*/
|
|
2223
2249
|
listEnvironments(t) {
|
|
2224
|
-
return
|
|
2250
|
+
return E(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
|
|
2225
2251
|
}
|
|
2226
2252
|
/**
|
|
2227
2253
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -2232,10 +2258,10 @@ class ze extends x {
|
|
|
2232
2258
|
* @throws {RequiredError}
|
|
2233
2259
|
*/
|
|
2234
2260
|
updateEnvironment(t, e, n) {
|
|
2235
|
-
return
|
|
2261
|
+
return E(this.configuration).updateEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
2236
2262
|
}
|
|
2237
2263
|
}
|
|
2238
|
-
const
|
|
2264
|
+
const He = function(c) {
|
|
2239
2265
|
return {
|
|
2240
2266
|
/**
|
|
2241
2267
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -2351,8 +2377,8 @@ const Le = function(c) {
|
|
|
2351
2377
|
};
|
|
2352
2378
|
}
|
|
2353
2379
|
};
|
|
2354
|
-
},
|
|
2355
|
-
const t =
|
|
2380
|
+
}, w = function(c) {
|
|
2381
|
+
const t = He(c);
|
|
2356
2382
|
return {
|
|
2357
2383
|
/**
|
|
2358
2384
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -2423,8 +2449,8 @@ const Le = function(c) {
|
|
|
2423
2449
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
2424
2450
|
}
|
|
2425
2451
|
};
|
|
2426
|
-
},
|
|
2427
|
-
const n =
|
|
2452
|
+
}, Mt = function(c, t, e) {
|
|
2453
|
+
const n = w(c);
|
|
2428
2454
|
return {
|
|
2429
2455
|
/**
|
|
2430
2456
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -2491,7 +2517,7 @@ const Le = function(c) {
|
|
|
2491
2517
|
}
|
|
2492
2518
|
};
|
|
2493
2519
|
};
|
|
2494
|
-
class
|
|
2520
|
+
class _e extends x {
|
|
2495
2521
|
/**
|
|
2496
2522
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
2497
2523
|
* @summary Create a materialization
|
|
@@ -2502,7 +2528,7 @@ class He extends x {
|
|
|
2502
2528
|
* @throws {RequiredError}
|
|
2503
2529
|
*/
|
|
2504
2530
|
createMaterialization(t, e, n, a) {
|
|
2505
|
-
return
|
|
2531
|
+
return w(this.configuration).createMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
2506
2532
|
}
|
|
2507
2533
|
/**
|
|
2508
2534
|
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
@@ -2515,7 +2541,7 @@ class He extends x {
|
|
|
2515
2541
|
* @throws {RequiredError}
|
|
2516
2542
|
*/
|
|
2517
2543
|
deleteMaterialization(t, e, n, a, r) {
|
|
2518
|
-
return
|
|
2544
|
+
return w(this.configuration).deleteMaterialization(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2519
2545
|
}
|
|
2520
2546
|
/**
|
|
2521
2547
|
*
|
|
@@ -2527,7 +2553,7 @@ class He extends x {
|
|
|
2527
2553
|
* @throws {RequiredError}
|
|
2528
2554
|
*/
|
|
2529
2555
|
getMaterialization(t, e, n, a) {
|
|
2530
|
-
return
|
|
2556
|
+
return w(this.configuration).getMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
2531
2557
|
}
|
|
2532
2558
|
/**
|
|
2533
2559
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2540,7 +2566,7 @@ class He extends x {
|
|
|
2540
2566
|
* @throws {RequiredError}
|
|
2541
2567
|
*/
|
|
2542
2568
|
listMaterializations(t, e, n, a, r) {
|
|
2543
|
-
return
|
|
2569
|
+
return w(this.configuration).listMaterializations(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2544
2570
|
}
|
|
2545
2571
|
/**
|
|
2546
2572
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2553,15 +2579,15 @@ class He extends x {
|
|
|
2553
2579
|
* @throws {RequiredError}
|
|
2554
2580
|
*/
|
|
2555
2581
|
materializationAction(t, e, n, a, r) {
|
|
2556
|
-
return
|
|
2582
|
+
return w(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2557
2583
|
}
|
|
2558
2584
|
}
|
|
2559
|
-
const
|
|
2585
|
+
const Bt = {
|
|
2560
2586
|
Stop: "stop"
|
|
2561
|
-
},
|
|
2587
|
+
}, We = function(c) {
|
|
2562
2588
|
return {
|
|
2563
2589
|
/**
|
|
2564
|
-
* 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`.
|
|
2590
|
+
* 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.
|
|
2565
2591
|
* @summary Compile Malloy source code
|
|
2566
2592
|
* @param {string} environmentName Name of the environment
|
|
2567
2593
|
* @param {string} packageName Name of the package
|
|
@@ -2590,7 +2616,7 @@ const xt = {
|
|
|
2590
2616
|
* @param {string} packageName Name of the package
|
|
2591
2617
|
* @param {string} path Path to the model within the package
|
|
2592
2618
|
* @param {QueryRequest} queryRequest
|
|
2593
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2619
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2594
2620
|
* @param {*} [options] Override http request option.
|
|
2595
2621
|
* @throws {RequiredError}
|
|
2596
2622
|
*/
|
|
@@ -2608,13 +2634,13 @@ const xt = {
|
|
|
2608
2634
|
};
|
|
2609
2635
|
},
|
|
2610
2636
|
/**
|
|
2611
|
-
* 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.
|
|
2637
|
+
* 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.
|
|
2612
2638
|
* @summary Get compiled Malloy model
|
|
2613
2639
|
* @param {string} environmentName Name of the environment
|
|
2614
2640
|
* @param {string} packageName Name of the package
|
|
2615
2641
|
* @param {string} path Path to the model within the package
|
|
2616
2642
|
* @param {string} [versionId] Version identifier for the package
|
|
2617
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2643
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2618
2644
|
* @param {*} [options] Override http request option.
|
|
2619
2645
|
* @throws {RequiredError}
|
|
2620
2646
|
*/
|
|
@@ -2632,12 +2658,12 @@ const xt = {
|
|
|
2632
2658
|
};
|
|
2633
2659
|
},
|
|
2634
2660
|
/**
|
|
2635
|
-
* 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.
|
|
2661
|
+
* 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.
|
|
2636
2662
|
* @summary List package models
|
|
2637
2663
|
* @param {string} environmentName Name of the environment
|
|
2638
2664
|
* @param {string} packageName Name of the package
|
|
2639
2665
|
* @param {string} [versionId] Version identifier for the package
|
|
2640
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2666
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2641
2667
|
* @param {*} [options] Override http request option.
|
|
2642
2668
|
* @throws {RequiredError}
|
|
2643
2669
|
*/
|
|
@@ -2655,11 +2681,11 @@ const xt = {
|
|
|
2655
2681
|
};
|
|
2656
2682
|
},
|
|
2657
2683
|
/**
|
|
2658
|
-
* Writes the Malloy text of a
|
|
2659
|
-
* @summary Write a
|
|
2684
|
+
* 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.
|
|
2685
|
+
* @summary Write a report file into the package
|
|
2660
2686
|
* @param {string} environmentName Name of the environment
|
|
2661
2687
|
* @param {string} packageName Name of the package
|
|
2662
|
-
* @param {string} path The file,
|
|
2688
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
2663
2689
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2664
2690
|
* @param {string} [versionId] Version identifier for the package
|
|
2665
2691
|
* @param {*} [options] Override http request option.
|
|
@@ -2680,10 +2706,10 @@ const xt = {
|
|
|
2680
2706
|
}
|
|
2681
2707
|
};
|
|
2682
2708
|
}, f = function(c) {
|
|
2683
|
-
const t =
|
|
2709
|
+
const t = We(c);
|
|
2684
2710
|
return {
|
|
2685
2711
|
/**
|
|
2686
|
-
* 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`.
|
|
2712
|
+
* 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.
|
|
2687
2713
|
* @summary Compile Malloy source code
|
|
2688
2714
|
* @param {string} environmentName Name of the environment
|
|
2689
2715
|
* @param {string} packageName Name of the package
|
|
@@ -2703,7 +2729,7 @@ const xt = {
|
|
|
2703
2729
|
* @param {string} packageName Name of the package
|
|
2704
2730
|
* @param {string} path Path to the model within the package
|
|
2705
2731
|
* @param {QueryRequest} queryRequest
|
|
2706
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2732
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2707
2733
|
* @param {*} [options] Override http request option.
|
|
2708
2734
|
* @throws {RequiredError}
|
|
2709
2735
|
*/
|
|
@@ -2712,13 +2738,13 @@ const xt = {
|
|
|
2712
2738
|
return (d, m) => O(l, u, g, c)(d, p || m);
|
|
2713
2739
|
},
|
|
2714
2740
|
/**
|
|
2715
|
-
* 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.
|
|
2741
|
+
* 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.
|
|
2716
2742
|
* @summary Get compiled Malloy model
|
|
2717
2743
|
* @param {string} environmentName Name of the environment
|
|
2718
2744
|
* @param {string} packageName Name of the package
|
|
2719
2745
|
* @param {string} path Path to the model within the package
|
|
2720
2746
|
* @param {string} [versionId] Version identifier for the package
|
|
2721
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2747
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2722
2748
|
* @param {*} [options] Override http request option.
|
|
2723
2749
|
* @throws {RequiredError}
|
|
2724
2750
|
*/
|
|
@@ -2727,12 +2753,12 @@ const xt = {
|
|
|
2727
2753
|
return (d, m) => O(l, u, g, c)(d, p || m);
|
|
2728
2754
|
},
|
|
2729
2755
|
/**
|
|
2730
|
-
* 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.
|
|
2756
|
+
* 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.
|
|
2731
2757
|
* @summary List package models
|
|
2732
2758
|
* @param {string} environmentName Name of the environment
|
|
2733
2759
|
* @param {string} packageName Name of the package
|
|
2734
2760
|
* @param {string} [versionId] Version identifier for the package
|
|
2735
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2761
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2736
2762
|
* @param {*} [options] Override http request option.
|
|
2737
2763
|
* @throws {RequiredError}
|
|
2738
2764
|
*/
|
|
@@ -2741,11 +2767,11 @@ const xt = {
|
|
|
2741
2767
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
2742
2768
|
},
|
|
2743
2769
|
/**
|
|
2744
|
-
* Writes the Malloy text of a
|
|
2745
|
-
* @summary Write a
|
|
2770
|
+
* 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.
|
|
2771
|
+
* @summary Write a report file into the package
|
|
2746
2772
|
* @param {string} environmentName Name of the environment
|
|
2747
2773
|
* @param {string} packageName Name of the package
|
|
2748
|
-
* @param {string} path The file,
|
|
2774
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
2749
2775
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2750
2776
|
* @param {string} [versionId] Version identifier for the package
|
|
2751
2777
|
* @param {*} [options] Override http request option.
|
|
@@ -2756,11 +2782,11 @@ const xt = {
|
|
|
2756
2782
|
return (d, m) => O(l, u, g, c)(d, p || m);
|
|
2757
2783
|
}
|
|
2758
2784
|
};
|
|
2759
|
-
},
|
|
2785
|
+
}, jt = function(c, t, e) {
|
|
2760
2786
|
const n = f(c);
|
|
2761
2787
|
return {
|
|
2762
2788
|
/**
|
|
2763
|
-
* 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`.
|
|
2789
|
+
* 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.
|
|
2764
2790
|
* @summary Compile Malloy source code
|
|
2765
2791
|
* @param {string} environmentName Name of the environment
|
|
2766
2792
|
* @param {string} packageName Name of the package
|
|
@@ -2779,7 +2805,7 @@ const xt = {
|
|
|
2779
2805
|
* @param {string} packageName Name of the package
|
|
2780
2806
|
* @param {string} path Path to the model within the package
|
|
2781
2807
|
* @param {QueryRequest} queryRequest
|
|
2782
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2808
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2783
2809
|
* @param {*} [options] Override http request option.
|
|
2784
2810
|
* @throws {RequiredError}
|
|
2785
2811
|
*/
|
|
@@ -2787,13 +2813,13 @@ const xt = {
|
|
|
2787
2813
|
return n.executeQueryModel(a, r, o, s, l, i).then((p) => p(e, t));
|
|
2788
2814
|
},
|
|
2789
2815
|
/**
|
|
2790
|
-
* 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.
|
|
2816
|
+
* 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.
|
|
2791
2817
|
* @summary Get compiled Malloy model
|
|
2792
2818
|
* @param {string} environmentName Name of the environment
|
|
2793
2819
|
* @param {string} packageName Name of the package
|
|
2794
2820
|
* @param {string} path Path to the model within the package
|
|
2795
2821
|
* @param {string} [versionId] Version identifier for the package
|
|
2796
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2822
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2797
2823
|
* @param {*} [options] Override http request option.
|
|
2798
2824
|
* @throws {RequiredError}
|
|
2799
2825
|
*/
|
|
@@ -2801,12 +2827,12 @@ const xt = {
|
|
|
2801
2827
|
return n.getModel(a, r, o, s, l, i).then((p) => p(e, t));
|
|
2802
2828
|
},
|
|
2803
2829
|
/**
|
|
2804
|
-
* 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.
|
|
2830
|
+
* 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.
|
|
2805
2831
|
* @summary List package models
|
|
2806
2832
|
* @param {string} environmentName Name of the environment
|
|
2807
2833
|
* @param {string} packageName Name of the package
|
|
2808
2834
|
* @param {string} [versionId] Version identifier for the package
|
|
2809
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2835
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2810
2836
|
* @param {*} [options] Override http request option.
|
|
2811
2837
|
* @throws {RequiredError}
|
|
2812
2838
|
*/
|
|
@@ -2814,11 +2840,11 @@ const xt = {
|
|
|
2814
2840
|
return n.listModels(a, r, o, s, l).then((i) => i(e, t));
|
|
2815
2841
|
},
|
|
2816
2842
|
/**
|
|
2817
|
-
* Writes the Malloy text of a
|
|
2818
|
-
* @summary Write a
|
|
2843
|
+
* 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.
|
|
2844
|
+
* @summary Write a report file into the package
|
|
2819
2845
|
* @param {string} environmentName Name of the environment
|
|
2820
2846
|
* @param {string} packageName Name of the package
|
|
2821
|
-
* @param {string} path The file,
|
|
2847
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
2822
2848
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2823
2849
|
* @param {string} [versionId] Version identifier for the package
|
|
2824
2850
|
* @param {*} [options] Override http request option.
|
|
@@ -2829,9 +2855,9 @@ const xt = {
|
|
|
2829
2855
|
}
|
|
2830
2856
|
};
|
|
2831
2857
|
};
|
|
2832
|
-
class
|
|
2858
|
+
class Ge extends x {
|
|
2833
2859
|
/**
|
|
2834
|
-
* 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`.
|
|
2860
|
+
* 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.
|
|
2835
2861
|
* @summary Compile Malloy source code
|
|
2836
2862
|
* @param {string} environmentName Name of the environment
|
|
2837
2863
|
* @param {string} packageName Name of the package
|
|
@@ -2850,7 +2876,7 @@ class We extends x {
|
|
|
2850
2876
|
* @param {string} packageName Name of the package
|
|
2851
2877
|
* @param {string} path Path to the model within the package
|
|
2852
2878
|
* @param {QueryRequest} queryRequest
|
|
2853
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2879
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2854
2880
|
* @param {*} [options] Override http request option.
|
|
2855
2881
|
* @throws {RequiredError}
|
|
2856
2882
|
*/
|
|
@@ -2858,13 +2884,13 @@ class We extends x {
|
|
|
2858
2884
|
return f(this.configuration).executeQueryModel(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2859
2885
|
}
|
|
2860
2886
|
/**
|
|
2861
|
-
* 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.
|
|
2887
|
+
* 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.
|
|
2862
2888
|
* @summary Get compiled Malloy model
|
|
2863
2889
|
* @param {string} environmentName Name of the environment
|
|
2864
2890
|
* @param {string} packageName Name of the package
|
|
2865
2891
|
* @param {string} path Path to the model within the package
|
|
2866
2892
|
* @param {string} [versionId] Version identifier for the package
|
|
2867
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2893
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2868
2894
|
* @param {*} [options] Override http request option.
|
|
2869
2895
|
* @throws {RequiredError}
|
|
2870
2896
|
*/
|
|
@@ -2872,12 +2898,12 @@ class We extends x {
|
|
|
2872
2898
|
return f(this.configuration).getModel(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2873
2899
|
}
|
|
2874
2900
|
/**
|
|
2875
|
-
* 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.
|
|
2901
|
+
* 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.
|
|
2876
2902
|
* @summary List package models
|
|
2877
2903
|
* @param {string} environmentName Name of the environment
|
|
2878
2904
|
* @param {string} packageName Name of the package
|
|
2879
2905
|
* @param {string} [versionId] Version identifier for the package
|
|
2880
|
-
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2906
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
2881
2907
|
* @param {*} [options] Override http request option.
|
|
2882
2908
|
* @throws {RequiredError}
|
|
2883
2909
|
*/
|
|
@@ -2885,11 +2911,11 @@ class We extends x {
|
|
|
2885
2911
|
return f(this.configuration).listModels(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2886
2912
|
}
|
|
2887
2913
|
/**
|
|
2888
|
-
* Writes the Malloy text of a
|
|
2889
|
-
* @summary Write a
|
|
2914
|
+
* 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.
|
|
2915
|
+
* @summary Write a report file into the package
|
|
2890
2916
|
* @param {string} environmentName Name of the environment
|
|
2891
2917
|
* @param {string} packageName Name of the package
|
|
2892
|
-
* @param {string} path The file,
|
|
2918
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
2893
2919
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2894
2920
|
* @param {string} [versionId] Version identifier for the package
|
|
2895
2921
|
* @param {*} [options] Override http request option.
|
|
@@ -2899,11 +2925,11 @@ class We extends x {
|
|
|
2899
2925
|
return f(this.configuration).updateModelSource(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2900
2926
|
}
|
|
2901
2927
|
}
|
|
2902
|
-
const
|
|
2928
|
+
const $e = function(c) {
|
|
2903
2929
|
return {
|
|
2904
2930
|
/**
|
|
2905
|
-
* Executes a specific cell in a
|
|
2906
|
-
* @summary Execute a specific notebook cell
|
|
2931
|
+
* **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.
|
|
2932
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
2907
2933
|
* @param {string} environmentName Name of the environment
|
|
2908
2934
|
* @param {string} packageName Name of the package
|
|
2909
2935
|
* @param {string} path Path to notebook within the package
|
|
@@ -2913,6 +2939,7 @@ const Ge = function(c) {
|
|
|
2913
2939
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
2914
2940
|
* @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.
|
|
2915
2941
|
* @param {*} [options] Override http request option.
|
|
2942
|
+
* @deprecated
|
|
2916
2943
|
* @throws {RequiredError}
|
|
2917
2944
|
*/
|
|
2918
2945
|
executeNotebookCell: async (t, e, n, a, r, o, s, l, i = {}) => {
|
|
@@ -2929,13 +2956,14 @@ const Ge = function(c) {
|
|
|
2929
2956
|
};
|
|
2930
2957
|
},
|
|
2931
2958
|
/**
|
|
2932
|
-
* Retrieves a
|
|
2933
|
-
* @summary Get Malloy notebook cells
|
|
2959
|
+
* **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.
|
|
2960
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
2934
2961
|
* @param {string} environmentName Name of the environment
|
|
2935
2962
|
* @param {string} packageName Name of the package
|
|
2936
2963
|
* @param {string} path Path to notebook within the package.
|
|
2937
2964
|
* @param {string} [versionId] Version identifier for the package
|
|
2938
2965
|
* @param {*} [options] Override http request option.
|
|
2966
|
+
* @deprecated
|
|
2939
2967
|
* @throws {RequiredError}
|
|
2940
2968
|
*/
|
|
2941
2969
|
getNotebook: async (t, e, n, a, r = {}) => {
|
|
@@ -2952,12 +2980,13 @@ const Ge = function(c) {
|
|
|
2952
2980
|
};
|
|
2953
2981
|
},
|
|
2954
2982
|
/**
|
|
2955
|
-
*
|
|
2956
|
-
* @summary List package notebooks
|
|
2983
|
+
* **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.
|
|
2984
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
2957
2985
|
* @param {string} environmentName Name of the environment
|
|
2958
2986
|
* @param {string} packageName Name of the package
|
|
2959
2987
|
* @param {string} [versionId] Version identifier for the package
|
|
2960
2988
|
* @param {*} [options] Override http request option.
|
|
2989
|
+
* @deprecated
|
|
2961
2990
|
* @throws {RequiredError}
|
|
2962
2991
|
*/
|
|
2963
2992
|
listNotebooks: async (t, e, n, a = {}) => {
|
|
@@ -2975,11 +3004,11 @@ const Ge = function(c) {
|
|
|
2975
3004
|
}
|
|
2976
3005
|
};
|
|
2977
3006
|
}, Q = function(c) {
|
|
2978
|
-
const t =
|
|
3007
|
+
const t = $e(c);
|
|
2979
3008
|
return {
|
|
2980
3009
|
/**
|
|
2981
|
-
* Executes a specific cell in a
|
|
2982
|
-
* @summary Execute a specific notebook cell
|
|
3010
|
+
* **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.
|
|
3011
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
2983
3012
|
* @param {string} environmentName Name of the environment
|
|
2984
3013
|
* @param {string} packageName Name of the package
|
|
2985
3014
|
* @param {string} path Path to notebook within the package
|
|
@@ -2989,6 +3018,7 @@ const Ge = function(c) {
|
|
|
2989
3018
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
2990
3019
|
* @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.
|
|
2991
3020
|
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @deprecated
|
|
2992
3022
|
* @throws {RequiredError}
|
|
2993
3023
|
*/
|
|
2994
3024
|
async executeNotebookCell(e, n, a, r, o, s, l, i, p) {
|
|
@@ -2996,13 +3026,14 @@ const Ge = function(c) {
|
|
|
2996
3026
|
return (k, C) => O(d, u, g, c)(k, S || C);
|
|
2997
3027
|
},
|
|
2998
3028
|
/**
|
|
2999
|
-
* Retrieves a
|
|
3000
|
-
* @summary Get Malloy notebook cells
|
|
3029
|
+
* **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.
|
|
3030
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
3001
3031
|
* @param {string} environmentName Name of the environment
|
|
3002
3032
|
* @param {string} packageName Name of the package
|
|
3003
3033
|
* @param {string} path Path to notebook within the package.
|
|
3004
3034
|
* @param {string} [versionId] Version identifier for the package
|
|
3005
3035
|
* @param {*} [options] Override http request option.
|
|
3036
|
+
* @deprecated
|
|
3006
3037
|
* @throws {RequiredError}
|
|
3007
3038
|
*/
|
|
3008
3039
|
async getNotebook(e, n, a, r, o) {
|
|
@@ -3010,12 +3041,13 @@ const Ge = function(c) {
|
|
|
3010
3041
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
3011
3042
|
},
|
|
3012
3043
|
/**
|
|
3013
|
-
*
|
|
3014
|
-
* @summary List package notebooks
|
|
3044
|
+
* **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.
|
|
3045
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
3015
3046
|
* @param {string} environmentName Name of the environment
|
|
3016
3047
|
* @param {string} packageName Name of the package
|
|
3017
3048
|
* @param {string} [versionId] Version identifier for the package
|
|
3018
3049
|
* @param {*} [options] Override http request option.
|
|
3050
|
+
* @deprecated
|
|
3019
3051
|
* @throws {RequiredError}
|
|
3020
3052
|
*/
|
|
3021
3053
|
async listNotebooks(e, n, a, r) {
|
|
@@ -3023,12 +3055,12 @@ const Ge = function(c) {
|
|
|
3023
3055
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
3024
3056
|
}
|
|
3025
3057
|
};
|
|
3026
|
-
},
|
|
3058
|
+
}, Ft = function(c, t, e) {
|
|
3027
3059
|
const n = Q(c);
|
|
3028
3060
|
return {
|
|
3029
3061
|
/**
|
|
3030
|
-
* Executes a specific cell in a
|
|
3031
|
-
* @summary Execute a specific notebook cell
|
|
3062
|
+
* **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.
|
|
3063
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
3032
3064
|
* @param {string} environmentName Name of the environment
|
|
3033
3065
|
* @param {string} packageName Name of the package
|
|
3034
3066
|
* @param {string} path Path to notebook within the package
|
|
@@ -3038,31 +3070,34 @@ const Ge = function(c) {
|
|
|
3038
3070
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
3039
3071
|
* @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.
|
|
3040
3072
|
* @param {*} [options] Override http request option.
|
|
3073
|
+
* @deprecated
|
|
3041
3074
|
* @throws {RequiredError}
|
|
3042
3075
|
*/
|
|
3043
3076
|
executeNotebookCell(a, r, o, s, l, i, p, d, m) {
|
|
3044
3077
|
return n.executeNotebookCell(a, r, o, s, l, i, p, d, m).then((S) => S(e, t));
|
|
3045
3078
|
},
|
|
3046
3079
|
/**
|
|
3047
|
-
* Retrieves a
|
|
3048
|
-
* @summary Get Malloy notebook cells
|
|
3080
|
+
* **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.
|
|
3081
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
3049
3082
|
* @param {string} environmentName Name of the environment
|
|
3050
3083
|
* @param {string} packageName Name of the package
|
|
3051
3084
|
* @param {string} path Path to notebook within the package.
|
|
3052
3085
|
* @param {string} [versionId] Version identifier for the package
|
|
3053
3086
|
* @param {*} [options] Override http request option.
|
|
3087
|
+
* @deprecated
|
|
3054
3088
|
* @throws {RequiredError}
|
|
3055
3089
|
*/
|
|
3056
3090
|
getNotebook(a, r, o, s, l) {
|
|
3057
3091
|
return n.getNotebook(a, r, o, s, l).then((i) => i(e, t));
|
|
3058
3092
|
},
|
|
3059
3093
|
/**
|
|
3060
|
-
*
|
|
3061
|
-
* @summary List package notebooks
|
|
3094
|
+
* **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.
|
|
3095
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
3062
3096
|
* @param {string} environmentName Name of the environment
|
|
3063
3097
|
* @param {string} packageName Name of the package
|
|
3064
3098
|
* @param {string} [versionId] Version identifier for the package
|
|
3065
3099
|
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @deprecated
|
|
3066
3101
|
* @throws {RequiredError}
|
|
3067
3102
|
*/
|
|
3068
3103
|
listNotebooks(a, r, o, s) {
|
|
@@ -3070,10 +3105,10 @@ const Ge = function(c) {
|
|
|
3070
3105
|
}
|
|
3071
3106
|
};
|
|
3072
3107
|
};
|
|
3073
|
-
class
|
|
3108
|
+
class Ke extends x {
|
|
3074
3109
|
/**
|
|
3075
|
-
* Executes a specific cell in a
|
|
3076
|
-
* @summary Execute a specific notebook cell
|
|
3110
|
+
* **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.
|
|
3111
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
3077
3112
|
* @param {string} environmentName Name of the environment
|
|
3078
3113
|
* @param {string} packageName Name of the package
|
|
3079
3114
|
* @param {string} path Path to notebook within the package
|
|
@@ -3083,41 +3118,44 @@ class $e extends x {
|
|
|
3083
3118
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
3084
3119
|
* @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.
|
|
3085
3120
|
* @param {*} [options] Override http request option.
|
|
3121
|
+
* @deprecated
|
|
3086
3122
|
* @throws {RequiredError}
|
|
3087
3123
|
*/
|
|
3088
3124
|
executeNotebookCell(t, e, n, a, r, o, s, l, i) {
|
|
3089
3125
|
return Q(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, l, i).then((p) => p(this.axios, this.basePath));
|
|
3090
3126
|
}
|
|
3091
3127
|
/**
|
|
3092
|
-
* Retrieves a
|
|
3093
|
-
* @summary Get Malloy notebook cells
|
|
3128
|
+
* **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.
|
|
3129
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
3094
3130
|
* @param {string} environmentName Name of the environment
|
|
3095
3131
|
* @param {string} packageName Name of the package
|
|
3096
3132
|
* @param {string} path Path to notebook within the package.
|
|
3097
3133
|
* @param {string} [versionId] Version identifier for the package
|
|
3098
3134
|
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @deprecated
|
|
3099
3136
|
* @throws {RequiredError}
|
|
3100
3137
|
*/
|
|
3101
3138
|
getNotebook(t, e, n, a, r) {
|
|
3102
3139
|
return Q(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
3103
3140
|
}
|
|
3104
3141
|
/**
|
|
3105
|
-
*
|
|
3106
|
-
* @summary List package notebooks
|
|
3142
|
+
* **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.
|
|
3143
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
3107
3144
|
* @param {string} environmentName Name of the environment
|
|
3108
3145
|
* @param {string} packageName Name of the package
|
|
3109
3146
|
* @param {string} [versionId] Version identifier for the package
|
|
3110
3147
|
* @param {*} [options] Override http request option.
|
|
3148
|
+
* @deprecated
|
|
3111
3149
|
* @throws {RequiredError}
|
|
3112
3150
|
*/
|
|
3113
3151
|
listNotebooks(t, e, n, a) {
|
|
3114
3152
|
return Q(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
3115
3153
|
}
|
|
3116
3154
|
}
|
|
3117
|
-
const
|
|
3155
|
+
const Dt = {
|
|
3118
3156
|
True: "true",
|
|
3119
3157
|
False: "false"
|
|
3120
|
-
},
|
|
3158
|
+
}, Ye = function(c) {
|
|
3121
3159
|
return {
|
|
3122
3160
|
/**
|
|
3123
3161
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -3228,7 +3266,7 @@ const Tt = {
|
|
|
3228
3266
|
}
|
|
3229
3267
|
};
|
|
3230
3268
|
}, M = function(c) {
|
|
3231
|
-
const t =
|
|
3269
|
+
const t = Ye(c);
|
|
3232
3270
|
return {
|
|
3233
3271
|
/**
|
|
3234
3272
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -3293,7 +3331,7 @@ const Tt = {
|
|
|
3293
3331
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
3294
3332
|
}
|
|
3295
3333
|
};
|
|
3296
|
-
},
|
|
3334
|
+
}, qt = function(c, t, e) {
|
|
3297
3335
|
const n = M(c);
|
|
3298
3336
|
return {
|
|
3299
3337
|
/**
|
|
@@ -3355,7 +3393,7 @@ const Tt = {
|
|
|
3355
3393
|
}
|
|
3356
3394
|
};
|
|
3357
3395
|
};
|
|
3358
|
-
class
|
|
3396
|
+
class Je extends x {
|
|
3359
3397
|
/**
|
|
3360
3398
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
3361
3399
|
* @summary Create a new package
|
|
@@ -3414,7 +3452,7 @@ class Ye extends x {
|
|
|
3414
3452
|
return M(this.configuration).updatePackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
3415
3453
|
}
|
|
3416
3454
|
}
|
|
3417
|
-
const
|
|
3455
|
+
const Xe = function(c) {
|
|
3418
3456
|
return {
|
|
3419
3457
|
/**
|
|
3420
3458
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3493,7 +3531,7 @@ const Je = function(c) {
|
|
|
3493
3531
|
}
|
|
3494
3532
|
};
|
|
3495
3533
|
}, B = function(c) {
|
|
3496
|
-
const t =
|
|
3534
|
+
const t = Xe(c);
|
|
3497
3535
|
return {
|
|
3498
3536
|
/**
|
|
3499
3537
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3538,7 +3576,7 @@ const Je = function(c) {
|
|
|
3538
3576
|
return (s, l) => O(a, u, g, c)(s, o || l);
|
|
3539
3577
|
}
|
|
3540
3578
|
};
|
|
3541
|
-
},
|
|
3579
|
+
}, Qt = function(c, t, e) {
|
|
3542
3580
|
const n = B(c);
|
|
3543
3581
|
return {
|
|
3544
3582
|
/**
|
|
@@ -3581,7 +3619,7 @@ const Je = function(c) {
|
|
|
3581
3619
|
}
|
|
3582
3620
|
};
|
|
3583
3621
|
};
|
|
3584
|
-
class
|
|
3622
|
+
class Ze extends x {
|
|
3585
3623
|
/**
|
|
3586
3624
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
3587
3625
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -3621,7 +3659,143 @@ class Xe extends x {
|
|
|
3621
3659
|
return B(this.configuration).updateTheme(t, e).then((n) => n(this.axios, this.basePath));
|
|
3622
3660
|
}
|
|
3623
3661
|
}
|
|
3624
|
-
const
|
|
3662
|
+
const ea = function(c) {
|
|
3663
|
+
return {
|
|
3664
|
+
/**
|
|
3665
|
+
* 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.
|
|
3666
|
+
* @summary Get a report manifest
|
|
3667
|
+
* @param {string} environmentName Name of the environment
|
|
3668
|
+
* @param {string} packageName Name of the package
|
|
3669
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
3670
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3671
|
+
* @param {*} [options] Override http request option.
|
|
3672
|
+
* @throws {RequiredError}
|
|
3673
|
+
*/
|
|
3674
|
+
getReport: async (t, e, n, a, r = {}) => {
|
|
3675
|
+
h("getReport", "environmentName", t), h("getReport", "packageName", e), h("getReport", "path", n);
|
|
3676
|
+
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
3677
|
+
let l;
|
|
3678
|
+
c && (l = c.baseOptions);
|
|
3679
|
+
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3680
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3681
|
+
let m = l && l.headers ? l.headers : {};
|
|
3682
|
+
return i.headers = { ...p, ...m, ...r.headers }, {
|
|
3683
|
+
url: V(s),
|
|
3684
|
+
options: i
|
|
3685
|
+
};
|
|
3686
|
+
},
|
|
3687
|
+
/**
|
|
3688
|
+
* 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.
|
|
3689
|
+
* @summary List package reports
|
|
3690
|
+
* @param {string} environmentName Name of the environment
|
|
3691
|
+
* @param {string} packageName Name of the package
|
|
3692
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3693
|
+
* @param {*} [options] Override http request option.
|
|
3694
|
+
* @throws {RequiredError}
|
|
3695
|
+
*/
|
|
3696
|
+
listReports: async (t, e, n, a = {}) => {
|
|
3697
|
+
h("listReports", "environmentName", t), h("listReports", "packageName", e);
|
|
3698
|
+
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
3699
|
+
let s;
|
|
3700
|
+
c && (s = c.baseOptions);
|
|
3701
|
+
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3702
|
+
n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(o, p);
|
|
3703
|
+
let d = s && s.headers ? s.headers : {};
|
|
3704
|
+
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3705
|
+
url: V(o),
|
|
3706
|
+
options: l
|
|
3707
|
+
};
|
|
3708
|
+
}
|
|
3709
|
+
};
|
|
3710
|
+
}, $ = function(c) {
|
|
3711
|
+
const t = ea(c);
|
|
3712
|
+
return {
|
|
3713
|
+
/**
|
|
3714
|
+
* 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.
|
|
3715
|
+
* @summary Get a report manifest
|
|
3716
|
+
* @param {string} environmentName Name of the environment
|
|
3717
|
+
* @param {string} packageName Name of the package
|
|
3718
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
3719
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
*/
|
|
3723
|
+
async getReport(e, n, a, r, o) {
|
|
3724
|
+
const s = await t.getReport(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ReportsApi.getReport"]?.[l]?.url;
|
|
3725
|
+
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
3726
|
+
},
|
|
3727
|
+
/**
|
|
3728
|
+
* 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.
|
|
3729
|
+
* @summary List package reports
|
|
3730
|
+
* @param {string} environmentName Name of the environment
|
|
3731
|
+
* @param {string} packageName Name of the package
|
|
3732
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3733
|
+
* @param {*} [options] Override http request option.
|
|
3734
|
+
* @throws {RequiredError}
|
|
3735
|
+
*/
|
|
3736
|
+
async listReports(e, n, a, r) {
|
|
3737
|
+
const o = await t.listReports(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ReportsApi.listReports"]?.[s]?.url;
|
|
3738
|
+
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
3739
|
+
}
|
|
3740
|
+
};
|
|
3741
|
+
}, Lt = function(c, t, e) {
|
|
3742
|
+
const n = $(c);
|
|
3743
|
+
return {
|
|
3744
|
+
/**
|
|
3745
|
+
* 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.
|
|
3746
|
+
* @summary Get a report manifest
|
|
3747
|
+
* @param {string} environmentName Name of the environment
|
|
3748
|
+
* @param {string} packageName Name of the package
|
|
3749
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
3750
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
*/
|
|
3754
|
+
getReport(a, r, o, s, l) {
|
|
3755
|
+
return n.getReport(a, r, o, s, l).then((i) => i(e, t));
|
|
3756
|
+
},
|
|
3757
|
+
/**
|
|
3758
|
+
* 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.
|
|
3759
|
+
* @summary List package reports
|
|
3760
|
+
* @param {string} environmentName Name of the environment
|
|
3761
|
+
* @param {string} packageName Name of the package
|
|
3762
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3763
|
+
* @param {*} [options] Override http request option.
|
|
3764
|
+
* @throws {RequiredError}
|
|
3765
|
+
*/
|
|
3766
|
+
listReports(a, r, o, s) {
|
|
3767
|
+
return n.listReports(a, r, o, s).then((l) => l(e, t));
|
|
3768
|
+
}
|
|
3769
|
+
};
|
|
3770
|
+
};
|
|
3771
|
+
class aa extends x {
|
|
3772
|
+
/**
|
|
3773
|
+
* 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.
|
|
3774
|
+
* @summary Get a report manifest
|
|
3775
|
+
* @param {string} environmentName Name of the environment
|
|
3776
|
+
* @param {string} packageName Name of the package
|
|
3777
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
3778
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3779
|
+
* @param {*} [options] Override http request option.
|
|
3780
|
+
* @throws {RequiredError}
|
|
3781
|
+
*/
|
|
3782
|
+
getReport(t, e, n, a, r) {
|
|
3783
|
+
return $(this.configuration).getReport(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
3784
|
+
}
|
|
3785
|
+
/**
|
|
3786
|
+
* 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.
|
|
3787
|
+
* @summary List package reports
|
|
3788
|
+
* @param {string} environmentName Name of the environment
|
|
3789
|
+
* @param {string} packageName Name of the package
|
|
3790
|
+
* @param {string} [versionId] Version identifier for the package
|
|
3791
|
+
* @param {*} [options] Override http request option.
|
|
3792
|
+
* @throws {RequiredError}
|
|
3793
|
+
*/
|
|
3794
|
+
listReports(t, e, n, a) {
|
|
3795
|
+
return $(this.configuration).listReports(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
const ta = function(c) {
|
|
3625
3799
|
return {
|
|
3626
3800
|
/**
|
|
3627
3801
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3702,7 +3876,7 @@ const Ze = function(c) {
|
|
|
3702
3876
|
}
|
|
3703
3877
|
};
|
|
3704
3878
|
}, j = function(c) {
|
|
3705
|
-
const t =
|
|
3879
|
+
const t = ta(c);
|
|
3706
3880
|
return {
|
|
3707
3881
|
/**
|
|
3708
3882
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3748,7 +3922,7 @@ const Ze = function(c) {
|
|
|
3748
3922
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
3749
3923
|
}
|
|
3750
3924
|
};
|
|
3751
|
-
},
|
|
3925
|
+
}, zt = function(c, t, e) {
|
|
3752
3926
|
const n = j(c);
|
|
3753
3927
|
return {
|
|
3754
3928
|
/**
|
|
@@ -3792,7 +3966,7 @@ const Ze = function(c) {
|
|
|
3792
3966
|
}
|
|
3793
3967
|
};
|
|
3794
3968
|
};
|
|
3795
|
-
class
|
|
3969
|
+
class na extends x {
|
|
3796
3970
|
/**
|
|
3797
3971
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
3798
3972
|
* @summary Get watch mode status
|
|
@@ -3833,7 +4007,7 @@ class ea extends x {
|
|
|
3833
4007
|
return j(this.configuration).streamPackageEvents(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
3834
4008
|
}
|
|
3835
4009
|
}
|
|
3836
|
-
class
|
|
4010
|
+
class ra {
|
|
3837
4011
|
/**
|
|
3838
4012
|
* parameter for apiKey security
|
|
3839
4013
|
* @param name security name
|
|
@@ -3906,7 +4080,7 @@ class aa {
|
|
|
3906
4080
|
return t !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t);
|
|
3907
4081
|
}
|
|
3908
4082
|
}
|
|
3909
|
-
const
|
|
4083
|
+
const oa = new ue({
|
|
3910
4084
|
defaultOptions: {
|
|
3911
4085
|
queries: {
|
|
3912
4086
|
// Not retried: `useQueryWithApiError` surfaces a failure the moment it
|
|
@@ -3925,31 +4099,31 @@ const ta = new me({
|
|
|
3925
4099
|
throwOnError: !1
|
|
3926
4100
|
}
|
|
3927
4101
|
}
|
|
3928
|
-
}),
|
|
4102
|
+
}), Ht = {
|
|
3929
4103
|
staleTime: 300 * 1e3,
|
|
3930
4104
|
refetchOnWindowFocus: !1,
|
|
3931
4105
|
refetchOnReconnect: !1
|
|
3932
|
-
},
|
|
3933
|
-
function
|
|
4106
|
+
}, K = "publisher:themeMode";
|
|
4107
|
+
function sa() {
|
|
3934
4108
|
if (!(typeof window > "u"))
|
|
3935
4109
|
try {
|
|
3936
|
-
const c = window.localStorage.getItem(
|
|
4110
|
+
const c = window.localStorage.getItem(K);
|
|
3937
4111
|
if (c === "light" || c === "dark" || c === "auto") return c;
|
|
3938
4112
|
} catch {
|
|
3939
4113
|
}
|
|
3940
4114
|
}
|
|
3941
|
-
function
|
|
4115
|
+
function ca(c) {
|
|
3942
4116
|
if (!(typeof window > "u"))
|
|
3943
4117
|
try {
|
|
3944
|
-
c === void 0 ? window.localStorage.removeItem(
|
|
4118
|
+
c === void 0 ? window.localStorage.removeItem(K) : window.localStorage.setItem(K, c);
|
|
3945
4119
|
} catch {
|
|
3946
4120
|
}
|
|
3947
4121
|
}
|
|
3948
|
-
function
|
|
4122
|
+
function la() {
|
|
3949
4123
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3950
4124
|
}
|
|
3951
4125
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3952
|
-
const
|
|
4126
|
+
const ie = te(void 0), ia = (c, t) => {
|
|
3953
4127
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, n = u.create({
|
|
3954
4128
|
baseURL: c || e,
|
|
3955
4129
|
withCredentials: !0,
|
|
@@ -3959,25 +4133,26 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
3959
4133
|
const o = await t?.();
|
|
3960
4134
|
return r.headers.Authorization = o || "", r;
|
|
3961
4135
|
});
|
|
3962
|
-
const a = new
|
|
4136
|
+
const a = new ra({ basePath: e });
|
|
3963
4137
|
return {
|
|
3964
|
-
models: new
|
|
3965
|
-
publisher: new
|
|
4138
|
+
models: new Ge(a, e, n),
|
|
4139
|
+
publisher: new Ze(a, e, n),
|
|
3966
4140
|
environments: new ze(a, e, n),
|
|
3967
|
-
packages: new
|
|
3968
|
-
dashboards: new
|
|
3969
|
-
dataApps: new
|
|
3970
|
-
notebooks: new
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
4141
|
+
packages: new Je(a, e, n),
|
|
4142
|
+
dashboards: new je(a, e, n),
|
|
4143
|
+
dataApps: new De(a, e, n),
|
|
4144
|
+
notebooks: new Ke(a, e, n),
|
|
4145
|
+
reports: new aa(a, e, n),
|
|
4146
|
+
connections: new fe(a, e, n),
|
|
4147
|
+
databases: new Qe(a, e, n),
|
|
4148
|
+
materializations: new _e(
|
|
3974
4149
|
a,
|
|
3975
4150
|
e,
|
|
3976
4151
|
n
|
|
3977
4152
|
),
|
|
3978
|
-
watchMode: new
|
|
4153
|
+
watchMode: new na(a, e, n)
|
|
3979
4154
|
};
|
|
3980
|
-
},
|
|
4155
|
+
}, _t = (c) => /* @__PURE__ */ D(ge, { client: oa, children: /* @__PURE__ */ D(pa, { ...c }) }), pa = ({
|
|
3981
4156
|
children: c,
|
|
3982
4157
|
getAccessToken: t,
|
|
3983
4158
|
baseURL: e,
|
|
@@ -3985,9 +4160,9 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
3985
4160
|
theme: a
|
|
3986
4161
|
}) => {
|
|
3987
4162
|
const r = F(
|
|
3988
|
-
() =>
|
|
4163
|
+
() => ia(e, t),
|
|
3989
4164
|
[e, t]
|
|
3990
|
-
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s =
|
|
4165
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = be({
|
|
3991
4166
|
queryKey: ["status"],
|
|
3992
4167
|
queryFn: async () => (await r.publisher.getStatus()).data
|
|
3993
4168
|
});
|
|
@@ -3998,24 +4173,24 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
3998
4173
|
const m = F(
|
|
3999
4174
|
() => [i, a],
|
|
4000
4175
|
[i, a]
|
|
4001
|
-
), [S, k] =
|
|
4002
|
-
|
|
4003
|
-
), [C, R] =
|
|
4004
|
-
|
|
4176
|
+
), [S, k] = X(
|
|
4177
|
+
sa
|
|
4178
|
+
), [C, R] = X(la);
|
|
4179
|
+
Pe(() => {
|
|
4005
4180
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
4006
|
-
const U = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
4007
|
-
return U.addEventListener("change",
|
|
4181
|
+
const U = window.matchMedia("(prefers-color-scheme: dark)"), J = (me) => R(me.matches);
|
|
4182
|
+
return U.addEventListener("change", J), () => U.removeEventListener("change", J);
|
|
4008
4183
|
}, []);
|
|
4009
|
-
const
|
|
4010
|
-
k(U),
|
|
4011
|
-
}, []),
|
|
4012
|
-
() =>
|
|
4184
|
+
const pe = ve((U) => {
|
|
4185
|
+
k(U), ca(U);
|
|
4186
|
+
}, []), Y = i?.allowUserToggle ?? !0, L = Y ? S : void 0, de = F(
|
|
4187
|
+
() => Ne(
|
|
4013
4188
|
i?.defaultMode,
|
|
4014
|
-
|
|
4189
|
+
L,
|
|
4015
4190
|
C
|
|
4016
4191
|
),
|
|
4017
|
-
[i?.defaultMode,
|
|
4018
|
-
),
|
|
4192
|
+
[i?.defaultMode, L, C]
|
|
4193
|
+
), he = {
|
|
4019
4194
|
server: o,
|
|
4020
4195
|
getAccessToken: t,
|
|
4021
4196
|
apiClients: r,
|
|
@@ -4023,144 +4198,154 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
4023
4198
|
isLoadingStatus: p,
|
|
4024
4199
|
instanceTheme: i
|
|
4025
4200
|
};
|
|
4026
|
-
return /* @__PURE__ */ D(
|
|
4027
|
-
|
|
4201
|
+
return /* @__PURE__ */ D(ie.Provider, { value: he, children: /* @__PURE__ */ D(
|
|
4202
|
+
Te,
|
|
4028
4203
|
{
|
|
4029
4204
|
layers: m,
|
|
4030
|
-
mode:
|
|
4031
|
-
userChoice:
|
|
4032
|
-
setMode:
|
|
4033
|
-
allowUserToggle:
|
|
4205
|
+
mode: de,
|
|
4206
|
+
userChoice: L,
|
|
4207
|
+
setMode: pe,
|
|
4208
|
+
allowUserToggle: Y,
|
|
4034
4209
|
children: c
|
|
4035
4210
|
}
|
|
4036
4211
|
) });
|
|
4037
|
-
},
|
|
4038
|
-
const c =
|
|
4212
|
+
}, Wt = () => {
|
|
4213
|
+
const c = ae(ie);
|
|
4039
4214
|
if (c === void 0)
|
|
4040
4215
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4041
4216
|
return c;
|
|
4042
4217
|
};
|
|
4043
4218
|
export {
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4219
|
+
He as $,
|
|
4220
|
+
Ra as A,
|
|
4221
|
+
Et as B,
|
|
4222
|
+
Ta as C,
|
|
4223
|
+
Da as D,
|
|
4224
|
+
ce as E,
|
|
4225
|
+
La as F,
|
|
4226
|
+
Qe as G,
|
|
4227
|
+
qe as H,
|
|
4228
|
+
wt as I,
|
|
4229
|
+
le as J,
|
|
4230
|
+
ze as K,
|
|
4231
|
+
Le as L,
|
|
4232
|
+
ft as M,
|
|
4233
|
+
E as N,
|
|
4234
|
+
Dt as O,
|
|
4235
|
+
za as P,
|
|
4236
|
+
Ha as Q,
|
|
4237
|
+
_a as R,
|
|
4238
|
+
Wa as S,
|
|
4239
|
+
Ga as T,
|
|
4240
|
+
Ya as U,
|
|
4241
|
+
$a as V,
|
|
4242
|
+
Ja as W,
|
|
4243
|
+
Ka as X,
|
|
4244
|
+
Bt as Y,
|
|
4245
|
+
Xa as Z,
|
|
4246
|
+
_e as _,
|
|
4247
|
+
Na as a,
|
|
4248
|
+
ya as a$,
|
|
4249
|
+
Mt as a0,
|
|
4250
|
+
w as a1,
|
|
4251
|
+
Ge as a2,
|
|
4252
|
+
We as a3,
|
|
4253
|
+
jt as a4,
|
|
4254
|
+
f as a5,
|
|
4255
|
+
et as a6,
|
|
4256
|
+
tt as a7,
|
|
4257
|
+
at as a8,
|
|
4258
|
+
Za as a9,
|
|
4259
|
+
Pt as aA,
|
|
4260
|
+
Vt as aB,
|
|
4261
|
+
vt as aC,
|
|
4262
|
+
St as aD,
|
|
4263
|
+
Ot as aE,
|
|
4264
|
+
kt as aF,
|
|
4265
|
+
yt as aG,
|
|
4266
|
+
aa as aH,
|
|
4267
|
+
ea as aI,
|
|
4268
|
+
Lt as aJ,
|
|
4269
|
+
$ as aK,
|
|
4270
|
+
At as aL,
|
|
4271
|
+
Ct as aM,
|
|
4272
|
+
_t as aN,
|
|
4273
|
+
It as aO,
|
|
4274
|
+
xt as aP,
|
|
4275
|
+
na as aQ,
|
|
4276
|
+
ta as aR,
|
|
4277
|
+
zt as aS,
|
|
4278
|
+
j as aT,
|
|
4279
|
+
oa as aU,
|
|
4280
|
+
xa as aV,
|
|
4281
|
+
Wt as aW,
|
|
4282
|
+
Re as aX,
|
|
4283
|
+
re as aY,
|
|
4284
|
+
Pa as aZ,
|
|
4285
|
+
ba as a_,
|
|
4286
|
+
Ke as aa,
|
|
4287
|
+
$e as ab,
|
|
4288
|
+
Ft as ac,
|
|
4289
|
+
Q as ad,
|
|
4290
|
+
ct as ae,
|
|
4291
|
+
lt as af,
|
|
4292
|
+
st as ag,
|
|
4293
|
+
ot as ah,
|
|
4119
4294
|
rt as ai,
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4295
|
+
nt as aj,
|
|
4296
|
+
it as ak,
|
|
4297
|
+
pt as al,
|
|
4298
|
+
Je as am,
|
|
4299
|
+
Ye as an,
|
|
4300
|
+
qt as ao,
|
|
4301
|
+
M as ap,
|
|
4302
|
+
dt as aq,
|
|
4303
|
+
ht as ar,
|
|
4304
|
+
Ze as as,
|
|
4305
|
+
Xe as at,
|
|
4306
|
+
Qt as au,
|
|
4307
|
+
B as av,
|
|
4308
|
+
mt as aw,
|
|
4309
|
+
ut as ax,
|
|
4310
|
+
gt as ay,
|
|
4311
|
+
bt as az,
|
|
4312
|
+
Ua as b,
|
|
4313
|
+
Oa as b0,
|
|
4314
|
+
Aa as b1,
|
|
4315
|
+
Ca as b2,
|
|
4316
|
+
va as b3,
|
|
4317
|
+
Va as b4,
|
|
4318
|
+
Sa as b5,
|
|
4319
|
+
ka as b6,
|
|
4320
|
+
I as b7,
|
|
4321
|
+
ee as b8,
|
|
4322
|
+
Te as b9,
|
|
4323
|
+
Z as ba,
|
|
4324
|
+
Ia as bb,
|
|
4325
|
+
Ne as bc,
|
|
4326
|
+
Ht as bd,
|
|
4327
|
+
Ea as c,
|
|
4328
|
+
fa as d,
|
|
4329
|
+
wa as e,
|
|
4330
|
+
ra as f,
|
|
4331
|
+
Ba as g,
|
|
4332
|
+
ja as h,
|
|
4333
|
+
Ma as i,
|
|
4334
|
+
fe as j,
|
|
4335
|
+
we as k,
|
|
4336
|
+
Rt as l,
|
|
4337
|
+
A as m,
|
|
4338
|
+
Tt as n,
|
|
4339
|
+
Me as o,
|
|
4340
|
+
Nt as p,
|
|
4341
|
+
se as q,
|
|
4342
|
+
Fa as r,
|
|
4343
|
+
qa as s,
|
|
4344
|
+
je as t,
|
|
4345
|
+
Be as u,
|
|
4346
|
+
Ut as v,
|
|
4347
|
+
G as w,
|
|
4348
|
+
Qa as x,
|
|
4349
|
+
De as y,
|
|
4350
|
+
Fe as z
|
|
4166
4351
|
};
|