| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Library.Commands
Synopsis
- _defaultNtfServers :: [NtfServer]
- maxImageSize :: Integer
- imageExtensions :: [String]
- fixedImagePreview :: ImageData
- imageFilePrefix :: String
- voiceFilePrefix :: String
- videoFilePrefix :: String
- startChatController :: Bool -> Bool -> CM' (Async ())
- getConnsToSub :: User -> CM [ConnId]
- subscribeUsers :: Bool -> [User] -> CM' ()
- startFilesToReceive :: [User] -> CM' ()
- startReceiveUserFiles :: User -> CM ()
- restoreCalls :: CM' ()
- stopChatController :: ChatController -> IO ()
- updateNetworkConfig :: NetworkConfig -> SimpleNetCfg -> NetworkConfig
- useServers :: Foldable f => RandomAgentServers -> [(Text, ServerOperator)] -> f UserOperatorServers -> (NonEmpty (ServerCfg 'PSMP), NonEmpty (ServerCfg 'PXFTP))
- execChatCommand :: Maybe RemoteHostId -> ByteString -> Int -> CM' (Either ChatError ChatResponse)
- execChatCommand' :: ChatCommand -> Int -> CM' (Either ChatError ChatResponse)
- execRemoteCommand :: RemoteHostId -> ChatCommand -> ByteString -> Int -> CM' (Either ChatError ChatResponse)
- handleCommandError :: CM ChatResponse -> CM' (Either ChatError ChatResponse)
- parseChatCommand :: ByteString -> Either String ChatCommand
- processChatCommand :: VersionRangeChat -> NetworkRequestMode -> ChatCommand -> CM ChatResponse
- data ConnectViaContactResult
- = CVRConnectedContact Contact
- | CVRSentInvitation Connection (Maybe Profile)
- protocolServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP])
- updatedServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> [AUserServer p] -> UserOperatorServers -> UpdatedUserOperatorServers
- type ComposedMessageReq = (ComposedMessage, Maybe CIForwardedFrom, (Text, Maybe MarkdownList), Map MemberName CIMention)
- composedMessage :: Maybe CryptoFile -> MsgContent -> ComposedMessage
- composedMessageReq :: ComposedMessage -> ComposedMessageReq
- composedMessageReqMentions :: Connection -> User -> GroupInfo -> ComposedMessage -> ExceptT StoreError IO ComposedMessageReq
- data ChangedProfileContact = ChangedProfileContact {
- ct :: Contact
- ct' :: Contact
- mergedProfile' :: Profile
- conn :: Connection
- createContactsSndFeatureItems :: User -> [ChangedProfileContact] -> CM' ()
- assertDirectAllowed :: forall (e :: MsgEncoding). User -> MsgDirection -> Contact -> CMEventTag e -> CM ()
- startExpireCIThread :: User -> CM' ()
- setChatItemsExpiration :: User -> Int64 -> Int -> CM' ()
- setExpireCIFlag :: User -> Bool -> CM' ()
- setAllExpireCIFlags :: Bool -> CM' ()
- agentSubscriber :: CM' ()
- type AgentSubResult = Map ConnId (Either AgentErrorType (Maybe ClientServiceId))
- cleanupManager :: CM ()
- expireChatItems :: User -> Int64 -> Bool -> CM ()
- expireContactChatItems :: User -> VersionRangeChat -> Int64 -> ContactId -> CM ()
- expireGroupChatItems :: User -> VersionRangeChat -> Int64 -> UTCTime -> GroupId -> CM ()
- withExpirationDate :: Int64 -> Maybe Int64 -> (UTCTime -> CM ()) -> CM ()
- chatCommandP :: Parser ChatCommand
- displayNameP :: Parser Text
- displayNameP_ :: Parser ByteString
- mkValidName :: String -> String
Documentation
_defaultNtfServers :: [NtfServer] Source #
maxImageSize :: Integer Source #
imageExtensions :: [String] Source #
imageFilePrefix :: String Source #
voiceFilePrefix :: String Source #
videoFilePrefix :: String Source #
startChatController :: Bool -> Bool -> CM' (Async ()) Source #
getConnsToSub :: User -> CM [ConnId] Source #
subscribeUsers :: Bool -> [User] -> CM' () Source #
startFilesToReceive :: [User] -> CM' () Source #
startReceiveUserFiles :: User -> CM () Source #
restoreCalls :: CM' () Source #
stopChatController :: ChatController -> IO () Source #
updateNetworkConfig :: NetworkConfig -> SimpleNetCfg -> NetworkConfig Source #
useServers :: Foldable f => RandomAgentServers -> [(Text, ServerOperator)] -> f UserOperatorServers -> (NonEmpty (ServerCfg 'PSMP), NonEmpty (ServerCfg 'PXFTP)) Source #
execChatCommand :: Maybe RemoteHostId -> ByteString -> Int -> CM' (Either ChatError ChatResponse) Source #
execChatCommand' :: ChatCommand -> Int -> CM' (Either ChatError ChatResponse) Source #
execRemoteCommand :: RemoteHostId -> ChatCommand -> ByteString -> Int -> CM' (Either ChatError ChatResponse) Source #
handleCommandError :: CM ChatResponse -> CM' (Either ChatError ChatResponse) Source #
parseChatCommand :: ByteString -> Either String ChatCommand Source #
processChatCommand :: VersionRangeChat -> NetworkRequestMode -> ChatCommand -> CM ChatResponse Source #
Chat API commands interpreted in context of a local zone
data ConnectViaContactResult Source #
Constructors
| CVRConnectedContact Contact | |
| CVRSentInvitation Connection (Maybe Profile) |
protocolServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) -> ([Maybe ServerOperator], [UserServer 'PSMP], [UserServer 'PXFTP]) Source #
updatedServers :: forall (p :: ProtocolType). UserProtocol p => SProtocolType p -> [AUserServer p] -> UserOperatorServers -> UpdatedUserOperatorServers Source #
type ComposedMessageReq = (ComposedMessage, Maybe CIForwardedFrom, (Text, Maybe MarkdownList), Map MemberName CIMention) Source #
composedMessage :: Maybe CryptoFile -> MsgContent -> ComposedMessage Source #
composedMessageReqMentions :: Connection -> User -> GroupInfo -> ComposedMessage -> ExceptT StoreError IO ComposedMessageReq Source #
data ChangedProfileContact Source #
Constructors
| ChangedProfileContact | |
Fields
| |
createContactsSndFeatureItems :: User -> [ChangedProfileContact] -> CM' () Source #
assertDirectAllowed :: forall (e :: MsgEncoding). User -> MsgDirection -> Contact -> CMEventTag e -> CM () Source #
startExpireCIThread :: User -> CM' () Source #
setChatItemsExpiration :: User -> Int64 -> Int -> CM' () Source #
setExpireCIFlag :: User -> Bool -> CM' () Source #
setAllExpireCIFlags :: Bool -> CM' () Source #
agentSubscriber :: CM' () Source #
type AgentSubResult = Map ConnId (Either AgentErrorType (Maybe ClientServiceId)) Source #
cleanupManager :: CM () Source #
expireChatItems :: User -> Int64 -> Bool -> CM () Source #
expireContactChatItems :: User -> VersionRangeChat -> Int64 -> ContactId -> CM () Source #
expireGroupChatItems :: User -> VersionRangeChat -> Int64 -> UTCTime -> GroupId -> CM () Source #
withExpirationDate :: Int64 -> Maybe Int64 -> (UTCTime -> CM ()) -> CM () Source #
chatCommandP :: Parser ChatCommand Source #
displayNameP :: Parser Text Source #
displayNameP_ :: Parser ByteString Source #
mkValidName :: String -> String Source #