diff --git a/data/api/client-server/definitions/event-schemas/examples/core/event.json b/data/api/client-server/definitions/event-schemas/examples/core/event.json deleted file mode 100644 index 8a469a5c..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/core/event.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "content": { - "key": "value" - }, - "type": "org.example.custom.event" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/core/room_edu.json b/data/api/client-server/definitions/event-schemas/examples/core/room_edu.json deleted file mode 100644 index 30ad8081..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/core/room_edu.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$ref": "event.json", - "room_id": "!jEsUZKDJdhlrceRyVU:example.org" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/core/room_event.json b/data/api/client-server/definitions/event-schemas/examples/core/room_event.json deleted file mode 100644 index 521225cc..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/core/room_event.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "event.json", - "event_id": "$143273582443PhrSn:example.org", - "room_id": "!jEsUZKDJdhlrceRyVU:example.org", - "sender": "@example:example.org", - "origin_server_ts": 1432735824653, - "unsigned": { - "age": 1234 - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/core/state_event.json b/data/api/client-server/definitions/event-schemas/examples/core/state_event.json deleted file mode 100644 index 910747ee..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/core/state_event.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$ref": "room_event.json", - "state_key": "ArbitraryString" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/invite_room_state.json b/data/api/client-server/definitions/event-schemas/examples/invite_room_state.json deleted file mode 100644 index 9d8c1b2b..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/invite_room_state.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "type": "m.room.name", - "sender": "@bob:example.org", - "state_key": "", - "content": { - "name": "Example Room" - } - }, - { - "type": "m.room.join_rules", - "sender": "@bob:example.org", - "state_key": "", - "content": { - "join_rule": "invite" - } - } -] diff --git a/data/api/client-server/definitions/event-schemas/examples/m.accepted_terms.yaml b/data/api/client-server/definitions/event-schemas/examples/m.accepted_terms.yaml deleted file mode 100644 index 5e8dad16..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.accepted_terms.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.accepted_terms", - "content": { - "accepted": [ - "https://example.org/somewhere/terms-1.2-en.html", - "https://example.org/somewhere/privacy-1.2-en.html" - ] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.call.answer.yaml b/data/api/client-server/definitions/event-schemas/examples/m.call.answer.yaml deleted file mode 100644 index a4cfc1e1..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.call.answer.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.call.answer", - "content": { - "version" : 0, - "call_id": "12345", - "lifetime": 60000, - "answer": { - "type" : "answer", - "sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]" - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.call.candidates.yaml b/data/api/client-server/definitions/event-schemas/examples/m.call.candidates.yaml deleted file mode 100644 index 8f1f807a..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.call.candidates.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.call.candidates", - "content": { - "version" : 0, - "call_id": "12345", - "candidates": [ - { - "sdpMid": "audio", - "sdpMLineIndex": 0, - "candidate": "candidate:863018703 1 udp 2122260223 10.9.64.156 43670 typ host generation 0" - } - ] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.call.hangup.yaml b/data/api/client-server/definitions/event-schemas/examples/m.call.hangup.yaml deleted file mode 100644 index 295f16e4..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.call.hangup.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.call.hangup", - "content": { - "version" : 0, - "call_id": "12345" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.call.invite.yaml b/data/api/client-server/definitions/event-schemas/examples/m.call.invite.yaml deleted file mode 100644 index fa482bd9..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.call.invite.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.call.invite", - "content": { - "version" : 0, - "call_id": "12345", - "lifetime": 60000, - "offer": { - "type" : "offer", - "sdp" : "v=0\r\no=- 6584580628695956864 2 IN IP4 127.0.0.1[...]" - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.direct.yaml b/data/api/client-server/definitions/event-schemas/examples/m.direct.yaml deleted file mode 100644 index e453dd59..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.direct.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.direct", - "content": { - "@bob:example.com": [ - "!abcdefgh:example.com", - "!hgfedcba:example.com" - ] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.dummy.yaml b/data/api/client-server/definitions/event-schemas/examples/m.dummy.yaml deleted file mode 100644 index 0cd39166..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.dummy.yaml +++ /dev/null @@ -1,4 +0,0 @@ -{ - "content": {}, - "type": "m.dummy" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.forwarded_room_key.yaml b/data/api/client-server/definitions/event-schemas/examples/m.forwarded_room_key.yaml deleted file mode 100644 index ef1d6180..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.forwarded_room_key.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "content": { - "algorithm": "m.megolm.v1.aes-sha2", - "room_id": "!Cuyf34gef24t:localhost", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", - "session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8Llf...", - "sender_key": "RF3s+E7RkTQTGF2d8Deol0FkQvgII2aJDf3/Jp5mxVU", - "sender_claimed_ed25519_key": "aj40p+aw64yPIdsxoog8jhPu9i7l7NcFRecuOQblE3Y", - "forwarding_curve25519_key_chain": [ - "hPQNcabIABgGnx3/ACv/jmMmiQHoeFfuLB17tzWp6Hw" - ] - }, - "type": "m.forwarded_room_key" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.fully_read.yaml b/data/api/client-server/definitions/event-schemas/examples/m.fully_read.yaml deleted file mode 100644 index 0af2a6ea..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.fully_read.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.fully_read", - "room_id": "!somewhere:example.org", - "content": { - "event_id": "$someplace:example.org" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.identity_server.yaml b/data/api/client-server/definitions/event-schemas/examples/m.identity_server.yaml deleted file mode 100644 index 32855e9c..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.identity_server.yaml +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.identity_server", - "content": { - "base_url": "https://example.org" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.ignored_user_list.yaml b/data/api/client-server/definitions/event-schemas/examples/m.ignored_user_list.yaml deleted file mode 100644 index 83def6e4..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.ignored_user_list.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.ignored_user_list", - "content": { - "ignored_users": { - "@someone:example.org": {} - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.accept.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.accept.yaml deleted file mode 100644 index 98e89c06..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.accept.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "m.key.verification.accept", - "content": { - "transaction_id": "S0meUniqueAndOpaqueString", - "method": "m.sas.v1", - "key_agreement_protocol": "curve25519", - "hash": "sha256", - "message_authentication_code": "hkdf-hmac-sha256", - "short_authentication_string": ["decimal", "emoji"], - "commitment": "fQpGIW1Snz+pwLZu6sTy2aHy/DYWWTspTJRPyNp0PKkymfIsNffysMl6ObMMFdIJhk6g6pwlIqZ54rxo8SLmAg" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.cancel.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.cancel.yaml deleted file mode 100644 index 9d78f67c..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.cancel.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "m.key.verification.cancel", - "content": { - "transaction_id": "S0meUniqueAndOpaqueString", - "code": "m.user", - "reason": "User rejected the key verification request" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.key.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.key.yaml deleted file mode 100644 index 608a2ebd..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.key.yaml +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "m.key.verification.key", - "content": { - "transaction_id": "S0meUniqueAndOpaqueString", - "key": "fQpGIW1Snz+pwLZu6sTy2aHy/DYWWTspTJRPyNp0PKkymfIsNffysMl6ObMMFdIJhk6g6pwlIqZ54rxo8SLmAg" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.mac.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.mac.yaml deleted file mode 100644 index c77c3a8d..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.mac.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "type": "m.key.verification.mac", - "content": { - "transaction_id": "S0meUniqueAndOpaqueString", - "keys": "2Wptgo4CwmLo/Y8B8qinxApKaCkBG2fjTWB7AbP5Uy+aIbygsSdLOFzvdDjww8zUVKCmI02eP9xtyJxc/cLiBA", - "mac": { - "ed25519:ABCDEF": "fQpGIW1Snz+pwLZu6sTy2aHy/DYWWTspTJRPyNp0PKkymfIsNffysMl6ObMMFdIJhk6g6pwlIqZ54rxo8SLmAg" - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.request.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.request.yaml deleted file mode 100644 index 258471d2..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.request.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{ - "type": "m.key.verification.request", - "content": { - "from_device": "AliceDevice2", - "transaction_id": "S0meUniqueAndOpaqueString", - "methods": [ - "m.sas.v1" - ], - "timestamp": 1559598944869 - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start$m.sas.v1.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start$m.sas.v1.yaml deleted file mode 100644 index dae1d405..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start$m.sas.v1.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "m.key.verification.start", - "content": { - "from_device": "BobDevice1", - "transaction_id": "S0meUniqueAndOpaqueString", - "method": "m.sas.v1", - "key_agreement_protocols": ["curve25519"], - "hashes": ["sha256"], - "message_authentication_codes": ["hkdf-hmac-sha256"], - "short_authentication_string": ["decimal", "emoji"] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start.yaml b/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start.yaml deleted file mode 100644 index 52f16150..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.key.verification.start.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "m.key.verification.start", - "content": { - "from_device": "BobDevice1", - "transaction_id": "S0meUniqueAndOpaqueString", - "method": "m.sas.v1" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.room.yaml b/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.room.yaml deleted file mode 100644 index 5a532cb5..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.room.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.policy.rule.room", - "state_key": "rule:#*:example.org", - "content": { - "entity": "#*:example.org", - "recommendation": "m.ban", - "reason": "undesirable content" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.server.yaml b/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.server.yaml deleted file mode 100644 index 3d740a28..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.server.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.policy.rule.server", - "state_key": "rule:*.example.org", - "content": { - "entity": "*.example.org", - "recommendation": "m.ban", - "reason": "undesirable engagement" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.user.yaml b/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.user.yaml deleted file mode 100644 index eb3832da..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.policy.rule.user.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.policy.rule.user", - "state_key": "rule:@alice*:example.org", - "content": { - "entity": "@alice*:example.org", - "recommendation": "m.ban", - "reason": "undesirable behaviour" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.presence.yaml b/data/api/client-server/definitions/event-schemas/examples/m.presence.yaml deleted file mode 100644 index ec4ce6e0..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.presence.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$ref": "core/event.json", - "sender": "@example:localhost", - "type": "m.presence", - "content": { - "avatar_url": "mxc://localhost:wefuiwegh8742w", - "last_active_ago": 2478593, - "presence": "online", - "currently_active": false, - "status_msg": "Making cupcakes" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.push_rules.yaml b/data/api/client-server/definitions/event-schemas/examples/m.push_rules.yaml deleted file mode 100644 index 34bc2fe6..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.push_rules.yaml +++ /dev/null @@ -1,197 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.push_rules", - "content": { - "global": { - "content": [ - { - "actions": [ - "notify", - { - "set_tweak": "sound", - "value": "default" - }, - { - "set_tweak": "highlight" - } - ], - "default": true, - "enabled": true, - "pattern": "alice", - "rule_id": ".m.rule.contains_user_name" - } - ], - "override": [ - { - "actions": [ - "dont_notify" - ], - "conditions": [], - "default": true, - "enabled": false, - "rule_id": ".m.rule.master" - }, - { - "actions": [ - "dont_notify" - ], - "conditions": [ - { - "key": "content.msgtype", - "kind": "event_match", - "pattern": "m.notice" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.suppress_notices" - } - ], - "room": [], - "sender": [], - "underride": [ - { - "actions": [ - "notify", - { - "set_tweak": "sound", - "value": "ring" - }, - { - "set_tweak": "highlight", - "value": false - } - ], - "conditions": [ - { - "key": "type", - "kind": "event_match", - "pattern": "m.call.invite" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.call" - }, - { - "actions": [ - "notify", - { - "set_tweak": "sound", - "value": "default" - }, - { - "set_tweak": "highlight" - } - ], - "conditions": [ - { - "kind": "contains_display_name" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.contains_display_name" - }, - { - "actions": [ - "notify", - { - "set_tweak": "sound", - "value": "default" - }, - { - "set_tweak": "highlight", - "value": false - } - ], - "conditions": [ - { - "kind": "room_member_count", - "is": "2" - }, - { - "kind": "event_match", - "key": "type", - "pattern": "m.room.message" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.room_one_to_one" - }, - { - "actions": [ - "notify", - { - "set_tweak": "sound", - "value": "default" - }, - { - "set_tweak": "highlight", - "value": false - } - ], - "conditions": [ - { - "key": "type", - "kind": "event_match", - "pattern": "m.room.member" - }, - { - "key": "content.membership", - "kind": "event_match", - "pattern": "invite" - }, - { - "key": "state_key", - "kind": "event_match", - "pattern": "@alice:example.com" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.invite_for_me" - }, - { - "actions": [ - "notify", - { - "set_tweak": "highlight", - "value": false - } - ], - "conditions": [ - { - "key": "type", - "kind": "event_match", - "pattern": "m.room.member" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.member_event" - }, - { - "actions": [ - "notify", - { - "set_tweak": "highlight", - "value": false - } - ], - "conditions": [ - { - "key": "type", - "kind": "event_match", - "pattern": "m.room.message" - } - ], - "default": true, - "enabled": true, - "rule_id": ".m.rule.message" - } - ] - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.receipt.yaml b/data/api/client-server/definitions/event-schemas/examples/m.receipt.yaml deleted file mode 100644 index c52d8540..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.receipt.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$ref": "core/room_edu.json", - "type": "m.receipt", - "content": { - "$1435641916114394fHBLK:matrix.org": { - "m.read": { - "@rikj:jki.re": { - "ts": 1436451550453 - } - } - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.avatar.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.avatar.yaml deleted file mode 100644 index cf0d17f3..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.avatar.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.avatar", - "state_key": "", - "content": { - "info": { - "h": 398, - "w": 394, - "mimetype": "image/jpeg", - "size": 31037 - }, - "url": "mxc://example.org/JWEIFJgwEIhweiWJE" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.canonical_alias.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.canonical_alias.yaml deleted file mode 100644 index 698c11b8..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.canonical_alias.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.canonical_alias", - "state_key": "", - "content": { - "alias": "#somewhere:localhost", - "alt_aliases": [ - "#somewhere:example.org", - "#myroom:example.com" - ] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.create.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.create.yaml deleted file mode 100644 index e33dbc3b..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.create.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.create", - "state_key": "", - "content": { - "creator": "@example:example.org", - "room_version": "1", - "m.federate": true, - "predecessor": { - "event_id": "$something:example.org", - "room_id": "!oldroom:example.org" - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$megolm.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$megolm.yaml deleted file mode 100644 index ac542e25..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$megolm.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.encrypted", - "content": { - "algorithm": "m.megolm.v1.aes-sha2", - "ciphertext": "AwgAEnACgAkLmt6qF84IK++J7UDH2Za1YVchHyprqTqsg...", - "device_id": "RJYKSTBOIE", - "sender_key": "IlRMeOPX2e0MurIyfWEucYBRVOEEUMrOHqn/8mLqMjA", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$olm.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$olm.yaml deleted file mode 100644 index 381651d9..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.encrypted$olm.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.encrypted", - "content": { - "algorithm": "m.olm.v1.curve25519-aes-sha2", - "sender_key": "Szl29ksW/L8yZGWAX+8dY1XyFi+i5wm+DRhTGkbMiwU", - "ciphertext": { - "7qZcfnBmbEGzxxaWfBjElJuvn7BZx+lSz/SvFrDF/z8": { - "type": 0, - "body": "AwogGJJzMhf/S3GQFXAOrCZ3iKyGU5ZScVtjI0KypTYrW..." - } - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.encryption.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.encryption.yaml deleted file mode 100644 index 6158b937..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.encryption.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.encryption", - "state_key": "", - "content": { - "algorithm": "m.megolm.v1.aes-sha2", - "rotation_period_ms": 604800000, - "rotation_period_msgs": 100 - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.guest_access.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.guest_access.yaml deleted file mode 100644 index a6deff8c..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.guest_access.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.guest_access", - "state_key": "", - "content": { - "guest_access": "can_join" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.history_visibility.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.history_visibility.yaml deleted file mode 100644 index 27c4fec3..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.history_visibility.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.history_visibility", - "state_key": "", - "content": { - "history_visibility": "shared" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.join_rules.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.join_rules.yaml deleted file mode 100644 index 2873be78..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.join_rules.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.join_rules", - "state_key": "", - "content": { - "join_rule": "public" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.member$invite_room_state.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.member$invite_room_state.yaml deleted file mode 100644 index d2c465aa..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.member$invite_room_state.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$ref": "m.room.member", - "content": { - "membership": "invite", - "avatar_url": "mxc://example.org/SEsfnsuifSDFSSEF", - "displayname": "Alice Margatroid", - "reason": "Looking for support" - }, - "unsigned": { - "age": 1234, - "invite_room_state": { - "$ref": "invite_room_state.json" - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.member$third_party_invite.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.member$third_party_invite.yaml deleted file mode 100644 index a40d44f9..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.member$third_party_invite.yaml +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$ref": "m.room.member", - "content": { - "membership": "invite", - "avatar_url": "mxc://example.org/SEsfnsuifSDFSSEF", - "displayname": "Alice Margatroid", - "third_party_invite": { - "display_name": "alice", - "signed": { - "mxid": "@alice:example.org", - "signatures": { - "magic.forest": { - "ed25519:3": "fQpGIW1Snz+pwLZu6sTy2aHy/DYWWTspTJRPyNp0PKkymfIsNffysMl6ObMMFdIJhk6g6pwlIqZ54rxo8SLmAg" - } - }, - "token": "abc123" - } - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.member.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.member.yaml deleted file mode 100644 index 5147b258..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.member.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$ref": "core/state_event.json", - "state_key": "@alice:example.org", - "type": "m.room.member", - "content": { - "membership": "join", - "avatar_url": "mxc://example.org/SEsfnsuifSDFSSEF", - "displayname": "Alice Margatroid", - "reason": "Looking for support" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.audio.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.audio.yaml deleted file mode 100644 index 58e874e0..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.audio.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "Bee Gees - Stayin' Alive", - "url": "mxc://example.org/ffed755USFFxlgbQYZGtryd", - "info": { - "duration": 2140786, - "size": 1563685, - "mimetype": "audio/mpeg" - }, - "msgtype": "m.audio" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.emote.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.emote.yaml deleted file mode 100644 index 5fecb9a3..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.emote.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "thinks this is an example emote", - "msgtype": "m.emote", - "format": "org.matrix.custom.html", - "formatted_body": "thinks this is an example emote" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.file.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.file.yaml deleted file mode 100644 index c375861b..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.file.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "something-important.doc", - "filename": "something-important.doc", - "info": { - "mimetype": "application/msword", - "size": 46144 - }, - "msgtype": "m.file", - "url": "mxc://example.org/FHyPlCeYUSFFxlgbQYZmoEoe" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.image.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.image.yaml deleted file mode 100644 index a0e38c82..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.image.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "filename.jpg", - "info": { - "h": 398, - "w": 394, - "mimetype": "image/jpeg", - "size": 31037 - }, - "url": "mxc://example.org/JWEIFJgwEIhweiWJE", - "msgtype": "m.image" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.location.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.location.yaml deleted file mode 100644 index 49820419..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.location.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "Big Ben, London, UK", - "geo_uri": "geo:51.5008,0.1247", - "info": { - "thumbnail_url": "mxc://example.org/FHyPlCeYUSFFxlgbQYZmoEoe", - "thumbnail_info": { - "mimetype": "image/jpeg", - "size": 46144, - "w": 300, - "h": 300 - } - }, - "msgtype": "m.location" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.notice.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.notice.yaml deleted file mode 100644 index d33751da..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.notice.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "This is an example notice", - "msgtype": "m.notice", - "format": "org.matrix.custom.html", - "formatted_body": "This is an example notice" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.server_notice.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.server_notice.yaml deleted file mode 100644 index 0eb44ea7..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.server_notice.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "Human-readable message to explain the notice", - "msgtype": "m.server_notice", - "server_notice_type": "m.server_notice.usage_limit_reached", - "admin_contact": "mailto:server.admin@example.org", - "limit_type": "monthly_active_user" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.text.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.text.yaml deleted file mode 100644 index ba1fb769..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.text.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "This is an example text message", - "msgtype": "m.text", - "format": "org.matrix.custom.html", - "formatted_body": "This is an example text message" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.video.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.video.yaml deleted file mode 100644 index 71f19a66..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message$m.video.yaml +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message", - "content": { - "body": "Gangnam Style", - "url": "mxc://example.org/a526eYUSFFxlgbQYZmo442", - "info": { - "thumbnail_url": "mxc://example.org/FHyPlCeYUSFFxlgbQYZmoEoe", - "thumbnail_info": { - "mimetype": "image/jpeg", - "size": 46144, - "w": 300, - "h": 300 - }, - "w": 480, - "h": 320, - "duration": 2140786, - "size": 1563685, - "mimetype": "video/mp4" - }, - "msgtype": "m.video" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.message.feedback.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.message.feedback.yaml deleted file mode 100644 index e146e874..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.message.feedback.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.message.feedback", - "content": { - "type": "delivered", - "target_event_id": "$WEIGFHFW:localhost" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.name.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.name.yaml deleted file mode 100644 index e77e2b53..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.name.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.name", - "state_key": "", - "content": { - "name": "The room name" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.pinned_events.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.pinned_events.yaml deleted file mode 100644 index 5bf31f05..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.pinned_events.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.pinned_events", - "state_key": "", - "content": { - "pinned": ["$someevent:example.org"] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.power_levels.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.power_levels.yaml deleted file mode 100644 index ad741e88..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.power_levels.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.power_levels", - "state_key": "", - "content": { - "ban": 50, - "events": { - "m.room.name": 100, - "m.room.power_levels": 100 - }, - "events_default": 0, - "invite": 50, - "kick": 50, - "redact": 50, - "state_default": 50, - "users": { - "@example:localhost": 100 - }, - "users_default": 0, - "notifications": { - "room": 20 - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.redaction.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.redaction.yaml deleted file mode 100644 index 42bc8411..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.redaction.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.room.redaction", - "redacts": "$fukweghifu23:localhost", - "content": { - "reason": "Spamming" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.server_acl.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.server_acl.yaml deleted file mode 100644 index 06586f79..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.server_acl.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.server_acl", - "state_key": "", - "content": { - "allow_ip_literals": false, - "allow": ["*"], - "deny": ["*.evil.com", "evil.com"] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.third_party_invite.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.third_party_invite.yaml deleted file mode 100644 index 03f35375..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.third_party_invite.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.third_party_invite", - "state_key": "pc98", - "content": { - "display_name": "Alice Margatroid", - "key_validity_url": "https://magic.forest/verifykey", - "public_key": "abc123", - "public_keys": [{ - "public_key": "def456", - "key_validity_url": "https://magic.forest/verifykey" - }] - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.tombstone.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.tombstone.yaml deleted file mode 100644 index b6224476..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.tombstone.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.tombstone", - "state_key": "", - "content": { - "body": "This room has been replaced", - "replacement_room": "!newroom:example.org" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room.topic.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room.topic.yaml deleted file mode 100644 index 69e5d4f1..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room.topic.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$ref": "core/state_event.json", - "type": "m.room.topic", - "state_key": "", - "content": { - "topic": "A room topic" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room_key.withheld.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room_key.withheld.yaml deleted file mode 100644 index fa8f135f..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room_key.withheld.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.room_key.withheld", - "content": { - "algorithm": "m.megolm.v1.aes-sha2", - "room_id": "!Cuyf34gef24t:localhost", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", - "sender_key": "RF3s+E7RkTQTGF2d8Deol0FkQvgII2aJDf3/Jp5mxVU", - "code": "m.unverified", - "reason": "Device not verified" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room_key.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room_key.yaml deleted file mode 100644 index dba497b4..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room_key.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.room_key", - "content": { - "algorithm": "m.megolm.v1.aes-sha2", - "room_id": "!Cuyf34gef24t:localhost", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", - "session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8LlfJL7qNBEY..." - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$cancel_request.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$cancel_request.yaml deleted file mode 100644 index afc1c350..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$cancel_request.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{ - "content": { - "action": "request_cancellation", - "requesting_device_id": "RJYKSTBOIE", - "request_id": "1495474790150.19" - }, - "type": "m.room_key_request" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$request.yaml b/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$request.yaml deleted file mode 100644 index 8557f08e..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.room_key_request$request.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{ - "content": { - "body": { - "algorithm": "m.megolm.v1.aes-sha2", - "room_id": "!Cuyf34gef24t:localhost", - "session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ", - "sender_key": "RF3s+E7RkTQTGF2d8Deol0FkQvgII2aJDf3/Jp5mxVU" - }, - "action": "request", - "requesting_device_id": "RJYKSTBOIE", - "request_id": "1495474790150.19" - }, - "type": "m.room_key_request" -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.sticker.yaml b/data/api/client-server/definitions/event-schemas/examples/m.sticker.yaml deleted file mode 100644 index 971cdc90..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.sticker.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$ref": "core/room_event.json", - "type": "m.sticker", - "content": { - "body": "Landing", - "info": { - "mimetype": "image/png", - "thumbnail_info": { - "mimetype": "image/png", - "h": 200, - "w": 140, - "size": 73602 - }, - "h": 200, - "thumbnail_url": "mxc://matrix.org/sHhqkFCvSkFwtmvtETOtKnLP", - "w": 140, - "size": 73602 - }, - "url": "mxc://matrix.org/sHhqkFCvSkFwtmvtETOtKnLP" - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.tag.yaml b/data/api/client-server/definitions/event-schemas/examples/m.tag.yaml deleted file mode 100644 index 7e56b1ea..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.tag.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$ref": "core/event.json", - "type": "m.tag", - "content": { - "tags": { - "u.work": {"order": 0.9} - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/examples/m.typing.yaml b/data/api/client-server/definitions/event-schemas/examples/m.typing.yaml deleted file mode 100644 index 416b9968..00000000 --- a/data/api/client-server/definitions/event-schemas/examples/m.typing.yaml +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$ref": "core/room_edu.json", - "type": "m.typing", - "content": { - "user_ids": ["@alice:matrix.org", "@bob:example.com"] - } -} diff --git a/data/api/client-server/definitions/event-schemas/moderation_policy_rule.yaml b/data/api/client-server/definitions/event-schemas/moderation_policy_rule.yaml deleted file mode 100644 index 34ad4d9a..00000000 --- a/data/api/client-server/definitions/event-schemas/moderation_policy_rule.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 The Matrix.org Foundation C.I.C. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -properties: - entity: - description: |- - The entity affected by this rule. Glob characters ``*`` and ``?`` can be used - to match zero or more and one or more characters respectively. - type: string - recommendation: - description: The suggested action to take. Currently only ``m.ban`` is specified. - type: string - reason: - description: The human-readable description for the ``recommendation``. - type: string -type: object -required: - - entity - - recommendation - - reason diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/event.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/event.yaml deleted file mode 100644 index 0fe5ac6c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/event.yaml +++ /dev/null @@ -1,15 +0,0 @@ -description: The basic set of fields all events must have. -properties: - content: - description: The fields in this object will vary depending on the type of event. - When interacting with the REST API, this is the HTTP body. - type: object - type: - description: The type of event. This SHOULD be namespaced similar to Java package - naming conventions e.g. 'com.example.subdomain.event.type' - type: string -required: - - type - - content -title: Event -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml deleted file mode 100644 index ff40efcb..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml +++ /dev/null @@ -1,36 +0,0 @@ -$schema: http://json-schema.org/draft-04/schema# -description: Metadata about an image. -properties: - h: - description: |- - The intended display height of the image in pixels. This may - differ from the intrinsic dimensions of the image file. - type: integer - w: - description: |- - The intended display width of the image in pixels. This may - differ from the intrinsic dimensions of the image file. - type: integer - mimetype: - description: The mimetype of the image, e.g. ``image/jpeg``. - type: string - size: - description: Size of the image in bytes. - type: integer - thumbnail_url: - description: |- - The URL (typically `MXC URI`_) to a thumbnail of the image. - Only present if the thumbnail is unencrypted. - type: string - thumbnail_file: - description: |- - Information on the encrypted thumbnail file, as specified in - |encrypted_files|_. Only present if the thumbnail is encrypted. - title: EncryptedFile - type: object - thumbnail_info: - allOf: - - $ref: thumbnail_info.yaml - description: Metadata about the image referred to in ``thumbnail_url``. -title: ImageInfo -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/thumbnail_info.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/thumbnail_info.yaml deleted file mode 100644 index 82ffaf5e..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/msgtype_infos/thumbnail_info.yaml +++ /dev/null @@ -1,21 +0,0 @@ -$schema: http://json-schema.org/draft-04/schema# -description: Metadata about a thumbnail image. -properties: - h: - description: |- - The intended display height of the image in pixels. This may - differ from the intrinsic dimensions of the image file. - type: integer - w: - description: |- - The intended display width of the image in pixels. This may - differ from the intrinsic dimensions of the image file. - type: integer - mimetype: - description: The mimetype of the image, e.g. ``image/jpeg``. - type: string - size: - description: Size of the image in bytes. - type: integer -title: ThumbnailInfo -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/room_event.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/room_event.yaml deleted file mode 100644 index 6a74acdc..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/room_event.yaml +++ /dev/null @@ -1,13 +0,0 @@ -allOf: -- $ref: sync_room_event.yaml -description: Room Events have the following fields. -properties: - room_id: - description: |- - The ID of the room associated with this event. Will not be present on events - that arrive through ``/sync``, despite being required everywhere else. - type: string -required: -- room_id -title: RoomEvent -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/state_event.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/state_event.yaml deleted file mode 100644 index d2ff5243..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/state_event.yaml +++ /dev/null @@ -1,6 +0,0 @@ -allOf: -- $ref: room_event.yaml -- $ref: sync_state_event.yaml -description: State Events have the following fields. -title: StateEvent -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_room_event.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_room_event.yaml deleted file mode 100644 index 7ad7191b..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_room_event.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2018 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Note: this is technically not a core event schema, however it is included here -# to keep things sane. The short story is that /sync doesn't require a room_id to -# be on events, so we give it a whole event structure as a base for room_event. -# This base doesn't declare a room_id, which instead appears in the room_event. - -allOf: -- $ref: event.yaml -description: In addition to the Event fields, Room Events have the following additional - fields. -properties: - event_id: - description: The globally unique event identifier. - type: string - sender: - description: Contains the fully-qualified ID of the user who sent this event. - type: string - origin_server_ts: - description: Timestamp in milliseconds on originating homeserver - when this event was sent. - type: integer - format: int64 - unsigned: - $ref: unsigned_prop.yaml -required: -- event_id -- sender -- origin_server_ts -title: SyncRoomEvent -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_state_event.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_state_event.yaml deleted file mode 100644 index dc48f941..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/sync_state_event.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2018 New Vector Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# See sync_room_event.yaml for why this file is here. - -allOf: -- $ref: sync_room_event.yaml -description: In addition to the Room Event fields, State Events have the following - additional fields. -properties: - prev_content: - description: Optional. The previous ``content`` for this event. If there is no - previous content, this key will be missing. - title: EventContent - type: object - state_key: - description: A unique key which defines the overwriting semantics for this piece - of room state. This value is often a zero-length string. The presence of this - key makes this event a State Event. - - State keys starting with an ``@`` are reserved for referencing user IDs, such - as room members. With the exception of a few events, state events set with a - given user's ID as the state key MUST only be set by that user. - type: string -required: -- state_key -title: SyncStateEvent -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/unsigned_prop.yaml b/data/api/client-server/definitions/event-schemas/schema/core-event-schema/unsigned_prop.yaml deleted file mode 100644 index 36c37230..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/core-event-schema/unsigned_prop.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2020 The Matrix.org Foundation C.I.C. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -title: UnsignedData -type: object -description: Contains optional extra information about the event. -properties: - age: - description: The time in milliseconds that has elapsed since the event was - sent. This field is generated by the local homeserver, and may be incorrect - if the local time on at least one of the two servers is out of sync, which can - cause the age to either be negative or greater than it actually is. - type: integer - redacted_because: - description: The event that redacted this event, if any. - title: Event - type: object - transaction_id: - description: | - The client-supplied transaction ID, for example, provided via - ``PUT /_matrix/client/r0/rooms/{roomId}/send/{eventType}/{txnId}``, - if the client being given the event is the same one which sent it. - type: string diff --git a/data/api/client-server/definitions/event-schemas/schema/m.accepted_terms.yaml b/data/api/client-server/definitions/event-schemas/schema/m.accepted_terms.yaml deleted file mode 100644 index 510e741d..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.accepted_terms.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml -description: |- - A list of terms URLs the user has previously accepted. Clients SHOULD use this - to avoid presenting the user with terms they have already agreed to. -properties: - content: - type: object - properties: - accepted: - type: array - items: - type: string - description: |- - The list of URLs the user has previously accepted. Should be appended to - when the user agrees to new terms. - type: - enum: - - m.accepted_terms - type: string -title: Accepted Terms of Service URLs -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.call.answer.yaml b/data/api/client-server/definitions/event-schemas/schema/m.call.answer.yaml deleted file mode 100644 index 9d98dd7d..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.call.answer.yaml +++ /dev/null @@ -1,44 +0,0 @@ -{ - "type": "object", - "description": "This event is sent by the callee when they wish to answer the call.", - "allOf": [{ - "$ref": "core-event-schema/room_event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "call_id": { - "type": "string", - "description": "The ID of the call this event relates to." - }, - "answer": { - "type": "object", - "title": "Answer", - "description": "The session description object", - "properties": { - "type": { - "type": "string", - "enum": ["answer"], - "description": "The type of session description." - }, - "sdp": { - "type": "string", - "description": "The SDP text of the session description." - } - }, - "required": ["type", "sdp"] - }, - "version": { - "type": "number", - "description": "" - } - }, - "required": ["call_id", "answer", "version"] - }, - "type": { - "type": "string", - "enum": ["m.call.answer"] - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.call.candidates.yaml b/data/api/client-server/definitions/event-schemas/schema/m.call.candidates.yaml deleted file mode 100644 index 7426717c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.call.candidates.yaml +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "object", - "description": "This event is sent by callers after sending an invite and by the callee after answering. Its purpose is to give the other party additional ICE candidates to try using to communicate.", - "allOf": [{ - "$ref": "core-event-schema/room_event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "call_id": { - "type": "string", - "description": "The ID of the call this event relates to." - }, - "candidates": { - "type": "array", - "description": "Array of objects describing the candidates.", - "items": { - "type": "object", - "title": "Candidate", - "properties": { - "sdpMid": { - "type": "string", - "description": "The SDP media type this candidate is intended for." - }, - "sdpMLineIndex": { - "type": "number", - "description": "The index of the SDP 'm' line this candidate is intended for." - }, - "candidate": { - "type": "string", - "description": "The SDP 'a' line of the candidate." - } - }, - "required": ["candidate", "sdpMLineIndex", "sdpMid"] - } - }, - "version": { - "type": "integer", - "description": "The version of the VoIP specification this messages adheres to. This specification is version 0." - } - }, - "required": ["call_id", "candidates", "version"] - }, - "type": { - "type": "string", - "enum": ["m.call.candidates"] - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.call.hangup.yaml b/data/api/client-server/definitions/event-schemas/schema/m.call.hangup.yaml deleted file mode 100644 index c0478f5a..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.call.hangup.yaml +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "object", - "description": "Sent by either party to signal their termination of the call. This can be sent either once the call has has been established or before to abort the call.", - "allOf": [{ - "$ref": "core-event-schema/room_event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "call_id": { - "type": "string", - "description": "The ID of the call this event relates to." - }, - "version": { - "type": "integer", - "description": "The version of the VoIP specification this message adheres to. This specification is version 0." - }, - "reason": { - "type": "string", - "description": "Optional error reason for the hangup. This should not be provided when the user naturally ends or rejects the call. When there was an error in the call negotiation, this should be ``ice_failed`` for when ICE negotiation fails or ``invite_timeout`` for when the other party did not answer in time.", - "enum": [ - "ice_failed", - "invite_timeout" - ] - } - }, - "required": ["call_id", "version"] - }, - "type": { - "type": "string", - "enum": ["m.call.hangup"] - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.call.invite.yaml b/data/api/client-server/definitions/event-schemas/schema/m.call.invite.yaml deleted file mode 100644 index 65796e1e..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.call.invite.yaml +++ /dev/null @@ -1,48 +0,0 @@ -{ - "type": "object", - "description": "This event is sent by the caller when they wish to establish a call.", - "allOf": [{ - "$ref": "core-event-schema/room_event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "call_id": { - "type": "string", - "description": "A unique identifier for the call." - }, - "offer": { - "type": "object", - "title": "Offer", - "description": "The session description object", - "properties": { - "type": { - "type": "string", - "enum": ["offer"], - "description": "The type of session description." - }, - "sdp": { - "type": "string", - "description": "The SDP text of the session description." - } - }, - "required": ["type", "sdp"] - }, - "version": { - "type": "integer", - "description": "The version of the VoIP specification this message adheres to. This specification is version 0." - }, - "lifetime": { - "type": "integer", - "description": "The time in milliseconds that the invite is valid for. Once the invite age exceeds this value, clients should discard it. They should also no longer show the call as awaiting an answer in the UI." - } - }, - "required": ["call_id", "offer", "version", "lifetime"] - }, - "type": { - "type": "string", - "enum": ["m.call.invite"] - } - } -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.direct.yaml b/data/api/client-server/definitions/event-schemas/schema/m.direct.yaml deleted file mode 100644 index 8cbbf38f..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.direct.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml -description: |- - A map of which rooms are considered 'direct' rooms for specific users - is kept in ``account_data`` in an event of type ``m.direct``. The - content of this event is an object where the keys are the user IDs - and values are lists of room ID strings of the 'direct' rooms for - that user ID. -properties: - content: - additionalProperties: - type: array - title: User ID - items: - type: string - type: object - type: - enum: - - m.direct - type: string -title: Direct Chat Mapping -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.dummy.yaml b/data/api/client-server/definitions/event-schemas/schema/m.dummy.yaml deleted file mode 100644 index 8e4b6f94..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.dummy.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used to indicate new Olm sessions for end-to-end encryption. - Typically it is encrypted as an ``m.room.encrypted`` event, then sent as a `to-device`_ - event. - - The event does not have any content associated with it. The sending client is expected - to send a key share request shortly after this message, causing the receiving client to - process this ``m.dummy`` event as the most recent event and using the keyshare request - to set up the session. The keyshare request and ``m.dummy`` combination should result - in the original sending client receiving keys over the newly established session. -properties: - content: - properties: {} - type: object - type: - enum: - - m.dummy - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.forwarded_room_key.yaml b/data/api/client-server/definitions/event-schemas/schema/m.forwarded_room_key.yaml deleted file mode 100644 index 7350a25b..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.forwarded_room_key.yaml +++ /dev/null @@ -1,68 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used to forward keys for end-to-end encryption. Typically - it is encrypted as an ``m.room.encrypted`` event, then sent as a `to-device`_ - event. -properties: - content: - properties: - algorithm: - type: string - description: |- - The encryption algorithm the key in this event is to be used with. - room_id: - type: string - description: The room where the key is used. - sender_key: - type: string - description: |- - The Curve25519 key of the device which initiated the session originally. - session_id: - type: string - description: The ID of the session that the key is for. - session_key: - type: string - description: The key to be exchanged. - sender_claimed_ed25519_key: - type: string - description: |- - The Ed25519 key of the device which initiated the session originally. - It is 'claimed' because the receiving device has no way to tell that the - original room_key actually came from a device which owns the private part of - this key unless they have done device verification. - forwarding_curve25519_key_chain: - type: array - items: - type: string - description: |- - Chain of Curve25519 keys. It starts out empty, but each time the - key is forwarded to another device, the previous sender in the chain is added - to the end of the list. For example, if the key is forwarded from A to B to - C, this field is empty between A and B, and contains A's Curve25519 key between - B and C. - withheld: - type: object - description: |- - Indicates that the key cannot be used to decrypt all the messages - from the session because a portion of the session was withheld as - described in `Reporting that decryption keys are withheld`_. This - object must include the ``code`` and ``reason`` properties from the - ``m.room_key.withheld`` message that was received by the sender of - this message. - required: - - algorithm - - room_id - - session_id - - session_key - - sender_claimed_ed25519_key - - forwarding_curve25519_key_chain - - sender_key - type: object - type: - enum: - - m.forwarded_room_key - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.fully_read.yaml b/data/api/client-server/definitions/event-schemas/schema/m.fully_read.yaml deleted file mode 100644 index 51a1942f..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.fully_read.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{ - "type": "object", - "title": "Read Marker Location Event", - "description": "The current location of the user's read marker in a room. This event appears in the user's room account data for the room the marker is applicable for.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "event_id": { - "type": "string", - "description": "The event the user's read marker is located at in the room." - } - }, - "required": ["event_id"] - }, - "type": { - "type": "string", - "enum": ["m.fully_read"] - }, - "room_id": { - "type": "string", - "description": "The room ID the read marker applies to." - } - }, - "required": ["type", "room_id", "content"] -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.identity_server.yaml b/data/api/client-server/definitions/event-schemas/schema/m.identity_server.yaml deleted file mode 100644 index 75d2409f..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.identity_server.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml -description: |- - Persists the user's preferred identity server, or preference to not use - an identity server at all, in the user's account data. -properties: - content: - type: object - properties: - base_url: - type: string - description: |- - The URL of the identity server the user prefers to use, or ``null`` - if the user does not want to use an identity server. This value is - similar in structure to the ``base_url`` for identity servers in the - ``.well-known/matrix/client`` schema. - type: - enum: - - m.identity_server - type: string -title: Identity Server Preference -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.ignored_user_list.yaml b/data/api/client-server/definitions/event-schemas/schema/m.ignored_user_list.yaml deleted file mode 100644 index 7f7a6604..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.ignored_user_list.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml -description: |- - A map of users which are considered ignored is kept in ``account_data`` - in an event type of ``m.ignored_user_list``. -properties: - content: - type: object - properties: - ignored_users: - type: object - title: "Ignored users" - description: "The map of users to ignore" - patternProperties: - "^@": - type: "object" - title: "Ignored User" - description: "An empty object for future enhancement" - x-pattern: "$USER_ID" - required: - - ignored_users - type: - enum: - - m.ignored_user_list - type: string -title: Ignored User List -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.accept.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.accept.yaml deleted file mode 100644 index 3f579cc4..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.accept.yaml +++ /dev/null @@ -1,59 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Accepts a previously sent ``m.key.verification.start`` message. Typically sent as a - `to-device`_ event. -properties: - content: - properties: - transaction_id: - type: string - description: |- - An opaque identifier for the verification process. Must be the same as - the one used for the ``m.key.verification.start`` message. - key_agreement_protocol: - type: string - description: |- - The key agreement protocol the device is choosing to use, out of the - options in the ``m.key.verification.start`` message. - hash: - type: string - description: |- - The hash method the device is choosing to use, out of the options in - the ``m.key.verification.start`` message. - message_authentication_code: - type: string - description: |- - The message authentication code the device is choosing to use, out of - the options in the ``m.key.verification.start`` message. - short_authentication_string: - type: array - description: |- - The SAS methods both devices involved in the verification process - understand. Must be a subset of the options in the ``m.key.verification.start`` - message. - items: - type: string - enum: ["decimal", "emoji"] - commitment: - type: string - description: |- - The hash (encoded as unpadded base64) of the concatenation of the device's - ephemeral public key (encoded as unpadded base64) and the canonical JSON - representation of the ``m.key.verification.start`` message. - required: - - transaction_id - - method - - key_agreement_protocol - - hash - - message_authentication_code - - short_authentication_string - - commitment - type: object - type: - enum: - - m.key.verification.accept - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.cancel.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.cancel.yaml deleted file mode 100644 index 36ffc9ea..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.cancel.yaml +++ /dev/null @@ -1,70 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Cancels a key verification process/request. Typically sent as a `to-device`_ event. -properties: - content: - properties: - transaction_id: - type: string - description: |- - The opaque identifier for the verification process/request. - reason: - type: string - description: |- - A human readable description of the ``code``. The client should only rely on this - string if it does not understand the ``code``. - code: - type: string - # Note: this is not an enum because we go into detail about the different - # error codes. If we made this an enum, we'd be repeating information. - # Also, we can't put a real bulleted list in here because the HTML2RST parser - # cuts the text at weird points, breaking the list completely. - description: |- - The error code for why the process/request was cancelled by the user. Error - codes should use the Java package naming convention if not in the following - list: - - ``m.user``: The user cancelled the verification. - - ``m.timeout``: The verification process timed out. Verification processes - can define their own timeout parameters. - - ``m.unknown_transaction``: The device does not know about the given transaction - ID. - - ``m.unknown_method``: The device does not know how to handle the requested - method. This should be sent for ``m.key.verification.start`` messages and - messages defined by individual verification processes. - - ``m.unexpected_message``: The device received an unexpected message. Typically - raised when one of the parties is handling the verification out of order. - - ``m.key_mismatch``: The key was not verified. - - ``m.user_mismatch``: The expected user did not match the user verified. - - ``m.invalid_message``: The message received was invalid. - - ``m.accepted``: A ``m.key.verification.request`` was accepted by a different - device. The device receiving this error can ignore the verification request. - - Clients should be careful to avoid error loops. For example, if a device sends - an incorrect message and the client returns ``m.invalid_message`` to which it - gets an unexpected response with ``m.unexpected_message``, the client should not - respond again with ``m.unexpected_message`` to avoid the other device potentially - sending another error response. - - .. The above blank line is important for RST. - required: - - transaction_id - - code - - reason - type: object - type: - enum: - - m.key.verification.cancel - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.key.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.key.yaml deleted file mode 100644 index 6dc4954b..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.key.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Sends the ephemeral public key for a device to the partner device. Typically sent as a - `to-device`_ event. -properties: - content: - properties: - transaction_id: - type: string - description: |- - An opaque identifier for the verification process. Must be the same as - the one used for the ``m.key.verification.start`` message. - key: - type: string - description: |- - The device's ephemeral public key, encoded as unpadded base64. - required: - - transaction_id - - key - type: object - type: - enum: - - m.key.verification.key - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.mac.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.mac.yaml deleted file mode 100644 index 769ebe15..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.mac.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Sends the MAC of a device's key to the partner device. Typically sent as a - `to-device`_ event. -properties: - content: - properties: - transaction_id: - type: string - description: |- - An opaque identifier for the verification process. Must be the same as - the one used for the ``m.key.verification.start`` message. - mac: - type: object - description: |- - A map of the key ID to the MAC of the key, using the algorithm in the - verification process. The MAC is encoded as unpadded base64. - additionalProperties: - type: string - description: The key's MAC, encoded as unpadded base64. - keys: - type: string - description: |- - The MAC of the comma-separated, sorted, list of key IDs given in the ``mac`` - property, encoded as unpadded base64. - required: - - transaction_id - - mac - - keys - type: object - type: - enum: - - m.key.verification.mac - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.request.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.request.yaml deleted file mode 100644 index c9efa14e..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.request.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Requests a key verification with another user's devices. Typically sent as a - `to-device`_ event. -properties: - content: - properties: - from_device: - type: string - description: |- - The device ID which is initiating the request. - transaction_id: - type: string - description: |- - An opaque identifier for the verification request. Must be unique - with respect to the devices involved. - methods: - type: array - description: |- - The verification methods supported by the sender. - items: - type: string - timestamp: - type: integer - format: int64 - description: |- - The POSIX timestamp in milliseconds for when the request was made. If - the request is in the future by more than 5 minutes or more than 10 - minutes in the past, the message should be ignored by the receiver. - required: - - from_device - - transaction_id - - methods - - timestamp - type: object - type: - enum: - - m.key.verification.request - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start$m.sas.v1.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start$m.sas.v1.yaml deleted file mode 100644 index f4deb3c8..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start$m.sas.v1.yaml +++ /dev/null @@ -1,69 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Begins a SAS key verification process using the ``m.sas.v1`` method. Typically sent as a `to-device`_ event. -properties: - content: - properties: - from_device: - type: string - description: |- - The device ID which is initiating the process. - transaction_id: - type: string - description: |- - An opaque identifier for the verification process. Must be unique - with respect to the devices involved. Must be the same as the - ``transaction_id`` given in the ``m.key.verification.request`` - if this process is originating from a request. - method: - type: string - enum: ["m.sas.v1"] - description: |- - The verification method to use. - key_agreement_protocols: - type: array - description: |- - The key agreement protocols the sending device understands. Should - include at least ``curve25519-hkdf-sha256``. - items: - type: string - hashes: - type: array - description: |- - The hash methods the sending device understands. Must include at least - ``sha256``. - items: - type: string - message_authentication_codes: - type: array - description: |- - The message authentication codes that the sending device understands. - Must include at least ``hkdf-hmac-sha256``. - items: - type: string - short_authentication_string: - type: array - description: |- - The SAS methods the sending device (and the sending device's user) - understands. Must include at least ``decimal``. Optionally can include - ``emoji``. - items: - type: string - enum: ["decimal", "emoji"] - required: - - from_device - - transaction_id - - method - - key_agreement_protocols - - hashes - - message_authentication_codes - - short_authentication_string - type: object - type: - enum: - - m.key.verification.start - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start.yaml b/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start.yaml deleted file mode 100644 index faa7a96a..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.key.verification.start.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - Begins a key verification process. Typically sent as a `to-device`_ event. The ``method`` - field determines the type of verification. The fields in the event will differ depending - on the ``method``. This definition includes fields that are in common among all variants. -properties: - content: - properties: - from_device: - type: string - description: |- - The device ID which is initiating the process. - transaction_id: - type: string - description: |- - An opaque identifier for the verification process. Must be unique - with respect to the devices involved. Must be the same as the - ``transaction_id`` given in the ``m.key.verification.request`` - if this process is originating from a request. - method: - type: string - description: |- - The verification method to use. - next_method: - type: string - description: |- - Optional method to use to verify the other user's key with. Applicable - when the ``method`` chosen only verifies one user's key. This field will - never be present if the ``method`` verifies keys both ways. - required: - - from_device - - transaction_id - - method - type: object - type: - enum: - - m.key.verification.start - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.room.yaml b/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.room.yaml deleted file mode 100644 index ff81543e..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.room.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: A moderation policy rule which affects room IDs and room aliases. -properties: - content: - $ref: "../moderation_policy_rule.yaml" - state_key: - description: An arbitrary string decided upon by the sender. - type: string - type: - enum: - - m.policy.rule.room - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.server.yaml b/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.server.yaml deleted file mode 100644 index ca37e8ff..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.server.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: A moderation policy rule which affects servers. -properties: - content: - $ref: "../moderation_policy_rule.yaml" - state_key: - description: An arbitrary string decided upon by the sender. - type: string - type: - enum: - - m.policy.rule.server - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.user.yaml b/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.user.yaml deleted file mode 100644 index 4fa65ad8..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.policy.rule.user.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: A moderation policy rule which affects users. -properties: - content: - $ref: "../moderation_policy_rule.yaml" - state_key: - description: An arbitrary string decided upon by the sender. - type: string - type: - enum: - - m.policy.rule.user - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.presence.yaml b/data/api/client-server/definitions/event-schemas/schema/m.presence.yaml deleted file mode 100644 index 540fc7a0..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.presence.yaml +++ /dev/null @@ -1,49 +0,0 @@ -{ - "type": "object", - "title": "Presence Event", - "description": "Informs the client of a user's presence state change.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "avatar_url": { - "type": "string", - "description": "The current avatar URL for this user, if any." - }, - "displayname": { - "type": "string", - "description": "The current display name for this user, if any." - }, - "last_active_ago": { - "type": "number", - "description": "The last time since this used performed some action, in milliseconds." - }, - "presence": { - "type": "string", - "description": "The presence state for this user.", - "enum": ["online", "offline", "unavailable"] - }, - "currently_active": { - "type": boolean, - "description": "Whether the user is currently active" - }, - "status_msg": { - "type": "string", - "description": "An optional description to accompany the presence." - } - }, - "required": ["presence"] - }, - "type": { - "type": "string", - "enum": ["m.presence"] - }, - "sender": { - "type": "string" - } - }, - "required": ["sender", "type", "content"] -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.push_rules.yaml b/data/api/client-server/definitions/event-schemas/schema/m.push_rules.yaml deleted file mode 100644 index 6fde9e14..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.push_rules.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml -description: Describes all push rules for this user. -properties: - content: - properties: - global: - type: object - title: Ruleset - description: The global ruleset - allOf: - - $ref: ../../api/client-server/definitions/push_ruleset.yaml - type: object - type: - enum: - - m.push_rules - type: string -title: Push rules -type: object - diff --git a/data/api/client-server/definitions/event-schemas/schema/m.receipt.yaml b/data/api/client-server/definitions/event-schemas/schema/m.receipt.yaml deleted file mode 100644 index 8594dd7c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.receipt.yaml +++ /dev/null @@ -1,51 +0,0 @@ -{ - "type": "object", - "title": "Receipt Event", - "description": "Informs the client of new receipts.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "content": { - "type": "object", - "patternProperties": { - "^\\$": { - "type": "object", - "x-pattern": "$EVENT_ID", - "title": "Receipts", - "description": "The mapping of event ID to a collection of receipts for this event ID. The event ID is the ID of the event being acknowledged and *not* an ID for the receipt itself.", - "properties": { - "m.read": { - "type": "object", - "title": "Users", - "description": "A collection of users who have sent ``m.read`` receipts for this event.", - "patternProperties": { - "^@": { - "type": "object", - "title": "Receipt", - "description": "The mapping of user ID to receipt. The user ID is the entity who sent this receipt.", - "x-pattern": "$USER_ID", - "properties": { - "ts": { - "type": "number", - "description": "The timestamp the receipt was sent at." - } - } - } - } - } - } - } - }, - "additionalProperties": false - }, - "type": { - "type": "string", - "enum": ["m.receipt"] - }, - "room_id": { - "type": "string" - } - }, - "required": ["room_id", "type", "content"] -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.avatar.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.avatar.yaml deleted file mode 100644 index a0ecb21c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.avatar.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: A picture that is associated with the room. This can be displayed alongside the room information. -properties: - content: - properties: - info: - allOf: - - $ref: core-event-schema/msgtype_infos/image_info.yaml - description: Metadata about the image referred to in ``url``. - url: - description: The URL to the image. - type: string - required: - - url - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.avatar - type: string -title: RoomAvatar -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.canonical_alias.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.canonical_alias.yaml deleted file mode 100644 index f227871a..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.canonical_alias.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: |- - This event is used to inform the room about which alias should be - considered the canonical one, and which other aliases point to the room. - This could be for display purposes or as suggestion to users which alias - to use to advertise and access the room. -properties: - content: - properties: - alias: - description: | - The canonical alias for the room. If not present, null, or empty the - room should be considered to have no canonical alias. - type: string - alt_aliases: - description: | - Alternative aliases the room advertises. This list can have aliases - despite the ``alias`` field being null, empty, or otherwise not present. - type: array - items: - type: string - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.canonical_alias - type: string -title: Informs the room as to which alias is the canonical one. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.create.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.create.yaml deleted file mode 100644 index a6fe331e..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.create.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: This is the first event in a room and cannot be changed. It acts as the root of all other events. -properties: - content: - properties: - creator: - description: The ``user_id`` of the room creator. This is set by the homeserver. - type: string - m.federate: - description: Whether users on other servers can join this room. Defaults to ``true`` if key does not exist. - type: boolean - room_version: - description: The version of the room. Defaults to ``"1"`` if the key does not exist. - type: string - predecessor: - description: A reference to the room this room replaces, if the previous room was upgraded. - type: object - title: Previous Room - properties: - room_id: - type: string - description: The ID of the old room. - event_id: - type: string - description: The event ID of the last known event in the old room. - required: [room_id, event_id] - required: - - creator - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.create - type: string -title: The first event in the room. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.encrypted.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.encrypted.yaml deleted file mode 100644 index 44b09c3f..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.encrypted.yaml +++ /dev/null @@ -1,61 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used when sending encrypted events. It can be used either - within a room (in which case it will have all of the `Room Event fields`_), or - as a `to-device`_ event. - -properties: - content: - properties: - algorithm: - type: string - enum: - - m.olm.v1.curve25519-aes-sha2 - - m.megolm.v1.aes-sha2 - description: |- - The encryption algorithm used to encrypt this event. The - value of this field determines which other properties will be - present. - ciphertext: - oneOf: - - type: string - - type: object - additionalProperties: - type: object - title: CiphertextInfo - properties: - body: - type: string - description: The encrypted payload. - type: - type: integer - description: The Olm message type. - description: |- - The encrypted content of the event. Either the encrypted payload - itself, in the case of a Megolm event, or a map from the recipient - Curve25519 identity key to ciphertext information, in the case of an - Olm event. For more details, see `Messaging Algorithms`_. - sender_key: - type: string - description: The Curve25519 key of the sender. - device_id: - type: string - description: The ID of the sending device. Required with Megolm. - session_id: - type: string - description: |- - The ID of the session used to encrypt the message. Required with - Megolm. - required: - - algorithm - - sender_key - - ciphertext - type: object - type: - enum: - - m.room.encrypted - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.encryption.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.encryption.yaml deleted file mode 100644 index d7c4d429..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.encryption.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: Defines how messages sent in this room should be encrypted. -properties: - content: - properties: - algorithm: - type: string - enum: - - "m.megolm.v1.aes-sha2" - description: |- - The encryption algorithm to be used to encrypt messages sent in this - room. - rotation_period_ms: - type: integer - description: |- - How long the session should be used before changing it. ``604800000`` - (a week) is the recommended default. - rotation_period_msgs: - type: integer - description: |- - How many messages should be sent before changing the session. ``100`` is the - recommended default. - required: - - algorithm - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.encryption - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.guest_access.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.guest_access.yaml deleted file mode 100644 index f886dfe5..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.guest_access.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: 'This event controls whether guest users are allowed to join rooms. If this event is absent, servers should act as if it is present and has the guest_access value "forbidden".' -properties: - content: - properties: - guest_access: - description: Whether guests can join the room. - enum: - - can_join - - forbidden - type: string - required: - - guest_access - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.guest_access - type: string -title: Controls whether guest users are allowed to join rooms. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.history_visibility.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.history_visibility.yaml deleted file mode 100644 index 27ec67c7..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.history_visibility.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: This event controls whether a user can see the events that happened in a room from before they joined. -properties: - content: - properties: - history_visibility: - description: Who can see the room history. - enum: - - invited - - joined - - shared - - world_readable - type: string - required: - - history_visibility - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.history_visibility - type: string -title: Controls visibility of history. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.join_rules.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.join_rules.yaml deleted file mode 100644 index b8e8501c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.join_rules.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: 'A room may be ``public`` meaning anyone can join the room without any prior action. Alternatively, it can be ``invite`` meaning that a user who wishes to join the room must first receive an invite to the room from someone already inside of the room. Currently, ``knock`` and ``private`` are reserved keywords which are not implemented.' -properties: - content: - properties: - join_rule: - description: The type of rules used for users wishing to join this room. - enum: - - public - - knock - - invite - - private - type: string - required: - - join_rule - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.join_rules - type: string -title: Describes how users are allowed to join the room. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.member.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.member.yaml deleted file mode 100644 index 172cdd30..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.member.yaml +++ /dev/null @@ -1,137 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: |- - Adjusts the membership state for a user in a room. It is preferable to use the membership APIs (``/rooms//invite`` etc) when performing membership actions rather than adjusting the state directly as there are a restricted set of valid transformations. For example, user A cannot force user B to join a room, and trying to force this state change directly will fail. - - The following membership states are specified: - - - ``invite`` - The user has been invited to join a room, but has not yet joined it. They may not participate in the room until they join. - - - ``join`` - The user has joined the room (possibly after accepting an invite), and may participate in it. - - - ``leave`` - The user was once joined to the room, but has since left (possibly by choice, or possibly by being kicked). - - - ``ban`` - The user has been banned from the room, and is no longer allowed to join it until they are un-banned from the room (by having their membership state set to a value other than ``ban``). - - - ``knock`` - This is a reserved word, which currently has no meaning. - - The ``third_party_invite`` property will be set if this invite is an ``invite`` event and is the successor of an ``m.room.third_party_invite`` event, and absent otherwise. - - This event may also include an ``invite_room_state`` key inside the event's ``unsigned`` data. - If present, this contains an array of ``StrippedState`` Events. These events provide information - on a subset of state events such as the room name. - - The user for which a membership applies is represented by the ``state_key``. Under some conditions, - the ``sender`` and ``state_key`` may not match - this may be interpreted as the ``sender`` affecting - the membership state of the ``state_key`` user. - - The ``membership`` for a given user can change over time. The table below represents the various changes - over time and how clients and servers must interpret those changes. Previous membership can be retrieved - from the ``prev_content`` object on an event. If not present, the user's previous membership must be assumed - as ``leave``. - - .. TODO: Improve how this table is written? We use a csv-table to get around vertical header restrictions. - - .. csv-table:: - :header-rows: 1 - :stub-columns: 1 - - "","to ``invite``","to ``join``","to ``leave``","to ``ban``","to ``knock``" - "from ``invite``","No change.","User joined the room.","If the ``state_key`` is the same as the ``sender``, the user rejected the invite. Otherwise, the ``state_key`` user had their invite revoked.","User was banned.","Not implemented." - "from ``join``","Must never happen.","``displayname`` or ``avatar_url`` changed.","If the ``state_key`` is the same as the ``sender``, the user left. Otherwise, the ``state_key`` user was kicked.","User was kicked and banned.","Not implemented." - "from ``leave``","New invitation sent.","User joined.","No change.","User was banned.","Not implemented." - "from ``ban``","Must never happen.","Must never happen.","User was unbanned.","No change.","Not implemented." - "from ``knock``","Not implemented.","Not implemented.","Not implemented.","Not implemented.","Not implemented." - -properties: - content: - properties: - avatar_url: - description: 'The avatar URL for this user, if any.' - type: string - displayname: - description: 'The display name for this user, if any.' - type: - - "string" - - "null" - membership: - description: The membership state of the user. - enum: - - invite - - join - - knock - - leave - - ban - type: string - is_direct: - description: Flag indicating if the room containing this event was created with the intention of being a direct chat. See `Direct Messaging`_. - type: boolean - reason: - type: string - description: |- - Optional user-supplied text for why their membership has changed. For kicks and bans, this is typically the reason for the kick or ban. - For other membership changes, this is a way for the user to communicate their intent without having to send a message to the room, such - as in a case where Bob rejects an invite from Alice about an upcoming concert, but can't make it that day. - - Clients are not recommended to show this reason to users when receiving an invite due to the potential for spam and abuse. Hiding the - reason behind a button or other component is recommended. - third_party_invite: - properties: - display_name: - description: A name which can be displayed to represent the user instead of their third party identifier - type: string - signed: - description: 'A block of content which has been signed, which servers can use to verify the event. Clients should ignore this.' - properties: - mxid: - description: The invited matrix user ID. Must be equal to the user_id property of the event. - type: string - signatures: - description: 'A single signature from the verifying server, in the format specified by the Signing Events section of the server-server API.' - title: Signatures - type: object - additionalProperties: - type: object - additionalProperties: - type: string - token: - description: The token property of the containing third_party_invite object. - type: string - required: - - mxid - - signatures - - token - title: signed - type: object - required: - - display_name - - signed - title: Invite - type: object - required: - - membership - title: EventContent - type: object - state_key: - description: |- - The ``user_id`` this membership event relates to. In all cases except for when ``membership`` is - ``join``, the user ID sending the event does not need to match the user ID in the ``state_key``, - unlike other events. Regular authorisation rules still apply. - type: string - type: - enum: - - m.room.member - type: string - unsigned: - allOf: - - $ref: "core-event-schema/unsigned_prop.yaml" - - type: object - properties: - invite_room_state: - description: 'A subset of the state of the room at the time of the invite, if ``membership`` is ``invite``. Note that this state is informational, and SHOULD NOT be trusted; once the client has joined the room, it SHOULD fetch the live state from the server and discard the invite_room_state. Also, clients must not rely on any particular state being present here; they SHOULD behave properly (with possibly a degraded but not a broken experience) in the absence of any particular events here. If they are set on the room, at least the state for ``m.room.avatar``, ``m.room.canonical_alias``, ``m.room.join_rules``, and ``m.room.name`` SHOULD be included.' - items: - $ref: "stripped_state.yaml" - type: array -title: The current membership state of a user in the room. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.audio.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.audio.yaml deleted file mode 100644 index fb049fc9..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.audio.yaml +++ /dev/null @@ -1,49 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a single audio clip. -properties: - content: - properties: - body: - description: "A description of the audio e.g. 'Bee Gees - Stayin' Alive', or some kind of content description for accessibility e.g. 'audio attachment'." - type: string - info: - description: Metadata for the audio clip referred to in ``url``. - properties: - duration: - description: The duration of the audio in milliseconds. - type: integer - mimetype: - description: The mimetype of the audio e.g. ``audio/aac``. - type: string - size: - description: The size of the audio clip in bytes. - type: integer - title: AudioInfo - type: object - msgtype: - enum: - - m.audio - type: string - url: - description: |- - Required if the file is unencrypted. The URL (typically `MXC URI`_) - to the audio clip. - type: string - file: - description: |- - Required if the file is encrypted. Information on the encrypted - file, as specified in |encrypted_files|_. - title: EncryptedFile - type: object - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: AudioMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.emote.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.emote.yaml deleted file mode 100644 index f67a184b..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.emote.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: "This message is similar to ``m.text`` except that the sender is 'performing' the action contained in the ``body`` key, similar to ``/me`` in IRC. This message should be prefixed by the name of the sender. This message could also be represented in a different colour to distinguish it from regular ``m.text`` messages." -properties: - content: - properties: - body: - description: The emote action to perform. - type: string - msgtype: - enum: - - m.emote - type: string - format: - description: |- - The format used in the ``formatted_body``. Currently only - ``org.matrix.custom.html`` is supported. - type: string - formatted_body: - description: |- - The formatted version of the ``body``. This is required if ``format`` - is specified. - type: string - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: EmoteMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.file.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.file.yaml deleted file mode 100644 index 54a999ec..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.file.yaml +++ /dev/null @@ -1,64 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a generic file. -properties: - content: - properties: - body: - description: A human-readable description of the file. This is recommended to be the filename of the original upload. - type: string - filename: - description: The original filename of the uploaded file. - type: string - info: - description: Information about the file referred to in ``url``. - properties: - mimetype: - description: The mimetype of the file e.g. ``application/msword``. - type: string - size: - description: The size of the file in bytes. - type: integer - thumbnail_url: - description: |- - The URL to the thumbnail of the file. Only present if the - thumbnail is unencrypted. - type: string - thumbnail_file: - description: |- - Information on the encrypted thumbnail file, as specified in - |encrypted_files|_. Only present if the thumbnail is encrypted. - title: EncryptedFile - type: object - thumbnail_info: - allOf: - - $ref: core-event-schema/msgtype_infos/thumbnail_info.yaml - description: Metadata about the image referred to in ``thumbnail_url``. - title: FileInfo - type: object - msgtype: - enum: - - m.file - type: string - url: - description: |- - Required if the file is unencrypted. The URL (typically `MXC URI`_) - to the file. - type: string - file: - description: |- - Required if the file is encrypted. Information on the encrypted - file, as specified in |encrypted_files|_. - title: EncryptedFile - type: object - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: FileMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.image.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.image.yaml deleted file mode 100644 index 8944ce96..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.image.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a single image and an optional thumbnail. -properties: - content: - properties: - body: - description: "A textual representation of the image. This could be the alt text of the image, the filename of the image, or some kind of content description for accessibility e.g. 'image attachment'." - type: string - info: - allOf: - - $ref: core-event-schema/msgtype_infos/image_info.yaml - description: Metadata about the image referred to in ``url``. - msgtype: - enum: - - m.image - type: string - url: - description: |- - Required if the file is unencrypted. The URL (typically `MXC URI`_) - to the image. - type: string - file: - description: |- - Required if the file is encrypted. Information on the encrypted - file, as specified in |encrypted_files|_. - title: EncryptedFile - type: object - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: ImageMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.location.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.location.yaml deleted file mode 100644 index ffc4edce..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.location.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a real-world location. -properties: - content: - properties: - body: - description: "A description of the location e.g. 'Big Ben, London, UK', or some kind of content description for accessibility e.g. 'location attachment'." - type: string - geo_uri: - description: A geo URI representing this location. - type: string - msgtype: - enum: - - m.location - type: string - info: - type: object - properties: - thumbnail_url: - description: |- - The URL to the thumbnail of the file. Only present if the - thumbnail is unencrypted. - type: string - thumbnail_file: - description: |- - Information on the encrypted thumbnail file, as specified in - |encrypted_files|_. Only present if the thumbnail is encrypted. - title: EncryptedFile - type: object - thumbnail_info: - allOf: - - $ref: core-event-schema/msgtype_infos/thumbnail_info.yaml - description: Metadata about the image referred to in ``thumbnail_url``. - title: LocationInfo - required: - - msgtype - - body - - geo_uri - type: object - type: - enum: - - m.room.message - type: string -title: LocationMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.notice.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.notice.yaml deleted file mode 100644 index 19c4f985..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.notice.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: 'The ``m.notice`` type is primarily intended for responses from automated clients. An ``m.notice`` message must be treated the same way as a regular ``m.text`` message with two exceptions. Firstly, clients should present ``m.notice`` messages to users in a distinct manner, and secondly, ``m.notice`` messages must never be automatically responded to. This helps to prevent infinite-loop situations where two automated clients continuously exchange messages.' -properties: - content: - properties: - body: - description: The notice text to send. - type: string - msgtype: - enum: - - m.notice - type: string - format: - description: |- - The format used in the ``formatted_body``. Currently only - ``org.matrix.custom.html`` is supported. - type: string - formatted_body: - description: |- - The formatted version of the ``body``. This is required if ``format`` - is specified. - type: string - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: NoticeMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.server_notice.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.server_notice.yaml deleted file mode 100644 index f1848821..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.server_notice.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: Represents a server notice for a user. -properties: - content: - properties: - body: - description: A human-readable description of the notice. - type: string - msgtype: - enum: - - m.server_notice - type: string - server_notice_type: - description: |- - The type of notice being represented. - type: string - admin_contact: - description: |- - A URI giving a contact method for the server administrator. Required if the - notice type is ``m.server_notice.usage_limit_reached``. - type: string - limit_type: - description: |- - The kind of usage limit the server has exceeded. Required if the notice type is - ``m.server_notice.usage_limit_reached``. - type: string - required: - - msgtype - - body - - server_notice_type - type: object - type: - enum: - - m.room.message - type: string -title: ServerNoticeMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.text.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.text.yaml deleted file mode 100644 index b481bcea..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.text.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message is the most basic message and is used to represent text. -properties: - content: - properties: - body: - description: The body of the message. - type: string - msgtype: - enum: - - m.text - type: string - format: - description: |- - The format used in the ``formatted_body``. Currently only - ``org.matrix.custom.html`` is supported. - type: string - formatted_body: - description: |- - The formatted version of the ``body``. This is required if ``format`` - is specified. - type: string - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: TextMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.video.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.video.yaml deleted file mode 100644 index 1a3c3e40..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message$m.video.yaml +++ /dev/null @@ -1,70 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a single video clip. -properties: - content: - properties: - body: - description: "A description of the video e.g. 'Gangnam style', or some kind of content description for accessibility e.g. 'video attachment'." - type: string - info: - description: Metadata about the video clip referred to in ``url``. - properties: - duration: - description: The duration of the video in milliseconds. - type: integer - h: - description: The height of the video in pixels. - type: integer - w: - description: The width of the video in pixels. - type: integer - mimetype: - description: The mimetype of the video e.g. ``video/mp4``. - type: string - size: - description: The size of the video in bytes. - type: integer - thumbnail_url: - description: |- - The URL (typically `MXC URI`_) to an image thumbnail of - the video clip. Only present if the thumbnail is unencrypted. - type: string - thumbnail_file: - description: |- - Information on the encrypted thumbnail file, as specified in - |encrypted_files|_. Only present if the thumbnail is encrypted. - title: EncryptedFile - type: object - thumbnail_info: - allOf: - - $ref: core-event-schema/msgtype_infos/thumbnail_info.yaml - description: Metadata about the image referred to in ``thumbnail_url``. - title: VideoInfo - type: object - msgtype: - enum: - - m.video - type: string - url: - description: |- - Required if the file is unencrypted. The URL (typically `MXC URI`_) - to the video clip. - type: string - file: - description: |- - Required if the file is encrypted. Information on the encrypted - file, as specified in |encrypted_files|_. - title: EncryptedFile - type: object - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: VideoMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message.feedback.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message.feedback.yaml deleted file mode 100644 index fa3390fa..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message.feedback.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: '**NB: Usage of this event is discouraged in favour of the** `receipts module`_. **Most clients will not recognise this event.** Feedback events are events sent to acknowledge a message in some way. There are two supported acknowledgements: ``delivered`` (sent when the event has been received) and ``read`` (sent when the event has been observed by the end-user). The ``target_event_id`` should reference the ``m.room.message`` event being acknowledged.' -properties: - content: - properties: - target_event_id: - description: The event that this feedback is related to. - type: string - type: - description: The type of feedback. - enum: - - delivered - - read - type: string - required: - - type - - target_event_id - type: object - type: - enum: - - m.room.message.feedback - type: string -title: MessageFeedback -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.message.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.message.yaml deleted file mode 100644 index 45025c99..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.message.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: 'This event is used when sending messages in a room. Messages are not limited to be text. The ``msgtype`` key outlines the type of message, e.g. text, audio, image, video, etc. The ``body`` key is text and MUST be used with every kind of ``msgtype`` as a fallback mechanism for when a client cannot render a message. This allows clients to display *something* even if it is just plain text.' -properties: - content: - properties: - body: - description: The textual representation of this message. - type: string - msgtype: - description: 'The type of message, e.g. ``m.image``, ``m.text``' - type: string - required: - - msgtype - - body - type: object - type: - enum: - - m.room.message - type: string -title: Message -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.name.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.name.yaml deleted file mode 100644 index 3e3d15ac..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.name.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: |- - A room has an opaque room ID which is not human-friendly to read. A room - alias is human-friendly, but not all rooms have room aliases. The room name - is a human-friendly string designed to be displayed to the end-user. The - room name is not unique, as multiple rooms can have the same room name set. - - A room with an ``m.room.name`` event with an absent, null, or empty - ``name`` field should be treated the same as a room with no ``m.room.name`` - event. - - An event of this type is automatically created when creating a room using - ``/createRoom`` with the ``name`` key. -properties: - content: - properties: - name: - description: The name of the room. This MUST NOT exceed 255 bytes. - type: string - required: - - name - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.name - type: string -title: RoomName -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.pinned_events.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.pinned_events.yaml deleted file mode 100644 index 7b4a0d61..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.pinned_events.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: This event is used to "pin" particular events in a room for other participants to review later. The order of the pinned events is guaranteed and based upon the order supplied in the event. Clients should be aware that the current user may not be able to see some of the events pinned due to visibility settings in the room. Clients are responsible for determining if a particular event in the pinned list is displayable, and have the option to not display it if it cannot be pinned in the client. -properties: - content: - properties: - pinned: - description: An ordered list of event IDs to pin. - items: - type: string - type: array - required: - - pinned - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.pinned_events - type: string -title: Pinned events in a room -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.power_levels.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.power_levels.yaml deleted file mode 100644 index 8e94bcc0..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.power_levels.yaml +++ /dev/null @@ -1,110 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: |- - This event specifies the minimum level a user must have in order to perform a - certain action. It also specifies the levels of each user in the room. - - If a ``user_id`` is in the ``users`` list, then that ``user_id`` has the - associated power level. Otherwise they have the default level - ``users_default``. If ``users_default`` is not supplied, it is assumed to be - 0. If the room contains no ``m.room.power_levels`` event, the room's creator has - a power level of 100, and all other users have a power level of 0. - - The level required to send a certain event is governed by ``events``, - ``state_default`` and ``events_default``. If an event type is specified in - ``events``, then the user must have at least the level specified in order to - send that event. If the event type is not supplied, it defaults to - ``events_default`` for Message Events and ``state_default`` for State - Events. - - If there is no ``state_default`` in the ``m.room.power_levels`` event, the - ``state_default`` is 50. If there is no ``events_default`` in the - ``m.room.power_levels`` event, the ``events_default`` is 0. If the room - contains no ``m.room.power_levels`` event, *both* the ``state_default`` and - ``events_default`` are 0. - - The power level required to invite a user to the room, kick a user from the - room, ban a user from the room, or redact an event sent by another user, is - defined by ``invite``, ``kick``, ``ban``, and ``redact``, respectively. Each - of these levels defaults to 50 if they are not specified in the - ``m.room.power_levels`` event, or if the room contains no ``m.room.power_levels`` - event. - - .. NOTE:: - - As noted above, in the absence of an ``m.room.power_levels`` event, the - ``state_default`` is 0, and all users are considered to have power level 0. - That means that **any** member of the room can send an - ``m.room.power_levels`` event, changing the permissions in the room. - - Server implementations should therefore ensure that each room has an - ``m.room.power_levels`` event as soon as it is created. See also the - documentation of the ``/createRoom`` API. - -properties: - content: - properties: - ban: - description: The level required to ban a user. Defaults to 50 if unspecified. - type: integer - events: - additionalProperties: - type: integer - description: The level required to send specific event types. This is a mapping from event type to power level required. - title: Event power levels - type: object - events_default: - description: |- - The default level required to send message events. Can be - overridden by the ``events`` key. Defaults to 0 if unspecified. - type: integer - invite: - description: The level required to invite a user. Defaults to 50 if unspecified. - type: integer - kick: - description: The level required to kick a user. Defaults to 50 if unspecified. - type: integer - redact: - description: The level required to redact an event sent by another user. Defaults to 50 if unspecified. - type: integer - state_default: - description: |- - The default level required to send state events. Can be overridden - by the ``events`` key. Defaults to 50 if unspecified. - type: integer - users: - additionalProperties: - type: integer - description: The power levels for specific users. This is a mapping from ``user_id`` to power level for that user. - title: User power levels - type: object - users_default: - description: |- - The default power level for every user in the room, unless their - ``user_id`` is mentioned in the ``users`` key. Defaults to 0 if - unspecified. - type: integer - notifications: - properties: - room: - type: integer - description: The level required to trigger an ``@room`` notification. Defaults to 50 if unspecified. - additionalProperties: - type: integer - description: |- - The power level requirements for specific notification types. - This is a mapping from ``key`` to power level for that notifications key. - title: Notifications - type: object - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.power_levels - type: string -title: Defines the power levels (privileges) of users in the room. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.redaction.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.redaction.yaml deleted file mode 100644 index b66c540c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.redaction.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: 'This event is created by the server to describe which event has been redacted, by whom, and optionally why. The event that has been redacted is specified in the ``redacts`` event level key. Redacting an event means that all keys not required by the protocol are stripped off, allowing messages to be hidden or allowing admins to remove offensive or illegal content.' -properties: - content: - properties: - reason: - description: 'The reason for the redaction, if any.' - type: string - type: object - redacts: - description: The event ID that was redacted. - type: string - type: - enum: - - m.room.redaction - type: string -required: - - redacts -title: Redaction -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.server_acl.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.server_acl.yaml deleted file mode 100644 index 86d83832..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.server_acl.yaml +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: Server ACL -description: |- - An event to indicate which servers are permitted to participate in the - room. Server ACLs may allow or deny groups of hosts. All servers participating - in the room, including those that are denied, are expected to uphold the - server ACL. Servers that do not uphold the ACLs MUST be added to the denied hosts - list in order for the ACLs to remain effective. - - The ``allow`` and ``deny`` lists are lists of globs supporting ``?`` and ``*`` - as wildcards. When comparing against the server ACLs, the suspect server's port - number must not be considered. Therefore ``evil.com``, ``evil.com:8448``, and - ``evil.com:1234`` would all match rules that apply to ``evil.com``, for example. - - The ACLs are applied to servers when they make requests, and are applied in - the following order: - - 1. If there is no ``m.room.server_acl`` event in the room state, allow. - #. If the server name is an IP address (v4 or v6) literal, and ``allow_ip_literals`` - is present and ``false``, deny. - #. If the server name matches an entry in the ``deny`` list, deny. - #. If the server name matches an entry in the ``allow`` list, allow. - #. Otherwise, deny. - - .. Note:: - Server ACLs do not restrict the events relative to the room DAG via authorisation - rules, but instead act purely at the network layer to determine which servers are - allowed to connect and interact with a given room. - - .. WARNING:: - Failing to provide an ``allow`` rule of some kind will prevent **all** - servers from participating in the room, including the sender. This renders - the room unusable. A common allow rule is ``[ "*" ]`` which would still - permit the use of the ``deny`` list without losing the room. - - .. WARNING:: - All compliant servers must implement server ACLs. However, legacy or noncompliant - servers exist which do not uphold ACLs, and these MUST be manually appended to - the denied hosts list when setting an ACL to prevent them from leaking events from - banned servers into a room. Currently, the only way to determine noncompliant hosts is - to check the ``prev_events`` of leaked events, therefore detecting servers which - are not upholding the ACLs. Server versions can also be used to try to detect hosts that - will not uphold the ACLs, although this is not comprehensive. Server ACLs were added - in Synapse v0.32.0, although other server implementations and versions exist in the world. -allOf: - - $ref: core-event-schema/state_event.yaml -type: object -properties: - content: - properties: - allow_ip_literals: - type: boolean - description: |- - True to allow server names that are IP address literals. False to - deny. Defaults to true if missing or otherwise not a boolean. - - This is strongly recommended to be set to ``false`` as servers running - with IP literal names are strongly discouraged in order to require - legitimate homeservers to be backed by a valid registered domain name. - allow: - type: array - description: |- - The server names to allow in the room, excluding any port information. - Wildcards may be used to cover a wider range of hosts, where ``*`` - matches zero or more characters and ``?`` matches exactly one character. - - **This defaults to an empty list when not provided, effectively disallowing - every server.** - items: - type: string - deny: - type: array - description: |- - The server names to disallow in the room, excluding any port information. - Wildcards may be used to cover a wider range of hosts, where ``*`` - matches zero or more characters and ``?`` matches exactly one character. - - This defaults to an empty list when not provided. - items: - type: string - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: ['m.room.server_acl'] - type: string diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.third_party_invite.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.third_party_invite.yaml deleted file mode 100644 index 794bd232..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.third_party_invite.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -$schema: http://json-schema.org/draft-04/schema# -allOf: - - $ref: core-event-schema/state_event.yaml -description: "Acts as an ``m.room.member`` invite event, where there isn't a target user_id to invite. This event contains a token and a public key whose private key must be used to sign the token. Any user who can present that signature may use this invitation to join the target room." -properties: - content: - properties: - display_name: - description: "A user-readable string which represents the user who has been invited. This should not contain the user's third party ID, as otherwise when the invite is accepted it would leak the association between the matrix ID and the third party ID." - type: string - key_validity_url: - description: "A URL which can be fetched, with querystring public_key=public_key, to validate whether the key has been revoked. The URL must return a JSON object containing a boolean property named 'valid'." - type: string - public_key: - description: A base64-encoded ed25519 key with which token must be signed (though a signature from any entry in public_keys is also sufficient). This exists for backwards compatibility. - type: string - public_keys: - description: Keys with which the token may be signed. - items: - properties: - key_validity_url: - description: "An optional URL which can be fetched, with querystring public_key=public_key, to validate whether the key has been revoked. The URL must return a JSON object containing a boolean property named 'valid'. If this URL is absent, the key must be considered valid indefinitely." - type: string - public_key: - description: A base-64 encoded ed25519 key with which token may be signed. - type: string - required: - - public_key - title: PublicKeys - type: object - type: array - required: - - display_name - - key_validity_url - - public_key - type: object - state_key: - description: 'The token, of which a signature must be produced in order to join the room.' - type: string - type: - enum: - - m.room.third_party_invite - type: string -title: 'An invitation to a room issued to a third party identifier, rather than a matrix user ID.' -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.tombstone.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.tombstone.yaml deleted file mode 100644 index 0fd8ba45..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.tombstone.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: 'A state event signifying that a room has been upgraded to a different room version, and that clients should go there.' -properties: - content: - properties: - body: - type: string - description: A server-defined message. - replacement_room: - type: string - description: The new room the client should be visiting. - required: - - replacement_room - - body - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.tombstone - type: string -title: Indication that the room has been upgraded. -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room.topic.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room.topic.yaml deleted file mode 100644 index ad2a3ba2..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room.topic.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/state_event.yaml -description: 'A topic is a short message detailing what is currently being discussed in the room. It can also be used as a way to display extra information about the room, which may not be suitable for the room name. The room topic can also be set when creating a room using ``/createRoom`` with the ``topic`` key.' -properties: - content: - properties: - topic: - description: The topic text. - type: string - required: - - topic - type: object - state_key: - description: A zero-length string. - pattern: '^$' - type: string - type: - enum: - - m.room.topic - type: string -title: Topic -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room_key.withheld.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room_key.withheld.yaml deleted file mode 100644 index a2cddbfa..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room_key.withheld.yaml +++ /dev/null @@ -1,86 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used to indicate that the sender is not sharing room keys - with the recipient. It is sent as a to-device event. - - Possible values for ``code`` include: - - * ``m.blacklisted``: the user/device was blacklisted. - * ``m.unverified``: the user/device was not verified, and the sender is only - sharing keys with verified users/devices. - * ``m.unauthorised``: the user/device is not allowed to have the key. For - example, this could be sent in response to a key request if the user/device - was not in the room when the original message was sent. - * ``m.unavailable``: sent in reply to a key request if the device that the - key is requested from does not have the requested key. - * ``m.no_olm``: an olm session could not be established. - - In most cases, this event refers to a specific room key. The one exception to - this is when the sender is unable to establish an olm session with the - recipient. When this happens, multiple sessions will be affected. In order - to avoid filling the recipient\'s device mailbox, the sender should only send - one ``m.room_key.withheld`` message with no ``room_id`` nor ``session_id`` - set. If the sender retries and fails to create an olm session again in the - future, it should not send another ``m.room_key.withheld`` message with a - ``code`` of ``m.no_olm``, unless another olm session was previously - established successfully. In response to receiving an - ``m.room_key.withheld`` message with a ``code`` of ``m.no_olm``, the - recipient may start an olm session with the sender and send an ``m.dummy`` - message to notify the sender of the new olm session. The recipient may - assume that this ``m.room_key.withheld`` message applies to all encrypted - room messages sent before it receives the message. -properties: - content: - properties: - algorithm: - type: string - enum: ["m.megolm.v1.aes-sha2"] - description: |- - The encryption algorithm for the key that this event is about. - room_id: - type: string - description: |- - Required if ``code`` is not ``m.no_olm``. The room for the key that - this event is about. - session_id: - type: string - description: |- - Required of ``code`` is not ``m.no_olm``. The session ID of the key - that this event is aboutis for. - sender_key: - type: string - description: |- - The unpadded base64-encoded device curve25519 key of the event\'s - sender. - code: - type: string - enum: - - m.blacklisted - - m.unverified - - m.unauthorised - - m.unavailable - - m.no_olm - description: |- - A machine-readable code for why the key was not sent. Codes beginning - with `m.` are reserved for codes defined in the Matrix - specification. Custom codes must use the Java package naming - convention. - reason: - type: string - description: |- - A human-readable reason for why the key was not sent. The receiving - client should only use this string if it does not understand the - ``code``. - required: - - algorithm - - sender_key - - code - type: object - type: - enum: - - m.room_key.withheld - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room_key.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room_key.yaml deleted file mode 100644 index ef8c51c0..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room_key.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used to exchange keys for end-to-end encryption. Typically - it is encrypted as an ``m.room.encrypted`` event, then sent as a `to-device`_ event. -properties: - content: - properties: - algorithm: - type: string - enum: ["m.megolm.v1.aes-sha2"] - description: |- - The encryption algorithm the key in this event is to be used with. - room_id: - type: string - description: The room where the key is used. - session_id: - type: string - description: The ID of the session that the key is for. - session_key: - type: string - description: The key to be exchanged. - required: - - algorithm - - room_id - - session_id - - session_key - type: object - type: - enum: - - m.room_key - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.room_key_request.yaml b/data/api/client-server/definitions/event-schemas/schema/m.room_key_request.yaml deleted file mode 100644 index c08ac0e3..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.room_key_request.yaml +++ /dev/null @@ -1,61 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/event.yaml - -description: |- - This event type is used to request keys for end-to-end encryption. It is sent as an - unencrypted `to-device`_ event. -properties: - content: - properties: - body: - description: |- - Information about the requested key. Required when ``action`` is - ``request``. - properties: - algorithm: - type: string - description: |- - The encryption algorithm the requested key in this event is to be used - with. - room_id: - type: string - description: The room where the key is used. - sender_key: - type: string - description: |- - The Curve25519 key of the device which initiated the session originally. - session_id: - type: string - description: The ID of the session that the key is for. - required: - - algorithm - - room_id - - session_id - - sender_key - type: object - title: RequestedKeyInfo - action: - enum: - - request - - request_cancellation - type: string - requesting_device_id: - description: ID of the device requesting the key. - type: string - request_id: - description: |- - A random string uniquely identifying the request for a key. If the key is - requested multiple times, it should be reused. It should also reused in order - to cancel a request. - type: string - required: - - action - - requesting_device_id - - request_id - type: object - type: - enum: - - m.room_key_request - type: string -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.sticker.yaml b/data/api/client-server/definitions/event-schemas/schema/m.sticker.yaml deleted file mode 100644 index 1dd1173c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.sticker.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -allOf: - - $ref: core-event-schema/room_event.yaml -description: This message represents a single sticker image. -properties: - content: - properties: - body: - description: |- - A textual representation or associated description of the sticker - image. This could be the alt text of the original image, or a message - to accompany and further describe the sticker. - type: string - info: - allOf: - - $ref: core-event-schema/msgtype_infos/image_info.yaml - description: |- - Metadata about the image referred to in ``url`` including a thumbnail - representation. - url: - description: |- - The URL to the sticker image. This must be a valid ``mxc://`` URI. - type: string - required: - - body - - info - - url - type: object - type: - enum: - - m.sticker - type: string -title: StickerMessage -type: object diff --git a/data/api/client-server/definitions/event-schemas/schema/m.tag.yaml b/data/api/client-server/definitions/event-schemas/schema/m.tag.yaml deleted file mode 100644 index 8da093bd..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.tag.yaml +++ /dev/null @@ -1,36 +0,0 @@ -{ - "type": "object", - "title": "Tag Event", - "description": "Informs the client of tags on a room.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "type": { - "type": "string", - "enum": ["m.tag"] - }, - "content": { - "type": "object", - "properties": { - "tags": { - "type": "object", - "description": "The tags on the room and their contents.", - "additionalProperties": { - "title": "Tag", - "type": "object", - "properties": { - "order": { - "type": "number", - "format": "float", - "description": - "A number in a range ``[0,1]`` describing a relative position of the room under the given tag." - } - } - } - } - } - } - }, - "required": ["type", "content"] -} diff --git a/data/api/client-server/definitions/event-schemas/schema/m.typing.yaml b/data/api/client-server/definitions/event-schemas/schema/m.typing.yaml deleted file mode 100644 index 705b3b6c..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/m.typing.yaml +++ /dev/null @@ -1,31 +0,0 @@ -{ - "type": "object", - "title": "Typing Event", - "description": "Informs the client of the list of users currently typing.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "content": { - "type": "object", - "properties": { - "user_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of user IDs typing in this room, if any." - } - }, - "required": ["user_ids"] - }, - "type": { - "type": "string", - "enum": ["m.typing"] - }, - "room_id": { - "type": "string" - } - }, - "required": ["type", "room_id", "content"] -} diff --git a/data/api/client-server/definitions/event-schemas/schema/stripped_state.yaml b/data/api/client-server/definitions/event-schemas/schema/stripped_state.yaml deleted file mode 100644 index ec591bf1..00000000 --- a/data/api/client-server/definitions/event-schemas/schema/stripped_state.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2019 The Matrix.org Foundation C.I.C. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Note: this, and the example, are in the `event-schemas` directory because -# the CS API uses a symlink. In order for the `m.room.member` event to -# reference this, we'd need to use relative pathing. The symlink makes this -# difficult because the schema would be at two different locations, with -# different relative pathing. - -title: StrippedState -type: object -description: |- - A stripped down state event, with only the ``type``, ``state_key``, - ``sender``, and ``content`` keys. -properties: - content: - description: The ``content`` for the event. - title: EventContent - type: object - state_key: - description: The ``state_key`` for the event. - type: string - type: - description: The ``type`` for the event. - type: string - sender: - description: The ``sender`` for the event. - type: string -required: - - type - - state_key - - content - - sender diff --git a/data/api/client-server/definitions/event_batch.yaml b/data/api/client-server/definitions/event_batch.yaml index d169c355..1694652c 100644 --- a/data/api/client-server/definitions/event_batch.yaml +++ b/data/api/client-server/definitions/event_batch.yaml @@ -17,7 +17,7 @@ properties: description: List of events. items: allOf: - - $ref: event-schemas/schema/core-event-schema/event.yaml + - $ref: ../../../event-schemas/schema/core-event-schema/event.yaml type: object type: array type: object diff --git a/data/api/client-server/definitions/room_event_batch.yaml b/data/api/client-server/definitions/room_event_batch.yaml index 7367198f..45bcb423 100644 --- a/data/api/client-server/definitions/room_event_batch.yaml +++ b/data/api/client-server/definitions/room_event_batch.yaml @@ -16,7 +16,7 @@ properties: description: List of events. items: allOf: - - $ref: event-schemas/schema/core-event-schema/sync_room_event.yaml + - $ref: ../../../event-schemas/schema/core-event-schema/sync_room_event.yaml type: object required: - event_id diff --git a/data/api/client-server/definitions/state_event_batch.yaml b/data/api/client-server/definitions/state_event_batch.yaml index db01ecb1..9518300f 100644 --- a/data/api/client-server/definitions/state_event_batch.yaml +++ b/data/api/client-server/definitions/state_event_batch.yaml @@ -16,7 +16,7 @@ properties: description: List of events. items: allOf: - - $ref: event-schemas/schema/core-event-schema/sync_state_event.yaml + - $ref: ../../../event-schemas/schema/core-event-schema/sync_state_event.yaml type: object required: - event_id diff --git a/data/api/client-server/event_context.yaml b/data/api/client-server/event_context.yaml index 3ad7186f..da43bf9e 100644 --- a/data/api/client-server/event_context.yaml +++ b/data/api/client-server/event_context.yaml @@ -93,12 +93,12 @@ paths: requested event, in reverse-chronological order. items: allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" event: description: |- Details of the requested event. allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" events_after: type: array description: |- @@ -106,43 +106,43 @@ paths: requested event, in chronological order. items: allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" state: type: array description: |- The state of the room at the last event returned. items: allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml" examples: application/json: { "end": "t29-57_2_0_2", "events_after": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } ], "event": { "event_id": "$f3h4d129462ha:example.com", "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.image.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.image.yaml" }, "events_before": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.file.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.file.yaml" } ], "start": "t27-54_2_0_2", "state": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.create.yaml" + "$ref": "../../event-schemas/examples/m.room.create.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" } ] } diff --git a/data/api/client-server/message_pagination.yaml b/data/api/client-server/message_pagination.yaml index 3618b009..66e1d9c2 100644 --- a/data/api/client-server/message_pagination.yaml +++ b/data/api/client-server/message_pagination.yaml @@ -111,7 +111,7 @@ paths: for ``dir=f`` in chronological order, so that events start at the ``from`` point. items: - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" state: type: array description: |- @@ -124,7 +124,7 @@ paths: sent to the client in prior calls to this endpoint, assuming the membership of those members has not changed. items: - $ref: "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + $ref: "../../event-schemas/schema/core-event-schema/state_event.yaml" examples: application/json: { "start": "t47429-4392820_219380_26003_2265", @@ -132,15 +132,15 @@ paths: "chunk": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.name.yaml" + "$ref": "../../event-schemas/examples/m.room.name.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.video.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.video.yaml" } ] } diff --git a/data/api/client-server/notifications.yaml b/data/api/client-server/notifications.yaml index 3ac3aed8..434b3be2 100644 --- a/data/api/client-server/notifications.yaml +++ b/data/api/client-server/notifications.yaml @@ -75,7 +75,7 @@ paths: "room_id": "!abcdefg:example.com", "ts": 1475508881945, "event": { - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } } ] diff --git a/data/api/client-server/old_sync.yaml b/data/api/client-server/old_sync.yaml index 3bafda02..7caad40e 100644 --- a/data/api/client-server/old_sync.yaml +++ b/data/api/client-server/old_sync.yaml @@ -64,7 +64,7 @@ paths: "start": "s3456_9_0", "end": "s3457_9_0", "chunk": [ - {"$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml"} + {"$ref": "../../event-schemas/examples/m.room.message$m.text.yaml"} ] } schema: @@ -87,7 +87,7 @@ paths: type: object title: Event allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" 400: description: "Bad pagination ``from`` parameter." tags: @@ -131,7 +131,7 @@ paths: application/json: { "end": "s3456_9_0", "presence": [ - {"$ref": "definitions/event-schemas/examples/m.presence.yaml"} + {"$ref": "../../event-schemas/examples/m.presence.yaml"} ], "account_data": [ { @@ -148,11 +148,11 @@ paths: "chunk": [ { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" }, { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.message$m.video.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.video.yaml" } ], "end": "s3456_9_0", @@ -162,19 +162,19 @@ paths: "state": [ { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.join_rules.yaml" + "$ref": "../../event-schemas/examples/m.room.join_rules.yaml" }, { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" }, { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.create.yaml" + "$ref": "../../event-schemas/examples/m.room.create.yaml" }, { "room_id": "!TmaZBKYIFrIPVGoUYp:localhost", - "$ref": "definitions/event-schemas/examples/m.room.power_levels.yaml" + "$ref": "../../event-schemas/examples/m.room.power_levels.yaml" } ], "visibility": "private", @@ -209,7 +209,7 @@ paths: type: object title: Event allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" rooms: type: array items: @@ -228,7 +228,7 @@ paths: title: "InviteEvent" description: "The invite event if ``membership`` is ``invite``" allOf: - - "$ref": "definitions/event-schemas/schema/m.room.member.yaml" + - "$ref": "../../event-schemas/schema/m.room.member.yaml" messages: type: object title: PaginationChunk @@ -256,7 +256,7 @@ paths: type: object title: RoomEvent allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" required: ["start", "end", "chunk"] state: type: array @@ -269,7 +269,7 @@ paths: title: StateEvent type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml" visibility: type: string enum: ["private", "public"] @@ -285,7 +285,7 @@ paths: title: Event type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" required: ["room_id", "membership"] account_data: type: array @@ -295,7 +295,7 @@ paths: title: Event type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" required: ["end", "rooms", "presence"] 404: description: There is no avatar URL for this user or this user does not exist. @@ -326,10 +326,10 @@ paths: 200: description: The full event. examples: - application/json: {"$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml"} + application/json: {"$ref": "../../event-schemas/examples/m.room.message$m.text.yaml"} schema: allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" 404: description: The event was not found or you do not have permission to read this event. tags: diff --git a/data/api/client-server/peeking_events.yaml b/data/api/client-server/peeking_events.yaml index 592ef248..462b0191 100644 --- a/data/api/client-server/peeking_events.yaml +++ b/data/api/client-server/peeking_events.yaml @@ -76,7 +76,7 @@ paths: "chunk": [ { "room_id": "!somewhere:over.the.rainbow", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } ] } @@ -100,7 +100,7 @@ paths: type: object title: Event allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" 400: description: "Bad pagination ``from`` parameter." # No tags to exclude this from the swagger UI - use the normal version instead. diff --git a/data/api/client-server/room_initial_sync.yaml b/data/api/client-server/room_initial_sync.yaml index 2fb49b52..fd8412a4 100644 --- a/data/api/client-server/room_initial_sync.yaml +++ b/data/api/client-server/room_initial_sync.yaml @@ -44,11 +44,11 @@ paths: "chunk": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.message$m.file.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.file.yaml" } ], "end": "s3456_9_0", @@ -58,19 +58,19 @@ paths: "state": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.join_rules.yaml" + "$ref": "../../event-schemas/examples/m.room.join_rules.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.create.yaml" + "$ref": "../../event-schemas/examples/m.room.create.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.power_levels.yaml" + "$ref": "../../event-schemas/examples/m.room.power_levels.yaml" } ], "visibility": "private", @@ -117,7 +117,7 @@ paths: type: object title: RoomEvent allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" required: ["start", "end", "chunk"] state: type: array @@ -130,7 +130,7 @@ paths: title: StateEvent type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml" visibility: type: string enum: ["private", "public"] @@ -145,7 +145,7 @@ paths: title: Event type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" required: ["room_id"] 403: description: > diff --git a/data/api/client-server/rooms.yaml b/data/api/client-server/rooms.yaml index 203c5f88..7ead7f41 100644 --- a/data/api/client-server/rooms.yaml +++ b/data/api/client-server/rooms.yaml @@ -55,11 +55,11 @@ paths: examples: application/json: { "room_id": "!636q39766251:matrix.org", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } schema: allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/event.yaml" 404: description: The event was not found or you do not have permission to read this event. examples: @@ -144,19 +144,19 @@ paths: application/json: [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.join_rules.yaml" + "$ref": "../../event-schemas/examples/m.room.join_rules.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.create.yaml" + "$ref": "../../event-schemas/examples/m.room.create.yaml" }, { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.power_levels.yaml" + "$ref": "../../event-schemas/examples/m.room.power_levels.yaml" } ] schema: @@ -171,7 +171,7 @@ paths: title: StateEvent type: object allOf: - - "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + - "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml" 403: description: > You aren't a member of the room and weren't previously a @@ -242,7 +242,7 @@ paths: "chunk": [ { "room_id": "!636q39766251:example.com", - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" } ] } @@ -255,7 +255,7 @@ paths: title: MemberEvent type: object allOf: - - "$ref": "definitions/event-schemas/schema/m.room.member.yaml" + - "$ref": "../../event-schemas/schema/m.room.member.yaml" 403: description: > You aren't a member of the room and weren't previously a diff --git a/data/api/client-server/search.yaml b/data/api/client-server/search.yaml index d65c9bc3..6647f955 100644 --- a/data/api/client-server/search.yaml +++ b/data/api/client-server/search.yaml @@ -208,7 +208,7 @@ paths: type: object title: Event description: The event that matched. - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" context: type: object title: Event Context @@ -250,7 +250,7 @@ paths: items: title: Event type: object - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" events_after: type: array title: Events After @@ -258,7 +258,7 @@ paths: items: title: Event type: object - "$ref": "definitions/event-schemas/schema/core-event-schema/room_event.yaml" + "$ref": "../../event-schemas/schema/core-event-schema/room_event.yaml" state: type: object title: Current state @@ -274,7 +274,7 @@ paths: title: Room State items: type: object - "$ref": "definitions/event-schemas/schema/core-event-schema/state_event.yaml" + "$ref": "../../event-schemas/schema/core-event-schema/state_event.yaml" groups: type: object title: Groups @@ -351,7 +351,7 @@ paths: "result": { "room_id": "!qPewotXpIctQySfjSy:localhost", "event_id": "$144429830826TWwbB:localhost", - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } } ] diff --git a/data/api/client-server/sync.yaml b/data/api/client-server/sync.yaml index 63ea735f..7a923eca 100644 --- a/data/api/client-server/sync.yaml +++ b/data/api/client-server/sync.yaml @@ -279,7 +279,7 @@ paths: events: description: The StrippedState events that form the invite state. items: - $ref: "definitions/event-schemas/schema/stripped_state.yaml" + $ref: "../../event-schemas/schema/stripped_state.yaml" type: array leave: title: Left rooms @@ -355,7 +355,7 @@ paths: "next_batch": "s72595_4483_1934", "presence": { "events": [ - {"$ref": "definitions/event-schemas/examples/m.presence.yaml"} + {"$ref": "../../event-schemas/examples/m.presence.yaml"} ] }, "account_data": { @@ -382,17 +382,17 @@ paths: "state": { "events": [ { - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" } ] }, "timeline": { "events": [ { - "$ref": "definitions/event-schemas/examples/m.room.member.yaml" + "$ref": "../../event-schemas/examples/m.room.member.yaml" }, { - "$ref": "definitions/event-schemas/examples/m.room.message$m.text.yaml" + "$ref": "../../event-schemas/examples/m.room.message$m.text.yaml" } ], "limited": true, @@ -400,12 +400,12 @@ paths: }, "ephemeral": { "events": [ - {"$ref": "definitions/event-schemas/examples/m.typing.yaml"} + {"$ref": "../../event-schemas/examples/m.typing.yaml"} ] }, "account_data": { "events": [ - {"$ref": "definitions/event-schemas/examples/m.tag.yaml"}, + {"$ref": "../../event-schemas/examples/m.tag.yaml"}, { "type": "org.example.custom.room.config", "content": { diff --git a/data/api/server-server/invites-v1.yaml b/data/api/server-server/invites-v1.yaml index c62d8e3d..c054bdd5 100644 --- a/data/api/server-server/invites-v1.yaml +++ b/data/api/server-server/invites-v1.yaml @@ -135,7 +135,7 @@ paths: "sender": "@someone:example.org", "unsigned": { "invite_room_state": { - "$ref": "../../../event-schemas/examples/invite_room_state.json" + "$ref": "../../event-schemas/examples/invite_room_state.json" } }, "content": { diff --git a/data/api/server-server/invites-v2.yaml b/data/api/server-server/invites-v2.yaml index cae14bb4..28cbccca 100644 --- a/data/api/server-server/invites-v2.yaml +++ b/data/api/server-server/invites-v2.yaml @@ -131,7 +131,7 @@ paths: "sender": "@someone:example.org", "unsigned": { "invite_room_state": { - "$ref": "../../../event-schemas/examples/invite_room_state.json" + "$ref": "../../event-schemas/examples/invite_room_state.json" } }, "content": {