mattermost-api-50200.5.0: Client API for Mattermost chat system

Safe HaskellNone
LanguageHaskell2010

Network.Mattermost

Contents

Synopsis

Types

Mattermost-Related Types (deprecated: use Network.Mattermost.Types instead)

data ConnectionPoolConfig Source #

Constructors

ConnectionPoolConfig 

Fields

data Login Source #

Constructors

Login 

Fields

Instances
ToJSON Login Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Login -> Value

toEncoding :: Login -> Encoding

toJSONList :: [Login] -> Value

toEncodingList :: [Login] -> Encoding

type Hostname = Text Source #

type Port = Int Source #

newtype Id Source #

Constructors

Id 

Fields

Instances
Eq Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Id -> Id -> Bool

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

Ord Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: Id -> Id -> Ordering

(<) :: Id -> Id -> Bool

(<=) :: Id -> Id -> Bool

(>) :: Id -> Id -> Bool

(>=) :: Id -> Id -> Bool

max :: Id -> Id -> Id

min :: Id -> Id -> Id

Read Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Id

readList :: ReadS [Id]

readPrec :: ReadPrec Id

readListPrec :: ReadPrec [Id]

Show Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Id -> ShowS

show :: Id -> String

showList :: [Id] -> ShowS

FromJSON Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Id

parseJSONList :: Value -> Parser [Id]

FromJSONKey Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction Id

fromJSONKeyList :: FromJSONKeyFunction [Id]

ToJSON Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Id -> Value

toEncoding :: Id -> Encoding

toJSONList :: [Id] -> Value

toEncodingList :: [Id] -> Encoding

ToJSONKey Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction Id

toJSONKeyList :: ToJSONKeyFunction [Id]

Hashable Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> Id -> Int

hash :: Id -> Int

IsId Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toId :: Id -> Id Source #

fromId :: Id -> Id Source #

HasId Id Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Id -> Id Source #

data User Source #

Instances
Eq User Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: User -> User -> Bool

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

Read User Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS User

readList :: ReadS [User]

readPrec :: ReadPrec User

readListPrec :: ReadPrec [User]

Show User Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> User -> ShowS

show :: User -> String

showList :: [User] -> ShowS

FromJSON User Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser User

parseJSONList :: Value -> Parser [User]

ToJSON User Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: User -> Value

toEncoding :: User -> Encoding

toJSONList :: [User] -> Value

toEncodingList :: [User] -> Encoding

HasId User UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: User -> UserId Source #

newtype UserId Source #

Constructors

UI 

Fields

Instances
Eq UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: UserId -> UserId -> Bool

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

Ord UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: UserId -> UserId -> Ordering

(<) :: UserId -> UserId -> Bool

(<=) :: UserId -> UserId -> Bool

(>) :: UserId -> UserId -> Bool

(>=) :: UserId -> UserId -> Bool

max :: UserId -> UserId -> UserId

min :: UserId -> UserId -> UserId

Read UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS UserId

readList :: ReadS [UserId]

readPrec :: ReadPrec UserId

readListPrec :: ReadPrec [UserId]

Show UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> UserId -> ShowS

show :: UserId -> String

showList :: [UserId] -> ShowS

FromJSON UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser UserId

parseJSONList :: Value -> Parser [UserId]

FromJSONKey UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction UserId

fromJSONKeyList :: FromJSONKeyFunction [UserId]

ToJSON UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: UserId -> Value

toEncoding :: UserId -> Encoding

toJSONList :: [UserId] -> Value

toEncodingList :: [UserId] -> Encoding

ToJSONKey UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction UserId

toJSONKeyList :: ToJSONKeyFunction [UserId]

PrintfArg UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

formatArg :: UserId -> FieldFormatter

parseFormat :: UserId -> ModifierParser

Hashable UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> UserId -> Int

hash :: UserId -> Int

IsId UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toId :: UserId -> Id Source #

fromId :: Id -> UserId Source #

HasId User UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: User -> UserId Source #

data InitialLoad Source #

Constructors

InitialLoad 
Instances
Eq InitialLoad Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: InitialLoad -> InitialLoad -> Bool

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

Show InitialLoad Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> InitialLoad -> ShowS

show :: InitialLoad -> String

showList :: [InitialLoad] -> ShowS

FromJSON InitialLoad Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser InitialLoad

parseJSONList :: Value -> Parser [InitialLoad]

data Team Source #

Instances
Eq Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Team -> Team -> Bool

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

Ord Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: Team -> Team -> Ordering

(<) :: Team -> Team -> Bool

(<=) :: Team -> Team -> Bool

