@brainfish-ai/components 0.30.4 → 0.30.6

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.
@@ -103,6 +103,7 @@ export declare interface Answer {
103
103
  actions?: Action[];
104
104
  hasError?: boolean;
105
105
  attachments?: AnswerAttachment[];
106
+ statusMessage?: string;
106
107
  }
107
108
 
108
109
  declare interface AnswerAttachment {
@@ -113,7 +114,7 @@ declare interface AnswerAttachment {
113
114
 
114
115
  declare type AnswerBlock = MarkdownTextBlock | ActionButtonsBlock | ActionInputFormBlock;
115
116
 
116
- declare type AnswerListAction = SetAnswers | ClearAll | AppendNewAnswer | SetSearchResults | AppendAnswerChunk | SetAnswerError | SetUserFeedback | ClearUserFeedback | SetFollowUpQuestions | AppendBlock | CompleteAnswer | MarkAsUncertain | InvokeAction | GetActionInputs | AddActionButtons | NoArticlesFound | SetAwaitingKnowledgeGroup | SetKnowledgeGroupSelected;
117
+ declare type AnswerListAction = SetAnswers | ClearAll | AppendNewAnswer | SetSearchResults | AppendAnswerChunk | SetAnswerError | SetUserFeedback | ClearUserFeedback | SetFollowUpQuestions | AppendBlock | CompleteAnswer | MarkAsUncertain | InvokeAction | GetActionInputs | AddActionButtons | NoArticlesFound | SetAwaitingKnowledgeGroup | SetKnowledgeGroupSelected | SetStatusMessage;
117
118
 
118
119
  declare const AnswersActions: {
119
120
  readonly SET_ANSWERS: "answers/set_answers";
@@ -134,6 +135,7 @@ declare const AnswersActions: {
134
135
  readonly ADD_ACTION_BUTTONS: "answers/add_action_buttons";
135
136
  readonly SET_AWAITING_KNOWLEDGE_GROUP: "answers/set_awaiting_knowledge_group";
136
137
  readonly SET_KNOWLEDGE_GROUP_SELECTED: "answers/set_knowledge_group_selected";
138
+ readonly SET_STATUS_MESSAGE: "answers/set_status_message";
137
139
  };
138
140
 
139
141
  declare type AnswerState = 'fetching-search-results' | 'fetching-stream' | 'streaming' | 'getting-action-inputs' | 'awaiting-knowledge-group' | 'completed';
@@ -460,6 +462,14 @@ declare type SetSearchResults = {
460
462
  };
461
463
  };
462
464
 
465
+ declare type SetStatusMessage = {
466
+ type: typeof AnswersActions.SET_STATUS_MESSAGE;
467
+ payload: {
468
+ message: string;
469
+ index?: number;
470
+ };
471
+ };
472
+
463
473
  declare type SetUserFeedback = {
464
474
  type: typeof AnswersActions.SET_USER_FEEDBACK;
465
475
  payload: {