aboutsummaryrefslogtreecommitdiff
path: root/mxlib/api.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-16 22:57:30 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-16 22:57:30 +0100
commita11be80cf0c13263791f3e4f82fda461acd77130 (patch)
treef1a128255fd25d9bbe80c48d6019c36b2f83bf8c /mxlib/api.go
parentd2ccd6763a8a8a88e5cdbf95fd665e679f8e187e (diff)
downloadeasybridge-a11be80cf0c13263791f3e4f82fda461acd77130.tar.gz
easybridge-a11be80cf0c13263791f3e4f82fda461acd77130.zip
Work
Diffstat (limited to 'mxlib/api.go')
-rw-r--r--mxlib/api.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/mxlib/api.go b/mxlib/api.go
index cb2d10c..84c125b 100644
--- a/mxlib/api.go
+++ b/mxlib/api.go
@@ -18,7 +18,7 @@ type Transaction struct {
}
type Event struct {
- Content map[string]string `json:"content"`
+ Content map[string]interface{} `json:"content"`
Type string `json:"type"`
EventId string `json:"event_id"`
RoomId string `json:"room_id"`
@@ -47,6 +47,17 @@ type CreateRoomRequest struct {
Topic string `json:"topic"`
Invite []string `json:"invite"`
CreationContent map[string]interface{} `json:"creation_content"`
+ PowerLevels map[string]interface{} `json:"power_level_content_override"`
+}
+
+type CreateRoomNoAliasRequest struct {
+ Preset string `json:"preset"`
+ Name string `json:"name"`
+ Topic string `json:"topic"`
+ Invite []string `json:"invite"`
+ CreationContent map[string]interface{} `json:"creation_content"`
+ PowerLevels map[string]interface{} `json:"power_level_content_override"`
+ IsDirect bool `json:"is_direct"`
}
type CreateRoomResponse struct {
@@ -70,10 +81,11 @@ type RoomJoinResponse struct {
RoomId string `json:"room_id"`
}
-type RoomSendRequest struct {
+type RoomSendMessageRequest struct {
MsgType string `json:"msgtype"`
Body string `json:"body"`
}
type RoomSendResponse struct {
EventId string `json:"event_id"`
}
+