(>) :: Team -> Team -> Bool

(>=) :: Team -> Team -> Bool

max :: Team -> Team -> Team

min :: Team -> Team -> Team

Read Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Team

readList :: ReadS [Team]

readPrec :: ReadPrec Team

readListPrec :: ReadPrec [Team]

Show Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Team -> ShowS

show :: Team -> String

showList :: [Team] -> ShowS

FromJSON Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Team

parseJSONList :: Value -> Parser [Team]

ToJSON Team Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Team -> Value

toEncoding :: Team -> Encoding

toJSONList :: [Team] -> Value

toEncodingList :: [Team] -> Encoding

HasId Team TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Team -> TeamId Source #

data TeamMember Source #

Instances
Eq TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: TeamMember -> TeamMember -> Bool

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

Ord TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Read TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS TeamMember

readList :: ReadS [TeamMember]

readPrec :: ReadPrec TeamMember

readListPrec :: ReadPrec [TeamMember]

Show TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> TeamMember -> ShowS

show :: TeamMember -> String

showList :: [TeamMember] -> ShowS

FromJSON TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser TeamMember

parseJSONList :: Value -> Parser [TeamMember]

ToJSON TeamMember Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: TeamMember -> Value

toEncoding :: TeamMember -> Encoding

toJSONList :: [TeamMember] -> Value

toEncodingList :: [TeamMember] -> Encoding

data Type Source #

Constructors

Ordinary 
Direct 
Private 
Group 
Unknown Text 
Instances
Eq Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Type -> Type -> Bool

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

Ord Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: Type -> Type -> Ordering

(<) :: Type -> Type -> Bool

(<=) :: Type -> Type -> Bool

(>) :: Type -> Type -> Bool

(>=) :: Type -> Type -> Bool

max :: Type -> Type -> Type

min :: Type -> Type -> Type

Read Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Type

readList :: ReadS [Type]

readPrec :: ReadPrec Type

readListPrec :: ReadPrec [Type]

Show Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Type -> ShowS

show :: Type -> String

showList :: [Type] -> ShowS

FromJSON Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Type

parseJSONList :: Value -> Parser [Type]

ToJSON Type Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Type -> Value

toEncoding :: Type -> Encoding

toJSONList :: [Type] -> Value

toEncodingList :: [Type] -> Encoding

newtype TeamId Source #

Constructors

TI 

Fields

Instances
Eq TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: TeamId -> TeamId -> Bool

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

Ord TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: TeamId -> TeamId -> Ordering

(<) :: TeamId -> TeamId -> Bool

(<=) :: TeamId -> TeamId -> Bool

(>) :: TeamId -> TeamId -> Bool

(>=) :: TeamId -> TeamId -> Bool

max :: TeamId -> TeamId -> TeamId

min :: TeamId -> TeamId -> TeamId

Read TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS TeamId

readList :: ReadS [TeamId]

readPrec :: ReadPrec TeamId

readListPrec :: ReadPrec [TeamId]

Show TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> TeamId -> ShowS

show :: TeamId -> String

showList :: [TeamId] -> ShowS

FromJSON TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser TeamId

parseJSONList :: Value -> Parser [TeamId]

FromJSONKey TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction TeamId

fromJSONKeyList :: FromJSONKeyFunction [TeamId]

ToJSON TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: TeamId -> Value

toEncoding :: TeamId -> Encoding

toJSONList :: [TeamId] -> Value

toEncodingList :: [TeamId] -> Encoding

ToJSONKey TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction TeamId

toJSONKeyList :: ToJSONKeyFunction [TeamId]

PrintfArg TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

formatArg :: TeamId -> FieldFormatter

parseFormat :: TeamId -> ModifierParser

Hashable TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> TeamId -> Int

hash :: TeamId -> Int

IsId TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toId :: TeamId -> Id Source #

fromId :: Id -> TeamId Source #

HasId Team TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Team -> TeamId Source #

data TeamsCreate Source #

Constructors

TeamsCreate 
Instances
Eq TeamsCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: TeamsCreate -> TeamsCreate -> Bool

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

Read TeamsCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS TeamsCreate

readList :: ReadS [TeamsCreate]

readPrec :: ReadPrec TeamsCreate

readListPrec :: ReadPrec [TeamsCreate]

Show TeamsCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> TeamsCreate -> ShowS

show :: TeamsCreate -> String

showList :: [TeamsCreate] -> ShowS

ToJSON TeamsCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: TeamsCreate -> Value

toEncoding :: TeamsCreate -> Encoding

toJSONList :: [TeamsCreate] -> Value

