@brainfish-ai/components 0.35.12 → 0.35.15

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.
@@ -268,6 +268,8 @@ export declare interface ChatSearchProps {
268
268
  conversationInlineSlot?: ReactNode;
269
269
  liveHumanAgentChatSlot?: ReactNode;
270
270
  botAvatarUrl?: string;
271
+ favicon?: string;
272
+ initialAiMessage?: string;
271
273
  knowledgeSourceGroups?: KnowledgeSourceGroup[];
272
274
  }
273
275
 
package/dist/convos.d.ts CHANGED
@@ -124,12 +124,23 @@ export declare enum Feedback {
124
124
  Negative = "negative"
125
125
  }
126
126
 
127
+ export declare interface HumanAgentMessage extends BaseMessage {
128
+ type: MessageType.HUMAN;
129
+ role: 'human';
130
+ content: string;
131
+ authorName?: string;
132
+ authorAvatarUrl?: string;
133
+ source?: string;
134
+ }
135
+
127
136
  export declare const isAction: (msg: MessageProps) => msg is UserActionMessage;
128
137
 
129
138
  export declare const isAIAnswer: (msg: MessageProps) => msg is AIAnswerMessage;
130
139
 
131
140
  export declare const isFeedback: (msg: MessageProps) => msg is UserFeedbackMessage;
132
141
 
142
+ export declare const isHumanAgent: (msg: MessageProps) => msg is HumanAgentMessage;
143
+
133
144
  export declare const isUserQuestion: (msg: MessageProps) => msg is UserQuestionMessage;
134
145
 
135
146
  export declare function Message(props: MessageProps): default_2.JSX.Element;
@@ -138,13 +149,14 @@ export declare function MessageAttachmentImageThumbnails({ attachments }: {
138
149
  attachments: Attachment[];
139
150
  }): default_2.JSX.Element;
140
151
 
141
- export declare type MessageProps = AIAnswerMessage | UserQuestionMessage | UserFeedbackMessage | UserActionMessage;
152
+ export declare type MessageProps = AIAnswerMessage | UserQuestionMessage | UserFeedbackMessage | UserActionMessage | HumanAgentMessage;
142
153
 
143
154
  export declare enum MessageType {
144
155
  ACTION = "action",// user action like 'Next Best Action clicks'
145
156
  FEEDBACK = "feedback",// feedback for up/down vote
146
157
  QUESTION = "question",// user question
147
- ANSWER = "answer"
158
+ ANSWER = "answer",// ai generated answer
159
+ HUMAN = "human"
148
160
  }
149
161
 
150
162
  declare interface Props {