simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Controller

Synopsis

Documentation

versionString :: String -> String Source #

data ChatConfig Source #

Constructors

ChatConfig 

Fields

data RandomAgentServers Source #

Constructors

RandomAgentServers 

Fields

Instances

Instances details
Show RandomAgentServers Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RandomAgentServers -> ShowS

show :: RandomAgentServers -> String

showList :: [RandomAgentServers] -> ShowS

data ChatHooks Source #

Constructors

ChatHooks 

Fields

data PresetServers Source #

Constructors

PresetServers 

Fields

Instances

Instances details
Show PresetServers Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> PresetServers -> ShowS

show :: PresetServers -> String

showList :: [PresetServers] -> ShowS

data InlineFilesConfig Source #

Constructors

InlineFilesConfig 

Fields

data ChatController Source #

Constructors

ChatController 

Fields

data HelpSection Source #

Instances

Instances details
FromJSON HelpSection Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser HelpSection

parseJSONList :: Value -> Parser [HelpSection]

omittedField :: Maybe HelpSection

ToJSON HelpSection Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: HelpSection -> Value

toEncoding :: HelpSection -> Encoding

toJSONList :: [HelpSection] -> Value

toEncodingList :: [HelpSection] -> Encoding

omitField :: HelpSection -> Bool

Show HelpSection Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> HelpSection -> ShowS

show :: HelpSection -> String

showList :: [HelpSection] -> ShowS

data ChatCommand Source #

Constructors

ShowActiveUser 
CreateActiveUser 

Fields

ListUsers 
APISetActiveUser 

Fields

SetActiveUser UserName (Maybe UserPwd) 
SetAllContactReceipts Bool 
APISetUserContactReceipts UserId UserMsgReceiptSettings 
SetUserContactReceipts UserMsgReceiptSettings 
APISetUserGroupReceipts UserId UserMsgReceiptSettings 
SetUserGroupReceipts UserMsgReceiptSettings 
APISetUserAutoAcceptMemberContacts UserId Bool 
SetUserAutoAcceptMemberContacts Bool 
APIHideUser UserId UserPwd 
APIUnhideUser UserId UserPwd 
APIMuteUser UserId 
APIUnmuteUser UserId 
HideUser UserPwd 
UnhideUser UserPwd 
MuteUser 
UnmuteUser 
APIDeleteUser 

Fields

DeleteUser UserName Bool (Maybe UserPwd) 
StartChat 

Fields

CheckChatRunning 
APIStopChat 
APIActivateChat 

Fields

APISuspendChat 

Fields

ShowConnectionsDiff Bool 
ResubscribeAllConnections 
SetTempFolder FilePath 
SetFilesFolder FilePath 
SetRemoteHostsFolder FilePath 
APISetAppFilePaths AppFilePathsConfig 
APISetEncryptLocalFiles Bool 
SetContactMergeEnabled Bool 
APIExportArchive ArchiveConfig 
ExportArchive 
APIImportArchive ArchiveConfig 
APIDeleteStorage 
APIStorageEncryption DBEncryptionConfig 
TestStorageEncryption DBEncryptionKey 
SlowSQLQueries 
ExecChatStoreSQL Text 
ExecAgentStoreSQL Text 
APISaveAppSettings AppSettings 
APIGetAppSettings (Maybe AppSettings) 
APIGetChatTags UserId 
APIGetChats 
APIGetChat 
APIGetChatItems 

Fields

APIGetChatItemInfo 
APISendMessages 

Fields

APICreateChatTag ChatTagData 
APISetChatTags ChatRef (Maybe (NonEmpty ChatTagId)) 
APIDeleteChatTag ChatTagId 
APIUpdateChatTag ChatTagId ChatTagData 
APIReorderChatTags (NonEmpty ChatTagId) 
APICreateChatItems 
APIReportMessage 
ReportMessage 
APIUpdateChatItem 
APIDeleteChatItem 
APIDeleteMemberChatItem 

Fields

APIArchiveReceivedReports GroupId 
APIDeleteReceivedReports GroupId (NonEmpty ChatItemId) CIDeleteMode 
APIChatItemReaction 
APIGetReactionMembers 
APIPlanForwardChatItems 

Fields

APIForwardChatItems 

Fields

APIUserRead UserId 
UserRead 
APIChatRead 

Fields

APIChatItemsRead 

Fields

APIChatUnread 

Fields

APIDeleteChat 
APIClearChat 

Fields

APIAcceptContact 
APIRejectContact 

Fields

APISendCallInvitation ContactId CallType 
SendCallInvitation ContactName CallType 
APIRejectCall ContactId 
APISendCallOffer ContactId WebRTCCallOffer 
APISendCallAnswer ContactId WebRTCSession 
APISendCallExtraInfo ContactId WebRTCExtraInfo 
APIEndCall ContactId 
APIGetCallInvitations 
APICallStatus ContactId WebRTCCallStatus 
APIUpdateProfile 

Fields

APISetContactPrefs 
APISetContactAlias 
APISetGroupAlias 
APISetConnectionAlias 

Fields

APISetUserUIThemes UserId (Maybe UIThemeEntityOverrides) 
APISetChatUIThemes ChatRef (Maybe UIThemeEntityOverrides) 
APIGetNtfToken 
APIRegisterToken DeviceToken NotificationsMode 
APIVerifyToken DeviceToken CbNonce ByteString 
APICheckToken DeviceToken 
APIDeleteToken DeviceToken 
APIGetNtfConns 

Fields

APIGetConnNtfMessages (NonEmpty ConnMsgReq) 
APIAddMember 
APIJoinGroup 
APIAcceptMember 
APIDeleteMemberSupportChat GroupId GroupMemberId 
APIMembersRole 
APIBlockMembersForAll 

Fields

APIRemoveMembers 

Fields

APILeaveGroup 

Fields

APIListMembers 

Fields

APIUpdateGroupProfile 
APICreateGroupLink 
APIGroupLinkMemberRole 
APIDeleteGroupLink 

Fields

APIGetGroupLink 

Fields

APIAddGroupShortLink GroupId 
APICreateMemberContact GroupId GroupMemberId 
APISendMemberContactInvitation 
APIAcceptMemberContact ContactId 
GetUserProtoServers AProtocolType 
SetUserProtoServers AProtocolType [AProtoServerWithAuth] 
APITestProtoServer UserId AProtoServerWithAuth 
TestProtoServer AProtoServerWithAuth 
APIGetServerOperators 
APISetServerOperators (NonEmpty ServerOperator) 
SetServerOperators (NonEmpty ServerOperatorRoles) 
APIGetUserServers UserId 
APISetUserServers UserId (NonEmpty UpdatedUserOperatorServers) 
APIValidateServers UserId [UpdatedUserOperatorServers] 
APIGetUsageConditions 
APISetConditionsNotified Int64 
APIAcceptConditions Int64 (NonEmpty Int64) 
APISetChatItemTTL UserId Int64 
SetChatItemTTL Int64 
APIGetChatItemTTL UserId 
GetChatItemTTL 
APISetChatTTL 

Fields