toEncodingList :: [TeamsCreate] -> Encoding

data Channel Source #

Instances
Eq Channel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Channel -> Channel -> Bool

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

Ord Channel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: Channel -> Channel -> Ordering

(<) :: Channel -> Channel -> Bool

(<=) :: Channel -> Channel -> Bool

(>) :: Channel -> Channel -> Bool

(>=) :: Channel -> Channel -> Bool

max :: Channel -> Channel -> Channel

min :: Channel -> Channel -> Channel

Read Channel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Channel

readList :: ReadS [Channel]

readPrec :: ReadPrec Channel

readListPrec :: ReadPrec [Channel]

Show Channel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Channel -> ShowS

show :: Channel -> String

showList :: [Channel] -> ShowS

FromJSON Channel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Channel

parseJSONList :: Value -> Parser [Channel]

HasId Channel ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

data ChannelWithData Source #

Instances
Eq ChannelWithData Source # 
Instance details

Defined in Network.Mattermost.Types

Read ChannelWithData Source # 
Instance details

Defined in Network.Mattermost.Types

Show ChannelWithData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> ChannelWithData -> ShowS

show :: ChannelWithData -> String

showList :: [ChannelWithData] -> ShowS

FromJSON ChannelWithData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser ChannelWithData

parseJSONList :: Value -> Parser [ChannelWithData]

data ChannelData Source #

Instances
Eq ChannelData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: ChannelData -> ChannelData -> Bool

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

Read ChannelData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS ChannelData

readList :: ReadS [ChannelData]

readPrec :: ReadPrec ChannelData

readListPrec :: ReadPrec [ChannelData]

Show ChannelData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> ChannelData -> ShowS

show :: ChannelData -> String

showList :: [ChannelData] -> ShowS

FromJSON ChannelData Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser ChannelData

parseJSONList :: Value -> Parser [ChannelData]

HasId ChannelData ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

newtype ChannelId Source #

Constructors

CI 

Fields

Instances
Eq ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: ChannelId -> ChannelId -> Bool

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

Ord ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: ChannelId -> ChannelId -> Ordering

(<) :: ChannelId -> ChannelId -> Bool

(<=) :: ChannelId -> ChannelId -> Bool

(>) :: ChannelId -> ChannelId -> Bool

(>=) :: ChannelId -> ChannelId -> Bool

max :: ChannelId -> ChannelId -> ChannelId

min :: ChannelId -> ChannelId -> ChannelId

Read ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS ChannelId

readList :: ReadS [ChannelId]

readPrec :: ReadPrec ChannelId

readListPrec :: ReadPrec [ChannelId]

Show ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> ChannelId -> ShowS

show :: ChannelId -> String

showList :: [ChannelId] -> ShowS

FromJSON ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser ChannelId

parseJSONList :: Value -> Parser [ChannelId]

FromJSONKey ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction ChannelId

fromJSONKeyList :: FromJSONKeyFunction [ChannelId]

ToJSON ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: ChannelId -> Value

toEncoding :: ChannelId -> Encoding

toJSONList :: [ChannelId] -> Value

toEncodingList :: [ChannelId] -> Encoding

ToJSONKey ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction ChannelId

toJSONKeyList :: ToJSONKeyFunction [ChannelId]

PrintfArg ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

formatArg :: ChannelId -> FieldFormatter

parseFormat :: ChannelId -> ModifierParser

Hashable ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> ChannelId -> Int

hash :: ChannelId -> Int

IsId ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId ChannelData ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId Channel ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

data ConnectionType Source #

Constructors

ConnectHTTPS Bool

Boolean is whether to require trusted certificate

ConnectHTTP

Make an insecure connection over HTTP

Instances
Eq ConnectionType Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Read ConnectionType Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Methods

readsPrec :: Int -> ReadS ConnectionType

readList :: ReadS [ConnectionType]

readPrec :: ReadPrec ConnectionType

readListPrec :: ReadPrec [ConnectionType]

Show ConnectionType Source # 
Instance details

Defined in Network.Mattermost.Types.Internal

Methods

showsPrec :: Int -> ConnectionType -> ShowS

show :: ConnectionType -> String

showList :: [ConnectionType] -> ShowS

data MinChannel Source #

Constructors

MinChannel 
Instances
Eq MinChannel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: MinChannel -> MinChannel -> Bool

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

Read MinChannel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS MinChannel

readList :: ReadS [MinChannel]

readPrec :: ReadPrec MinChannel

readListPrec :: ReadPrec [MinChannel]

Show MinChannel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> MinChannel -> ShowS

