matrix-bot-0.2.0: Matrix multipurpose bot
Safe HaskellNone
LanguageHaskell2010

MatrixBot.MatrixApi

Synopsis

Basic stuff

type ClientV3 a = "_matrix" :> ("client" :> ("v3" :> a)) Source #

type Authenticated a = AuthProtect "access-token" :> a Source #

Endpoints

Login

type LoginApi = ClientV3 ("login" :> (ReqBody '[JSON] LoginRequest :> Post '[JSON] LoginResponse)) Source #

data LoginRequest Source #

Instances

Instances details
FromJSON LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser LoginRequest

parseJSONList :: Value -> Parser [LoginRequest]

omittedField :: Maybe LoginRequest

ToJSON LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: LoginRequest -> Value

toEncoding :: LoginRequest -> Encoding

toJSONList :: [LoginRequest] -> Value

toEncodingList :: [LoginRequest] -> Encoding

omitField :: LoginRequest -> Bool

Generic LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep LoginRequest 
Instance details

Defined in MatrixBot.MatrixApi

type Rep LoginRequest = D1 ('MetaData "LoginRequest" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "LoginRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "loginRequestType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MLoginPasswordType])) :*: (S1 ('MetaSel ('Just "loginRequestUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Username) :*: S1 ('MetaSel ('Just "loginRequestPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Password))))
Show LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> LoginRequest -> ShowS

show :: LoginRequest -> String

showList :: [LoginRequest] -> ShowS

Eq LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: LoginRequest -> LoginRequest -> Bool

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

type Rep LoginRequest Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep LoginRequest = D1 ('MetaData "LoginRequest" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "LoginRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "loginRequestType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MLoginPasswordType])) :*: (S1 ('MetaSel ('Just "loginRequestUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Username) :*: S1 ('MetaSel ('Just "loginRequestPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Password))))

data LoginResponse Source #

Instances

Instances details
FromJSON LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser LoginResponse

parseJSONList :: Value -> Parser [LoginResponse]

omittedField :: Maybe LoginResponse

ToJSON LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: LoginResponse -> Value

toEncoding :: LoginResponse -> Encoding

toJSONList :: [LoginResponse] -> Value

toEncodingList :: [LoginResponse] -> Encoding

omitField :: LoginResponse -> Bool

Generic LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep LoginResponse 
Instance details

Defined in MatrixBot.MatrixApi

type Rep LoginResponse = D1 ('MetaData "LoginResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "LoginResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "loginResponseAccessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccessToken) :*: (S1 ('MetaSel ('Just "loginResponseHomeServer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HomeServer) :*: S1 ('MetaSel ('Just "loginResponseUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Mxid))))
Show LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> LoginResponse -> ShowS

show :: LoginResponse -> String

showList :: [LoginResponse] -> ShowS

Eq LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep LoginResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep LoginResponse = D1 ('MetaData "LoginResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "LoginResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "loginResponseAccessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccessToken) :*: (S1 ('MetaSel ('Just "loginResponseHomeServer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HomeServer) :*: S1 ('MetaSel ('Just "loginResponseUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Mxid))))

List room

type ListRoomApi = ClientV3 (Authenticated ("directory" :> ("list" :> ("room" :> (Capture "roomId" RoomId :> Get '[JSON] ListRoomResponse))))) Source #

See the visibility of the room

newtype ListRoomResponse Source #

Instances

Instances details
FromJSON ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser ListRoomResponse

parseJSONList :: Value -> Parser [ListRoomResponse]

omittedField :: Maybe ListRoomResponse

ToJSON ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep ListRoomResponse 
Instance details

Defined in MatrixBot.MatrixApi

type Rep ListRoomResponse = D1 ('MetaData "ListRoomResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "ListRoomResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "listRoomResponseVisibility") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoomVisibility)))
Show ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> ListRoomResponse -> ShowS

show :: ListRoomResponse -> String

showList :: [ListRoomResponse] -> ShowS

Eq ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep ListRoomResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep ListRoomResponse = D1 ('MetaData "ListRoomResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "ListRoomResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "listRoomResponseVisibility") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RoomVisibility)))

data RoomVisibility Source #

Instances

Instances details
FromJSON RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser RoomVisibility

parseJSONList :: Value -> Parser [RoomVisibility]

omittedField :: Maybe RoomVisibility

ToJSON RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: RoomVisibility -> Value

toEncoding :: RoomVisibility -> Encoding

toJSONList :: [RoomVisibility] -> Value

toEncodingList :: [RoomVisibility] -> Encoding

omitField :: RoomVisibility -> Bool

Bounded RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> RoomVisibility -> ShowS

show :: RoomVisibility -> String

showList :: [RoomVisibility] -> ShowS

Eq RoomVisibility Source # 
Instance details

Defined in MatrixBot.MatrixApi

Events

type EventsApi = ClientV3 (Authenticated ("events" :> (QueryParam "from" EventToken :> (QueryParam "room_id" RoomId :> (QueryParam "timeout" Milliseconds :> Get '[JSON] EventsResponse))))) Source #

data EventsResponse Source #

Instances

Instances details
FromJSON EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser EventsResponse

parseJSONList :: Value -> Parser [EventsResponse]

omittedField :: Maybe EventsResponse

ToJSON EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: EventsResponse -> Value

toEncoding :: EventsResponse -> Encoding

toJSONList :: [EventsResponse] -> Value

toEncodingList :: [EventsResponse] -> Encoding

omitField :: EventsResponse -> Bool

Generic EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep EventsResponse 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventsResponse = D1 ('MetaData "EventsResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "EventsResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventsResponseChunk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ClientEvent]) :*: (S1 ('MetaSel ('Just "eventsResponseEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventToken) :*: S1 ('MetaSel ('Just "eventsResponseStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventToken))))
Show EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> EventsResponse -> ShowS

show :: EventsResponse -> String

showList :: [EventsResponse] -> ShowS

Eq EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventsResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventsResponse = D1 ('MetaData "EventsResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "EventsResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventsResponseChunk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ClientEvent]) :*: (S1 ('MetaSel ('Just "eventsResponseEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventToken) :*: S1 ('MetaSel ('Just "eventsResponseStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventToken))))

data ClientEvent Source #

Room event of any type

Instances

Instances details
FromJSON ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser ClientEvent

parseJSONList :: Value -> Parser [ClientEvent]

omittedField :: Maybe ClientEvent

ToJSON ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: ClientEvent -> Value

toEncoding :: ClientEvent -> Encoding

toJSONList :: [ClientEvent] -> Value

toEncodingList :: [ClientEvent] -> Encoding

omitField :: ClientEvent -> Bool

Generic ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep ClientEvent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep ClientEvent = D1 ('MetaData "ClientEvent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "ClientEventMRoomMessage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ClientEventGeneric Identity)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageClientEvent)) :+: C1 ('MetaCons "ClientEventOther" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ClientEventGeneric Maybe)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))

Methods

from :: ClientEvent -> Rep ClientEvent x

to :: Rep ClientEvent x -> ClientEvent

Show ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> ClientEvent -> ShowS

show :: ClientEvent -> String

showList :: [ClientEvent] -> ShowS

Eq ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: ClientEvent -> ClientEvent -> Bool

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

type Rep ClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep ClientEvent = D1 ('MetaData "ClientEvent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "ClientEventMRoomMessage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ClientEventGeneric Identity)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageClientEvent)) :+: C1 ('MetaCons "ClientEventOther" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ClientEventGeneric Maybe)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))

data ClientEventGeneric (f :: Type -> Type) Source #

Instances

Instances details
FromJSON (ClientEventGeneric Identity) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser (ClientEventGeneric Identity)

parseJSONList :: Value -> Parser [ClientEventGeneric Identity]

omittedField :: Maybe (ClientEventGeneric Identity)

FromJSON (ClientEventGeneric Maybe) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser (ClientEventGeneric Maybe)

parseJSONList :: Value -> Parser [ClientEventGeneric Maybe]

omittedField :: Maybe (ClientEventGeneric Maybe)

ToJSON (ClientEventGeneric Identity) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: ClientEventGeneric Identity -> Value

toEncoding :: ClientEventGeneric Identity -> Encoding

toJSONList :: [ClientEventGeneric Identity] -> Value

toEncodingList :: [ClientEventGeneric Identity] -> Encoding

omitField :: ClientEventGeneric Identity -> Bool

ToJSON (ClientEventGeneric Maybe) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: ClientEventGeneric Maybe -> Value

toEncoding :: ClientEventGeneric Maybe -> Encoding

toJSONList :: [ClientEventGeneric Maybe] -> Value

toEncodingList :: [ClientEventGeneric Maybe] -> Encoding

omitField :: ClientEventGeneric Maybe -> Bool

Generic (ClientEventGeneric f) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep (ClientEventGeneric f) 
Instance details

Defined in MatrixBot.MatrixApi

type Rep (ClientEventGeneric f) = D1 ('MetaData "ClientEventGeneric" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "ClientEventGeneric" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clientEventGenericType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "clientEventGenericContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)) :*: (S1 ('MetaSel ('Just "clientEventGenericEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f EventId)) :*: S1 ('MetaSel ('Just "clientEventGenericOriginServerTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f Integer)))) :*: ((S1 ('MetaSel ('Just "clientEventGenericRoomId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f RoomId)) :*: S1 ('MetaSel ('Just "clientEventGenericSender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f Mxid))) :*: (S1 ('MetaSel ('Just "clientEventGenericStateKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientEventGenericUnsigned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))))))
Show (ClientEventGeneric Identity) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> ClientEventGeneric Identity -> ShowS

show :: ClientEventGeneric Identity -> String

showList :: [ClientEventGeneric Identity] -> ShowS

Show (ClientEventGeneric Maybe) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> ClientEventGeneric Maybe -> ShowS

show :: ClientEventGeneric Maybe -> String

showList :: [ClientEventGeneric Maybe] -> ShowS

Eq (ClientEventGeneric Identity) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: ClientEventGeneric Identity -> ClientEventGeneric Identity -> Bool

(/=) :: ClientEventGeneric Identity -> ClientEventGeneric Identity -> Bool

Eq (ClientEventGeneric Maybe) Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: ClientEventGeneric Maybe -> ClientEventGeneric Maybe -> Bool

(/=) :: ClientEventGeneric Maybe -> ClientEventGeneric Maybe -> Bool

type Rep (ClientEventGeneric f) Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep (ClientEventGeneric f) = D1 ('MetaData "ClientEventGeneric" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "ClientEventGeneric" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clientEventGenericType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "clientEventGenericContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)) :*: (S1 ('MetaSel ('Just "clientEventGenericEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f EventId)) :*: S1 ('MetaSel ('Just "clientEventGenericOriginServerTs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f Integer)))) :*: ((S1 ('MetaSel ('Just "clientEventGenericRoomId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f RoomId)) :*: S1 ('MetaSel ('Just "clientEventGenericSender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f Mxid))) :*: (S1 ('MetaSel ('Just "clientEventGenericStateKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientEventGenericUnsigned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))))))

data MRoomMessageClientEvent Source #

r.room.message event

Instances

Instances details
FromJSON MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageClientEvent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEvent = D1 ('MetaData "MRoomMessageClientEvent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageClientEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageClientEventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MRoomMessageType])) :*: S1 ('MetaSel ('Just "mRoomMessageClientEventContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageClientEventContent)))
Show MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEvent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEvent = D1 ('MetaData "MRoomMessageClientEvent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageClientEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageClientEventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MRoomMessageType])) :*: S1 ('MetaSel ('Just "mRoomMessageClientEventContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageClientEventContent)))

data MRoomMessageClientEventContent Source #

r.room.message “content” field of any msgtype

Instances

Instances details
FromJSON MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEventContent = D1 ('MetaData "MRoomMessageClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) ((C1 ('MetaCons "MRoomMessageClientEventContentMText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMTextMsgtypeClientEventContent)) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMImage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMImageMsgtypeClientEventContent)) :+: C1 ('MetaCons "MRoomMessageClientEventContentMVideo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMVideoMsgtypeClientEventContent)))) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMAudio" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMAudioMsgtypeClientEventContent)) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMFile" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMFileMsgtypeClientEventContent)) :+: C1 ('MetaCons "MRoomMessageClientEventContentOther" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))))
Show MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageClientEventContent = D1 ('MetaData "MRoomMessageClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) ((C1 ('MetaCons "MRoomMessageClientEventContentMText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMTextMsgtypeClientEventContent)) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMImage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMImageMsgtypeClientEventContent)) :+: C1 ('MetaCons "MRoomMessageClientEventContentMVideo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMVideoMsgtypeClientEventContent)))) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMAudio" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMAudioMsgtypeClientEventContent)) :+: (C1 ('MetaCons "MRoomMessageClientEventContentMFile" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MRoomMessageMFileMsgtypeClientEventContent)) :+: C1 ('MetaCons "MRoomMessageClientEventContentOther" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))))

data MRoomMessageMTextMsgtypeClientEventContent Source #

m.room.message m.text msgtype content

Instances

Instances details
FromJSON MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageMTextMsgtypeClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMTextMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMTextMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMTextMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMTextMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "mRoomMessageMTextMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
Show MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMTextMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMTextMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMTextMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMTextMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMTextMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "mRoomMessageMTextMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data MRoomMessageMImageMsgtypeClientEventContent Source #

m.room.message m.image msgtype content

Instances

Instances details
FromJSON MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageMImageMsgtypeClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMImageMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMImageMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMImageMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MImageType) :*: (S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
Show MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMImageMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMImageMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMImageMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMImageMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MImageType) :*: (S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMImageMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

data MRoomMessageMVideoMsgtypeClientEventContent Source #

m.room.message m.video msgtype content

Instances

Instances details
FromJSON MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageMVideoMsgtypeClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMVideoMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMVideoMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMVideoMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MVideoType) :*: (S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
Show MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMVideoMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMVideoMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMVideoMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMVideoMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MVideoType) :*: (S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMVideoMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

data MRoomMessageMAudioMsgtypeClientEventContent Source #

m.room.message m.audio msgtype content

Instances

Instances details
FromJSON MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageMAudioMsgtypeClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMAudioMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMAudioMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMAudioMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MAudioType) :*: (S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
Show MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMAudioMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMAudioMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMAudioMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMAudioMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MAudioType) :*: (S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMAudioMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

data MRoomMessageMFileMsgtypeClientEventContent Source #

m.room.message m.file msgtype content

Instances

Instances details
FromJSON MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageMFileMsgtypeClientEventContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMFileMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMFileMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMFileMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MFileType) :*: (S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
Show MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Eq MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMFileMsgtypeClientEventContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageMFileMsgtypeClientEventContent = D1 ('MetaData "MRoomMessageMFileMsgtypeClientEventContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageMFileMsgtypeClientEventContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MFileType) :*: (S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "mRoomMessageMFileMsgtypeClientEventContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

Send event

type SendEventApi t = ClientV3 (Authenticated ("rooms" :> (Capture "roomId" RoomId :> ("send" :> (Capture "eventType" t :> (Capture "txnId" TransactionId :> (ReqBody '[JSON] (EventContent t) :> Put '[JSON] EventResponse))))))) Source #

newtype EventResponse Source #

Instances

Instances details
FromJSON EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser EventResponse

parseJSONList :: Value -> Parser [EventResponse]

omittedField :: Maybe EventResponse

ToJSON EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: EventResponse -> Value

toEncoding :: EventResponse -> Encoding

toJSONList :: [EventResponse] -> Value

toEncodingList :: [EventResponse] -> Encoding

omitField :: EventResponse -> Bool

Generic EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep EventResponse 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventResponse = D1 ('MetaData "EventResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "EventResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventResponseEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId)))
Show EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> EventResponse -> ShowS

show :: EventResponse -> String

showList :: [EventResponse] -> ShowS

Eq EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep EventResponse = D1 ('MetaData "EventResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "EventResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventResponseEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId)))

User filter endpoints

Create user filter

type CreateUserFilter = ClientV3 (Authenticated ("user" :> (Capture "userId" Mxid :> ("filter" :> (ReqBody '[JSON] UserFilter :> Post '[JSON] UserFilterIdResponse))))) Source #

newtype UserFilterIdResponse Source #

Instances

Instances details
FromJSON UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep UserFilterIdResponse 
Instance details

Defined in MatrixBot.MatrixApi

type Rep UserFilterIdResponse = D1 ('MetaData "UserFilterIdResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "UserFilterIdResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "userFilterIdResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilterId)))
Show UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> UserFilterIdResponse -> ShowS

show :: UserFilterIdResponse -> String

showList :: [UserFilterIdResponse] -> ShowS

Eq UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep UserFilterIdResponse Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep UserFilterIdResponse = D1 ('MetaData "UserFilterIdResponse" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "UserFilterIdResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "userFilterIdResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilterId)))

Get user filter

type GetUserFilter = ClientV3 (Authenticated ("user" :> (Capture "userId" Mxid :> ("filter" :> (Capture "filterId" FilterId :> Post '[JSON] UserFilter))))) Source #

Shared types

data UserFilter Source #

Constructors

UserFilter 

Fields

Instances

Instances details
FromJSON UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser UserFilter

parseJSONList :: Value -> Parser [UserFilter]

omittedField :: Maybe UserFilter

ToJSON UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: UserFilter -> Value

toEncoding :: UserFilter -> Encoding

toJSONList :: [UserFilter] -> Value

toEncodingList :: [UserFilter] -> Encoding

omitField :: UserFilter -> Bool

Generic UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep UserFilter 
Instance details

Defined in MatrixBot.MatrixApi

type Rep UserFilter = D1 ('MetaData "UserFilter" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "UserFilter" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userFilterAccountData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: S1 ('MetaSel ('Just "userFilterEventFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ()))) :*: (S1 ('MetaSel ('Just "userFilterEventFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: (S1 ('MetaSel ('Just "userFilterPresence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: S1 ('MetaSel ('Just "userFilterRoom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ()))))))

Methods

from :: UserFilter -> Rep UserFilter x

to :: Rep UserFilter x -> UserFilter

Show UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> UserFilter -> ShowS

show :: UserFilter -> String

showList :: [UserFilter] -> ShowS

Eq UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: UserFilter -> UserFilter -> Bool

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

type Rep UserFilter Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep UserFilter = D1 ('MetaData "UserFilter" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "UserFilter" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userFilterAccountData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: S1 ('MetaSel ('Just "userFilterEventFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ()))) :*: (S1 ('MetaSel ('Just "userFilterEventFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: (S1 ('MetaSel ('Just "userFilterPresence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ())) :*: S1 ('MetaSel ('Just "userFilterRoom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ()))))))

class MsgtypeString a where Source #

Generic interface for msgtype Matrix API string representation.

Methods

msgtypeString :: a -> Text Source #

Instances

Instances details
MsgtypeString MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MAudioType -> Text Source #

MsgtypeString MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MFileType -> Text Source #

MsgtypeString MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MImageType -> Text Source #

MsgtypeString MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MTextType -> Text Source #

MsgtypeString MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MVideoType -> Text Source #

m.text

data MTextType Source #

Constructors

MTextType 

Instances

Instances details
FromJSON MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MTextType

parseJSONList :: Value -> Parser [MTextType]

omittedField :: Maybe MTextType

ToJSON MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MTextType -> Value

toEncoding :: MTextType -> Encoding

toJSONList :: [MTextType] -> Value

toEncodingList :: [MTextType] -> Encoding

omitField :: MTextType -> Bool

Bounded MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MTextType -> ShowS

show :: MTextType -> String

showList :: [MTextType] -> ShowS

Eq MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MTextType -> MTextType -> Bool

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

ToHttpApiData MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toUrlPiece :: MTextType -> Text

toEncodedUrlPiece :: MTextType -> Builder

toHeader :: MTextType -> ByteString

toQueryParam :: MTextType -> Text

toEncodedQueryParam :: MTextType -> Builder

MsgtypeString MTextType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MTextType -> Text Source #

m.image

data MImageType Source #

Constructors

MImageType 

Instances

Instances details
FromJSON MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MImageType

parseJSONList :: Value -> Parser [MImageType]

omittedField :: Maybe MImageType

ToJSON MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MImageType -> Value

toEncoding :: MImageType -> Encoding

toJSONList :: [MImageType] -> Value

toEncodingList :: [MImageType] -> Encoding

omitField :: MImageType -> Bool

Bounded MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MImageType -> ShowS

show :: MImageType -> String

showList :: [MImageType] -> ShowS

Eq MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MImageType -> MImageType -> Bool

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

ToHttpApiData MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toUrlPiece :: MImageType -> Text

toEncodedUrlPiece :: MImageType -> Builder

toHeader :: MImageType -> ByteString

toQueryParam :: MImageType -> Text

toEncodedQueryParam :: MImageType -> Builder

MsgtypeString MImageType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MImageType -> Text Source #

m.video

data MVideoType Source #

Constructors

MVideoType 

Instances

Instances details
FromJSON MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MVideoType

parseJSONList :: Value -> Parser [MVideoType]

omittedField :: Maybe MVideoType

ToJSON MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MVideoType -> Value

toEncoding :: MVideoType -> Encoding

toJSONList :: [MVideoType] -> Value

toEncodingList :: [MVideoType] -> Encoding

omitField :: MVideoType -> Bool

Bounded MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MVideoType -> ShowS

show :: MVideoType -> String

showList :: [MVideoType] -> ShowS

Eq MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MVideoType -> MVideoType -> Bool

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

ToHttpApiData MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toUrlPiece :: MVideoType -> Text

toEncodedUrlPiece :: MVideoType -> Builder

toHeader :: MVideoType -> ByteString

toQueryParam :: MVideoType -> Text

toEncodedQueryParam :: MVideoType -> Builder

MsgtypeString MVideoType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MVideoType -> Text Source #

m.audio

data MAudioType Source #

Constructors

MAudioType 

Instances

Instances details
FromJSON MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MAudioType

parseJSONList :: Value -> Parser [MAudioType]

omittedField :: Maybe MAudioType

ToJSON MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MAudioType -> Value

toEncoding :: MAudioType -> Encoding

toJSONList :: [MAudioType] -> Value

toEncodingList :: [MAudioType] -> Encoding

omitField :: MAudioType -> Bool

Bounded MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MAudioType -> ShowS

show :: MAudioType -> String

showList :: [MAudioType] -> ShowS

Eq MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MAudioType -> MAudioType -> Bool

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

ToHttpApiData MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toUrlPiece :: MAudioType -> Text

toEncodedUrlPiece :: MAudioType -> Builder

toHeader :: MAudioType -> ByteString

toQueryParam :: MAudioType -> Text

toEncodedQueryParam :: MAudioType -> Builder

MsgtypeString MAudioType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MAudioType -> Text Source #

m.file

data MFileType Source #

Constructors

MFileType 

Instances

Instances details
FromJSON MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MFileType

parseJSONList :: Value -> Parser [MFileType]

omittedField :: Maybe MFileType

ToJSON MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MFileType -> Value

toEncoding :: MFileType -> Encoding

toJSONList :: [MFileType] -> Value

toEncodingList :: [MFileType] -> Encoding

omitField :: MFileType -> Bool

Bounded MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Enum MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Show MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MFileType -> ShowS

show :: MFileType -> String

showList :: [MFileType] -> ShowS

Eq MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MFileType -> MFileType -> Bool

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

ToHttpApiData MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toUrlPiece :: MFileType -> Text

toEncodedUrlPiece :: MFileType -> Builder

toHeader :: MFileType -> ByteString

toQueryParam :: MFileType -> Text

toEncodedQueryParam :: MFileType -> Builder

MsgtypeString MFileType Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

msgtypeString :: MFileType -> Text Source #

m.room.message content

data MRoomMessageContent Source #

Instances

Instances details
FromJSON MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

ToJSON MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MRoomMessageContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageContent = D1 ('MetaData "MRoomMessageContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageContent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mRoomMessageContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "mRoomMessageContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mRoomMessageContentHtmlBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "mRoomMessageContentMRelatesTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InReplyTo)) :*: S1 ('MetaSel ('Just "mRoomMessageContentMessageEdit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageEdit))))))
Show MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MRoomMessageContent -> ShowS

show :: MRoomMessageContent -> String

showList :: [MRoomMessageContent] -> ShowS

Eq MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MRoomMessageContent = D1 ('MetaData "MRoomMessageContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MRoomMessageContent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mRoomMessageContentMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "mRoomMessageContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mRoomMessageContentHtmlBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "mRoomMessageContentMRelatesTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InReplyTo)) :*: S1 ('MetaSel ('Just "mRoomMessageContentMessageEdit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageEdit))))))

newtype InReplyTo Source #

Constructors

InReplyTo 

Instances

Instances details
FromJSON InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser InReplyTo

parseJSONList :: Value -> Parser [InReplyTo]

omittedField :: Maybe InReplyTo

ToJSON InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: InReplyTo -> Value

toEncoding :: InReplyTo -> Encoding

toJSONList :: [InReplyTo] -> Value

toEncodingList :: [InReplyTo] -> Encoding

omitField :: InReplyTo -> Bool

Generic InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep InReplyTo 
Instance details

Defined in MatrixBot.MatrixApi

type Rep InReplyTo = D1 ('MetaData "InReplyTo" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "InReplyTo" 'PrefixI 'True) (S1 ('MetaSel ('Just "inReplyToEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId)))

Methods

from :: InReplyTo -> Rep InReplyTo x

to :: Rep InReplyTo x -> InReplyTo

Show InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> InReplyTo -> ShowS

show :: InReplyTo -> String

showList :: [InReplyTo] -> ShowS

Eq InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: InReplyTo -> InReplyTo -> Bool

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

type Rep InReplyTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep InReplyTo = D1 ('MetaData "InReplyTo" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "InReplyTo" 'PrefixI 'True) (S1 ('MetaSel ('Just "inReplyToEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId)))

mInReplyToKey :: IsString s => s Source #

htmlBodyFormatValue :: IsString s => s Source #

data MessageEdit Source #

Instances

Instances details
ToJSON MessageEdit Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: MessageEdit -> Value

toEncoding :: MessageEdit -> Encoding

toJSONList :: [MessageEdit] -> Value

toEncodingList :: [MessageEdit] -> Encoding

omitField :: MessageEdit -> Bool

Generic MessageEdit Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MessageEdit 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MessageEdit = D1 ('MetaData "MessageEdit" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MessageEdit" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageEditMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "messageEditNewContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "messageEditNewContentHtmlBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageEditRelatedTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId))))

Methods

from :: MessageEdit -> Rep MessageEdit x

to :: Rep MessageEdit x -> MessageEdit

Show MessageEdit Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MessageEdit -> ShowS

show :: MessageEdit -> String

showList :: [MessageEdit] -> ShowS

Eq MessageEdit Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: MessageEdit -> MessageEdit -> Bool

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

type Rep MessageEdit Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MessageEdit = D1 ('MetaData "MessageEdit" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "MessageEdit" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageEditMsgtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MTextType) :*: S1 ('MetaSel ('Just "messageEditNewContentBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "messageEditNewContentHtmlBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageEditRelatedTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId))))

mNewContentKey :: IsString s => s Source #

mReplaceType :: IsString s => s Source #

newtype MReactionContent Source #

Instances

Instances details
FromJSON MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser MReactionContent

parseJSONList :: Value -> Parser [MReactionContent]

omittedField :: Maybe MReactionContent

ToJSON MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Generic MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep MReactionContent 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MReactionContent = D1 ('MetaData "MReactionContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "MReactionContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mReactionContentMRelatesTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelatesTo)))
Show MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> MReactionContent -> ShowS

show :: MReactionContent -> String

showList :: [MReactionContent] -> ShowS

Eq MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MReactionContent Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep MReactionContent = D1 ('MetaData "MReactionContent" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'True) (C1 ('MetaCons "MReactionContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "mReactionContentMRelatesTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelatesTo)))

mRelatedToKey :: IsString s => s Source #

data RelatesTo Source #

Instances

Instances details
FromJSON RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

parseJSON :: Value -> Parser RelatesTo

parseJSONList :: Value -> Parser [RelatesTo]

omittedField :: Maybe RelatesTo

ToJSON RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

toJSON :: RelatesTo -> Value

toEncoding :: RelatesTo -> Encoding

toJSONList :: [RelatesTo] -> Value

toEncodingList :: [RelatesTo] -> Encoding

omitField :: RelatesTo -> Bool

Generic RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Associated Types

type Rep RelatesTo 
Instance details

Defined in MatrixBot.MatrixApi

type Rep RelatesTo = D1 ('MetaData "RelatesTo" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "RelatesTo" 'PrefixI 'True) (S1 ('MetaSel ('Just "relatesToEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId) :*: (S1 ('MetaSel ('Just "relatesToKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "relatesToRelType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MAnnotationType])))))

Methods

from :: RelatesTo -> Rep RelatesTo x

to :: Rep RelatesTo x -> RelatesTo

Show RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

showsPrec :: Int -> RelatesTo -> ShowS

show :: RelatesTo -> String

showList :: [RelatesTo] -> ShowS

Eq RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

Methods

(==) :: RelatesTo -> RelatesTo -> Bool

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

type Rep RelatesTo Source # 
Instance details

Defined in MatrixBot.MatrixApi

type Rep RelatesTo = D1 ('MetaData "RelatesTo" "MatrixBot.MatrixApi" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) (C1 ('MetaCons "RelatesTo" 'PrefixI 'True) (S1 ('MetaSel ('Just "relatesToEventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventId) :*: (S1 ('MetaSel ('Just "relatesToKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "relatesToRelType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (MEventTypeOneOf '['MAnnotationType])))))

Helpers

mTypeGenericParseJSON :: (Bounded a, Enum a, Typeable a, ToJSON a) => Value -> Parser a Source #