@malloy-publisher/sdk 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-CBLHr32C.es.js → RenderedResult-DwB0-9Yx.es.js} +118 -119
- package/dist/{RenderedResult-B48wAjM8.cjs.js → RenderedResult-hKjFEqaN.cjs.js} +2 -2
- package/dist/{ServerProvider-DCV8BUWD.es.js → ServerProvider-CcSrGaRN.es.js} +1281 -1142
- package/dist/ServerProvider-Gbf1YPOP.cjs.js +1 -0
- package/dist/builder/index.cjs.js +112 -115
- package/dist/builder/index.es.js +11766 -11502
- package/dist/builder-entry.d.ts +1 -1
- package/dist/client/api.d.ts +170 -9
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +93 -89
- package/dist/client-entry.d.ts +2 -0
- package/dist/components/ApiErrorDisplay.d.ts +11 -0
- package/dist/components/AppDialog.d.ts +6 -6
- package/dist/components/Dashboard/DashboardGrid.d.ts +18 -3
- package/dist/components/Dashboard/DashboardTile.d.ts +12 -2
- package/dist/components/Dashboard/DashboardView.d.ts +38 -3
- package/dist/components/Dashboard/TileCard.d.ts +16 -2
- package/dist/components/Dashboard/dropValueUrlTags.d.ts +6 -0
- package/dist/components/Dashboard/index.d.ts +3 -2
- package/dist/components/Dashboard/telemetry.d.ts +2 -1
- package/dist/components/Dashboard/textSource.d.ts +19 -0
- package/dist/components/DashboardBuilder/AddTileDialog.d.ts +7 -8
- package/dist/components/DashboardBuilder/BuilderDialogs.d.ts +25 -0
- package/dist/components/DashboardBuilder/BuilderGrid.d.ts +31 -0
- package/dist/components/DashboardBuilder/BuilderHeader.d.ts +17 -0
- package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +14 -17
- package/dist/components/DashboardBuilder/ChartPicker.d.ts +3 -1
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +15 -7
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +28 -2
- package/dist/components/DashboardBuilder/EditorSurface.d.ts +33 -0
- package/dist/components/DashboardBuilder/FilterStrip.d.ts +6 -4
- package/dist/components/DashboardBuilder/InlineText.d.ts +1 -1
- package/dist/components/DashboardBuilder/NotebookEditor.d.ts +1 -1
- package/dist/components/DashboardBuilder/TextTileBody.d.ts +4 -1
- package/dist/components/DashboardBuilder/TileFrame.d.ts +43 -6
- package/dist/components/DashboardBuilder/TileMenu.d.ts +6 -8
- package/dist/components/DashboardBuilder/builderReport.d.ts +13 -0
- package/dist/components/DashboardBuilder/catalog.d.ts +0 -18
- package/dist/components/DashboardBuilder/documentSession.d.ts +2 -2
- package/dist/components/DashboardBuilder/imports.d.ts +19 -0
- package/dist/components/DashboardBuilder/inlineEdit.d.ts +18 -0
- package/dist/components/DashboardBuilder/readDocument.d.ts +3 -1
- package/dist/components/DashboardBuilder/readForEditor.d.ts +1 -1
- package/dist/components/DashboardBuilder/sortable.d.ts +2 -0
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +2 -0
- package/dist/components/DashboardBuilder/testing/resize.d.ts +7 -0
- package/dist/components/DashboardBuilder/tileDisplayTitle.d.ts +7 -0
- package/dist/components/DashboardBuilder/useBuilderSelection.d.ts +53 -0
- package/dist/components/DashboardBuilder/useBuilderSession.d.ts +4 -7
- package/dist/components/DashboardBuilder/useControlBindings.d.ts +30 -0
- package/dist/components/DashboardBuilder/useConversionConfirm.d.ts +20 -0
- package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +2 -0
- package/dist/components/DashboardBuilder/useDraft.d.ts +3 -1
- package/dist/components/DashboardBuilder/useHostCopy.d.ts +26 -0
- package/dist/components/DashboardBuilder/useOpenDraftCommit.d.ts +17 -0
- package/dist/components/DashboardBuilder/useOpenedDocument.d.ts +71 -0
- package/dist/components/DashboardBuilder/useSaveChannel.d.ts +50 -0
- package/dist/components/DashboardBuilder/useTileEditing.d.ts +33 -0
- package/dist/components/DashboardBuilder/useTileResize.d.ts +32 -0
- package/dist/components/Loading.d.ts +13 -0
- package/dist/components/Notebook/NotebookCell.d.ts +1 -5
- package/dist/components/Package/Package.d.ts +16 -1
- package/dist/components/Package/index.d.ts +1 -1
- package/dist/components/Prose.d.ts +1 -1
- package/dist/components/RenderedResult/loadRenderer.d.ts +7 -0
- package/dist/components/given/paramCodec.d.ts +8 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/styles.d.ts +4 -4
- package/dist/hooks/givenValue.d.ts +6 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useCompiledDocument.d.ts +23 -0
- package/dist/hooks/useDocumentControls.d.ts +6 -1
- package/dist/hooks/useNearViewport.d.ts +16 -0
- package/dist/hooks/useQueryWithApiError.d.ts +7 -2
- package/dist/hooks/useSuggestOptions.d.ts +9 -2
- package/dist/index.cjs.js +14 -14
- package/dist/index.es.js +9760 -10363
- package/dist/text/index.es.js +1 -1
- package/dist/{text-entry-CbbBcZl8.es.js → text-entry-CA0LZ1xL.es.js} +8 -8
- package/dist/text-entry.d.ts +1 -1
- package/dist/theme/accent.d.ts +29 -0
- package/dist/theme/buildVegaThemeOverride.d.ts +3 -3
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/keys.d.ts +1 -1
- package/dist/theme/motion.d.ts +31 -0
- package/dist/theme/readChartAnnotations.d.ts +1 -1
- package/dist/theme/resolveTheme.d.ts +4 -4
- package/dist/theme/types.d.ts +33 -5
- package/dist/{DashboardTile-BFcxdv7R.es.js → useCompiledDocument-BU6d8FPp.es.js} +6978 -6289
- package/dist/useCompiledDocument-pOg2W-Yt.cjs.js +142 -0
- package/package.json +11 -11
- package/src/builder-entry.ts +1 -0
- package/src/client-entry.ts +8 -0
- package/src/clientEntry.spec.ts +17 -0
- package/src/components/ApiErrorDisplay.tsx +37 -18
- package/src/components/AppDialog.tsx +8 -7
- package/src/components/Dashboard/Dashboard.spec.tsx +3 -32
- package/src/components/Dashboard/Dashboard.tsx +2 -2
- package/src/components/Dashboard/DashboardGrid.tsx +23 -5
- package/src/components/Dashboard/DashboardTile.spec.tsx +97 -2
- package/src/components/Dashboard/DashboardTile.tsx +95 -31
- package/src/components/Dashboard/DashboardView.spec.tsx +156 -0
- package/src/components/Dashboard/DashboardView.tsx +165 -89
- package/src/components/Dashboard/RowsDialog.tsx +3 -2
- package/src/components/Dashboard/TileCard.tsx +17 -2
- package/src/components/Dashboard/dropValueUrlTags.spec.ts +177 -0
- package/src/components/Dashboard/dropValueUrlTags.ts +108 -0
- package/src/components/Dashboard/index.ts +11 -2
- package/src/components/Dashboard/telemetry.ts +2 -1
- package/src/components/Dashboard/textSource.spec.ts +36 -0
- package/src/components/Dashboard/textSource.ts +39 -0
- package/src/components/DashboardBuilder/AddTileDialog.tsx +16 -56
- package/src/components/DashboardBuilder/BuilderDialogs.tsx +162 -0
- package/src/components/DashboardBuilder/BuilderGrid.tsx +245 -0
- package/src/components/DashboardBuilder/BuilderHeader.tsx +107 -0
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +86 -113
- package/src/components/DashboardBuilder/ChartPicker.tsx +4 -1
- package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +5 -5
- package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +74 -83
- package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +62 -18
- package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +55 -108
- package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +10 -62
- package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +50 -57
- package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +53 -40
- package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +10 -8
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +227 -704
- package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +32 -52
- package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +1 -50
- package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +12 -18
- package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +4 -24
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +4 -4
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +8 -13
- package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +317 -0
- package/src/components/DashboardBuilder/DashboardEditor.tsx +142 -820
- package/src/components/DashboardBuilder/DrillDialog.tsx +2 -2
- package/src/components/DashboardBuilder/EditorSurface.tsx +471 -0
- package/src/components/DashboardBuilder/FilterDialog.tsx +13 -8
- package/src/components/DashboardBuilder/FilterStrip.tsx +117 -79
- package/src/components/DashboardBuilder/InlineMarkdown.tsx +7 -9
- package/src/components/DashboardBuilder/InlineText.tsx +23 -17
- package/src/components/DashboardBuilder/NotebookEditor.tsx +3 -3
- package/src/components/DashboardBuilder/TextTileBody.tsx +5 -2
- package/src/components/DashboardBuilder/TileFrame.tsx +255 -90
- package/src/components/DashboardBuilder/TileMenu.tsx +41 -91
- package/src/components/DashboardBuilder/artifactBlock.spec.ts +1 -1
- package/src/components/DashboardBuilder/artifactTagParity.spec.ts +9 -4
- package/src/components/DashboardBuilder/builderReport.ts +74 -0
- package/src/components/DashboardBuilder/catalog.spec.ts +0 -44
- package/src/components/DashboardBuilder/catalog.ts +0 -36
- package/src/components/DashboardBuilder/controls.spec.ts +1 -1
- package/src/components/DashboardBuilder/controls.ts +1 -1
- package/src/components/DashboardBuilder/documentSession.ts +3 -2
- package/src/components/DashboardBuilder/imports.spec.ts +61 -0
- package/src/components/DashboardBuilder/imports.ts +93 -0
- package/src/components/DashboardBuilder/inlineEdit.tsx +78 -0
- package/src/components/DashboardBuilder/legacyNotebook.ts +1 -1
- package/src/components/DashboardBuilder/malloyTree.ts +5 -1
- package/src/components/DashboardBuilder/newDashboard.ts +1 -1
- package/src/components/DashboardBuilder/preview.ts +1 -1
- package/src/components/DashboardBuilder/readDocument.spec.ts +36 -0
- package/src/components/DashboardBuilder/readDocument.ts +10 -4
- package/src/components/DashboardBuilder/readForEditor.ts +7 -2
- package/src/components/DashboardBuilder/sortable.spec.ts +25 -1
- package/src/components/DashboardBuilder/sortable.tsx +11 -0
- package/src/components/DashboardBuilder/spliceDocument.ts +8 -3
- package/src/components/DashboardBuilder/testing/artifactTagParity.json +62 -6
- package/src/components/DashboardBuilder/testing/documentKindRule.json +40 -0
- package/src/components/DashboardBuilder/testing/inline.ts +1 -1
- package/src/components/DashboardBuilder/testing/resize.ts +48 -0
- package/src/components/DashboardBuilder/testing/urlRenderTags.json +62 -0
- package/src/components/DashboardBuilder/textTiles.spec.ts +43 -1
- package/src/components/DashboardBuilder/tileDisplayTitle.ts +13 -0
- package/src/components/DashboardBuilder/useBuilderSelection.ts +121 -0
- package/src/components/DashboardBuilder/useBuilderSession.spec.ts +0 -85
- package/src/components/DashboardBuilder/useBuilderSession.ts +6 -43
- package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +32 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.ts +11 -1
- package/src/components/DashboardBuilder/useControlBindings.ts +152 -0
- package/src/components/DashboardBuilder/useConversionConfirm.ts +55 -0
- package/src/components/DashboardBuilder/useDashboardEditor.ts +5 -2
- package/src/components/DashboardBuilder/useDraft.ts +15 -2
- package/src/components/DashboardBuilder/useHostCopy.ts +104 -0
- package/src/components/DashboardBuilder/useOpenDraftCommit.ts +47 -0
- package/src/components/DashboardBuilder/useOpenedDocument.ts +314 -0
- package/src/components/DashboardBuilder/useSaveChannel.ts +275 -0
- package/src/components/DashboardBuilder/useTileEditing.ts +141 -0
- package/src/components/DashboardBuilder/useTileResize.spec.tsx +146 -0
- package/src/components/DashboardBuilder/useTileResize.ts +133 -0
- package/src/components/DataAppViewer/DataAppViewer.tsx +7 -4
- package/src/components/DocumentCreate/guards.ts +1 -1
- package/src/components/Environment/Environment.tsx +0 -10
- package/src/components/Loading.tsx +14 -0
- package/src/components/Model/Model.tsx +16 -9
- package/src/components/Model/ModelExplorer.tsx +2 -2
- package/src/components/Notebook/Notebook.tsx +6 -2
- package/src/components/Notebook/NotebookCell.tsx +90 -215
- package/src/components/Package/Package.artifacts.spec.tsx +8 -12
- package/src/components/Package/Package.create.spec.tsx +22 -1
- package/src/components/Package/Package.tsx +51 -27
- package/src/components/Package/index.ts +1 -1
- package/src/components/Prose.spec.tsx +37 -0
- package/src/components/Prose.tsx +35 -5
- package/src/components/RenderedResult/RenderedResult.tsx +5 -7
- package/src/components/RenderedResult/ResultContainer.tsx +7 -2
- package/src/components/RenderedResult/ResultPanel.tsx +20 -5
- package/src/components/RenderedResult/loadRenderer.ts +42 -0
- package/src/components/given/GivenInput.spec.tsx +5 -5
- package/src/components/given/GivenInput.tsx +46 -38
- package/src/components/given/GivensPanel.tsx +2 -8
- package/src/components/given/paramCodec.ts +27 -1
- package/src/components/index.ts +1 -2
- package/src/components/styles.ts +4 -5
- package/src/hooks/givenValue.ts +9 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useCompiledDocument.spec.tsx +86 -0
- package/src/hooks/useCompiledDocument.ts +59 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +3 -1
- package/src/hooks/useDocumentControls.ts +13 -1
- package/src/hooks/useNearViewport.spec.tsx +150 -0
- package/src/hooks/useNearViewport.ts +102 -0
- package/src/hooks/useQueryResult.ts +7 -1
- package/src/hooks/useQueryWithApiError.ts +10 -3
- package/src/hooks/useRawQueryData.ts +3 -1
- package/src/hooks/useSuggestOptions.dom.spec.ts +40 -1
- package/src/hooks/useSuggestOptions.ts +42 -10
- package/src/text-entry.ts +1 -1
- package/src/textEntry.spec.ts +2 -8
- package/src/theme/accent.spec.ts +116 -0
- package/src/theme/accent.ts +148 -0
- package/src/theme/buildTableCssVars.spec.ts +24 -0
- package/src/theme/buildTableCssVars.ts +1 -2
- package/src/theme/buildVegaThemeOverride.spec.ts +38 -2
- package/src/theme/buildVegaThemeOverride.ts +5 -5
- package/src/theme/defaults.ts +34 -0
- package/src/theme/index.ts +9 -0
- package/src/theme/keys.ts +6 -0
- package/src/theme/motion.ts +44 -0
- package/src/theme/readChartAnnotations.spec.ts +18 -0
- package/src/theme/readChartAnnotations.ts +1 -1
- package/src/theme/resolveTheme.spec.ts +73 -0
- package/src/theme/resolveTheme.ts +61 -20
- package/src/theme/types.ts +30 -5
- package/src/utils/queryClient.ts +8 -0
- package/dist/DashboardTile-sg8LjUk8.cjs.js +0 -137
- package/dist/ServerProvider-HRqT3w1C.cjs.js +0 -1
- package/dist/components/Dashboard/DashboardBar.d.ts +0 -21
- package/dist/components/Dashboard/ExploreDialog.d.ts +0 -20
- package/dist/components/DashboardBuilder/DiffDialog.d.ts +0 -7
- package/dist/components/DashboardBuilder/SaveNotice.d.ts +0 -27
- package/dist/components/DashboardBuilder/SettingsPopover.d.ts +0 -32
- package/dist/components/DashboardBuilder/diff.d.ts +0 -35
- package/src/components/Dashboard/DashboardBar.tsx +0 -88
- package/src/components/Dashboard/ExploreDialog.tsx +0 -89
- package/src/components/DashboardBuilder/DashboardBuilder.notice.spec.tsx +0 -194
- package/src/components/DashboardBuilder/DiffDialog.spec.tsx +0 -25
- package/src/components/DashboardBuilder/DiffDialog.tsx +0 -103
- package/src/components/DashboardBuilder/SaveNotice.tsx +0 -113
- package/src/components/DashboardBuilder/SettingsPopover.spec.tsx +0 -87
- package/src/components/DashboardBuilder/SettingsPopover.tsx +0 -326
- package/src/components/DashboardBuilder/diff.spec.ts +0 -44
- package/src/components/DashboardBuilder/diff.ts +0 -93
- /package/dist/{components/DashboardBuilder → utils}/malloyText.d.ts +0 -0
- /package/src/{components/DashboardBuilder → utils}/malloyText.spec.ts +0 -0
- /package/src/{components/DashboardBuilder → utils}/malloyText.ts +0 -0
package/dist/builder-entry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DashboardBuilder } from './components/DashboardBuilder/DashboardBuilder';
|
|
2
2
|
export type { BuilderGiven, DashboardBuilderProps, } from './components/DashboardBuilder/DashboardBuilder';
|
|
3
|
-
export { DashboardEditor, type DashboardEditorProps, } from './components/DashboardBuilder/DashboardEditor';
|
|
3
|
+
export { DashboardEditor, type DashboardEditorProps, type TextSourceOptions, } from './components/DashboardBuilder/DashboardEditor';
|
|
4
4
|
export type { SaveContext, SaveHandler, } from './components/DashboardBuilder/useDocumentEditor';
|
|
5
5
|
export type { DashboardDocument, DashboardTile, LocalGiven, } from './components/DashboardBuilder/document';
|
|
6
6
|
export { readDashboardDocument, readFailed, type ReadResult, } from './components/DashboardBuilder/readDocument';
|
package/dist/client/api.d.ts
CHANGED
|
@@ -266,7 +266,7 @@ export interface CompileRequest {
|
|
|
266
266
|
*/
|
|
267
267
|
'source'?: string;
|
|
268
268
|
/**
|
|
269
|
-
* What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set.
|
|
269
|
+
* What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set. \"append\" text that carries a model-level `## artifact` tag is a document, which other viewers run, and is also refused with a 400 for `# image`, `# link`, markup in a `# label`, `@env.` in an annotation, an annotation the tag parser rejects or that exceeds 8,192 characters, `except:` or `rename:` followed by a declaration of the same name in the same extend chain, and more than 1,000 annotations or 64 KB of them. Plain \"append\" text without that tag keeps those tags; a model file defines them itself, and its edit is checked at \"file\".
|
|
270
270
|
*/
|
|
271
271
|
'scope'?: CompileRequestScopeEnum;
|
|
272
272
|
/**
|
|
@@ -302,12 +302,35 @@ export interface CompileResult {
|
|
|
302
302
|
* Generated SQL for the compiled query. Only present when includeSql is true and compilation succeeds with a runnable query.
|
|
303
303
|
*/
|
|
304
304
|
'sql'?: string;
|
|
305
|
+
'document'?: CompiledDocument;
|
|
305
306
|
}
|
|
306
307
|
export declare const CompileResultStatusEnum: {
|
|
307
308
|
readonly Success: "success";
|
|
308
309
|
readonly Error: "error";
|
|
309
310
|
};
|
|
310
311
|
export type CompileResultStatusEnum = typeof CompileResultStatusEnum[keyof typeof CompileResultStatusEnum];
|
|
312
|
+
/**
|
|
313
|
+
* The document a compiled source describes, in the shape the same text serves once saved. Present only when the source carries a model-level `## artifact` tag and compiled far enough to read.
|
|
314
|
+
*/
|
|
315
|
+
export interface CompiledDocument {
|
|
316
|
+
/**
|
|
317
|
+
* From the tag\'s `kind`. When it names none, a document that lists `tiles` or carries a `dashboard { … }` grid tag is a dashboard and any other is a notebook: submitted text has no folder to decide.
|
|
318
|
+
*/
|
|
319
|
+
'kind'?: CompiledDocumentKindEnum;
|
|
320
|
+
/**
|
|
321
|
+
* Shaped like a served dashboard\'s manifest, with two differences: `path` is absent (the text runs on the model it was compiled on top of, which is the model in the request URL) and `name` is that model\'s file slug rather than a document name, which the host owns; `title` is the heading.
|
|
322
|
+
*/
|
|
323
|
+
'manifest'?: DashboardManifest;
|
|
324
|
+
/**
|
|
325
|
+
* The file\'s own cells. A document laid out as tiles lists only its definition cells, as a saved one does; its prose and queries are `manifest.tiles`.
|
|
326
|
+
*/
|
|
327
|
+
'cells'?: Array<NotebookCell>;
|
|
328
|
+
}
|
|
329
|
+
export declare const CompiledDocumentKindEnum: {
|
|
330
|
+
readonly Dashboard: "dashboard";
|
|
331
|
+
readonly Notebook: "notebook";
|
|
332
|
+
};
|
|
333
|
+
export type CompiledDocumentKindEnum = typeof CompiledDocumentKindEnum[keyof typeof CompiledDocumentKindEnum];
|
|
311
334
|
/**
|
|
312
335
|
* Compiled Malloy model with sources, queries, and metadata
|
|
313
336
|
*/
|
|
@@ -624,6 +647,10 @@ export interface DashboardTile {
|
|
|
624
647
|
* Absent on a text tile. The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`. Sending it in `queryName`, the field `DashboardManifest.query` takes, is rejected.
|
|
625
648
|
*/
|
|
626
649
|
'query'?: string;
|
|
650
|
+
/**
|
|
651
|
+
* Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query` and nothing derived from the source: no `givenNames`, no layout tags.
|
|
652
|
+
*/
|
|
653
|
+
'restricted'?: boolean;
|
|
627
654
|
/**
|
|
628
655
|
* Names of the givens this tile\'s compiled query reads: through its view, its source\'s `where:`, a joined source\'s `where:`, a dimension or measure it uses, and its source\'s `#(authorize)` and `#(access_filter)` gates. A control not listed does not change the tile, which is what a viewer\'s \"Doesn\'t respond to\" chip says. It also tells a caller which tiles a changed control needs to re-run; running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when discovery could not resolve the tile (its expression neither compiles nor is a plain `source -> view` or named query the static walk reads), in which case send the whole control row. One such tile widens `DashboardManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
|
|
629
656
|
*/
|
|
@@ -912,6 +939,10 @@ export interface Given {
|
|
|
912
939
|
* Annotations attached to the given declaration
|
|
913
940
|
*/
|
|
914
941
|
'annotations'?: Array<string>;
|
|
942
|
+
/**
|
|
943
|
+
* True when the declaration carries `#(secure)`: its value is the host\'s to set. The builder withholds its control only when it edits a document held as text; a saved dashboard or notebook renders it as before. Absent otherwise.
|
|
944
|
+
*/
|
|
945
|
+
'secure'?: boolean;
|
|
915
946
|
/**
|
|
916
947
|
* The given\'s default value as a Malloy source literal (e.g. `\'WN\'`, `2003`, `@2024-01-01`, `f\'WN\'`), exactly as written in the model. Omitted when the given declares no default. Consumers render or prefill it per the given\'s `type` (e.g. unquote a string literal for a text input).
|
|
917
948
|
*/
|
|
@@ -1368,6 +1399,10 @@ export interface NotebookCell {
|
|
|
1368
1399
|
* Present on every code cell of a `.malloy` notebook, and absent on a `.malloynb` or from a server that predates it. The lines of `text` that hold `markdown`, as `[start, end]` pairs in file order; `[]` when the cell has none. Lines are 0-based and inclusive, counted on `text` split at `\\n`. Strip exactly these lines to get the cell\'s code without its prose; do not re-derive them from `text`, whose first line has lost its indentation.
|
|
1369
1400
|
*/
|
|
1370
1401
|
'proseLines'?: Array<Array<number>>;
|
|
1402
|
+
/**
|
|
1403
|
+
* Set on a cell of a compiled document (`CompileResult.document`) whose source the caller may not read. It was not compiled, so nothing else is known about what it reads.
|
|
1404
|
+
*/
|
|
1405
|
+
'restricted'?: boolean;
|
|
1371
1406
|
/**
|
|
1372
1407
|
* Present on every code cell of a `.malloy` notebook, as `proseLines` is. The 0-based line of `text` (split at `\\n`) where the statement\'s code starts, its first token that is neither a note nor a comment, so the `source`, `run`, `given` or `import` keyword sits on it.
|
|
1373
1408
|
*/
|
|
@@ -1525,7 +1560,7 @@ export interface Package {
|
|
|
1525
1560
|
*/
|
|
1526
1561
|
'buildPlan'?: BuildPlan | null;
|
|
1527
1562
|
/**
|
|
1528
|
-
* Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured.
|
|
1563
|
+
* Server-computed, read-only: the state of this package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe.
|
|
1529
1564
|
*/
|
|
1530
1565
|
'embeddingIndex'?: PackageEmbeddingIndex | null;
|
|
1531
1566
|
}
|
|
@@ -1546,17 +1581,36 @@ export declare const PackageManifestBindingStatusEnum: {
|
|
|
1546
1581
|
};
|
|
1547
1582
|
export type PackageManifestBindingStatusEnum = typeof PackageManifestBindingStatusEnum[keyof typeof PackageManifestBindingStatusEnum];
|
|
1548
1583
|
/**
|
|
1549
|
-
* State of a package\'s semantic discovery index.
|
|
1584
|
+
* State of a package\'s semantic discovery index. The server builds the index in the background when the package loads (and reloads), one package at a time across the whole server, saving each batch of vectors as it goes. Poll `status` until `ready` to know retrieval is warm. While `indexing`, `embeddedRows` rises toward `totalRows`. A restart starts every package\'s index again, but vectors already stored for unchanged content are reused, so a restart over an unchanged package embeds nothing new. Every count is scoped to the embedding model currently configured, so rows left behind by an earlier model are never counted. Read `status` for readiness and the counts for progress: they answer different questions, and only `status` tracks what the search path will do. The first read after a package loads builds the package\'s entity index and its content fingerprint, which is work a metadata read would not otherwise do. After that a read is two row counts and never waits on a sync, so polling is cheap.
|
|
1550
1585
|
*/
|
|
1551
1586
|
export interface PackageEmbeddingIndex {
|
|
1552
1587
|
/**
|
|
1553
|
-
* `
|
|
1588
|
+
* `lexical` = no embedding provider is configured, so `get_context` ranks by words only. That is a mode of the server, not a failure. `indexing` = vectors for this package are being built or are queued behind another package\'s; while this lasts and a provider is configured, `get_context` answers a search with an \"indexing\" message and no results, not a lexical ranking. `ready` = the index is warm, so the next `get_context` question about this package is ranked semantically. (It is a statement about the index, not a promise about the next response: a question whose own query embedding fails returns an error naming the provider failure.) It is decided by the same completed sync the search path gates on, not by whether cached rows happen to cover the current entity names. `error` = the index cannot serve now; `reason` and `lastError` say why. A changed `EMBEDDING_MODEL` or a changed package moves a `ready` package back to `indexing`. `cooldown` and `too-many-entities` are deprecated. Earlier versions reported them as the `status` itself; they are now the `reason` of an `error`. They stay in this list so a client generated from an earlier spec still understands every value, and they are never sent.
|
|
1554
1589
|
*/
|
|
1555
1590
|
'status'?: PackageEmbeddingIndexStatusEnum;
|
|
1556
1591
|
/**
|
|
1557
|
-
*
|
|
1592
|
+
* Present when `status` is `error` for one of two reasons that earlier versions reported as the `status` itself. `cooldown` = the provider failed (after retries) and the package is waiting out a window before the next try; `lastError.retryAt` says when. `too-many-entities` = the package has more entities than the embedding cap, which no retry fixes. Absent for other errors, such as an invalid embedding configuration, which `lastError.message` describes.
|
|
1593
|
+
*/
|
|
1594
|
+
'reason'?: PackageEmbeddingIndexReasonEnum;
|
|
1595
|
+
/**
|
|
1596
|
+
* The sync stage that failed, when `status` is `error` because of one. `keyphrase` = the LLM could not write the package\'s keyphrases (after retries), so nothing was embedded; `source_summary` = the LLM could not write the package\'s source summaries (after retries), so nothing was embedded. `lastError.message` has the reason. Absent when the embedding call itself failed.
|
|
1597
|
+
*/
|
|
1598
|
+
'stage'?: PackageEmbeddingIndexStageEnum;
|
|
1599
|
+
'keyphraseProgress'?: PackageEmbeddingIndexKeyphraseProgress;
|
|
1600
|
+
'sourceSummaryProgress'?: PackageEmbeddingIndexSourceSummaryProgress;
|
|
1601
|
+
'lastError'?: PackageEmbeddingIndexLastError;
|
|
1602
|
+
/**
|
|
1603
|
+
* When the sync now running began. Absent when none is running, including while this package waits its turn in the queue.
|
|
1604
|
+
*/
|
|
1605
|
+
'startedAt'?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Cached vectors for this package under the current embedding model. With the default `retrieval.representation` of `single` an entity contributes one row, so this equals `totalEntities` once indexed. With `facets` an entity contributes one row for its name plus one per chunk of its documentation, so this exceeds `totalEntities` on a documented model and is not a count of entities. A keyphrase row is an extra on top of those and is not counted here or in `totalRows`. Scoped by model only, not by vector length, so it counts what is cached rather than what a search could read today: after a change to `EMBEDDING_DIMENSIONS` that no question has probed yet, rows of the old length are still counted here until the next search discards them. `status` is already `indexing` in that window.
|
|
1558
1608
|
*/
|
|
1559
1609
|
'embeddedRows'?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Rows the package wants cached: the denominator for `embeddedRows`. `embeddedRows` of `totalRows` is the progress of a first index.
|
|
1612
|
+
*/
|
|
1613
|
+
'totalRows'?: number;
|
|
1560
1614
|
/**
|
|
1561
1615
|
* Entities the package currently exposes to retrieval.
|
|
1562
1616
|
*/
|
|
@@ -1571,12 +1625,71 @@ export interface PackageEmbeddingIndex {
|
|
|
1571
1625
|
'lastSyncedAt'?: string;
|
|
1572
1626
|
}
|
|
1573
1627
|
export declare const PackageEmbeddingIndexStatusEnum: {
|
|
1628
|
+
readonly Lexical: "lexical";
|
|
1574
1629
|
readonly Indexing: "indexing";
|
|
1575
1630
|
readonly Ready: "ready";
|
|
1631
|
+
readonly Error: "error";
|
|
1576
1632
|
readonly Cooldown: "cooldown";
|
|
1577
1633
|
readonly TooManyEntities: "too-many-entities";
|
|
1578
1634
|
};
|
|
1579
1635
|
export type PackageEmbeddingIndexStatusEnum = typeof PackageEmbeddingIndexStatusEnum[keyof typeof PackageEmbeddingIndexStatusEnum];
|
|
1636
|
+
export declare const PackageEmbeddingIndexReasonEnum: {
|
|
1637
|
+
readonly Cooldown: "cooldown";
|
|
1638
|
+
readonly TooManyEntities: "too-many-entities";
|
|
1639
|
+
};
|
|
1640
|
+
export type PackageEmbeddingIndexReasonEnum = typeof PackageEmbeddingIndexReasonEnum[keyof typeof PackageEmbeddingIndexReasonEnum];
|
|
1641
|
+
export declare const PackageEmbeddingIndexStageEnum: {
|
|
1642
|
+
readonly Keyphrase: "keyphrase";
|
|
1643
|
+
readonly SourceSummary: "source_summary";
|
|
1644
|
+
};
|
|
1645
|
+
export type PackageEmbeddingIndexStageEnum = typeof PackageEmbeddingIndexStageEnum[keyof typeof PackageEmbeddingIndexStageEnum];
|
|
1646
|
+
/**
|
|
1647
|
+
* Present only when keyphrases are on: the package asks for them (`retrieval.keyphrases` is `auto` or `always`, the default being `auto`) and `retrieval.llm` is configured. Counts the entities whose keyphrase comes from the LLM; an entity with a short description uses it as its keyphrase and is not counted.
|
|
1648
|
+
*/
|
|
1649
|
+
export interface PackageEmbeddingIndexKeyphraseProgress {
|
|
1650
|
+
/**
|
|
1651
|
+
* Entities that need an LLM keyphrase and have one stored.
|
|
1652
|
+
*/
|
|
1653
|
+
'done'?: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* Entities that need an LLM keyphrase.
|
|
1656
|
+
*/
|
|
1657
|
+
'total'?: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* True when `retrieval.llm.maxCallsPerSync` stopped the step before every entity had one. The status can be `ready` with `done` below `total`; the next sync (a restart) continues from there.
|
|
1660
|
+
*/
|
|
1661
|
+
'capped'?: boolean;
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Present when `status` is `error`.
|
|
1665
|
+
*/
|
|
1666
|
+
export interface PackageEmbeddingIndexLastError {
|
|
1667
|
+
/**
|
|
1668
|
+
* What went wrong, with the fix where there is one. Never contains the provider\'s URL or the API key; the full error is in the server log.
|
|
1669
|
+
*/
|
|
1670
|
+
'message'?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* The earliest time a retry can start. Nothing retries on a timer: the first `get_context` question about this package after this time starts the retry, so a package nobody asks about stays in `error` and a status poll alone never sees it recover. Absent when no retry can start (for example `too-many-entities`).
|
|
1673
|
+
*/
|
|
1674
|
+
'retryAt'?: string;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Present only when source summaries are on: the package does not turn them off (`retrieval.sourceSummary.enabled` is `auto` or `true`, the default being `auto`) and `retrieval.llm` is configured. Counts the sources that get an LLM-written summary. A source with no fields is not counted.
|
|
1678
|
+
*/
|
|
1679
|
+
export interface PackageEmbeddingIndexSourceSummaryProgress {
|
|
1680
|
+
/**
|
|
1681
|
+
* Sources that get a summary and have a current one stored.
|
|
1682
|
+
*/
|
|
1683
|
+
'done'?: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* Sources that get a summary.
|
|
1686
|
+
*/
|
|
1687
|
+
'total'?: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* True when `retrieval.llm.maxCallsPerSync` stopped the step before every source had one. The status can be `ready` with `done` below `total`; the next sync (a restart) continues from there.
|
|
1690
|
+
*/
|
|
1691
|
+
'capped'?: boolean;
|
|
1692
|
+
}
|
|
1580
1693
|
/**
|
|
1581
1694
|
* Package-level Malloy Persistence policy from publisher.json\'s `materialization` block. Surfaced verbatim so the control plane can drive scheduled version-level re-materialization without re-reading the package files. The object is emitted whenever the package is loaded, even when no policy is declared (all fields null), so its presence is an authoritative \"the manifest says this\" signal rather than \"policy missing\".
|
|
1582
1695
|
*/
|
|
@@ -2477,6 +2590,19 @@ export interface ThemePalette {
|
|
|
2477
2590
|
'tile'?: ThemePaletteTile;
|
|
2478
2591
|
'tileTitle'?: ThemePaletteTileTitle;
|
|
2479
2592
|
'mapColor'?: ThemePaletteMapColor;
|
|
2593
|
+
'border'?: ThemePaletteBorder;
|
|
2594
|
+
'cardBorder'?: ThemePaletteCardBorder;
|
|
2595
|
+
'axis'?: ThemePaletteAxis;
|
|
2596
|
+
'gridline'?: ThemePaletteGridline;
|
|
2597
|
+
'chartText'?: ThemePaletteChartText;
|
|
2598
|
+
'value'?: ThemePaletteValue;
|
|
2599
|
+
}
|
|
2600
|
+
/**
|
|
2601
|
+
* Color of chart axis domain and tick lines, per mode.
|
|
2602
|
+
*/
|
|
2603
|
+
export interface ThemePaletteAxis {
|
|
2604
|
+
'light'?: string;
|
|
2605
|
+
'dark'?: string;
|
|
2480
2606
|
}
|
|
2481
2607
|
/**
|
|
2482
2608
|
* Page and chart background per mode.
|
|
@@ -2485,6 +2611,34 @@ export interface ThemePaletteBackground {
|
|
|
2485
2611
|
'light'?: string;
|
|
2486
2612
|
'dark'?: string;
|
|
2487
2613
|
}
|
|
2614
|
+
/**
|
|
2615
|
+
* Hairline color for table gridlines and row rules, per mode.
|
|
2616
|
+
*/
|
|
2617
|
+
export interface ThemePaletteBorder {
|
|
2618
|
+
'light'?: string;
|
|
2619
|
+
'dark'?: string;
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Edge color of a dashboard card and of a pinned table header row, per mode. A step stronger than `border`, so a card reads as a card on a page whose ground and tile share one colour.
|
|
2623
|
+
*/
|
|
2624
|
+
export interface ThemePaletteCardBorder {
|
|
2625
|
+
'light'?: string;
|
|
2626
|
+
'dark'?: string;
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Color of chart text (axis labels and titles, legend, chart and header titles), per mode.
|
|
2630
|
+
*/
|
|
2631
|
+
export interface ThemePaletteChartText {
|
|
2632
|
+
'light'?: string;
|
|
2633
|
+
'dark'?: string;
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Color of chart gridlines, per mode.
|
|
2637
|
+
*/
|
|
2638
|
+
export interface ThemePaletteGridline {
|
|
2639
|
+
'light'?: string;
|
|
2640
|
+
'dark'?: string;
|
|
2641
|
+
}
|
|
2488
2642
|
/**
|
|
2489
2643
|
* Saturated end of the gradient used by choropleth maps and other sequential color scales. The renderer pairs it with a near-neutral low end so the operator only picks the brand-saturated colour.
|
|
2490
2644
|
*/
|
|
@@ -2527,6 +2681,13 @@ export interface ThemePaletteTileTitle {
|
|
|
2527
2681
|
'light'?: string;
|
|
2528
2682
|
'dark'?: string;
|
|
2529
2683
|
}
|
|
2684
|
+
/**
|
|
2685
|
+
* Color of the big-value (KPI) number in a dashboard tile, per mode.
|
|
2686
|
+
*/
|
|
2687
|
+
export interface ThemePaletteValue {
|
|
2688
|
+
'light'?: string;
|
|
2689
|
+
'dark'?: string;
|
|
2690
|
+
}
|
|
2530
2691
|
/**
|
|
2531
2692
|
* Trino database connection configuration
|
|
2532
2693
|
*/
|
|
@@ -4019,7 +4180,7 @@ export type MaterializationActionActionEnum = typeof MaterializationActionAction
|
|
|
4019
4180
|
*/
|
|
4020
4181
|
export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4021
4182
|
/**
|
|
4022
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4183
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4023
4184
|
* @summary Compile Malloy source code
|
|
4024
4185
|
* @param {string} environmentName Name of the environment
|
|
4025
4186
|
* @param {string} packageName Name of the package
|
|
@@ -4082,7 +4243,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4082
4243
|
*/
|
|
4083
4244
|
export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
4084
4245
|
/**
|
|
4085
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4246
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4086
4247
|
* @summary Compile Malloy source code
|
|
4087
4248
|
* @param {string} environmentName Name of the environment
|
|
4088
4249
|
* @param {string} packageName Name of the package
|
|
@@ -4145,7 +4306,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4145
4306
|
*/
|
|
4146
4307
|
export declare const ModelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4147
4308
|
/**
|
|
4148
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4309
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4149
4310
|
* @summary Compile Malloy source code
|
|
4150
4311
|
* @param {string} environmentName Name of the environment
|
|
4151
4312
|
* @param {string} packageName Name of the package
|
|
@@ -4208,7 +4369,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4208
4369
|
*/
|
|
4209
4370
|
export declare class ModelsApi extends BaseAPI {
|
|
4210
4371
|
/**
|
|
4211
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
4372
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
|
|
4212
4373
|
* @summary Compile Malloy source code
|
|
4213
4374
|
* @param {string} environmentName Name of the environment
|
|
4214
4375
|
* @param {string} packageName Name of the package
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Gbf1YPOP.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,101 +1,105 @@
|
|
|
1
|
-
import { A as e, a as
|
|
1
|
+
import { A as e, a as n, C as o, b as i, c as t, d as r, e as p, f as u, g as m, h as A, i as E, j as c, k as l, l as d, m as C, n as y, o as b, p as P, D as F, q as g, r as S, s as k, t as h, u as M, v as x, w as D, x as T, y as v, z as R, B as f, E as N, F as z, G as I, H as K, I as Q, J as W, K as B, L, M as O, N as w, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as na, a2 as oa, a3 as ia, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as da, ae as Ca, af as ya, ag as ba, ah as Pa, ai as Fa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as xa, ap as Da, aq as Ta, ar as va, as as Ra, at as fa, au as Na, av as za, aw as Ia, ax as Ka, ay as Qa, az as Wa, aA as Ba, aB as La, aC as Oa, aD as wa, aE as qa, aF as Ga, aG as ja, aH as Ha, aI as Ja, aJ as Ua, aK as Va, aL as Xa } from "../ServerProvider-CcSrGaRN.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
n as AzureConnectionAuthTypeEnum,
|
|
5
|
+
o as CompileProblemSeverityEnum,
|
|
6
|
+
i as CompileRequestScopeEnum,
|
|
7
7
|
t as CompileResultStatusEnum,
|
|
8
|
-
r as
|
|
9
|
-
p as
|
|
10
|
-
u as
|
|
11
|
-
m as
|
|
12
|
-
A as
|
|
8
|
+
r as CompiledDocumentKindEnum,
|
|
9
|
+
p as Configuration,
|
|
10
|
+
u as ConnectionProxyTypeEnum,
|
|
11
|
+
m as ConnectionStatusStatusEnum,
|
|
12
|
+
A as ConnectionTypeEnum,
|
|
13
|
+
E as ConnectionsApi,
|
|
13
14
|
c as ConnectionsApiAxiosParamCreator,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
l as ConnectionsApiFactory,
|
|
16
|
+
d as ConnectionsApiFp,
|
|
16
17
|
C as ConnectionsTestApi,
|
|
17
18
|
y as ConnectionsTestApiAxiosParamCreator,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
b as ConnectionsTestApiFactory,
|
|
20
|
+
P as ConnectionsTestApiFp,
|
|
21
|
+
F as DashboardManifestKindEnum,
|
|
22
|
+
g as DashboardTileKindEnum,
|
|
23
|
+
S as DashboardsApi,
|
|
24
|
+
k as DashboardsApiAxiosParamCreator,
|
|
25
|
+
h as DashboardsApiFactory,
|
|
26
|
+
M as DashboardsApiFp,
|
|
27
|
+
x as DataAppFitEnum,
|
|
27
28
|
D as DataAppsApi,
|
|
28
|
-
|
|
29
|
+
T as DataAppsApiAxiosParamCreator,
|
|
29
30
|
v as DataAppsApiFactory,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
31
|
+
R as DataAppsApiFp,
|
|
32
|
+
f as DatabaseTypeEnum,
|
|
33
|
+
N as DatabasesApi,
|
|
34
|
+
z as DatabasesApiAxiosParamCreator,
|
|
35
|
+
I as DatabasesApiFactory,
|
|
36
|
+
K as DatabasesApiFp,
|
|
37
|
+
Q as EnvironmentsApi,
|
|
38
|
+
W as EnvironmentsApiAxiosParamCreator,
|
|
39
|
+
B as EnvironmentsApiFactory,
|
|
40
|
+
L as EnvironmentsApiFp,
|
|
41
|
+
O as ExecuteNotebookCellBypassFiltersEnum,
|
|
42
|
+
w as FilterTypeEnum,
|
|
43
|
+
q as FreshnessFallbackEnum,
|
|
44
|
+
G as GivenControlEnum,
|
|
45
|
+
j as LedgerEntryStrategyEnum,
|
|
46
|
+
H as LogMessageSeverityEnum,
|
|
47
|
+
J as ManifestEntryFreshnessFallbackEnum,
|
|
48
|
+
U as ManifestEntryOriginEnum,
|
|
49
|
+
V as ManifestEntryRefreshEnum,
|
|
50
|
+
X as MaterializationActionActionEnum,
|
|
51
|
+
Y as MaterializationStatus,
|
|
52
|
+
Z as MaterializationsApi,
|
|
53
|
+
_ as MaterializationsApiAxiosParamCreator,
|
|
54
|
+
$ as MaterializationsApiFactory,
|
|
55
|
+
aa as MaterializationsApiFp,
|
|
56
|
+
sa as ModelsApi,
|
|
57
|
+
ea as ModelsApiAxiosParamCreator,
|
|
58
|
+
na as ModelsApiFactory,
|
|
58
59
|
oa as ModelsApiFp,
|
|
59
60
|
ia as NotebookCellKindEnum,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
ca as
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
Ca as
|
|
71
|
-
ya as
|
|
61
|
+
ta as NotebookCellResultKindEnum,
|
|
62
|
+
ra as NotebookCellResultTypeEnum,
|
|
63
|
+
pa as NotebookCellTypeEnum,
|
|
64
|
+
ua as NotebooksApi,
|
|
65
|
+
ma as NotebooksApiAxiosParamCreator,
|
|
66
|
+
Aa as NotebooksApiFactory,
|
|
67
|
+
Ea as NotebooksApiFp,
|
|
68
|
+
ca as PackageEmbeddingIndexReasonEnum,
|
|
69
|
+
la as PackageEmbeddingIndexStageEnum,
|
|
70
|
+
da as PackageEmbeddingIndexStatusEnum,
|
|
71
|
+
Ca as PackageManifestBindingStatusEnum,
|
|
72
|
+
ya as PackageQueryableSourcesEnum,
|
|
73
|
+
ba as PackageScopeEnum,
|
|
74
|
+
Pa as PackageStorageServeBindingsInnerOriginEnum,
|
|
72
75
|
Fa as PackageWarningsInnerSeverityEnum,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
76
|
+
ga as PackagesApi,
|
|
77
|
+
Sa as PackagesApiAxiosParamCreator,
|
|
78
|
+
ka as PackagesApiFactory,
|
|
79
|
+
ha as PackagesApiFp,
|
|
80
|
+
Ma as PersistSourcePlanOriginEnum,
|
|
81
|
+
xa as PostgresConnectionSslmodeEnum,
|
|
82
|
+
Da as PublisherApi,
|
|
83
|
+
Ta as PublisherApiAxiosParamCreator,
|
|
84
|
+
va as PublisherApiFactory,
|
|
85
|
+
Ra as PublisherApiFp,
|
|
86
|
+
fa as QueryClass,
|
|
87
|
+
Na as QueryResultQueryRowLimitSourceEnum,
|
|
88
|
+
za as QueryResultServedFromEnum,
|
|
89
|
+
Ia as RawNotebookFormatEnum,
|
|
90
|
+
Ka as Realization,
|
|
91
|
+
Qa as RefusedSourceReasonEnum,
|
|
92
|
+
Wa as RefusedSourceTierEnum,
|
|
93
|
+
Ba as RunContextTriggerEnum,
|
|
94
|
+
La as S3ConnectionProviderEnum,
|
|
95
|
+
Oa as ServerProvider,
|
|
96
|
+
wa as ServerStatusOperationalStateEnum,
|
|
97
|
+
qa as ThemeDefaultModeEnum,
|
|
98
|
+
Ga as WatchModeApi,
|
|
99
|
+
ja as WatchModeApiAxiosParamCreator,
|
|
100
|
+
Ha as WatchModeApiFactory,
|
|
101
|
+
Ja as WatchModeApiFp,
|
|
102
|
+
Ua as globalQueryClient,
|
|
103
|
+
Va as usePublisherTheme,
|
|
104
|
+
Xa as useServer
|
|
101
105
|
};
|
package/dist/client-entry.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export * from './client/configuration';
|
|
|
3
3
|
export { ServerProvider, useServer } from './components/ServerProvider';
|
|
4
4
|
export type { ApiClients, ServerContextValue, ServerProviderProps, } from './components/ServerProvider';
|
|
5
5
|
export { globalQueryClient } from './utils/queryClient';
|
|
6
|
+
export { usePublisherTheme } from './theme/ThemeContext';
|
|
7
|
+
export type { ResolvedTheme, Theme, ThemeMode } from './theme/types';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface ApiError extends Error {
|
|
2
3
|
status?: number;
|
|
3
4
|
data?: {
|
|
@@ -9,4 +10,14 @@ export interface ApiErrorDisplayProps {
|
|
|
9
10
|
error: ApiError;
|
|
10
11
|
context?: string;
|
|
11
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* An error as an MUI `Alert`: a one-line summary, and the server's own words
|
|
15
|
+
* under it in a monospace block that keeps their line breaks. Themed, so it
|
|
16
|
+
* reads in dark mode as well as light. Shared with a notebook cell that could
|
|
17
|
+
* not run, so every request failure in a document looks the same.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ErrorDetailAlert({ summary, detail, }: {
|
|
20
|
+
summary?: ReactNode;
|
|
21
|
+
detail: ReactNode;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
23
|
export declare function ApiErrorDisplay({ error, context }: ApiErrorDisplayProps): import("react/jsx-runtime").JSX.Element;
|