show :: MinChannel -> String

showList :: [MinChannel] -> ShowS

ToJSON MinChannel Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: MinChannel -> Value

toEncoding :: MinChannel -> Encoding

toJSONList :: [MinChannel] -> Value

toEncodingList :: [MinChannel] -> Encoding

data UsersCreate Source #

Constructors

UsersCreate 
Instances
Eq UsersCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: UsersCreate -> UsersCreate -> Bool

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

Read UsersCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS UsersCreate

readList :: ReadS [UsersCreate]

readPrec :: ReadPrec UsersCreate

readListPrec :: ReadPrec [UsersCreate]

Show UsersCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> UsersCreate -> ShowS

show :: UsersCreate -> String

showList :: [UsersCreate] -> ShowS

ToJSON UsersCreate Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: UsersCreate -> Value

toEncoding :: UsersCreate -> Encoding

toJSONList :: [UsersCreate] -> Value

toEncodingList :: [UsersCreate] -> Encoding

data Post Source #

Instances
Eq Post Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Post -> Post -> Bool

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

Read Post Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Post

readList :: ReadS [Post]

readPrec :: ReadPrec Post

readListPrec :: ReadPrec [Post]

Show Post Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Post -> ShowS

show :: Post -> String

showList :: [Post] -> ShowS

FromJSON Post Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Post

parseJSONList :: Value -> Parser [Post]

ToJSON Post Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Post -> Value

toEncoding :: Post -> Encoding

toJSONList :: [Post] -> Value

toEncodingList :: [Post] -> Encoding

HasId Post PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Post -> PostId Source #

data PostType Source #

Instances
Eq PostType Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: PostType -> PostType -> Bool

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

Read PostType Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS PostType

readList :: ReadS [PostType]

readPrec :: ReadPrec PostType

readListPrec :: ReadPrec [PostType]

Show PostType Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PostType -> ShowS

show :: PostType -> String

showList :: [PostType] -> ShowS

FromJSON PostType Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PostType

parseJSONList :: Value -> Parser [PostType]

ToJSON PostType Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PostType -> Value

toEncoding :: PostType -> Encoding

toJSONList :: [PostType] -> Value

toEncodingList :: [PostType] -> Encoding

data PostProps Source #

Constructors

PostProps 

Fields

Instances
Eq PostProps Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: PostProps -> PostProps -> Bool

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

Read PostProps Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS PostProps

readList :: ReadS [PostProps]

readPrec :: ReadPrec PostProps

readListPrec :: ReadPrec [PostProps]

Show PostProps Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PostProps -> ShowS

show :: PostProps -> String

showList :: [PostProps] -> ShowS

FromJSON PostProps Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PostProps

parseJSONList :: Value -> Parser [PostProps]

ToJSON PostProps Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PostProps -> Value

toEncoding :: PostProps -> Encoding

toJSONList :: [PostProps] -> Value

toEncodingList :: [PostProps] -> Encoding

data PendingPost Source #

Instances
Eq PendingPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: PendingPost -> PendingPost -> Bool

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

Read PendingPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS PendingPost

readList :: ReadS [PendingPost]

readPrec :: ReadPrec PendingPost

readListPrec :: ReadPrec [PendingPost]

Show PendingPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PendingPost -> ShowS

show :: PendingPost -> String

showList :: [PendingPost] -> ShowS

ToJSON PendingPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PendingPost -> Value

toEncoding :: PendingPost -> Encoding

toJSONList :: [PendingPost] -> Value

toEncodingList :: [PendingPost] -> Encoding

HasId PendingPost PendingPostId Source # 
Instance details

Defined in Network.Mattermost.Types

newtype PostId Source #

Constructors

PI 

Fields

Instances
Eq PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: PostId -> PostId -> Bool

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

Ord PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: PostId -> PostId -> Ordering

(<) :: PostId -> PostId -> Bool

(<=) :: PostId -> PostId -> Bool

(>) :: PostId -> PostId -> Bool

(>=) :: PostId -> PostId -> Bool

max :: PostId -> PostId -> PostId

min :: PostId -> PostId -> PostId

Read PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS PostId

readList :: ReadS [PostId]

readPrec :: ReadPrec PostId

readListPrec :: ReadPrec [PostId]

Show PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PostId -> ShowS

show :: PostId -> String

showList :: [PostId] -> ShowS

FromJSON PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PostId

parseJSONList :: Value -> Parser [PostId]

FromJSONKey PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction PostId

fromJSONKeyList :: FromJSONKeyFunction [PostId]

ToJSON PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PostId -> Value

toEncoding :: PostId -> Encoding

