@@ -28,6 +28,7 @@ type FilePreview = {
2828 type : string ;
2929} ;
3030type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage' ;
31+ type ExecutionState = 'INPROGRESS' | 'FINISHED' | 'ERROR' | 'TERMINATED' | 'TIMEOUT' | 'STOPPED' ;
3132export type IAgentReasoning = {
3233 agentName ?: string ;
3334 messages ?: string [ ] ;
@@ -39,6 +40,7 @@ export type IAgentReasoning = {
3940} ;
4041export type IAction = {
4142 id ?: string ;
43+ data ?: any ;
4244 elements ?: Array < {
4345 type : string ;
4446 label : string ;
@@ -50,6 +52,13 @@ export type IAction = {
5052 } ;
5153} ;
5254export type FileUpload = Omit < FilePreview , 'preview' > ;
55+ export type AgentFlowExecutedData = {
56+ nodeLabel : string ;
57+ nodeId : string ;
58+ data : any ;
59+ previousNodeIds : string [ ] ;
60+ status ?: ExecutionState ;
61+ } ;
5362export type MessageType = {
5463 messageId ?: string ;
5564 message : string ;
@@ -59,6 +68,9 @@ export type MessageType = {
5968 fileUploads ?: Partial < FileUpload > [ ] ;
6069 artifacts ?: Partial < FileUpload > [ ] ;
6170 agentReasoning ?: IAgentReasoning [ ] ;
71+ execution ?: any ;
72+ agentFlowEventStatus ?: string ;
73+ agentFlowExecutedData ?: any ;
6274 usedTools ?: any [ ] ;
6375 action ?: IAction | null ;
6476 rating ?: FeedbackRatingType ;
@@ -73,6 +85,7 @@ export type BotProps = {
7385 apiHost ?: string ;
7486 onRequest ?: ( request : RequestInit ) => Promise < void > ;
7587 chatflowConfig ?: Record < string , unknown > ;
88+ backgroundColor ?: string ;
7689 welcomeMessage ?: string ;
7790 errorMessage ?: string ;
7891 botMessage ?: BotMessageTheme ;
@@ -89,6 +102,8 @@ export type BotProps = {
89102 titleAvatarSrc ?: string ;
90103 titleTextColor ?: string ;
91104 titleBackgroundColor ?: string ;
105+ formBackgroundColor ?: string ;
106+ formTextColor ?: string ;
92107 fontSize ?: number ;
93108 isFullPage ?: boolean ;
94109 footer ?: FooterTheme ;
0 commit comments