@fses/workbench-app 0.2.0 → 0.2.1
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/WORKBENCH-CLOSURE.json +80 -0
- package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
- package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
- package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
- package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
- package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
- package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
- package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
- package/node_modules/@fses/ai-chat/LICENSE +9 -0
- package/node_modules/@fses/ai-chat/README.md +320 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
- package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
- package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
- package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
- package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
- package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
- package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
- package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
- package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
- package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
- package/node_modules/@fses/ai-chat/dist/style.css +1 -0
- package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
- package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
- package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
- package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
- package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
- package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
- package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
- package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
- package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
- package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
- package/node_modules/@fses/ai-chat/package.json +81 -0
- package/node_modules/@fses/workbench-card/LICENSE +9 -0
- package/node_modules/@fses/workbench-card/README.md +81 -0
- package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33731 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
- package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
- package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
- package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
- package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
- package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
- package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
- package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
- package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
- package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
- package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
- package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
- package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
- package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
- package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
- package/node_modules/@fses/workbench-card/dist/style.css +1 -0
- package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2002 -0
- package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
- package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
- package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
- package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
- package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
- package/node_modules/@fses/workbench-card/package.json +82 -0
- package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
- package/node_modules/@fses/workbench-card/src/index.ts +13 -0
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
- package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
- package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
- package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
- package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
- package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1081 -0
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
- package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3205 -0
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
- package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
- package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
- package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
- package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
- package/node_modules/@fses/workbench-card/src/types/block.ts +2487 -0
- package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
- package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
- package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
- package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
- package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
- package/node_modules/dompurify/LICENSE +568 -0
- package/node_modules/dompurify/README.md +523 -0
- package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
- package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
- package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
- package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
- package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
- package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
- package/node_modules/dompurify/dist/purify.js +1478 -0
- package/node_modules/dompurify/dist/purify.js.map +1 -0
- package/node_modules/dompurify/dist/purify.min.js +3 -0
- package/node_modules/dompurify/dist/purify.min.js.map +1 -0
- package/node_modules/dompurify/package.json +168 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +99 -104
|
@@ -0,0 +1,2002 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview 个人工作台区块、对话和快照协议类型定义。
|
|
3
|
+
* @author seadon
|
|
4
|
+
* @created 2026-05-06
|
|
5
|
+
*/
|
|
6
|
+
import type { ProtocolConfigPayload, ProtocolDataPayload, RendererType } from './echartsProtocol';
|
|
7
|
+
export type RoleId = 'ceo' | 'cfo' | 'sales_leader' | 'cto' | 'it_admin' | 'coo' | 'chro' | 'risk_leader' | 'regional_gm';
|
|
8
|
+
export type IntentActionType = 'append' | 'prepend' | 'replace_target' | 'replace_all' | 'unknown';
|
|
9
|
+
export type IntentPlacement = 'top' | 'bottom' | 'before_target' | 'after_target';
|
|
10
|
+
export type IntentScope = 'single' | 'group' | 'all';
|
|
11
|
+
export type WorkbenchIntentChannel = 'card_generation' | 'card_patch' | 'answer' | 'submit';
|
|
12
|
+
export type SemanticOperation = 'generate_cards' | 'patch_blocks' | 'delete_card' | 'clear_canvas' | 'regenerate_target' | 'regenerate_all' | 'answer' | 'submit' | 'unknown';
|
|
13
|
+
export type CardPatchOperation = 'patch_attributes' | 'patch_style' | 'patch_echarts' | 'patch_mixed' | 'patch_common_style' | 'delete_card' | 'clear_canvas' | 'regenerate_target' | 'regenerate_all';
|
|
14
|
+
export type CardPatchEditMode = 'style' | 'content' | 'renderer' | 'layout' | 'data' | 'structure' | 'text';
|
|
15
|
+
export type CardMutationOperation = 'create_card' | 'update_card' | 'replace_card' | 'delete_card' | 'resize_card' | 'reorder_card' | 'clear_canvas' | 'rollback_transaction';
|
|
16
|
+
export type MutationTransactionSource = 'ai_card' | 'manual_config' | 'system_layout';
|
|
17
|
+
export type MutationStepKind = 'create_block' | 'update_style' | 'update_content' | 'update_renderer' | 'update_layout' | 'delete_block' | 'expand_canvas' | 'rollback_step';
|
|
18
|
+
export type AssistantPersonaKey = 'warm' | 'professional' | 'reserved';
|
|
19
|
+
export interface AssistantPersonaPayload {
|
|
20
|
+
key: AssistantPersonaKey;
|
|
21
|
+
label: string;
|
|
22
|
+
shortDescription: string;
|
|
23
|
+
prompt: string;
|
|
24
|
+
}
|
|
25
|
+
export type BlockType = 'display' | 'form' | 'survey' | 'action' | 'workflow' | 'report';
|
|
26
|
+
export type DisplaySubType = 'metric' | 'chart' | 'weather' | 'calendar' | 'table' | 'ranking' | 'insight' | 'taskSummary' | 'reportSummary' | 'embed' | 'fdeCustom' | 'customCanvas';
|
|
27
|
+
export type FormSubType = 'inlineForm' | 'draftForm' | 'approvalForm' | 'exceptionForm';
|
|
28
|
+
export type SurveySubType = 'quickSurvey' | 'stepSurvey' | 'investigationSurvey';
|
|
29
|
+
export type ActionSubType = 'quickAction' | 'bulkAction' | 'automationTrigger';
|
|
30
|
+
export type WorkflowSubType = 'approvalFlow' | 'taskFlow' | 'timeline' | 'statusBoard';
|
|
31
|
+
export type ReportSubType = 'periodicReport' | 'boardPack' | 'managementBrief';
|
|
32
|
+
export type BlockSubType = DisplaySubType | FormSubType | SurveySubType | ActionSubType | WorkflowSubType | ReportSubType;
|
|
33
|
+
export type BlockActionType = 'refresh' | 'submit' | 'execute' | 'open' | 'generate' | 'assign' | 'approve' | 'reject' | 'export';
|
|
34
|
+
export interface BlockLayout {
|
|
35
|
+
i: string;
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
w: number;
|
|
39
|
+
h: number;
|
|
40
|
+
minW?: number;
|
|
41
|
+
minH?: number;
|
|
42
|
+
maxW?: number;
|
|
43
|
+
maxH?: number;
|
|
44
|
+
static?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface WorkbenchGridLayoutNode extends BlockLayout {
|
|
47
|
+
parentId?: string;
|
|
48
|
+
children?: WorkbenchGridLayoutNode[];
|
|
49
|
+
}
|
|
50
|
+
export interface WorkbenchLayoutV4 {
|
|
51
|
+
version: 4;
|
|
52
|
+
cols: number;
|
|
53
|
+
rowHeight?: number | 'auto';
|
|
54
|
+
gap: number;
|
|
55
|
+
meta?: Record<string, unknown>;
|
|
56
|
+
nodes: WorkbenchGridLayoutNode[];
|
|
57
|
+
}
|
|
58
|
+
export interface BlockIntent {
|
|
59
|
+
scene: string;
|
|
60
|
+
bizIntent: string;
|
|
61
|
+
roleTemplate: string;
|
|
62
|
+
}
|
|
63
|
+
export interface BlockSource {
|
|
64
|
+
sourceType: string;
|
|
65
|
+
service: string;
|
|
66
|
+
resourceKey: string;
|
|
67
|
+
params?: Record<string, unknown>;
|
|
68
|
+
}
|
|
69
|
+
export interface BlockRenderer {
|
|
70
|
+
engine: string;
|
|
71
|
+
rendererKey: string;
|
|
72
|
+
preset?: string;
|
|
73
|
+
displayMode?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface BlockState {
|
|
76
|
+
mode: 'preview' | 'final';
|
|
77
|
+
status: 'loading' | 'ready' | 'error' | 'draft' | 'submitted' | 'running' | 'needs_confirmation' | 'confirmed' | 'executing' | 'failed' | 'cancelled';
|
|
78
|
+
refreshable: boolean;
|
|
79
|
+
cacheable: boolean;
|
|
80
|
+
drilldown?: boolean;
|
|
81
|
+
editable?: boolean;
|
|
82
|
+
submitable?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export interface WorkbenchAction {
|
|
85
|
+
id: string;
|
|
86
|
+
actionType: BlockActionType | string;
|
|
87
|
+
label: string;
|
|
88
|
+
service?: string;
|
|
89
|
+
resourceKey?: string;
|
|
90
|
+
payloadTemplate?: Record<string, unknown>;
|
|
91
|
+
}
|
|
92
|
+
export interface IntentTargetSelector {
|
|
93
|
+
byId?: string[];
|
|
94
|
+
byTitle?: string[];
|
|
95
|
+
byTitleKeyword?: string[];
|
|
96
|
+
byBlockType?: BlockType[];
|
|
97
|
+
bySubType?: Array<BlockSubType | string>;
|
|
98
|
+
byBizIntent?: string[];
|
|
99
|
+
byTitleKeywords?: string[];
|
|
100
|
+
scope?: IntentScope;
|
|
101
|
+
}
|
|
102
|
+
export interface IntentConstraint {
|
|
103
|
+
placement?: IntentPlacement;
|
|
104
|
+
count?: number;
|
|
105
|
+
preferredLayout?: 'cards' | 'dashboard';
|
|
106
|
+
}
|
|
107
|
+
export interface IntentConfidence {
|
|
108
|
+
score: number;
|
|
109
|
+
matched: string[];
|
|
110
|
+
missing: string[];
|
|
111
|
+
}
|
|
112
|
+
export interface UserIntent {
|
|
113
|
+
rawUtterance: string;
|
|
114
|
+
literalObject?: string;
|
|
115
|
+
actualIntent?: string;
|
|
116
|
+
intentType?: string;
|
|
117
|
+
routeChannel?: WorkbenchIntentChannel;
|
|
118
|
+
selectedSkillId?: string;
|
|
119
|
+
operation?: SemanticOperation;
|
|
120
|
+
targetScope?: 'all' | 'selected' | 'named' | 'left_canvas' | 'current_workspace' | 'unknown';
|
|
121
|
+
safety?: {
|
|
122
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
123
|
+
requiresPreview: boolean;
|
|
124
|
+
requiresConfirmation: boolean;
|
|
125
|
+
reasons: string[];
|
|
126
|
+
};
|
|
127
|
+
analogyMode?: boolean;
|
|
128
|
+
domain?: 'enterprise_workbench' | 'outside_enterprise_workbench' | 'unknown';
|
|
129
|
+
requestedCapability?: string[];
|
|
130
|
+
contentIntent: string[];
|
|
131
|
+
actionType: IntentActionType;
|
|
132
|
+
targetSelector?: IntentTargetSelector;
|
|
133
|
+
runtimeCapabilityMutation?: RuntimeCapabilityMutation;
|
|
134
|
+
constraints?: IntentConstraint;
|
|
135
|
+
confidence: IntentConfidence;
|
|
136
|
+
}
|
|
137
|
+
export interface CanvasApplyAction {
|
|
138
|
+
type: Exclude<IntentActionType, 'unknown'> | 'noop';
|
|
139
|
+
scope: IntentScope;
|
|
140
|
+
placement?: IntentPlacement;
|
|
141
|
+
targetSelectors?: IntentTargetSelector[];
|
|
142
|
+
}
|
|
143
|
+
export interface CanvasApplyPolicy {
|
|
144
|
+
keepOrder: boolean;
|
|
145
|
+
reindexOrder: boolean;
|
|
146
|
+
keepPinnedBlocks?: boolean;
|
|
147
|
+
}
|
|
148
|
+
export interface WorkbenchDebugTrace {
|
|
149
|
+
rawUtterance: string;
|
|
150
|
+
userSemantics: string[];
|
|
151
|
+
requestedAction: string;
|
|
152
|
+
matchedCapabilities: string[];
|
|
153
|
+
missingCapabilities: string[];
|
|
154
|
+
nextSupportSuggestion: string[];
|
|
155
|
+
}
|
|
156
|
+
export type TurnTraceCategory = 'semantic' | 'proposal' | 'runtime';
|
|
157
|
+
export type ConversationTurnStatus = 'streaming' | 'ready' | 'preview_failed' | 'insert_failed' | 'submit_failed' | 'submitted' | 'error' | 'cancelled' | 'applied' | 'reverted';
|
|
158
|
+
export type WorkbenchTurnMode = WorkbenchIntentChannel;
|
|
159
|
+
export type TraceBlockType = 'thought' | 'json' | 'code' | 'file_change' | 'summary';
|
|
160
|
+
export type TraceAttachmentType = 'json' | 'code' | 'file_change' | 'text';
|
|
161
|
+
export type WorklogStageText = '正在思考' | '正在计划' | '正在执行' | '正在收尾' | '正在读取' | '正在回复' | '正在展示' | '正在生成预览' | '等待确认';
|
|
162
|
+
export type ConfirmationScope = 'layout' | 'preview' | 'insert' | 'patch' | 'submit' | 'execute' | 'high_risk_action';
|
|
163
|
+
export type ConfirmationStatus = 'draft' | 'needs_confirmation' | 'confirmed' | 'executing' | 'submitted' | 'applied' | 'failed' | 'cancelled';
|
|
164
|
+
export interface ConversationTraceAttachment {
|
|
165
|
+
type: TraceAttachmentType;
|
|
166
|
+
title: string;
|
|
167
|
+
content: string;
|
|
168
|
+
collapsed?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface ConversationConfirmation {
|
|
171
|
+
scope: ConfirmationScope;
|
|
172
|
+
status: ConfirmationStatus;
|
|
173
|
+
reason?: string;
|
|
174
|
+
summary?: string;
|
|
175
|
+
questions?: string[];
|
|
176
|
+
missingFields?: string[];
|
|
177
|
+
}
|
|
178
|
+
export type ConversationTaskKind = 'data_action' | 'data_query' | 'metric_query' | 'attachment_analysis' | 'approval_analysis' | 'workbench_card' | 'general_answer';
|
|
179
|
+
export type ConversationTaskStatus = 'intent_detected' | 'collecting_fields' | 'waiting_confirmation' | 'confirmed' | 'executing' | 'success' | 'failed' | 'cancelled' | 'topic_shifted';
|
|
180
|
+
export interface ConversationTaskField {
|
|
181
|
+
code: string;
|
|
182
|
+
name: string;
|
|
183
|
+
value?: unknown;
|
|
184
|
+
type?: string;
|
|
185
|
+
required?: boolean;
|
|
186
|
+
source?: string;
|
|
187
|
+
displayValue?: string;
|
|
188
|
+
}
|
|
189
|
+
export interface ConversationTaskError {
|
|
190
|
+
code?: string;
|
|
191
|
+
message: string;
|
|
192
|
+
retryable?: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface ConversationTaskClarificationOption {
|
|
195
|
+
index: number;
|
|
196
|
+
label: string;
|
|
197
|
+
description?: string;
|
|
198
|
+
appId?: string;
|
|
199
|
+
modelCode?: string;
|
|
200
|
+
metricCode?: string;
|
|
201
|
+
fieldCode?: string;
|
|
202
|
+
matchEvidence?: string;
|
|
203
|
+
score?: number;
|
|
204
|
+
source?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface ConversationTaskState {
|
|
207
|
+
taskId: string;
|
|
208
|
+
turnId?: string;
|
|
209
|
+
conversationId?: string;
|
|
210
|
+
taskKind: ConversationTaskKind;
|
|
211
|
+
status: ConversationTaskStatus;
|
|
212
|
+
title: string;
|
|
213
|
+
fields?: ConversationTaskField[];
|
|
214
|
+
missingFields?: ConversationTaskField[];
|
|
215
|
+
confirmationRequired?: boolean;
|
|
216
|
+
allowedConfirmPhrases?: string[];
|
|
217
|
+
clarificationOptions?: ConversationTaskClarificationOption[];
|
|
218
|
+
confirmedSelection?: ConversationTaskClarificationOption;
|
|
219
|
+
executionScope?: {
|
|
220
|
+
tenantId?: string;
|
|
221
|
+
appId?: string;
|
|
222
|
+
};
|
|
223
|
+
lastError?: ConversationTaskError;
|
|
224
|
+
resultSummary?: string;
|
|
225
|
+
createdAt?: string;
|
|
226
|
+
updatedAt?: string;
|
|
227
|
+
payload?: Record<string, unknown>;
|
|
228
|
+
}
|
|
229
|
+
export interface PreviewLayoutItem extends BlockLayout {
|
|
230
|
+
}
|
|
231
|
+
export interface LayoutDraftPlaceholderBlock {
|
|
232
|
+
id: string;
|
|
233
|
+
title: string;
|
|
234
|
+
role: 'primary' | 'secondary' | 'supporting';
|
|
235
|
+
suggestedType: string;
|
|
236
|
+
density: 'thumbnail' | 'compact' | 'standard' | 'expanded' | 'dashboard';
|
|
237
|
+
layout: PreviewLayoutItem;
|
|
238
|
+
placeholderText?: string;
|
|
239
|
+
}
|
|
240
|
+
export interface LayoutDraft {
|
|
241
|
+
draftId: string;
|
|
242
|
+
baseSnapshotVersion: number;
|
|
243
|
+
layoutConfig: LayoutConfig;
|
|
244
|
+
sourceTurnId: string;
|
|
245
|
+
status: 'draft' | 'needs_confirmation' | 'confirmed' | 'rejected' | 'superseded';
|
|
246
|
+
intentSummary: string;
|
|
247
|
+
layoutReasoning: string[];
|
|
248
|
+
constraints: {
|
|
249
|
+
hard: string[];
|
|
250
|
+
soft: string[];
|
|
251
|
+
};
|
|
252
|
+
placeholderBlocks: LayoutDraftPlaceholderBlock[];
|
|
253
|
+
conflicts?: Array<{
|
|
254
|
+
type: string;
|
|
255
|
+
message: string;
|
|
256
|
+
recoverable: boolean;
|
|
257
|
+
}>;
|
|
258
|
+
createdAt: string;
|
|
259
|
+
}
|
|
260
|
+
export interface PreviewSnapshotDraft {
|
|
261
|
+
draftId: string;
|
|
262
|
+
layoutDraftId?: string;
|
|
263
|
+
version?: number;
|
|
264
|
+
parentDraftId?: string;
|
|
265
|
+
supersedesDraftId?: string;
|
|
266
|
+
targetArtifactId?: string;
|
|
267
|
+
changeRequest?: string;
|
|
268
|
+
status?: 'draft' | 'preview_ready' | 'applied' | 'superseded' | 'failed';
|
|
269
|
+
baseSnapshotVersion: number;
|
|
270
|
+
layoutConfig: LayoutConfig;
|
|
271
|
+
nextBlocks: MaterializedBlock[];
|
|
272
|
+
changedBlockIds: string[];
|
|
273
|
+
insertedBlockIds: string[];
|
|
274
|
+
removedBlockIds: string[];
|
|
275
|
+
createdAt: string;
|
|
276
|
+
}
|
|
277
|
+
export interface ConversationGroupSummary {
|
|
278
|
+
id: string;
|
|
279
|
+
title: string;
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
}
|
|
282
|
+
export interface ConversationTurnTraceItem {
|
|
283
|
+
id: string;
|
|
284
|
+
category: TurnTraceCategory;
|
|
285
|
+
title: string;
|
|
286
|
+
detail: string;
|
|
287
|
+
humanReadable: string;
|
|
288
|
+
status: 'done' | 'running' | 'info';
|
|
289
|
+
createdAt: string;
|
|
290
|
+
blockType?: TraceBlockType;
|
|
291
|
+
collapsed?: boolean;
|
|
292
|
+
attachments?: ConversationTraceAttachment[];
|
|
293
|
+
rawPayload?: string;
|
|
294
|
+
}
|
|
295
|
+
export type ConversationReturnKind = 'start' | 'status' | 'process' | 'action' | 'conclusion' | 'data' | 'preview' | 'confirmation' | 'error' | 'debug' | 'usage';
|
|
296
|
+
export type QueryTraceStage = 'question_understanding' | 'memory_candidates' | 'semantic_matching' | 'clarification' | 'query_planning' | 'query_execution' | 'conclusion_evidence';
|
|
297
|
+
export type QueryTraceVisibility = 'current_only' | 'history_summary' | 'technical_detail';
|
|
298
|
+
export interface QueryTraceMetric {
|
|
299
|
+
name: string;
|
|
300
|
+
definition?: string;
|
|
301
|
+
matchSource?: string;
|
|
302
|
+
source?: string;
|
|
303
|
+
score?: number;
|
|
304
|
+
}
|
|
305
|
+
export interface QueryTraceMatch extends QueryTraceMetric {
|
|
306
|
+
}
|
|
307
|
+
export interface QueryTraceMemoryCandidate {
|
|
308
|
+
id?: string;
|
|
309
|
+
title: string;
|
|
310
|
+
content: string;
|
|
311
|
+
type?: string;
|
|
312
|
+
scope: string;
|
|
313
|
+
confidence: number;
|
|
314
|
+
layerPath: string[];
|
|
315
|
+
evidenceRefs: string[];
|
|
316
|
+
candidateOnly: boolean;
|
|
317
|
+
source?: string;
|
|
318
|
+
reason?: string;
|
|
319
|
+
}
|
|
320
|
+
export interface QueryTraceMemorySkipped {
|
|
321
|
+
id: string;
|
|
322
|
+
title: string;
|
|
323
|
+
reason: string;
|
|
324
|
+
}
|
|
325
|
+
export interface QueryTraceExecutionSummary {
|
|
326
|
+
rowCount: number;
|
|
327
|
+
fieldCount: number;
|
|
328
|
+
fields: string[];
|
|
329
|
+
keyStats: Array<{
|
|
330
|
+
label: string;
|
|
331
|
+
value: string;
|
|
332
|
+
evidenceRef?: string;
|
|
333
|
+
}>;
|
|
334
|
+
sampleRows: Array<Record<string, unknown>>;
|
|
335
|
+
limitations: string[];
|
|
336
|
+
}
|
|
337
|
+
export interface QueryTraceRelationScope {
|
|
338
|
+
primaryModels: string[];
|
|
339
|
+
lockedModels: string[];
|
|
340
|
+
relatedModels: string[];
|
|
341
|
+
joins: string[];
|
|
342
|
+
relationEdges: string[];
|
|
343
|
+
}
|
|
344
|
+
export type QueryTraceRelationDiagnosticActionKind = 'complete_field_mapping' | 'complete_trusted_join' | 'complete_field_inventory' | 'confirm_model_scope' | 'complete_metric_dimension';
|
|
345
|
+
export interface QueryTraceRelationDiagnosticAction {
|
|
346
|
+
kind: QueryTraceRelationDiagnosticActionKind;
|
|
347
|
+
label: string;
|
|
348
|
+
payload?: Record<string, unknown>;
|
|
349
|
+
}
|
|
350
|
+
export interface QueryTraceRelationDiagnostic {
|
|
351
|
+
code: string;
|
|
352
|
+
severity: 'info' | 'warn' | 'block';
|
|
353
|
+
message: string;
|
|
354
|
+
evidence?: string[];
|
|
355
|
+
suggestedAction?: string;
|
|
356
|
+
action?: QueryTraceRelationDiagnosticAction;
|
|
357
|
+
}
|
|
358
|
+
export interface QueryTraceMemoryCapturePrompt {
|
|
359
|
+
title: string;
|
|
360
|
+
content: string;
|
|
361
|
+
confirmLabel: string;
|
|
362
|
+
dismissLabel: string;
|
|
363
|
+
status: 'draft' | 'candidate_created' | 'dismissed';
|
|
364
|
+
}
|
|
365
|
+
export interface QueryTraceSemanticQueryIr {
|
|
366
|
+
ok?: boolean;
|
|
367
|
+
compiledSqlAvailable?: boolean;
|
|
368
|
+
compiledSqlHidden?: boolean;
|
|
369
|
+
rootModel?: string;
|
|
370
|
+
selectedModels?: string[];
|
|
371
|
+
selectedFields?: string[];
|
|
372
|
+
trustedJoins?: string[];
|
|
373
|
+
blockers?: string[];
|
|
374
|
+
limitations?: string[];
|
|
375
|
+
}
|
|
376
|
+
export interface QueryTraceDetails {
|
|
377
|
+
intent?: string;
|
|
378
|
+
memoryCandidates?: QueryTraceMemoryCandidate[];
|
|
379
|
+
memorySkipped?: QueryTraceMemorySkipped[];
|
|
380
|
+
memoryConflicts?: QueryTraceMemorySkipped[];
|
|
381
|
+
memoryCapturePrompt?: QueryTraceMemoryCapturePrompt;
|
|
382
|
+
metrics?: QueryTraceMetric[];
|
|
383
|
+
dimensions?: Array<string | QueryTraceMatch>;
|
|
384
|
+
filters?: Array<string | QueryTraceMatch>;
|
|
385
|
+
ontologyAssets?: string[];
|
|
386
|
+
ambiguities?: Array<{
|
|
387
|
+
field: string;
|
|
388
|
+
options: string[];
|
|
389
|
+
reason: string;
|
|
390
|
+
}>;
|
|
391
|
+
queryLogic?: string[];
|
|
392
|
+
executionSummary?: QueryTraceExecutionSummary;
|
|
393
|
+
relationScope?: QueryTraceRelationScope;
|
|
394
|
+
relationDiagnostics?: QueryTraceRelationDiagnostic[];
|
|
395
|
+
semanticQueryIr?: QueryTraceSemanticQueryIr;
|
|
396
|
+
evidenceCards?: Array<{
|
|
397
|
+
id: string;
|
|
398
|
+
title: string;
|
|
399
|
+
summary: string;
|
|
400
|
+
kind: 'data' | 'semantic' | 'limitation';
|
|
401
|
+
}>;
|
|
402
|
+
technicalDetails?: Record<string, unknown>;
|
|
403
|
+
}
|
|
404
|
+
export interface QueryTracePayload {
|
|
405
|
+
stage: QueryTraceStage;
|
|
406
|
+
summary: string;
|
|
407
|
+
details: QueryTraceDetails;
|
|
408
|
+
evidenceRefs?: string[];
|
|
409
|
+
}
|
|
410
|
+
export type ConversationProcessStatus = 'running' | 'done' | 'error';
|
|
411
|
+
export type ConversationProcessCollapseSource = 'auto' | 'user';
|
|
412
|
+
export type ConversationProcessInvocationKind = 'tool' | 'skill';
|
|
413
|
+
export interface ConversationProcessInvocation {
|
|
414
|
+
id: string;
|
|
415
|
+
kind: ConversationProcessInvocationKind;
|
|
416
|
+
name: string;
|
|
417
|
+
title: string;
|
|
418
|
+
status: ConversationProcessStatus;
|
|
419
|
+
collapsed: boolean;
|
|
420
|
+
inputSummary?: string;
|
|
421
|
+
resultSummary?: string;
|
|
422
|
+
summary?: string;
|
|
423
|
+
durationMs?: number;
|
|
424
|
+
startedAt?: string;
|
|
425
|
+
completedAt?: string;
|
|
426
|
+
eventId?: string;
|
|
427
|
+
eventCode?: string;
|
|
428
|
+
technicalDetail?: Record<string, unknown>;
|
|
429
|
+
}
|
|
430
|
+
export interface ConversationProcessGroup {
|
|
431
|
+
id: string;
|
|
432
|
+
title: string;
|
|
433
|
+
summary?: string;
|
|
434
|
+
status: ConversationProcessStatus;
|
|
435
|
+
collapsed: boolean;
|
|
436
|
+
collapseSource?: ConversationProcessCollapseSource;
|
|
437
|
+
startedAt?: string;
|
|
438
|
+
completedAt?: string;
|
|
439
|
+
eventId?: string;
|
|
440
|
+
eventCode?: string;
|
|
441
|
+
invocations: ConversationProcessInvocation[];
|
|
442
|
+
}
|
|
443
|
+
export interface ConversationReturnItem {
|
|
444
|
+
id: string;
|
|
445
|
+
kind: ConversationReturnKind;
|
|
446
|
+
title: string;
|
|
447
|
+
summary: string;
|
|
448
|
+
createdAt: string;
|
|
449
|
+
status?: 'running' | 'done' | 'info' | 'error';
|
|
450
|
+
collapsed?: boolean;
|
|
451
|
+
payloadLabel?: string;
|
|
452
|
+
payload?: unknown;
|
|
453
|
+
eventId?: string;
|
|
454
|
+
eventCode?: string;
|
|
455
|
+
seq?: number;
|
|
456
|
+
phase?: ProductStreamPhase;
|
|
457
|
+
intent?: WorkbenchIntentChannel;
|
|
458
|
+
parentEventId?: string;
|
|
459
|
+
streamType?: 'process' | 'action' | 'artifact' | 'final' | 'usage';
|
|
460
|
+
streamDone?: boolean;
|
|
461
|
+
traceStage?: QueryTraceStage;
|
|
462
|
+
traceVisibility?: QueryTraceVisibility;
|
|
463
|
+
queryTrace?: QueryTracePayload;
|
|
464
|
+
technicalDetail?: Record<string, unknown>;
|
|
465
|
+
}
|
|
466
|
+
export interface StreamActionItem {
|
|
467
|
+
id: string;
|
|
468
|
+
eventId?: string;
|
|
469
|
+
eventCode?: string;
|
|
470
|
+
seq: number;
|
|
471
|
+
phase?: ProductStreamPhase;
|
|
472
|
+
title: string;
|
|
473
|
+
detail?: string;
|
|
474
|
+
tool?: string;
|
|
475
|
+
status: 'running' | 'done' | 'error' | 'info';
|
|
476
|
+
durationMs?: number;
|
|
477
|
+
technicalDetail?: Record<string, unknown>;
|
|
478
|
+
createdAt: string;
|
|
479
|
+
}
|
|
480
|
+
export interface ConversationTurn {
|
|
481
|
+
id: string;
|
|
482
|
+
conversationId?: string;
|
|
483
|
+
title?: string;
|
|
484
|
+
mode: WorkbenchTurnMode;
|
|
485
|
+
intentChannel: WorkbenchIntentChannel;
|
|
486
|
+
userPrompt: string;
|
|
487
|
+
assistantStreamingText: string;
|
|
488
|
+
assistantFinalText: string;
|
|
489
|
+
assistantConclusion: string;
|
|
490
|
+
planResult?: PlanResponse;
|
|
491
|
+
layoutDraft?: LayoutDraft;
|
|
492
|
+
previewDraft?: PreviewSnapshotDraft;
|
|
493
|
+
rollbackSnapshot?: WorkbenchSnapshot;
|
|
494
|
+
mutationTransaction?: MutationTransaction;
|
|
495
|
+
traceItems: ConversationTurnTraceItem[];
|
|
496
|
+
returnItems: ConversationReturnItem[];
|
|
497
|
+
streamActions?: StreamActionItem[];
|
|
498
|
+
confirmation?: ConversationConfirmation;
|
|
499
|
+
taskStates?: ConversationTaskState[];
|
|
500
|
+
worklogStartedAt?: string;
|
|
501
|
+
worklogEndedAt?: string;
|
|
502
|
+
worklogStageText?: WorklogStageText;
|
|
503
|
+
worklogStageDetail?: string;
|
|
504
|
+
worklogStageVisible?: boolean;
|
|
505
|
+
worklogCollapsed?: boolean;
|
|
506
|
+
finalContentVisible?: boolean;
|
|
507
|
+
pendingPatch?: PendingWorkbenchPatch | null;
|
|
508
|
+
processCollapsed?: boolean;
|
|
509
|
+
processCollapseSource?: ConversationProcessCollapseSource;
|
|
510
|
+
processGroups?: ConversationProcessGroup[];
|
|
511
|
+
status: ConversationTurnStatus;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
error?: string;
|
|
515
|
+
suppressErrorDisplay?: boolean;
|
|
516
|
+
collapsed?: boolean;
|
|
517
|
+
}
|
|
518
|
+
export type CardDataTaskStatus = 'pending' | 'querying' | 'confirming' | 'empty' | 'bound' | 'failed' | 'config_required';
|
|
519
|
+
export type CardDataTaskConfirmationType = 'semantic_model' | 'join_path' | 'metric_subject' | 'filter';
|
|
520
|
+
export interface WorkbenchCardDataTaskState {
|
|
521
|
+
taskId: string;
|
|
522
|
+
conversationId?: string;
|
|
523
|
+
workspaceId?: string;
|
|
524
|
+
capabilityId: string;
|
|
525
|
+
rendererKey?: string;
|
|
526
|
+
dataShape?: string;
|
|
527
|
+
title?: string;
|
|
528
|
+
businessQuestion: string;
|
|
529
|
+
status: CardDataTaskStatus;
|
|
530
|
+
targetBlockId?: string;
|
|
531
|
+
confirmationPayload?: Record<string, unknown>;
|
|
532
|
+
error?: {
|
|
533
|
+
code: string;
|
|
534
|
+
message: string;
|
|
535
|
+
};
|
|
536
|
+
updatedAt: string;
|
|
537
|
+
}
|
|
538
|
+
export type CardDataTaskEvent = {
|
|
539
|
+
type: 'card_data_task_started';
|
|
540
|
+
turnId: string;
|
|
541
|
+
taskId: string;
|
|
542
|
+
capabilityId: string;
|
|
543
|
+
title?: string;
|
|
544
|
+
targetBlockId?: string;
|
|
545
|
+
status: 'pending';
|
|
546
|
+
} | {
|
|
547
|
+
type: 'card_data_task_progress';
|
|
548
|
+
turnId: string;
|
|
549
|
+
taskId: string;
|
|
550
|
+
stage: 'semantic' | 'sql_plan' | 'execute' | 'project';
|
|
551
|
+
status: 'querying';
|
|
552
|
+
summary?: string;
|
|
553
|
+
} | {
|
|
554
|
+
type: 'card_data_task_confirmation';
|
|
555
|
+
turnId: string;
|
|
556
|
+
taskId: string;
|
|
557
|
+
confirmationType: CardDataTaskConfirmationType;
|
|
558
|
+
options: Array<Record<string, unknown>>;
|
|
559
|
+
status: 'confirming';
|
|
560
|
+
message?: string;
|
|
561
|
+
} | {
|
|
562
|
+
type: 'card_data_task_empty';
|
|
563
|
+
turnId: string;
|
|
564
|
+
taskId: string;
|
|
565
|
+
reason: string;
|
|
566
|
+
evidence?: Record<string, unknown>;
|
|
567
|
+
status: 'empty';
|
|
568
|
+
} | {
|
|
569
|
+
type: 'card_data_task_bound';
|
|
570
|
+
turnId: string;
|
|
571
|
+
taskId: string;
|
|
572
|
+
blockId: string;
|
|
573
|
+
changedBlockIds: string[];
|
|
574
|
+
status: 'bound';
|
|
575
|
+
} | {
|
|
576
|
+
type: 'card_data_task_config_required';
|
|
577
|
+
turnId: string;
|
|
578
|
+
taskId: string;
|
|
579
|
+
reason: string;
|
|
580
|
+
status: 'config_required';
|
|
581
|
+
} | {
|
|
582
|
+
type: 'card_data_task_failed';
|
|
583
|
+
turnId: string;
|
|
584
|
+
taskId: string;
|
|
585
|
+
reason: string;
|
|
586
|
+
retryable: boolean;
|
|
587
|
+
status: 'failed';
|
|
588
|
+
};
|
|
589
|
+
export type PlanningDisplayStepKind = 'understanding' | 'asset_selection' | 'execution_plan' | 'policy_guard' | 'execution_status';
|
|
590
|
+
export interface PlanningDisplayStep {
|
|
591
|
+
kind: PlanningDisplayStepKind;
|
|
592
|
+
title: string;
|
|
593
|
+
summary: string;
|
|
594
|
+
items?: string[];
|
|
595
|
+
status?: 'running' | 'done' | 'warning' | 'blocked' | 'info';
|
|
596
|
+
}
|
|
597
|
+
export interface PlanningDisplayIssue {
|
|
598
|
+
severity: 'info' | 'warning' | 'blocked';
|
|
599
|
+
message: string;
|
|
600
|
+
}
|
|
601
|
+
export interface PlanningDisplayPayload {
|
|
602
|
+
summary: string;
|
|
603
|
+
routeLabel: string;
|
|
604
|
+
steps: PlanningDisplayStep[];
|
|
605
|
+
issues?: PlanningDisplayIssue[];
|
|
606
|
+
}
|
|
607
|
+
export interface PlanningAgentPlanStreamEvent {
|
|
608
|
+
type: 'planning.agent_plan';
|
|
609
|
+
turnId: string;
|
|
610
|
+
planId: string;
|
|
611
|
+
goalType: string;
|
|
612
|
+
userGoal: string;
|
|
613
|
+
confidence: number;
|
|
614
|
+
display?: PlanningDisplayPayload;
|
|
615
|
+
createdAt: string;
|
|
616
|
+
}
|
|
617
|
+
export interface PlanningPolicyGuardStreamEvent {
|
|
618
|
+
type: 'planning.policy_guard';
|
|
619
|
+
turnId: string;
|
|
620
|
+
planId: string;
|
|
621
|
+
allowed: boolean;
|
|
622
|
+
reason: string;
|
|
623
|
+
requiresUserConfirmation: boolean;
|
|
624
|
+
display?: PlanningDisplayPayload;
|
|
625
|
+
createdAt: string;
|
|
626
|
+
}
|
|
627
|
+
export type WorkbenchPlanStreamEvent = PlanningAgentPlanStreamEvent | PlanningPolicyGuardStreamEvent | CardDataTaskEvent | {
|
|
628
|
+
type: 'turn_started';
|
|
629
|
+
turnId: string;
|
|
630
|
+
conversationId?: string;
|
|
631
|
+
title?: string;
|
|
632
|
+
userPrompt: string;
|
|
633
|
+
createdAt: string;
|
|
634
|
+
} | {
|
|
635
|
+
type: 'process.line';
|
|
636
|
+
turnId: string;
|
|
637
|
+
seq: number;
|
|
638
|
+
text: string;
|
|
639
|
+
phase?: ProductStreamPhase;
|
|
640
|
+
eventCode?: string;
|
|
641
|
+
eventId?: string;
|
|
642
|
+
createdAt: string;
|
|
643
|
+
} | {
|
|
644
|
+
type: 'status.pulse';
|
|
645
|
+
turnId: string;
|
|
646
|
+
seq?: number;
|
|
647
|
+
stageText: WorklogStageText;
|
|
648
|
+
text?: string;
|
|
649
|
+
phase?: ProductStreamPhase;
|
|
650
|
+
eventCode?: string;
|
|
651
|
+
eventId?: string;
|
|
652
|
+
createdAt?: string;
|
|
653
|
+
} | {
|
|
654
|
+
type: 'action.started' | 'action.done' | 'action.failed';
|
|
655
|
+
turnId: string;
|
|
656
|
+
seq: number;
|
|
657
|
+
title: string;
|
|
658
|
+
detail?: string;
|
|
659
|
+
tool?: string;
|
|
660
|
+
durationMs?: number;
|
|
661
|
+
phase?: ProductStreamPhase;
|
|
662
|
+
eventCode?: string;
|
|
663
|
+
eventId?: string;
|
|
664
|
+
technicalDetail?: Record<string, unknown>;
|
|
665
|
+
createdAt: string;
|
|
666
|
+
} | {
|
|
667
|
+
type: 'final.delta';
|
|
668
|
+
turnId: string;
|
|
669
|
+
seq: number;
|
|
670
|
+
markdownDelta: string;
|
|
671
|
+
deltaIndex?: number;
|
|
672
|
+
isFinalDelta?: boolean;
|
|
673
|
+
phase?: ProductStreamPhase;
|
|
674
|
+
eventCode?: string;
|
|
675
|
+
eventId?: string;
|
|
676
|
+
createdAt: string;
|
|
677
|
+
} | {
|
|
678
|
+
type: 'usage';
|
|
679
|
+
turnId: string;
|
|
680
|
+
seq: number;
|
|
681
|
+
durationMs: number;
|
|
682
|
+
inputTokens?: number;
|
|
683
|
+
outputTokens?: number;
|
|
684
|
+
summary: string;
|
|
685
|
+
phase?: ProductStreamPhase;
|
|
686
|
+
eventCode?: string;
|
|
687
|
+
eventId?: string;
|
|
688
|
+
createdAt: string;
|
|
689
|
+
} | {
|
|
690
|
+
type: 'assistant_delta';
|
|
691
|
+
turnId: string;
|
|
692
|
+
target?: 'conclusion';
|
|
693
|
+
delta: string;
|
|
694
|
+
} | {
|
|
695
|
+
type: 'stream_message';
|
|
696
|
+
turnId: string;
|
|
697
|
+
item: ConversationReturnItem;
|
|
698
|
+
} | {
|
|
699
|
+
type: 'plan_ready';
|
|
700
|
+
turnId: string;
|
|
701
|
+
planResult: PlanResponse;
|
|
702
|
+
} | {
|
|
703
|
+
type: 'patch_plan_ready';
|
|
704
|
+
turnId: string;
|
|
705
|
+
patchPlan: PatchPlan;
|
|
706
|
+
highlightBlockIds?: string[];
|
|
707
|
+
candidateBlockIds?: string[];
|
|
708
|
+
error?: CardPatchErrorPayload;
|
|
709
|
+
suggestions?: CardPatchSuggestion[];
|
|
710
|
+
} | {
|
|
711
|
+
type: 'card_recommendations_ready';
|
|
712
|
+
turnId: string;
|
|
713
|
+
message: string;
|
|
714
|
+
recommendations: Array<Record<string, unknown>>;
|
|
715
|
+
} | {
|
|
716
|
+
type: 'registered_card_insert_ready';
|
|
717
|
+
turnId: string;
|
|
718
|
+
sourceTurnId?: string;
|
|
719
|
+
question?: string;
|
|
720
|
+
userInstruction?: string;
|
|
721
|
+
capabilityId: string;
|
|
722
|
+
title: string;
|
|
723
|
+
reason?: string;
|
|
724
|
+
confidence?: number;
|
|
725
|
+
dataShape?: string;
|
|
726
|
+
blockPlan: Record<string, unknown>;
|
|
727
|
+
dataBinding?: Record<string, unknown>;
|
|
728
|
+
queryResult?: Record<string, unknown>;
|
|
729
|
+
} | {
|
|
730
|
+
type: 'query_result_export_ready';
|
|
731
|
+
turnId: string;
|
|
732
|
+
title: string;
|
|
733
|
+
formats: string[];
|
|
734
|
+
files: Array<{
|
|
735
|
+
format: string;
|
|
736
|
+
filename: string;
|
|
737
|
+
mimeType: string;
|
|
738
|
+
content: string;
|
|
739
|
+
encoding: 'utf8' | 'base64';
|
|
740
|
+
size?: number;
|
|
741
|
+
}>;
|
|
742
|
+
sourceQuestion?: string;
|
|
743
|
+
rowCount?: number;
|
|
744
|
+
} | {
|
|
745
|
+
type: 'layout_draft_ready';
|
|
746
|
+
turnId: string;
|
|
747
|
+
layoutDraft: LayoutDraft;
|
|
748
|
+
} | {
|
|
749
|
+
type: 'preview_ready';
|
|
750
|
+
turnId: string;
|
|
751
|
+
previewDraft: PreviewSnapshotDraft;
|
|
752
|
+
} | {
|
|
753
|
+
type: 'snapshot_updated';
|
|
754
|
+
turnId: string;
|
|
755
|
+
snapshot: WorkbenchSnapshot;
|
|
756
|
+
reason?: string;
|
|
757
|
+
changedBlockIds?: string[];
|
|
758
|
+
mutationTransaction?: MutationTransaction;
|
|
759
|
+
highlightBlockIds?: string[];
|
|
760
|
+
} | {
|
|
761
|
+
type: 'trace';
|
|
762
|
+
turnId: string;
|
|
763
|
+
traceItem: ConversationTurnTraceItem;
|
|
764
|
+
} | {
|
|
765
|
+
type: 'needs_confirmation';
|
|
766
|
+
turnId: string;
|
|
767
|
+
confirmation: ConversationConfirmation;
|
|
768
|
+
candidateBlockIds?: string[];
|
|
769
|
+
} | {
|
|
770
|
+
type: 'confirmation_result';
|
|
771
|
+
turnId: string;
|
|
772
|
+
result: ConversationConfirmation;
|
|
773
|
+
} | ({
|
|
774
|
+
type: 'task_state';
|
|
775
|
+
turnId: string;
|
|
776
|
+
} & ConversationTaskState) | {
|
|
777
|
+
type: 'preview_failed';
|
|
778
|
+
turnId: string;
|
|
779
|
+
message: string;
|
|
780
|
+
retryable?: boolean;
|
|
781
|
+
} | {
|
|
782
|
+
type: 'insert_failed';
|
|
783
|
+
turnId: string;
|
|
784
|
+
message: string;
|
|
785
|
+
retryable?: boolean;
|
|
786
|
+
} | {
|
|
787
|
+
type: 'submit_failed';
|
|
788
|
+
turnId: string;
|
|
789
|
+
message: string;
|
|
790
|
+
retryable?: boolean;
|
|
791
|
+
draftPreserved?: boolean;
|
|
792
|
+
} | {
|
|
793
|
+
type: 'done';
|
|
794
|
+
turnId: string;
|
|
795
|
+
} | {
|
|
796
|
+
type: 'error';
|
|
797
|
+
turnId: string;
|
|
798
|
+
message?: string;
|
|
799
|
+
error?: {
|
|
800
|
+
code?: string;
|
|
801
|
+
message?: string;
|
|
802
|
+
[key: string]: unknown;
|
|
803
|
+
};
|
|
804
|
+
stage?: string;
|
|
805
|
+
retryable?: boolean;
|
|
806
|
+
};
|
|
807
|
+
export interface UnsupportedIntentCase {
|
|
808
|
+
rawUtterance: string;
|
|
809
|
+
unresolvedAction?: string;
|
|
810
|
+
unresolvedTarget?: string;
|
|
811
|
+
unresolvedConstraint?: string;
|
|
812
|
+
suggestion: string;
|
|
813
|
+
}
|
|
814
|
+
export interface WorkbenchMutationPlan {
|
|
815
|
+
userIntent: UserIntent;
|
|
816
|
+
blockPlans: BlockPlan[];
|
|
817
|
+
canvasAction: CanvasApplyAction;
|
|
818
|
+
applyPolicy: CanvasApplyPolicy;
|
|
819
|
+
debug: WorkbenchDebugTrace;
|
|
820
|
+
}
|
|
821
|
+
export interface CanvasMutationResult {
|
|
822
|
+
nextBlocks: MaterializedBlock[];
|
|
823
|
+
replacedBlockIds: string[];
|
|
824
|
+
insertedBlockIds: string[];
|
|
825
|
+
removedBlockIds: string[];
|
|
826
|
+
}
|
|
827
|
+
export interface MetricSummaryData {
|
|
828
|
+
shape: 'metricSummary';
|
|
829
|
+
primaryLabel: string;
|
|
830
|
+
primaryFormat: 'currency' | 'number' | 'percent';
|
|
831
|
+
primaryValue: number;
|
|
832
|
+
deltaPct: number | null;
|
|
833
|
+
compareLabel: string;
|
|
834
|
+
periodLabel: string;
|
|
835
|
+
sourceLabel: string;
|
|
836
|
+
secondary: Array<{
|
|
837
|
+
label: string;
|
|
838
|
+
format: 'currency' | 'number' | 'percent';
|
|
839
|
+
value: number;
|
|
840
|
+
}>;
|
|
841
|
+
}
|
|
842
|
+
export interface MultiSeriesData {
|
|
843
|
+
shape: 'singleSeries' | 'multiSeries';
|
|
844
|
+
categories: string[];
|
|
845
|
+
metricFormat: 'currency' | 'number' | 'percent';
|
|
846
|
+
unit?: string;
|
|
847
|
+
series: Array<{
|
|
848
|
+
name: string;
|
|
849
|
+
type: 'bar' | 'line';
|
|
850
|
+
colorBy?: 'series' | 'data';
|
|
851
|
+
itemStyle?: {
|
|
852
|
+
color?: string;
|
|
853
|
+
};
|
|
854
|
+
data: number[];
|
|
855
|
+
}>;
|
|
856
|
+
narrative?: string;
|
|
857
|
+
}
|
|
858
|
+
export interface PieSlicesData {
|
|
859
|
+
shape: 'pieSlices';
|
|
860
|
+
unit?: string;
|
|
861
|
+
innerRadius?: number;
|
|
862
|
+
slices: Array<{
|
|
863
|
+
label: string;
|
|
864
|
+
value: number;
|
|
865
|
+
share: number;
|
|
866
|
+
}>;
|
|
867
|
+
narrative?: string;
|
|
868
|
+
}
|
|
869
|
+
export interface RadarMetricsData {
|
|
870
|
+
shape: 'radarMetrics';
|
|
871
|
+
max: number;
|
|
872
|
+
axes: Array<{
|
|
873
|
+
label: string;
|
|
874
|
+
value: number;
|
|
875
|
+
}>;
|
|
876
|
+
narrative?: string;
|
|
877
|
+
}
|
|
878
|
+
export interface ScatterPointsData {
|
|
879
|
+
shape: 'scatterPoints';
|
|
880
|
+
xLabel: string;
|
|
881
|
+
yLabel: string;
|
|
882
|
+
sizeLabel?: string;
|
|
883
|
+
points: Array<{
|
|
884
|
+
label: string;
|
|
885
|
+
x: number;
|
|
886
|
+
y: number;
|
|
887
|
+
size?: number;
|
|
888
|
+
category?: string;
|
|
889
|
+
}>;
|
|
890
|
+
narrative?: string;
|
|
891
|
+
}
|
|
892
|
+
export interface FunnelStagesData {
|
|
893
|
+
shape: 'funnelStages';
|
|
894
|
+
unit?: string;
|
|
895
|
+
stages: Array<{
|
|
896
|
+
label: string;
|
|
897
|
+
value: number;
|
|
898
|
+
rate: number;
|
|
899
|
+
}>;
|
|
900
|
+
narrative?: string;
|
|
901
|
+
}
|
|
902
|
+
export interface GaugeMetricData {
|
|
903
|
+
shape: 'gaugeMetric';
|
|
904
|
+
label: string;
|
|
905
|
+
value: number;
|
|
906
|
+
max: number;
|
|
907
|
+
unit?: string;
|
|
908
|
+
thresholds: Array<{
|
|
909
|
+
label: string;
|
|
910
|
+
value: number;
|
|
911
|
+
color: string;
|
|
912
|
+
}>;
|
|
913
|
+
narrative?: string;
|
|
914
|
+
}
|
|
915
|
+
export interface MapRegionsData {
|
|
916
|
+
shape: 'mapRegions';
|
|
917
|
+
unit?: string;
|
|
918
|
+
regions: Array<{
|
|
919
|
+
name: string;
|
|
920
|
+
value: number;
|
|
921
|
+
status: 'high' | 'medium' | 'low';
|
|
922
|
+
}>;
|
|
923
|
+
narrative?: string;
|
|
924
|
+
}
|
|
925
|
+
export interface SankeyFlowData {
|
|
926
|
+
shape: 'sankeyFlow';
|
|
927
|
+
nodes: Array<{
|
|
928
|
+
id: string;
|
|
929
|
+
label: string;
|
|
930
|
+
}>;
|
|
931
|
+
links: Array<{
|
|
932
|
+
source: string;
|
|
933
|
+
target: string;
|
|
934
|
+
value: number;
|
|
935
|
+
}>;
|
|
936
|
+
narrative?: string;
|
|
937
|
+
}
|
|
938
|
+
export interface TreeNodeData {
|
|
939
|
+
id: string;
|
|
940
|
+
label: string;
|
|
941
|
+
value?: number;
|
|
942
|
+
children?: TreeNodeData[];
|
|
943
|
+
}
|
|
944
|
+
export interface TreeHierarchyData {
|
|
945
|
+
shape: 'treeHierarchy';
|
|
946
|
+
root: TreeNodeData;
|
|
947
|
+
narrative?: string;
|
|
948
|
+
}
|
|
949
|
+
export interface GanttTasksData {
|
|
950
|
+
shape: 'ganttTasks';
|
|
951
|
+
timeline: string[];
|
|
952
|
+
tasks: Array<{
|
|
953
|
+
label: string;
|
|
954
|
+
owner: string;
|
|
955
|
+
start: number;
|
|
956
|
+
end: number;
|
|
957
|
+
status: 'done' | 'running' | 'pending' | 'risk';
|
|
958
|
+
}>;
|
|
959
|
+
narrative?: string;
|
|
960
|
+
}
|
|
961
|
+
export interface CandlestickSeriesData {
|
|
962
|
+
shape: 'candlestickSeries';
|
|
963
|
+
categories: string[];
|
|
964
|
+
unit?: string;
|
|
965
|
+
values: Array<{
|
|
966
|
+
open: number;
|
|
967
|
+
close: number;
|
|
968
|
+
low: number;
|
|
969
|
+
high: number;
|
|
970
|
+
}>;
|
|
971
|
+
narrative?: string;
|
|
972
|
+
}
|
|
973
|
+
export interface BoxplotSeriesData {
|
|
974
|
+
shape: 'boxplotSeries';
|
|
975
|
+
categories: string[];
|
|
976
|
+
values: Array<[number, number, number, number, number]>;
|
|
977
|
+
narrative?: string;
|
|
978
|
+
}
|
|
979
|
+
export interface ParetoSeriesData {
|
|
980
|
+
shape: 'paretoSeries';
|
|
981
|
+
categories: string[];
|
|
982
|
+
bars: number[];
|
|
983
|
+
cumulative: number[];
|
|
984
|
+
narrative?: string;
|
|
985
|
+
}
|
|
986
|
+
export interface NetworkGraphData {
|
|
987
|
+
shape: 'networkGraph';
|
|
988
|
+
nodes: Array<{
|
|
989
|
+
id: string;
|
|
990
|
+
label: string;
|
|
991
|
+
category?: string;
|
|
992
|
+
value?: number;
|
|
993
|
+
}>;
|
|
994
|
+
links: Array<{
|
|
995
|
+
source: string;
|
|
996
|
+
target: string;
|
|
997
|
+
value?: number;
|
|
998
|
+
}>;
|
|
999
|
+
narrative?: string;
|
|
1000
|
+
}
|
|
1001
|
+
export interface GeoGlobeData {
|
|
1002
|
+
shape: 'geoGlobe';
|
|
1003
|
+
title: string;
|
|
1004
|
+
centerLabel: string;
|
|
1005
|
+
arcs: Array<{
|
|
1006
|
+
from: string;
|
|
1007
|
+
to: string;
|
|
1008
|
+
value: number;
|
|
1009
|
+
}>;
|
|
1010
|
+
metrics: Array<{
|
|
1011
|
+
label: string;
|
|
1012
|
+
value: string;
|
|
1013
|
+
}>;
|
|
1014
|
+
narrative?: string;
|
|
1015
|
+
}
|
|
1016
|
+
export interface WaterfallStepsData {
|
|
1017
|
+
shape: 'waterfallSteps';
|
|
1018
|
+
unit: string;
|
|
1019
|
+
steps: Array<{
|
|
1020
|
+
label: string;
|
|
1021
|
+
value?: number;
|
|
1022
|
+
delta?: number;
|
|
1023
|
+
}>;
|
|
1024
|
+
narrative?: string;
|
|
1025
|
+
}
|
|
1026
|
+
export interface HeatmapMatrixData {
|
|
1027
|
+
shape: 'heatmapMatrix';
|
|
1028
|
+
rows: string[];
|
|
1029
|
+
columns: string[];
|
|
1030
|
+
values: number[][];
|
|
1031
|
+
narrative?: string;
|
|
1032
|
+
}
|
|
1033
|
+
export interface EchartsOptionData {
|
|
1034
|
+
shape: 'echartsOption';
|
|
1035
|
+
engine?: 'echarts' | 'echarts-gl';
|
|
1036
|
+
requires?: string[];
|
|
1037
|
+
theme?: string;
|
|
1038
|
+
option: Record<string, unknown>;
|
|
1039
|
+
narrative?: string;
|
|
1040
|
+
}
|
|
1041
|
+
export interface EchartsScriptData {
|
|
1042
|
+
shape: 'echartsScript';
|
|
1043
|
+
engine?: 'echarts' | 'echarts-gl';
|
|
1044
|
+
requires?: string[];
|
|
1045
|
+
theme?: string;
|
|
1046
|
+
rootPath?: string;
|
|
1047
|
+
script: string;
|
|
1048
|
+
narrative?: string;
|
|
1049
|
+
}
|
|
1050
|
+
export interface EchartsDynamicData {
|
|
1051
|
+
shape: 'echartsDynamic';
|
|
1052
|
+
optionTemplate: Record<string, unknown>;
|
|
1053
|
+
dataBinding: {
|
|
1054
|
+
bindingId: string;
|
|
1055
|
+
refreshApi: string;
|
|
1056
|
+
xField?: string;
|
|
1057
|
+
yFields?: string[];
|
|
1058
|
+
paramsSchema?: Record<string, unknown>;
|
|
1059
|
+
fieldMapping?: {
|
|
1060
|
+
xField?: string;
|
|
1061
|
+
yFields?: string[];
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
narrative?: string;
|
|
1065
|
+
}
|
|
1066
|
+
export interface DashboardGridData {
|
|
1067
|
+
shape: 'dashboardGrid';
|
|
1068
|
+
sourceLabel: string;
|
|
1069
|
+
narrative: string;
|
|
1070
|
+
panels: Array<{
|
|
1071
|
+
id: string;
|
|
1072
|
+
title: string;
|
|
1073
|
+
subtitle?: string;
|
|
1074
|
+
rendererKey: string;
|
|
1075
|
+
data: DisplayBlockData;
|
|
1076
|
+
}>;
|
|
1077
|
+
}
|
|
1078
|
+
export interface CategoryRankingData {
|
|
1079
|
+
shape: 'categoryRanking';
|
|
1080
|
+
dimensionLabel: string;
|
|
1081
|
+
valueFormat: 'currency' | 'number';
|
|
1082
|
+
items: Array<{
|
|
1083
|
+
label: string;
|
|
1084
|
+
value: number;
|
|
1085
|
+
share: number;
|
|
1086
|
+
badge?: string;
|
|
1087
|
+
}>;
|
|
1088
|
+
}
|
|
1089
|
+
export interface TableRowsData {
|
|
1090
|
+
shape: 'rows';
|
|
1091
|
+
visualKind?: string;
|
|
1092
|
+
sourceLabel?: string;
|
|
1093
|
+
columns: string[];
|
|
1094
|
+
rows: Array<{
|
|
1095
|
+
id: string;
|
|
1096
|
+
cells: string[];
|
|
1097
|
+
}>;
|
|
1098
|
+
}
|
|
1099
|
+
export interface InsightNarrativeData {
|
|
1100
|
+
shape: 'insightNarrative';
|
|
1101
|
+
bullets: string[];
|
|
1102
|
+
confidence?: number;
|
|
1103
|
+
owner?: string;
|
|
1104
|
+
}
|
|
1105
|
+
export interface TaskSummaryData {
|
|
1106
|
+
shape: 'taskSummary';
|
|
1107
|
+
total: number;
|
|
1108
|
+
overdue: number;
|
|
1109
|
+
dueToday: number;
|
|
1110
|
+
completed: number;
|
|
1111
|
+
sourceLabel: string;
|
|
1112
|
+
items: Array<{
|
|
1113
|
+
id: string;
|
|
1114
|
+
title: string;
|
|
1115
|
+
type: 'form' | 'survey' | 'notice' | 'document' | 'workflow' | 'custom';
|
|
1116
|
+
status: 'pending' | 'reading' | 'submitted' | 'overdue' | 'done';
|
|
1117
|
+
dueAt?: string;
|
|
1118
|
+
owner?: string;
|
|
1119
|
+
source?: string;
|
|
1120
|
+
entryLabel?: string;
|
|
1121
|
+
}>;
|
|
1122
|
+
}
|
|
1123
|
+
export interface WeatherCurrentData {
|
|
1124
|
+
shape: 'weatherCurrent';
|
|
1125
|
+
location: string;
|
|
1126
|
+
observedAt: string;
|
|
1127
|
+
condition: 'sunny' | 'cloudy' | 'overcast' | 'rain' | 'snow' | 'storm' | 'unknown';
|
|
1128
|
+
conditionLabel: string;
|
|
1129
|
+
temperatureC: number | null;
|
|
1130
|
+
feelsLikeC?: number | null;
|
|
1131
|
+
humidityPct?: number | null;
|
|
1132
|
+
precipitationPct?: number | null;
|
|
1133
|
+
wind?: {
|
|
1134
|
+
direction: string;
|
|
1135
|
+
level: string;
|
|
1136
|
+
speedKph?: number | null;
|
|
1137
|
+
};
|
|
1138
|
+
aqi?: {
|
|
1139
|
+
value: number | null;
|
|
1140
|
+
level: string;
|
|
1141
|
+
};
|
|
1142
|
+
forecast: Array<{
|
|
1143
|
+
label: string;
|
|
1144
|
+
conditionLabel: string;
|
|
1145
|
+
highC: number | null;
|
|
1146
|
+
lowC: number | null;
|
|
1147
|
+
precipitationPct?: number | null;
|
|
1148
|
+
}>;
|
|
1149
|
+
sourceLabel: string;
|
|
1150
|
+
dataStatus: 'live' | 'sample' | 'unavailable';
|
|
1151
|
+
notice?: string;
|
|
1152
|
+
}
|
|
1153
|
+
export interface CalendarCardData {
|
|
1154
|
+
shape: 'calendarCard';
|
|
1155
|
+
timezone: string;
|
|
1156
|
+
today: string;
|
|
1157
|
+
dateLabel: string;
|
|
1158
|
+
weekLabel: string;
|
|
1159
|
+
lunarLabel?: string;
|
|
1160
|
+
items: Array<{
|
|
1161
|
+
id: string;
|
|
1162
|
+
title: string;
|
|
1163
|
+
time: string;
|
|
1164
|
+
type: 'meeting' | 'deadline' | 'todo' | 'holiday' | 'reminder';
|
|
1165
|
+
status: 'scheduled' | 'due' | 'done' | 'sample';
|
|
1166
|
+
}>;
|
|
1167
|
+
sourceLabel: string;
|
|
1168
|
+
dataStatus: 'live' | 'sample' | 'unavailable';
|
|
1169
|
+
notice?: string;
|
|
1170
|
+
}
|
|
1171
|
+
export interface ReportSummaryDisplayData {
|
|
1172
|
+
shape: 'reportSummary';
|
|
1173
|
+
summary: string;
|
|
1174
|
+
highlights: string[];
|
|
1175
|
+
sourceLabel: string;
|
|
1176
|
+
dataStatus: 'generated' | 'sample' | 'unavailable';
|
|
1177
|
+
}
|
|
1178
|
+
export interface EmbeddedFrameData {
|
|
1179
|
+
shape: 'embeddedFrame';
|
|
1180
|
+
title: string;
|
|
1181
|
+
srcUrl: string;
|
|
1182
|
+
sandbox: string;
|
|
1183
|
+
status: 'ready' | 'missing_url' | 'blocked';
|
|
1184
|
+
sourceLabel: string;
|
|
1185
|
+
fallbackText?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface FdeCustomComponentData {
|
|
1188
|
+
shape: 'fdeCustomComponent';
|
|
1189
|
+
componentRef: string;
|
|
1190
|
+
componentName: string;
|
|
1191
|
+
props: Record<string, unknown>;
|
|
1192
|
+
status: 'ready' | 'unregistered';
|
|
1193
|
+
sourceLabel: string;
|
|
1194
|
+
fallbackText?: string;
|
|
1195
|
+
}
|
|
1196
|
+
export interface CustomCanvasElement {
|
|
1197
|
+
id: string;
|
|
1198
|
+
kind: 'text' | 'metric' | 'badge' | 'divider';
|
|
1199
|
+
label?: string;
|
|
1200
|
+
value?: string;
|
|
1201
|
+
x?: number;
|
|
1202
|
+
y?: number;
|
|
1203
|
+
w?: number;
|
|
1204
|
+
h?: number;
|
|
1205
|
+
style?: Record<string, unknown>;
|
|
1206
|
+
}
|
|
1207
|
+
export interface CustomCanvasNestedBlock {
|
|
1208
|
+
id: string;
|
|
1209
|
+
title: string;
|
|
1210
|
+
kind: string;
|
|
1211
|
+
capabilityId?: string;
|
|
1212
|
+
dataShape?: string;
|
|
1213
|
+
registryTitle?: string;
|
|
1214
|
+
visualKind?: string;
|
|
1215
|
+
meta?: Record<string, unknown>;
|
|
1216
|
+
slot: string;
|
|
1217
|
+
composeSource?: string;
|
|
1218
|
+
dataBindingId?: string;
|
|
1219
|
+
dataBinding?: {
|
|
1220
|
+
id?: string;
|
|
1221
|
+
bindingId?: string;
|
|
1222
|
+
status?: string;
|
|
1223
|
+
queryIntent?: string;
|
|
1224
|
+
refreshApi?: string;
|
|
1225
|
+
[key: string]: unknown;
|
|
1226
|
+
};
|
|
1227
|
+
dataBindingStatus: string;
|
|
1228
|
+
dataBindingError?: string;
|
|
1229
|
+
humanIntervention?: Record<string, unknown>;
|
|
1230
|
+
queryIntent?: string;
|
|
1231
|
+
subType?: BlockSubType | string;
|
|
1232
|
+
renderer?: BlockRenderer;
|
|
1233
|
+
state?: BlockState;
|
|
1234
|
+
layout?: BlockLayout;
|
|
1235
|
+
visual?: BlockVisualOptions;
|
|
1236
|
+
data?: Record<string, unknown>;
|
|
1237
|
+
}
|
|
1238
|
+
export interface CustomCanvasData {
|
|
1239
|
+
shape: 'customCanvas';
|
|
1240
|
+
sourceLabel: string;
|
|
1241
|
+
containerRole?: string;
|
|
1242
|
+
background?: string;
|
|
1243
|
+
narrative?: string;
|
|
1244
|
+
elements: CustomCanvasElement[];
|
|
1245
|
+
nestedBlocks?: CustomCanvasNestedBlock[];
|
|
1246
|
+
nestedLayoutMode?: 'absolute' | 'grid' | string;
|
|
1247
|
+
nestedLayoutBasis?: {
|
|
1248
|
+
baseCols?: number;
|
|
1249
|
+
x?: number;
|
|
1250
|
+
y?: number;
|
|
1251
|
+
w?: number;
|
|
1252
|
+
h?: number;
|
|
1253
|
+
};
|
|
1254
|
+
nestedLayoutStacks?: Array<{
|
|
1255
|
+
id: string;
|
|
1256
|
+
childIds: string[];
|
|
1257
|
+
}>;
|
|
1258
|
+
nestedLayoutItems?: Record<string, {
|
|
1259
|
+
rowSpan?: number;
|
|
1260
|
+
columnSpan?: number;
|
|
1261
|
+
}>;
|
|
1262
|
+
}
|
|
1263
|
+
/** 协议渲染数据 -- 通用卡片协议驱动 */
|
|
1264
|
+
export interface ProtocolRenderData {
|
|
1265
|
+
shape: 'protocolRender';
|
|
1266
|
+
rendererType: RendererType;
|
|
1267
|
+
protocolConfig: ProtocolConfigPayload;
|
|
1268
|
+
protocolData?: ProtocolDataPayload;
|
|
1269
|
+
dataBindingId?: string;
|
|
1270
|
+
dataBinding?: {
|
|
1271
|
+
bindingId?: string;
|
|
1272
|
+
refreshApi?: string;
|
|
1273
|
+
xField?: string;
|
|
1274
|
+
yFields?: string[];
|
|
1275
|
+
status?: string;
|
|
1276
|
+
params?: Record<string, unknown>;
|
|
1277
|
+
sourceType?: string;
|
|
1278
|
+
paramsSchema?: Record<string, unknown>;
|
|
1279
|
+
fieldMapping?: {
|
|
1280
|
+
xField?: string;
|
|
1281
|
+
yFields?: string[];
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
export type DisplayBlockData = MetricSummaryData | MultiSeriesData | PieSlicesData | RadarMetricsData | ScatterPointsData | FunnelStagesData | GaugeMetricData | MapRegionsData | SankeyFlowData | TreeHierarchyData | GanttTasksData | CandlestickSeriesData | BoxplotSeriesData | ParetoSeriesData | NetworkGraphData | GeoGlobeData | WaterfallStepsData | HeatmapMatrixData | EchartsOptionData | EchartsScriptData | EchartsDynamicData | DashboardGridData | CategoryRankingData | TableRowsData | InsightNarrativeData | TaskSummaryData | WeatherCurrentData | CalendarCardData | ReportSummaryDisplayData | EmbeddedFrameData | FdeCustomComponentData | CustomCanvasData | ProtocolRenderData;
|
|
1286
|
+
export interface FormField {
|
|
1287
|
+
id: string;
|
|
1288
|
+
type: 'select' | 'currency' | 'textarea' | 'number' | 'text' | 'date' | 'user' | 'file';
|
|
1289
|
+
label: string;
|
|
1290
|
+
required?: boolean;
|
|
1291
|
+
options?: string[];
|
|
1292
|
+
placeholder?: string;
|
|
1293
|
+
}
|
|
1294
|
+
export interface FormBlockData {
|
|
1295
|
+
schemaRef: string;
|
|
1296
|
+
draftRef: string;
|
|
1297
|
+
fields: FormField[];
|
|
1298
|
+
values: Record<string, unknown>;
|
|
1299
|
+
status: 'draft' | 'submitted';
|
|
1300
|
+
lastSavedAt?: string;
|
|
1301
|
+
submittedAt?: string;
|
|
1302
|
+
}
|
|
1303
|
+
export interface SurveyQuestion {
|
|
1304
|
+
id: string;
|
|
1305
|
+
type?: 'single' | 'multiple' | 'score' | 'matrix' | 'text';
|
|
1306
|
+
label: string;
|
|
1307
|
+
options: string[];
|
|
1308
|
+
rows?: string[];
|
|
1309
|
+
scale?: number;
|
|
1310
|
+
}
|
|
1311
|
+
export interface SurveyBlockData {
|
|
1312
|
+
questionnaireRef: string;
|
|
1313
|
+
progress: {
|
|
1314
|
+
current: number;
|
|
1315
|
+
total: number;
|
|
1316
|
+
};
|
|
1317
|
+
questions: SurveyQuestion[];
|
|
1318
|
+
answers: Record<string, unknown>;
|
|
1319
|
+
status: 'draft' | 'submitted';
|
|
1320
|
+
submittedAt?: string;
|
|
1321
|
+
}
|
|
1322
|
+
export interface ActionGroupData {
|
|
1323
|
+
buttons: Array<{
|
|
1324
|
+
id: string;
|
|
1325
|
+
label: string;
|
|
1326
|
+
actionType: string;
|
|
1327
|
+
description: string;
|
|
1328
|
+
confirmLevel?: 'L1' | 'L2' | 'L3' | 'L4';
|
|
1329
|
+
affectedCount?: number;
|
|
1330
|
+
resultPreview?: string;
|
|
1331
|
+
}>;
|
|
1332
|
+
}
|
|
1333
|
+
export interface WorkflowBlockData {
|
|
1334
|
+
instanceRef: string;
|
|
1335
|
+
status: string;
|
|
1336
|
+
lanes?: Array<{
|
|
1337
|
+
label: string;
|
|
1338
|
+
owner: string;
|
|
1339
|
+
status: string;
|
|
1340
|
+
}>;
|
|
1341
|
+
statusBoard?: Array<{
|
|
1342
|
+
label: string;
|
|
1343
|
+
count: number;
|
|
1344
|
+
status: string;
|
|
1345
|
+
}>;
|
|
1346
|
+
steps: Array<{
|
|
1347
|
+
time: string;
|
|
1348
|
+
label: string;
|
|
1349
|
+
status: string;
|
|
1350
|
+
owner?: string;
|
|
1351
|
+
description?: string;
|
|
1352
|
+
}>;
|
|
1353
|
+
}
|
|
1354
|
+
export interface ReportSection {
|
|
1355
|
+
title: string;
|
|
1356
|
+
body: string;
|
|
1357
|
+
}
|
|
1358
|
+
export interface ReportBlockData {
|
|
1359
|
+
reportRef: string;
|
|
1360
|
+
status: string;
|
|
1361
|
+
summary: string;
|
|
1362
|
+
sections: ReportSection[];
|
|
1363
|
+
exportFormats?: Array<'PDF' | 'PPT' | 'Word'>;
|
|
1364
|
+
version: number;
|
|
1365
|
+
updatedAt: string;
|
|
1366
|
+
}
|
|
1367
|
+
export interface LayoutConfig {
|
|
1368
|
+
cols: number;
|
|
1369
|
+
rows: number;
|
|
1370
|
+
maxCols: number;
|
|
1371
|
+
maxRows: number;
|
|
1372
|
+
isSquareCell: boolean;
|
|
1373
|
+
layoutVersion: number;
|
|
1374
|
+
}
|
|
1375
|
+
export interface WorkbenchVisualConfig {
|
|
1376
|
+
themeId?: string;
|
|
1377
|
+
accentColor?: string;
|
|
1378
|
+
backgroundColor?: string;
|
|
1379
|
+
textColor?: string;
|
|
1380
|
+
borderColor?: string;
|
|
1381
|
+
cardRadius?: number;
|
|
1382
|
+
cardShadow?: 'none' | 'soft' | 'standard' | 'strong';
|
|
1383
|
+
density?: 'thumbnail' | 'compact' | 'standard' | 'expanded';
|
|
1384
|
+
}
|
|
1385
|
+
export interface WorkbenchCardStyleConfig extends WorkbenchVisualConfig {
|
|
1386
|
+
css?: Record<string, string | number | boolean | null>;
|
|
1387
|
+
shell?: Record<string, unknown>;
|
|
1388
|
+
}
|
|
1389
|
+
export interface WorkbenchSnapshotVisualConfig {
|
|
1390
|
+
cardStyle?: WorkbenchCardStyleConfig;
|
|
1391
|
+
echartsDefaults?: Record<string, unknown>;
|
|
1392
|
+
layoutTree?: WorkbenchLayoutV4;
|
|
1393
|
+
}
|
|
1394
|
+
export interface ChartVisualOptions {
|
|
1395
|
+
palette?: string[];
|
|
1396
|
+
showLegend?: boolean;
|
|
1397
|
+
showTooltip?: boolean;
|
|
1398
|
+
smooth?: boolean;
|
|
1399
|
+
stacked?: boolean;
|
|
1400
|
+
labelMode?: 'none' | 'inside' | 'outside';
|
|
1401
|
+
}
|
|
1402
|
+
export interface BlockVisualOptions {
|
|
1403
|
+
themeId?: string;
|
|
1404
|
+
density?: 'thumbnail' | 'compact' | 'standard' | 'expanded';
|
|
1405
|
+
accentColor?: string;
|
|
1406
|
+
backgroundColor?: string;
|
|
1407
|
+
textColor?: string;
|
|
1408
|
+
borderColor?: string;
|
|
1409
|
+
cardRadius?: number;
|
|
1410
|
+
cardShadow?: 'none' | 'soft' | 'standard' | 'strong';
|
|
1411
|
+
cardTone?: 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
|
|
1412
|
+
businessSummaryBand?: 'risk';
|
|
1413
|
+
metricVariant?: 'standard' | 'centerNumber';
|
|
1414
|
+
hideSecondary?: boolean;
|
|
1415
|
+
hideMetricLabel?: boolean;
|
|
1416
|
+
hideMetricFooter?: boolean;
|
|
1417
|
+
showSubtitleInThumbnail?: boolean;
|
|
1418
|
+
chart?: ChartVisualOptions;
|
|
1419
|
+
allowedVisualPatchPaths?: string[];
|
|
1420
|
+
advancedVisualPatch?: {
|
|
1421
|
+
enabled: boolean;
|
|
1422
|
+
disclaimerAcceptedAt?: string;
|
|
1423
|
+
rollbackVersion?: number;
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
export type CardCapacityLevel = 'micro' | 'compact' | 'standard' | 'expanded' | 'canvas';
|
|
1427
|
+
export type CardContentDensity = 'minimal' | 'compact' | 'standard' | 'rich' | 'dashboard';
|
|
1428
|
+
export interface CardCapacityFacts {
|
|
1429
|
+
grid: {
|
|
1430
|
+
cols: number;
|
|
1431
|
+
rows: number;
|
|
1432
|
+
blockW: number;
|
|
1433
|
+
blockH: number;
|
|
1434
|
+
blockArea: number;
|
|
1435
|
+
};
|
|
1436
|
+
viewport: {
|
|
1437
|
+
width: number;
|
|
1438
|
+
height: number;
|
|
1439
|
+
columnsVisible: number;
|
|
1440
|
+
};
|
|
1441
|
+
pixelBox: {
|
|
1442
|
+
width: number;
|
|
1443
|
+
height: number;
|
|
1444
|
+
contentWidth: number;
|
|
1445
|
+
contentHeight: number;
|
|
1446
|
+
area: number;
|
|
1447
|
+
};
|
|
1448
|
+
rendererCapabilities: Array<{
|
|
1449
|
+
rendererKey: string;
|
|
1450
|
+
minWidth: number;
|
|
1451
|
+
minHeight: number;
|
|
1452
|
+
recommendedCapacity: CardCapacityLevel;
|
|
1453
|
+
supportsResponsiveTiers: boolean;
|
|
1454
|
+
}>;
|
|
1455
|
+
userSizeIntent: 'small' | 'medium' | 'large' | 'will_resize_later' | 'unspecified';
|
|
1456
|
+
}
|
|
1457
|
+
export interface CardFitAnalysis {
|
|
1458
|
+
requestedTopic: string;
|
|
1459
|
+
capacityLevel: CardCapacityLevel;
|
|
1460
|
+
userSizeIntent: CardCapacityFacts['userSizeIntent'];
|
|
1461
|
+
informationGoal: 'single_metric' | 'trend' | 'composition' | 'comparison' | 'dashboard' | 'workflow' | 'unknown';
|
|
1462
|
+
contentDensity: CardContentDensity;
|
|
1463
|
+
recommendedRendererKey: string;
|
|
1464
|
+
selectedContent: string[];
|
|
1465
|
+
omittedContent: string[];
|
|
1466
|
+
overflowRisk: 'low' | 'medium' | 'high';
|
|
1467
|
+
shouldSuggestResize: boolean;
|
|
1468
|
+
suggestedResize?: {
|
|
1469
|
+
w: number;
|
|
1470
|
+
h: number;
|
|
1471
|
+
reason: string;
|
|
1472
|
+
};
|
|
1473
|
+
reasoningSummary: string[];
|
|
1474
|
+
}
|
|
1475
|
+
export interface ResponsiveContentTier {
|
|
1476
|
+
title?: string;
|
|
1477
|
+
subtitle?: string;
|
|
1478
|
+
renderer?: BlockRenderer;
|
|
1479
|
+
subType?: BlockSubType | string;
|
|
1480
|
+
data?: DisplayBlockData | Record<string, unknown>;
|
|
1481
|
+
visual?: BlockVisualOptions;
|
|
1482
|
+
summary: string;
|
|
1483
|
+
}
|
|
1484
|
+
export interface ResponsiveContentTiers {
|
|
1485
|
+
compact?: ResponsiveContentTier;
|
|
1486
|
+
standard?: ResponsiveContentTier;
|
|
1487
|
+
expanded?: ResponsiveContentTier;
|
|
1488
|
+
canvas?: ResponsiveContentTier;
|
|
1489
|
+
}
|
|
1490
|
+
export type RuntimeCapabilityLevel = 'config' | 'composition';
|
|
1491
|
+
export type RuntimeCapabilitySlot = 'card.header.left' | 'card.header.right' | 'card.body.toolbar' | 'card.body.inline' | 'card.body.emptyState' | 'card.footer.actions' | 'card.detail.panel' | 'workspace.banner.topRight';
|
|
1492
|
+
export type RuntimeCapabilityUiKind = 'iconButton+popover' | 'inlinePanel' | 'filterBar' | 'drawerPanel';
|
|
1493
|
+
export type RuntimeCapabilityDataSource = 'cardSearchIndex' | 'routeTargetRegistry' | 'businessObjectQuery';
|
|
1494
|
+
export type RuntimeCapabilityActionType = 'focusCard' | 'openRoute' | 'refreshData' | 'toggleFavorite' | 'exportData' | 'tableSelection' | 'openDrawer' | 'callApiAction';
|
|
1495
|
+
export type RuntimeCapabilityMutationAction = 'mount' | 'unmount' | 'update' | 'move' | 'enable' | 'disable' | 'replace';
|
|
1496
|
+
export interface RuntimeCapabilityMount {
|
|
1497
|
+
id: string;
|
|
1498
|
+
name: string;
|
|
1499
|
+
level: RuntimeCapabilityLevel;
|
|
1500
|
+
version: number;
|
|
1501
|
+
description?: string;
|
|
1502
|
+
slot: RuntimeCapabilitySlot;
|
|
1503
|
+
placement?: 'prepend' | 'append';
|
|
1504
|
+
ui: {
|
|
1505
|
+
kind: RuntimeCapabilityUiKind;
|
|
1506
|
+
icon?: string;
|
|
1507
|
+
tooltip?: string;
|
|
1508
|
+
placeholder?: string;
|
|
1509
|
+
submitLabel?: string;
|
|
1510
|
+
emptyText?: string;
|
|
1511
|
+
};
|
|
1512
|
+
state?: {
|
|
1513
|
+
query?: {
|
|
1514
|
+
type: 'string';
|
|
1515
|
+
defaultValue?: string;
|
|
1516
|
+
};
|
|
1517
|
+
filter?: Record<string, unknown>;
|
|
1518
|
+
sort?: {
|
|
1519
|
+
field?: string;
|
|
1520
|
+
direction?: 'asc' | 'desc';
|
|
1521
|
+
};
|
|
1522
|
+
pagination?: {
|
|
1523
|
+
pageSize?: number;
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1526
|
+
data: {
|
|
1527
|
+
source: RuntimeCapabilityDataSource;
|
|
1528
|
+
queryStateKey?: 'query';
|
|
1529
|
+
matchFields?: string[];
|
|
1530
|
+
limit?: number;
|
|
1531
|
+
target?: string;
|
|
1532
|
+
objectType?: string;
|
|
1533
|
+
fields?: string[];
|
|
1534
|
+
filters?: Record<string, unknown>;
|
|
1535
|
+
timeRange?: string;
|
|
1536
|
+
};
|
|
1537
|
+
actions: Array<{
|
|
1538
|
+
trigger: 'onSelectResult' | 'onSubmit' | 'onClick' | 'onChange';
|
|
1539
|
+
type: RuntimeCapabilityActionType;
|
|
1540
|
+
target?: string;
|
|
1541
|
+
params?: Record<string, unknown>;
|
|
1542
|
+
}>;
|
|
1543
|
+
permissions: {
|
|
1544
|
+
read: string[];
|
|
1545
|
+
write: string[];
|
|
1546
|
+
routeTargets?: string[];
|
|
1547
|
+
sideEffects?: string[];
|
|
1548
|
+
};
|
|
1549
|
+
disabled?: boolean;
|
|
1550
|
+
traceSummary?: string;
|
|
1551
|
+
}
|
|
1552
|
+
export interface RuntimeCapabilityMutation {
|
|
1553
|
+
action: RuntimeCapabilityMutationAction;
|
|
1554
|
+
targetCardSelector?: IntentTargetSelector;
|
|
1555
|
+
match?: {
|
|
1556
|
+
capabilityId?: string;
|
|
1557
|
+
slot?: RuntimeCapabilitySlot;
|
|
1558
|
+
uiIcon?: string;
|
|
1559
|
+
dataSource?: RuntimeCapabilityDataSource;
|
|
1560
|
+
actionType?: RuntimeCapabilityActionType;
|
|
1561
|
+
nameKeywords?: string[];
|
|
1562
|
+
};
|
|
1563
|
+
capabilitySpec?: RuntimeCapabilityMount;
|
|
1564
|
+
missingPrimitives?: string[];
|
|
1565
|
+
patch?: {
|
|
1566
|
+
slot?: RuntimeCapabilitySlot;
|
|
1567
|
+
placement?: 'prepend' | 'append';
|
|
1568
|
+
ui?: Partial<RuntimeCapabilityMount['ui']>;
|
|
1569
|
+
data?: Partial<RuntimeCapabilityMount['data']>;
|
|
1570
|
+
actions?: RuntimeCapabilityMount['actions'];
|
|
1571
|
+
disabled?: boolean;
|
|
1572
|
+
};
|
|
1573
|
+
reasonSummary?: string[];
|
|
1574
|
+
}
|
|
1575
|
+
export interface BlockMeta {
|
|
1576
|
+
visual?: BlockVisualOptions;
|
|
1577
|
+
cardCapacityFacts?: CardCapacityFacts;
|
|
1578
|
+
cardFitAnalysis?: CardFitAnalysis;
|
|
1579
|
+
responsiveContentTiers?: ResponsiveContentTiers;
|
|
1580
|
+
capabilityMounts?: RuntimeCapabilityMount[];
|
|
1581
|
+
[key: string]: unknown;
|
|
1582
|
+
}
|
|
1583
|
+
export interface BlockPlan {
|
|
1584
|
+
id: string;
|
|
1585
|
+
version: number;
|
|
1586
|
+
blockType: BlockType;
|
|
1587
|
+
subType: BlockSubType | string;
|
|
1588
|
+
title: string;
|
|
1589
|
+
subtitle?: string;
|
|
1590
|
+
layout: BlockLayout;
|
|
1591
|
+
intent: BlockIntent;
|
|
1592
|
+
source?: BlockSource;
|
|
1593
|
+
renderer?: BlockRenderer;
|
|
1594
|
+
state: BlockState;
|
|
1595
|
+
actions?: Array<WorkbenchAction | Record<string, unknown>>;
|
|
1596
|
+
meta?: BlockMeta;
|
|
1597
|
+
}
|
|
1598
|
+
export interface MaterializedBlock extends BlockPlan {
|
|
1599
|
+
data?: DisplayBlockData | Record<string, unknown>;
|
|
1600
|
+
form?: FormBlockData | Record<string, unknown>;
|
|
1601
|
+
survey?: SurveyBlockData | Record<string, unknown>;
|
|
1602
|
+
actionGroup?: ActionGroupData | Record<string, unknown>;
|
|
1603
|
+
workflow?: WorkflowBlockData | Record<string, unknown>;
|
|
1604
|
+
report?: ReportBlockData | Record<string, unknown>;
|
|
1605
|
+
}
|
|
1606
|
+
export type WorkbenchBlock = MaterializedBlock;
|
|
1607
|
+
export interface WorkbenchSnapshot {
|
|
1608
|
+
workspaceId: string;
|
|
1609
|
+
roleId: RoleId | '';
|
|
1610
|
+
userId: string;
|
|
1611
|
+
version: number;
|
|
1612
|
+
layoutVersion?: number;
|
|
1613
|
+
layoutConfig?: LayoutConfig;
|
|
1614
|
+
visualConfig?: WorkbenchSnapshotVisualConfig;
|
|
1615
|
+
updatedAt: string;
|
|
1616
|
+
blocks: MaterializedBlock[];
|
|
1617
|
+
}
|
|
1618
|
+
export interface MutationStep {
|
|
1619
|
+
id: string;
|
|
1620
|
+
label: string;
|
|
1621
|
+
kind: MutationStepKind;
|
|
1622
|
+
targetBlockIds: string[];
|
|
1623
|
+
before: unknown;
|
|
1624
|
+
after: unknown;
|
|
1625
|
+
reversible: boolean;
|
|
1626
|
+
dependsOnStepIds?: string[];
|
|
1627
|
+
}
|
|
1628
|
+
export interface MutationTransaction {
|
|
1629
|
+
id: string;
|
|
1630
|
+
source: MutationTransactionSource;
|
|
1631
|
+
userInstruction: string;
|
|
1632
|
+
aiReasoningSummary: string[];
|
|
1633
|
+
operation: CardMutationOperation;
|
|
1634
|
+
targetBlockIds: string[];
|
|
1635
|
+
beforeSnapshot: WorkbenchSnapshot;
|
|
1636
|
+
afterSnapshot: WorkbenchSnapshot;
|
|
1637
|
+
steps: MutationStep[];
|
|
1638
|
+
createdAt: string;
|
|
1639
|
+
}
|
|
1640
|
+
export type ArtifactType = 'card_plan_block' | 'layout_draft' | 'preview_draft' | 'preview_block' | 'canvas_block' | 'patch_plan' | 'submit_draft' | 'answer' | 'confirmation';
|
|
1641
|
+
export type ArtifactStatus = 'draft' | 'needs_confirmation' | 'confirmed' | 'preview_ready' | 'applied' | 'submitted' | 'superseded' | 'failed';
|
|
1642
|
+
export interface ArtifactIndexItem {
|
|
1643
|
+
artifactId: string;
|
|
1644
|
+
type: ArtifactType;
|
|
1645
|
+
workItemId: string;
|
|
1646
|
+
turnId: string;
|
|
1647
|
+
status: ArtifactStatus;
|
|
1648
|
+
title: string;
|
|
1649
|
+
aliases: string[];
|
|
1650
|
+
ordinal?: number;
|
|
1651
|
+
createdAt: string;
|
|
1652
|
+
updatedAt: string;
|
|
1653
|
+
payloadRef: {
|
|
1654
|
+
source: 'turn' | 'snapshot' | 'store';
|
|
1655
|
+
path: string;
|
|
1656
|
+
};
|
|
1657
|
+
lightweightPayload: Record<string, unknown>;
|
|
1658
|
+
}
|
|
1659
|
+
export interface CanvasBlockContext extends MaterializedBlock {
|
|
1660
|
+
rendererKey?: string;
|
|
1661
|
+
nestedTitles?: string[];
|
|
1662
|
+
}
|
|
1663
|
+
export interface CanonicalLayoutContext {
|
|
1664
|
+
baseVersion: number;
|
|
1665
|
+
layoutVersion: number;
|
|
1666
|
+
layoutSource: 'gridstack_layout_tree' | 'block_layout';
|
|
1667
|
+
layoutFingerprint: string;
|
|
1668
|
+
layoutTree?: Record<string, unknown>;
|
|
1669
|
+
blockLayouts?: Array<{
|
|
1670
|
+
blockId: string;
|
|
1671
|
+
layout: Pick<BlockLayout, 'x' | 'y' | 'w' | 'h'>;
|
|
1672
|
+
}>;
|
|
1673
|
+
updatedAt?: string;
|
|
1674
|
+
}
|
|
1675
|
+
export interface CanvasContext {
|
|
1676
|
+
snapshotVersion: number;
|
|
1677
|
+
layoutConfig: LayoutConfig;
|
|
1678
|
+
blockCount: number;
|
|
1679
|
+
blocks: CanvasBlockContext[];
|
|
1680
|
+
selectedBlock?: {
|
|
1681
|
+
id: string;
|
|
1682
|
+
title: string;
|
|
1683
|
+
blockType: string;
|
|
1684
|
+
subType: string;
|
|
1685
|
+
rendererKey?: string;
|
|
1686
|
+
} | null;
|
|
1687
|
+
canonicalLayoutContext?: CanonicalLayoutContext;
|
|
1688
|
+
}
|
|
1689
|
+
export interface TurnContextSummary {
|
|
1690
|
+
turnId: string;
|
|
1691
|
+
workItemId: string;
|
|
1692
|
+
order: number;
|
|
1693
|
+
userPrompt: string;
|
|
1694
|
+
assistantSummary: string;
|
|
1695
|
+
intentChannel: WorkbenchIntentChannel;
|
|
1696
|
+
status: 'streaming' | 'ready' | 'needs_confirmation' | 'applied' | 'submitted' | 'failed' | 'cancelled';
|
|
1697
|
+
createdAt: string;
|
|
1698
|
+
updatedAt: string;
|
|
1699
|
+
artifactIds: string[];
|
|
1700
|
+
}
|
|
1701
|
+
export interface RecentFocus {
|
|
1702
|
+
latestTurnId?: string;
|
|
1703
|
+
latestNonAnswerTurnId?: string;
|
|
1704
|
+
latestCardWorkItemId?: string;
|
|
1705
|
+
latestPatchWorkItemId?: string;
|
|
1706
|
+
latestSubmitWorkItemId?: string;
|
|
1707
|
+
latestPreviewDraftId?: string;
|
|
1708
|
+
latestSubmitDraftId?: string;
|
|
1709
|
+
selectedBlockId?: string | null;
|
|
1710
|
+
selectedNestedBlock?: {
|
|
1711
|
+
parentId: string;
|
|
1712
|
+
childId: string;
|
|
1713
|
+
} | null;
|
|
1714
|
+
lastInsertedBlockIds?: string[];
|
|
1715
|
+
lastHighlightedBlockIds?: string[];
|
|
1716
|
+
pendingPatch?: {
|
|
1717
|
+
id: string;
|
|
1718
|
+
sourceTurnId: string;
|
|
1719
|
+
status: PendingWorkbenchPatch['status'];
|
|
1720
|
+
candidateBlockIds: string[];
|
|
1721
|
+
targetSummary?: string;
|
|
1722
|
+
userInstruction: string;
|
|
1723
|
+
} | null;
|
|
1724
|
+
}
|
|
1725
|
+
export interface ConversationScreenContext {
|
|
1726
|
+
conversationId: string;
|
|
1727
|
+
activeTurnId?: string;
|
|
1728
|
+
activeWorkItemId?: string;
|
|
1729
|
+
roleId: RoleId | '';
|
|
1730
|
+
workspaceId: string;
|
|
1731
|
+
userId: string;
|
|
1732
|
+
currentInput: string;
|
|
1733
|
+
selectedBlock?: CanvasContext['selectedBlock'];
|
|
1734
|
+
canvas: CanvasContext;
|
|
1735
|
+
visibleTurns: TurnContextSummary[];
|
|
1736
|
+
artifactIndex: ArtifactIndexItem[];
|
|
1737
|
+
recentFocus: RecentFocus;
|
|
1738
|
+
}
|
|
1739
|
+
export interface WorkbenchTemplate {
|
|
1740
|
+
id: string;
|
|
1741
|
+
resource_id: string;
|
|
1742
|
+
path: string;
|
|
1743
|
+
name: string;
|
|
1744
|
+
tag: string;
|
|
1745
|
+
description: string;
|
|
1746
|
+
source: 'fde_preset' | 'user_saved';
|
|
1747
|
+
renameable: boolean;
|
|
1748
|
+
ownerUserId?: string;
|
|
1749
|
+
roleId?: RoleId;
|
|
1750
|
+
createdAt: string;
|
|
1751
|
+
updatedAt: string;
|
|
1752
|
+
}
|
|
1753
|
+
export interface UserWorkbenchPreference {
|
|
1754
|
+
activeWorkbenchId: string;
|
|
1755
|
+
defaultWorkbenchId: string;
|
|
1756
|
+
assistantPersona?: AssistantPersonaKey;
|
|
1757
|
+
}
|
|
1758
|
+
export interface WorkbenchConversationWorkItem {
|
|
1759
|
+
id: string;
|
|
1760
|
+
title: string;
|
|
1761
|
+
intentChannel: WorkbenchIntentChannel;
|
|
1762
|
+
status: 'active' | 'paused' | 'completed' | 'failed';
|
|
1763
|
+
relatedTurnIds: string[];
|
|
1764
|
+
contextSummary?: string;
|
|
1765
|
+
createdAt: string;
|
|
1766
|
+
updatedAt: string;
|
|
1767
|
+
}
|
|
1768
|
+
export interface SkillMetadata {
|
|
1769
|
+
id: string;
|
|
1770
|
+
name: string;
|
|
1771
|
+
intentTypes: WorkbenchIntentChannel[];
|
|
1772
|
+
inputSchema: unknown;
|
|
1773
|
+
outputSchema: unknown;
|
|
1774
|
+
requiredContext: string[];
|
|
1775
|
+
requiredTools: string[];
|
|
1776
|
+
permissionScope: string[];
|
|
1777
|
+
confirmationPolicy: 'none' | 'low_risk' | 'required';
|
|
1778
|
+
canWrite: boolean;
|
|
1779
|
+
fallbackPolicy: 'none' | 'general_skill' | 'error';
|
|
1780
|
+
}
|
|
1781
|
+
export interface PlannerStep {
|
|
1782
|
+
label: string;
|
|
1783
|
+
status: 'done' | 'ready' | 'pending';
|
|
1784
|
+
detail: string;
|
|
1785
|
+
}
|
|
1786
|
+
export interface CardPlan {
|
|
1787
|
+
target: 'canvas_preview';
|
|
1788
|
+
blocks: BlockPlan[];
|
|
1789
|
+
mutationPlan: WorkbenchMutationPlan;
|
|
1790
|
+
}
|
|
1791
|
+
export interface CardTargetResolveResult {
|
|
1792
|
+
status: 'resolved' | 'candidates' | 'not_found' | 'needs_clarification';
|
|
1793
|
+
mode: 'selected' | 'recent_inserted' | 'ordinal' | 'row_column' | 'region' | 'title' | 'scope' | 'chart_type' | 'ai_semantic';
|
|
1794
|
+
targetBlockIds: string[];
|
|
1795
|
+
candidateBlockIds: string[];
|
|
1796
|
+
confidence: number;
|
|
1797
|
+
reason: string;
|
|
1798
|
+
warnings: string[];
|
|
1799
|
+
requiresConfirmation?: boolean;
|
|
1800
|
+
targetSummary?: string;
|
|
1801
|
+
}
|
|
1802
|
+
export type WorkbenchPatchIntentOperation = 'renameTitle' | 'editText' | 'modifyStyle' | 'changeChart' | 'changeDataSource' | 'replaceCard' | 'adjustLayout' | 'deleteCard' | 'batchModify';
|
|
1803
|
+
export interface WorkbenchPatchIntent {
|
|
1804
|
+
id: string;
|
|
1805
|
+
sourceTurnId: string;
|
|
1806
|
+
userInstruction: string;
|
|
1807
|
+
operation: WorkbenchPatchIntentOperation;
|
|
1808
|
+
editModes: CardPatchEditMode[];
|
|
1809
|
+
targetQuery: string;
|
|
1810
|
+
payload: Record<string, unknown>;
|
|
1811
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
1812
|
+
requiresConfirmation: boolean;
|
|
1813
|
+
}
|
|
1814
|
+
export interface PendingWorkbenchPatchCandidateSummary {
|
|
1815
|
+
id: string;
|
|
1816
|
+
title: string;
|
|
1817
|
+
positionLabel: string;
|
|
1818
|
+
rendererKey?: string;
|
|
1819
|
+
}
|
|
1820
|
+
export interface PendingWorkbenchPatch {
|
|
1821
|
+
id: string;
|
|
1822
|
+
sourceTurnId: string;
|
|
1823
|
+
patchIntent: WorkbenchPatchIntent;
|
|
1824
|
+
targetResolve: CardTargetResolveResult;
|
|
1825
|
+
candidateBlockIds: string[];
|
|
1826
|
+
candidateSummaries: PendingWorkbenchPatchCandidateSummary[];
|
|
1827
|
+
baseSnapshotVersion: number;
|
|
1828
|
+
status: 'awaiting_target' | 'awaiting_confirmation';
|
|
1829
|
+
createdAt: string;
|
|
1830
|
+
expiresAt: string;
|
|
1831
|
+
}
|
|
1832
|
+
export type CardPatchErrorCode = 'CARD_TARGET_NOT_FOUND' | 'CARD_TARGET_AMBIGUOUS' | 'CARD_PATCH_UNSUPPORTED' | 'CHART_TYPE_INCOMPATIBLE' | 'WORKBENCH_VERSION_CONFLICT';
|
|
1833
|
+
export type CardPatchSuggestionType = 'select_card' | 'choose_candidate' | 'retry_prompt' | 'regenerate_chart' | 'change_chart_type' | 'refresh_workspace';
|
|
1834
|
+
export interface CardPatchTargetSummary {
|
|
1835
|
+
blockId: string;
|
|
1836
|
+
title: string;
|
|
1837
|
+
blockType?: string;
|
|
1838
|
+
subType?: string;
|
|
1839
|
+
rendererKey?: string;
|
|
1840
|
+
layout?: Pick<BlockLayout, 'x' | 'y' | 'w' | 'h'>;
|
|
1841
|
+
confidence?: number;
|
|
1842
|
+
reason?: string;
|
|
1843
|
+
}
|
|
1844
|
+
export interface CardPatchSuggestion {
|
|
1845
|
+
type: CardPatchSuggestionType;
|
|
1846
|
+
label: string;
|
|
1847
|
+
prompt?: string;
|
|
1848
|
+
targetBlockId?: string;
|
|
1849
|
+
}
|
|
1850
|
+
export interface CardPatchErrorPayload {
|
|
1851
|
+
code: CardPatchErrorCode;
|
|
1852
|
+
message: string;
|
|
1853
|
+
summary: string;
|
|
1854
|
+
detail?: string;
|
|
1855
|
+
targetText?: string;
|
|
1856
|
+
target?: CardPatchTargetSummary;
|
|
1857
|
+
candidates?: CardPatchTargetSummary[];
|
|
1858
|
+
suggestions?: CardPatchSuggestion[];
|
|
1859
|
+
}
|
|
1860
|
+
export interface PatchPlan {
|
|
1861
|
+
operation?: CardPatchOperation;
|
|
1862
|
+
editModes?: CardPatchEditMode[];
|
|
1863
|
+
scope?: 'single' | 'group' | 'all' | 'global_common';
|
|
1864
|
+
targetBlockIds: string[];
|
|
1865
|
+
targetSummary?: string;
|
|
1866
|
+
target?: CardPatchTargetSummary | null;
|
|
1867
|
+
reason?: string;
|
|
1868
|
+
targetResolve?: CardTargetResolveResult;
|
|
1869
|
+
filteredOptionKeys?: string[];
|
|
1870
|
+
patches: Array<{
|
|
1871
|
+
blockId?: string;
|
|
1872
|
+
path: string;
|
|
1873
|
+
value: unknown;
|
|
1874
|
+
mergeMode?: 'replace' | 'deepMerge' | 'arrayMergeById' | 'arrayMergeByType';
|
|
1875
|
+
reason?: string;
|
|
1876
|
+
}>;
|
|
1877
|
+
allowedPatchPaths?: string[];
|
|
1878
|
+
regenerationPrompt?: string;
|
|
1879
|
+
canvasAction?: CanvasApplyAction;
|
|
1880
|
+
requiresConfirmation?: boolean;
|
|
1881
|
+
riskLevel?: 'low' | 'medium' | 'high';
|
|
1882
|
+
summary?: string;
|
|
1883
|
+
warnings?: string[];
|
|
1884
|
+
error?: CardPatchErrorPayload;
|
|
1885
|
+
suggestions?: CardPatchSuggestion[];
|
|
1886
|
+
note?: string;
|
|
1887
|
+
confirmation?: Record<string, unknown>;
|
|
1888
|
+
}
|
|
1889
|
+
export interface AnswerPlan {
|
|
1890
|
+
answerType: 'weather' | 'calendar' | 'knowledge_base' | 'policy' | 'workspace_context' | 'business_data_analysis' | 'chart_compare_analysis' | 'external_news' | 'general';
|
|
1891
|
+
dataSources: string[];
|
|
1892
|
+
canWrite: false;
|
|
1893
|
+
}
|
|
1894
|
+
export interface SubmitPlan {
|
|
1895
|
+
draftId: string;
|
|
1896
|
+
submitType: SubmitType;
|
|
1897
|
+
targetBlockId?: string;
|
|
1898
|
+
targetBlockTitle?: string;
|
|
1899
|
+
executor?: SubmitDraftExecutor;
|
|
1900
|
+
payload?: Record<string, unknown>;
|
|
1901
|
+
missingFields: string[];
|
|
1902
|
+
confirmation: ConversationConfirmation;
|
|
1903
|
+
status?: SubmitDraftStatus;
|
|
1904
|
+
}
|
|
1905
|
+
export type SubmitType = 'form' | 'survey' | 'action' | 'workflow' | 'data_write' | 'report';
|
|
1906
|
+
export type SubmitDraftExecutor = 'form_submit' | 'survey_submit' | 'action_execute' | 'report_generate' | 'workflow_transition' | 'data_write';
|
|
1907
|
+
export type SubmitDraftStatus = 'draft' | 'needs_confirmation' | 'confirmed' | 'executing' | 'submitted' | 'failed' | 'cancelled';
|
|
1908
|
+
export interface SubmitDraft extends SubmitPlan {
|
|
1909
|
+
executor: SubmitDraftExecutor;
|
|
1910
|
+
payload: Record<string, unknown>;
|
|
1911
|
+
status: SubmitDraftStatus;
|
|
1912
|
+
workspaceId: string;
|
|
1913
|
+
roleId: RoleId;
|
|
1914
|
+
userId: string;
|
|
1915
|
+
conversationId?: string;
|
|
1916
|
+
sourceTurnId?: string;
|
|
1917
|
+
createdAt: string;
|
|
1918
|
+
updatedAt: string;
|
|
1919
|
+
lastError?: string;
|
|
1920
|
+
}
|
|
1921
|
+
export type ProductStreamPhase = 'received' | 'routing' | 'context' | 'planning' | 'tool_running' | 'drafting' | 'previewing' | 'confirming' | 'finalizing' | 'done';
|
|
1922
|
+
export interface ReferenceResolutionTrace {
|
|
1923
|
+
isContinuation: boolean;
|
|
1924
|
+
confidence: number;
|
|
1925
|
+
targetWorkItemId?: string;
|
|
1926
|
+
targetTurnId?: string;
|
|
1927
|
+
targetArtifactIds: string[];
|
|
1928
|
+
targetKind?: ArtifactType;
|
|
1929
|
+
reason: string;
|
|
1930
|
+
rewrittenInput: string;
|
|
1931
|
+
warnings: string[];
|
|
1932
|
+
}
|
|
1933
|
+
export interface TracePlan {
|
|
1934
|
+
items: ConversationTurnTraceItem[];
|
|
1935
|
+
requestContext?: {
|
|
1936
|
+
title?: string;
|
|
1937
|
+
lines?: string[];
|
|
1938
|
+
};
|
|
1939
|
+
referenceResolution?: ReferenceResolutionTrace;
|
|
1940
|
+
continuation?: {
|
|
1941
|
+
workItemId?: string;
|
|
1942
|
+
targetArtifactId?: string;
|
|
1943
|
+
mode?: 'new_generation' | 'revise_previous_draft' | 'confirm_previous_preview';
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
export interface PlanResponse {
|
|
1947
|
+
status: 'plan_ready';
|
|
1948
|
+
intentChannel: WorkbenchIntentChannel;
|
|
1949
|
+
reply: string;
|
|
1950
|
+
summary: string;
|
|
1951
|
+
assumptions: string[];
|
|
1952
|
+
plannerSteps: PlannerStep[];
|
|
1953
|
+
cardPlan?: CardPlan;
|
|
1954
|
+
patchPlan?: PatchPlan | null;
|
|
1955
|
+
answerPlan?: AnswerPlan | null;
|
|
1956
|
+
submitPlan?: SubmitPlan | null;
|
|
1957
|
+
tracePlan?: TracePlan | null;
|
|
1958
|
+
/**
|
|
1959
|
+
* Compatibility accessor for existing materialization code.
|
|
1960
|
+
* New code should read `cardPlan.blocks`.
|
|
1961
|
+
*/
|
|
1962
|
+
blockPlans: BlockPlan[];
|
|
1963
|
+
/**
|
|
1964
|
+
* Compatibility accessor for existing canvas mutation code.
|
|
1965
|
+
* New code should read `cardPlan.mutationPlan`.
|
|
1966
|
+
*/
|
|
1967
|
+
mutationPlan: WorkbenchMutationPlan;
|
|
1968
|
+
}
|
|
1969
|
+
export interface MaterializeResponse {
|
|
1970
|
+
summary: string;
|
|
1971
|
+
materializedBlocks: MaterializedBlock[];
|
|
1972
|
+
}
|
|
1973
|
+
export interface ActionLogItem {
|
|
1974
|
+
id: string;
|
|
1975
|
+
blockId: string;
|
|
1976
|
+
actionId: string;
|
|
1977
|
+
actionLabel: string;
|
|
1978
|
+
roleId: RoleId;
|
|
1979
|
+
userId: string;
|
|
1980
|
+
workspaceId: string;
|
|
1981
|
+
executedAt: string;
|
|
1982
|
+
result: string;
|
|
1983
|
+
}
|
|
1984
|
+
export interface WorkbenchRoleMeta {
|
|
1985
|
+
id: RoleId;
|
|
1986
|
+
label: string;
|
|
1987
|
+
shortLabel: string;
|
|
1988
|
+
description: string;
|
|
1989
|
+
orgName: string;
|
|
1990
|
+
scene: string;
|
|
1991
|
+
template: string;
|
|
1992
|
+
theme: string;
|
|
1993
|
+
heroTitle: string;
|
|
1994
|
+
heroDescription: string;
|
|
1995
|
+
accents: {
|
|
1996
|
+
chip: string;
|
|
1997
|
+
glow: string;
|
|
1998
|
+
border: string;
|
|
1999
|
+
};
|
|
2000
|
+
quickPrompts: string[];
|
|
2001
|
+
keyFocus: string[];
|
|
2002
|
+
}
|