toJSONList :: [PostId] -> Value

toEncodingList :: [PostId] -> Encoding

ToJSONKey PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction PostId

toJSONKeyList :: ToJSONKeyFunction [PostId]

PrintfArg PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

formatArg :: PostId -> FieldFormatter

parseFormat :: PostId -> ModifierParser

Hashable PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> PostId -> Int

hash :: PostId -> Int

IsId PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toId :: PostId -> Id Source #

fromId :: Id -> PostId Source #

HasId Post PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Post -> PostId Source #

newtype FileId Source #

Constructors

FI 

Fields

Instances
Eq FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: FileId -> FileId -> Bool

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

Ord FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

compare :: FileId -> FileId -> Ordering

(<) :: FileId -> FileId -> Bool

(<=) :: FileId -> FileId -> Bool

(>) :: FileId -> FileId -> Bool

(>=) :: FileId -> FileId -> Bool

max :: FileId -> FileId -> FileId

min :: FileId -> FileId -> FileId

Read FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS FileId

readList :: ReadS [FileId]

readPrec :: ReadPrec FileId

readListPrec :: ReadPrec [FileId]

Show FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> FileId -> ShowS

show :: FileId -> String

showList :: [FileId] -> ShowS

FromJSON FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser FileId

parseJSONList :: Value -> Parser [FileId]

FromJSONKey FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

fromJSONKey :: FromJSONKeyFunction FileId

fromJSONKeyList :: FromJSONKeyFunction [FileId]

ToJSON FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: FileId -> Value

toEncoding :: FileId -> Encoding

toJSONList :: [FileId] -> Value

toEncodingList :: [FileId] -> Encoding

ToJSONKey FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSONKey :: ToJSONKeyFunction FileId

toJSONKeyList :: ToJSONKeyFunction [FileId]

PrintfArg FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

formatArg :: FileId -> FieldFormatter

parseFormat :: FileId -> ModifierParser

Hashable FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

hashWithSalt :: Int -> FileId -> Int

hash :: FileId -> Int

IsId FileId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toId :: FileId -> Id Source #

fromId :: Id -> FileId Source #

data FileInfo Source #

Instances
Eq FileInfo Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: FileInfo -> FileInfo -> Bool

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

Read FileInfo Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS FileInfo

readList :: ReadS [FileInfo]

readPrec :: ReadPrec FileInfo

readListPrec :: ReadPrec [FileInfo]

Show FileInfo Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> FileInfo -> ShowS

show :: FileInfo -> String

showList :: [FileInfo] -> ShowS

FromJSON FileInfo Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser FileInfo

parseJSONList :: Value -> Parser [FileInfo]

ToJSON FileInfo Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: FileInfo -> Value

toEncoding :: FileInfo -> Encoding

toJSONList :: [FileInfo] -> Value

toEncodingList :: [FileInfo] -> Encoding

data Reaction Source #

Instances
Eq Reaction Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Reaction -> Reaction -> Bool

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

Read Reaction Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Reaction

readList :: ReadS [Reaction]

readPrec :: ReadPrec Reaction

readListPrec :: ReadPrec [Reaction]

Show Reaction Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Reaction -> ShowS

show :: Reaction -> String

showList :: [Reaction] -> ShowS

FromJSON Reaction Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Reaction

parseJSONList :: Value -> Parser [Reaction]

ToJSON Reaction Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Reaction -> Value

toEncoding :: Reaction -> Encoding

toJSONList :: [Reaction] -> Value

toEncodingList :: [Reaction] -> Encoding

data Posts Source #

Constructors

Posts 

Fields

Instances
Eq Posts Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Posts -> Posts -> Bool

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

Read Posts Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Posts

readList :: ReadS [Posts]

readPrec :: ReadPrec Posts

readListPrec :: ReadPrec [Posts]

Show Posts Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Posts -> ShowS

show :: Posts -> String

showList :: [Posts] -> ShowS

FromJSON Posts Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Posts

parseJSONList :: Value -> Parser [Posts]

data MinCommand Source #

Instances
Eq MinCommand Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: MinCommand -> MinCommand -> Bool

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

Read MinCommand Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS MinCommand

readList :: ReadS [MinCommand]

readPrec :: ReadPrec MinCommand

readListPrec :: ReadPrec [MinCommand]

Show MinCommand Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> MinCommand -> ShowS

show :: MinCommand -> String

showList :: [MinCommand] -> ShowS

ToJSON MinCommand Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: MinCommand -> Value

toEncoding :: MinCommand -> Encoding

toJSONList :: [MinCommand] -> Value

