core: change API to suspend agent (#752)

This commit is contained in:
Evgeny Poberezkin
2022-06-26 15:04:44 +01:00
committed by GitHub
parent 5367ffe418
commit 463f644bce
6 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -101,7 +101,8 @@ data ChatCommand
| CreateActiveUser Profile
| StartChat {subscribeConnections :: Bool}
| APIStopChat
| APISetAppPhase AgentPhase
| APIActivateChat
| APISuspendChat {suspendTimeout :: Int}
| ResubscribeAllConnections
| SetFilesFolder FilePath
| APIExportArchive ArchiveConfig
@@ -185,7 +186,7 @@ data ChatResponse
| CRChatStarted
| CRChatRunning
| CRChatStopped
| CRAppPhase {appPhase :: AgentPhase}
| CRChatSuspended
| CRApiChats {chats :: [AChat]}
| CRApiChat {chat :: AChat}
| CRLastMessages {chatItems :: [AChatItem]}