SetChatTTL ChatName (Maybe Int64) 
GetChatTTL ChatName 
APISetNetworkConfig NetworkConfig 
APIGetNetworkConfig 
SetNetworkConfig SimpleNetCfg 
APISetNetworkInfo UserNetworkInfo 
ReconnectAllServers 
ReconnectServer UserId SMPServer 
APISetChatSettings 
APISetMemberSettings GroupId GroupMemberId GroupMemberSettings 
APIContactInfo ContactId 
APIGroupInfo GroupId 
APIGroupMemberInfo GroupId GroupMemberId 
APIContactQueueInfo ContactId 
APIGroupMemberQueueInfo GroupId GroupMemberId 
APISwitchContact ContactId 
APISwitchGroupMember GroupId GroupMemberId 
APIAbortSwitchContact ContactId 
APIAbortSwitchGroupMember GroupId GroupMemberId 
APISyncContactRatchet 

Fields

APISyncGroupMemberRatchet 
APIGetContactCode ContactId 
APIGetGroupMemberCode GroupId GroupMemberId 
APIVerifyContact ContactId (Maybe Text) 
APIVerifyGroupMember GroupId GroupMemberId (Maybe Text) 
APIEnableContact ContactId 
APIEnableGroupMember GroupId GroupMemberId 
SetShowMessages ChatName MsgFilter 
SetSendReceipts ChatName (Maybe Bool) 
SetShowMemberMessages GroupName ContactName Bool 
ContactInfo ContactName 
ShowGroupInfo GroupName 
GroupMemberInfo GroupName ContactName 
ContactQueueInfo ContactName 
GroupMemberQueueInfo GroupName ContactName 
SwitchContact ContactName 
SwitchGroupMember GroupName ContactName 
AbortSwitchContact ContactName 
AbortSwitchGroupMember GroupName ContactName 
SyncContactRatchet ContactName Bool 
SyncGroupMemberRatchet GroupName ContactName Bool 
GetContactCode ContactName 
GetGroupMemberCode GroupName ContactName 
VerifyContact ContactName (Maybe Text) 
VerifyGroupMember GroupName ContactName (Maybe Text) 
EnableContact ContactName 
EnableGroupMember GroupName ContactName 
ChatHelp HelpSection 
Welcome 
APIAddContact 

Fields

AddContact IncognitoEnabled 
APISetConnectionIncognito Int64 IncognitoEnabled 
APIChangeConnectionUser Int64 UserId 
APIConnectPlan 

Fields

APIPrepareContact UserId ACreatedConnLink ContactShortLinkData 
APIPrepareGroup UserId CreatedLinkContact GroupShortLinkData 
APIChangePreparedContactUser ContactId UserId 
APIChangePreparedGroupUser GroupId UserId 
APIConnectPreparedContact 
APIConnectPreparedGroup GroupId IncognitoEnabled (Maybe MsgContent) 
APIConnect 

Fields

Connect 

Fields

APIConnectContactViaAddress UserId IncognitoEnabled ContactId 
ConnectSimplex IncognitoEnabled 
DeleteContact ContactName ChatDeleteMode 
ClearContact ContactName 
APIListContacts 

Fields

ListContacts 
APICreateMyAddress 

Fields

CreateMyAddress 
APIDeleteMyAddress 

Fields

DeleteMyAddress 
APIShowMyAddress 

Fields

ShowMyAddress 
APIAddMyAddressShortLink UserId 
APISetProfileAddress 

Fields

SetProfileAddress Bool 
APISetAddressSettings 

Fields

SetAddressSettings AddressSettings 
AcceptContact IncognitoEnabled ContactName 
RejectContact ContactName 
ForwardMessage 
ForwardGroupMessage 
ForwardLocalMessage 

Fields

SendMessage SendName Text 
SendMemberContactMessage GroupName ContactName Text 
AcceptMemberContact ContactName 
SendLiveMessage ChatName Text 
SendMessageQuote 

Fields

SendMessageBroadcast MsgContent 
DeleteMessage ChatName Text 
DeleteMemberMessage GroupName ContactName Text 
EditMessage 

Fields

UpdateLiveMessage 

Fields

ReactToMessage 

Fields

APINewGroup 
NewGroup IncognitoEnabled GroupProfile 
AddMember GroupName ContactName GroupMemberRole 
JoinGroup 
AcceptMember GroupName ContactName GroupMemberRole 
MemberRole GroupName ContactName GroupMemberRole 
BlockForAll GroupName ContactName Bool 
RemoveMembers 

Fields

LeaveGroup GroupName 
DeleteGroup GroupName 
ClearGroup GroupName 
ListMembers GroupName 
ListMemberSupportChats GroupName 
APIListGroups 

Fields

ListGroups (Maybe ContactName) (Maybe Text) 
UpdateGroupNames GroupName GroupProfile 
ShowGroupProfile GroupName 
UpdateGroupDescription GroupName (Maybe Text) 
ShowGroupDescription GroupName 
CreateGroupLink GroupName GroupMemberRole 
GroupLinkMemberRole GroupName GroupMemberRole 
DeleteGroupLink GroupName 
ShowGroupLink GroupName 
SendGroupMessageQuote 

Fields

ClearNoteFolder 
LastChats (Maybe Int) 
LastMessages (Maybe ChatName) Int (Maybe Text) 
LastChatItemId (Maybe ChatName) Int 
ShowChatItem (Maybe ChatItemId) 
ShowChatItemInfo ChatName Text 
ShowLiveItems Bool 
SendFile ChatName CryptoFile 
SendImage ChatName CryptoFile 
ForwardFile ChatName FileTransferId 
ForwardImage ChatName FileTransferId 
SendFileDescription ChatName FilePath 
ReceiveFile 

Fields

SetFileToReceive 

Fields

CancelFile 
FileStatus FileTransferId 
ShowProfile 
SetBotCommands [ChatBotCommand] 
UpdateProfile ContactName (Maybe Text) 
UpdateProfileImage (Maybe ImageData) 
ShowProfileImage 
SetUserFeature AChatFeature FeatureAllowed 
SetContactFeature AChatFeature ContactName (Maybe FeatureAllowed) 
SetGroupFeature AGroupFeatureNoRole GroupName GroupFeatureEnabled 
SetGroupFeatureRole AGroupFeatureRole GroupName GroupFeatureEnabled (Maybe GroupMemberRole) 
SetGroupMemberAdmissionReview GroupName (Maybe MemberCriteria) 
SetUserTimedMessages Bool 
SetContactTimedMessages ContactName (Maybe TimedMessagesEnabled) 
SetGroupTimedMessages GroupName (Maybe Int) 
SetLocalDeviceName Text 
ListRemoteHosts 
StartRemoteHost (Maybe (RemoteHostId, Bool)) (Maybe RCCtrlAddress) (Maybe Word16) 
SwitchRemoteHost (Maybe RemoteHostId) 
StopRemoteHost RHKey 
DeleteRemoteHost RemoteHostId 
StoreRemoteFile 

Fields