toEncodingList :: [MinCommand] -> Encoding

data CommandResponse Source #

Instances
Eq CommandResponse Source # 
Instance details

Defined in Network.Mattermost.Types

Read CommandResponse Source # 
Instance details

Defined in Network.Mattermost.Types

Show CommandResponse Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> CommandResponse -> ShowS

show :: CommandResponse -> String

showList :: [CommandResponse] -> ShowS

FromJSON CommandResponse Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser CommandResponse

parseJSONList :: Value -> Parser [CommandResponse]

data Preference Source #

Instances
Eq Preference Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: Preference -> Preference -> Bool

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

Read Preference Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS Preference

readList :: ReadS [Preference]

readPrec :: ReadPrec Preference

readListPrec :: ReadPrec [Preference]

Show Preference Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> Preference -> ShowS

show :: Preference -> String

showList :: [Preference] -> ShowS

FromJSON Preference Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser Preference

parseJSONList :: Value -> Parser [Preference]

ToJSON Preference Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: Preference -> Value

toEncoding :: Preference -> Encoding

toJSONList :: [Preference] -> Value

toEncodingList :: [Preference] -> Encoding

data PreferenceCategory Source #

Instances
Eq PreferenceCategory Source # 
Instance details

Defined in Network.Mattermost.Types

Read PreferenceCategory Source # 
Instance details

Defined in Network.Mattermost.Types

Show PreferenceCategory Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PreferenceCategory -> ShowS

show :: PreferenceCategory -> String

showList :: [PreferenceCategory] -> ShowS

FromJSON PreferenceCategory Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PreferenceCategory

parseJSONList :: Value -> Parser [PreferenceCategory]

ToJSON PreferenceCategory Source # 
Instance details

Defined in Network.Mattermost.Types

data PreferenceName Source #

Constructors

PreferenceName 

Fields

Instances
Eq PreferenceName Source # 
Instance details

Defined in Network.Mattermost.Types

Read PreferenceName Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS PreferenceName

readList :: ReadS [PreferenceName]

readPrec :: ReadPrec PreferenceName

readListPrec :: ReadPrec [PreferenceName]

Show PreferenceName Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PreferenceName -> ShowS

show :: PreferenceName -> String

showList :: [PreferenceName] -> ShowS

FromJSON PreferenceName Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PreferenceName

parseJSONList :: Value -> Parser [PreferenceName]

ToJSON PreferenceName Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PreferenceName -> Value

toEncoding :: PreferenceName -> Encoding

toJSONList :: [PreferenceName] -> Value

toEncodingList :: [PreferenceName] -> Encoding

data PreferenceValue Source #

Constructors

PreferenceValue 

Fields

Instances
Eq PreferenceValue Source # 
Instance details

Defined in Network.Mattermost.Types

Read PreferenceValue Source # 
Instance details

Defined in Network.Mattermost.Types

Show PreferenceValue Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> PreferenceValue -> ShowS

show :: PreferenceValue -> String

showList :: [PreferenceValue] -> ShowS

FromJSON PreferenceValue Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

parseJSON :: Value -> Parser PreferenceValue

parseJSONList :: Value -> Parser [PreferenceValue]

ToJSON PreferenceValue Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: PreferenceValue -> Value

toEncoding :: PreferenceValue -> Encoding

toJSONList :: [PreferenceValue] -> Value

toEncodingList :: [PreferenceValue] -> Encoding

data FlaggedPost Source #

Instances
Eq FlaggedPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

(==) :: FlaggedPost -> FlaggedPost -> Bool

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

Read FlaggedPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

readsPrec :: Int -> ReadS FlaggedPost

readList :: ReadS [FlaggedPost]

readPrec :: ReadPrec FlaggedPost

readListPrec :: ReadPrec [FlaggedPost]

Show FlaggedPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

showsPrec :: Int -> FlaggedPost -> ShowS

show :: FlaggedPost -> String

showList :: [FlaggedPost] -> ShowS

ToJSON FlaggedPost Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

toJSON :: FlaggedPost -> Value

toEncoding :: FlaggedPost -> Encoding

toJSONList :: [FlaggedPost] -> Value

toEncodingList :: [FlaggedPost] -> Encoding

Log-related types

type Logger = LogEvent -> IO () Source #

A Logger is any function which responds to log events:

data LogEvent Source #

If there is a Logger in the ConnectionData struct, it will be sporadically called with values of type LogEvent.

Constructors

LogEvent 

Fields

Instances
Eq LogEvent Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Methods

(==) :: LogEvent -> LogEvent -> Bool

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

Show LogEvent Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Methods

