async-matrix 0.1.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +131 -0
- data/data/matrix-spec/api/client-server/account-data.yaml +389 -0
- data/data/matrix-spec/api/client-server/account_deactivation.yaml +149 -0
- data/data/matrix-spec/api/client-server/admin.yaml +512 -0
- data/data/matrix-spec/api/client-server/administrative_contact.yaml +620 -0
- data/data/matrix-spec/api/client-server/appservice_ping.yaml +183 -0
- data/data/matrix-spec/api/client-server/appservice_room_directory.yaml +104 -0
- data/data/matrix-spec/api/client-server/authed-content-repo.yaml +590 -0
- data/data/matrix-spec/api/client-server/banning.yaml +177 -0
- data/data/matrix-spec/api/client-server/capabilities.yaml +235 -0
- data/data/matrix-spec/api/client-server/content-repo.yaml +887 -0
- data/data/matrix-spec/api/client-server/create_room.yaml +306 -0
- data/data/matrix-spec/api/client-server/cross_signing.yaml +300 -0
- data/data/matrix-spec/api/client-server/definitions/auth_data.yaml +34 -0
- data/data/matrix-spec/api/client-server/definitions/auth_response.yaml +62 -0
- data/data/matrix-spec/api/client-server/definitions/client_device.yaml +44 -0
- data/data/matrix-spec/api/client-server/definitions/client_event.yaml +49 -0
- data/data/matrix-spec/api/client-server/definitions/client_event_without_room_id.yaml +147 -0
- data/data/matrix-spec/api/client-server/definitions/cross_signing_key.yaml +57 -0
- data/data/matrix-spec/api/client-server/definitions/device_keys.yaml +70 -0
- data/data/matrix-spec/api/client-server/definitions/errors/error.yaml +26 -0
- data/data/matrix-spec/api/client-server/definitions/errors/rate_limited.yaml +34 -0
- data/data/matrix-spec/api/client-server/definitions/event_batch.yaml +22 -0
- data/data/matrix-spec/api/client-server/definitions/event_filter.yaml +55 -0
- data/data/matrix-spec/api/client-server/definitions/invite_3pid.yaml +45 -0
- data/data/matrix-spec/api/client-server/definitions/key_backup_auth_data.yaml +36 -0
- data/data/matrix-spec/api/client-server/definitions/key_backup_data.yaml +50 -0
- data/data/matrix-spec/api/client-server/definitions/key_backup_session_data.yaml +57 -0
- data/data/matrix-spec/api/client-server/definitions/m.login.terms_params.yaml +83 -0
- data/data/matrix-spec/api/client-server/definitions/m.mentions.yaml +33 -0
- data/data/matrix-spec/api/client-server/definitions/m.oauth_params.yaml +30 -0
- data/data/matrix-spec/api/client-server/definitions/m.relates_to.yaml +45 -0
- data/data/matrix-spec/api/client-server/definitions/megolm_export_session_data.yaml +39 -0
- data/data/matrix-spec/api/client-server/definitions/olm_payload.yaml +88 -0
- data/data/matrix-spec/api/client-server/definitions/one_time_keys.yaml +27 -0
- data/data/matrix-spec/api/client-server/definitions/openid_token.yaml +37 -0
- data/data/matrix-spec/api/client-server/definitions/protocol.yaml +44 -0
- data/data/matrix-spec/api/client-server/definitions/public_rooms_chunk.yaml +74 -0
- data/data/matrix-spec/api/client-server/definitions/public_rooms_response.yaml +59 -0
- data/data/matrix-spec/api/client-server/definitions/push_condition.yaml +53 -0
- data/data/matrix-spec/api/client-server/definitions/push_rule.yaml +53 -0
- data/data/matrix-spec/api/client-server/definitions/push_ruleset.yaml +206 -0
- data/data/matrix-spec/api/client-server/definitions/recent_emoji.yaml +29 -0
- data/data/matrix-spec/api/client-server/definitions/request_email_validation.yaml +36 -0
- data/data/matrix-spec/api/client-server/definitions/request_msisdn_validation.yaml +36 -0
- data/data/matrix-spec/api/client-server/definitions/request_token_response.yaml +46 -0
- data/data/matrix-spec/api/client-server/definitions/room_event_filter.yaml +60 -0
- data/data/matrix-spec/api/client-server/definitions/room_key_backup.yaml +37 -0
- data/data/matrix-spec/api/client-server/definitions/room_summary.yaml +44 -0
- data/data/matrix-spec/api/client-server/definitions/security.yaml +47 -0
- data/data/matrix-spec/api/client-server/definitions/sso_login_flow.yaml +98 -0
- data/data/matrix-spec/api/client-server/definitions/state_event_batch.yaml +21 -0
- data/data/matrix-spec/api/client-server/definitions/sync_filter.yaml +86 -0
- data/data/matrix-spec/api/client-server/definitions/tag.yaml +24 -0
- data/data/matrix-spec/api/client-server/definitions/third_party_signed.yaml +45 -0
- data/data/matrix-spec/api/client-server/definitions/timeline_batch.yaml +36 -0
- data/data/matrix-spec/api/client-server/definitions/user_identifier.yaml +27 -0
- data/data/matrix-spec/api/client-server/definitions/wellknown/full.yaml +38 -0
- data/data/matrix-spec/api/client-server/definitions/wellknown/homeserver.yaml +25 -0
- data/data/matrix-spec/api/client-server/definitions/wellknown/identity_server.yaml +25 -0
- data/data/matrix-spec/api/client-server/device_management.yaml +314 -0
- data/data/matrix-spec/api/client-server/directory.yaml +318 -0
- data/data/matrix-spec/api/client-server/event_context.yaml +161 -0
- data/data/matrix-spec/api/client-server/filter.yaml +224 -0
- data/data/matrix-spec/api/client-server/inviting.yaml +149 -0
- data/data/matrix-spec/api/client-server/joining.yaml +238 -0
- data/data/matrix-spec/api/client-server/key_backup.yaml +993 -0
- data/data/matrix-spec/api/client-server/keys.yaml +482 -0
- data/data/matrix-spec/api/client-server/kicking.yaml +110 -0
- data/data/matrix-spec/api/client-server/knocking.yaml +152 -0
- data/data/matrix-spec/api/client-server/leaving.yaml +163 -0
- data/data/matrix-spec/api/client-server/list_joined_rooms.yaml +68 -0
- data/data/matrix-spec/api/client-server/list_public_rooms.yaml +280 -0
- data/data/matrix-spec/api/client-server/login.yaml +321 -0
- data/data/matrix-spec/api/client-server/login_token.yaml +138 -0
- data/data/matrix-spec/api/client-server/logout.yaml +86 -0
- data/data/matrix-spec/api/client-server/message_pagination.yaml +194 -0
- data/data/matrix-spec/api/client-server/notifications.yaml +152 -0
- data/data/matrix-spec/api/client-server/oauth_server_metadata.yaml +238 -0
- data/data/matrix-spec/api/client-server/old_sync.yaml +379 -0
- data/data/matrix-spec/api/client-server/openid.yaml +98 -0
- data/data/matrix-spec/api/client-server/password_management.yaml +246 -0
- data/data/matrix-spec/api/client-server/peeking_events.yaml +122 -0
- data/data/matrix-spec/api/client-server/policy_server.yaml +82 -0
- data/data/matrix-spec/api/client-server/presence.yaml +169 -0
- data/data/matrix-spec/api/client-server/profile.yaml +366 -0
- data/data/matrix-spec/api/client-server/pusher.yaml +303 -0
- data/data/matrix-spec/api/client-server/pushrules.yaml +633 -0
- data/data/matrix-spec/api/client-server/read_markers.yaml +103 -0
- data/data/matrix-spec/api/client-server/receipts.yaml +139 -0
- data/data/matrix-spec/api/client-server/redaction.yaml +116 -0
- data/data/matrix-spec/api/client-server/refresh.yaml +119 -0
- data/data/matrix-spec/api/client-server/registration.yaml +488 -0
- data/data/matrix-spec/api/client-server/registration_tokens.yaml +93 -0
- data/data/matrix-spec/api/client-server/relations.yaml +382 -0
- data/data/matrix-spec/api/client-server/report_content.yaml +283 -0
- data/data/matrix-spec/api/client-server/room_event_by_timestamp.yaml +147 -0
- data/data/matrix-spec/api/client-server/room_initial_sync.yaml +188 -0
- data/data/matrix-spec/api/client-server/room_send.yaml +130 -0
- data/data/matrix-spec/api/client-server/room_state.yaml +159 -0
- data/data/matrix-spec/api/client-server/room_summary.yaml +138 -0
- data/data/matrix-spec/api/client-server/room_upgrades.yaml +130 -0
- data/data/matrix-spec/api/client-server/rooms.yaml +380 -0
- data/data/matrix-spec/api/client-server/search.yaml +385 -0
- data/data/matrix-spec/api/client-server/space_hierarchy.yaml +237 -0
- data/data/matrix-spec/api/client-server/sso_login_redirect.yaml +135 -0
- data/data/matrix-spec/api/client-server/support.yaml +142 -0
- data/data/matrix-spec/api/client-server/sync.yaml +692 -0
- data/data/matrix-spec/api/client-server/tags.yaml +183 -0
- data/data/matrix-spec/api/client-server/third_party_lookup.yaml +324 -0
- data/data/matrix-spec/api/client-server/third_party_membership.yaml +139 -0
- data/data/matrix-spec/api/client-server/threads_list.yaml +167 -0
- data/data/matrix-spec/api/client-server/to_device.yaml +104 -0
- data/data/matrix-spec/api/client-server/typing.yaml +103 -0
- data/data/matrix-spec/api/client-server/users.yaml +136 -0
- data/data/matrix-spec/api/client-server/versions.yaml +108 -0
- data/data/matrix-spec/api/client-server/voip.yaml +93 -0
- data/data/matrix-spec/api/client-server/wellknown.yaml +60 -0
- data/data/matrix-spec/api/client-server/whoami.yaml +121 -0
- data/data/matrix-spec/event-schemas/examples/core/event.json +6 -0
- data/data/matrix-spec/event-schemas/examples/core/room_edu.json +3 -0
- data/data/matrix-spec/event-schemas/examples/core/room_event.json +11 -0
- data/data/matrix-spec/event-schemas/examples/core/state_event.json +4 -0
- data/data/matrix-spec/event-schemas/examples/invite_room_state.json +18 -0
- data/data/matrix-spec/event-schemas/examples/knock_room_state.json +18 -0
- data/data/matrix-spec/event-schemas/examples/m.accepted_terms.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.call.answer.yaml +21 -0
- data/data/matrix-spec/event-schemas/examples/m.call.candidates.yaml +16 -0
- data/data/matrix-spec/event-schemas/examples/m.call.hangup.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.call.invite.yaml +22 -0
- data/data/matrix-spec/event-schemas/examples/m.call.negotiate.yaml +22 -0
- data/data/matrix-spec/event-schemas/examples/m.call.reject.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.call.sdp_stream_metadata_changed.yaml +16 -0
- data/data/matrix-spec/event-schemas/examples/m.call.select_answer.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.direct.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.dummy.yaml +4 -0
- data/data/matrix-spec/event-schemas/examples/m.forwarded_room_key.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.fully_read.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.identity_server.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.ignored_user_list.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.invite_permission_config.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.accept.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.cancel.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.done.yaml +6 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.key.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.mac.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.ready.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.request.yaml +11 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.start$m.sas.v1.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.key.verification.start.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.key_backup.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.marked_unread.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.policy.rule.room.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.policy.rule.server.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.policy.rule.user.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.presence.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.push_rules.yaml +177 -0
- data/data/matrix-spec/event-schemas/examples/m.reaction.yaml +11 -0
- data/data/matrix-spec/event-schemas/examples/m.receipt.yaml +18 -0
- data/data/matrix-spec/event-schemas/examples/m.recent_emoji.yaml +16 -0
- data/data/matrix-spec/event-schemas/examples/m.room.avatar.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.room.canonical_alias.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.room.create.yaml +13 -0
- data/data/matrix-spec/event-schemas/examples/m.room.encrypted$megolm.yaml +11 -0
- data/data/matrix-spec/event-schemas/examples/m.room.encrypted$olm.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.room.encryption.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room.guest_access.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.history_visibility.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.join_rules$restricted.yaml +18 -0
- data/data/matrix-spec/event-schemas/examples/m.room.join_rules.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.member$invite_room_state.yaml +15 -0
- data/data/matrix-spec/event-schemas/examples/m.room.member$join_authorised_via_users_server.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.room.member$knock_room_state.yaml +15 -0
- data/data/matrix-spec/event-schemas/examples/m.room.member$third_party_invite.yaml +20 -0
- data/data/matrix-spec/event-schemas/examples/m.room.member.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.audio.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.emote.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.file.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.image.yaml +16 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.key.verification.request.yaml +19 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.location.yaml +18 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.notice.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.server_notice.yaml +11 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.text.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room.message$m.video.yaml +23 -0
- data/data/matrix-spec/event-schemas/examples/m.room.name.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.pinned_events.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.policy.yaml +11 -0
- data/data/matrix-spec/event-schemas/examples/m.room.power_levels.yaml +24 -0
- data/data/matrix-spec/event-schemas/examples/m.room.redaction.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room.server_acl.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room.third_party_invite.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.room.tombstone.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.room.topic.yaml +16 -0
- data/data/matrix-spec/event-schemas/examples/m.room_key.withheld.yaml +12 -0
- data/data/matrix-spec/event-schemas/examples/m.room_key.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.room_key_request$cancel_request.yaml +8 -0
- data/data/matrix-spec/event-schemas/examples/m.room_key_request$request.yaml +14 -0
- data/data/matrix-spec/event-schemas/examples/m.secret.request.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.secret.send.yaml +7 -0
- data/data/matrix-spec/event-schemas/examples/m.space.child.yaml +10 -0
- data/data/matrix-spec/event-schemas/examples/m.space.parent.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.sticker.yaml +22 -0
- data/data/matrix-spec/event-schemas/examples/m.tag.yaml +9 -0
- data/data/matrix-spec/event-schemas/examples/m.typing.yaml +7 -0
- data/data/matrix-spec/event-schemas/moderation_policy_rule.yaml +32 -0
- data/data/matrix-spec/event-schemas/schema/components/m_text_content_block.yaml +28 -0
- data/data/matrix-spec/event-schemas/schema/components/sdp_stream_metadata.yaml +43 -0
- data/data/matrix-spec/event-schemas/schema/components/signed_third_party_invite.yaml +48 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/call_event.yaml +27 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/event.yaml +16 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/msgtype_infos/avatar_info.yaml +30 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/msgtype_infos/image_info.yaml +52 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/msgtype_infos/thumbnail_info.yaml +22 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/room_event.yaml +17 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/state_event.yaml +8 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/stripped_state.yaml +48 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/sync_room_event.yaml +49 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/sync_state_event.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/core-event-schema/unsigned_prop.yaml +23 -0
- data/data/matrix-spec/event-schemas/schema/m.accepted_terms.yaml +25 -0
- data/data/matrix-spec/event-schemas/schema/m.call.answer.yaml +44 -0
- data/data/matrix-spec/event-schemas/schema/m.call.candidates.yaml +52 -0
- data/data/matrix-spec/event-schemas/schema/m.call.hangup.yaml +57 -0
- data/data/matrix-spec/event-schemas/schema/m.call.invite.yaml +53 -0
- data/data/matrix-spec/event-schemas/schema/m.call.negotiate.yaml +78 -0
- data/data/matrix-spec/event-schemas/schema/m.call.reject.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.call.sdp_stream_metadata_changed.yaml +24 -0
- data/data/matrix-spec/event-schemas/schema/m.call.select_answer.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.direct.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.dummy.yaml +25 -0
- data/data/matrix-spec/event-schemas/schema/m.forwarded_room_key.yaml +70 -0
- data/data/matrix-spec/event-schemas/schema/m.fully_read.yaml +26 -0
- data/data/matrix-spec/event-schemas/schema/m.identity_server.yaml +28 -0
- data/data/matrix-spec/event-schemas/schema/m.ignored_user_list.yaml +30 -0
- data/data/matrix-spec/event-schemas/schema/m.invite_permission_config.yaml +21 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.accept.yaml +63 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.cancel.yaml +72 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.done.yaml +24 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.key.yaml +31 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.m.relates_to.yaml +23 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.mac.yaml +43 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.ready.yaml +41 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.request.yaml +47 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.start$m.reciprocate.v1.yaml +45 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.start$m.sas.v1.yaml +76 -0
- data/data/matrix-spec/event-schemas/schema/m.key.verification.start.yaml +46 -0
- data/data/matrix-spec/event-schemas/schema/m.key_backup.yaml +24 -0
- data/data/matrix-spec/event-schemas/schema/m.marked_unread.yaml +26 -0
- data/data/matrix-spec/event-schemas/schema/m.policy.rule.room.yaml +17 -0
- data/data/matrix-spec/event-schemas/schema/m.policy.rule.server.yaml +17 -0
- data/data/matrix-spec/event-schemas/schema/m.policy.rule.user.yaml +17 -0
- data/data/matrix-spec/event-schemas/schema/m.presence.yaml +50 -0
- data/data/matrix-spec/event-schemas/schema/m.push_rules.yaml +23 -0
- data/data/matrix-spec/event-schemas/schema/m.reaction.yaml +45 -0
- data/data/matrix-spec/event-schemas/schema/m.receipt.yaml +65 -0
- data/data/matrix-spec/event-schemas/schema/m.recent_emoji.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.room.avatar.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.room.canonical_alias.yaml +40 -0
- data/data/matrix-spec/event-schemas/schema/m.room.create.yaml +86 -0
- data/data/matrix-spec/event-schemas/schema/m.room.encrypted.yaml +91 -0
- data/data/matrix-spec/event-schemas/schema/m.room.encryption.yaml +38 -0
- data/data/matrix-spec/event-schemas/schema/m.room.guest_access.yaml +28 -0
- data/data/matrix-spec/event-schemas/schema/m.room.history_visibility.yaml +30 -0
- data/data/matrix-spec/event-schemas/schema/m.room.join_rules.yaml +78 -0
- data/data/matrix-spec/event-schemas/schema/m.room.member.yaml +174 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.audio.yaml +73 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.emote.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.file.yaml +85 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.image.yaml +63 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.key.verification.request.yaml +70 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.location.yaml +50 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.notice.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.server_notice.yaml +41 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.text.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message$m.video.yaml +95 -0
- data/data/matrix-spec/event-schemas/schema/m.room.message.yaml +25 -0
- data/data/matrix-spec/event-schemas/schema/m.room.name.yaml +35 -0
- data/data/matrix-spec/event-schemas/schema/m.room.pinned_events.yaml +27 -0
- data/data/matrix-spec/event-schemas/schema/m.room.policy.yaml +41 -0
- data/data/matrix-spec/event-schemas/schema/m.room.power_levels.yaml +139 -0
- data/data/matrix-spec/event-schemas/schema/m.room.redaction.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.room.server_acl.yaml +88 -0
- data/data/matrix-spec/event-schemas/schema/m.room.third_party_invite.yaml +79 -0
- data/data/matrix-spec/event-schemas/schema/m.room.tombstone.yaml +29 -0
- data/data/matrix-spec/event-schemas/schema/m.room.topic.yaml +53 -0
- data/data/matrix-spec/event-schemas/schema/m.room_key.withheld.yaml +88 -0
- data/data/matrix-spec/event-schemas/schema/m.room_key.yaml +38 -0
- data/data/matrix-spec/event-schemas/schema/m.room_key_request.yaml +73 -0
- data/data/matrix-spec/event-schemas/schema/m.secret.request.yaml +42 -0
- data/data/matrix-spec/event-schemas/schema/m.secret.send.yaml +35 -0
- data/data/matrix-spec/event-schemas/schema/m.space.child.yaml +50 -0
- data/data/matrix-spec/event-schemas/schema/m.space.parent.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/m.sticker.yaml +36 -0
- data/data/matrix-spec/event-schemas/schema/m.tag.yaml +28 -0
- data/data/matrix-spec/event-schemas/schema/m.typing.yaml +29 -0
- data/lib/async/matrix/api/chain.rb +575 -0
- data/lib/async/matrix/api/concat.rb +105 -0
- data/lib/async/matrix/api/path_tree.rb +208 -0
- data/lib/async/matrix/api.rb +204 -0
- data/lib/async/matrix/application_service/bot.rb +235 -0
- data/lib/async/matrix/application_service/config/schema/analytics.json +21 -0
- data/lib/async/matrix/application_service/config/schema/appservice.json +82 -0
- data/lib/async/matrix/application_service/config/schema/backfill.json +91 -0
- data/lib/async/matrix/application_service/config/schema/bridge.json +209 -0
- data/lib/async/matrix/application_service/config/schema/config.json +61 -0
- data/lib/async/matrix/application_service/config/schema/database.json +38 -0
- data/lib/async/matrix/application_service/config/schema/direct_media.json +35 -0
- data/lib/async/matrix/application_service/config/schema/double_puppet.json +24 -0
- data/lib/async/matrix/application_service/config/schema/encryption.json +164 -0
- data/lib/async/matrix/application_service/config/schema/homeserver.json +58 -0
- data/lib/async/matrix/application_service/config/schema/logging.json +50 -0
- data/lib/async/matrix/application_service/config/schema/management_room_texts.json +25 -0
- data/lib/async/matrix/application_service/config/schema/matrix.json +45 -0
- data/lib/async/matrix/application_service/config/schema/permissions.json +54 -0
- data/lib/async/matrix/application_service/config/schema/provisioning.json +23 -0
- data/lib/async/matrix/application_service/config/schema/public_media.json +39 -0
- data/lib/async/matrix/application_service/config/schema/relay.json +43 -0
- data/lib/async/matrix/application_service/config/vivify.rb +110 -0
- data/lib/async/matrix/application_service/config.rb +214 -123
- data/lib/async/matrix/application_service/dispatcher.rb +115 -113
- data/lib/async/matrix/application_service/error_response.rb +26 -26
- data/lib/async/matrix/application_service/event.rb +217 -1
- data/lib/async/matrix/application_service/server.rb +286 -215
- data/lib/async/matrix/application_service/transaction.rb +52 -52
- data/lib/async/matrix/application_service/transaction_store.rb +62 -62
- data/lib/async/matrix/client.rb +919 -179
- data/lib/async/matrix/connection.rb +8 -8
- data/lib/async/matrix/endpoint.rb +45 -45
- data/lib/async/matrix/error.rb +49 -43
- data/lib/async/matrix/media_client.rb +173 -0
- data/lib/async/matrix/notifier.rb +92 -92
- data/lib/async/matrix/schema/registry.rb +355 -0
- data/lib/async/matrix/schema/validation_error.rb +226 -0
- data/lib/async/matrix/schema.rb +174 -0
- data/lib/async/matrix/server.rb +7 -7
- data/lib/async/matrix/stream.rb +7 -7
- data/lib/async/matrix/version.rb +1 -1
- data/lib/async/matrix.rb +2 -2
- metadata +353 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright 2016 OpenMarket Ltd
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
title: PushCondition
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
kind:
|
|
19
|
+
type: string
|
|
20
|
+
description: |-
|
|
21
|
+
The kind of condition to apply. See [conditions](/client-server-api/#conditions-1) for
|
|
22
|
+
more information on the allowed kinds and how they work.
|
|
23
|
+
key:
|
|
24
|
+
type: string
|
|
25
|
+
description: |-
|
|
26
|
+
Required for `event_match`, `event_property_is` and `event_property_contains`
|
|
27
|
+
conditions. The dot-separated field of the event to match.
|
|
28
|
+
|
|
29
|
+
Required for `sender_notification_permission` conditions. The field in
|
|
30
|
+
the power level event the user needs a minimum power level for. Fields
|
|
31
|
+
must be specified under the `notifications` property in the power level
|
|
32
|
+
event's `content`.
|
|
33
|
+
example: content.body
|
|
34
|
+
pattern:
|
|
35
|
+
type: string
|
|
36
|
+
description: |-
|
|
37
|
+
Required for `event_match` conditions. The [glob-style pattern](/appendices#glob-style-matching)
|
|
38
|
+
to match against.
|
|
39
|
+
is:
|
|
40
|
+
type: string
|
|
41
|
+
description: |-
|
|
42
|
+
Required for `room_member_count` conditions. A decimal integer
|
|
43
|
+
optionally prefixed by one of, ==, <, >, >= or <=. A prefix of < matches
|
|
44
|
+
rooms where the member count is strictly less than the given number and
|
|
45
|
+
so forth. If no prefix is present, this parameter defaults to ==.
|
|
46
|
+
value:
|
|
47
|
+
type: ["string", "integer", "boolean", "null"]
|
|
48
|
+
description: |-
|
|
49
|
+
Required for `event_property_is` and `event_property_contains` conditions.
|
|
50
|
+
A non-compound [canonical JSON](/appendices#canonical-json) value to match
|
|
51
|
+
against.
|
|
52
|
+
required:
|
|
53
|
+
- kind
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright 2016 OpenMarket Ltd
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
title: PushRule
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
actions:
|
|
19
|
+
items:
|
|
20
|
+
type: ["string", "object"]
|
|
21
|
+
type: array
|
|
22
|
+
description: |-
|
|
23
|
+
The actions to perform when this rule is matched.
|
|
24
|
+
default:
|
|
25
|
+
type: boolean
|
|
26
|
+
description: |-
|
|
27
|
+
Whether this is a default rule, or has been set explicitly.
|
|
28
|
+
enabled:
|
|
29
|
+
type: boolean
|
|
30
|
+
description: |-
|
|
31
|
+
Whether the push rule is enabled or not.
|
|
32
|
+
rule_id:
|
|
33
|
+
type: string
|
|
34
|
+
description: |-
|
|
35
|
+
The ID of this rule.
|
|
36
|
+
conditions:
|
|
37
|
+
type: array
|
|
38
|
+
items:
|
|
39
|
+
$ref: push_condition.yaml
|
|
40
|
+
description: |-
|
|
41
|
+
The conditions that must hold true for an event in order for a rule to be
|
|
42
|
+
applied to an event. A rule with no conditions always matches. Only
|
|
43
|
+
applicable to `underride` and `override` rules.
|
|
44
|
+
pattern:
|
|
45
|
+
type: string
|
|
46
|
+
description: |-
|
|
47
|
+
The [glob-style pattern](/appendices#glob-style-matching) to match against.
|
|
48
|
+
Only applicable to `content` rules.
|
|
49
|
+
required:
|
|
50
|
+
- actions
|
|
51
|
+
- default
|
|
52
|
+
- enabled
|
|
53
|
+
- rule_id
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Copyright 2016 OpenMarket Ltd
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
properties:
|
|
15
|
+
content:
|
|
16
|
+
items:
|
|
17
|
+
$ref: push_rule.yaml
|
|
18
|
+
type: array
|
|
19
|
+
override:
|
|
20
|
+
items:
|
|
21
|
+
$ref: push_rule.yaml
|
|
22
|
+
type: array
|
|
23
|
+
room:
|
|
24
|
+
items:
|
|
25
|
+
$ref: push_rule.yaml
|
|
26
|
+
type: array
|
|
27
|
+
sender:
|
|
28
|
+
items:
|
|
29
|
+
$ref: push_rule.yaml
|
|
30
|
+
type: array
|
|
31
|
+
underride:
|
|
32
|
+
items:
|
|
33
|
+
$ref: push_rule.yaml
|
|
34
|
+
type: array
|
|
35
|
+
type: object
|
|
36
|
+
example: {
|
|
37
|
+
"override": [
|
|
38
|
+
{
|
|
39
|
+
"actions": [],
|
|
40
|
+
"conditions": [],
|
|
41
|
+
"default": true,
|
|
42
|
+
"enabled": false,
|
|
43
|
+
"rule_id": ".m.rule.master"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"actions": [],
|
|
47
|
+
"conditions": [
|
|
48
|
+
{
|
|
49
|
+
"key": "content.msgtype",
|
|
50
|
+
"kind": "event_match",
|
|
51
|
+
"pattern": "m.notice"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"default": true,
|
|
55
|
+
"enabled": true,
|
|
56
|
+
"rule_id": ".m.rule.suppress_notices"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"room": [],
|
|
60
|
+
"sender": [],
|
|
61
|
+
"underride": [
|
|
62
|
+
{
|
|
63
|
+
"actions": [
|
|
64
|
+
"notify",
|
|
65
|
+
{
|
|
66
|
+
"set_tweak": "sound",
|
|
67
|
+
"value": "ring"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"set_tweak": "highlight",
|
|
71
|
+
"value": false
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"conditions": [
|
|
75
|
+
{
|
|
76
|
+
"key": "type",
|
|
77
|
+
"kind": "event_match",
|
|
78
|
+
"pattern": "m.call.invite"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"default": true,
|
|
82
|
+
"enabled": true,
|
|
83
|
+
"rule_id": ".m.rule.call"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"actions": [
|
|
87
|
+
"notify",
|
|
88
|
+
{
|
|
89
|
+
"set_tweak": "sound",
|
|
90
|
+
"value": "default"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"set_tweak": "highlight"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"conditions": [
|
|
97
|
+
{
|
|
98
|
+
"kind": "event_property_contains",
|
|
99
|
+
"key": "content.m\\.mentions.user_ids",
|
|
100
|
+
"value": "@alice:example.com"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"default": true,
|
|
104
|
+
"enabled": true,
|
|
105
|
+
"rule_id": ".m.rule.is_user_mention"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"actions": [
|
|
109
|
+
"notify",
|
|
110
|
+
{
|
|
111
|
+
"set_tweak": "sound",
|
|
112
|
+
"value": "default"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"set_tweak": "highlight",
|
|
116
|
+
"value": false
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"conditions": [
|
|
120
|
+
{
|
|
121
|
+
"kind": "room_member_count",
|
|
122
|
+
"is": "2"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"kind": "event_match",
|
|
126
|
+
"key": "type",
|
|
127
|
+
"pattern": "m.room.message"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"default": true,
|
|
131
|
+
"enabled": true,
|
|
132
|
+
"rule_id": ".m.rule.room_one_to_one"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"actions": [
|
|
136
|
+
"notify",
|
|
137
|
+
{
|
|
138
|
+
"set_tweak": "sound",
|
|
139
|
+
"value": "default"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"set_tweak": "highlight",
|
|
143
|
+
"value": false
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"conditions": [
|
|
147
|
+
{
|
|
148
|
+
"key": "type",
|
|
149
|
+
"kind": "event_match",
|
|
150
|
+
"pattern": "m.room.member"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"key": "content.membership",
|
|
154
|
+
"kind": "event_match",
|
|
155
|
+
"pattern": "invite"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"key": "state_key",
|
|
159
|
+
"kind": "event_match",
|
|
160
|
+
"pattern": "@alice:example.com"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"default": true,
|
|
164
|
+
"enabled": true,
|
|
165
|
+
"rule_id": ".m.rule.invite_for_me"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"actions": [
|
|
169
|
+
"notify",
|
|
170
|
+
{
|
|
171
|
+
"set_tweak": "highlight",
|
|
172
|
+
"value": false
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"conditions": [
|
|
176
|
+
{
|
|
177
|
+
"key": "type",
|
|
178
|
+
"kind": "event_match",
|
|
179
|
+
"pattern": "m.room.member"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"default": true,
|
|
183
|
+
"enabled": true,
|
|
184
|
+
"rule_id": ".m.rule.member_event"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"actions": [
|
|
188
|
+
"notify",
|
|
189
|
+
{
|
|
190
|
+
"set_tweak": "highlight",
|
|
191
|
+
"value": false
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"conditions": [
|
|
195
|
+
{
|
|
196
|
+
"key": "type",
|
|
197
|
+
"kind": "event_match",
|
|
198
|
+
"pattern": "m.room.message"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"default": true,
|
|
202
|
+
"enabled": true,
|
|
203
|
+
"rule_id": ".m.rule.message"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Copyright 2026 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
title: Recent Emoji
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
emoji:
|
|
19
|
+
type: string
|
|
20
|
+
description: The Unicode emoji as string.
|
|
21
|
+
example: 🚀
|
|
22
|
+
total:
|
|
23
|
+
type: number
|
|
24
|
+
description: |-
|
|
25
|
+
The number of times the emoji has been used.
|
|
26
|
+
MUST be non-negative and smaller than 2^53.
|
|
27
|
+
required:
|
|
28
|
+
- emoji
|
|
29
|
+
- total
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
type: object
|
|
15
|
+
allOf:
|
|
16
|
+
- $ref: "../../identity/definitions/request_email_validation.yaml"
|
|
17
|
+
- type: object
|
|
18
|
+
properties:
|
|
19
|
+
id_server:
|
|
20
|
+
type: string
|
|
21
|
+
description: |-
|
|
22
|
+
The hostname of the identity server to communicate with. May optionally
|
|
23
|
+
include a port. This parameter is ignored when the homeserver handles
|
|
24
|
+
3PID verification.
|
|
25
|
+
|
|
26
|
+
This parameter is deprecated with a plan to be removed in a future specification
|
|
27
|
+
version for `/account/password` and `/register` requests.
|
|
28
|
+
example: "id.example.com"
|
|
29
|
+
id_access_token:
|
|
30
|
+
type: string
|
|
31
|
+
description: |-
|
|
32
|
+
An access token previously registered with the identity server. Servers
|
|
33
|
+
can treat this as optional to distinguish between r0.5-compatible clients
|
|
34
|
+
and this specification version.
|
|
35
|
+
|
|
36
|
+
Required if an `id_server` is supplied.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
type: object
|
|
15
|
+
allOf:
|
|
16
|
+
- $ref: "../../identity/definitions/request_msisdn_validation.yaml"
|
|
17
|
+
- type: object
|
|
18
|
+
properties:
|
|
19
|
+
id_server:
|
|
20
|
+
type: string
|
|
21
|
+
description: |-
|
|
22
|
+
The hostname of the identity server to communicate with. May optionally
|
|
23
|
+
include a port. This parameter is ignored when the homeserver handles
|
|
24
|
+
3PID verification.
|
|
25
|
+
|
|
26
|
+
This parameter is deprecated with a plan to be removed in a future specification
|
|
27
|
+
version for `/account/password` and `/register` requests.
|
|
28
|
+
example: "id.example.com"
|
|
29
|
+
id_access_token:
|
|
30
|
+
type: string
|
|
31
|
+
description: |-
|
|
32
|
+
An access token previously registered with the identity server. Servers
|
|
33
|
+
can treat this as optional to distinguish between r0.5-compatible clients
|
|
34
|
+
and this specification version.
|
|
35
|
+
|
|
36
|
+
Required if an `id_server` is supplied.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
type: object
|
|
15
|
+
title: RequestTokenResponse
|
|
16
|
+
properties:
|
|
17
|
+
sid:
|
|
18
|
+
type: string
|
|
19
|
+
description: |-
|
|
20
|
+
The session ID. Session IDs are opaque strings that must consist entirely
|
|
21
|
+
of the characters `[0-9a-zA-Z.=_-]`. Their length must not exceed 255
|
|
22
|
+
characters and they must not be empty.
|
|
23
|
+
example: "123abc"
|
|
24
|
+
submit_url:
|
|
25
|
+
type: string
|
|
26
|
+
format: uri
|
|
27
|
+
x-changedInMatrixVersion:
|
|
28
|
+
"1.18": |-
|
|
29
|
+
The URL has the same request and response parameters and error codes as
|
|
30
|
+
the Identity Service API's endpoint.
|
|
31
|
+
description: |-
|
|
32
|
+
An optional field containing a URL where the client must submit the
|
|
33
|
+
validation token, with identical request and response parameters and error
|
|
34
|
+
codes to the Identity Service API's
|
|
35
|
+
[`POST /validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
|
|
36
|
+
and [`POST /validate/msisdn/submitToken`](/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken)
|
|
37
|
+
endpoints (without the requirement for an access token). The homeserver
|
|
38
|
+
must send this token to the user (if applicable), who should then be
|
|
39
|
+
prompted to provide it to the client.
|
|
40
|
+
|
|
41
|
+
If this field is not present, the client can assume that verification
|
|
42
|
+
will happen without the client's involvement provided the homeserver
|
|
43
|
+
advertises a sufficiently recent version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
|
|
44
|
+
response (ie: r0.5.0).
|
|
45
|
+
example: "https://example.org/path/to/submitToken"
|
|
46
|
+
required: ['sid']
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Copyright 2016 OpenMarket Ltd
|
|
2
|
+
# Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
allOf:
|
|
16
|
+
- $ref: event_filter.yaml
|
|
17
|
+
- type: object
|
|
18
|
+
title: RoomEventFilter
|
|
19
|
+
properties:
|
|
20
|
+
unread_thread_notifications:
|
|
21
|
+
type: boolean
|
|
22
|
+
description: |-
|
|
23
|
+
If `true`, enables per-[thread](/client-server-api/#threading) notification
|
|
24
|
+
counts. Only applies to the `/sync` endpoint. Defaults to `false`.
|
|
25
|
+
x-addedInMatrixVersion: "1.4"
|
|
26
|
+
lazy_load_members:
|
|
27
|
+
type: boolean
|
|
28
|
+
description: |-
|
|
29
|
+
If `true`, enables lazy-loading of membership events. See
|
|
30
|
+
[Lazy-loading room members](/client-server-api/#lazy-loading-room-members)
|
|
31
|
+
for more information. Defaults to `false`.
|
|
32
|
+
include_redundant_members:
|
|
33
|
+
type: boolean
|
|
34
|
+
description: |-
|
|
35
|
+
If `true`, sends all membership events for all events, even if they have already
|
|
36
|
+
been sent to the client. Does not
|
|
37
|
+
apply unless `lazy_load_members` is `true`. See
|
|
38
|
+
[Lazy-loading room members](/client-server-api/#lazy-loading-room-members)
|
|
39
|
+
for more information. Defaults to `false`.
|
|
40
|
+
not_rooms:
|
|
41
|
+
description: A list of room IDs to exclude. If this list is absent then no rooms
|
|
42
|
+
are excluded. A matching room will be excluded even if it is listed in the `rooms`
|
|
43
|
+
filter.
|
|
44
|
+
items:
|
|
45
|
+
type: string
|
|
46
|
+
format: mx-room-id
|
|
47
|
+
pattern: "^!"
|
|
48
|
+
type: array
|
|
49
|
+
rooms:
|
|
50
|
+
description: A list of room IDs to include. If this list is absent then all rooms
|
|
51
|
+
are included.
|
|
52
|
+
items:
|
|
53
|
+
type: string
|
|
54
|
+
format: mx-room-id
|
|
55
|
+
pattern: "^!"
|
|
56
|
+
type: array
|
|
57
|
+
contains_url:
|
|
58
|
+
type: boolean
|
|
59
|
+
description: If `true`, includes only events with a `url` key in their content. If
|
|
60
|
+
`false`, excludes those events. If omitted, `url` key is not considered for filtering.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
type: object
|
|
16
|
+
title: RoomKeyBackup
|
|
17
|
+
description: "The backed up keys for a room."
|
|
18
|
+
properties:
|
|
19
|
+
sessions:
|
|
20
|
+
type: object
|
|
21
|
+
description: "A map of session IDs to key data."
|
|
22
|
+
additionalProperties:
|
|
23
|
+
$ref: "key_backup_data.yaml"
|
|
24
|
+
example: {
|
|
25
|
+
"sessionid1": {
|
|
26
|
+
"first_message_index": 1,
|
|
27
|
+
"forwarded_count": 0,
|
|
28
|
+
"is_verified": true,
|
|
29
|
+
"session_data": {
|
|
30
|
+
"ephemeral": "base64+ephemeral+key",
|
|
31
|
+
"ciphertext": "base64+ciphertext+of+JSON+data",
|
|
32
|
+
"mac": "base64+mac+of+ciphertext"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
required:
|
|
37
|
+
- sessions
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Copyright 2025 The Matrix.org Foundation C.I.C.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
type: object
|
|
16
|
+
title: RoomSummary
|
|
17
|
+
allOf:
|
|
18
|
+
- $ref: public_rooms_chunk.yaml
|
|
19
|
+
- type: object
|
|
20
|
+
properties:
|
|
21
|
+
room_type:
|
|
22
|
+
type: string
|
|
23
|
+
description: The `type` of room (from
|
|
24
|
+
[`m.room.create`](/client-server-api/#mroomcreate)),
|
|
25
|
+
if any.
|
|
26
|
+
allowed_room_ids:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
type: string
|
|
30
|
+
format: mx-room-id
|
|
31
|
+
pattern: "^!"
|
|
32
|
+
description: |-
|
|
33
|
+
If the room is a [restricted room](/server-server-api/#restricted-rooms), these are the room IDs which
|
|
34
|
+
are specified by the join rules. Empty or omitted otherwise.
|
|
35
|
+
encryption:
|
|
36
|
+
type: string
|
|
37
|
+
enum:
|
|
38
|
+
- "m.megolm.v1.aes-sha2"
|
|
39
|
+
description: |-
|
|
40
|
+
The encryption algorithm to be used to encrypt messages sent in the
|
|
41
|
+
room.
|
|
42
|
+
room_version:
|
|
43
|
+
description: The version of the room.
|
|
44
|
+
type: string
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Copyright 2016 OpenMarket Ltd
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
accessTokenQuery:
|
|
15
|
+
type: apiKey
|
|
16
|
+
description: |-
|
|
17
|
+
**Deprecated.** The `access_token` obtained during [account registration](/client-server-api/#account-registration)
|
|
18
|
+
or [login](/client-server-api/#login), as a query parameter.
|
|
19
|
+
|
|
20
|
+
It can also be the `as_token` of an application service.
|
|
21
|
+
name: access_token
|
|
22
|
+
in: query
|
|
23
|
+
accessTokenBearer:
|
|
24
|
+
type: http
|
|
25
|
+
description: |-
|
|
26
|
+
The `access_token` obtained during [account registration](/client-server-api/#account-registration)
|
|
27
|
+
or [login](/client-server-api/#login), using the `Authorization: Bearer` header.
|
|
28
|
+
|
|
29
|
+
It can also be the `as_token` of an application service.
|
|
30
|
+
|
|
31
|
+
This is the preferred method.
|
|
32
|
+
scheme: bearer
|
|
33
|
+
appserviceAccessTokenQuery:
|
|
34
|
+
type: apiKey
|
|
35
|
+
description: |-
|
|
36
|
+
**Deprecated.** The `as_token` of an application service, as a query
|
|
37
|
+
parameter.
|
|
38
|
+
name: access_token
|
|
39
|
+
in: query
|
|
40
|
+
appserviceAccessTokenBearer:
|
|
41
|
+
type: http
|
|
42
|
+
description: |-
|
|
43
|
+
The `as_token` of an application service, using the `Authorization: Bearer`
|
|
44
|
+
header.
|
|
45
|
+
|
|
46
|
+
This is the preferred method.
|
|
47
|
+
scheme: bearer
|