GetRemoteFile 
ConnectRemoteCtrl RCSignedInvitation 
FindKnownRemoteCtrl 
ConfirmRemoteCtrl RemoteCtrlId 
VerifyRemoteCtrlSession Text 
ListRemoteCtrls 
StopRemoteCtrl 
DeleteRemoteCtrl RemoteCtrlId 
APIUploadStandaloneFile UserId CryptoFile 
APIDownloadStandaloneFile UserId FileDescriptionURI CryptoFile 
APIStandaloneFileInfo FileDescriptionURI 
QuitChat 
ShowVersion 
DebugLocks 
DebugEvent ChatEvent 
GetAgentSubsTotal UserId 
GetAgentServersSummary UserId 
ResetAgentServersStats 
GetAgentSubs 
GetAgentSubsDetails 
GetAgentWorkers 
GetAgentWorkersDetails 
GetAgentQueuesInfo 
CustomChatCommand ByteString 

Instances

Instances details
Show ChatCommand Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatCommand -> ShowS

show :: ChatCommand -> String

showList :: [ChatCommand] -> ShowS

data ChatResponse Source #

Constructors

CRActiveUser 

Fields

CRUsersList 

Fields

CRChatStarted 
CRChatRunning 
CRChatStopped 
CRConnectionsDiff 

Fields

CRApiChats 

Fields

CRChats 

Fields

CRApiChat 

Fields

CRChatTags 

Fields

CRChatItems 

Fields

CRChatItemInfo 
CRChatItemId User (Maybe ChatItemId) 
CRServerTestResult 

Fields

CRServerOperatorConditions 
CRUserServers 
CRUserServersValidation 
CRUsageConditions 
CRChatItemTTL 

Fields

CRNetworkConfig 

Fields

CRContactInfo 

Fields

CRGroupInfo 

Fields

CRGroupMemberInfo 

Fields

CRQueueInfo 

Fields

CRContactSwitchStarted 

Fields

CRGroupMemberSwitchStarted 

Fields

CRContactSwitchAborted 

Fields

CRGroupMemberSwitchAborted 

Fields

CRContactRatchetSyncStarted 

Fields

CRGroupMemberRatchetSyncStarted 

Fields

CRContactCode 

Fields

CRGroupMemberCode 
CRConnectionVerified 

Fields

CRTagsUpdated 

Fields

CRNewChatItems 

Fields

CRChatItemUpdated 

Fields

CRChatItemNotChanged 

Fields

CRChatItemReaction 

Fields

CRReactionMembers 
CRChatItemsDeleted 

Fields

CRGroupChatItemsDeleted 

Fields

CRBroadcastSent 

Fields

CRCmdOk 

Fields

CRChatHelp 
CRWelcome 

Fields

CRGroupCreated 

Fields

CRGroupMembers 

Fields

CRMemberSupportChats 
CRContactsList

CRGroupConversationsArchived {user :: User, groupInfo :: GroupInfo, archivedGroupConversations :: [GroupConversation]} | CRGroupConversationsDeleted {user :: User, groupInfo :: GroupInfo, deletedGroupConversations :: [GroupConversation]}

Fields

CRUserContactLink 
CRUserContactLinkUpdated 
CRContactRequestRejected 
CRUserAcceptedGroupSent 

Fields

CRUserDeletedMembers 
CRGroupsList 

Fields

CRSentGroupInvitation 
CRFileTransferStatus User (FileTransfer, [Integer]) 
CRFileTransferStatusXFTP User AChatItem 
CRUserProfile 

Fields

CRUserProfileNoChange 

Fields

CRUserPrivacy 

Fields

CRVersionInfo 

Fields

CRInvitation 
CRConnectionIncognitoUpdated 
CRConnectionUserChanged 
CRConnectionPlan 

Fields

CRNewPreparedChat 

Fields

CRContactUserChanged 
CRGroupUserChanged 
CRSentConfirmation 
CRSentInvitation 
CRStartedConnectionToContact 
CRStartedConnectionToGroup 
CRSentInvitationToContact 
CRItemsReadForChat 

Fields

CRContactDeleted 

Fields

CRChatCleared 

Fields

CRUserContactLinkCreated 
CRUserContactLinkDeleted 

Fields

CRAcceptingContactRequest 

Fields

CRContactAlreadyExists 

Fields

CRLeftMemberUser 

Fields

CRGroupDeletedUser 

Fields

CRForwardPlan 
CRRcvFileAccepted 

Fields

CRRcvFileAcceptedSndCancelled 
CRStandaloneFileInfo 

Fields

CRRcvStandaloneFileCreated 
CRRcvFileCancelled 
CRSndFileCancelled 
CRSndStandaloneFileCreated 
CRUserProfileUpdated 
CRUserProfileImage 

Fields

CRContactAliasUpdated 

Fields

CRGroupAliasUpdated 

Fields

CRConnectionAliasUpdated 
CRContactPrefsUpdated 
CRJoinedGroupMember 
CRMemberAccepted 
CRMemberSupportChatRead 
CRMemberSupportChatDeleted 
CRMembersRoleUser 
CRMembersBlockedForAllUser 

Fields

CRGroupUpdated 
CRGroupProfile 

Fields

CRGroupDescription 

Fields

CRGroupLinkCreated 
CRGroupLink 
CRGroupLinkDeleted 

Fields

CRNewMemberContact 
CRNewMemberContactSentInv 
CRMemberContactAccepted 

Fields

CRCallInvitations 
CRNtfTokenStatus 

Fields

CRNtfToken 

Fields

CRNtfConns 

Fields

CRConnNtfMessages 

Fields

CRContactConnectionDeleted 
CRRemoteHostList 
CRCurrentRemoteHost 

Fields

CRRemoteHostStarted 

Fields

CRRemoteFileStored 

Fields

CRRemoteCtrlList 
CRRemoteCtrlConnecting 
CRRemoteCtrlConnected 
CRSQLResult 

Fields

CRArchiveExported 
CRArchiveImported 
CRSlowSQLQueries 
CRDebugLocks 

Fields

CRAgentSubsTotal 

Fields

CRAgentServersSummary 
CRAgentWorkersDetails 

Fields

CRAgentWorkersSummary 

Fields

CRAgentSubs 

Fields

CRAgentSubsDetails 

Fields

CRAgentQueuesInfo 

Fields

CRAppSettings 
CRCustomChatResponse 

Fields

Instances

Instances details
FromJSON ChatResponse Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatResponse

parseJSONList :: Value -> Parser [ChatResponse]

omittedField :: Maybe ChatResponse

ToJSON ChatResponse Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatResponse -> Value

toEncoding :: ChatResponse -> Encoding

toJSONList :: [ChatResponse] -> Value

toEncodingList :: [ChatResponse] -> Encoding

omitField :: ChatResponse -> Bool

Show ChatResponse Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatResponse -> ShowS

show :: ChatResponse -> String

showList :: [ChatResponse] -> ShowS

ChatResponseEvent ChatResponse Source # 
Instance details

Defined in Simplex.Chat.View

Methods

responseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatResponse -> [StyledString] Source #

isCommandResponse :: Bool Source #

data ChatEvent Source #

Constructors

CEvtChatSuspended 
CEvtContactSwitch 
CEvtGroupMemberSwitch 
CEvtContactRatchetSync 
CEvtGroupMemberRatchetSync 
CEvtChatInfoUpdated 

Fields

CEvtNewChatItems 

Fields

