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,512 @@
|
|
|
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
|
+
openapi: 3.1.0
|
|
15
|
+
info:
|
|
16
|
+
title: Matrix Client-Server Administration API
|
|
17
|
+
version: 1.0.0
|
|
18
|
+
paths:
|
|
19
|
+
"/v3/admin/whois/{userId}":
|
|
20
|
+
get:
|
|
21
|
+
summary: Gets information about a particular user.
|
|
22
|
+
description: |-
|
|
23
|
+
Gets information about a particular user.
|
|
24
|
+
|
|
25
|
+
This API may be restricted to only be called by the user being looked
|
|
26
|
+
up, or by a server admin. Server-local administrator privileges are not
|
|
27
|
+
specified in this document.
|
|
28
|
+
operationId: getWhoIs
|
|
29
|
+
security:
|
|
30
|
+
- accessTokenQuery: []
|
|
31
|
+
- accessTokenBearer: []
|
|
32
|
+
parameters:
|
|
33
|
+
- in: path
|
|
34
|
+
name: userId
|
|
35
|
+
description: The user to look up.
|
|
36
|
+
required: true
|
|
37
|
+
example: "@peter:rabbit.rocks"
|
|
38
|
+
schema:
|
|
39
|
+
type: string
|
|
40
|
+
responses:
|
|
41
|
+
"200":
|
|
42
|
+
description: The lookup was successful.
|
|
43
|
+
content:
|
|
44
|
+
application/json:
|
|
45
|
+
schema:
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
user_id:
|
|
49
|
+
type: string
|
|
50
|
+
description: The Matrix user ID of the user.
|
|
51
|
+
devices:
|
|
52
|
+
type: object
|
|
53
|
+
description: Each key is an identifier for one of the user's devices.
|
|
54
|
+
additionalProperties:
|
|
55
|
+
type: object
|
|
56
|
+
title: DeviceInfo
|
|
57
|
+
properties:
|
|
58
|
+
sessions:
|
|
59
|
+
type: array
|
|
60
|
+
description: A user's sessions (i.e. what they did with an access token from one
|
|
61
|
+
login).
|
|
62
|
+
items:
|
|
63
|
+
type: object
|
|
64
|
+
title: SessionInfo
|
|
65
|
+
properties:
|
|
66
|
+
connections:
|
|
67
|
+
type: array
|
|
68
|
+
description: Information particular connections in the session.
|
|
69
|
+
items:
|
|
70
|
+
type: object
|
|
71
|
+
title: ConnectionInfo
|
|
72
|
+
properties:
|
|
73
|
+
ip:
|
|
74
|
+
type: string
|
|
75
|
+
description: Most recently seen IP address of the session.
|
|
76
|
+
last_seen:
|
|
77
|
+
type: integer
|
|
78
|
+
format: int64
|
|
79
|
+
description: Unix timestamp that the session was last active.
|
|
80
|
+
user_agent:
|
|
81
|
+
type: string
|
|
82
|
+
description: User agent string last seen in the session.
|
|
83
|
+
examples:
|
|
84
|
+
response:
|
|
85
|
+
value: {
|
|
86
|
+
"user_id": "@peter:rabbit.rocks",
|
|
87
|
+
"devices": {
|
|
88
|
+
"teapot": {
|
|
89
|
+
"sessions": [
|
|
90
|
+
{
|
|
91
|
+
"connections": [
|
|
92
|
+
{
|
|
93
|
+
"ip": "127.0.0.1",
|
|
94
|
+
"last_seen": 1411996332123,
|
|
95
|
+
"user_agent": "curl/7.31.0-DEV"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"ip": "10.0.0.2",
|
|
99
|
+
"last_seen": 1411996332123,
|
|
100
|
+
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
tags:
|
|
109
|
+
- Server administration
|
|
110
|
+
"/v1/admin/suspend/{userId}":
|
|
111
|
+
get:
|
|
112
|
+
summary: Gets information about the suspended status of a particular user.
|
|
113
|
+
x-addedInMatrixVersion: "1.18"
|
|
114
|
+
description: |-
|
|
115
|
+
Gets information about the suspended status of a particular server-local user.
|
|
116
|
+
|
|
117
|
+
The user calling this endpoint MUST be a server admin.
|
|
118
|
+
|
|
119
|
+
In order to prevent user enumeration, servers MUST ensure that authorization is checked
|
|
120
|
+
prior to trying to do account lookups.
|
|
121
|
+
operationId: getAdminSuspendUser
|
|
122
|
+
security:
|
|
123
|
+
- accessTokenQuery: []
|
|
124
|
+
- accessTokenBearer: []
|
|
125
|
+
parameters:
|
|
126
|
+
- in: path
|
|
127
|
+
name: userId
|
|
128
|
+
description: The user to look up.
|
|
129
|
+
required: true
|
|
130
|
+
example: "@peter:rabbit.rocks"
|
|
131
|
+
schema:
|
|
132
|
+
type: string
|
|
133
|
+
format: mx-user-id
|
|
134
|
+
pattern: "^@"
|
|
135
|
+
|
|
136
|
+
responses:
|
|
137
|
+
"200":
|
|
138
|
+
description: The lookup was successful.
|
|
139
|
+
content:
|
|
140
|
+
application/json:
|
|
141
|
+
schema:
|
|
142
|
+
type: object
|
|
143
|
+
properties:
|
|
144
|
+
suspended:
|
|
145
|
+
type: boolean
|
|
146
|
+
description: Whether the target account is suspended.
|
|
147
|
+
example: true
|
|
148
|
+
required:
|
|
149
|
+
- suspended
|
|
150
|
+
examples:
|
|
151
|
+
response:
|
|
152
|
+
value: {
|
|
153
|
+
"suspended": true,
|
|
154
|
+
}
|
|
155
|
+
"400":
|
|
156
|
+
description: |-
|
|
157
|
+
The user ID does not belong to the local server. The errcode is `M_INVALID_PARAM`.
|
|
158
|
+
content:
|
|
159
|
+
application/json:
|
|
160
|
+
schema:
|
|
161
|
+
$ref: definitions/errors/error.yaml
|
|
162
|
+
examples:
|
|
163
|
+
response:
|
|
164
|
+
value: {
|
|
165
|
+
"errcode": "M_INVALID_PARAM",
|
|
166
|
+
"error": "User does not belong to the local server."
|
|
167
|
+
}
|
|
168
|
+
"403":
|
|
169
|
+
description: |-
|
|
170
|
+
The requesting user is not a server administrator, or the target user is another
|
|
171
|
+
administrator. The errcode is `M_FORBIDDEN`.
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: definitions/errors/error.yaml
|
|
176
|
+
examples:
|
|
177
|
+
response:
|
|
178
|
+
value: {
|
|
179
|
+
"errcode": "M_FORBIDDEN",
|
|
180
|
+
"error": "Requesting user is not a server administrator."
|
|
181
|
+
}
|
|
182
|
+
"404":
|
|
183
|
+
description: |-
|
|
184
|
+
The user ID is not found, or is deactivated. The errcode is `M_NOT_FOUND`.
|
|
185
|
+
content:
|
|
186
|
+
application/json:
|
|
187
|
+
schema:
|
|
188
|
+
$ref: definitions/errors/error.yaml
|
|
189
|
+
examples:
|
|
190
|
+
response:
|
|
191
|
+
value: {
|
|
192
|
+
"errcode": "M_NOT_FOUND",
|
|
193
|
+
"error": "User not found."
|
|
194
|
+
}
|
|
195
|
+
tags:
|
|
196
|
+
- Server administration
|
|
197
|
+
put:
|
|
198
|
+
summary: Set the suspended status of a particular user.
|
|
199
|
+
x-addedInMatrixVersion: "1.18"
|
|
200
|
+
description: |-
|
|
201
|
+
Sets the suspended status of a particular server-local user.
|
|
202
|
+
|
|
203
|
+
The user calling this endpoint MUST be a server admin. The client SHOULD check that the user
|
|
204
|
+
is allowed to suspend other users at the [`GET /capabilities`](/client-server-api/#get_matrixclientv3capabilities)
|
|
205
|
+
endpoint prior to using this endpoint.
|
|
206
|
+
|
|
207
|
+
In order to prevent user enumeration, servers MUST ensure that authorization is checked
|
|
208
|
+
prior to trying to do account lookups.
|
|
209
|
+
operationId: setAdminSuspendUser
|
|
210
|
+
security:
|
|
211
|
+
- accessTokenQuery: []
|
|
212
|
+
- accessTokenBearer: []
|
|
213
|
+
parameters:
|
|
214
|
+
- in: path
|
|
215
|
+
name: userId
|
|
216
|
+
description: The user to change the suspended status of.
|
|
217
|
+
required: true
|
|
218
|
+
example: "@peter:rabbit.rocks"
|
|
219
|
+
schema:
|
|
220
|
+
type: string
|
|
221
|
+
format: mx-user-id
|
|
222
|
+
pattern: "^@"
|
|
223
|
+
requestBody:
|
|
224
|
+
content:
|
|
225
|
+
application/json:
|
|
226
|
+
schema:
|
|
227
|
+
type: object
|
|
228
|
+
properties:
|
|
229
|
+
suspended:
|
|
230
|
+
type: boolean
|
|
231
|
+
description: Whether to suspend the target account.
|
|
232
|
+
example: true
|
|
233
|
+
required:
|
|
234
|
+
- suspended
|
|
235
|
+
examples:
|
|
236
|
+
request:
|
|
237
|
+
value: {
|
|
238
|
+
"suspended": true,
|
|
239
|
+
}
|
|
240
|
+
required: true
|
|
241
|
+
|
|
242
|
+
responses:
|
|
243
|
+
"200":
|
|
244
|
+
description: The action was successful.
|
|
245
|
+
content:
|
|
246
|
+
application/json:
|
|
247
|
+
schema:
|
|
248
|
+
type: object
|
|
249
|
+
properties:
|
|
250
|
+
suspended:
|
|
251
|
+
type: boolean
|
|
252
|
+
description: Whether the target account is suspended.
|
|
253
|
+
example: true
|
|
254
|
+
required:
|
|
255
|
+
- suspended
|
|
256
|
+
examples:
|
|
257
|
+
response:
|
|
258
|
+
value: {
|
|
259
|
+
"suspended": true,
|
|
260
|
+
}
|
|
261
|
+
"400":
|
|
262
|
+
description: |-
|
|
263
|
+
The user ID does not belong to the local server. The errcode is `M_INVALID_PARAM`.
|
|
264
|
+
content:
|
|
265
|
+
application/json:
|
|
266
|
+
schema:
|
|
267
|
+
$ref: definitions/errors/error.yaml
|
|
268
|
+
examples:
|
|
269
|
+
response:
|
|
270
|
+
value: {
|
|
271
|
+
"errcode": "M_INVALID_PARAM",
|
|
272
|
+
"error": "User does not belong to the local server."
|
|
273
|
+
}
|
|
274
|
+
"403":
|
|
275
|
+
description: |-
|
|
276
|
+
The requesting user is not a server administrator, is trying to suspend their own
|
|
277
|
+
account, or the target user is another administrator. The errcode is `M_FORBIDDEN`.
|
|
278
|
+
content:
|
|
279
|
+
application/json:
|
|
280
|
+
schema:
|
|
281
|
+
$ref: definitions/errors/error.yaml
|
|
282
|
+
examples:
|
|
283
|
+
response:
|
|
284
|
+
value: {
|
|
285
|
+
"errcode": "M_FORBIDDEN",
|
|
286
|
+
"error": "Requesting user is not a server administrator."
|
|
287
|
+
}
|
|
288
|
+
"404":
|
|
289
|
+
description: |-
|
|
290
|
+
The user ID is not found, or is deactivated. The errcode is `M_NOT_FOUND`.
|
|
291
|
+
content:
|
|
292
|
+
application/json:
|
|
293
|
+
schema:
|
|
294
|
+
$ref: definitions/errors/error.yaml
|
|
295
|
+
examples:
|
|
296
|
+
response:
|
|
297
|
+
value: {
|
|
298
|
+
"errcode": "M_NOT_FOUND",
|
|
299
|
+
"error": "User not found."
|
|
300
|
+
}
|
|
301
|
+
tags:
|
|
302
|
+
- Server administration
|
|
303
|
+
"/v1/admin/lock/{userId}":
|
|
304
|
+
get:
|
|
305
|
+
summary: Gets information about the locked status of a particular user.
|
|
306
|
+
x-addedInMatrixVersion: "1.18"
|
|
307
|
+
description: |-
|
|
308
|
+
Gets information about the locked status of a particular server-local user.
|
|
309
|
+
|
|
310
|
+
The user calling this endpoint MUST be a server admin.
|
|
311
|
+
|
|
312
|
+
In order to prevent user enumeration, servers MUST ensure that authorization is checked
|
|
313
|
+
prior to trying to do account lookups.
|
|
314
|
+
operationId: getAdminLockUser
|
|
315
|
+
security:
|
|
316
|
+
- accessTokenQuery: []
|
|
317
|
+
- accessTokenBearer: []
|
|
318
|
+
parameters:
|
|
319
|
+
- in: path
|
|
320
|
+
name: userId
|
|
321
|
+
description: The user to look up.
|
|
322
|
+
required: true
|
|
323
|
+
example: "@peter:rabbit.rocks"
|
|
324
|
+
schema:
|
|
325
|
+
type: string
|
|
326
|
+
format: mx-user-id
|
|
327
|
+
pattern: "^@"
|
|
328
|
+
|
|
329
|
+
responses:
|
|
330
|
+
"200":
|
|
331
|
+
description: The lookup was successful.
|
|
332
|
+
content:
|
|
333
|
+
application/json:
|
|
334
|
+
schema:
|
|
335
|
+
type: object
|
|
336
|
+
properties:
|
|
337
|
+
locked:
|
|
338
|
+
type: boolean
|
|
339
|
+
description: Whether the target account is locked.
|
|
340
|
+
required:
|
|
341
|
+
- locked
|
|
342
|
+
examples:
|
|
343
|
+
response:
|
|
344
|
+
value: {
|
|
345
|
+
"locked": true,
|
|
346
|
+
}
|
|
347
|
+
"400":
|
|
348
|
+
description: |-
|
|
349
|
+
The user ID does not belong to the local server. The errcode is `M_INVALID_PARAM`.
|
|
350
|
+
content:
|
|
351
|
+
application/json:
|
|
352
|
+
schema:
|
|
353
|
+
$ref: definitions/errors/error.yaml
|
|
354
|
+
examples:
|
|
355
|
+
response:
|
|
356
|
+
value: {
|
|
357
|
+
"errcode": "M_INVALID_PARAM",
|
|
358
|
+
"error": "User does not belong to the local server."
|
|
359
|
+
}
|
|
360
|
+
"403":
|
|
361
|
+
description: |-
|
|
362
|
+
The requesting user is not a server administrator, or the target user is another
|
|
363
|
+
administrator. The errcode is `M_FORBIDDEN`.
|
|
364
|
+
content:
|
|
365
|
+
application/json:
|
|
366
|
+
schema:
|
|
367
|
+
$ref: definitions/errors/error.yaml
|
|
368
|
+
examples:
|
|
369
|
+
response:
|
|
370
|
+
value: {
|
|
371
|
+
"errcode": "M_FORBIDDEN",
|
|
372
|
+
"error": "Requesting user is not a server administrator."
|
|
373
|
+
}
|
|
374
|
+
"404":
|
|
375
|
+
description: |-
|
|
376
|
+
The user ID is not found, or is deactivated. The errcode is `M_NOT_FOUND`.
|
|
377
|
+
content:
|
|
378
|
+
application/json:
|
|
379
|
+
schema:
|
|
380
|
+
$ref: definitions/errors/error.yaml
|
|
381
|
+
examples:
|
|
382
|
+
response:
|
|
383
|
+
value: {
|
|
384
|
+
"errcode": "M_NOT_FOUND",
|
|
385
|
+
"error": "User not found."
|
|
386
|
+
}
|
|
387
|
+
tags:
|
|
388
|
+
- Server administration
|
|
389
|
+
put:
|
|
390
|
+
summary: Set the locked status of a particular user.
|
|
391
|
+
x-addedInMatrixVersion: "1.18"
|
|
392
|
+
description: |-
|
|
393
|
+
Sets the locked status of a particular server-local user.
|
|
394
|
+
|
|
395
|
+
The user calling this endpoint MUST be a server admin. The client SHOULD check that the user
|
|
396
|
+
is allowed to lock other users at the [`GET /capabilities`](/client-server-api/#get_matrixclientv3capabilities)
|
|
397
|
+
endpoint prior to using this endpoint.
|
|
398
|
+
|
|
399
|
+
In order to prevent user enumeration, servers MUST ensure that authorization is checked
|
|
400
|
+
prior to trying to do account lookups.
|
|
401
|
+
operationId: setAdminLockUser
|
|
402
|
+
security:
|
|
403
|
+
- accessTokenQuery: []
|
|
404
|
+
- accessTokenBearer: []
|
|
405
|
+
parameters:
|
|
406
|
+
- in: path
|
|
407
|
+
name: userId
|
|
408
|
+
description: The user to change the locked status of.
|
|
409
|
+
required: true
|
|
410
|
+
example: "@peter:rabbit.rocks"
|
|
411
|
+
schema:
|
|
412
|
+
type: string
|
|
413
|
+
format: mx-user-id
|
|
414
|
+
pattern: "^@"
|
|
415
|
+
requestBody:
|
|
416
|
+
content:
|
|
417
|
+
application/json:
|
|
418
|
+
schema:
|
|
419
|
+
type: object
|
|
420
|
+
properties:
|
|
421
|
+
locked:
|
|
422
|
+
type: boolean
|
|
423
|
+
description: Whether to lock the target account.
|
|
424
|
+
example: true
|
|
425
|
+
required:
|
|
426
|
+
- locked
|
|
427
|
+
examples:
|
|
428
|
+
request:
|
|
429
|
+
value: {
|
|
430
|
+
"locked": true,
|
|
431
|
+
}
|
|
432
|
+
required: true
|
|
433
|
+
|
|
434
|
+
responses:
|
|
435
|
+
"200":
|
|
436
|
+
description: The action was successful.
|
|
437
|
+
content:
|
|
438
|
+
application/json:
|
|
439
|
+
schema:
|
|
440
|
+
type: object
|
|
441
|
+
properties:
|
|
442
|
+
locked:
|
|
443
|
+
type: boolean
|
|
444
|
+
description: Whether the target account is locked.
|
|
445
|
+
example: true
|
|
446
|
+
required:
|
|
447
|
+
- locked
|
|
448
|
+
examples:
|
|
449
|
+
response:
|
|
450
|
+
value: {
|
|
451
|
+
"locked": true,
|
|
452
|
+
}
|
|
453
|
+
"400":
|
|
454
|
+
description: |-
|
|
455
|
+
The user ID does not belong to the local server. The errcode is `M_INVALID_PARAM`.
|
|
456
|
+
content:
|
|
457
|
+
application/json:
|
|
458
|
+
schema:
|
|
459
|
+
$ref: definitions/errors/error.yaml
|
|
460
|
+
examples:
|
|
461
|
+
response:
|
|
462
|
+
value: {
|
|
463
|
+
"errcode": "M_INVALID_PARAM",
|
|
464
|
+
"error": "User does not belong to the local server."
|
|
465
|
+
}
|
|
466
|
+
"403":
|
|
467
|
+
description: |-
|
|
468
|
+
The requesting user is not a server administrator, is trying to lock their own
|
|
469
|
+
account, or the target user is another administrator. The errcode is `M_FORBIDDEN`.
|
|
470
|
+
content:
|
|
471
|
+
application/json:
|
|
472
|
+
schema:
|
|
473
|
+
$ref: definitions/errors/error.yaml
|
|
474
|
+
examples:
|
|
475
|
+
response:
|
|
476
|
+
value: {
|
|
477
|
+
"errcode": "M_FORBIDDEN",
|
|
478
|
+
"error": "Requesting user is not a server administrator."
|
|
479
|
+
}
|
|
480
|
+
"404":
|
|
481
|
+
description: |-
|
|
482
|
+
The user ID is not found, or is deactivated. The errcode is `M_NOT_FOUND`.
|
|
483
|
+
content:
|
|
484
|
+
application/json:
|
|
485
|
+
schema:
|
|
486
|
+
$ref: definitions/errors/error.yaml
|
|
487
|
+
examples:
|
|
488
|
+
response:
|
|
489
|
+
value: {
|
|
490
|
+
"errcode": "M_NOT_FOUND",
|
|
491
|
+
"error": "User not found."
|
|
492
|
+
}
|
|
493
|
+
tags:
|
|
494
|
+
- Server administration
|
|
495
|
+
servers:
|
|
496
|
+
- url: "{protocol}://{hostname}{basePath}"
|
|
497
|
+
variables:
|
|
498
|
+
protocol:
|
|
499
|
+
enum:
|
|
500
|
+
- http
|
|
501
|
+
- https
|
|
502
|
+
default: https
|
|
503
|
+
hostname:
|
|
504
|
+
default: localhost:8008
|
|
505
|
+
basePath:
|
|
506
|
+
default: /_matrix/client
|
|
507
|
+
components:
|
|
508
|
+
securitySchemes:
|
|
509
|
+
accessTokenQuery:
|
|
510
|
+
$ref: definitions/security.yaml#/accessTokenQuery
|
|
511
|
+
accessTokenBearer:
|
|
512
|
+
$ref: definitions/security.yaml#/accessTokenBearer
|