|
|
@ -64,18 +64,7 @@ paths:
|
|
|
|
"start": "s3456_9_0",
|
|
|
|
"start": "s3456_9_0",
|
|
|
|
"end": "s3457_9_0",
|
|
|
|
"end": "s3457_9_0",
|
|
|
|
"chunk": [
|
|
|
|
"chunk": [
|
|
|
|
{
|
|
|
|
{"$ref": "definitions/event-schemas/examples/m.room.message#m.text"}
|
|
|
|
"age": 32,
|
|
|
|
|
|
|
|
"content": {
|
|
|
|
|
|
|
|
"body": "incoming message",
|
|
|
|
|
|
|
|
"msgtype": "m.text"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14328055551tzaee:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1432804485886,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"type": "m.room.message",
|
|
|
|
|
|
|
|
"sender": "@bob:localhost"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
@ -142,16 +131,7 @@ paths:
|
|
|
|
application/json: {
|
|
|
|
application/json: {
|
|
|
|
"end": "s3456_9_0",
|
|
|
|
"end": "s3456_9_0",
|
|
|
|
"presence": [
|
|
|
|
"presence": [
|
|
|
|
{
|
|
|
|
{"$ref": "definitions/event-schemas/examples/m.presence"}
|
|
|
|
"content": {
|
|
|
|
|
|
|
|
"avatar_url": "mxc://localhost/GCmhgzMPRjqgpODLsNQzVuHZ#auto",
|
|
|
|
|
|
|
|
"displayname": "Bob",
|
|
|
|
|
|
|
|
"last_active_ago": 31053,
|
|
|
|
|
|
|
|
"presence": "online",
|
|
|
|
|
|
|
|
"user_id": "@bob:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"type": "m.presence"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"account_data": [
|
|
|
|
"account_data": [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -167,28 +147,12 @@ paths:
|
|
|
|
"messages": {
|
|
|
|
"messages": {
|
|
|
|
"chunk": [
|
|
|
|
"chunk": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 343513403,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.message#m.text"
|
|
|
|
"body": "foo",
|
|
|
|
|
|
|
|
"msgtype": "m.text"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14328044851tzTJS:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1432804485886,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"type": "m.room.message",
|
|
|
|
|
|
|
|
"sender": "@alice:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 343511809,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.message#m.video"
|
|
|
|
"body": "bar",
|
|
|
|
|
|
|
|
"msgtype": "m.text"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14328044872spjFg:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1432804487480,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"type": "m.room.message",
|
|
|
|
|
|
|
|
"sender": "@bob:localhost"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"end": "s3456_9_0",
|
|
|
|
"end": "s3456_9_0",
|
|
|
@ -197,81 +161,20 @@ paths:
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"state": [
|
|
|
|
"state": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 7148266897,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.join_rules"
|
|
|
|
"join_rule": "public"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14259997323TLwtb:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1425999732392,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"state_key": "",
|
|
|
|
|
|
|
|
"type": "m.room.join_rules",
|
|
|
|
|
|
|
|
"sender": "@alice:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"age": 6547561012,
|
|
|
|
|
|
|
|
"content": {
|
|
|
|
|
|
|
|
"avatar_url": "mxc://localhost/fzysBrHpPEeTGANCVLXWXNMI#auto",
|
|
|
|
|
|
|
|
"membership": "join"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$1426600438280zExKY:localhost",
|
|
|
|
|
|
|
|
"membership": "join",
|
|
|
|
|
|
|
|
"origin_server_ts": 1426600438277,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"state_key": "@alice:localhost",
|
|
|
|
|
|
|
|
"type": "m.room.member",
|
|
|
|
|
|
|
|
"sender": "@alice:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 7148267200,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.member"
|
|
|
|
"creator": "@alice:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14259997320KhbwJ:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1425999732089,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"state_key": "",
|
|
|
|
|
|
|
|
"type": "m.room.create",
|
|
|
|
|
|
|
|
"sender": "@alice:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 1622568720,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.create"
|
|
|
|
"avatar_url": "mxc://localhost/GCmhgzMPRjqgpODLsNQzVuHZ#auto",
|
|
|
|
|
|
|
|
"displayname": "Bob",
|
|
|
|
|
|
|
|
"membership": "join"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$1431525430134MxlLX:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1431525430569,
|
|
|
|
|
|
|
|
"replaces_state": "$142652023736BSXcM:localhost",
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"state_key": "@bob:localhost",
|
|
|
|
|
|
|
|
"type": "m.room.member",
|
|
|
|
|
|
|
|
"sender": "@bob:localhost"
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"age": 7148267004,
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
"content": {
|
|
|
|
"$ref": "definitions/event-schemas/examples/m.room.power_levels"
|
|
|
|
"ban": 50,
|
|
|
|
|
|
|
|
"events": {
|
|
|
|
|
|
|
|
"m.room.name": 100,
|
|
|
|
|
|
|
|
"m.room.power_levels": 100
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"events_default": 0,
|
|
|
|
|
|
|
|
"kick": 50,
|
|
|
|
|
|
|
|
"redact": 50,
|
|
|
|
|
|
|
|
"state_default": 50,
|
|
|
|
|
|
|
|
"users": {
|
|
|
|
|
|
|
|
"@alice:localhost": 100
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"users_default": 0
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"event_id": "$14259997322mqfaq:localhost",
|
|
|
|
|
|
|
|
"origin_server_ts": 1425999732285,
|
|
|
|
|
|
|
|
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
|
|
|
|
|
|
"state_key": "",
|
|
|
|
|
|
|
|
"type": "m.room.power_levels",
|
|
|
|
|
|
|
|
"sender": "@alice:localhost"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"visibility": "private",
|
|
|
|
"visibility": "private",
|
|
|
@ -423,16 +326,7 @@ paths:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: The full event.
|
|
|
|
description: The full event.
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
application/json: {
|
|
|
|
application/json: {"$ref": "definitions/event-schemas/examples/m.room.message#m.text"}
|
|
|
|
"content": {
|
|
|
|
|
|
|
|
"body": "Hello world!",
|
|
|
|
|
|
|
|
"msgtype": "m.text"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"room_id": "!wfgy43Sg4a:matrix.org",
|
|
|
|
|
|
|
|
"sender": "@bob:matrix.org",
|
|
|
|
|
|
|
|
"event_id": "$asfDuShaf7Gafaw:matrix.org",
|
|
|
|
|
|
|
|
"type": "m.room.message"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
allOf:
|
|
|
|
allOf:
|
|
|
|
- "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml"
|
|
|
|
- "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml"
|
|
|
|