CEvtChatItemsStatusesUpdated 

Fields

CEvtChatItemUpdated 

Fields

CEvtChatItemNotChanged 

Fields

CEvtChatItemReaction 

Fields

CEvtGroupChatItemsDeleted 

Fields

CEvtChatItemsDeleted 

Fields

CEvtChatItemDeletedNotFound 
CEvtUserAcceptedGroupSent 

Fields

CEvtGroupLinkConnecting 
CEvtBusinessLinkConnecting 
CEvtSentGroupInvitation 
CEvtContactUpdated 
CEvtGroupMemberUpdated 
CEvtContactDeletedByContact 

Fields

CEvtReceivedContactRequest 
CEvtAcceptingContactRequest 

Fields

CEvtAcceptingBusinessRequest 

Fields

CEvtContactRequestAlreadyAccepted 

Fields

CEvtBusinessRequestAlreadyAccepted 

Fields

CEvtRcvFileDescrReady 
CEvtRcvFileAccepted 

Fields

CEvtRcvFileAcceptedSndCancelled 
CEvtRcvFileStart 

Fields

CEvtRcvFileProgressXFTP 

Fields

CEvtRcvFileComplete 

Fields

CEvtRcvStandaloneFileComplete 

Fields

CEvtRcvFileSndCancelled 
CEvtRcvFileError 

Fields

CEvtRcvFileWarning 

Fields

CEvtSndFileStart 
CEvtSndFileComplete 
CEvtSndFileRcvCancelled 
CEvtSndFileProgressXFTP 

Fields

CEvtSndFileRedirectStartXFTP 
CEvtSndFileCompleteXFTP 
CEvtSndStandaloneFileComplete 
CEvtSndFileError 
CEvtSndFileWarning 
CEvtContactConnecting 

Fields

CEvtContactConnected 
CEvtContactSndReady 

Fields

CEvtContactAnotherClient 

Fields

CEvtConnectionsDiff 

Fields

CEvtSubscriptionEnd 
CEvtSubscriptionStatus 

Fields

CEvtHostConnected 

Fields

CEvtHostDisconnected 

Fields

CEvtReceivedGroupInvitation 
CEvtUserJoinedGroup 
CEvtJoinedGroupMember 
CEvtJoinedGroupMemberConnecting 
CEvtMemberAcceptedByOther 
CEvtMemberRole 
CEvtMemberBlockedForAll 
CEvtConnectedToGroupMember 
CEvtDeletedMember 
CEvtDeletedMemberUser 
CEvtLeftMember 
CEvtUnknownMemberCreated 
CEvtUnknownMemberBlocked 
CEvtUnknownMemberAnnounced 
CEvtGroupDeleted 
CEvtGroupUpdated 
CEvtAcceptingGroupJoinRequestMember 
CEvtNoMemberContactCreating 
CEvtNewMemberContactReceivedInv 
CEvtContactAndMemberAssociated 
CEvtCallInvitation 
CEvtCallOffer 

Fields

CEvtCallAnswer 
CEvtCallExtraInfo 
CEvtCallEnded 

Fields

CEvtNtfMessage 
CEvtRemoteHostSessionCode 

Fields

CEvtNewRemoteHost 
CEvtRemoteHostConnected 
CEvtRemoteHostStopped 
CEvtRemoteCtrlFound 
CEvtRemoteCtrlSessionCode 

Fields

CEvtRemoteCtrlStopped 
CEvtContactPQEnabled 

Fields

CEvtContactDisabled 

Fields

CEvtConnectionDisabled 
CEvtConnectionInactive 
CEvtAgentRcvQueuesDeleted 

Fields

CEvtAgentConnsDeleted 

Fields

CEvtAgentUserDeleted 

Fields

CEvtMessageError 

Fields

CEvtChatErrors 

Fields

CEvtTimedAction 

Fields

CEvtTerminalEvent TerminalEvent 
CEvtCustomChatEvent 

Fields

Instances

Instances details
FromJSON ChatEvent Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatEvent

parseJSONList :: Value -> Parser [ChatEvent]

omittedField :: Maybe ChatEvent

ToJSON ChatEvent Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatEvent -> Value

toEncoding :: ChatEvent -> Encoding

toJSONList :: [ChatEvent] -> Value

toEncodingList :: [ChatEvent] -> Encoding

omitField :: ChatEvent -> Bool

Show ChatEvent Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatEvent -> ShowS

show :: ChatEvent -> String

showList :: [ChatEvent] -> ShowS

ChatResponseEvent ChatEvent Source # 
Instance details

Defined in Simplex.Chat.View

Methods

responseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatEvent -> [StyledString] Source #

isCommandResponse :: Bool Source #

data DeletedRcvQueue Source #

Constructors

DeletedRcvQueue 

Fields

Instances

Instances details
FromJSON DeletedRcvQueue Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser DeletedRcvQueue

parseJSONList :: Value -> Parser [DeletedRcvQueue]

omittedField :: Maybe DeletedRcvQueue

ToJSON DeletedRcvQueue Source # 
Instance details

Defined in Simplex.Chat.Controller

Show DeletedRcvQueue Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> DeletedRcvQueue -> ShowS

show :: DeletedRcvQueue -> String

showList :: [DeletedRcvQueue] -> ShowS

data SendRef Source #

Instances

Instances details
Show SendRef Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> SendRef -> ShowS

show :: SendRef -> String

showList :: [SendRef] -> ShowS

Eq SendRef Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

(==) :: SendRef -> SendRef -> Bool

(/=) :: SendRef -> SendRef -> Bool

data ChatPagination Source #

Instances

Instances details
Show ChatPagination Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatPagination -> ShowS

show :: ChatPagination -> String

showList :: [ChatPagination] -> ShowS

data PaginationByTime Source #

Constructors

PTLast Int 
PTAfter UTCTime Int 
PTBefore UTCTime Int 

Instances

Instances details
Show PaginationByTime Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> PaginationByTime -> ShowS

show :: PaginationByTime -> String

showList :: [PaginationByTime] -> ShowS

data ChatListQuery Source #

Constructors

CLQFilters 

Fields

CLQSearch 

Fields

Instances

Instances details
FromJSON ChatListQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatListQuery

parseJSONList :: Value -> Parser [ChatListQuery]

omittedField :: Maybe ChatListQuery

ToJSON ChatListQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatListQuery -> Value

toEncoding :: ChatListQuery -> Encoding

toJSONList :: [ChatListQuery] -> Value

toEncodingList :: [ChatListQuery] -> Encoding

omitField :: ChatListQuery -> Bool

Show ChatListQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatListQuery -> ShowS

show :: ChatListQuery -> String

showList :: [ChatListQuery] -> ShowS

data ChatDeleteMode Source #

Constructors

CDMFull 

Fields

CDMEntity 

Fields

CDMMessages 

Instances

Instances details
Show ChatDeleteMode Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatDeleteMode -> ShowS

show :: ChatDeleteMode -> String

showList :: [ChatDeleteMode] -> ShowS

data ConnectionPlan Source #

Instances

Instances details
FromJSON ConnectionPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ConnectionPlan

parseJSONList :: Value -> Parser [ConnectionPlan]

