| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
MatrixBot.MatrixApi
Synopsis
- type ClientV3 a = "_matrix" :> ("client" :> ("v3" :> a))
- type Authenticated a = AuthProtect "access-token" :> a
- type LoginApi = ClientV3 ("login" :> (ReqBody '[JSON] LoginRequest :> Post '[JSON] LoginResponse))
- data LoginRequest = LoginRequest {}
- data LoginResponse = LoginResponse {}
- type ListRoomApi = ClientV3 (Authenticated ("directory" :> ("list" :> ("room" :> (Capture "roomId" RoomId :> Get '[JSON] ListRoomResponse)))))
- newtype ListRoomResponse = ListRoomResponse {}
- data RoomVisibility
- type EventsApi = ClientV3 (Authenticated ("events" :> (QueryParam "from" EventToken :> (QueryParam "room_id" RoomId :> (QueryParam "timeout" Milliseconds :> Get '[JSON] EventsResponse)))))
- data EventsResponse = EventsResponse {}
- data ClientEvent
- = ClientEventMRoomMessage (ClientEventGeneric Identity) MRoomMessageClientEvent
- | ClientEventOther (ClientEventGeneric Maybe) Object
- data ClientEventGeneric (f :: Type -> Type) = ClientEventGeneric {
- clientEventGenericType :: Text
- clientEventGenericContent :: Object
- clientEventGenericEventId :: f EventId
- clientEventGenericOriginServerTs :: f Integer
- clientEventGenericRoomId :: f RoomId
- clientEventGenericSender :: f Mxid
- clientEventGenericStateKey :: Maybe Text
- clientEventGenericUnsigned :: Maybe Value
- data MRoomMessageClientEvent = MRoomMessageClientEvent {}
- data MRoomMessageClientEventContent
- = MRoomMessageClientEventContentMText MRoomMessageMTextMsgtypeClientEventContent
- | MRoomMessageClientEventContentMImage MRoomMessageMImageMsgtypeClientEventContent
- | MRoomMessageClientEventContentMVideo MRoomMessageMVideoMsgtypeClientEventContent
- | MRoomMessageClientEventContentMAudio MRoomMessageMAudioMsgtypeClientEventContent
- | MRoomMessageClientEventContentMFile MRoomMessageMFileMsgtypeClientEventContent
- | MRoomMessageClientEventContentOther Object
- data MRoomMessageMTextMsgtypeClientEventContent = MRoomMessageMTextMsgtypeClientEventContent {}
- data MRoomMessageMImageMsgtypeClientEventContent = MRoomMessageMImageMsgtypeClientEventContent {}
- data MRoomMessageMVideoMsgtypeClientEventContent = MRoomMessageMVideoMsgtypeClientEventContent {}
- data MRoomMessageMAudioMsgtypeClientEventContent = MRoomMessageMAudioMsgtypeClientEventContent {}
- data MRoomMessageMFileMsgtypeClientEventContent = MRoomMessageMFileMsgtypeClientEventContent {}
- type SendEventApi t = ClientV3 (Authenticated ("rooms" :> (Capture "roomId" RoomId :> ("send" :> (Capture "eventType" t :> (Capture "txnId" TransactionId :> (ReqBody '[JSON] (EventContent t) :> Put '[JSON] EventResponse)))))))
- type family EventContent eventType
- newtype EventResponse = EventResponse {}
- type CreateUserFilter = ClientV3 (Authenticated ("user" :> (Capture "userId" Mxid :> ("filter" :> (ReqBody '[JSON] UserFilter :> Post '[JSON] UserFilterIdResponse)))))
- newtype UserFilterIdResponse = UserFilterIdResponse {}
- type GetUserFilter = ClientV3 (Authenticated ("user" :> (Capture "userId" Mxid :> ("filter" :> (Capture "filterId" FilterId :> Post '[JSON] UserFilter)))))
- data UserFilter = UserFilter {
- userFilterAccountData :: Maybe ()
- userFilterEventFields :: Maybe ()
- userFilterEventFormat :: Maybe ()
- userFilterPresence :: Maybe ()
- userFilterRoom :: Maybe ()
- class MsgtypeString a where
- msgtypeString :: a -> Text
- data MTextType = MTextType
- data MImageType = MImageType
- data MVideoType = MVideoType
- data MAudioType = MAudioType
- data MFileType = MFileType
- data MRoomMessageContent = MRoomMessageContent {
- mRoomMessageContentMsgtype :: MTextType
- mRoomMessageContentBody :: Text
- mRoomMessageContentHtmlBody :: Maybe Text
- mRoomMessageContentMRelatesTo :: Maybe InReplyTo
- mRoomMessageContentMessageEdit :: Maybe MessageEdit
- newtype InReplyTo = InReplyTo {}
- mInReplyToKey :: IsString s => s
- htmlBodyFormatValue :: IsString s => s
- data MessageEdit = MessageEdit {
- messageEditMsgtype :: MTextType
- messageEditNewContentBody :: Text
- messageEditNewContentHtmlBody :: Maybe Text
- messageEditRelatedTo :: EventId
- mNewContentKey :: IsString s => s
- mReplaceType :: IsString s => s
- newtype MReactionContent = MReactionContent {}
- mRelatedToKey :: IsString s => s
- data RelatesTo = RelatesTo {
- relatesToEventId :: EventId
- relatesToKey :: Text
- relatesToRelType :: MEventTypeOneOf '['MAnnotationType]
- mTypeGenericParseJSON :: (Bounded a, Enum a, Typeable a, ToJSON a) => Value -> Parser a
Basic stuff
type Authenticated a = AuthProtect "access-token" :> a Source #
Endpoints
Login
type LoginApi = ClientV3 ("login" :> (ReqBody '[JSON] LoginRequest :> Post '[JSON] LoginResponse)) Source #
data LoginRequest Source #
Constructors
| LoginRequest | |
Instances
| FromJSON LoginRequest Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser LoginRequest parseJSONList :: Value -> Parser [LoginRequest] omittedField :: Maybe LoginRequest | |||||
| ToJSON LoginRequest Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: LoginRequest -> Value toEncoding :: LoginRequest -> Encoding toJSONList :: [LoginRequest] -> Value toEncodingList :: [LoginRequest] -> Encoding omitField :: LoginRequest -> Bool | |||||
| Generic LoginRequest Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show LoginRequest Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> LoginRequest -> ShowS show :: LoginRequest -> String showList :: [LoginRequest] -> ShowS | |||||
| Eq LoginRequest Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep LoginRequest Source # | |||||
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 #
Constructors
| LoginResponse | |
Instances
| FromJSON LoginResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser LoginResponse parseJSONList :: Value -> Parser [LoginResponse] omittedField :: Maybe LoginResponse | |||||
| ToJSON LoginResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: LoginResponse -> Value toEncoding :: LoginResponse -> Encoding toJSONList :: [LoginResponse] -> Value toEncodingList :: [LoginResponse] -> Encoding omitField :: LoginResponse -> Bool | |||||
| Generic LoginResponse Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show LoginResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> LoginResponse -> ShowS show :: LoginResponse -> String showList :: [LoginResponse] -> ShowS | |||||
| Eq LoginResponse Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep LoginResponse Source # | |||||
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 #
Constructors
| ListRoomResponse | |
Fields | |
Instances
| FromJSON ListRoomResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser ListRoomResponse parseJSONList :: Value -> Parser [ListRoomResponse] omittedField :: Maybe ListRoomResponse | |||||
| ToJSON ListRoomResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: ListRoomResponse -> Value toEncoding :: ListRoomResponse -> Encoding toJSONList :: [ListRoomResponse] -> Value toEncodingList :: [ListRoomResponse] -> Encoding omitField :: ListRoomResponse -> Bool | |||||
| Generic ListRoomResponse Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: ListRoomResponse -> Rep ListRoomResponse x to :: Rep ListRoomResponse x -> ListRoomResponse | |||||
| Show ListRoomResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> ListRoomResponse -> ShowS show :: ListRoomResponse -> String showList :: [ListRoomResponse] -> ShowS | |||||
| Eq ListRoomResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: ListRoomResponse -> ListRoomResponse -> Bool (/=) :: ListRoomResponse -> ListRoomResponse -> Bool | |||||
| type Rep ListRoomResponse Source # | |||||
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 #
Constructors
| RoomVisibilityPrivate | |
| RoomVisibilityPublic |
Instances
Events
type EventsApi = ClientV3 (Authenticated ("events" :> (QueryParam "from" EventToken :> (QueryParam "room_id" RoomId :> (QueryParam "timeout" Milliseconds :> Get '[JSON] EventsResponse))))) Source #
data EventsResponse Source #
Constructors
| EventsResponse | |
Fields | |
Instances
| FromJSON EventsResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser EventsResponse parseJSONList :: Value -> Parser [EventsResponse] omittedField :: Maybe EventsResponse | |||||
| ToJSON EventsResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: EventsResponse -> Value toEncoding :: EventsResponse -> Encoding toJSONList :: [EventsResponse] -> Value toEncodingList :: [EventsResponse] -> Encoding omitField :: EventsResponse -> Bool | |||||
| Generic EventsResponse Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show EventsResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> EventsResponse -> ShowS show :: EventsResponse -> String showList :: [EventsResponse] -> ShowS | |||||
| Eq EventsResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: EventsResponse -> EventsResponse -> Bool (/=) :: EventsResponse -> EventsResponse -> Bool | |||||
| type Rep EventsResponse Source # | |||||
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
Constructors
| ClientEventMRoomMessage (ClientEventGeneric Identity) MRoomMessageClientEvent | |
| ClientEventOther (ClientEventGeneric Maybe) Object |
Instances
| FromJSON ClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser ClientEvent parseJSONList :: Value -> Parser [ClientEvent] omittedField :: Maybe ClientEvent | |||||
| ToJSON ClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: ClientEvent -> Value toEncoding :: ClientEvent -> Encoding toJSONList :: [ClientEvent] -> Value toEncodingList :: [ClientEvent] -> Encoding omitField :: ClientEvent -> Bool | |||||
| Generic ClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show ClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> ClientEvent -> ShowS show :: ClientEvent -> String showList :: [ClientEvent] -> ShowS | |||||
| Eq ClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep ClientEvent Source # | |||||
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 #
Constructors
| ClientEventGeneric | |
Fields
| |
Instances
| FromJSON (ClientEventGeneric Identity) Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser (ClientEventGeneric Identity) parseJSONList :: Value -> Parser [ClientEventGeneric Identity] omittedField :: Maybe (ClientEventGeneric Identity) | |||||
| FromJSON (ClientEventGeneric Maybe) Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser (ClientEventGeneric Maybe) parseJSONList :: Value -> Parser [ClientEventGeneric Maybe] omittedField :: Maybe (ClientEventGeneric Maybe) | |||||
| ToJSON (ClientEventGeneric Identity) Source # | |||||
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 # | |||||
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 # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: ClientEventGeneric f -> Rep (ClientEventGeneric f) x to :: Rep (ClientEventGeneric f) x -> ClientEventGeneric f | |||||
| Show (ClientEventGeneric Identity) Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> ClientEventGeneric Identity -> ShowS show :: ClientEventGeneric Identity -> String showList :: [ClientEventGeneric Identity] -> ShowS | |||||
| Show (ClientEventGeneric Maybe) Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> ClientEventGeneric Maybe -> ShowS show :: ClientEventGeneric Maybe -> String showList :: [ClientEventGeneric Maybe] -> ShowS | |||||
| Eq (ClientEventGeneric Identity) Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: ClientEventGeneric Identity -> ClientEventGeneric Identity -> Bool (/=) :: ClientEventGeneric Identity -> ClientEventGeneric Identity -> Bool | |||||
| Eq (ClientEventGeneric Maybe) Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: ClientEventGeneric Maybe -> ClientEventGeneric Maybe -> Bool (/=) :: ClientEventGeneric Maybe -> ClientEventGeneric Maybe -> Bool | |||||
| type Rep (ClientEventGeneric f) Source # | |||||
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
Constructors
| MRoomMessageClientEvent | |
Instances
| FromJSON MRoomMessageClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageClientEvent parseJSONList :: Value -> Parser [MRoomMessageClientEvent] omittedField :: Maybe MRoomMessageClientEvent | |||||
| ToJSON MRoomMessageClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageClientEvent -> Value toEncoding :: MRoomMessageClientEvent -> Encoding toJSONList :: [MRoomMessageClientEvent] -> Value toEncodingList :: [MRoomMessageClientEvent] -> Encoding omitField :: MRoomMessageClientEvent -> Bool | |||||
| Generic MRoomMessageClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: MRoomMessageClientEvent -> Rep MRoomMessageClientEvent x to :: Rep MRoomMessageClientEvent x -> MRoomMessageClientEvent | |||||
| Show MRoomMessageClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageClientEvent -> ShowS show :: MRoomMessageClientEvent -> String showList :: [MRoomMessageClientEvent] -> ShowS | |||||
| Eq MRoomMessageClientEvent Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: MRoomMessageClientEvent -> MRoomMessageClientEvent -> Bool (/=) :: MRoomMessageClientEvent -> MRoomMessageClientEvent -> Bool | |||||
| type Rep MRoomMessageClientEvent Source # | |||||
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
Constructors
Instances
| FromJSON MRoomMessageClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageClientEventContent parseJSONList :: Value -> Parser [MRoomMessageClientEventContent] | |||||
| ToJSON MRoomMessageClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageClientEventContent -> Value toEncoding :: MRoomMessageClientEventContent -> Encoding toJSONList :: [MRoomMessageClientEventContent] -> Value toEncodingList :: [MRoomMessageClientEventContent] -> Encoding omitField :: MRoomMessageClientEventContent -> Bool | |||||
| Generic MRoomMessageClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: MRoomMessageClientEventContent -> Rep MRoomMessageClientEventContent x to :: Rep MRoomMessageClientEventContent x -> MRoomMessageClientEventContent | |||||
| Show MRoomMessageClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageClientEventContent -> ShowS show :: MRoomMessageClientEventContent -> String showList :: [MRoomMessageClientEventContent] -> ShowS | |||||
| Eq MRoomMessageClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: MRoomMessageClientEventContent -> MRoomMessageClientEventContent -> Bool (/=) :: MRoomMessageClientEventContent -> MRoomMessageClientEventContent -> Bool | |||||
| type Rep MRoomMessageClientEventContent Source # | |||||
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
Constructors
| MRoomMessageMTextMsgtypeClientEventContent | |
Instances
| FromJSON MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageMTextMsgtypeClientEventContent parseJSONList :: Value -> Parser [MRoomMessageMTextMsgtypeClientEventContent] omittedField :: Maybe MRoomMessageMTextMsgtypeClientEventContent | |||||
| ToJSON MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageMTextMsgtypeClientEventContent -> Value toEncoding :: MRoomMessageMTextMsgtypeClientEventContent -> Encoding toJSONList :: [MRoomMessageMTextMsgtypeClientEventContent] -> Value toEncodingList :: [MRoomMessageMTextMsgtypeClientEventContent] -> Encoding omitField :: MRoomMessageMTextMsgtypeClientEventContent -> Bool | |||||
| Generic MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageMTextMsgtypeClientEventContent -> ShowS show :: MRoomMessageMTextMsgtypeClientEventContent -> String showList :: [MRoomMessageMTextMsgtypeClientEventContent] -> ShowS | |||||
| Eq MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MRoomMessageMTextMsgtypeClientEventContent Source # | |||||
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
Constructors
| MRoomMessageMImageMsgtypeClientEventContent | |
Fields
| |
Instances
| FromJSON MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageMImageMsgtypeClientEventContent parseJSONList :: Value -> Parser [MRoomMessageMImageMsgtypeClientEventContent] omittedField :: Maybe MRoomMessageMImageMsgtypeClientEventContent | |||||
| ToJSON MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageMImageMsgtypeClientEventContent -> Value toEncoding :: MRoomMessageMImageMsgtypeClientEventContent -> Encoding toJSONList :: [MRoomMessageMImageMsgtypeClientEventContent] -> Value toEncodingList :: [MRoomMessageMImageMsgtypeClientEventContent] -> Encoding omitField :: MRoomMessageMImageMsgtypeClientEventContent -> Bool | |||||
| Generic MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageMImageMsgtypeClientEventContent -> ShowS show :: MRoomMessageMImageMsgtypeClientEventContent -> String showList :: [MRoomMessageMImageMsgtypeClientEventContent] -> ShowS | |||||
| Eq MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MRoomMessageMImageMsgtypeClientEventContent Source # | |||||
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
Constructors
| MRoomMessageMVideoMsgtypeClientEventContent | |
Fields
| |
Instances
| FromJSON MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageMVideoMsgtypeClientEventContent parseJSONList :: Value -> Parser [MRoomMessageMVideoMsgtypeClientEventContent] omittedField :: Maybe MRoomMessageMVideoMsgtypeClientEventContent | |||||
| ToJSON MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageMVideoMsgtypeClientEventContent -> Value toEncoding :: MRoomMessageMVideoMsgtypeClientEventContent -> Encoding toJSONList :: [MRoomMessageMVideoMsgtypeClientEventContent] -> Value toEncodingList :: [MRoomMessageMVideoMsgtypeClientEventContent] -> Encoding omitField :: MRoomMessageMVideoMsgtypeClientEventContent -> Bool | |||||
| Generic MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageMVideoMsgtypeClientEventContent -> ShowS show :: MRoomMessageMVideoMsgtypeClientEventContent -> String showList :: [MRoomMessageMVideoMsgtypeClientEventContent] -> ShowS | |||||
| Eq MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MRoomMessageMVideoMsgtypeClientEventContent Source # | |||||
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
Constructors
| MRoomMessageMAudioMsgtypeClientEventContent | |
Fields
| |
Instances
| FromJSON MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageMAudioMsgtypeClientEventContent parseJSONList :: Value -> Parser [MRoomMessageMAudioMsgtypeClientEventContent] omittedField :: Maybe MRoomMessageMAudioMsgtypeClientEventContent | |||||
| ToJSON MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageMAudioMsgtypeClientEventContent -> Value toEncoding :: MRoomMessageMAudioMsgtypeClientEventContent -> Encoding toJSONList :: [MRoomMessageMAudioMsgtypeClientEventContent] -> Value toEncodingList :: [MRoomMessageMAudioMsgtypeClientEventContent] -> Encoding omitField :: MRoomMessageMAudioMsgtypeClientEventContent -> Bool | |||||
| Generic MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageMAudioMsgtypeClientEventContent -> ShowS show :: MRoomMessageMAudioMsgtypeClientEventContent -> String showList :: [MRoomMessageMAudioMsgtypeClientEventContent] -> ShowS | |||||
| Eq MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MRoomMessageMAudioMsgtypeClientEventContent Source # | |||||
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
Constructors
| MRoomMessageMFileMsgtypeClientEventContent | |
Fields
| |
Instances
| FromJSON MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageMFileMsgtypeClientEventContent parseJSONList :: Value -> Parser [MRoomMessageMFileMsgtypeClientEventContent] omittedField :: Maybe MRoomMessageMFileMsgtypeClientEventContent | |||||
| ToJSON MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageMFileMsgtypeClientEventContent -> Value toEncoding :: MRoomMessageMFileMsgtypeClientEventContent -> Encoding toJSONList :: [MRoomMessageMFileMsgtypeClientEventContent] -> Value toEncodingList :: [MRoomMessageMFileMsgtypeClientEventContent] -> Encoding omitField :: MRoomMessageMFileMsgtypeClientEventContent -> Bool | |||||
| Generic MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageMFileMsgtypeClientEventContent -> ShowS show :: MRoomMessageMFileMsgtypeClientEventContent -> String showList :: [MRoomMessageMFileMsgtypeClientEventContent] -> ShowS | |||||
| Eq MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MRoomMessageMFileMsgtypeClientEventContent Source # | |||||
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 #
type family EventContent eventType Source #
Instances
| type EventContent (MEventTypeOneOf '['MReactionType]) Source # | |
Defined in MatrixBot.MatrixApi | |
| type EventContent (MEventTypeOneOf '['MRoomMessageType]) Source # | |
Defined in MatrixBot.MatrixApi | |
newtype EventResponse Source #
Constructors
| EventResponse | |
Fields | |
Instances
| FromJSON EventResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser EventResponse parseJSONList :: Value -> Parser [EventResponse] omittedField :: Maybe EventResponse | |||||
| ToJSON EventResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: EventResponse -> Value toEncoding :: EventResponse -> Encoding toJSONList :: [EventResponse] -> Value toEncodingList :: [EventResponse] -> Encoding omitField :: EventResponse -> Bool | |||||
| Generic EventResponse Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show EventResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> EventResponse -> ShowS show :: EventResponse -> String showList :: [EventResponse] -> ShowS | |||||
| Eq EventResponse Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep EventResponse Source # | |||||
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 #
Constructors
| UserFilterIdResponse | |
Fields | |
Instances
| FromJSON UserFilterIdResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser UserFilterIdResponse parseJSONList :: Value -> Parser [UserFilterIdResponse] omittedField :: Maybe UserFilterIdResponse | |||||
| ToJSON UserFilterIdResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: UserFilterIdResponse -> Value toEncoding :: UserFilterIdResponse -> Encoding toJSONList :: [UserFilterIdResponse] -> Value toEncodingList :: [UserFilterIdResponse] -> Encoding omitField :: UserFilterIdResponse -> Bool | |||||
| Generic UserFilterIdResponse Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: UserFilterIdResponse -> Rep UserFilterIdResponse x to :: Rep UserFilterIdResponse x -> UserFilterIdResponse | |||||
| Show UserFilterIdResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> UserFilterIdResponse -> ShowS show :: UserFilterIdResponse -> String showList :: [UserFilterIdResponse] -> ShowS | |||||
| Eq UserFilterIdResponse Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: UserFilterIdResponse -> UserFilterIdResponse -> Bool (/=) :: UserFilterIdResponse -> UserFilterIdResponse -> Bool | |||||
| type Rep UserFilterIdResponse Source # | |||||
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
| FromJSON UserFilter Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser UserFilter parseJSONList :: Value -> Parser [UserFilter] omittedField :: Maybe UserFilter | |||||
| ToJSON UserFilter Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: UserFilter -> Value toEncoding :: UserFilter -> Encoding toJSONList :: [UserFilter] -> Value toEncodingList :: [UserFilter] -> Encoding omitField :: UserFilter -> Bool | |||||
| Generic UserFilter Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show UserFilter Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> UserFilter -> ShowS show :: UserFilter -> String showList :: [UserFilter] -> ShowS | |||||
| Eq UserFilter Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep UserFilter Source # | |||||
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
| MsgtypeString MAudioType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MAudioType -> Text Source # | |
| MsgtypeString MFileType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MFileType -> Text Source # | |
| MsgtypeString MImageType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MImageType -> Text Source # | |
| MsgtypeString MTextType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MTextType -> Text Source # | |
| MsgtypeString MVideoType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MVideoType -> Text Source # | |
m.text
Constructors
| MTextType |
Instances
| FromJSON MTextType Source # | |
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MTextType parseJSONList :: Value -> Parser [MTextType] omittedField :: Maybe MTextType | |
| ToJSON MTextType Source # | |
Defined in MatrixBot.MatrixApi Methods toEncoding :: MTextType -> Encoding toJSONList :: [MTextType] -> Value toEncodingList :: [MTextType] -> Encoding | |
| Bounded MTextType Source # | |
Defined in MatrixBot.MatrixApi | |
| Enum MTextType Source # | |
Defined in MatrixBot.MatrixApi | |
| Show MTextType Source # | |
| Eq MTextType Source # | |
| ToHttpApiData MTextType Source # | |
Defined in MatrixBot.MatrixApi Methods toUrlPiece :: MTextType -> Text toEncodedUrlPiece :: MTextType -> Builder toHeader :: MTextType -> ByteString toQueryParam :: MTextType -> Text toEncodedQueryParam :: MTextType -> Builder | |
| MsgtypeString MTextType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MTextType -> Text Source # | |
m.image
data MImageType Source #
Constructors
| MImageType |
Instances
m.video
data MVideoType Source #
Constructors
| MVideoType |
Instances
m.audio
data MAudioType Source #
Constructors
| MAudioType |
Instances
m.file
Constructors
| MFileType |
Instances
| FromJSON MFileType Source # | |
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MFileType parseJSONList :: Value -> Parser [MFileType] omittedField :: Maybe MFileType | |
| ToJSON MFileType Source # | |
Defined in MatrixBot.MatrixApi Methods toEncoding :: MFileType -> Encoding toJSONList :: [MFileType] -> Value toEncodingList :: [MFileType] -> Encoding | |
| Bounded MFileType Source # | |
Defined in MatrixBot.MatrixApi | |
| Enum MFileType Source # | |
Defined in MatrixBot.MatrixApi | |
| Show MFileType Source # | |
| Eq MFileType Source # | |
| ToHttpApiData MFileType Source # | |
Defined in MatrixBot.MatrixApi Methods toUrlPiece :: MFileType -> Text toEncodedUrlPiece :: MFileType -> Builder toHeader :: MFileType -> ByteString toQueryParam :: MFileType -> Text toEncodedQueryParam :: MFileType -> Builder | |
| MsgtypeString MFileType Source # | |
Defined in MatrixBot.MatrixApi Methods msgtypeString :: MFileType -> Text Source # | |
m.room.message content
data MRoomMessageContent Source #
Constructors
| MRoomMessageContent | |
Fields
| |
Instances
| FromJSON MRoomMessageContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MRoomMessageContent parseJSONList :: Value -> Parser [MRoomMessageContent] omittedField :: Maybe MRoomMessageContent | |||||
| ToJSON MRoomMessageContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MRoomMessageContent -> Value toEncoding :: MRoomMessageContent -> Encoding toJSONList :: [MRoomMessageContent] -> Value toEncodingList :: [MRoomMessageContent] -> Encoding omitField :: MRoomMessageContent -> Bool | |||||
| Generic MRoomMessageContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: MRoomMessageContent -> Rep MRoomMessageContent x to :: Rep MRoomMessageContent x -> MRoomMessageContent | |||||
| Show MRoomMessageContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MRoomMessageContent -> ShowS show :: MRoomMessageContent -> String showList :: [MRoomMessageContent] -> ShowS | |||||
| Eq MRoomMessageContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: MRoomMessageContent -> MRoomMessageContent -> Bool (/=) :: MRoomMessageContent -> MRoomMessageContent -> Bool | |||||
| type Rep MRoomMessageContent Source # | |||||
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)))))) | |||||
Constructors
| InReplyTo | |
Fields | |
Instances
| FromJSON InReplyTo Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser InReplyTo parseJSONList :: Value -> Parser [InReplyTo] omittedField :: Maybe InReplyTo | |||||
| ToJSON InReplyTo Source # | |||||
Defined in MatrixBot.MatrixApi Methods toEncoding :: InReplyTo -> Encoding toJSONList :: [InReplyTo] -> Value toEncodingList :: [InReplyTo] -> Encoding | |||||
| Generic InReplyTo Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show InReplyTo Source # | |||||
| Eq InReplyTo Source # | |||||
| type Rep InReplyTo Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
mInReplyToKey :: IsString s => s Source #
htmlBodyFormatValue :: IsString s => s Source #
data MessageEdit Source #
Constructors
| MessageEdit | |
Fields
| |
Instances
| ToJSON MessageEdit Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MessageEdit -> Value toEncoding :: MessageEdit -> Encoding toJSONList :: [MessageEdit] -> Value toEncodingList :: [MessageEdit] -> Encoding omitField :: MessageEdit -> Bool | |||||
| Generic MessageEdit Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show MessageEdit Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MessageEdit -> ShowS show :: MessageEdit -> String showList :: [MessageEdit] -> ShowS | |||||
| Eq MessageEdit Source # | |||||
Defined in MatrixBot.MatrixApi | |||||
| type Rep MessageEdit Source # | |||||
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 #
Constructors
| MReactionContent | |
Fields | |
Instances
| FromJSON MReactionContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser MReactionContent parseJSONList :: Value -> Parser [MReactionContent] omittedField :: Maybe MReactionContent | |||||
| ToJSON MReactionContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods toJSON :: MReactionContent -> Value toEncoding :: MReactionContent -> Encoding toJSONList :: [MReactionContent] -> Value toEncodingList :: [MReactionContent] -> Encoding omitField :: MReactionContent -> Bool | |||||
| Generic MReactionContent Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
Methods from :: MReactionContent -> Rep MReactionContent x to :: Rep MReactionContent x -> MReactionContent | |||||
| Show MReactionContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods showsPrec :: Int -> MReactionContent -> ShowS show :: MReactionContent -> String showList :: [MReactionContent] -> ShowS | |||||
| Eq MReactionContent Source # | |||||
Defined in MatrixBot.MatrixApi Methods (==) :: MReactionContent -> MReactionContent -> Bool (/=) :: MReactionContent -> MReactionContent -> Bool | |||||
| type Rep MReactionContent Source # | |||||
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 #
Constructors
| RelatesTo | |
Fields
| |
Instances
| FromJSON RelatesTo Source # | |||||
Defined in MatrixBot.MatrixApi Methods parseJSON :: Value -> Parser RelatesTo parseJSONList :: Value -> Parser [RelatesTo] omittedField :: Maybe RelatesTo | |||||
| ToJSON RelatesTo Source # | |||||
Defined in MatrixBot.MatrixApi Methods toEncoding :: RelatesTo -> Encoding toJSONList :: [RelatesTo] -> Value toEncodingList :: [RelatesTo] -> Encoding | |||||
| Generic RelatesTo Source # | |||||
Defined in MatrixBot.MatrixApi Associated Types
| |||||
| Show RelatesTo Source # | |||||
| Eq RelatesTo Source # | |||||
| type Rep RelatesTo Source # | |||||
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 #