@burdenoff/microfe-botmanor 2026.1106.1 → 2026.1109.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/dist/botlit/BotlitRoutes.d.ts +2 -0
- package/dist/botlit/BotlitRoutes.js +40 -37
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/BotmanorRoot.d.ts +3 -0
- package/dist/botlit/BotmanorRoot.js +1 -2
- package/dist/botlit/BotmanorRoot.js.map +1 -1
- package/dist/botlit/BotmanorRootInner.d.ts +3 -0
- package/dist/botlit/BotmanorRootInner.js +9 -10
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.d.ts +20 -0
- package/dist/botlit/components/AgentApprovalPanel.js +49 -50
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.d.ts +14 -0
- package/dist/botlit/components/AiOperationsPanel.js +253 -0
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -0
- package/dist/botlit/components/AssistantChannelPanel.d.ts +3 -0
- package/dist/botlit/components/AssistantChannelPanel.js +12 -13
- package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
- package/dist/botlit/components/AssistantRuntimeSetupPanel.d.ts +4 -0
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js +14 -14
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
- package/dist/botlit/components/AssistantWebsitePanel.d.ts +5 -0
- package/dist/botlit/components/AssistantWebsitePanel.js +15 -16
- package/dist/botlit/components/AssistantWebsitePanel.js.map +1 -1
- package/dist/botlit/components/Badge.d.ts +9 -0
- package/dist/botlit/components/Badge.js +1 -2
- package/dist/botlit/components/Badge.js.map +1 -1
- package/dist/botlit/components/Button.d.ts +10 -0
- package/dist/botlit/components/Button.js +1 -2
- package/dist/botlit/components/Button.js.map +1 -1
- package/dist/botlit/components/Card.d.ts +16 -0
- package/dist/botlit/components/Card.js +1 -2
- package/dist/botlit/components/Card.js.map +1 -1
- package/dist/botlit/components/ChannelSelectorSheet.d.ts +23 -0
- package/dist/botlit/components/ChannelSelectorSheet.js +1 -2
- package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
- package/dist/botlit/components/EmptyState.d.ts +12 -0
- package/dist/botlit/components/EmptyState.js +1 -2
- package/dist/botlit/components/EmptyState.js.map +1 -1
- package/dist/botlit/components/ErrorState.d.ts +10 -0
- package/dist/botlit/components/ErrorState.js +5 -6
- package/dist/botlit/components/ErrorState.js.map +1 -1
- package/dist/botlit/components/Input.d.ts +27 -0
- package/dist/botlit/components/Input.js +2 -3
- package/dist/botlit/components/Input.js.map +1 -1
- package/dist/botlit/components/KnowledgeSourceImportPanel.d.ts +3 -0
- package/dist/botlit/components/KnowledgeSourceImportPanel.js +12 -13
- package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
- package/dist/botlit/components/ModelRegistrationPanel.d.ts +5 -0
- package/dist/botlit/components/ModelRegistrationPanel.js +1 -2
- package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
- package/dist/botlit/components/PageLayout.d.ts +12 -0
- package/dist/botlit/components/PageLayout.js +1 -2
- package/dist/botlit/components/PageLayout.js.map +1 -1
- package/dist/botlit/components/QuotaExhaustedDialog.d.ts +9 -0
- package/dist/botlit/components/QuotaExhaustedDialog.js +1 -2
- package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.d.ts +2 -0
- package/dist/botlit/components/RetentionStatusPanel.js +18 -19
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/RouteLoader.d.ts +23 -0
- package/dist/botlit/components/RouteLoader.js +1 -2
- package/dist/botlit/components/RouteLoader.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.d.ts +12 -0
- package/dist/botlit/components/VersionHistoryPanel.js +23 -24
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/WorkspaceRequired.d.ts +18 -0
- package/dist/botlit/components/WorkspaceRequired.js +1 -2
- package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
- package/dist/botlit/components/index.d.ts +14 -0
- package/dist/botlit/hooks/index.d.ts +36 -0
- package/dist/botlit/hooks/index.js +15 -13
- package/dist/botlit/hooks/internal/mutationInput.d.ts +56 -0
- package/dist/botlit/hooks/internal/mutationInput.js +1 -2
- package/dist/botlit/hooks/internal/mutationInput.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +54 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +17 -19
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useA2A.d.ts +104 -0
- package/dist/botlit/hooks/useA2A.js +45 -45
- package/dist/botlit/hooks/useA2A.js.map +1 -1
- package/dist/botlit/hooks/useAgentApprovals.d.ts +62 -0
- package/dist/botlit/hooks/useAgentApprovals.js +38 -39
- package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
- package/dist/botlit/hooks/useAgents.d.ts +105 -0
- package/dist/botlit/hooks/useAgents.js +53 -54
- package/dist/botlit/hooks/useAgents.js.map +1 -1
- package/dist/botlit/hooks/useAiOperations.d.ts +95 -0
- package/dist/botlit/hooks/useAiOperations.js +154 -0
- package/dist/botlit/hooks/useAiOperations.js.map +1 -0
- package/dist/botlit/hooks/useAssistantChannels.d.ts +16 -0
- package/dist/botlit/hooks/useAssistantChannels.js +1 -2
- package/dist/botlit/hooks/useAssistantChannels.js.map +1 -1
- package/dist/botlit/hooks/useAssistantRuntimeSetup.d.ts +17 -0
- package/dist/botlit/hooks/useAssistantRuntimeSetup.js +1 -2
- package/dist/botlit/hooks/useAssistantRuntimeSetup.js.map +1 -1
- package/dist/botlit/hooks/useAssistantWebsites.d.ts +18 -0
- package/dist/botlit/hooks/useAssistantWebsites.js +1 -2
- package/dist/botlit/hooks/useAssistantWebsites.js.map +1 -1
- package/dist/botlit/hooks/useBotWorkflow.d.ts +22 -0
- package/dist/botlit/hooks/useBotWorkflow.js +1 -2
- package/dist/botlit/hooks/useBotWorkflow.js.map +1 -1
- package/dist/botlit/hooks/useBots.d.ts +68 -0
- package/dist/botlit/hooks/useBots.js +32 -33
- package/dist/botlit/hooks/useBots.js.map +1 -1
- package/dist/botlit/hooks/useBuckets.d.ts +57 -0
- package/dist/botlit/hooks/useBuckets.js +38 -39
- package/dist/botlit/hooks/useBuckets.js.map +1 -1
- package/dist/botlit/hooks/useChannels.d.ts +87 -0
- package/dist/botlit/hooks/useChannels.js +73 -73
- package/dist/botlit/hooks/useChannels.js.map +1 -1
- package/dist/botlit/hooks/useConversations.d.ts +42 -0
- package/dist/botlit/hooks/useConversations.js +1 -2
- package/dist/botlit/hooks/useConversations.js.map +1 -1
- package/dist/botlit/hooks/useExecutions.d.ts +87 -0
- package/dist/botlit/hooks/useExecutions.js +37 -37
- package/dist/botlit/hooks/useExecutions.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeBases.d.ts +79 -0
- package/dist/botlit/hooks/useKnowledgeBases.js +40 -39
- package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeSourceImports.d.ts +21 -0
- package/dist/botlit/hooks/useKnowledgeSourceImports.js +1 -2
- package/dist/botlit/hooks/useKnowledgeSourceImports.js.map +1 -1
- package/dist/botlit/hooks/useLLMProviders.d.ts +66 -0
- package/dist/botlit/hooks/useLLMProviders.js +25 -26
- package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
- package/dist/botlit/hooks/useMCPServers.d.ts +71 -0
- package/dist/botlit/hooks/useMCPServers.js +40 -38
- package/dist/botlit/hooks/useMCPServers.js.map +1 -1
- package/dist/botlit/hooks/usePolicies.d.ts +60 -0
- package/dist/botlit/hooks/usePolicies.js +49 -49
- package/dist/botlit/hooks/usePolicies.js.map +1 -1
- package/dist/botlit/hooks/usePromptTemplates.d.ts +88 -0
- package/dist/botlit/hooks/usePromptTemplates.js +57 -57
- package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
- package/dist/botlit/hooks/useRetention.d.ts +26 -0
- package/dist/botlit/hooks/useRetention.js +3 -3
- package/dist/botlit/hooks/useRetention.js.map +1 -1
- package/dist/botlit/hooks/useRetrievalProfiles.d.ts +75 -0
- package/dist/botlit/hooks/useRetrievalProfiles.js +47 -47
- package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
- package/dist/botlit/hooks/useSkills.d.ts +64 -0
- package/dist/botlit/hooks/useSkills.js +53 -53
- package/dist/botlit/hooks/useSkills.js.map +1 -1
- package/dist/botlit/hooks/useStore.d.ts +112 -0
- package/dist/botlit/hooks/useStore.js +55 -55
- package/dist/botlit/hooks/useStore.js.map +1 -1
- package/dist/botlit/hooks/useUserPlatformConnection.d.ts +80 -0
- package/dist/botlit/hooks/useUserPlatformConnection.js +19 -19
- package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
- package/dist/botlit/index.d.ts +16 -0
- package/dist/botlit/index.js +12 -11
- package/dist/botlit/pages/A2AAgentDetailPage.d.ts +6 -0
- package/dist/botlit/pages/A2AAgentDetailPage.js +171 -178
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.d.ts +2 -0
- package/dist/botlit/pages/A2ARegistryPage.js +25 -26
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.d.ts +2 -0
- package/dist/botlit/pages/AgentApprovalsPage.js +32 -33
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.d.ts +2 -0
- package/dist/botlit/pages/AgentBuilderPage.js +59 -60
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.d.ts +2 -0
- package/dist/botlit/pages/AgentDetailPage.js +202 -190
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.d.ts +2 -0
- package/dist/botlit/pages/AgentsListPage.js +71 -72
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.d.ts +2 -0
- package/dist/botlit/pages/AiOperationsPage.js +165 -0
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -0
- package/dist/botlit/pages/BotChannelsTab.d.ts +7 -0
- package/dist/botlit/pages/BotChannelsTab.js +120 -122
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.d.ts +7 -0
- package/dist/botlit/pages/BotDetailPage.js +246 -237
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.d.ts +11 -0
- package/dist/botlit/pages/BotWorkflowTab.js +20 -21
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.d.ts +2 -0
- package/dist/botlit/pages/BotsListPage.js +52 -53
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.d.ts +2 -0
- package/dist/botlit/pages/BucketsPage.js +260 -261
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.d.ts +6 -0
- package/dist/botlit/pages/ChannelDetailPage.js +97 -96
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelRoutesPage.d.ts +2 -0
- package/dist/botlit/pages/ChannelRoutesPage.js +23 -24
- package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.d.ts +2 -0
- package/dist/botlit/pages/ChannelsPage.js +44 -45
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.d.ts +1 -0
- package/dist/botlit/pages/ChatPage.js +10 -11
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/ConversationDetailPage.d.ts +2 -0
- package/dist/botlit/pages/ConversationsPage.d.ts +2 -0
- package/dist/botlit/pages/DashboardPage.d.ts +2 -0
- package/dist/botlit/pages/DashboardPage.js +37 -38
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.d.ts +2 -0
- package/dist/botlit/pages/ExecutionDetailPage.js +47 -48
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.d.ts +2 -0
- package/dist/botlit/pages/ExecutionsPage.js +72 -70
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.d.ts +2 -0
- package/dist/botlit/pages/InstalledPackagesPage.js +77 -78
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.d.ts +6 -0
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +171 -181
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.d.ts +2 -0
- package/dist/botlit/pages/KnowledgeBasesPage.js +30 -31
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.d.ts +6 -0
- package/dist/botlit/pages/MCPServerDetailPage.js +82 -83
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.d.ts +2 -0
- package/dist/botlit/pages/MCPServersPage.js +54 -55
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.d.ts +2 -0
- package/dist/botlit/pages/PoliciesPage.js +25 -26
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.d.ts +6 -0
- package/dist/botlit/pages/PolicyDetailPage.js +257 -259
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.d.ts +2 -0
- package/dist/botlit/pages/PromptStudioPage.js +35 -35
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +6 -0
- package/dist/botlit/pages/PromptTemplateDetailPage.js +363 -362
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.d.ts +2 -0
- package/dist/botlit/pages/PromptTemplatesPage.js +26 -27
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.d.ts +6 -0
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +150 -158
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.d.ts +2 -0
- package/dist/botlit/pages/RetrievalProfilesPage.js +24 -25
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.d.ts +2 -0
- package/dist/botlit/pages/SettingsPage.js +124 -125
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.d.ts +6 -0
- package/dist/botlit/pages/SkillDetailPage.js +216 -217
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.d.ts +2 -0
- package/dist/botlit/pages/SkillsPage.js +24 -25
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.d.ts +2 -0
- package/dist/botlit/pages/StorePackageDetailPage.js +38 -39
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.d.ts +2 -0
- package/dist/botlit/pages/StorePage.js +135 -136
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/index.d.ts +39 -0
- package/dist/botlit/permissions/PermissionRequired.d.ts +20 -0
- package/dist/botlit/permissions/PermissionRequired.js +10 -11
- package/dist/botlit/permissions/PermissionRequired.js.map +1 -1
- package/dist/botlit/permissions/botmanorPermissions.d.ts +82 -0
- package/dist/botlit/permissions/botmanorPermissions.js +1 -2
- package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
- package/dist/botlit/permissions/index.d.ts +7 -0
- package/dist/botlit/permissions/index.js +4 -3
- package/dist/botlit/permissions/useBotmanorPermissions.d.ts +41 -0
- package/dist/botlit/permissions/useBotmanorPermissions.js +1 -2
- package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
- package/dist/botlit/providers/BotlitProvider.d.ts +14 -0
- package/dist/botlit/providers/BotlitProvider.js +3 -3
- package/dist/botlit/providers/BotlitProvider.js.map +1 -1
- package/dist/botlit/store/botlitStore.d.ts +85 -0
- package/dist/botlit/store/botlitStore.js +1 -2
- package/dist/botlit/store/botlitStore.js.map +1 -1
- package/dist/botlit/store/renamedKeyStorage.d.ts +13 -0
- package/dist/botlit/store/renamedKeyStorage.js +1 -2
- package/dist/botlit/store/renamedKeyStorage.js.map +1 -1
- package/dist/botlit/types/index.d.ts +1008 -0
- package/dist/botlit/utils/cn.d.ts +2 -0
- package/dist/botlit/utils/cn.js +1 -2
- package/dist/botlit/utils/cn.js.map +1 -1
- package/dist/botlit/utils/embedding-models.d.ts +9 -0
- package/dist/botlit/utils/embedding-models.js +1 -2
- package/dist/botlit/utils/embedding-models.js.map +1 -1
- package/dist/botlit/utils/errors.d.ts +19 -0
- package/dist/botlit/utils/errors.js +1 -2
- package/dist/botlit/utils/errors.js.map +1 -1
- package/dist/botlit/utils/formatters.d.ts +38 -0
- package/dist/botlit/utils/formatters.js +0 -1
- package/dist/botlit/utils/formatters.js.map +1 -1
- package/dist/botlit/utils/navigation.d.ts +19 -0
- package/dist/botlit/utils/navigation.js +1 -2
- package/dist/botlit/utils/navigation.js.map +1 -1
- package/dist/botlit/utils/policyConfig.d.ts +68 -0
- package/dist/botlit/utils/policyConfig.js +2 -3
- package/dist/botlit/utils/policyConfig.js.map +1 -1
- package/dist/botlit/utils/unions.d.ts +25 -0
- package/dist/botlit/utils/unions.js +1 -2
- package/dist/botlit/utils/unions.js.map +1 -1
- package/dist/dev/App.d.ts +2 -0
- package/dist/dev/main.d.ts +0 -0
- package/dist/generated/global-operations.d.ts +197 -0
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +27678 -0
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +5489 -0
- package/dist/generated/wspace-operations.js +172 -75
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +152017 -0
- package/dist/generated/wspace-types.js +6 -5
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/shared/hooks/useTr.d.ts +16 -0
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/stories/Badge.stories.d.ts +11 -0
- package/dist/stories/Button.stories.d.ts +13 -0
- package/dist/stories/EmptyState.stories.d.ts +8 -0
- package/dist/stories/StatusBadge.stories.d.ts +9 -0
- package/dist/test/fixtures.d.ts +39 -0
- package/dist/test/happydom.d.ts +1 -0
- package/dist/test/renderPage.d.ts +18 -0
- package/dist/test/setup.d.ts +9 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +87 -60
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BotManor Type Definitions
|
|
3
|
+
* @module botlit/types
|
|
4
|
+
*
|
|
5
|
+
* Based on: ~/products/prompts/epics/fe/botlit-new-specs.md
|
|
6
|
+
* Updated: 2026-01-21
|
|
7
|
+
*/
|
|
8
|
+
export interface NavItem {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
path: string;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
order?: number;
|
|
14
|
+
group?: string;
|
|
15
|
+
badge?: number;
|
|
16
|
+
/** When true, path is external (different microfe or full URL) - use window.location instead of navigate */
|
|
17
|
+
external?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface FooterItem {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: 'status' | 'action' | 'info';
|
|
23
|
+
order?: number;
|
|
24
|
+
section?: 'left' | 'center' | 'right';
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface User {
|
|
28
|
+
id: string;
|
|
29
|
+
email: string;
|
|
30
|
+
/** Full name (display name) */
|
|
31
|
+
name?: string;
|
|
32
|
+
firstName?: string;
|
|
33
|
+
lastName?: string;
|
|
34
|
+
avatar?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface BotmanorRootProps {
|
|
37
|
+
basePath: string;
|
|
38
|
+
navigate: (path: string) => void;
|
|
39
|
+
currentUser?: User;
|
|
40
|
+
tenantId?: string;
|
|
41
|
+
workspaceId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Workspace-specific API gateway URL (e.g. http://localhost:4003).
|
|
44
|
+
* Used for /workspaces/graphql calls.
|
|
45
|
+
*/
|
|
46
|
+
apiGatewayUrl?: string;
|
|
47
|
+
authToken?: string;
|
|
48
|
+
workspaceToken?: string;
|
|
49
|
+
productId?: string;
|
|
50
|
+
productName?: string;
|
|
51
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
52
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
53
|
+
onBotSelect?: (bot: BotSummary) => void;
|
|
54
|
+
onAgentSelect?: (agent: AgentSummary) => void;
|
|
55
|
+
}
|
|
56
|
+
export type Visibility = 'PRIVATE' | 'WORKSPACE' | 'PUBLIC';
|
|
57
|
+
export type EntityStatus = 'DRAFT' | 'ACTIVE' | 'DEPRECATED' | 'ARCHIVED';
|
|
58
|
+
export type Environment = 'DEV' | 'STAGING' | 'PROD';
|
|
59
|
+
export type RoutingStrategy = 'SINGLE_AGENT' | 'INTENT_ROUTER' | 'A2A_DISPATCH' | 'ROUTER_AGENT';
|
|
60
|
+
export type PromptMode = 'INLINE' | 'TEMPLATE_REF';
|
|
61
|
+
export type KBType = 'MILVUS' | 'QDRANT' | 'PINECONE' | 'WEAVIATE' | 'PGVECTOR' | 'ELASTIC_VECTOR' | 'CUSTOM';
|
|
62
|
+
export type RetrievalMode = 'VECTOR' | 'HYBRID' | 'BM25_ONLY';
|
|
63
|
+
export type RerankerMode = 'OFF' | 'ON';
|
|
64
|
+
export type MCPTransport = 'HTTP_JSON' | 'JSON_RPC' | 'SSE' | 'CUSTOM';
|
|
65
|
+
export type MCPAuthMethod = 'API_KEY' | 'OAUTH' | 'CUSTOM_HEADER' | 'NONE';
|
|
66
|
+
export type ToolRiskLevel = 'LOW' | 'MEDIUM' | 'HIGH';
|
|
67
|
+
export type MCPServerStatus = 'HEALTHY' | 'DEGRADED' | 'UNAVAILABLE' | 'CONNECTING';
|
|
68
|
+
export type TrustLevel = 'UNVERIFIED' | 'VERIFIED_PUBLISHER' | 'INTERNAL';
|
|
69
|
+
export type ChannelType = 'WEB_WIDGET' | 'SLACK' | 'TEAMS' | 'DISCORD' | 'WHATSAPP' | 'WEBHOOK' | 'CUSTOM';
|
|
70
|
+
export type LLMProviderType = 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'AZURE_OPENAI' | 'OPENAI_COMPAT' | 'CUSTOM';
|
|
71
|
+
export type PolicyType = 'CONTENT' | 'TOOL' | 'DATA' | 'RESPONSE' | 'BUDGET' | 'RATE_LIMIT' | 'RETENTION';
|
|
72
|
+
export type PackageKind = 'APP' | 'AGENT' | 'MCP_PACK' | 'PROMPT_TEMPLATE' | 'PROMPT' | 'SKILL' | 'RETRIEVAL_PROFILE' | 'POLICY_BUNDLE' | 'CHANNEL_TEMPLATE' | 'A2A_AGENT' | 'KB_TEMPLATE' | 'KNOWLEDGE_BASE' | 'INTEGRATION' | 'TEMPLATE' | 'TOOL' | 'WORKFLOW';
|
|
73
|
+
export type InstallMode = 'LINKED' | 'FORKED';
|
|
74
|
+
export type ExecutionStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'TIMEOUT' | 'CANCELLED';
|
|
75
|
+
export type ReplayMode = 'REPLAY_SAME_BUNDLE' | 'REPLAY_WITH_LATEST_STORE' | 'REPLAY_FROZEN_RETRIEVAL' | 'REPLAY_LIVE_RETRIEVAL';
|
|
76
|
+
export type ViewMode = 'grid' | 'list' | 'kanban';
|
|
77
|
+
export type MessageRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
78
|
+
export interface BaseEntity {
|
|
79
|
+
id: string;
|
|
80
|
+
workspaceId: string;
|
|
81
|
+
name: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
tags: string[];
|
|
84
|
+
bucketId?: string;
|
|
85
|
+
visibility: Visibility;
|
|
86
|
+
status: EntityStatus;
|
|
87
|
+
labels?: string[];
|
|
88
|
+
revision: number;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
createdBy: string;
|
|
92
|
+
updatedBy: string;
|
|
93
|
+
}
|
|
94
|
+
export interface Bot extends BaseEntity {
|
|
95
|
+
slug: string;
|
|
96
|
+
icon?: string;
|
|
97
|
+
routing: BotRouting;
|
|
98
|
+
assignedAgents: AssignedAgent[];
|
|
99
|
+
channelBindings: ChannelRouteRef[];
|
|
100
|
+
policyBindings?: PolicyBindingSet;
|
|
101
|
+
embedConfigId?: string;
|
|
102
|
+
releaseTracks: ReleaseTrack[];
|
|
103
|
+
}
|
|
104
|
+
export interface BotSummary {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
slug: string;
|
|
108
|
+
description?: string;
|
|
109
|
+
icon?: string;
|
|
110
|
+
status: EntityStatus;
|
|
111
|
+
visibility: Visibility;
|
|
112
|
+
agentCount: number;
|
|
113
|
+
channelCount: number;
|
|
114
|
+
executionCount: number;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
}
|
|
118
|
+
export interface BotRouting {
|
|
119
|
+
strategy: RoutingStrategy;
|
|
120
|
+
defaultAgentId?: string;
|
|
121
|
+
rules: RoutingRule[];
|
|
122
|
+
}
|
|
123
|
+
export interface RoutingRule {
|
|
124
|
+
id: string;
|
|
125
|
+
match: RoutingMatch;
|
|
126
|
+
action: RoutingAction;
|
|
127
|
+
constraints?: RoutingConstraints;
|
|
128
|
+
}
|
|
129
|
+
export interface RoutingMatch {
|
|
130
|
+
intent?: string;
|
|
131
|
+
keywords?: string[];
|
|
132
|
+
regex?: string;
|
|
133
|
+
channelType?: ChannelType;
|
|
134
|
+
channelLocationId?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface RoutingAction {
|
|
137
|
+
agentId?: string;
|
|
138
|
+
a2aTargetId?: string;
|
|
139
|
+
fallbackChain?: string[];
|
|
140
|
+
}
|
|
141
|
+
export interface RoutingConstraints {
|
|
142
|
+
maxHops?: number;
|
|
143
|
+
budgetPolicyId?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface AssignedAgent {
|
|
146
|
+
agentId: string;
|
|
147
|
+
role?: string;
|
|
148
|
+
weight?: number;
|
|
149
|
+
isDefault?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export interface ChannelRouteRef {
|
|
152
|
+
routeId: string;
|
|
153
|
+
connectorId: string;
|
|
154
|
+
locationId: string;
|
|
155
|
+
}
|
|
156
|
+
export interface ReleaseTrack {
|
|
157
|
+
environment: Environment;
|
|
158
|
+
version: string;
|
|
159
|
+
resolvedBundleHash?: string;
|
|
160
|
+
promotedAt?: string;
|
|
161
|
+
promotedBy?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface Agent extends BaseEntity {
|
|
164
|
+
slug: string;
|
|
165
|
+
avatar?: string;
|
|
166
|
+
prompt: AgentPrompt;
|
|
167
|
+
llm: AgentLLM;
|
|
168
|
+
tools: AgentTools;
|
|
169
|
+
knowledge: AgentKnowledge;
|
|
170
|
+
memoryPolicyId?: string;
|
|
171
|
+
a2a?: AgentA2AConfig;
|
|
172
|
+
capabilities: AgentCapabilities;
|
|
173
|
+
policyBindings?: PolicyBindingSet;
|
|
174
|
+
}
|
|
175
|
+
export interface AgentSummary {
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
slug: string;
|
|
179
|
+
description?: string;
|
|
180
|
+
avatar?: string;
|
|
181
|
+
status: EntityStatus;
|
|
182
|
+
visibility: Visibility;
|
|
183
|
+
executionCount: number;
|
|
184
|
+
successRate?: number;
|
|
185
|
+
createdAt: string;
|
|
186
|
+
updatedAt: string;
|
|
187
|
+
}
|
|
188
|
+
export interface AgentPrompt {
|
|
189
|
+
mode: PromptMode;
|
|
190
|
+
templateId?: string;
|
|
191
|
+
inlinePrompt?: string;
|
|
192
|
+
systemDirectives?: string[];
|
|
193
|
+
}
|
|
194
|
+
export interface AgentLLM {
|
|
195
|
+
modelPolicyId: string;
|
|
196
|
+
structuredOutputSchemaId?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface AgentTools {
|
|
199
|
+
toolPolicyId?: string;
|
|
200
|
+
mcpConnections: string[];
|
|
201
|
+
}
|
|
202
|
+
export interface AgentKnowledge {
|
|
203
|
+
kbBindings: KBBinding[];
|
|
204
|
+
}
|
|
205
|
+
export interface KBBinding {
|
|
206
|
+
kbId: string;
|
|
207
|
+
retrievalProfileId: string;
|
|
208
|
+
priority: number;
|
|
209
|
+
routingRule?: string;
|
|
210
|
+
constraints?: KBConstraints;
|
|
211
|
+
}
|
|
212
|
+
export interface KBConstraints {
|
|
213
|
+
labelAllowlist?: string[];
|
|
214
|
+
labelDenylist?: string[];
|
|
215
|
+
}
|
|
216
|
+
export interface AgentA2AConfig {
|
|
217
|
+
enabled: boolean;
|
|
218
|
+
a2aProfileId?: string;
|
|
219
|
+
}
|
|
220
|
+
export interface AgentCapabilities {
|
|
221
|
+
supportsTools: boolean;
|
|
222
|
+
supportsVision: boolean;
|
|
223
|
+
supportsStreaming: boolean;
|
|
224
|
+
supportsStructuredOutput: boolean;
|
|
225
|
+
multilingual: boolean;
|
|
226
|
+
}
|
|
227
|
+
export interface KnowledgeBase extends BaseEntity {
|
|
228
|
+
type: KBType;
|
|
229
|
+
connection: KBConnection;
|
|
230
|
+
target: KBTarget;
|
|
231
|
+
defaults: KBDefaults;
|
|
232
|
+
fluidgrids: KBFluidgridsInfo;
|
|
233
|
+
}
|
|
234
|
+
export interface KnowledgeBaseSummary {
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
type: KBType;
|
|
239
|
+
status: EntityStatus;
|
|
240
|
+
documentCount: number;
|
|
241
|
+
lastIngestedAt?: string;
|
|
242
|
+
createdAt: string;
|
|
243
|
+
}
|
|
244
|
+
export interface KBConnection {
|
|
245
|
+
connectionRefId: string;
|
|
246
|
+
endpoint?: string;
|
|
247
|
+
region?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface KBTarget {
|
|
250
|
+
namespace?: string;
|
|
251
|
+
indexName?: string;
|
|
252
|
+
collectionName?: string;
|
|
253
|
+
}
|
|
254
|
+
export interface KBDefaults {
|
|
255
|
+
defaultRetrievalProfileId?: string;
|
|
256
|
+
labels: string[];
|
|
257
|
+
accessPolicyId?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface KBFluidgridsInfo {
|
|
260
|
+
ingestionFlowRefs: string[];
|
|
261
|
+
lastIngestedAt?: string;
|
|
262
|
+
lastIngestionStatus?: 'SUCCESS' | 'FAILED' | 'RUNNING';
|
|
263
|
+
lastErrorSummary?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface RetrievalProfile extends BaseEntity {
|
|
266
|
+
strategy: RetrievalStrategy;
|
|
267
|
+
grounding: GroundingPolicy;
|
|
268
|
+
thresholds: RetrievalThresholds;
|
|
269
|
+
evaluation?: RetrievalEvaluation;
|
|
270
|
+
}
|
|
271
|
+
export interface RetrievalProfileSummary {
|
|
272
|
+
id: string;
|
|
273
|
+
name: string;
|
|
274
|
+
description?: string;
|
|
275
|
+
status: EntityStatus;
|
|
276
|
+
strategyMode: RetrievalMode;
|
|
277
|
+
topK: number;
|
|
278
|
+
citationsRequired: boolean;
|
|
279
|
+
createdAt: string;
|
|
280
|
+
}
|
|
281
|
+
export interface RetrievalStrategy {
|
|
282
|
+
mode: RetrievalMode;
|
|
283
|
+
topK: number;
|
|
284
|
+
hybridWeights?: {
|
|
285
|
+
bm25: number;
|
|
286
|
+
vector: number;
|
|
287
|
+
};
|
|
288
|
+
reranker: RerankerMode;
|
|
289
|
+
rerankerModelPolicyId?: string;
|
|
290
|
+
queryRewrite: RerankerMode;
|
|
291
|
+
multiHop: RerankerMode;
|
|
292
|
+
depth?: number;
|
|
293
|
+
}
|
|
294
|
+
export interface GroundingPolicy {
|
|
295
|
+
citationsRequired: boolean;
|
|
296
|
+
minSources: number;
|
|
297
|
+
snippetMaxChars: number;
|
|
298
|
+
showSources: boolean;
|
|
299
|
+
citationFormatTemplate: string;
|
|
300
|
+
}
|
|
301
|
+
export interface RetrievalThresholds {
|
|
302
|
+
minRelevanceScore?: number;
|
|
303
|
+
noAnswerIfBelowThreshold: boolean;
|
|
304
|
+
}
|
|
305
|
+
export interface RetrievalEvaluation {
|
|
306
|
+
testQueries: TestQuery[];
|
|
307
|
+
}
|
|
308
|
+
export interface TestQuery {
|
|
309
|
+
query: string;
|
|
310
|
+
expectedDocIds: string[];
|
|
311
|
+
expectedChunkIds?: string[];
|
|
312
|
+
}
|
|
313
|
+
export interface MCPServer extends BaseEntity {
|
|
314
|
+
transport: MCPTransport;
|
|
315
|
+
baseUrl: string;
|
|
316
|
+
auth: MCPAuth;
|
|
317
|
+
tools: MCPTool[];
|
|
318
|
+
resources?: MCPResource[];
|
|
319
|
+
health?: MCPHealth;
|
|
320
|
+
}
|
|
321
|
+
export interface MCPServerSummary {
|
|
322
|
+
id: string;
|
|
323
|
+
name: string;
|
|
324
|
+
description?: string;
|
|
325
|
+
transport: MCPTransport;
|
|
326
|
+
status: EntityStatus;
|
|
327
|
+
healthStatus?: MCPServerStatus;
|
|
328
|
+
toolCount: number;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
}
|
|
331
|
+
export interface MCPAuth {
|
|
332
|
+
method: MCPAuthMethod;
|
|
333
|
+
secretRefId?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface MCPTool {
|
|
336
|
+
toolId: string;
|
|
337
|
+
name: string;
|
|
338
|
+
description: string;
|
|
339
|
+
inputSchema: JSONSchema;
|
|
340
|
+
outputSchema?: JSONSchema;
|
|
341
|
+
riskLevel: ToolRiskLevel;
|
|
342
|
+
tags: string[];
|
|
343
|
+
}
|
|
344
|
+
export interface MCPResource {
|
|
345
|
+
uri: string;
|
|
346
|
+
name: string;
|
|
347
|
+
description?: string;
|
|
348
|
+
mimeType?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface MCPHealth {
|
|
351
|
+
lastTestTime?: string;
|
|
352
|
+
status: MCPServerStatus;
|
|
353
|
+
latencyMs?: number;
|
|
354
|
+
error?: string;
|
|
355
|
+
}
|
|
356
|
+
export interface JSONSchema {
|
|
357
|
+
type: string;
|
|
358
|
+
properties?: Record<string, JSONSchemaProperty>;
|
|
359
|
+
required?: string[];
|
|
360
|
+
description?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface JSONSchemaProperty {
|
|
363
|
+
type: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
enum?: string[];
|
|
366
|
+
default?: unknown;
|
|
367
|
+
items?: JSONSchemaProperty;
|
|
368
|
+
}
|
|
369
|
+
export interface A2AAgent extends BaseEntity {
|
|
370
|
+
agentCard: AgentCard;
|
|
371
|
+
wellKnownUrl?: string;
|
|
372
|
+
trustLevel: TrustLevel;
|
|
373
|
+
entitlements: A2AEntitlement[];
|
|
374
|
+
}
|
|
375
|
+
export interface A2AAgentSummary {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
description?: string;
|
|
379
|
+
status: EntityStatus;
|
|
380
|
+
trustLevel: TrustLevel;
|
|
381
|
+
skillCount: number;
|
|
382
|
+
wellKnownUrl?: string;
|
|
383
|
+
createdAt: string;
|
|
384
|
+
}
|
|
385
|
+
export interface AgentCard {
|
|
386
|
+
name: string;
|
|
387
|
+
description: string;
|
|
388
|
+
url: string;
|
|
389
|
+
provider?: {
|
|
390
|
+
organization: string;
|
|
391
|
+
url?: string;
|
|
392
|
+
};
|
|
393
|
+
version: string;
|
|
394
|
+
documentationUrl?: string;
|
|
395
|
+
capabilities: A2ACapabilities;
|
|
396
|
+
authentication: A2AAuthentication;
|
|
397
|
+
defaultInputModes: string[];
|
|
398
|
+
defaultOutputModes: string[];
|
|
399
|
+
skills: A2ASkill[];
|
|
400
|
+
}
|
|
401
|
+
export interface A2ACapabilities {
|
|
402
|
+
streaming?: boolean;
|
|
403
|
+
pushNotifications?: boolean;
|
|
404
|
+
stateTransitionHistory?: boolean;
|
|
405
|
+
}
|
|
406
|
+
export interface A2AAuthentication {
|
|
407
|
+
schemes: string[];
|
|
408
|
+
credentials?: string;
|
|
409
|
+
}
|
|
410
|
+
export interface A2ASkill {
|
|
411
|
+
id: string;
|
|
412
|
+
name: string;
|
|
413
|
+
description: string;
|
|
414
|
+
tags?: string[];
|
|
415
|
+
examples?: string[];
|
|
416
|
+
inputModes?: string[];
|
|
417
|
+
outputModes?: string[];
|
|
418
|
+
}
|
|
419
|
+
export interface A2AEntitlement {
|
|
420
|
+
id: string;
|
|
421
|
+
sourceType: 'app' | 'agent';
|
|
422
|
+
sourceId: string;
|
|
423
|
+
allowedSkills: string[];
|
|
424
|
+
disallowedSkills: string[];
|
|
425
|
+
maxHops?: number;
|
|
426
|
+
budgetPolicyId?: string;
|
|
427
|
+
}
|
|
428
|
+
export interface ChannelConnector extends BaseEntity {
|
|
429
|
+
type: ChannelType;
|
|
430
|
+
credentialsRefId?: string;
|
|
431
|
+
defaultPolicyBindings?: PolicyBindingSet;
|
|
432
|
+
webWidgetConfig?: WebWidgetConfig;
|
|
433
|
+
}
|
|
434
|
+
export interface ChannelConnectorSummary {
|
|
435
|
+
id: string;
|
|
436
|
+
name: string;
|
|
437
|
+
description?: string;
|
|
438
|
+
type: ChannelType;
|
|
439
|
+
status: EntityStatus;
|
|
440
|
+
routeCount: number;
|
|
441
|
+
createdAt: string;
|
|
442
|
+
}
|
|
443
|
+
export interface ChannelRoute {
|
|
444
|
+
id: string;
|
|
445
|
+
workspaceId: string;
|
|
446
|
+
connectorId: string;
|
|
447
|
+
locationId: string;
|
|
448
|
+
locationName?: string;
|
|
449
|
+
botId: string;
|
|
450
|
+
botName?: string;
|
|
451
|
+
policyBindings?: PolicyBindingSet;
|
|
452
|
+
formatPolicyId?: string;
|
|
453
|
+
routingOverrides?: RoutingRule[];
|
|
454
|
+
revision: number;
|
|
455
|
+
createdAt: string;
|
|
456
|
+
updatedAt: string;
|
|
457
|
+
}
|
|
458
|
+
export interface WebWidgetConfig {
|
|
459
|
+
allowedOrigins: string[];
|
|
460
|
+
theme: WidgetTheme;
|
|
461
|
+
starterPrompts: string[];
|
|
462
|
+
handoffRules: HandoffRule[];
|
|
463
|
+
}
|
|
464
|
+
export interface WidgetTheme {
|
|
465
|
+
logoAssetRef?: string;
|
|
466
|
+
primaryColor: string;
|
|
467
|
+
backgroundColor?: string;
|
|
468
|
+
fontFamily: string;
|
|
469
|
+
}
|
|
470
|
+
export interface HandoffRule {
|
|
471
|
+
intent: string;
|
|
472
|
+
action: 'escalate' | 'transfer' | 'notify';
|
|
473
|
+
target?: string;
|
|
474
|
+
}
|
|
475
|
+
export interface PolicyBindingSet {
|
|
476
|
+
contentPolicyId?: string;
|
|
477
|
+
toolPolicyId?: string;
|
|
478
|
+
dataPolicyId?: string;
|
|
479
|
+
responsePolicyId?: string;
|
|
480
|
+
budgetPolicyId?: string;
|
|
481
|
+
rateLimitPolicyId?: string;
|
|
482
|
+
retentionPolicyId?: string;
|
|
483
|
+
}
|
|
484
|
+
export interface Policy extends BaseEntity {
|
|
485
|
+
type: PolicyType;
|
|
486
|
+
config: PolicyConfig;
|
|
487
|
+
}
|
|
488
|
+
export interface PolicySummary {
|
|
489
|
+
id: string;
|
|
490
|
+
name: string;
|
|
491
|
+
description?: string;
|
|
492
|
+
type: PolicyType;
|
|
493
|
+
status: EntityStatus;
|
|
494
|
+
createdAt: string;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Policy config shapes. Every key below is enforced at runtime by the BotManor
|
|
498
|
+
* service (BOFF-9683); keys the runtime ignores are intentionally not modelled.
|
|
499
|
+
* DATA policies have no runtime evaluator, so stored rows of that type carry
|
|
500
|
+
* free-form legacy config.
|
|
501
|
+
*/
|
|
502
|
+
export type PolicyConfig = ContentPolicyConfig | ToolPolicyConfig | ResponsePolicyConfig | BudgetPolicyConfig | RateLimitPolicyConfig | RetentionPolicyConfig | LegacyPolicyConfig;
|
|
503
|
+
export interface ContentPolicyConfig {
|
|
504
|
+
/** Block SSN, credit-card and email shaped text. */
|
|
505
|
+
piiDetection?: boolean;
|
|
506
|
+
/** Case-insensitive substrings that block a message. */
|
|
507
|
+
blockedKeywords?: string[];
|
|
508
|
+
/** Case-insensitive regular expressions that block a message. */
|
|
509
|
+
blockedPatterns?: string[];
|
|
510
|
+
/** Alias of `blockedPatterns` written by earlier editor versions. */
|
|
511
|
+
customPatterns?: string[];
|
|
512
|
+
}
|
|
513
|
+
export interface ToolPolicyConfig {
|
|
514
|
+
/** MCP tool names allowed to run; an entry ending in `*` allows a prefix. Empty = no restriction. */
|
|
515
|
+
allowedTools?: string[];
|
|
516
|
+
/** MCP tool names that may never run; a deny always wins. */
|
|
517
|
+
deniedTools?: string[];
|
|
518
|
+
/** Highest MCP tool risk level allowed to run. */
|
|
519
|
+
maxToolRiskLevel?: 'LOW' | 'MEDIUM' | 'HIGH';
|
|
520
|
+
/** Lowest registry trust level an external A2A agent needs. */
|
|
521
|
+
a2aMinTrustLevel?: 'UNVERIFIED' | 'VERIFIED_PUBLISHER' | 'INTERNAL';
|
|
522
|
+
limits?: {
|
|
523
|
+
/** Tool calls (MCP and delegation) allowed in one agent turn. */
|
|
524
|
+
maxCallsPerExecution?: number;
|
|
525
|
+
/** Request timeout for each MCP tool call. */
|
|
526
|
+
timeoutSeconds?: number;
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
export interface ResponsePolicyConfig {
|
|
530
|
+
/** Model-usage allowlist; an entry ending in `*` allows a model-id prefix. */
|
|
531
|
+
allowedModels?: string[];
|
|
532
|
+
/** Provider types (e.g. OPENAI, AWS_BEDROCK) allowed to generate responses. */
|
|
533
|
+
allowedProviders?: string[];
|
|
534
|
+
}
|
|
535
|
+
export interface BudgetPolicyConfig {
|
|
536
|
+
/** Tokens one agent may use per UTC day. */
|
|
537
|
+
maxTokensPerDay?: number;
|
|
538
|
+
/** Cap on the max output tokens of every model call. */
|
|
539
|
+
maxTokensPerExecution?: number;
|
|
540
|
+
}
|
|
541
|
+
export interface RateLimitPolicyConfig {
|
|
542
|
+
/** Every window is counted per agent. */
|
|
543
|
+
limits?: {
|
|
544
|
+
requestsPerMinute?: number;
|
|
545
|
+
requestsPerHour?: number;
|
|
546
|
+
tokensPerMinute?: number;
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Retention periods enforced hourly by the BotManor retention job (BOFF-9661).
|
|
551
|
+
* The shortest period of each class across ACTIVE policies applies.
|
|
552
|
+
*/
|
|
553
|
+
export interface RetentionPolicyConfig {
|
|
554
|
+
/** Days after a run ends that execution and agent-message payloads are kept (0..3650). */
|
|
555
|
+
executionDataRetentionDays?: number;
|
|
556
|
+
/** Days an assistant conversation is kept before it is erased (1..3650). */
|
|
557
|
+
conversationRetentionDays?: number;
|
|
558
|
+
}
|
|
559
|
+
/** Config stored on a DATA policy (no runtime evaluator). */
|
|
560
|
+
export type LegacyPolicyConfig = Record<string, unknown>;
|
|
561
|
+
export interface Skill extends BaseEntity {
|
|
562
|
+
promptTemplateId?: string;
|
|
563
|
+
toolPolicyId?: string;
|
|
564
|
+
toolPackDeps: string[];
|
|
565
|
+
retrievalProfileId?: string;
|
|
566
|
+
recommendedPolicies: string[];
|
|
567
|
+
capabilityFlags: SkillCapabilities;
|
|
568
|
+
}
|
|
569
|
+
export interface SkillSummary {
|
|
570
|
+
id: string;
|
|
571
|
+
name: string;
|
|
572
|
+
description?: string;
|
|
573
|
+
status: EntityStatus;
|
|
574
|
+
hasPrompt: boolean;
|
|
575
|
+
hasTools: boolean;
|
|
576
|
+
hasKnowledge: boolean;
|
|
577
|
+
createdAt: string;
|
|
578
|
+
}
|
|
579
|
+
export interface SkillCapabilities {
|
|
580
|
+
requiresTools: boolean;
|
|
581
|
+
requiresKnowledge: boolean;
|
|
582
|
+
requiresA2A: boolean;
|
|
583
|
+
}
|
|
584
|
+
export interface PromptTemplate extends BaseEntity {
|
|
585
|
+
slug: string;
|
|
586
|
+
version: string;
|
|
587
|
+
templateText: string;
|
|
588
|
+
variables: PromptVariable[];
|
|
589
|
+
exampleInputs: Record<string, unknown>[];
|
|
590
|
+
}
|
|
591
|
+
export interface PromptTemplateSummary {
|
|
592
|
+
id: string;
|
|
593
|
+
name: string;
|
|
594
|
+
slug: string;
|
|
595
|
+
description?: string;
|
|
596
|
+
status: EntityStatus;
|
|
597
|
+
version: string;
|
|
598
|
+
variableCount: number;
|
|
599
|
+
createdAt: string;
|
|
600
|
+
}
|
|
601
|
+
export interface PromptVariable {
|
|
602
|
+
name: string;
|
|
603
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
604
|
+
description?: string;
|
|
605
|
+
required: boolean;
|
|
606
|
+
defaultValue?: unknown;
|
|
607
|
+
}
|
|
608
|
+
export interface StorePackage {
|
|
609
|
+
id: string;
|
|
610
|
+
slug: string;
|
|
611
|
+
kind: PackageKind;
|
|
612
|
+
version: string;
|
|
613
|
+
manifest: PackageManifest;
|
|
614
|
+
readme?: string;
|
|
615
|
+
rating?: number;
|
|
616
|
+
downloadCount?: number;
|
|
617
|
+
publishedAt: string;
|
|
618
|
+
publishedBy: string;
|
|
619
|
+
}
|
|
620
|
+
export interface StorePackageSummary {
|
|
621
|
+
id: string;
|
|
622
|
+
slug: string;
|
|
623
|
+
name: string;
|
|
624
|
+
description?: string;
|
|
625
|
+
kind: PackageKind;
|
|
626
|
+
version: string;
|
|
627
|
+
rating?: number;
|
|
628
|
+
downloadCount?: number;
|
|
629
|
+
publishedAt: string;
|
|
630
|
+
}
|
|
631
|
+
export interface PackageManifest {
|
|
632
|
+
schemaVersion: string;
|
|
633
|
+
package: PackageInfo;
|
|
634
|
+
compatibility: CompatibilityInfo;
|
|
635
|
+
dependencies: PackageDependency[];
|
|
636
|
+
artifacts: ArtifactInfo;
|
|
637
|
+
security: SecurityInfo;
|
|
638
|
+
integrity: IntegrityInfo;
|
|
639
|
+
}
|
|
640
|
+
export interface PackageInfo {
|
|
641
|
+
kind: PackageKind;
|
|
642
|
+
name: string;
|
|
643
|
+
slug: string;
|
|
644
|
+
version: string;
|
|
645
|
+
description: string;
|
|
646
|
+
tags: string[];
|
|
647
|
+
license: string;
|
|
648
|
+
author: {
|
|
649
|
+
name: string;
|
|
650
|
+
url?: string;
|
|
651
|
+
};
|
|
652
|
+
homepage?: string;
|
|
653
|
+
repository?: string;
|
|
654
|
+
icon?: string;
|
|
655
|
+
}
|
|
656
|
+
export interface CompatibilityInfo {
|
|
657
|
+
botlit: string;
|
|
658
|
+
a2a?: string;
|
|
659
|
+
mcp?: string;
|
|
660
|
+
fluidgrids?: string;
|
|
661
|
+
}
|
|
662
|
+
export interface PackageDependency {
|
|
663
|
+
slug: string;
|
|
664
|
+
version: string;
|
|
665
|
+
}
|
|
666
|
+
export interface ArtifactInfo {
|
|
667
|
+
entry: string;
|
|
668
|
+
files: string[];
|
|
669
|
+
docs?: string;
|
|
670
|
+
}
|
|
671
|
+
export interface SecurityInfo {
|
|
672
|
+
risk: 'low' | 'medium' | 'high';
|
|
673
|
+
requiresSecrets: boolean;
|
|
674
|
+
network: {
|
|
675
|
+
egress: 'none' | 'restricted' | 'any';
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
export interface IntegrityInfo {
|
|
679
|
+
checksum: string;
|
|
680
|
+
signature?: string;
|
|
681
|
+
}
|
|
682
|
+
export interface InstalledPackage {
|
|
683
|
+
id: string;
|
|
684
|
+
workspaceId: string;
|
|
685
|
+
packageId: string;
|
|
686
|
+
slug: string;
|
|
687
|
+
kind: PackageKind;
|
|
688
|
+
installedVersion: string;
|
|
689
|
+
mode: InstallMode;
|
|
690
|
+
bindings: Record<string, string>;
|
|
691
|
+
pinnedByEnv: Partial<Record<Environment, string>>;
|
|
692
|
+
installedAt: string;
|
|
693
|
+
installedBy: string;
|
|
694
|
+
package?: StorePackageSummary;
|
|
695
|
+
}
|
|
696
|
+
export interface Bucket extends BaseEntity {
|
|
697
|
+
parentBucketId?: string;
|
|
698
|
+
permissions: BucketPermissions;
|
|
699
|
+
defaults: BucketDefaults;
|
|
700
|
+
path: string;
|
|
701
|
+
childCount?: number;
|
|
702
|
+
itemCount?: number;
|
|
703
|
+
}
|
|
704
|
+
export interface BucketSummary {
|
|
705
|
+
id: string;
|
|
706
|
+
name: string;
|
|
707
|
+
description?: string;
|
|
708
|
+
path: string;
|
|
709
|
+
visibility: Visibility;
|
|
710
|
+
childCount: number;
|
|
711
|
+
itemCount: number;
|
|
712
|
+
createdAt: string;
|
|
713
|
+
}
|
|
714
|
+
export interface BucketPermissions {
|
|
715
|
+
owners: string[];
|
|
716
|
+
editors: string[];
|
|
717
|
+
viewers: string[];
|
|
718
|
+
}
|
|
719
|
+
export interface BucketDefaults {
|
|
720
|
+
defaultPolicyBindings?: PolicyBindingSet;
|
|
721
|
+
defaultModelPolicyId?: string;
|
|
722
|
+
defaultRateLimitPolicyId?: string;
|
|
723
|
+
defaultBudgetPolicyId?: string;
|
|
724
|
+
}
|
|
725
|
+
export interface Execution {
|
|
726
|
+
id: string;
|
|
727
|
+
workspaceId: string;
|
|
728
|
+
botId?: string;
|
|
729
|
+
botName?: string;
|
|
730
|
+
agentId?: string;
|
|
731
|
+
agentName?: string;
|
|
732
|
+
channelRouteId?: string;
|
|
733
|
+
connectorType?: ChannelType;
|
|
734
|
+
traceId: string;
|
|
735
|
+
startedAt: string;
|
|
736
|
+
endedAt?: string;
|
|
737
|
+
status: ExecutionStatus;
|
|
738
|
+
resolvedBundleHash: string;
|
|
739
|
+
manifestLocks: Record<string, string>;
|
|
740
|
+
metrics: ExecutionMetrics;
|
|
741
|
+
events: ExecutionEvent[];
|
|
742
|
+
policyDecisions: PolicyDecision[];
|
|
743
|
+
}
|
|
744
|
+
export interface ExecutionSummary {
|
|
745
|
+
id: string;
|
|
746
|
+
botName?: string;
|
|
747
|
+
agentName?: string;
|
|
748
|
+
status: ExecutionStatus;
|
|
749
|
+
durationMs?: number;
|
|
750
|
+
totalTokens?: number;
|
|
751
|
+
estimatedCost?: number;
|
|
752
|
+
startedAt: string;
|
|
753
|
+
endedAt?: string;
|
|
754
|
+
}
|
|
755
|
+
export interface ExecutionMetrics {
|
|
756
|
+
latencyMs: number;
|
|
757
|
+
totalTokens: number;
|
|
758
|
+
promptTokens: number;
|
|
759
|
+
completionTokens: number;
|
|
760
|
+
estimatedCost: number;
|
|
761
|
+
toolCallCount: number;
|
|
762
|
+
retrievalCount: number;
|
|
763
|
+
}
|
|
764
|
+
export interface ExecutionEvent {
|
|
765
|
+
id: string;
|
|
766
|
+
timestamp: string;
|
|
767
|
+
type: ExecutionEventType;
|
|
768
|
+
data: Record<string, unknown>;
|
|
769
|
+
}
|
|
770
|
+
export type ExecutionEventType = 'model_selected' | 'tool_call' | 'tool_result' | 'retrieval_query' | 'retrieval_hit' | 'a2a_call' | 'a2a_response' | 'policy_check' | 'error';
|
|
771
|
+
export interface PolicyDecision {
|
|
772
|
+
policyType: PolicyType;
|
|
773
|
+
policyId: string;
|
|
774
|
+
policyName?: string;
|
|
775
|
+
action: 'allowed' | 'denied' | 'modified';
|
|
776
|
+
reason?: string;
|
|
777
|
+
timestamp: string;
|
|
778
|
+
}
|
|
779
|
+
export interface LLMProvider {
|
|
780
|
+
id: string;
|
|
781
|
+
workspaceId: string;
|
|
782
|
+
name: string;
|
|
783
|
+
type: LLMProviderType;
|
|
784
|
+
baseUrl?: string;
|
|
785
|
+
region?: string;
|
|
786
|
+
credentialsRefId: string;
|
|
787
|
+
models: LLMModel[];
|
|
788
|
+
status: 'active' | 'inactive' | 'error';
|
|
789
|
+
createdAt: string;
|
|
790
|
+
updatedAt: string;
|
|
791
|
+
}
|
|
792
|
+
export interface LLMModel {
|
|
793
|
+
id: string;
|
|
794
|
+
providerId: string;
|
|
795
|
+
name: string;
|
|
796
|
+
modelId: string;
|
|
797
|
+
capabilities: LLMModelCapabilities;
|
|
798
|
+
contextWindow: number;
|
|
799
|
+
maxOutputTokens: number;
|
|
800
|
+
inputCostPer1M: number;
|
|
801
|
+
outputCostPer1M: number;
|
|
802
|
+
}
|
|
803
|
+
export interface LLMModelCapabilities {
|
|
804
|
+
text: boolean;
|
|
805
|
+
vision: boolean;
|
|
806
|
+
functionCalling: boolean;
|
|
807
|
+
jsonMode: boolean;
|
|
808
|
+
streaming: boolean;
|
|
809
|
+
}
|
|
810
|
+
export interface ModelPolicy extends BaseEntity {
|
|
811
|
+
primaryModelId: string;
|
|
812
|
+
fallbackChain: string[];
|
|
813
|
+
routingRules: ModelRoutingRule[];
|
|
814
|
+
budgetRules: ModelBudgetRules;
|
|
815
|
+
defaults: ModelDefaults;
|
|
816
|
+
}
|
|
817
|
+
export interface ModelRoutingRule {
|
|
818
|
+
condition: 'tools_needed' | 'context_exceeds' | 'structured_output' | 'vision_needed';
|
|
819
|
+
threshold?: number;
|
|
820
|
+
modelId: string;
|
|
821
|
+
}
|
|
822
|
+
export interface ModelBudgetRules {
|
|
823
|
+
maxTokensPerExecution: number;
|
|
824
|
+
maxCostPerExecution: number;
|
|
825
|
+
}
|
|
826
|
+
export interface ModelDefaults {
|
|
827
|
+
temperature: number;
|
|
828
|
+
topP: number;
|
|
829
|
+
maxTokens?: number;
|
|
830
|
+
}
|
|
831
|
+
export interface Conversation {
|
|
832
|
+
id: string;
|
|
833
|
+
workspaceId: string;
|
|
834
|
+
botId: string;
|
|
835
|
+
agentId: string;
|
|
836
|
+
userId?: string;
|
|
837
|
+
title: string;
|
|
838
|
+
messages: Message[];
|
|
839
|
+
metadata: ConversationMetadata;
|
|
840
|
+
status: 'active' | 'archived' | 'deleted';
|
|
841
|
+
createdAt: string;
|
|
842
|
+
updatedAt: string;
|
|
843
|
+
}
|
|
844
|
+
export interface Message {
|
|
845
|
+
id: string;
|
|
846
|
+
conversationId: string;
|
|
847
|
+
role: MessageRole;
|
|
848
|
+
content: string;
|
|
849
|
+
toolCalls?: ToolCall[];
|
|
850
|
+
toolResults?: ToolResult[];
|
|
851
|
+
metadata: MessageMetadata;
|
|
852
|
+
createdAt: string;
|
|
853
|
+
}
|
|
854
|
+
export interface ToolCall {
|
|
855
|
+
id: string;
|
|
856
|
+
name: string;
|
|
857
|
+
arguments: Record<string, unknown>;
|
|
858
|
+
}
|
|
859
|
+
export interface ToolResult {
|
|
860
|
+
toolCallId: string;
|
|
861
|
+
result: unknown;
|
|
862
|
+
error?: string;
|
|
863
|
+
}
|
|
864
|
+
export interface ConversationMetadata {
|
|
865
|
+
source?: 'web' | 'api' | 'widget' | 'slack' | 'discord';
|
|
866
|
+
userAgent?: string;
|
|
867
|
+
sessionId?: string;
|
|
868
|
+
tags?: string[];
|
|
869
|
+
}
|
|
870
|
+
export interface MessageMetadata {
|
|
871
|
+
tokens?: {
|
|
872
|
+
prompt: number;
|
|
873
|
+
completion: number;
|
|
874
|
+
total: number;
|
|
875
|
+
};
|
|
876
|
+
latencyMs?: number;
|
|
877
|
+
model?: string;
|
|
878
|
+
finishReason?: 'stop' | 'length' | 'tool_calls' | 'content_filter';
|
|
879
|
+
executionId?: string;
|
|
880
|
+
}
|
|
881
|
+
export interface BaseFilter {
|
|
882
|
+
search?: string;
|
|
883
|
+
status?: EntityStatus[];
|
|
884
|
+
visibility?: Visibility[];
|
|
885
|
+
bucketId?: string;
|
|
886
|
+
tags?: string[];
|
|
887
|
+
sortBy?: string;
|
|
888
|
+
sortOrder?: 'asc' | 'desc';
|
|
889
|
+
}
|
|
890
|
+
export interface BotFilter extends BaseFilter {
|
|
891
|
+
routingStrategy?: RoutingStrategy[];
|
|
892
|
+
}
|
|
893
|
+
export interface AgentFilter extends BaseFilter {
|
|
894
|
+
hasKnowledge?: boolean;
|
|
895
|
+
hasTools?: boolean;
|
|
896
|
+
hasA2A?: boolean;
|
|
897
|
+
}
|
|
898
|
+
export interface KnowledgeBaseFilter extends BaseFilter {
|
|
899
|
+
type?: KBType[];
|
|
900
|
+
}
|
|
901
|
+
export interface RetrievalProfileFilter extends BaseFilter {
|
|
902
|
+
mode?: RetrievalMode[];
|
|
903
|
+
}
|
|
904
|
+
export interface MCPServerFilter extends BaseFilter {
|
|
905
|
+
transport?: MCPTransport[];
|
|
906
|
+
healthStatus?: MCPServerStatus[];
|
|
907
|
+
}
|
|
908
|
+
export interface A2AAgentFilter extends BaseFilter {
|
|
909
|
+
trustLevel?: TrustLevel[];
|
|
910
|
+
}
|
|
911
|
+
export interface ChannelFilter extends BaseFilter {
|
|
912
|
+
type?: ChannelType[];
|
|
913
|
+
}
|
|
914
|
+
export interface PolicyFilter extends BaseFilter {
|
|
915
|
+
type?: PolicyType[];
|
|
916
|
+
}
|
|
917
|
+
export interface ExecutionFilter {
|
|
918
|
+
botId?: string;
|
|
919
|
+
agentId?: string;
|
|
920
|
+
status?: ExecutionStatus[];
|
|
921
|
+
dateRange?: {
|
|
922
|
+
start: string;
|
|
923
|
+
end: string;
|
|
924
|
+
};
|
|
925
|
+
minDuration?: number;
|
|
926
|
+
maxDuration?: number;
|
|
927
|
+
}
|
|
928
|
+
export interface StoreFilter {
|
|
929
|
+
kind?: PackageKind[];
|
|
930
|
+
search?: string;
|
|
931
|
+
minRating?: number;
|
|
932
|
+
sortBy?: 'downloads' | 'rating' | 'recent';
|
|
933
|
+
}
|
|
934
|
+
export interface Pagination {
|
|
935
|
+
page: number;
|
|
936
|
+
pageSize: number;
|
|
937
|
+
total: number;
|
|
938
|
+
totalPages: number;
|
|
939
|
+
}
|
|
940
|
+
export interface PaginatedResult<T> {
|
|
941
|
+
items: T[];
|
|
942
|
+
pagination: Pagination;
|
|
943
|
+
}
|
|
944
|
+
export interface ResolvedBundle {
|
|
945
|
+
hash: string;
|
|
946
|
+
workspaceId: string;
|
|
947
|
+
botId: string;
|
|
948
|
+
environment: Environment;
|
|
949
|
+
bot: Bot;
|
|
950
|
+
agents: Agent[];
|
|
951
|
+
effectivePolicies: PolicyBindingSet;
|
|
952
|
+
channelRoutes: ChannelRoute[];
|
|
953
|
+
kbInstances: KnowledgeBase[];
|
|
954
|
+
retrievalProfiles: RetrievalProfile[];
|
|
955
|
+
mcpConnections: MCPServer[];
|
|
956
|
+
a2aTargets: A2AAgent[];
|
|
957
|
+
storeLockfile: Record<string, string>;
|
|
958
|
+
resolvedAt: string;
|
|
959
|
+
provenance: BundleProvenance[];
|
|
960
|
+
}
|
|
961
|
+
export interface BundleProvenance {
|
|
962
|
+
entityType: string;
|
|
963
|
+
entityId: string;
|
|
964
|
+
version: string;
|
|
965
|
+
source: 'local' | 'store';
|
|
966
|
+
packageSlug?: string;
|
|
967
|
+
}
|
|
968
|
+
export interface DashboardStats {
|
|
969
|
+
bots: {
|
|
970
|
+
total: number;
|
|
971
|
+
active: number;
|
|
972
|
+
draft: number;
|
|
973
|
+
};
|
|
974
|
+
agents: {
|
|
975
|
+
total: number;
|
|
976
|
+
active: number;
|
|
977
|
+
draft: number;
|
|
978
|
+
};
|
|
979
|
+
knowledgeBases: {
|
|
980
|
+
total: number;
|
|
981
|
+
active: number;
|
|
982
|
+
};
|
|
983
|
+
executions: {
|
|
984
|
+
today: number;
|
|
985
|
+
thisWeek: number;
|
|
986
|
+
thisMonth: number;
|
|
987
|
+
};
|
|
988
|
+
successRate: number;
|
|
989
|
+
totalTokens: number;
|
|
990
|
+
estimatedCost: number;
|
|
991
|
+
}
|
|
992
|
+
export interface UsageMetrics {
|
|
993
|
+
period: 'day' | 'week' | 'month';
|
|
994
|
+
startDate: string;
|
|
995
|
+
endDate: string;
|
|
996
|
+
executions: number;
|
|
997
|
+
tokens: number;
|
|
998
|
+
cost: number;
|
|
999
|
+
successRate: number;
|
|
1000
|
+
breakdown: DailyMetrics[];
|
|
1001
|
+
}
|
|
1002
|
+
export interface DailyMetrics {
|
|
1003
|
+
date: string;
|
|
1004
|
+
executions: number;
|
|
1005
|
+
tokens: number;
|
|
1006
|
+
cost: number;
|
|
1007
|
+
successRate: number;
|
|
1008
|
+
}
|