omittedField :: Maybe ConnectionPlan

ToJSON ConnectionPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ConnectionPlan -> Value

toEncoding :: ConnectionPlan -> Encoding

toJSONList :: [ConnectionPlan] -> Value

toEncodingList :: [ConnectionPlan] -> Encoding

omitField :: ConnectionPlan -> Bool

Show ConnectionPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ConnectionPlan -> ShowS

show :: ConnectionPlan -> String

showList :: [ConnectionPlan] -> ShowS

data InvitationLinkPlan Source #

Constructors

ILPOk 
ILPOwnLink 
ILPConnecting 

Fields

ILPKnown 

Fields

Instances

Instances details
FromJSON InvitationLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser InvitationLinkPlan

parseJSONList :: Value -> Parser [InvitationLinkPlan]

omittedField :: Maybe InvitationLinkPlan

ToJSON InvitationLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Show InvitationLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> InvitationLinkPlan -> ShowS

show :: InvitationLinkPlan -> String

showList :: [InvitationLinkPlan] -> ShowS

data GroupLinkPlan Source #

Instances

Instances details
FromJSON GroupLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser GroupLinkPlan

parseJSONList :: Value -> Parser [GroupLinkPlan]

omittedField :: Maybe GroupLinkPlan

ToJSON GroupLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: GroupLinkPlan -> Value

toEncoding :: GroupLinkPlan -> Encoding

toJSONList :: [GroupLinkPlan] -> Value

toEncodingList :: [GroupLinkPlan] -> Encoding

omitField :: GroupLinkPlan -> Bool

Show GroupLinkPlan Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> GroupLinkPlan -> ShowS

show :: GroupLinkPlan -> String

showList :: [GroupLinkPlan] -> ShowS

data ForwardConfirmation Source #

Constructors

FCFilesNotAccepted 

Fields

FCFilesInProgress 

Fields

FCFilesMissing 

Fields

FCFilesFailed 

Fields

Instances

Instances details
FromJSON ForwardConfirmation Source # 
Instance details

Defined in Simplex.Chat.Controller

ToJSON ForwardConfirmation Source # 
Instance details

Defined in Simplex.Chat.Controller

Show ForwardConfirmation Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ForwardConfirmation -> ShowS

show :: ForwardConfirmation -> String

showList :: [ForwardConfirmation] -> ShowS

newtype UserPwd Source #

Constructors

UserPwd 

Fields

Instances

Instances details
FromJSON UserPwd Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser UserPwd

parseJSONList :: Value -> Parser [UserPwd]

omittedField :: Maybe UserPwd

ToJSON UserPwd Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: UserPwd -> Value

toEncoding :: UserPwd -> Encoding

toJSONList :: [UserPwd] -> Value

toEncodingList :: [UserPwd] -> Encoding

omitField :: UserPwd -> Bool

Show UserPwd Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> UserPwd -> ShowS

show :: UserPwd -> String

showList :: [UserPwd] -> ShowS

Eq UserPwd Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

(==) :: UserPwd -> UserPwd -> Bool

(/=) :: UserPwd -> UserPwd -> Bool

newtype AgentQueueId Source #

Constructors

AgentQueueId QueueId 

Instances

Instances details
FromJSON AgentQueueId Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser AgentQueueId

parseJSONList :: Value -> Parser [AgentQueueId]

omittedField :: Maybe AgentQueueId

ToJSON AgentQueueId Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: AgentQueueId -> Value

toEncoding :: AgentQueueId -> Encoding

toJSONList :: [AgentQueueId] -> Value

toEncodingList :: [AgentQueueId] -> Encoding

omitField :: AgentQueueId -> Bool

Show AgentQueueId Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> AgentQueueId -> ShowS

show :: AgentQueueId -> String

showList :: [AgentQueueId] -> ShowS

Eq AgentQueueId Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

(==) :: AgentQueueId -> AgentQueueId -> Bool

(/=) :: AgentQueueId -> AgentQueueId -> Bool

StrEncoding AgentQueueId Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

strEncode :: AgentQueueId -> ByteString

strDecode :: ByteString -> Either String AgentQueueId

strP :: Parser AgentQueueId

data ArchiveConfig Source #

Constructors

ArchiveConfig 

Fields

Instances

Instances details
FromJSON ArchiveConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ArchiveConfig

parseJSONList :: Value -> Parser [ArchiveConfig]

omittedField :: Maybe ArchiveConfig

Show ArchiveConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ArchiveConfig -> ShowS

show :: ArchiveConfig -> String

showList :: [ArchiveConfig] -> ShowS

data DBEncryptionConfig Source #

Constructors

DBEncryptionConfig 

Instances

Instances details
FromJSON DBEncryptionConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser DBEncryptionConfig

parseJSONList :: Value -> Parser [DBEncryptionConfig]

omittedField :: Maybe DBEncryptionConfig

Show DBEncryptionConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> DBEncryptionConfig -> ShowS

show :: DBEncryptionConfig -> String

showList :: [DBEncryptionConfig] -> ShowS

newtype DBEncryptionKey Source #

Constructors

DBEncryptionKey ScrubbedBytes 

Instances

Instances details
FromJSON DBEncryptionKey Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser DBEncryptionKey

parseJSONList :: Value -> Parser [DBEncryptionKey]

omittedField :: Maybe DBEncryptionKey

IsString DBEncryptionKey Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

fromString :: String -> DBEncryptionKey

Show DBEncryptionKey Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> DBEncryptionKey -> ShowS

show :: DBEncryptionKey -> String

showList :: [DBEncryptionKey] -> ShowS

StrEncoding DBEncryptionKey Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

strEncode :: DBEncryptionKey -> ByteString

strDecode :: ByteString -> Either String DBEncryptionKey

strP :: Parser DBEncryptionKey

data AppFilePathsConfig Source #

Constructors

AppFilePathsConfig 

Fields

Instances

Instances details
FromJSON AppFilePathsConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser AppFilePathsConfig

parseJSONList :: Value -> Parser [AppFilePathsConfig]

omittedField :: Maybe AppFilePathsConfig

ToJSON AppFilePathsConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Show AppFilePathsConfig Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> AppFilePathsConfig -> ShowS

show :: AppFilePathsConfig -> String

showList :: [AppFilePathsConfig] -> ShowS

data SimpleNetCfg Source #

Constructors

SimpleNetCfg 

Fields

Instances

Instances details
Show SimpleNetCfg Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> SimpleNetCfg -> ShowS

show :: SimpleNetCfg -> String

showList :: [SimpleNetCfg] -> ShowS

data ConnSubResult Source #

Constructors

ConnSubResult 

Instances

Instances details
FromJSON ConnSubResult Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ConnSubResult

parseJSONList :: Value -> Parser [ConnSubResult]

omittedField :: Maybe ConnSubResult

ToJSON ConnSubResult Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ConnSubResult -> Value

toEncoding :: ConnSubResult -> Encoding

toJSONList :: [ConnSubResult] -> Value

toEncodingList :: [ConnSubResult] -> Encoding

omitField :: ConnSubResult -> Bool

Show ConnSubResult Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ConnSubResult -> ShowS

show :: ConnSubResult -> String

showList :: [ConnSubResult] -> ShowS

