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,379 @@
|
|
|
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 Sync API
|
|
17
|
+
version: 1.0.0
|
|
18
|
+
paths:
|
|
19
|
+
/events:
|
|
20
|
+
get:
|
|
21
|
+
summary: Listen on the event stream.
|
|
22
|
+
description: |-
|
|
23
|
+
This will listen for new events and return them to the caller. This will
|
|
24
|
+
block until an event is received, or until the `timeout` is reached.
|
|
25
|
+
|
|
26
|
+
This endpoint was deprecated in r0 of this specification. Clients
|
|
27
|
+
should instead call the [`/sync`](/client-server-api/#get_matrixclientv3sync)
|
|
28
|
+
endpoint with a `since` parameter. See
|
|
29
|
+
the [migration guide](https://matrix.org/docs/guides/migrating-from-client-server-api-v-1#deprecated-endpoints).
|
|
30
|
+
operationId: getEvents
|
|
31
|
+
security:
|
|
32
|
+
- accessTokenQuery: []
|
|
33
|
+
- accessTokenBearer: []
|
|
34
|
+
parameters:
|
|
35
|
+
- in: query
|
|
36
|
+
name: from
|
|
37
|
+
description: |-
|
|
38
|
+
The token to stream from. This token is either from a previous
|
|
39
|
+
request to this API or from the initial sync API.
|
|
40
|
+
required: false
|
|
41
|
+
example: s3456_9_0
|
|
42
|
+
schema:
|
|
43
|
+
type: string
|
|
44
|
+
- in: query
|
|
45
|
+
name: timeout
|
|
46
|
+
description: The maximum time in milliseconds to wait for an event.
|
|
47
|
+
required: false
|
|
48
|
+
example: 35000
|
|
49
|
+
schema:
|
|
50
|
+
type: integer
|
|
51
|
+
responses:
|
|
52
|
+
"200":
|
|
53
|
+
description: The events received, which may be none.
|
|
54
|
+
content:
|
|
55
|
+
application/json:
|
|
56
|
+
schema:
|
|
57
|
+
type: object
|
|
58
|
+
properties:
|
|
59
|
+
start:
|
|
60
|
+
type: string
|
|
61
|
+
description: |-
|
|
62
|
+
A token which correlates to the start of `chunk`. This
|
|
63
|
+
is usually the same token supplied to `from=`.
|
|
64
|
+
end:
|
|
65
|
+
type: string
|
|
66
|
+
description: |-
|
|
67
|
+
A token which correlates to the end of `chunk`. This
|
|
68
|
+
token should be used in the next request to `/events`.
|
|
69
|
+
chunk:
|
|
70
|
+
type: array
|
|
71
|
+
description: An array of events.
|
|
72
|
+
items:
|
|
73
|
+
$ref: definitions/client_event.yaml
|
|
74
|
+
examples:
|
|
75
|
+
response:
|
|
76
|
+
value: {
|
|
77
|
+
"start": "s3456_9_0",
|
|
78
|
+
"end": "s3457_9_0",
|
|
79
|
+
"chunk": [
|
|
80
|
+
{
|
|
81
|
+
"$ref": "../../event-schemas/examples/m.room.message$m.text.yaml"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
"400":
|
|
86
|
+
description: Bad pagination `from` parameter.
|
|
87
|
+
tags:
|
|
88
|
+
- Room participation
|
|
89
|
+
deprecated: true
|
|
90
|
+
/initialSync:
|
|
91
|
+
get:
|
|
92
|
+
summary: Get the user's current state.
|
|
93
|
+
description: |-
|
|
94
|
+
This returns the full state for this user, with an optional limit on the
|
|
95
|
+
number of messages per room to return.
|
|
96
|
+
|
|
97
|
+
This endpoint was deprecated in r0 of this specification. Clients
|
|
98
|
+
should instead call the [`/sync`](/client-server-api/#get_matrixclientv3sync)
|
|
99
|
+
endpoint with no `since` parameter. See
|
|
100
|
+
the [migration guide](https://matrix.org/docs/guides/migrating-from-client-server-api-v-1#deprecated-endpoints).
|
|
101
|
+
operationId: initialSync
|
|
102
|
+
security:
|
|
103
|
+
- accessTokenQuery: []
|
|
104
|
+
- accessTokenBearer: []
|
|
105
|
+
parameters:
|
|
106
|
+
- in: query
|
|
107
|
+
name: limit
|
|
108
|
+
description: The maximum number of messages to return for each room.
|
|
109
|
+
required: false
|
|
110
|
+
example: 2
|
|
111
|
+
schema:
|
|
112
|
+
type: integer
|
|
113
|
+
- in: query
|
|
114
|
+
name: archived
|
|
115
|
+
description: |-
|
|
116
|
+
Whether to include rooms that the user has left. If `false` then
|
|
117
|
+
only rooms that the user has been invited to or has joined are
|
|
118
|
+
included. If set to `true` then rooms that the user has left are
|
|
119
|
+
included as well. By default this is `false`.
|
|
120
|
+
required: false
|
|
121
|
+
example: true
|
|
122
|
+
schema:
|
|
123
|
+
type: boolean
|
|
124
|
+
responses:
|
|
125
|
+
"200":
|
|
126
|
+
description: The user's current state.
|
|
127
|
+
content:
|
|
128
|
+
application/json:
|
|
129
|
+
schema:
|
|
130
|
+
type: object
|
|
131
|
+
properties:
|
|
132
|
+
end:
|
|
133
|
+
type: string
|
|
134
|
+
description: |-
|
|
135
|
+
A token which correlates to the end of the timelines returned. This
|
|
136
|
+
token should be used with the `/events` endpoint to listen for new
|
|
137
|
+
events.
|
|
138
|
+
presence:
|
|
139
|
+
type: array
|
|
140
|
+
description: A list of presence events.
|
|
141
|
+
items:
|
|
142
|
+
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
|
143
|
+
rooms:
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
type: object
|
|
147
|
+
title: RoomInfo
|
|
148
|
+
properties:
|
|
149
|
+
room_id:
|
|
150
|
+
type: string
|
|
151
|
+
format: mx-room-id
|
|
152
|
+
pattern: "^!"
|
|
153
|
+
description: The ID of this room.
|
|
154
|
+
membership:
|
|
155
|
+
type: string
|
|
156
|
+
description: The user's membership state in this room.
|
|
157
|
+
enum:
|
|
158
|
+
- invite
|
|
159
|
+
- join
|
|
160
|
+
- leave
|
|
161
|
+
- ban
|
|
162
|
+
invite:
|
|
163
|
+
type: object
|
|
164
|
+
title: InviteEvent
|
|
165
|
+
description: The invite event if `membership` is `invite`
|
|
166
|
+
allOf:
|
|
167
|
+
- $ref: definitions/client_event.yaml
|
|
168
|
+
messages:
|
|
169
|
+
type: object
|
|
170
|
+
title: PaginationChunk
|
|
171
|
+
description: The pagination chunk for this room.
|
|
172
|
+
properties:
|
|
173
|
+
start:
|
|
174
|
+
type: string
|
|
175
|
+
description: |-
|
|
176
|
+
A token which correlates to the start of `chunk`.
|
|
177
|
+
Can be passed to
|
|
178
|
+
[`/rooms/<room_id>/messages`](/client-server-api/#get_matrixclientv3roomsroomidmessages)
|
|
179
|
+
to retrieve earlier events.
|
|
180
|
+
|
|
181
|
+
If no earlier events are available, this property may be omitted from
|
|
182
|
+
the response.
|
|
183
|
+
end:
|
|
184
|
+
type: string
|
|
185
|
+
description: |-
|
|
186
|
+
A token which correlates to the end of `chunk`.
|
|
187
|
+
Can be passed to
|
|
188
|
+
[`/rooms/<room_id>/messages`](/client-server-api/#get_matrixclientv3roomsroomidmessages)
|
|
189
|
+
to retrieve later events.
|
|
190
|
+
chunk:
|
|
191
|
+
type: array
|
|
192
|
+
description: |-
|
|
193
|
+
If the user is a member of the room this will be a
|
|
194
|
+
list of the most recent messages for this room. If
|
|
195
|
+
the user has left the room this will be the
|
|
196
|
+
messages that preceded them leaving. This array
|
|
197
|
+
will consist of at most `limit` elements.
|
|
198
|
+
items:
|
|
199
|
+
$ref: definitions/client_event.yaml
|
|
200
|
+
required:
|
|
201
|
+
- end
|
|
202
|
+
- chunk
|
|
203
|
+
state:
|
|
204
|
+
type: array
|
|
205
|
+
description: |-
|
|
206
|
+
If the user is a member of the room this will be the
|
|
207
|
+
current state of the room as a list of events. If the
|
|
208
|
+
user has left the room this will be the state of the
|
|
209
|
+
room when they left it.
|
|
210
|
+
items:
|
|
211
|
+
$ref: definitions/client_event.yaml
|
|
212
|
+
visibility:
|
|
213
|
+
type: string
|
|
214
|
+
enum:
|
|
215
|
+
- private
|
|
216
|
+
- public
|
|
217
|
+
description: |-
|
|
218
|
+
Whether this room is visible to the `/publicRooms` API
|
|
219
|
+
or not.
|
|
220
|
+
account_data:
|
|
221
|
+
type: array
|
|
222
|
+
description: |-
|
|
223
|
+
The private data that this user has attached to
|
|
224
|
+
this room.
|
|
225
|
+
items:
|
|
226
|
+
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
|
227
|
+
required:
|
|
228
|
+
- room_id
|
|
229
|
+
- membership
|
|
230
|
+
account_data:
|
|
231
|
+
type: array
|
|
232
|
+
description: The global private data created by this user.
|
|
233
|
+
items:
|
|
234
|
+
$ref: ../../event-schemas/schema/core-event-schema/event.yaml
|
|
235
|
+
required:
|
|
236
|
+
- end
|
|
237
|
+
- rooms
|
|
238
|
+
- presence
|
|
239
|
+
examples:
|
|
240
|
+
response:
|
|
241
|
+
value: {
|
|
242
|
+
"end": "s3456_9_0",
|
|
243
|
+
"presence": [
|
|
244
|
+
{
|
|
245
|
+
"$ref": "../../event-schemas/examples/m.presence.yaml"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"account_data": [
|
|
249
|
+
{
|
|
250
|
+
"type": "org.example.custom.config",
|
|
251
|
+
"content": {
|
|
252
|
+
"custom_config_key": "custom_config_value"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"rooms": [
|
|
257
|
+
{
|
|
258
|
+
"membership": "join",
|
|
259
|
+
"messages": {
|
|
260
|
+
"chunk": [
|
|
261
|
+
{
|
|
262
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
263
|
+
"$ref": "../../event-schemas/examples/m.room.message$m.text.yaml"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
267
|
+
"$ref": "../../event-schemas/examples/m.room.message$m.video.yaml"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"end": "s3456_9_0",
|
|
271
|
+
"start": "t44-3453_9_0"
|
|
272
|
+
},
|
|
273
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
274
|
+
"state": [
|
|
275
|
+
{
|
|
276
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
277
|
+
"$ref": "../../event-schemas/examples/m.room.join_rules.yaml"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
281
|
+
"$ref": "../../event-schemas/examples/m.room.member.yaml"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
285
|
+
"$ref": "../../event-schemas/examples/m.room.create.yaml"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"room_id": "!TmaZBKYIFrIPVGoUYp:localhost",
|
|
289
|
+
"$ref": "../../event-schemas/examples/m.room.power_levels.yaml"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"visibility": "private",
|
|
293
|
+
"account_data": [
|
|
294
|
+
{
|
|
295
|
+
"type": "m.tag",
|
|
296
|
+
"content": {
|
|
297
|
+
"tags": {
|
|
298
|
+
"work": {
|
|
299
|
+
"order": 1
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"type": "org.example.custom.room.config",
|
|
306
|
+
"content": {
|
|
307
|
+
"custom_config_key": "custom_config_value"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
"404":
|
|
315
|
+
description: There is no avatar URL for this user or this user does not exist.
|
|
316
|
+
tags:
|
|
317
|
+
- Room participation
|
|
318
|
+
deprecated: true
|
|
319
|
+
"/events/{eventId}":
|
|
320
|
+
get:
|
|
321
|
+
summary: Get a single event by event ID.
|
|
322
|
+
description: |-
|
|
323
|
+
Get a single event based on `event_id`. You must have permission to
|
|
324
|
+
retrieve this event e.g. by being a member in the room for this event.
|
|
325
|
+
|
|
326
|
+
This endpoint was deprecated in r0 of this specification. Clients
|
|
327
|
+
should instead call the
|
|
328
|
+
[/rooms/{roomId}/event/{eventId}](/client-server-api/#get_matrixclientv3roomsroomideventeventid) API
|
|
329
|
+
or the [/rooms/{roomId}/context/{eventId}](/client-server-api/#get_matrixclientv3roomsroomidcontexteventid) API.
|
|
330
|
+
operationId: getOneEvent
|
|
331
|
+
security:
|
|
332
|
+
- accessTokenQuery: []
|
|
333
|
+
- accessTokenBearer: []
|
|
334
|
+
parameters:
|
|
335
|
+
- in: path
|
|
336
|
+
name: eventId
|
|
337
|
+
description: The event ID to get.
|
|
338
|
+
required: true
|
|
339
|
+
example: $asfDuShaf7Gafaw:matrix.org
|
|
340
|
+
schema:
|
|
341
|
+
type: string
|
|
342
|
+
format: mx-event-id
|
|
343
|
+
pattern: "^\\$"
|
|
344
|
+
responses:
|
|
345
|
+
"200":
|
|
346
|
+
description: The full event.
|
|
347
|
+
content:
|
|
348
|
+
application/json:
|
|
349
|
+
schema:
|
|
350
|
+
$ref: definitions/client_event.yaml
|
|
351
|
+
examples:
|
|
352
|
+
response:
|
|
353
|
+
value: {
|
|
354
|
+
"$ref": "../../event-schemas/examples/m.room.message$m.text.yaml"
|
|
355
|
+
}
|
|
356
|
+
"404":
|
|
357
|
+
description: The event was not found or you do not have permission to read this
|
|
358
|
+
event.
|
|
359
|
+
tags:
|
|
360
|
+
- Room participation
|
|
361
|
+
deprecated: true
|
|
362
|
+
servers:
|
|
363
|
+
- url: "{protocol}://{hostname}{basePath}"
|
|
364
|
+
variables:
|
|
365
|
+
protocol:
|
|
366
|
+
enum:
|
|
367
|
+
- http
|
|
368
|
+
- https
|
|
369
|
+
default: https
|
|
370
|
+
hostname:
|
|
371
|
+
default: localhost:8008
|
|
372
|
+
basePath:
|
|
373
|
+
default: /_matrix/client/v3
|
|
374
|
+
components:
|
|
375
|
+
securitySchemes:
|
|
376
|
+
accessTokenQuery:
|
|
377
|
+
$ref: definitions/security.yaml#/accessTokenQuery
|
|
378
|
+
accessTokenBearer:
|
|
379
|
+
$ref: definitions/security.yaml#/accessTokenBearer
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Copyright 2018 New Vector 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 OpenID API
|
|
17
|
+
version: 1.0.0
|
|
18
|
+
paths:
|
|
19
|
+
"/user/{userId}/openid/request_token":
|
|
20
|
+
post:
|
|
21
|
+
summary: Get an OpenID token object to verify the requester's identity.
|
|
22
|
+
description: |-
|
|
23
|
+
Gets an OpenID token object that the requester may supply to another
|
|
24
|
+
service to verify their identity in Matrix. The generated token is only
|
|
25
|
+
valid for exchanging for user information from the federation API for
|
|
26
|
+
OpenID.
|
|
27
|
+
|
|
28
|
+
The access token generated is only valid for the OpenID API. It cannot
|
|
29
|
+
be used to request another OpenID access token or call `/sync`, for
|
|
30
|
+
example.
|
|
31
|
+
operationId: requestOpenIdToken
|
|
32
|
+
security:
|
|
33
|
+
- accessTokenQuery: []
|
|
34
|
+
- accessTokenBearer: []
|
|
35
|
+
parameters:
|
|
36
|
+
- in: path
|
|
37
|
+
name: userId
|
|
38
|
+
description: |-
|
|
39
|
+
The user to request an OpenID token for. Should be the user who
|
|
40
|
+
is authenticated for the request.
|
|
41
|
+
required: true
|
|
42
|
+
example: "@alice:example.com"
|
|
43
|
+
schema:
|
|
44
|
+
type: string
|
|
45
|
+
requestBody:
|
|
46
|
+
content:
|
|
47
|
+
application/json:
|
|
48
|
+
schema:
|
|
49
|
+
type: object
|
|
50
|
+
example: {}
|
|
51
|
+
description: An empty object. Reserved for future expansion.
|
|
52
|
+
required: true
|
|
53
|
+
responses:
|
|
54
|
+
"200":
|
|
55
|
+
description: |-
|
|
56
|
+
OpenID token information. This response is nearly compatible with the
|
|
57
|
+
response documented in the
|
|
58
|
+
[OpenID Connect 1.0 Specification](http://openid.net/specs/openid-connect-core-1_0.html#TokenResponse)
|
|
59
|
+
with the only difference being the lack of an `id_token`. Instead,
|
|
60
|
+
the Matrix homeserver's name is provided.
|
|
61
|
+
content:
|
|
62
|
+
application/json:
|
|
63
|
+
schema:
|
|
64
|
+
$ref: definitions/openid_token.yaml
|
|
65
|
+
examples:
|
|
66
|
+
response:
|
|
67
|
+
value: {
|
|
68
|
+
"access_token": "SomeT0kenHere",
|
|
69
|
+
"token_type": "Bearer",
|
|
70
|
+
"matrix_server_name": "example.com",
|
|
71
|
+
"expires_in": 3600
|
|
72
|
+
}
|
|
73
|
+
"429":
|
|
74
|
+
description: This request was rate-limited.
|
|
75
|
+
content:
|
|
76
|
+
application/json:
|
|
77
|
+
schema:
|
|
78
|
+
$ref: definitions/errors/rate_limited.yaml
|
|
79
|
+
tags:
|
|
80
|
+
- OpenID
|
|
81
|
+
servers:
|
|
82
|
+
- url: "{protocol}://{hostname}{basePath}"
|
|
83
|
+
variables:
|
|
84
|
+
protocol:
|
|
85
|
+
enum:
|
|
86
|
+
- http
|
|
87
|
+
- https
|
|
88
|
+
default: https
|
|
89
|
+
hostname:
|
|
90
|
+
default: localhost:8008
|
|
91
|
+
basePath:
|
|
92
|
+
default: /_matrix/client/v3
|
|
93
|
+
components:
|
|
94
|
+
securitySchemes:
|
|
95
|
+
accessTokenQuery:
|
|
96
|
+
$ref: definitions/security.yaml#/accessTokenQuery
|
|
97
|
+
accessTokenBearer:
|
|
98
|
+
$ref: definitions/security.yaml#/accessTokenBearer
|