showsPrec :: Int -> LogEvent -> ShowS

show :: LogEvent -> String

showList :: [LogEvent] -> ShowS

data LogEventType Source #

A LogEventType describes the particular event that happened

Constructors

HttpRequest RequestMethod String (Maybe Value) 
HttpResponse Int String (Maybe Value) 
WebSocketRequest Value 
WebSocketResponse (Either String Value)

Left means we got an exception trying to parse the response; Right means we succeeded and here it is.

WebSocketPing 
WebSocketPong 
Instances
Eq LogEventType Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Methods

(==) :: LogEventType -> LogEventType -> Bool

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

Show LogEventType Source # 
Instance details

Defined in Network.Mattermost.Types.Base

Methods

showsPrec :: Int -> LogEventType -> ShowS

show :: LogEventType -> String

showList :: [LogEventType] -> ShowS

Typeclasses

class HasId x y | x -> y where Source #

Methods

getId :: x -> y Source #

Instances
HasId Command CommandId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId PendingPost PendingPostId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId Post PostId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Post -> PostId Source #

HasId User UserId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: User -> UserId Source #

HasId ChannelData ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId Channel ChannelId Source # 
Instance details

Defined in Network.Mattermost.Types

HasId Team TeamId Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Team -> TeamId Source #

HasId Id Id Source # 
Instance details

Defined in Network.Mattermost.Types

Methods

getId :: Id -> Id Source #

HTTP API Functions

mkConnectionData :: Hostname -> Port -> Text -> Pool MMConn -> ConnectionType -> ConnectionContext -> ConnectionData Source #

Creates a structure representing a connection to the server.

mmLogin :: ConnectionData -> Login -> IO (Either LoginFailureException (Session, User)) Source #

Fire off a login attempt. Note: We get back more than just the auth token. We also get all the server-side configuration data for the user.

route: /api/v3/users/login

mmCreateDirect :: Session -> TeamId -> UserId -> IO Channel Source #

route: /api/v3/teams/{team_id}/channels/create_direct

mmCreateChannel :: Session -> TeamId -> MinChannel -> IO Channel Source #

route: /api/v3/teams/{team_id}/channels/create

mmCreateGroupChannel :: Session -> [UserId] -> IO Channel Source #

Create a group channel containing the specified users in addition to the user making the request.

mmCreateTeam :: Session -> TeamsCreate -> IO Team Source #

route: /api/v3/teams/create

mmDeleteChannel :: Session -> TeamId -> ChannelId -> IO () Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/delete

mmLeaveChannel :: Session -> TeamId -> ChannelId -> IO () Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/leave

mmJoinChannel :: Session -> TeamId -> ChannelId -> IO () Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/join

mmGetTeams :: Session -> IO (HashMap TeamId Team) Source #

Requires an authenticated user. Returns the full list of teams.

route: /api/v3/teams/all

mmGetChannels :: Session -> TeamId -> IO Channels Source #

Requires an authenticated user. Returns the full list of channels for a given team of which the user is a member

route: /api/v3/teams/{team_id}/channels/

mmGetAllChannelDataForUser :: Session -> TeamId -> UserId -> IO (Seq ChannelData) Source #

Get channel/user metadata in bulk.

mmGetMoreChannels :: Session -> TeamId -> Int -> Int -> IO Channels Source #

Requires an authenticated user. Returns the channels for a team of which the user is not already a member

route: /api/v3/teams/{team_id}/channels/more/{offset}/{limit}

mmGetChannel :: Session -> TeamId -> ChannelId -> IO ChannelWithData Source #

Requires an authenticated user. Returns the details of a specific channel.

route: /api/v3/teams/{team_id}/channels/{channel_id}

mmViewChannel Source #

Arguments

:: Session 
-> TeamId 
-> ChannelId

channel to view

-> Maybe ChannelId

previous channel

-> IO () 

route: /api/v3/teams/{team_id}/channels/view

mmDeletePost :: Session -> TeamId -> ChannelId -> PostId -> IO () Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/{post_id}/delete

mmGetPost :: Session -> TeamId -> ChannelId -> PostId -> IO Posts Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/{post_id}/get

mmGetPosts :: Session -> TeamId -> ChannelId -> Int -> Int -> IO Posts Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/page/{offset}/{limit}

mmGetPostsSince :: Session -> TeamId -> ChannelId -> ServerTime -> IO Posts Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/since/{utc_time}

mmGetPostsBefore :: Session -> TeamId -> ChannelId -> PostId -> Int -> Int -> IO Posts Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/{post_id}/before/{offset}/{limit}