data ComposedMessage Source #

Constructors

ComposedMessage 

Fields

Instances

Instances details
FromJSON ComposedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ComposedMessage

parseJSONList :: Value -> Parser [ComposedMessage]

omittedField :: Maybe ComposedMessage

ToJSON ComposedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Show ComposedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ComposedMessage -> ShowS

show :: ComposedMessage -> String

showList :: [ComposedMessage] -> ShowS

data UpdatedMessage Source #

Instances

Instances details
FromJSON UpdatedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser UpdatedMessage

parseJSONList :: Value -> Parser [UpdatedMessage]

omittedField :: Maybe UpdatedMessage

ToJSON UpdatedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: UpdatedMessage -> Value

toEncoding :: UpdatedMessage -> Encoding

toJSONList :: [UpdatedMessage] -> Value

toEncodingList :: [UpdatedMessage] -> Encoding

omitField :: UpdatedMessage -> Bool

Show UpdatedMessage Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> UpdatedMessage -> ShowS

show :: UpdatedMessage -> String

showList :: [UpdatedMessage] -> ShowS

data ChatTagData Source #

Constructors

ChatTagData 

Fields

Instances

Instances details
FromJSON ChatTagData Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatTagData

parseJSONList :: Value -> Parser [ChatTagData]

omittedField :: Maybe ChatTagData

ToJSON ChatTagData Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatTagData -> Value

toEncoding :: ChatTagData -> Encoding

toJSONList :: [ChatTagData] -> Value

toEncodingList :: [ChatTagData] -> Encoding

omitField :: ChatTagData -> Bool

Show ChatTagData Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatTagData -> ShowS

show :: ChatTagData -> String

showList :: [ChatTagData] -> ShowS

data NtfConn Source #

Instances

Instances details
FromJSON NtfConn Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser NtfConn

parseJSONList :: Value -> Parser [NtfConn]

omittedField :: Maybe NtfConn

ToJSON NtfConn Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: NtfConn -> Value

toEncoding :: NtfConn -> Encoding

toJSONList :: [NtfConn] -> Value

toEncodingList :: [NtfConn] -> Encoding

omitField :: NtfConn -> Bool

Show NtfConn Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> NtfConn -> ShowS

show :: NtfConn -> String

showList :: [NtfConn] -> ShowS

data NtfMsgInfo Source #

Constructors

NtfMsgInfo 

Fields

Instances

Instances details
FromJSON NtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser NtfMsgInfo

parseJSONList :: Value -> Parser [NtfMsgInfo]

omittedField :: Maybe NtfMsgInfo

ToJSON NtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: NtfMsgInfo -> Value

toEncoding :: NtfMsgInfo -> Encoding

toJSONList :: [NtfMsgInfo] -> Value

toEncodingList :: [NtfMsgInfo] -> Encoding

omitField :: NtfMsgInfo -> Bool

Show NtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> NtfMsgInfo -> ShowS

show :: NtfMsgInfo -> String

showList :: [NtfMsgInfo] -> ShowS

data RcvNtfMsgInfo Source #

Constructors

RNMInfo 

Fields

RNMError 

Fields

Instances

Instances details
FromJSON RcvNtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser RcvNtfMsgInfo

parseJSONList :: Value -> Parser [RcvNtfMsgInfo]

omittedField :: Maybe RcvNtfMsgInfo

ToJSON RcvNtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: RcvNtfMsgInfo -> Value

toEncoding :: RcvNtfMsgInfo -> Encoding

toJSONList :: [RcvNtfMsgInfo] -> Value

toEncodingList :: [RcvNtfMsgInfo] -> Encoding

omitField :: RcvNtfMsgInfo -> Bool

Show RcvNtfMsgInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RcvNtfMsgInfo -> ShowS

show :: RcvNtfMsgInfo -> String

showList :: [RcvNtfMsgInfo] -> ShowS

receivedMsgInfo :: Either AgentErrorType (Maybe SMPMsgMeta) -> RcvNtfMsgInfo Source #

ntfMsgInfo_ :: MsgId -> SystemTime -> NtfMsgInfo Source #

data NtfMsgAckInfo Source #

Constructors

NtfMsgAckInfo 

Fields

Instances

Instances details
FromJSON NtfMsgAckInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser NtfMsgAckInfo

parseJSONList :: Value -> Parser [NtfMsgAckInfo]

omittedField :: Maybe NtfMsgAckInfo

ToJSON NtfMsgAckInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: NtfMsgAckInfo -> Value

toEncoding :: NtfMsgAckInfo -> Encoding

toJSONList :: [NtfMsgAckInfo] -> Value

toEncodingList :: [NtfMsgAckInfo] -> Encoding

omitField :: NtfMsgAckInfo -> Bool

Show NtfMsgAckInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> NtfMsgAckInfo -> ShowS

show :: NtfMsgAckInfo -> String

showList :: [NtfMsgAckInfo] -> ShowS

ntfMsgAckInfo :: MsgId -> Maybe UTCTime -> NtfMsgAckInfo Source #

crNtfToken :: (DeviceToken, NtfTknStatus, NotificationsMode, NtfServer) -> ChatResponse Source #

data SwitchProgress Source #

Constructors

SwitchProgress 

Fields

Instances

Instances details
FromJSON SwitchProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser SwitchProgress

parseJSONList :: Value -> Parser [SwitchProgress]

omittedField :: Maybe SwitchProgress

ToJSON SwitchProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: SwitchProgress -> Value

toEncoding :: SwitchProgress -> Encoding

toJSONList :: [SwitchProgress] -> Value

toEncodingList :: [SwitchProgress] -> Encoding

omitField :: SwitchProgress -> Bool

Show SwitchProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> SwitchProgress -> ShowS

show :: SwitchProgress -> String

showList :: [SwitchProgress] -> ShowS

data RatchetSyncProgress Source #

Constructors

RatchetSyncProgress 

Fields

Instances

Instances details
FromJSON RatchetSyncProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

ToJSON RatchetSyncProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

Show RatchetSyncProgress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RatchetSyncProgress -> ShowS

show :: RatchetSyncProgress -> String

showList :: [RatchetSyncProgress] -> ShowS

data ParsedServerAddress Source #

Constructors

ParsedServerAddress 

Fields

Instances

Instances details
FromJSON ParsedServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

ToJSON ParsedServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

Show ParsedServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ParsedServerAddress -> ShowS

show :: ParsedServerAddress -> String

showList :: [ParsedServerAddress] -> ShowS

data ServerAddress Source #

Constructors

ServerAddress 

Fields

Instances

Instances details
FromJSON ServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ServerAddress

parseJSONList :: Value -> Parser [ServerAddress]

omittedField :: Maybe ServerAddress

ToJSON ServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ServerAddress -> Value

toEncoding :: ServerAddress -> Encoding

toJSONList :: [ServerAddress] -> Value

toEncodingList :: [ServerAddress] -> Encoding

omitField :: ServerAddress -> Bool

Show ServerAddress Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ServerAddress -> ShowS

show :: ServerAddress -> String

showList :: [ServerAddress] -> ShowS

data TimedMessagesEnabled Source #

