@docyrus/ui-pro-ai-assistant 0.8.0 → 0.8.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.
@@ -5,6 +5,11 @@ export interface AssistantUser {
5
5
  firstname?: string;
6
6
  lastname?: string;
7
7
  photo?: string;
8
+ /**
9
+ * Tenant roles for the current user (e.g. `'super_admin'`). Used to gate
10
+ * privileged actions such as approving an agent's consent terms.
11
+ */
12
+ roles?: string[];
8
13
  }
9
14
  export interface EnumOption {
10
15
  id: string;
@@ -66,6 +66,11 @@ interface AssistantViewCommonProps {
66
66
  chatError?: string | null;
67
67
  /** Called when the user dismisses the error bubble. */
68
68
  onDismissChatError?: () => void;
69
+ /**
70
+ * When true, the agent's consent terms are not accepted yet, so the prompt
71
+ * input is hidden (mirrors Vue `KvAssistantPromptInput` `v-if="hasConsent"`).
72
+ */
73
+ consentRequired?: boolean;
69
74
  }
70
75
  export interface InlineModeProps extends AssistantViewCommonProps {
71
76
  mode: 'inline';
@@ -91,5 +91,10 @@ export interface ChatPanelProps {
91
91
  chatError?: string | null;
92
92
  /** Called when the user dismisses the error bubble. */
93
93
  onDismissChatError?: () => void;
94
+ /**
95
+ * When true, the agent's consent terms have not been accepted yet, so the
96
+ * prompt input is hidden (mirrors Vue `KvAssistantPromptInput` `v-if="hasConsent"`).
97
+ */
98
+ consentRequired?: boolean;
94
99
  }
95
- export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, onEditPrompt, renderThreadHeader, messagesClassName, compactToolbar, showWelcome, recentSessions, onSessionClick, threadId, initialModelId, initialFeatures, subagents, agentTools, onManageMemories, appContext, onClearAppContext, onForwardToAgent, chatError, onDismissChatError }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
100
+ export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, consentRequired, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, onEditPrompt, renderThreadHeader, messagesClassName, compactToolbar, showWelcome, recentSessions, onSessionClick, threadId, initialModelId, initialFeatures, subagents, agentTools, onManageMemories, appContext, onClearAppContext, onForwardToAgent, chatError, onDismissChatError }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Docyrus AI Assistant component — full-featured chat UI with canvas, projects, and i18n support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",