mmGetPostsAfter :: Session -> TeamId -> ChannelId -> PostId -> Int -> Int -> IO Posts Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/{post_id}/after/{offset}/{limit}

mmSearchPosts :: Session -> TeamId -> Text -> Bool -> IO Posts Source #

route: /api/v4/teams/{team_id}/posts/search

mmGetReactionsForPost :: Session -> TeamId -> ChannelId -> PostId -> IO [Reaction] Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/{post_id}/reactions

mmGetFileInfo :: Session -> FileId -> IO FileInfo Source #

route: /api/v3/files/{file_id}/get_info

mmGetFile :: Session -> FileId -> IO ByteString Source #

route: /api/v4/files/{file_id}

mmGetUser :: Session -> UserId -> IO User Source #

route: /api/v3/users/{user_id}/get

mmGetUsers :: Session -> Int -> Int -> IO (HashMap UserId User) Source #

route: /api/v3/users/{offset}/{limit}

mmGetTeamMembers :: Session -> TeamId -> IO (Seq TeamMember) Source #

route: /api/v3/teams/members/{team_id}

mmGetChannelMembers :: Session -> TeamId -> ChannelId -> Int -> Int -> IO (HashMap UserId User) Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/users/{offset}/{limit}

mmGetProfilesForDMList :: Session -> TeamId -> IO (HashMap UserId User) Source #

route: /api/v3/users/profiles_for_dm_list/{team_id}

mmGetMe :: Session -> IO User Source #

route: /api/v3/users/me

mmGetProfiles :: Session -> TeamId -> Int -> Int -> IO (HashMap UserId User) Source #

route: /api/v3/teams/{team_id}/users/{offset}/{limit}

mmGetStatuses :: Session -> IO (HashMap UserId Text) Source #

route: /api/v3/users/status

mmGetInitialLoad :: Session -> IO InitialLoad Source #

Fire off a login attempt. Note: We get back more than just the auth token. We also get all the server-side configuration data for the user.

route: /api/v3/users/initial_load

mmSaveConfig :: Session -> Value -> IO () Source #

mmSetChannelHeader :: Session -> TeamId -> ChannelId -> Text -> IO Channel Source #

route: /api/v3/teams/{team_id}/channels/update_header

mmChannelAddUser :: Session -> TeamId -> ChannelId -> UserId -> IO ChannelData Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/add

mmChannelRemoveUser :: Session -> ChannelId -> UserId -> IO () Source #

Remove the specified user from the specified channel.

mmTeamAddUser :: Session -> TeamId -> UserId -> IO () Source #

route: /api/v3/teams/{team_id}/add_user_to_team

mmUsersCreate :: ConnectionData -> UsersCreate -> IO User Source #

route: /api/v3/users/create

mmUsersCreateWithSession :: Session -> UsersCreate -> IO User Source #

route: /api/v3/users/create

mmPost :: Session -> TeamId -> PendingPost -> IO Post Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/create

mmUpdatePost :: Session -> TeamId -> Post -> IO Post Source #

route: /api/v3/teams/{team_id}/channels/{channel_id}/posts/update

mmExecute :: Session -> TeamId -> MinCommand -> IO CommandResponse Source #

route: /api/v3/teams/{team_id}/commands/execute

mmGetConfig :: Session -> IO Value Source #

Get the system configuration. Requires administrative permission.

route: /api/v3/admin/config

mmGetClientConfig :: Session -> IO Value Source #

Get a subset of the server configuration needed by the client. Does not require administrative permission. The format query parameter is currently required with the value of "old".

route: /api/v4/config/client

mmSavePreferences :: Session -> Seq Preference -> IO () Source #

route: /api/v3/preferences/save

mmDeletePreferences :: Session -> Seq Preference -> IO () Source #

route: /api/v3/preferences/save

mmFlagPost :: Session -> UserId -> PostId -> IO () Source #

route: /api/v3/preferences/save

This is a convenience function for a particular use of mmSavePreference

mmUnflagPost :: Session -> UserId -> PostId -> IO () Source #

route: /api/v3/preferences/save

This is a convenience function for a particular use of mmSavePreference

idString :: IsId x => x -> Text Source #

hoistE :: Exception e => Either e r -> IO r Source #

This unwraps an Either value, throwing the contained exception if the Either was a Left value.

noteE :: Exception e => Maybe r -> e -> IO r Source #

This unwraps a Maybe value, throwing a provided exception if the value is Nothing.

assertE :: Exception e => Bool -> e -> IO () Source #

This asserts that the provided Bool is True, throwing a provided exception is the argument was False.