Instances

Instances details
Show TimedMessagesEnabled Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> TimedMessagesEnabled -> ShowS

show :: TimedMessagesEnabled -> String

showList :: [TimedMessagesEnabled] -> ShowS

data ChatItemDeletion Source #

Instances

Instances details
FromJSON ChatItemDeletion Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatItemDeletion

parseJSONList :: Value -> Parser [ChatItemDeletion]

omittedField :: Maybe ChatItemDeletion

ToJSON ChatItemDeletion Source # 
Instance details

Defined in Simplex.Chat.Controller

Show ChatItemDeletion Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatItemDeletion -> ShowS

show :: ChatItemDeletion -> String

showList :: [ChatItemDeletion] -> ShowS

data ChatLogLevel Source #

Instances

Instances details
Show ChatLogLevel Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatLogLevel -> ShowS

show :: ChatLogLevel -> String

showList :: [ChatLogLevel] -> ShowS

Eq ChatLogLevel Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

(==) :: ChatLogLevel -> ChatLogLevel -> Bool

(/=) :: ChatLogLevel -> ChatLogLevel -> Bool

Ord ChatLogLevel Source # 
Instance details

Defined in Simplex.Chat.Controller

data CoreVersionInfo Source #

Constructors

CoreVersionInfo 

Fields

Instances

Instances details
FromJSON CoreVersionInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser CoreVersionInfo

parseJSONList :: Value -> Parser [CoreVersionInfo]

omittedField :: Maybe CoreVersionInfo

ToJSON CoreVersionInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Show CoreVersionInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> CoreVersionInfo -> ShowS

show :: CoreVersionInfo -> String

showList :: [CoreVersionInfo] -> ShowS

data SlowSQLQuery Source #

Constructors

SlowSQLQuery 

Fields

Instances

Instances details
FromJSON SlowSQLQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser SlowSQLQuery

parseJSONList :: Value -> Parser [SlowSQLQuery]

omittedField :: Maybe SlowSQLQuery

ToJSON SlowSQLQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: SlowSQLQuery -> Value

toEncoding :: SlowSQLQuery -> Encoding

toJSONList :: [SlowSQLQuery] -> Value

toEncodingList :: [SlowSQLQuery] -> Encoding

omitField :: SlowSQLQuery -> Bool

Show SlowSQLQuery Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> SlowSQLQuery -> ShowS

show :: SlowSQLQuery -> String

showList :: [SlowSQLQuery] -> ShowS

data ChatError Source #

Instances

Instances details
FromJSON ChatError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatError

parseJSONList :: Value -> Parser [ChatError]

omittedField :: Maybe ChatError

ToJSON ChatError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatError -> Value

toEncoding :: ChatError -> Encoding

toJSONList :: [ChatError] -> Value

toEncodingList :: [ChatError] -> Encoding

omitField :: ChatError -> Bool

Exception ChatError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: ChatError -> SomeException

fromException :: SomeException -> Maybe ChatError

displayException :: ChatError -> String

Show ChatError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatError -> ShowS

show :: ChatError -> String

showList :: [ChatError] -> ShowS

AnyError ChatError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

fromSomeException :: SomeException -> ChatError

data ChatErrorType Source #

Constructors

CENoActiveUser 
CENoConnectionUser 
CENoSndFileUser 
CENoRcvFileUser 
CEUserUnknown 
CEActiveUserExists 
CEUserExists 
CEDifferentActiveUser 

Fields

CECantDeleteActiveUser 

Fields

CECantDeleteLastUser 

Fields

CECantHideLastUser 

Fields

CEHiddenUserAlwaysMuted 

Fields

CEEmptyUserPassword 

Fields

CEUserAlreadyHidden 

Fields

CEUserNotHidden 

Fields

CEInvalidDisplayName 

Fields

CEChatNotStarted 
CEChatNotStopped 
CEChatStoreChanged 
CEInvalidConnReq 
CEUnsupportedConnReq 
CEInvalidChatMessage 

Fields

CEConnReqMessageProhibited 
CEContactNotFound 
CEContactNotReady 

Fields

CEContactNotActive 

Fields

CEContactDisabled 

Fields

CEConnectionDisabled 
CEGroupUserRole 
CEGroupMemberInitialRole 
CEContactIncognitoCantInvite 
CEGroupIncognitoCantInvite 
CEGroupContactRole 
CEGroupDuplicateMember 
CEGroupDuplicateMemberId 
CEGroupNotJoined 

Fields

CEGroupMemberNotActive 
CECantBlockMemberForSelf 
CEGroupMemberUserRemoved 
CEGroupMemberNotFound 
CEGroupCantResendInvitation 
CEGroupInternal 

Fields

CEFileNotFound 

Fields

CEFileSize 

Fields

CEFileAlreadyReceiving 

Fields

CEFileCancelled 

Fields

CEFileCancel 

Fields

CEFileAlreadyExists 

Fields

CEFileWrite 

Fields

CEFileSend 

Fields

CEFileRcvChunk 

Fields

CEFileInternal 

Fields

CEFileImageType 

Fields

CEFileImageSize 

Fields

CEFileNotReceived 
CEFileNotApproved 

Fields

CEFallbackToSMPProhibited 
CEInlineFileProhibited 
CEInvalidForward 
CEInvalidChatItemUpdate 
CEInvalidChatItemDelete 
CEHasCurrentCall 
CENoCurrentCall 
CECallContact 

Fields

CECallState 
CEDirectMessagesProhibited 
CEAgentVersion 
CEAgentNoSubResult 
CECommandError 

Fields

CEServerProtocol 

Fields

CEAgentCommandError 

Fields

CEInvalidFileDescription 

Fields

CEConnectionIncognitoChangeProhibited 
CEConnectionUserChangeProhibited 
CEPeerChatVRangeIncompatible 
CEInternalError 

Fields

CEException 

Fields

Instances

Instances details
FromJSON ChatErrorType Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ChatErrorType

parseJSONList :: Value -> Parser [ChatErrorType]

omittedField :: Maybe ChatErrorType

ToJSON ChatErrorType Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ChatErrorType -> Value

toEncoding :: ChatErrorType -> Encoding

toJSONList :: [ChatErrorType] -> Value

toEncodingList :: [ChatErrorType] -> Encoding

omitField :: ChatErrorType -> Bool

Exception ChatErrorType Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: ChatErrorType -> SomeException

fromException :: SomeException -> Maybe ChatErrorType

displayException :: ChatErrorType -> String

Show ChatErrorType Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ChatErrorType -> ShowS

show :: ChatErrorType -> String

showList :: [ChatErrorType] -> ShowS

data DatabaseError Source #

Instances

Instances details
FromJSON DatabaseError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser DatabaseError

parseJSONList :: Value -> Parser [DatabaseError]

omittedField :: Maybe DatabaseError

ToJSON DatabaseError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: DatabaseError -> Value

toEncoding :: DatabaseError -> Encoding

toJSONList :: [DatabaseError] -> Value

toEncodingList :: [DatabaseError] -> Encoding

omitField :: DatabaseError -> Bool

Exception DatabaseError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: DatabaseError -> SomeException

fromException :: SomeException -> Maybe DatabaseError

