| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Types
Synopsis
- class IsContact a where
- contactId' :: a -> ContactId
- profile' :: a -> LocalProfile
- localDisplayName' :: a -> ContactName
- preferences' :: a -> Maybe Preferences
- newtype AgentUserId = AgentUserId UserId
- aUserId :: User -> UserId
- data User = User {
- userId :: UserId
- agentUserId :: AgentUserId
- userContactId :: ContactId
- localDisplayName :: ContactName
- profile :: LocalProfile
- fullPreferences :: FullPreferences
- activeUser :: Bool
- activeOrder :: Int64
- viewPwdHash :: Maybe UserPwdHash
- showNtfs :: Bool
- sendRcptsContacts :: Bool
- sendRcptsSmallGroups :: Bool
- autoAcceptMemberContacts :: BoolDef
- userMemberProfileUpdatedAt :: Maybe UTCTime
- uiThemes :: Maybe UIThemeEntityOverrides
- data NewUser = NewUser {
- profile :: Maybe Profile
- pastTimestamp :: Bool
- newtype B64UrlByteString = B64UrlByteString ByteString
- data UserPwdHash = UserPwdHash {}
- data UserInfo = UserInfo {
- user :: User
- unreadCount :: Int
- type ContactId = Int64
- type ProfileId = Int64
- type ChatTagId = Int64
- data Contact = Contact {
- contactId :: ContactId
- localDisplayName :: ContactName
- profile :: LocalProfile
- activeConn :: Maybe Connection
- contactUsed :: Bool
- contactStatus :: ContactStatus
- chatSettings :: ChatSettings
- userPreferences :: Preferences
- mergedPreferences :: ContactUserPreferences
- createdAt :: UTCTime
- updatedAt :: UTCTime
- chatTs :: Maybe UTCTime
- preparedContact :: Maybe PreparedContact
- contactRequestId :: Maybe Int64
- contactGroupMemberId :: Maybe GroupMemberId
- contactGrpInvSent :: Bool
- groupDirectInv :: Maybe GroupDirectInvitation
- chatTags :: [ChatTagId]
- chatItemTTL :: Maybe Int64
- uiThemes :: Maybe UIThemeEntityOverrides
- chatDeleted :: Bool
- customData :: Maybe CustomData
- contactRequestId' :: Contact -> Maybe Int64
- data PreparedContact = PreparedContact {
- connLinkToConnect :: ACreatedConnLink
- uiConnLinkType :: ConnectionMode
- welcomeSharedMsgId :: Maybe SharedMsgId
- requestSharedMsgId :: Maybe SharedMsgId
- data GroupDirectInvitation = GroupDirectInvitation {
- groupDirectInvLink :: ConnReqInvitation
- fromGroupId_ :: Maybe GroupId
- fromGroupMemberId_ :: Maybe GroupMemberId
- fromGroupMemberConnId_ :: Maybe Int64
- groupDirectInvStartedConnection :: Bool
- newtype SharedMsgId = SharedMsgId ByteString
- newtype CustomData = CustomData Object
- contactConn :: Contact -> Maybe Connection
- contactConnId :: Contact -> Maybe ConnId
- type IncognitoEnabled = Bool
- contactConnIncognito :: Contact -> IncognitoEnabled
- contactDirect :: Contact -> Bool
- connDirect :: Connection -> Bool
- directOrUsed :: Contact -> Bool
- anyDirectOrUsed :: Contact -> Bool
- contactReady :: Contact -> Bool
- contactActive :: Contact -> Bool
- contactDeleted :: Contact -> Bool
- contactSecurityCode :: Contact -> Maybe SecurityCode
- contactPQEnabled :: Contact -> PQEncryption
- data ContactStatus
- data ContactRef = ContactRef {
- contactId :: ContactId
- connId :: Int64
- agentConnId :: AgentConnId
- localDisplayName :: ContactName
- data ContactOrMember
- contactOrMemberIds :: ContactOrMember -> (Maybe ContactId, Maybe GroupMemberId)
- contactOrMemberIncognito :: ContactOrMember -> IncognitoEnabled
- data UserContact = UserContact {
- userContactLinkId :: Int64
- connReqContact :: ConnReqContact
- groupId :: Maybe GroupId
- data UserContactRequest = UserContactRequest {
- contactRequestId :: Int64
- agentInvitationId :: AgentInvId
- contactId_ :: Maybe ContactId
- businessGroupId_ :: Maybe GroupId
- userContactLinkId_ :: Maybe Int64
- cReqChatVRange :: VersionRangeChat
- localDisplayName :: ContactName
- profileId :: Int64
- profile :: Profile
- createdAt :: UTCTime
- updatedAt :: UTCTime
- xContactId :: Maybe XContactId
- pqSupport :: PQSupport
- welcomeSharedMsgId :: Maybe SharedMsgId
- requestSharedMsgId :: Maybe SharedMsgId
- newtype XContactId = XContactId ByteString
- newtype ConnReqUriHash = ConnReqUriHash {
- unConnReqUriHash :: ByteString
- data RequestEntity
- type RepeatRequest = Bool
- data RequestStage
- = RSAcceptedRequest { }
- | RSCurrentRequest {
- previousRequest :: Maybe UserContactRequest
- currentRequest :: UserContactRequest
- requestEntity_ :: Maybe RequestEntity
- type UserName = Text
- type ContactName = Text
- type MemberName = Text
- type GroupName = Text
- optionalFullName :: ContactName -> Text -> Maybe Text -> Text
- data Group = Group {
- groupInfo :: GroupInfo
- members :: [GroupMember]
- type GroupId = Int64
- data GroupInfo = GroupInfo {
- groupId :: GroupId
- useRelays :: BoolDef
- localDisplayName :: GroupName
- groupProfile :: GroupProfile
- localAlias :: Text
- businessChat :: Maybe BusinessChatInfo
- fullGroupPreferences :: FullGroupPreferences
- membership :: GroupMember
- chatSettings :: ChatSettings
- createdAt :: UTCTime
- updatedAt :: UTCTime
- chatTs :: Maybe UTCTime
- userMemberProfileSentAt :: Maybe UTCTime
- preparedGroup :: Maybe PreparedGroup
- chatTags :: [ChatTagId]
- chatItemTTL :: Maybe Int64
- uiThemes :: Maybe UIThemeEntityOverrides
- customData :: Maybe CustomData
- groupSummary :: GroupSummary
- membersRequireAttention :: Int
- viaGroupLinkUri :: Maybe ConnReqContact
- data BusinessChatType
- data PreparedGroup = PreparedGroup {
- connLinkToConnect :: CreatedLinkContact
- connLinkPreparedConnection :: Bool
- connLinkStartedConnection :: Bool
- welcomeSharedMsgId :: Maybe SharedMsgId
- requestSharedMsgId :: Maybe SharedMsgId
- groupName' :: GroupInfo -> GroupName
- data GroupSummary = GroupSummary {
- currentMembers :: Int64
- data GroupLink = GroupLink {}
- data ContactOrGroup
- data PreparedChatEntity
- = PCEContact Contact
- | PCEGroup { }
- contactAndGroupIds :: ContactOrGroup -> (Maybe ContactId, Maybe GroupId)
- data ChatSettings = ChatSettings {
- enableNtfs :: MsgFilter
- sendRcpts :: Maybe Bool
- favorite :: Bool
- defaultChatSettings :: ChatSettings
- chatHasNtfs :: ChatSettings -> Bool
- data MsgFilter
- = MFNone
- | MFAll
- | MFMentions
- msgFilterInt :: MsgFilter -> Int
- msgFilterIntP :: Int64 -> Maybe MsgFilter
- fromIntField_ :: Typeable a => (Int64 -> Maybe a) -> FieldParser a
- featureAllowed :: forall (f :: ChatFeature). SChatFeature f -> (PrefEnabled -> Bool) -> Contact -> Bool
- groupFeatureAllowed :: forall (f :: GroupFeature). GroupFeatureNoRoleI f => SGroupFeature f -> GroupInfo -> Bool
- groupFeatureMemberAllowed :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupMember -> GroupInfo -> Bool
- groupFeatureUserAllowed :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupInfo -> Bool
- mergeUserChatPrefs :: User -> Contact -> FullPreferences
- mergeUserChatPrefs' :: User -> Bool -> Preferences -> FullPreferences
- updateMergedPreferences :: User -> Contact -> Contact
- contactUserPreferences :: User -> Preferences -> Maybe Preferences -> Bool -> ContactUserPreferences
- data Profile = Profile {
- displayName :: ContactName
- fullName :: Text
- shortDescr :: Maybe Text
- image :: Maybe ImageData
- contactLink :: Maybe ConnLinkContact
- preferences :: Maybe Preferences
- peerType :: Maybe ChatPeerType
- data ChatPeerType
- profileFromName :: ContactName -> Profile
- profilesMatch :: LocalProfile -> LocalProfile -> Bool
- data IncognitoProfile
- fromIncognitoProfile :: IncognitoProfile -> Profile
- userProfileDirect :: User -> Maybe Profile -> Maybe Contact -> Bool -> Profile
- type LocalAlias = Text
- data LocalProfile = LocalProfile {
- profileId :: ProfileId
- displayName :: ContactName
- fullName :: Text
- shortDescr :: Maybe Text
- image :: Maybe ImageData
- contactLink :: Maybe ConnLinkContact
- preferences :: Maybe Preferences
- peerType :: Maybe ChatPeerType
- localAlias :: LocalAlias
- localProfileId :: LocalProfile -> ProfileId
- toLocalProfile :: ProfileId -> Profile -> LocalAlias -> LocalProfile
- fromLocalProfile :: LocalProfile -> Profile
- data GroupProfile = GroupProfile {
- displayName :: GroupName
- fullName :: Text
- shortDescr :: Maybe Text
- description :: Maybe Text
- image :: Maybe ImageData
- groupPreferences :: Maybe GroupPreferences
- memberAdmission :: Maybe GroupMemberAdmission
- data GroupMemberAdmission = GroupMemberAdmission {
- review :: Maybe MemberCriteria
- data MemberCriteria = MCAll
- emptyGroupMemberAdmission :: GroupMemberAdmission
- newtype ImageData = ImageData Text
- data CReqClientData = CRDataGroup {}
- newtype GroupLinkId = GroupLinkId {
- unGroupLinkId :: ByteString
- data GroupInvitation = GroupInvitation {
- fromMember :: MemberIdRole
- invitedMember :: MemberIdRole
- connRequest :: ConnReqInvitation
- groupProfile :: GroupProfile
- business :: Maybe BusinessChatInfo
- groupLinkId :: Maybe GroupLinkId
- groupSize :: Maybe Int
- data GroupLinkInvitation = GroupLinkInvitation {
- fromMember :: MemberIdRole
- fromMemberName :: ContactName
- invitedMember :: MemberIdRole
- groupProfile :: GroupProfile
- accepted :: Maybe GroupAcceptance
- business :: Maybe BusinessChatInfo
- groupSize :: Maybe Int
- data GroupLinkRejection = GroupLinkRejection {}
- data GroupRejectionReason
- = GRRLongName
- | GRRBlockedName
- | GRRUnknown {
- text :: Text
- data MemberIdRole = MemberIdRole {}
- data IntroInvitation = IntroInvitation {}
- data MemberInfo = MemberInfo {
- memberId :: MemberId
- memberRole :: GroupMemberRole
- v :: Maybe ChatVersionRange
- profile :: Profile
- data BusinessChatInfo = BusinessChatInfo {}
- data MemberRestrictionStatus
- = MRSBlocked
- | MRSUnrestricted
- | MRSUnknown Text
- mrsBlocked :: MemberRestrictionStatus -> Bool
- data MemberRestrictions = MemberRestrictions {}
- memberRestrictions :: GroupMember -> Maybe MemberRestrictions
- data ReceivedGroupInvitation = ReceivedGroupInvitation {}
- type GroupMemberId = Int64
- data GroupMember = GroupMember {
- groupMemberId :: GroupMemberId
- groupId :: GroupId
- indexInGroup :: Int64
- memberId :: MemberId
- memberRole :: GroupMemberRole
- memberCategory :: GroupMemberCategory
- memberStatus :: GroupMemberStatus
- memberSettings :: GroupMemberSettings
- blockedByAdmin :: Bool
- invitedBy :: InvitedBy
- invitedByGroupMemberId :: Maybe GroupMemberId
- localDisplayName :: ContactName
- memberProfile :: LocalProfile
- memberContactId :: Maybe ContactId
- memberContactProfileId :: ProfileId
- activeConn :: Maybe Connection
- memberChatVRange :: VersionRangeChat
- createdAt :: UTCTime
- updatedAt :: UTCTime
- supportChat :: Maybe GroupSupportChat
- data GroupSupportChat = GroupSupportChat {
- chatTs :: UTCTime
- unread :: Int64
- memberAttention :: Int64
- mentions :: Int64
- lastMsgFromMemberTs :: Maybe UTCTime
- gmRequiresAttention :: GroupMember -> Bool
- data GroupMemberRef = GroupMemberRef {
- groupMemberId :: Int64
- profile :: Profile
- groupMemberRef :: GroupMember -> GroupMemberRef
- isMemberRelay :: GroupMember -> Bool
- memberConn :: GroupMember -> Maybe Connection
- memberConnId :: GroupMember -> Maybe ConnId
- sameMemberId :: MemberId -> GroupMember -> Bool
- memberChatVRange' :: GroupMember -> VersionRangeChat
- supportsVersion :: GroupMember -> VersionChat -> Bool
- groupMemberId' :: GroupMember -> GroupMemberId
- memberId' :: GroupMember -> MemberId
- memberIncognito :: GroupMember -> IncognitoEnabled
- incognitoMembership :: GroupInfo -> IncognitoEnabled
- incognitoMembershipProfile :: GroupInfo -> Maybe LocalProfile
- memberSecurityCode :: GroupMember -> Maybe SecurityCode
- memberBlocked :: GroupMember -> Bool
- data NewGroupMember = NewGroupMember {
- memInfo :: MemberInfo
- memCategory :: GroupMemberCategory
- memStatus :: GroupMemberStatus
- memRestriction :: Maybe MemberRestrictionStatus
- memInvitedBy :: InvitedBy
- memInvitedByGroupMemberId :: Maybe GroupMemberId
- localDisplayName :: ContactName
- memProfileId :: Int64
- memContactId :: Maybe Int64
- newtype MemberId = MemberId {
- unMemberId :: ByteString
- nameFromMemberId :: MemberId -> ContactName
- data InvitedBy
- = IBContact {
- byContactId :: Int64
- | IBUser
- | IBUnknown
- = IBContact {
- toInvitedBy :: Int64 -> Maybe Int64 -> InvitedBy
- fromInvitedBy :: Int64 -> InvitedBy -> Maybe Int64
- data GroupMemberSettings = GroupMemberSettings {
- showMessages :: Bool
- defaultMemberSettings :: GroupMemberSettings
- newtype Probe = Probe {
- unProbe :: ByteString
- newtype ProbeHash = ProbeHash {
- unProbeHash :: ByteString
- data GroupMemberCategory
- data GroupMemberStatus
- acceptanceToStatus :: Maybe GroupMemberAdmission -> GroupAcceptance -> GroupMemberStatus
- memberActive :: GroupMember -> Bool
- memberCurrent :: GroupMember -> Bool
- memberPending :: GroupMember -> Bool
- memberCurrentOrPending :: GroupMember -> Bool
- memberCurrent' :: GroupMemberStatus -> Bool
- memberRemoved :: GroupMember -> Bool
- data SndFileTransfer = SndFileTransfer {
- fileId :: FileTransferId
- fileName :: String
- filePath :: String
- fileSize :: Integer
- chunkSize :: Integer
- recipientDisplayName :: ContactName
- connId :: Int64
- agentConnId :: AgentConnId
- groupMemberId :: Maybe Int64
- fileStatus :: FileStatus
- fileDescrId :: Maybe Int64
- fileInline :: Maybe InlineFileMode
- type FileTransferId = Int64
- data FileInvitation = FileInvitation {
- fileName :: String
- fileSize :: Integer
- fileDigest :: Maybe FileDigest
- fileConnReq :: Maybe ConnReqInvitation
- fileInline :: Maybe InlineFileMode
- fileDescr :: Maybe FileDescr
- data FileDescr = FileDescr {
- fileDescrText :: Text
- fileDescrPartNo :: Int
- fileDescrComplete :: Bool
- xftpFileInvitation :: FilePath -> Integer -> FileDescr -> FileInvitation
- data InlineFileMode
- data RcvFileTransfer = RcvFileTransfer {
- fileId :: FileTransferId
- xftpRcvFile :: Maybe XFTPRcvFile
- fileInvitation :: FileInvitation
- fileStatus :: RcvFileStatus
- rcvFileInline :: Maybe InlineFileMode
- senderDisplayName :: ContactName
- chunkSize :: Integer
- cancelled :: Bool
- grpMemberId :: Maybe Int64
- cryptoArgs :: Maybe CryptoFileArgs
- data XFTPRcvFile = XFTPRcvFile {
- rcvFileDescription :: RcvFileDescr
- agentRcvFileId :: Maybe AgentRcvFileId
- agentRcvFileDeleted :: Bool
- userApprovedRelays :: Bool
- type RcvFileDescrText = Text
- data RcvFileDescr = RcvFileDescr {
- fileDescrId :: Int64
- fileDescrText :: RcvFileDescrText
- fileDescrPartNo :: Int
- fileDescrComplete :: Bool
- data RcvFileStatus
- = RFSNew
- | RFSAccepted {
- filePath :: FilePath
- | RFSConnected {
- filePath :: FilePath
- | RFSComplete {
- filePath :: FilePath
- | RFSCancelled {
- filePath_ :: Maybe FilePath
- rcvFileComplete :: RcvFileStatus -> Bool
- rcvFileCompleteOrCancelled :: RcvFileTransfer -> Bool
- liveRcvFileTransferPath :: RcvFileTransfer -> Maybe FilePath
- newtype AgentConnId = AgentConnId ConnId
- newtype AgentSndFileId = AgentSndFileId SndFileId
- newtype AgentRcvFileId = AgentRcvFileId RcvFileId
- newtype AgentInvId = AgentInvId InvitationId
- data FileTransfer
- data FileTransferMeta = FileTransferMeta {
- fileId :: FileTransferId
- xftpSndFile :: Maybe XFTPSndFile
- xftpRedirectFor :: Maybe FileTransferId
- fileName :: String
- filePath :: String
- fileSize :: Integer
- fileInline :: Maybe InlineFileMode
- chunkSize :: Integer
- cancelled :: Bool
- data LocalFileMeta = LocalFileMeta {
- fileId :: FileTransferId
- fileName :: String
- filePath :: String
- fileSize :: Integer
- fileCryptoArgs :: Maybe CryptoFileArgs
- data XFTPSndFile = XFTPSndFile {
- agentSndFileId :: AgentSndFileId
- privateSndFileDescr :: Maybe Text
- agentSndFileDeleted :: Bool
- cryptoArgs :: Maybe CryptoFileArgs
- fileTransferCancelled :: FileTransfer -> Bool
- data FileStatus
- data RcvChunkStatus
- type ConnReqInvitation = ConnectionRequestUri 'CMInvitation
- type ConnReqContact = ConnectionRequestUri 'CMContact
- type CreatedLinkInvitation = CreatedConnLink 'CMInvitation
- type CreatedLinkContact = CreatedConnLink 'CMContact
- type ConnLinkContact = ConnectionLink 'CMContact
- type ShortLinkInvitation = ConnShortLink 'CMInvitation
- type ShortLinkContact = ConnShortLink 'CMContact
- data Connection = Connection {
- connId :: Int64
- agentConnId :: AgentConnId
- connChatVersion :: VersionChat
- peerChatVRange :: VersionRangeChat
- connLevel :: Int
- viaContact :: Maybe Int64
- viaUserContactLink :: Maybe Int64
- viaGroupLink :: Bool
- groupLinkId :: Maybe GroupLinkId
- xContactId :: Maybe XContactId
- customUserProfileId :: Maybe Int64
- connType :: ConnType
- connStatus :: ConnStatus
- contactConnInitiated :: Bool
- localAlias :: Text
- entityId :: Maybe Int64
- connectionCode :: Maybe SecurityCode
- pqSupport :: PQSupport
- pqEncryption :: PQEncryption
- pqSndEnabled :: Maybe PQEncryption
- pqRcvEnabled :: Maybe PQEncryption
- authErrCounter :: Int
- quotaErrCounter :: Int
- createdAt :: UTCTime
- dbConnId :: Connection -> Int64
- connReady :: Connection -> Bool
- authErrDisableCount :: Int
- connDisabled :: Connection -> Bool
- quotaErrInactiveCount :: Int
- quotaErrSetOnMERR :: Int
- connInactive :: Connection -> Bool
- data SecurityCode = SecurityCode {
- securityCode :: Text
- verifiedAt :: UTCTime
- verificationCode :: ByteString -> Text
- sameVerificationCode :: Text -> Text -> Bool
- aConnId :: Connection -> ConnId
- connIncognito :: Connection -> Bool
- connPQEnabled :: Connection -> PQEncryption
- data PendingContactConnection = PendingContactConnection {
- pccConnId :: Int64
- pccAgentConnId :: AgentConnId
- pccConnStatus :: ConnStatus
- viaContactUri :: Bool
- viaUserContactLink :: Maybe Int64
- groupLinkId :: Maybe GroupLinkId
- customUserProfileId :: Maybe Int64
- connLinkInv :: Maybe CreatedLinkInvitation
- localAlias :: Text
- createdAt :: UTCTime
- updatedAt :: UTCTime
- mkPendingContactConnection :: Connection -> Maybe CreatedLinkInvitation -> PendingContactConnection
- aConnId' :: PendingContactConnection -> ConnId
- data ConnStatus
- data ConnType
- type CommandId = Int64
- aCorrId :: CommandId -> ACorrId
- commandId :: ACorrId -> String
- data CommandStatus
- data CommandFunction
- commandExpectedResponse :: CommandFunction -> AEvtTag
- data CommandData = CommandData {
- cmdId :: CommandId
- cmdConnId :: Maybe Int64
- cmdFunction :: CommandFunction
- cmdStatus :: CommandStatus
- data ChatTag = ChatTag {
- chatTagId :: Int64
- chatTagText :: Text
- chatTagEmoji :: Maybe Text
- data XGrpMemIntroCont = XGrpMemIntroCont {}
- data NoteFolder = NoteFolder {
- noteFolderId :: NoteFolderId
- userId :: UserId
- createdAt :: UTCTime
- updatedAt :: UTCTime
- chatTs :: UTCTime
- favorite :: Bool
- unread :: Bool
- type NoteFolderId = Int64
- data ChatVersion
- type VersionChat = Version ChatVersion
- type VersionRangeChat = VersionRange ChatVersion
- pattern VersionChat :: Word16 -> VersionChat
- newtype ChatVersionRange = ChatVersionRange {}
- peerConnChatVersion :: VersionRangeChat -> VersionRangeChat -> VersionChat
- initialChatVersion :: VersionChat
- chatInitialVRange :: VersionRangeChat
- newtype BoolDef = BoolDef {
- isTrue :: Bool
Documentation
class IsContact a where Source #
Methods
contactId' :: a -> ContactId Source #
profile' :: a -> LocalProfile Source #
localDisplayName' :: a -> ContactName Source #
preferences' :: a -> Maybe Preferences Source #
Instances
| IsContact Contact Source # | |
Defined in Simplex.Chat.Types Methods contactId' :: Contact -> ContactId Source # profile' :: Contact -> LocalProfile Source # localDisplayName' :: Contact -> ContactName Source # preferences' :: Contact -> Maybe Preferences Source # | |
| IsContact User Source # | |
Defined in Simplex.Chat.Types Methods contactId' :: User -> ContactId Source # profile' :: User -> LocalProfile Source # localDisplayName' :: User -> ContactName Source # preferences' :: User -> Maybe Preferences Source # | |
newtype AgentUserId Source #
Constructors
| AgentUserId UserId |
Instances
Constructors
| User | |
Fields
| |
Instances
| FromJSON User Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser User parseJSONList :: Value -> Parser [User] omittedField :: Maybe User | |
| ToJSON User Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: User -> Encoding toJSONList :: [User] -> Value toEncodingList :: [User] -> Encoding | |
| Show User Source # | |
| IsContact User Source # | |
Defined in Simplex.Chat.Types Methods contactId' :: User -> ContactId Source # profile' :: User -> LocalProfile Source # localDisplayName' :: User -> ContactName Source # preferences' :: User -> Maybe Preferences Source # | |
Constructors
| NewUser | |
Fields
| |
Instances
| FromJSON NewUser Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser NewUser parseJSONList :: Value -> Parser [NewUser] omittedField :: Maybe NewUser | |
| ToJSON NewUser Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: NewUser -> Encoding toJSONList :: [NewUser] -> Value toEncodingList :: [NewUser] -> Encoding | |
| Show NewUser Source # | |
newtype B64UrlByteString Source #
Constructors
| B64UrlByteString ByteString |
Instances
data UserPwdHash Source #
Constructors
| UserPwdHash | |
Fields | |
Instances
| FromJSON UserPwdHash Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser UserPwdHash parseJSONList :: Value -> Parser [UserPwdHash] omittedField :: Maybe UserPwdHash | |
| ToJSON UserPwdHash Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: UserPwdHash -> Value toEncoding :: UserPwdHash -> Encoding toJSONList :: [UserPwdHash] -> Value toEncodingList :: [UserPwdHash] -> Encoding omitField :: UserPwdHash -> Bool | |
| Show UserPwdHash Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> UserPwdHash -> ShowS show :: UserPwdHash -> String showList :: [UserPwdHash] -> ShowS | |
| Eq UserPwdHash Source # | |
Defined in Simplex.Chat.Types | |
Constructors
| UserInfo | |
Fields
| |
Instances
| FromJSON UserInfo Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser UserInfo parseJSONList :: Value -> Parser [UserInfo] omittedField :: Maybe UserInfo | |
| ToJSON UserInfo Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: UserInfo -> Encoding toJSONList :: [UserInfo] -> Value toEncodingList :: [UserInfo] -> Encoding | |
| Show UserInfo Source # | |
Constructors
| Contact | |
Fields
| |
Instances
| FromJSON Contact Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser Contact parseJSONList :: Value -> Parser [Contact] omittedField :: Maybe Contact | |
| ToJSON Contact Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: Contact -> Encoding toJSONList :: [Contact] -> Value toEncodingList :: [Contact] -> Encoding | |
| Show Contact Source # | |
| Eq Contact Source # | |
| IsContact Contact Source # | |
Defined in Simplex.Chat.Types Methods contactId' :: Contact -> ContactId Source # profile' :: Contact -> LocalProfile Source # localDisplayName' :: Contact -> ContactName Source # preferences' :: Contact -> Maybe Preferences Source # | |
contactRequestId' :: Contact -> Maybe Int64 Source #
data PreparedContact Source #
Constructors
| PreparedContact | |
Fields
| |
Instances
| FromJSON PreparedContact Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser PreparedContact parseJSONList :: Value -> Parser [PreparedContact] omittedField :: Maybe PreparedContact | |
| ToJSON PreparedContact Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: PreparedContact -> Value toEncoding :: PreparedContact -> Encoding toJSONList :: [PreparedContact] -> Value toEncodingList :: [PreparedContact] -> Encoding omitField :: PreparedContact -> Bool | |
| Show PreparedContact Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> PreparedContact -> ShowS show :: PreparedContact -> String showList :: [PreparedContact] -> ShowS | |
| Eq PreparedContact Source # | |
Defined in Simplex.Chat.Types Methods (==) :: PreparedContact -> PreparedContact -> Bool (/=) :: PreparedContact -> PreparedContact -> Bool | |
data GroupDirectInvitation Source #
Constructors
| GroupDirectInvitation | |
Fields
| |
Instances
| FromJSON GroupDirectInvitation Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupDirectInvitation parseJSONList :: Value -> Parser [GroupDirectInvitation] omittedField :: Maybe GroupDirectInvitation | |
| ToJSON GroupDirectInvitation Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupDirectInvitation -> Value toEncoding :: GroupDirectInvitation -> Encoding toJSONList :: [GroupDirectInvitation] -> Value toEncodingList :: [GroupDirectInvitation] -> Encoding omitField :: GroupDirectInvitation -> Bool | |
| Show GroupDirectInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupDirectInvitation -> ShowS show :: GroupDirectInvitation -> String showList :: [GroupDirectInvitation] -> ShowS | |
| Eq GroupDirectInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupDirectInvitation -> GroupDirectInvitation -> Bool (/=) :: GroupDirectInvitation -> GroupDirectInvitation -> Bool | |
newtype CustomData Source #
Constructors
| CustomData Object |
Instances
| FromJSON CustomData Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser CustomData parseJSONList :: Value -> Parser [CustomData] omittedField :: Maybe CustomData | |
| ToJSON CustomData Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: CustomData -> Value toEncoding :: CustomData -> Encoding toJSONList :: [CustomData] -> Value toEncodingList :: [CustomData] -> Encoding omitField :: CustomData -> Bool | |
| Show CustomData Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> CustomData -> ShowS show :: CustomData -> String showList :: [CustomData] -> ShowS | |
| Eq CustomData Source # | |
Defined in Simplex.Chat.Types | |
| FromField CustomData Source # | |
Defined in Simplex.Chat.Types Methods fromField :: FieldParser CustomData # | |
| ToField CustomData Source # | |
Defined in Simplex.Chat.Types Methods toField :: CustomData -> SQLData # | |
contactConn :: Contact -> Maybe Connection Source #
contactConnId :: Contact -> Maybe ConnId Source #
type IncognitoEnabled = Bool Source #
contactDirect :: Contact -> Bool Source #
connDirect :: Connection -> Bool Source #
directOrUsed :: Contact -> Bool Source #
anyDirectOrUsed :: Contact -> Bool Source #
contactReady :: Contact -> Bool Source #
contactActive :: Contact -> Bool Source #
contactDeleted :: Contact -> Bool Source #
contactSecurityCode :: Contact -> Maybe SecurityCode Source #
contactPQEnabled :: Contact -> PQEncryption Source #
data ContactStatus Source #
Constructors
| CSActive | |
| CSDeleted | |
| CSDeletedByUser |
Instances
data ContactRef Source #
Constructors
| ContactRef | |
Fields
| |
Instances
| FromJSON ContactRef Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ContactRef parseJSONList :: Value -> Parser [ContactRef] omittedField :: Maybe ContactRef | |
| ToJSON ContactRef Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: ContactRef -> Value toEncoding :: ContactRef -> Encoding toJSONList :: [ContactRef] -> Value toEncodingList :: [ContactRef] -> Encoding omitField :: ContactRef -> Bool | |
| Show ContactRef Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ContactRef -> ShowS show :: ContactRef -> String showList :: [ContactRef] -> ShowS | |
| Eq ContactRef Source # | |
Defined in Simplex.Chat.Types | |
data ContactOrMember Source #
Constructors
| COMContact Contact | |
| COMGroupMember GroupMember |
Instances
| Show ContactOrMember Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ContactOrMember -> ShowS show :: ContactOrMember -> String showList :: [ContactOrMember] -> ShowS | |
contactOrMemberIds :: ContactOrMember -> (Maybe ContactId, Maybe GroupMemberId) Source #
data UserContact Source #
Constructors
| UserContact | |
Fields
| |
Instances
| FromJSON UserContact Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser UserContact parseJSONList :: Value -> Parser [UserContact] omittedField :: Maybe UserContact | |
| ToJSON UserContact Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: UserContact -> Value toEncoding :: UserContact -> Encoding toJSONList :: [UserContact] -> Value toEncodingList :: [UserContact] -> Encoding omitField :: UserContact -> Bool | |
| Show UserContact Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> UserContact -> ShowS show :: UserContact -> String showList :: [UserContact] -> ShowS | |
| Eq UserContact Source # | |
Defined in Simplex.Chat.Types | |
data UserContactRequest Source #
Constructors
| UserContactRequest | |
Fields
| |
Instances
| FromJSON UserContactRequest Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser UserContactRequest parseJSONList :: Value -> Parser [UserContactRequest] omittedField :: Maybe UserContactRequest | |
| ToJSON UserContactRequest Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: UserContactRequest -> Value toEncoding :: UserContactRequest -> Encoding toJSONList :: [UserContactRequest] -> Value toEncodingList :: [UserContactRequest] -> Encoding omitField :: UserContactRequest -> Bool | |
| Show UserContactRequest Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> UserContactRequest -> ShowS show :: UserContactRequest -> String showList :: [UserContactRequest] -> ShowS | |
| Eq UserContactRequest Source # | |
Defined in Simplex.Chat.Types Methods (==) :: UserContactRequest -> UserContactRequest -> Bool (/=) :: UserContactRequest -> UserContactRequest -> Bool | |
newtype XContactId Source #
Constructors
| XContactId ByteString |
Instances
newtype ConnReqUriHash Source #
Constructors
| ConnReqUriHash | |
Fields
| |
Instances
data RequestEntity Source #
Constructors
| REContact Contact | |
| REBusinessChat GroupInfo GroupMember |
type RepeatRequest = Bool Source #
data RequestStage Source #
Constructors
| RSAcceptedRequest | |
Fields
| |
| RSCurrentRequest | |
Fields
| |
type ContactName = Text Source #
type MemberName = Text Source #
optionalFullName :: ContactName -> Text -> Maybe Text -> Text Source #
Constructors
| Group | |
Fields
| |
Instances
| FromJSON Group Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser Group parseJSONList :: Value -> Parser [Group] omittedField :: Maybe Group | |
| ToJSON Group Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: Group -> Encoding toJSONList :: [Group] -> Value toEncodingList :: [Group] -> Encoding | |
| Show Group Source # | |
| Eq Group Source # | |
Constructors
| GroupInfo | |
Fields
| |
Instances
| FromJSON GroupInfo Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupInfo parseJSONList :: Value -> Parser [GroupInfo] omittedField :: Maybe GroupInfo | |
| ToJSON GroupInfo Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: GroupInfo -> Encoding toJSONList :: [GroupInfo] -> Value toEncodingList :: [GroupInfo] -> Encoding | |
| Show GroupInfo Source # | |
| Eq GroupInfo Source # | |
data BusinessChatType Source #
Constructors
| BCBusiness | |
| BCCustomer |
Instances
data PreparedGroup Source #
Constructors
| PreparedGroup | |
Fields
| |
Instances
| FromJSON PreparedGroup Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser PreparedGroup parseJSONList :: Value -> Parser [PreparedGroup] omittedField :: Maybe PreparedGroup | |
| ToJSON PreparedGroup Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: PreparedGroup -> Value toEncoding :: PreparedGroup -> Encoding toJSONList :: [PreparedGroup] -> Value toEncodingList :: [PreparedGroup] -> Encoding omitField :: PreparedGroup -> Bool | |
| Show PreparedGroup Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> PreparedGroup -> ShowS show :: PreparedGroup -> String showList :: [PreparedGroup] -> ShowS | |
| Eq PreparedGroup Source # | |
Defined in Simplex.Chat.Types | |
groupName' :: GroupInfo -> GroupName Source #
data GroupSummary Source #
Constructors
| GroupSummary | |
Fields
| |
Instances
| FromJSON GroupSummary Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupSummary parseJSONList :: Value -> Parser [GroupSummary] omittedField :: Maybe GroupSummary | |
| ToJSON GroupSummary Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupSummary -> Value toEncoding :: GroupSummary -> Encoding toJSONList :: [GroupSummary] -> Value toEncodingList :: [GroupSummary] -> Encoding omitField :: GroupSummary -> Bool | |
| Show GroupSummary Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupSummary -> ShowS show :: GroupSummary -> String showList :: [GroupSummary] -> ShowS | |
| Eq GroupSummary Source # | |
Defined in Simplex.Chat.Types | |
Constructors
| GroupLink | |
Fields
| |
Instances
| FromJSON GroupLink Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupLink parseJSONList :: Value -> Parser [GroupLink] omittedField :: Maybe GroupLink | |
| ToJSON GroupLink Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: GroupLink -> Encoding toJSONList :: [GroupLink] -> Value toEncodingList :: [GroupLink] -> Encoding | |
| Show GroupLink Source # | |
data ContactOrGroup Source #
Constructors
| CGContact Contact | |
| CGGroup GroupInfo [GroupMember] |
data PreparedChatEntity Source #
Constructors
| PCEContact Contact | |
| PCEGroup | |
Fields | |
contactAndGroupIds :: ContactOrGroup -> (Maybe ContactId, Maybe GroupId) Source #
data ChatSettings Source #
Constructors
| ChatSettings | |
Fields
| |
Instances
| FromJSON ChatSettings Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ChatSettings parseJSONList :: Value -> Parser [ChatSettings] omittedField :: Maybe ChatSettings | |
| ToJSON ChatSettings Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: ChatSettings -> Value toEncoding :: ChatSettings -> Encoding toJSONList :: [ChatSettings] -> Value toEncodingList :: [ChatSettings] -> Encoding omitField :: ChatSettings -> Bool | |
| Show ChatSettings Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ChatSettings -> ShowS show :: ChatSettings -> String showList :: [ChatSettings] -> ShowS | |
| Eq ChatSettings Source # | |
Defined in Simplex.Chat.Types | |
chatHasNtfs :: ChatSettings -> Bool Source #
Constructors
| MFNone | |
| MFAll | |
| MFMentions |
Instances
| FromJSON MsgFilter Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MsgFilter parseJSONList :: Value -> Parser [MsgFilter] omittedField :: Maybe MsgFilter | |
| ToJSON MsgFilter Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: MsgFilter -> Encoding toJSONList :: [MsgFilter] -> Value toEncodingList :: [MsgFilter] -> Encoding | |
| Show MsgFilter Source # | |
| Eq MsgFilter Source # | |
| FromField MsgFilter Source # | |
Defined in Simplex.Chat.Types | |
| ToField MsgFilter Source # | |
Defined in Simplex.Chat.Types | |
msgFilterInt :: MsgFilter -> Int Source #
msgFilterIntP :: Int64 -> Maybe MsgFilter Source #
fromIntField_ :: Typeable a => (Int64 -> Maybe a) -> FieldParser a Source #
featureAllowed :: forall (f :: ChatFeature). SChatFeature f -> (PrefEnabled -> Bool) -> Contact -> Bool Source #
groupFeatureAllowed :: forall (f :: GroupFeature). GroupFeatureNoRoleI f => SGroupFeature f -> GroupInfo -> Bool Source #
groupFeatureMemberAllowed :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupMember -> GroupInfo -> Bool Source #
groupFeatureUserAllowed :: forall (f :: GroupFeature). GroupFeatureRoleI f => SGroupFeature f -> GroupInfo -> Bool Source #
mergeUserChatPrefs :: User -> Contact -> FullPreferences Source #
mergeUserChatPrefs' :: User -> Bool -> Preferences -> FullPreferences Source #
contactUserPreferences :: User -> Preferences -> Maybe Preferences -> Bool -> ContactUserPreferences Source #
Constructors
| Profile | |
Fields
| |
Instances
| FromJSON Profile Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser Profile parseJSONList :: Value -> Parser [Profile] omittedField :: Maybe Profile | |
| ToJSON Profile Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: Profile -> Encoding toJSONList :: [Profile] -> Value toEncodingList :: [Profile] -> Encoding | |
| Show Profile Source # | |
| Eq Profile Source # | |
data ChatPeerType Source #
Instances
| FromJSON ChatPeerType Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ChatPeerType parseJSONList :: Value -> Parser [ChatPeerType] omittedField :: Maybe ChatPeerType | |
| ToJSON ChatPeerType Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: ChatPeerType -> Value toEncoding :: ChatPeerType -> Encoding toJSONList :: [ChatPeerType] -> Value toEncodingList :: [ChatPeerType] -> Encoding omitField :: ChatPeerType -> Bool | |
| Show ChatPeerType Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ChatPeerType -> ShowS show :: ChatPeerType -> String showList :: [ChatPeerType] -> ShowS | |
| Eq ChatPeerType Source # | |
Defined in Simplex.Chat.Types | |
| TextEncoding ChatPeerType Source # | |
Defined in Simplex.Chat.Types | |
| FromField ChatPeerType Source # | |
Defined in Simplex.Chat.Types Methods fromField :: FieldParser ChatPeerType # | |
| ToField ChatPeerType Source # | |
Defined in Simplex.Chat.Types Methods toField :: ChatPeerType -> SQLData # | |
profileFromName :: ContactName -> Profile Source #
profilesMatch :: LocalProfile -> LocalProfile -> Bool Source #
data IncognitoProfile Source #
Constructors
| NewIncognito Profile | |
| ExistingIncognito LocalProfile |
type LocalAlias = Text Source #
data LocalProfile Source #
Constructors
| LocalProfile | |
Fields
| |
Instances
| FromJSON LocalProfile Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser LocalProfile parseJSONList :: Value -> Parser [LocalProfile] omittedField :: Maybe LocalProfile | |
| ToJSON LocalProfile Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: LocalProfile -> Value toEncoding :: LocalProfile -> Encoding toJSONList :: [LocalProfile] -> Value toEncodingList :: [LocalProfile] -> Encoding omitField :: LocalProfile -> Bool | |
| Show LocalProfile Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> LocalProfile -> ShowS show :: LocalProfile -> String showList :: [LocalProfile] -> ShowS | |
| Eq LocalProfile Source # | |
Defined in Simplex.Chat.Types | |
toLocalProfile :: ProfileId -> Profile -> LocalAlias -> LocalProfile Source #
data GroupProfile Source #
Constructors
| GroupProfile | |
Fields
| |
Instances
| FromJSON GroupProfile Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupProfile parseJSONList :: Value -> Parser [GroupProfile] omittedField :: Maybe GroupProfile | |
| ToJSON GroupProfile Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupProfile -> Value toEncoding :: GroupProfile -> Encoding toJSONList :: [GroupProfile] -> Value toEncodingList :: [GroupProfile] -> Encoding omitField :: GroupProfile -> Bool | |
| Show GroupProfile Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupProfile -> ShowS show :: GroupProfile -> String showList :: [GroupProfile] -> ShowS | |
| Eq GroupProfile Source # | |
Defined in Simplex.Chat.Types | |
data GroupMemberAdmission Source #
Constructors
| GroupMemberAdmission | |
Fields
| |
Instances
data MemberCriteria Source #
Constructors
| MCAll |
Instances
| FromJSON MemberCriteria Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MemberCriteria parseJSONList :: Value -> Parser [MemberCriteria] omittedField :: Maybe MemberCriteria | |
| ToJSON MemberCriteria Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: MemberCriteria -> Value toEncoding :: MemberCriteria -> Encoding toJSONList :: [MemberCriteria] -> Value toEncodingList :: [MemberCriteria] -> Encoding omitField :: MemberCriteria -> Bool | |
| Show MemberCriteria Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> MemberCriteria -> ShowS show :: MemberCriteria -> String showList :: [MemberCriteria] -> ShowS | |
| Eq MemberCriteria Source # | |
Defined in Simplex.Chat.Types Methods (==) :: MemberCriteria -> MemberCriteria -> Bool (/=) :: MemberCriteria -> MemberCriteria -> Bool | |
Constructors
| ImageData Text |
Instances
| FromJSON ImageData Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ImageData parseJSONList :: Value -> Parser [ImageData] omittedField :: Maybe ImageData | |
| ToJSON ImageData Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: ImageData -> Encoding toJSONList :: [ImageData] -> Value toEncodingList :: [ImageData] -> Encoding | |
| Show ImageData Source # | |
| Eq ImageData Source # | |
| FromField ImageData Source # | |
Defined in Simplex.Chat.Types | |
| ToField ImageData Source # | |
Defined in Simplex.Chat.Types | |
data CReqClientData Source #
Constructors
| CRDataGroup | |
Fields | |
Instances
| FromJSON CReqClientData Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser CReqClientData parseJSONList :: Value -> Parser [CReqClientData] omittedField :: Maybe CReqClientData | |
| ToJSON CReqClientData Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: CReqClientData -> Value toEncoding :: CReqClientData -> Encoding toJSONList :: [CReqClientData] -> Value toEncodingList :: [CReqClientData] -> Encoding omitField :: CReqClientData -> Bool | |
newtype GroupLinkId Source #
Constructors
| GroupLinkId | |
Fields
| |
Instances
data GroupInvitation Source #
Constructors
| GroupInvitation | |
Fields
| |
Instances
| FromJSON GroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupInvitation parseJSONList :: Value -> Parser [GroupInvitation] omittedField :: Maybe GroupInvitation | |
| ToJSON GroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupInvitation -> Value toEncoding :: GroupInvitation -> Encoding toJSONList :: [GroupInvitation] -> Value toEncodingList :: [GroupInvitation] -> Encoding omitField :: GroupInvitation -> Bool | |
| Show GroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupInvitation -> ShowS show :: GroupInvitation -> String showList :: [GroupInvitation] -> ShowS | |
| Eq GroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupInvitation -> GroupInvitation -> Bool (/=) :: GroupInvitation -> GroupInvitation -> Bool | |
data GroupLinkInvitation Source #
Constructors
| GroupLinkInvitation | |
Fields
| |
Instances
| FromJSON GroupLinkInvitation Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupLinkInvitation parseJSONList :: Value -> Parser [GroupLinkInvitation] omittedField :: Maybe GroupLinkInvitation | |
| ToJSON GroupLinkInvitation Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupLinkInvitation -> Value toEncoding :: GroupLinkInvitation -> Encoding toJSONList :: [GroupLinkInvitation] -> Value toEncodingList :: [GroupLinkInvitation] -> Encoding omitField :: GroupLinkInvitation -> Bool | |
| Show GroupLinkInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupLinkInvitation -> ShowS show :: GroupLinkInvitation -> String showList :: [GroupLinkInvitation] -> ShowS | |
| Eq GroupLinkInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupLinkInvitation -> GroupLinkInvitation -> Bool (/=) :: GroupLinkInvitation -> GroupLinkInvitation -> Bool | |
data GroupLinkRejection Source #
Constructors
| GroupLinkRejection | |
Instances
| FromJSON GroupLinkRejection Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupLinkRejection parseJSONList :: Value -> Parser [GroupLinkRejection] omittedField :: Maybe GroupLinkRejection | |
| ToJSON GroupLinkRejection Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupLinkRejection -> Value toEncoding :: GroupLinkRejection -> Encoding toJSONList :: [GroupLinkRejection] -> Value toEncodingList :: [GroupLinkRejection] -> Encoding omitField :: GroupLinkRejection -> Bool | |
| Show GroupLinkRejection Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupLinkRejection -> ShowS show :: GroupLinkRejection -> String showList :: [GroupLinkRejection] -> ShowS | |
| Eq GroupLinkRejection Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupLinkRejection -> GroupLinkRejection -> Bool (/=) :: GroupLinkRejection -> GroupLinkRejection -> Bool | |
data GroupRejectionReason Source #
Constructors
| GRRLongName | |
| GRRBlockedName | |
| GRRUnknown | |
Fields
| |
Instances
data MemberIdRole Source #
Constructors
| MemberIdRole | |
Fields | |
Instances
| FromJSON MemberIdRole Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MemberIdRole parseJSONList :: Value -> Parser [MemberIdRole] omittedField :: Maybe MemberIdRole | |
| ToJSON MemberIdRole Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: MemberIdRole -> Value toEncoding :: MemberIdRole -> Encoding toJSONList :: [MemberIdRole] -> Value toEncodingList :: [MemberIdRole] -> Encoding omitField :: MemberIdRole -> Bool | |
| Show MemberIdRole Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> MemberIdRole -> ShowS show :: MemberIdRole -> String showList :: [MemberIdRole] -> ShowS | |
| Eq MemberIdRole Source # | |
Defined in Simplex.Chat.Types | |
data IntroInvitation Source #
Constructors
| IntroInvitation | |
Fields
| |
Instances
| FromJSON IntroInvitation Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser IntroInvitation parseJSONList :: Value -> Parser [IntroInvitation] omittedField :: Maybe IntroInvitation | |
| ToJSON IntroInvitation Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: IntroInvitation -> Value toEncoding :: IntroInvitation -> Encoding toJSONList :: [IntroInvitation] -> Value toEncodingList :: [IntroInvitation] -> Encoding omitField :: IntroInvitation -> Bool | |
| Show IntroInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> IntroInvitation -> ShowS show :: IntroInvitation -> String showList :: [IntroInvitation] -> ShowS | |
| Eq IntroInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: IntroInvitation -> IntroInvitation -> Bool (/=) :: IntroInvitation -> IntroInvitation -> Bool | |
data MemberInfo Source #
Constructors
| MemberInfo | |
Fields
| |
Instances
| FromJSON MemberInfo Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MemberInfo parseJSONList :: Value -> Parser [MemberInfo] omittedField :: Maybe MemberInfo | |
| ToJSON MemberInfo Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: MemberInfo -> Value toEncoding :: MemberInfo -> Encoding toJSONList :: [MemberInfo] -> Value toEncodingList :: [MemberInfo] -> Encoding omitField :: MemberInfo -> Bool | |
| Show MemberInfo Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> MemberInfo -> ShowS show :: MemberInfo -> String showList :: [MemberInfo] -> ShowS | |
| Eq MemberInfo Source # | |
Defined in Simplex.Chat.Types | |
data BusinessChatInfo Source #
Constructors
| BusinessChatInfo | |
Fields | |
Instances
| FromJSON BusinessChatInfo Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser BusinessChatInfo parseJSONList :: Value -> Parser [BusinessChatInfo] omittedField :: Maybe BusinessChatInfo | |
| ToJSON BusinessChatInfo Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: BusinessChatInfo -> Value toEncoding :: BusinessChatInfo -> Encoding toJSONList :: [BusinessChatInfo] -> Value toEncodingList :: [BusinessChatInfo] -> Encoding omitField :: BusinessChatInfo -> Bool | |
| Show BusinessChatInfo Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> BusinessChatInfo -> ShowS show :: BusinessChatInfo -> String showList :: [BusinessChatInfo] -> ShowS | |
| Eq BusinessChatInfo Source # | |
Defined in Simplex.Chat.Types Methods (==) :: BusinessChatInfo -> BusinessChatInfo -> Bool (/=) :: BusinessChatInfo -> BusinessChatInfo -> Bool | |
data MemberRestrictionStatus Source #
Constructors
| MRSBlocked | |
| MRSUnrestricted | |
| MRSUnknown Text |
Instances
mrsBlocked :: MemberRestrictionStatus -> Bool Source #
data MemberRestrictions Source #
Constructors
| MemberRestrictions | |
Fields | |
Instances
| FromJSON MemberRestrictions Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MemberRestrictions parseJSONList :: Value -> Parser [MemberRestrictions] omittedField :: Maybe MemberRestrictions | |
| ToJSON MemberRestrictions Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: MemberRestrictions -> Value toEncoding :: MemberRestrictions -> Encoding toJSONList :: [MemberRestrictions] -> Value toEncodingList :: [MemberRestrictions] -> Encoding omitField :: MemberRestrictions -> Bool | |
| Show MemberRestrictions Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> MemberRestrictions -> ShowS show :: MemberRestrictions -> String showList :: [MemberRestrictions] -> ShowS | |
| Eq MemberRestrictions Source # | |
Defined in Simplex.Chat.Types Methods (==) :: MemberRestrictions -> MemberRestrictions -> Bool (/=) :: MemberRestrictions -> MemberRestrictions -> Bool | |
memberRestrictions :: GroupMember -> Maybe MemberRestrictions Source #
data ReceivedGroupInvitation Source #
Constructors
| ReceivedGroupInvitation | |
Fields | |
Instances
| Show ReceivedGroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ReceivedGroupInvitation -> ShowS show :: ReceivedGroupInvitation -> String showList :: [ReceivedGroupInvitation] -> ShowS | |
| Eq ReceivedGroupInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: ReceivedGroupInvitation -> ReceivedGroupInvitation -> Bool (/=) :: ReceivedGroupInvitation -> ReceivedGroupInvitation -> Bool | |
type GroupMemberId = Int64 Source #
data GroupMember Source #
Constructors
| GroupMember | |
Fields
| |
Instances
| FromJSON GroupMember Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupMember parseJSONList :: Value -> Parser [GroupMember] omittedField :: Maybe GroupMember | |
| ToJSON GroupMember Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupMember -> Value toEncoding :: GroupMember -> Encoding toJSONList :: [GroupMember] -> Value toEncodingList :: [GroupMember] -> Encoding omitField :: GroupMember -> Bool | |
| Show GroupMember Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupMember -> ShowS show :: GroupMember -> String showList :: [GroupMember] -> ShowS | |
| Eq GroupMember Source # | |
Defined in Simplex.Chat.Types | |
data GroupSupportChat Source #
Constructors
| GroupSupportChat | |
Fields
| |
Instances
| FromJSON GroupSupportChat Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupSupportChat parseJSONList :: Value -> Parser [GroupSupportChat] omittedField :: Maybe GroupSupportChat | |
| ToJSON GroupSupportChat Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupSupportChat -> Value toEncoding :: GroupSupportChat -> Encoding toJSONList :: [GroupSupportChat] -> Value toEncodingList :: [GroupSupportChat] -> Encoding omitField :: GroupSupportChat -> Bool | |
| Show GroupSupportChat Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupSupportChat -> ShowS show :: GroupSupportChat -> String showList :: [GroupSupportChat] -> ShowS | |
| Eq GroupSupportChat Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupSupportChat -> GroupSupportChat -> Bool (/=) :: GroupSupportChat -> GroupSupportChat -> Bool | |
gmRequiresAttention :: GroupMember -> Bool Source #
data GroupMemberRef Source #
Constructors
| GroupMemberRef | |
Fields
| |
Instances
| FromJSON GroupMemberRef Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupMemberRef parseJSONList :: Value -> Parser [GroupMemberRef] omittedField :: Maybe GroupMemberRef | |
| ToJSON GroupMemberRef Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupMemberRef -> Value toEncoding :: GroupMemberRef -> Encoding toJSONList :: [GroupMemberRef] -> Value toEncodingList :: [GroupMemberRef] -> Encoding omitField :: GroupMemberRef -> Bool | |
| Show GroupMemberRef Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupMemberRef -> ShowS show :: GroupMemberRef -> String showList :: [GroupMemberRef] -> ShowS | |
| Eq GroupMemberRef Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupMemberRef -> GroupMemberRef -> Bool (/=) :: GroupMemberRef -> GroupMemberRef -> Bool | |
isMemberRelay :: GroupMember -> Bool Source #
memberConn :: GroupMember -> Maybe Connection Source #
memberConnId :: GroupMember -> Maybe ConnId Source #
sameMemberId :: MemberId -> GroupMember -> Bool Source #
supportsVersion :: GroupMember -> VersionChat -> Bool Source #
memberId' :: GroupMember -> MemberId Source #
incognitoMembershipProfile :: GroupInfo -> Maybe LocalProfile Source #
memberSecurityCode :: GroupMember -> Maybe SecurityCode Source #
memberBlocked :: GroupMember -> Bool Source #
data NewGroupMember Source #
Constructors
| NewGroupMember | |
Fields
| |
Constructors
| MemberId | |
Fields
| |
Instances
| FromJSON MemberId Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser MemberId parseJSONList :: Value -> Parser [MemberId] omittedField :: Maybe MemberId | |
| ToJSON MemberId Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: MemberId -> Encoding toJSONList :: [MemberId] -> Value toEncodingList :: [MemberId] -> Encoding | |
| Show MemberId Source # | |
| Eq MemberId Source # | |
| Ord MemberId Source # | |
Defined in Simplex.Chat.Types | |
| StrEncoding MemberId Source # | |
| FromField MemberId Source # | |
Defined in Simplex.Chat.Types | |
| ToField MemberId Source # | |
Defined in Simplex.Chat.Types | |
Constructors
| IBContact | |
Fields
| |
| IBUser | |
| IBUnknown | |
Instances
| FromJSON InvitedBy Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser InvitedBy parseJSONList :: Value -> Parser [InvitedBy] omittedField :: Maybe InvitedBy | |
| ToJSON InvitedBy Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: InvitedBy -> Encoding toJSONList :: [InvitedBy] -> Value toEncodingList :: [InvitedBy] -> Encoding | |
| Show InvitedBy Source # | |
| Eq InvitedBy Source # | |
toInvitedBy :: Int64 -> Maybe Int64 -> InvitedBy Source #
fromInvitedBy :: Int64 -> InvitedBy -> Maybe Int64 Source #
data GroupMemberSettings Source #
Constructors
| GroupMemberSettings | |
Fields
| |
Instances
| FromJSON GroupMemberSettings Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser GroupMemberSettings parseJSONList :: Value -> Parser [GroupMemberSettings] omittedField :: Maybe GroupMemberSettings | |
| ToJSON GroupMemberSettings Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: GroupMemberSettings -> Value toEncoding :: GroupMemberSettings -> Encoding toJSONList :: [GroupMemberSettings] -> Value toEncodingList :: [GroupMemberSettings] -> Encoding omitField :: GroupMemberSettings -> Bool | |
| Show GroupMemberSettings Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> GroupMemberSettings -> ShowS show :: GroupMemberSettings -> String showList :: [GroupMemberSettings] -> ShowS | |
| Eq GroupMemberSettings Source # | |
Defined in Simplex.Chat.Types Methods (==) :: GroupMemberSettings -> GroupMemberSettings -> Bool (/=) :: GroupMemberSettings -> GroupMemberSettings -> Bool | |
Instances
| FromJSON Probe Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser Probe parseJSONList :: Value -> Parser [Probe] omittedField :: Maybe Probe | |
| ToJSON Probe Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: Probe -> Encoding toJSONList :: [Probe] -> Value toEncodingList :: [Probe] -> Encoding | |
| Show Probe Source # | |
| Eq Probe Source # | |
| StrEncoding Probe Source # | |
Constructors
| ProbeHash | |
Fields
| |
Instances
| FromJSON ProbeHash Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ProbeHash parseJSONList :: Value -> Parser [ProbeHash] omittedField :: Maybe ProbeHash | |
| ToJSON ProbeHash Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: ProbeHash -> Encoding toJSONList :: [ProbeHash] -> Value toEncodingList :: [ProbeHash] -> Encoding | |
| Show ProbeHash Source # | |
| Eq ProbeHash Source # | |
| StrEncoding ProbeHash Source # | |
data GroupMemberCategory Source #
Constructors
| GCUserMember | |
| GCInviteeMember | |
| GCHostMember | |
| GCPreMember | |
| GCPostMember |
Instances
data GroupMemberStatus Source #
Constructors
Instances
acceptanceToStatus :: Maybe GroupMemberAdmission -> GroupAcceptance -> GroupMemberStatus Source #
memberActive :: GroupMember -> Bool Source #
memberCurrent :: GroupMember -> Bool Source #
memberPending :: GroupMember -> Bool Source #
memberCurrentOrPending :: GroupMember -> Bool Source #
Please note:
update getGroupSummary and SQL function used in update triggers if this is changed
memberCurrent' :: GroupMemberStatus -> Bool Source #
memberRemoved :: GroupMember -> Bool Source #
data SndFileTransfer Source #
Constructors
| SndFileTransfer | |
Fields
| |
Instances
| FromJSON SndFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser SndFileTransfer parseJSONList :: Value -> Parser [SndFileTransfer] omittedField :: Maybe SndFileTransfer | |
| ToJSON SndFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: SndFileTransfer -> Value toEncoding :: SndFileTransfer -> Encoding toJSONList :: [SndFileTransfer] -> Value toEncodingList :: [SndFileTransfer] -> Encoding omitField :: SndFileTransfer -> Bool | |
| Show SndFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> SndFileTransfer -> ShowS show :: SndFileTransfer -> String showList :: [SndFileTransfer] -> ShowS | |
| Eq SndFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods (==) :: SndFileTransfer -> SndFileTransfer -> Bool (/=) :: SndFileTransfer -> SndFileTransfer -> Bool | |
type FileTransferId = Int64 Source #
data FileInvitation Source #
Constructors
| FileInvitation | |
Fields
| |
Instances
| FromJSON FileInvitation Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser FileInvitation parseJSONList :: Value -> Parser [FileInvitation] omittedField :: Maybe FileInvitation | |
| ToJSON FileInvitation Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: FileInvitation -> Value toEncoding :: FileInvitation -> Encoding toJSONList :: [FileInvitation] -> Value toEncodingList :: [FileInvitation] -> Encoding omitField :: FileInvitation -> Bool | |
| Show FileInvitation Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> FileInvitation -> ShowS show :: FileInvitation -> String showList :: [FileInvitation] -> ShowS | |
| Eq FileInvitation Source # | |
Defined in Simplex.Chat.Types Methods (==) :: FileInvitation -> FileInvitation -> Bool (/=) :: FileInvitation -> FileInvitation -> Bool | |
Constructors
| FileDescr | |
Fields
| |
Instances
| FromJSON FileDescr Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser FileDescr parseJSONList :: Value -> Parser [FileDescr] omittedField :: Maybe FileDescr | |
| ToJSON FileDescr Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: FileDescr -> Encoding toJSONList :: [FileDescr] -> Value toEncodingList :: [FileDescr] -> Encoding | |
| Show FileDescr Source # | |
| Eq FileDescr Source # | |
xftpFileInvitation :: FilePath -> Integer -> FileDescr -> FileInvitation Source #
data InlineFileMode Source #
Instances
data RcvFileTransfer Source #
Constructors
| RcvFileTransfer | |
Fields
| |
Instances
| FromJSON RcvFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser RcvFileTransfer parseJSONList :: Value -> Parser [RcvFileTransfer] omittedField :: Maybe RcvFileTransfer | |
| ToJSON RcvFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: RcvFileTransfer -> Value toEncoding :: RcvFileTransfer -> Encoding toJSONList :: [RcvFileTransfer] -> Value toEncodingList :: [RcvFileTransfer] -> Encoding omitField :: RcvFileTransfer -> Bool | |
| Show RcvFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> RcvFileTransfer -> ShowS show :: RcvFileTransfer -> String showList :: [RcvFileTransfer] -> ShowS | |
| Eq RcvFileTransfer Source # | |
Defined in Simplex.Chat.Types Methods (==) :: RcvFileTransfer -> RcvFileTransfer -> Bool (/=) :: RcvFileTransfer -> RcvFileTransfer -> Bool | |
data XFTPRcvFile Source #
Constructors
| XFTPRcvFile | |
Fields
| |
Instances
| FromJSON XFTPRcvFile Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser XFTPRcvFile parseJSONList :: Value -> Parser [XFTPRcvFile] omittedField :: Maybe XFTPRcvFile | |
| ToJSON XFTPRcvFile Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: XFTPRcvFile -> Value toEncoding :: XFTPRcvFile -> Encoding toJSONList :: [XFTPRcvFile] -> Value toEncodingList :: [XFTPRcvFile] -> Encoding omitField :: XFTPRcvFile -> Bool | |
| Show XFTPRcvFile Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> XFTPRcvFile -> ShowS show :: XFTPRcvFile -> String showList :: [XFTPRcvFile] -> ShowS | |
| Eq XFTPRcvFile Source # | |
Defined in Simplex.Chat.Types | |
type RcvFileDescrText = Text Source #
data RcvFileDescr Source #
Constructors
| RcvFileDescr | |
Fields
| |
Instances
| FromJSON RcvFileDescr Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser RcvFileDescr parseJSONList :: Value -> Parser [RcvFileDescr] omittedField :: Maybe RcvFileDescr | |
| ToJSON RcvFileDescr Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: RcvFileDescr -> Value toEncoding :: RcvFileDescr -> Encoding toJSONList :: [RcvFileDescr] -> Value toEncodingList :: [RcvFileDescr] -> Encoding omitField :: RcvFileDescr -> Bool | |
| Show RcvFileDescr Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> RcvFileDescr -> ShowS show :: RcvFileDescr -> String showList :: [RcvFileDescr] -> ShowS | |
| Eq RcvFileDescr Source # | |
Defined in Simplex.Chat.Types | |
data RcvFileStatus Source #
Constructors
| RFSNew | |
| RFSAccepted | |
Fields
| |
| RFSConnected | |
Fields
| |
| RFSComplete | |
Fields
| |
| RFSCancelled | |
Fields
| |
Instances
| FromJSON RcvFileStatus Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser RcvFileStatus parseJSONList :: Value -> Parser [RcvFileStatus] omittedField :: Maybe RcvFileStatus | |
| ToJSON RcvFileStatus Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: RcvFileStatus -> Value toEncoding :: RcvFileStatus -> Encoding toJSONList :: [RcvFileStatus] -> Value toEncodingList :: [RcvFileStatus] -> Encoding omitField :: RcvFileStatus -> Bool | |
| Show RcvFileStatus Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> RcvFileStatus -> ShowS show :: RcvFileStatus -> String showList :: [RcvFileStatus] -> ShowS | |
| Eq RcvFileStatus Source # | |
Defined in Simplex.Chat.Types | |
rcvFileComplete :: RcvFileStatus -> Bool Source #
rcvFileCompleteOrCancelled :: RcvFileTransfer -> Bool Source #
liveRcvFileTransferPath :: RcvFileTransfer -> Maybe FilePath Source #
newtype AgentConnId Source #
Constructors
| AgentConnId ConnId |
Instances
newtype AgentSndFileId Source #
Constructors
| AgentSndFileId SndFileId |
Instances
newtype AgentRcvFileId Source #
Constructors
| AgentRcvFileId RcvFileId |
Instances
newtype AgentInvId Source #
Constructors
| AgentInvId InvitationId |
Instances
data FileTransfer Source #
Instances
| FromJSON FileTransfer Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser FileTransfer parseJSONList :: Value -> Parser [FileTransfer] omittedField :: Maybe FileTransfer | |
| ToJSON FileTransfer Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: FileTransfer -> Value toEncoding :: FileTransfer -> Encoding toJSONList :: [FileTransfer] -> Value toEncodingList :: [FileTransfer] -> Encoding omitField :: FileTransfer -> Bool | |
| Show FileTransfer Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> FileTransfer -> ShowS show :: FileTransfer -> String showList :: [FileTransfer] -> ShowS | |
data FileTransferMeta Source #
Constructors
| FileTransferMeta | |
Fields
| |
Instances
| FromJSON FileTransferMeta Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser FileTransferMeta parseJSONList :: Value -> Parser [FileTransferMeta] omittedField :: Maybe FileTransferMeta | |
| ToJSON FileTransferMeta Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: FileTransferMeta -> Value toEncoding :: FileTransferMeta -> Encoding toJSONList :: [FileTransferMeta] -> Value toEncodingList :: [FileTransferMeta] -> Encoding omitField :: FileTransferMeta -> Bool | |
| Show FileTransferMeta Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> FileTransferMeta -> ShowS show :: FileTransferMeta -> String showList :: [FileTransferMeta] -> ShowS | |
| Eq FileTransferMeta Source # | |
Defined in Simplex.Chat.Types Methods (==) :: FileTransferMeta -> FileTransferMeta -> Bool (/=) :: FileTransferMeta -> FileTransferMeta -> Bool | |
data LocalFileMeta Source #
Constructors
| LocalFileMeta | |
Fields
| |
Instances
| FromJSON LocalFileMeta Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser LocalFileMeta parseJSONList :: Value -> Parser [LocalFileMeta] omittedField :: Maybe LocalFileMeta | |
| ToJSON LocalFileMeta Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: LocalFileMeta -> Value toEncoding :: LocalFileMeta -> Encoding toJSONList :: [LocalFileMeta] -> Value toEncodingList :: [LocalFileMeta] -> Encoding omitField :: LocalFileMeta -> Bool | |
| Show LocalFileMeta Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> LocalFileMeta -> ShowS show :: LocalFileMeta -> String showList :: [LocalFileMeta] -> ShowS | |
| Eq LocalFileMeta Source # | |
Defined in Simplex.Chat.Types | |
data XFTPSndFile Source #
Constructors
| XFTPSndFile | |
Fields
| |
Instances
| FromJSON XFTPSndFile Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser XFTPSndFile parseJSONList :: Value -> Parser [XFTPSndFile] omittedField :: Maybe XFTPSndFile | |
| ToJSON XFTPSndFile Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: XFTPSndFile -> Value toEncoding :: XFTPSndFile -> Encoding toJSONList :: [XFTPSndFile] -> Value toEncodingList :: [XFTPSndFile] -> Encoding omitField :: XFTPSndFile -> Bool | |
| Show XFTPSndFile Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> XFTPSndFile -> ShowS show :: XFTPSndFile -> String showList :: [XFTPSndFile] -> ShowS | |
| Eq XFTPSndFile Source # | |
Defined in Simplex.Chat.Types | |
fileTransferCancelled :: FileTransfer -> Bool Source #
data FileStatus Source #
Constructors
| FSNew | |
| FSAccepted | |
| FSConnected | |
| FSComplete | |
| FSCancelled |
Instances
data RcvChunkStatus Source #
Constructors
| RcvChunkOk | |
| RcvChunkFinal | |
| RcvChunkDuplicate | |
| RcvChunkError |
Instances
| Show RcvChunkStatus Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> RcvChunkStatus -> ShowS show :: RcvChunkStatus -> String showList :: [RcvChunkStatus] -> ShowS | |
| Eq RcvChunkStatus Source # | |
Defined in Simplex.Chat.Types Methods (==) :: RcvChunkStatus -> RcvChunkStatus -> Bool (/=) :: RcvChunkStatus -> RcvChunkStatus -> Bool | |
type ConnReqInvitation = ConnectionRequestUri 'CMInvitation Source #
type ConnReqContact = ConnectionRequestUri 'CMContact Source #
type CreatedLinkInvitation = CreatedConnLink 'CMInvitation Source #
type CreatedLinkContact = CreatedConnLink 'CMContact Source #
type ConnLinkContact = ConnectionLink 'CMContact Source #
type ShortLinkInvitation = ConnShortLink 'CMInvitation Source #
type ShortLinkContact = ConnShortLink 'CMContact Source #
data Connection Source #
Constructors
| Connection | |
Fields
| |
Instances
| FromJSON Connection Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser Connection parseJSONList :: Value -> Parser [Connection] omittedField :: Maybe Connection | |
| ToJSON Connection Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: Connection -> Value toEncoding :: Connection -> Encoding toJSONList :: [Connection] -> Value toEncodingList :: [Connection] -> Encoding omitField :: Connection -> Bool | |
| Show Connection Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> Connection -> ShowS show :: Connection -> String showList :: [Connection] -> ShowS | |
| Eq Connection Source # | |
Defined in Simplex.Chat.Types | |
dbConnId :: Connection -> Int64 Source #
connReady :: Connection -> Bool Source #
authErrDisableCount :: Int Source #
connDisabled :: Connection -> Bool Source #
quotaErrInactiveCount :: Int Source #
quotaErrSetOnMERR :: Int Source #
connInactive :: Connection -> Bool Source #
data SecurityCode Source #
Constructors
| SecurityCode | |
Fields
| |
Instances
| FromJSON SecurityCode Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser SecurityCode parseJSONList :: Value -> Parser [SecurityCode] omittedField :: Maybe SecurityCode | |
| ToJSON SecurityCode Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: SecurityCode -> Value toEncoding :: SecurityCode -> Encoding toJSONList :: [SecurityCode] -> Value toEncodingList :: [SecurityCode] -> Encoding omitField :: SecurityCode -> Bool | |
| Show SecurityCode Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> SecurityCode -> ShowS show :: SecurityCode -> String showList :: [SecurityCode] -> ShowS | |
| Eq SecurityCode Source # | |
Defined in Simplex.Chat.Types | |
verificationCode :: ByteString -> Text Source #
sameVerificationCode :: Text -> Text -> Bool Source #
aConnId :: Connection -> ConnId Source #
connIncognito :: Connection -> Bool Source #
connPQEnabled :: Connection -> PQEncryption Source #
data PendingContactConnection Source #
Constructors
| PendingContactConnection | |
Fields
| |
Instances
| FromJSON PendingContactConnection Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser PendingContactConnection parseJSONList :: Value -> Parser [PendingContactConnection] omittedField :: Maybe PendingContactConnection | |
| ToJSON PendingContactConnection Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: PendingContactConnection -> Value toEncoding :: PendingContactConnection -> Encoding toJSONList :: [PendingContactConnection] -> Value toEncodingList :: [PendingContactConnection] -> Encoding omitField :: PendingContactConnection -> Bool | |
| Show PendingContactConnection Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> PendingContactConnection -> ShowS show :: PendingContactConnection -> String showList :: [PendingContactConnection] -> ShowS | |
| Eq PendingContactConnection Source # | |
Defined in Simplex.Chat.Types Methods (==) :: PendingContactConnection -> PendingContactConnection -> Bool (/=) :: PendingContactConnection -> PendingContactConnection -> Bool | |
mkPendingContactConnection :: Connection -> Maybe CreatedLinkInvitation -> PendingContactConnection Source #
aConnId' :: PendingContactConnection -> ConnId Source #
data ConnStatus Source #
Constructors
| ConnNew | connection is created by initiating party with agent NEW command (createConnection) |
| ConnPrepared | connection is prepared, to avoid changing keys on invitation links when retrying. |
| ConnJoined | connection is joined by joining party with agent JOIN command (joinConnection) |
| ConnRequested | initiating party received CONF notification (to be renamed to REQ) |
| ConnAccepted | initiating party accepted connection with agent LET command (to be renamed to ACPT) (allowConnection) |
| ConnSndReady | connection can be sent messages to (after joining party received INFO notification, or after securing snd queue on join) |
| ConnReady | connection is ready for both parties to send and receive messages |
| ConnDeleted | connection deleted |
Instances
Constructors
| ConnContact | |
| ConnMember | |
| ConnUserContact |
Instances
| FromJSON ConnType Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ConnType parseJSONList :: Value -> Parser [ConnType] omittedField :: Maybe ConnType | |
| ToJSON ConnType Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: ConnType -> Encoding toJSONList :: [ConnType] -> Value toEncodingList :: [ConnType] -> Encoding | |
| Show ConnType Source # | |
| Eq ConnType Source # | |
| TextEncoding ConnType Source # | |
Defined in Simplex.Chat.Types | |
| FromField ConnType Source # | |
Defined in Simplex.Chat.Types | |
| ToField ConnType Source # | |
Defined in Simplex.Chat.Types | |
data CommandStatus Source #
Constructors
| CSCreated | |
| CSCompleted | |
| CSError |
Instances
| Show CommandStatus Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> CommandStatus -> ShowS show :: CommandStatus -> String showList :: [CommandStatus] -> ShowS | |
| TextEncoding CommandStatus Source # | |
Defined in Simplex.Chat.Types | |
| FromField CommandStatus Source # | |
Defined in Simplex.Chat.Types Methods fromField :: FieldParser CommandStatus # | |
| ToField CommandStatus Source # | |
Defined in Simplex.Chat.Types Methods toField :: CommandStatus -> SQLData # | |
data CommandFunction Source #
Constructors
| CFCreateConnGrpMemInv | |
| CFCreateConnGrpInv | |
| CFCreateConnFileInvDirect | |
| CFCreateConnFileInvGroup | |
| CFJoinConn | |
| CFAllowConn | |
| CFAcceptContact | |
| CFAckMessage | |
| CFDeleteConn |
Instances
| Show CommandFunction Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> CommandFunction -> ShowS show :: CommandFunction -> String showList :: [CommandFunction] -> ShowS | |
| Eq CommandFunction Source # | |
Defined in Simplex.Chat.Types Methods (==) :: CommandFunction -> CommandFunction -> Bool (/=) :: CommandFunction -> CommandFunction -> Bool | |
| TextEncoding CommandFunction Source # | |
Defined in Simplex.Chat.Types | |
| FromField CommandFunction Source # | |
Defined in Simplex.Chat.Types Methods fromField :: FieldParser CommandFunction # | |
| ToField CommandFunction Source # | |
Defined in Simplex.Chat.Types Methods toField :: CommandFunction -> SQLData # | |
commandExpectedResponse :: CommandFunction -> AEvtTag Source #
data CommandData Source #
Constructors
| CommandData | |
Fields
| |
Instances
| Show CommandData Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> CommandData -> ShowS show :: CommandData -> String showList :: [CommandData] -> ShowS | |
Constructors
| ChatTag | |
Fields
| |
Instances
| FromJSON ChatTag Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ChatTag parseJSONList :: Value -> Parser [ChatTag] omittedField :: Maybe ChatTag | |
| ToJSON ChatTag Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: ChatTag -> Encoding toJSONList :: [ChatTag] -> Value toEncodingList :: [ChatTag] -> Encoding | |
| Show ChatTag Source # | |
data XGrpMemIntroCont Source #
Constructors
| XGrpMemIntroCont | |
Fields | |
Instances
| Show XGrpMemIntroCont Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> XGrpMemIntroCont -> ShowS show :: XGrpMemIntroCont -> String showList :: [XGrpMemIntroCont] -> ShowS | |
data NoteFolder Source #
Entity for local chats
Constructors
| NoteFolder | |
Fields
| |
Instances
| FromJSON NoteFolder Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser NoteFolder parseJSONList :: Value -> Parser [NoteFolder] omittedField :: Maybe NoteFolder | |
| ToJSON NoteFolder Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: NoteFolder -> Value toEncoding :: NoteFolder -> Encoding toJSONList :: [NoteFolder] -> Value toEncodingList :: [NoteFolder] -> Encoding omitField :: NoteFolder -> Bool | |
| Show NoteFolder Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> NoteFolder -> ShowS show :: NoteFolder -> String showList :: [NoteFolder] -> ShowS | |
| Eq NoteFolder Source # | |
Defined in Simplex.Chat.Types | |
type NoteFolderId = Int64 Source #
data ChatVersion Source #
Instances
| VersionScope ChatVersion Source # | |
Defined in Simplex.Chat.Types | |
type VersionChat = Version ChatVersion Source #
type VersionRangeChat = VersionRange ChatVersion Source #
pattern VersionChat :: Word16 -> VersionChat Source #
newtype ChatVersionRange Source #
Constructors
| ChatVersionRange | |
Fields | |
Instances
| FromJSON ChatVersionRange Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser ChatVersionRange parseJSONList :: Value -> Parser [ChatVersionRange] omittedField :: Maybe ChatVersionRange | |
| ToJSON ChatVersionRange Source # | |
Defined in Simplex.Chat.Types Methods toJSON :: ChatVersionRange -> Value toEncoding :: ChatVersionRange -> Encoding toJSONList :: [ChatVersionRange] -> Value toEncodingList :: [ChatVersionRange] -> Encoding omitField :: ChatVersionRange -> Bool | |
| Show ChatVersionRange Source # | |
Defined in Simplex.Chat.Types Methods showsPrec :: Int -> ChatVersionRange -> ShowS show :: ChatVersionRange -> String showList :: [ChatVersionRange] -> ShowS | |
| Eq ChatVersionRange Source # | |
Defined in Simplex.Chat.Types Methods (==) :: ChatVersionRange -> ChatVersionRange -> Bool (/=) :: ChatVersionRange -> ChatVersionRange -> Bool | |
Instances
| FromJSON BoolDef Source # | |
Defined in Simplex.Chat.Types Methods parseJSON :: Value -> Parser BoolDef parseJSONList :: Value -> Parser [BoolDef] omittedField :: Maybe BoolDef | |
| ToJSON BoolDef Source # | |
Defined in Simplex.Chat.Types Methods toEncoding :: BoolDef -> Encoding toJSONList :: [BoolDef] -> Value toEncodingList :: [BoolDef] -> Encoding | |
| Show BoolDef Source # | |
| Eq BoolDef Source # | |