Add redaction, feedback and presence events.

pull/977/head
Kegan Dougal 10 years ago
parent c78088cfd1
commit 6f842da227

@ -0,0 +1,10 @@
{
"content": {
"avatar_url": "mxc://localhost:wefuiwegh8742w",
"last_active_ago": 2478593,
"presence": "online",
"user_id": "@example:localhost"
},
"event_id": "$WLGTSEFSEF:localhost",
"type": "m.presence"
}

@ -0,0 +1,12 @@
{
"age": 242352,
"content": {
"type": "delivered",
"target_event_id": "$WEIGFHFW:localhost"
},
"origin_server_ts": 1431961217939,
"event_id": "$WLGTSEFSEF:localhost",
"type": "m.room.message.feedback",
"room_id": "!Cuyf34gef24t:localhost",
"user_id": "@example:localhost"
}

@ -0,0 +1,10 @@
{
"age": 242352,
"content": {},
"origin_server_ts": 1431961217939,
"event_id": "$WLGTSEFSEF:localhost",
"type": "m.room.redaction",
"room_id": "!Cuyf34gef24t:localhost",
"redacts": "!fukweghifu23:localhost",
"user_id": "@example:localhost"
}

@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"avatar_url": {
"type": "string"
},
"displayname": {
"type": "string"
},
"last_active_ago": {
"type": "number"
},
"presence": {
"type": "string",
"enum": ["online", "offline", "unavailable", "free_for_chat", "hidden"]
},
"user_id": {
"type": "string"
}
},
"required": ["presence", "user_id"]
},
"type": {
"type": "string",
"enum": ["m.presence"]
},
"event_id": {
"type": "string"
}
},
"required": ["event_id", "type", "content"]
}

@ -10,7 +10,7 @@
"properties": {
"membership": {
"type": "string",
"enum": ["invite","join","leave","ban"]
"enum": ["invite","join","knock","leave","ban"]
}
},
"required": ["membership"]

@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"allOf": [{
"$ref": "core#/definitions/room_event"
}],
"properties": {
"content": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["delivered", "read"]
},
"target_event_id": {
"type": "string"
}
},
"required": ["type", "target_event_id"]
},
"type": {
"type": "string",
"enum": ["m.room.message.feedback"]
}
}
}

@ -0,0 +1,25 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"allOf": [{
"$ref": "core#/definitions/room_event"
}],
"properties": {
"content": {
"type": "object",
"properties": {
"reason": {
"type": "string"
}
}
},
"redacts": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["m.room.redaction"]
}
},
"required": ["redacts"]
}
Loading…
Cancel
Save