displayException :: DatabaseError -> String

Show DatabaseError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> DatabaseError -> ShowS

show :: DatabaseError -> String

showList :: [DatabaseError] -> ShowS

data SQLiteError Source #

Constructors

SQLiteErrorNotADatabase 
SQLiteError 

Fields

Instances

Instances details
FromJSON SQLiteError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser SQLiteError

parseJSONList :: Value -> Parser [SQLiteError]

omittedField :: Maybe SQLiteError

ToJSON SQLiteError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: SQLiteError -> Value

toEncoding :: SQLiteError -> Encoding

toJSONList :: [SQLiteError] -> Value

toEncodingList :: [SQLiteError] -> Encoding

omitField :: SQLiteError -> Bool

Exception SQLiteError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: SQLiteError -> SomeException

fromException :: SomeException -> Maybe SQLiteError

displayException :: SQLiteError -> String

Show SQLiteError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> SQLiteError -> ShowS

show :: SQLiteError -> String

showList :: [SQLiteError] -> ShowS

data RemoteHostError Source #

Instances

Instances details
FromJSON RemoteHostError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser RemoteHostError

parseJSONList :: Value -> Parser [RemoteHostError]

omittedField :: Maybe RemoteHostError

ToJSON RemoteHostError Source # 
Instance details

Defined in Simplex.Chat.Controller

Exception RemoteHostError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: RemoteHostError -> SomeException

fromException :: SomeException -> Maybe RemoteHostError

displayException :: RemoteHostError -> String

Show RemoteHostError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RemoteHostError -> ShowS

show :: RemoteHostError -> String

showList :: [RemoteHostError] -> ShowS

data RemoteHostStopReason Source #

Instances

Instances details
FromJSON RemoteHostStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

ToJSON RemoteHostStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Exception RemoteHostStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: RemoteHostStopReason -> SomeException

fromException :: SomeException -> Maybe RemoteHostStopReason

displayException :: RemoteHostStopReason -> String

Show RemoteHostStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RemoteHostStopReason -> ShowS

show :: RemoteHostStopReason -> String

showList :: [RemoteHostStopReason] -> ShowS

data RemoteCtrlError Source #

Instances

Instances details
FromJSON RemoteCtrlError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser RemoteCtrlError

parseJSONList :: Value -> Parser [RemoteCtrlError]

omittedField :: Maybe RemoteCtrlError

ToJSON RemoteCtrlError Source # 
Instance details

Defined in Simplex.Chat.Controller

Exception RemoteCtrlError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: RemoteCtrlError -> SomeException

fromException :: SomeException -> Maybe RemoteCtrlError

displayException :: RemoteCtrlError -> String

Show RemoteCtrlError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RemoteCtrlError -> ShowS

show :: RemoteCtrlError -> String

showList :: [RemoteCtrlError] -> ShowS

data RemoteCtrlStopReason Source #

Instances

Instances details
FromJSON RemoteCtrlStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

ToJSON RemoteCtrlStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Exception RemoteCtrlStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: RemoteCtrlStopReason -> SomeException

fromException :: SomeException -> Maybe RemoteCtrlStopReason

displayException :: RemoteCtrlStopReason -> String

Show RemoteCtrlStopReason Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RemoteCtrlStopReason -> ShowS

show :: RemoteCtrlStopReason -> String

showList :: [RemoteCtrlStopReason] -> ShowS

data ArchiveError Source #

Constructors

AEImport 

Fields

AEFileError 

Fields

Instances

Instances details
FromJSON ArchiveError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser ArchiveError

parseJSONList :: Value -> Parser [ArchiveError]

omittedField :: Maybe ArchiveError

ToJSON ArchiveError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: ArchiveError -> Value

toEncoding :: ArchiveError -> Encoding

toJSONList :: [ArchiveError] -> Value

toEncodingList :: [ArchiveError] -> Encoding

omitField :: ArchiveError -> Bool

Exception ArchiveError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toException :: ArchiveError -> SomeException

fromException :: SomeException -> Maybe ArchiveError

displayException :: ArchiveError -> String

Show ArchiveError Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> ArchiveError -> ShowS

show :: ArchiveError -> String

showList :: [ArchiveError] -> ShowS

data RemoteCtrlSession Source #

Host (mobile) side of transport to process remote commands and forward notifications

Constructors

RCSessionStarting 
RCSessionSearching 

Fields

RCSessionConnecting 

Fields

RCSessionPendingConfirmation 

Fields

RCSessionConnected 

Fields

data RemoteCtrlInfo Source #

UI-accessible remote controller information

Instances

Instances details
FromJSON RemoteCtrlInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

parseJSON :: Value -> Parser RemoteCtrlInfo

parseJSONList :: Value -> Parser [RemoteCtrlInfo]

omittedField :: Maybe RemoteCtrlInfo

ToJSON RemoteCtrlInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

toJSON :: RemoteCtrlInfo -> Value

toEncoding :: RemoteCtrlInfo -> Encoding

toJSONList :: [RemoteCtrlInfo] -> Value

toEncodingList :: [RemoteCtrlInfo] -> Encoding

omitField :: RemoteCtrlInfo -> Bool

Show RemoteCtrlInfo Source # 
Instance details

Defined in Simplex.Chat.Controller

Methods

showsPrec :: Int -> RemoteCtrlInfo -> ShowS

show :: RemoteCtrlInfo -> String

showList :: [RemoteCtrlInfo] -> ShowS

type CM' a = ReaderT ChatController IO a Source #

type CM a = ExceptT ChatError (ReaderT ChatController IO) a Source #

chatReadVar :: (ChatController -> TVar a) -> CM a Source #

chatReadVar' :: (ChatController -> TVar a) -> CM' a Source #

chatWriteVar :: (ChatController -> TVar a) -> a -> CM () Source #

chatWriteVar' :: (ChatController -> TVar a) -> a -> CM' () Source #

chatModifyVar :: (ChatController -> TVar a) -> (a -> a) -> CM () Source #

chatModifyVar' :: (ChatController -> TVar a) -> (a -> a) -> CM' () Source #

onChatError :: CM a -> CM b -> CM a Source #

throwCmdError :: String -> CM a Source #

toView :: ChatEvent -> CM () Source #

Emit local events.

withStore' :: (Connection -> IO a) -> CM a Source #

withFastStore' :: (Connection -> IO a) -> CM a Source #

withStore :: (Connection -> ExceptT StoreError IO a) -> CM a Source #

withFastStore :: (Connection -> ExceptT StoreError IO a) -> CM a Source #

withStorePriority :: Bool -> (Connection -> ExceptT StoreError IO a) -> CM a Source #

withStoreBatch :: Traversable t => (Connection -> t (IO (Either ChatError a))) -> CM' (t (Either ChatError a)) Source #

handleDBErrors :: [Handler (Either ChatError a)] Source #

withStoreBatch' :: Traversable t => (Connection -> t (IO a)) -> CM' (t (Either ChatError a)) Source #

withAgent :: (AgentClient -> ExceptT AgentErrorType IO a) -> CM a Source #

withAgent' :: (AgentClient -> IO a) -> CM' a Source #