From 045861441ab5d1dcddf85d290497bfc39e978bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 19 Oct 2022 16:01:22 +0200 Subject: [PATCH] doc: Update Matrix spec links to v1.4 --- CONTRIBUTING.md | 6 +++--- .../ruma-appservice-api/src/event/push_events.rs | 2 +- crates/ruma-appservice-api/src/lib.rs | 10 +++++----- .../src/query/query_room_alias.rs | 2 +- .../src/query/query_user_id.rs | 2 +- .../src/thirdparty/get_location_for_protocol.rs | 2 +- .../thirdparty/get_location_for_room_alias.rs | 2 +- .../src/thirdparty/get_protocol.rs | 2 +- .../src/thirdparty/get_user_for_protocol.rs | 2 +- .../src/thirdparty/get_user_for_user_id.rs | 2 +- crates/ruma-client-api/src/account/add_3pid.rs | 2 +- crates/ruma-client-api/src/account/bind_3pid.rs | 2 +- .../src/account/change_password.rs | 2 +- .../account/check_registration_token_validity.rs | 2 +- crates/ruma-client-api/src/account/deactivate.rs | 2 +- .../ruma-client-api/src/account/delete_3pid.rs | 2 +- crates/ruma-client-api/src/account/get_3pids.rs | 2 +- .../src/account/get_username_availability.rs | 2 +- crates/ruma-client-api/src/account/register.rs | 8 ++++---- .../request_3pid_management_token_via_email.rs | 2 +- .../request_3pid_management_token_via_msisdn.rs | 2 +- .../src/account/request_openid_token.rs | 2 +- .../request_password_change_token_via_email.rs | 2 +- .../request_password_change_token_via_msisdn.rs | 2 +- .../request_registration_token_via_email.rs | 2 +- .../request_registration_token_via_msisdn.rs | 2 +- .../ruma-client-api/src/account/unbind_3pid.rs | 2 +- crates/ruma-client-api/src/account/whoami.rs | 2 +- crates/ruma-client-api/src/alias/create_alias.rs | 2 +- crates/ruma-client-api/src/alias/delete_alias.rs | 2 +- crates/ruma-client-api/src/alias/get_alias.rs | 2 +- .../src/appservice/set_room_visibility.rs | 2 +- .../src/backup/add_backup_keys.rs | 2 +- .../src/backup/add_backup_keys_for_room.rs | 2 +- .../src/backup/add_backup_keys_for_session.rs | 2 +- .../src/backup/create_backup_version.rs | 2 +- .../src/backup/delete_backup_keys.rs | 2 +- .../src/backup/delete_backup_keys_for_room.rs | 2 +- .../src/backup/delete_backup_keys_for_session.rs | 2 +- .../src/backup/delete_backup_version.rs | 2 +- .../src/backup/get_backup_info.rs | 2 +- .../src/backup/get_backup_keys.rs | 2 +- .../src/backup/get_backup_keys_for_room.rs | 2 +- .../src/backup/get_backup_keys_for_session.rs | 2 +- .../src/backup/get_latest_backup_info.rs | 2 +- .../src/backup/update_backup_version.rs | 2 +- .../src/config/get_global_account_data.rs | 2 +- .../src/config/get_room_account_data.rs | 2 +- .../src/config/set_global_account_data.rs | 2 +- .../src/config/set_room_account_data.rs | 2 +- .../ruma-client-api/src/context/get_context.rs | 2 +- .../ruma-client-api/src/device/delete_device.rs | 2 +- .../ruma-client-api/src/device/delete_devices.rs | 2 +- crates/ruma-client-api/src/device/get_device.rs | 2 +- crates/ruma-client-api/src/device/get_devices.rs | 2 +- .../ruma-client-api/src/device/update_device.rs | 2 +- .../src/directory/get_public_rooms.rs | 2 +- .../src/directory/get_public_rooms_filtered.rs | 2 +- .../src/directory/get_room_visibility.rs | 2 +- .../src/directory/set_room_visibility.rs | 2 +- .../src/discovery/discover_homeserver.rs | 2 +- .../src/discovery/get_capabilities/v3.rs | 2 +- .../src/discovery/get_supported_versions.rs | 2 +- crates/ruma-client-api/src/error.rs | 2 +- .../ruma-client-api/src/filter/create_filter.rs | 2 +- crates/ruma-client-api/src/filter/get_filter.rs | 2 +- crates/ruma-client-api/src/filter/lazy_load.rs | 2 +- crates/ruma-client-api/src/keys/claim_keys.rs | 2 +- .../ruma-client-api/src/keys/get_key_changes.rs | 2 +- crates/ruma-client-api/src/keys/get_keys.rs | 2 +- crates/ruma-client-api/src/keys/upload_keys.rs | 2 +- .../src/keys/upload_signatures.rs | 2 +- .../src/keys/upload_signing_keys.rs | 2 +- crates/ruma-client-api/src/knock/knock_room.rs | 2 +- crates/ruma-client-api/src/lib.rs | 2 +- .../ruma-client-api/src/media/create_content.rs | 2 +- crates/ruma-client-api/src/media/get_content.rs | 2 +- .../src/media/get_content_as_filename.rs | 2 +- .../src/media/get_content_thumbnail.rs | 2 +- .../src/media/get_media_config.rs | 2 +- .../src/media/get_media_preview.rs | 2 +- .../ruma-client-api/src/membership/ban_user.rs | 2 +- .../src/membership/forget_room.rs | 2 +- .../src/membership/get_member_events.rs | 2 +- .../src/membership/invite_user.rs | 4 ++-- .../src/membership/join_room_by_id.rs | 2 +- .../src/membership/join_room_by_id_or_alias.rs | 2 +- .../src/membership/joined_members.rs | 2 +- .../src/membership/joined_rooms.rs | 2 +- .../ruma-client-api/src/membership/kick_user.rs | 2 +- .../ruma-client-api/src/membership/leave_room.rs | 2 +- .../ruma-client-api/src/membership/unban_user.rs | 2 +- .../src/message/get_message_events.rs | 2 +- .../src/message/send_message_event.rs | 4 ++-- .../ruma-client-api/src/presence/get_presence.rs | 2 +- .../ruma-client-api/src/presence/set_presence.rs | 2 +- .../src/profile/get_avatar_url.rs | 2 +- .../src/profile/get_display_name.rs | 2 +- .../ruma-client-api/src/profile/get_profile.rs | 2 +- .../src/profile/set_avatar_url.rs | 2 +- .../src/profile/set_display_name.rs | 2 +- .../ruma-client-api/src/push/delete_pushrule.rs | 2 +- .../src/push/get_notifications.rs | 2 +- crates/ruma-client-api/src/push/get_pushers.rs | 2 +- crates/ruma-client-api/src/push/get_pushrule.rs | 2 +- .../src/push/get_pushrule_actions.rs | 2 +- .../src/push/get_pushrule_enabled.rs | 2 +- .../src/push/get_pushrules_all.rs | 2 +- .../src/push/get_pushrules_global_scope.rs | 2 +- crates/ruma-client-api/src/push/set_pusher.rs | 2 +- crates/ruma-client-api/src/push/set_pushrule.rs | 2 +- .../src/push/set_pushrule_actions.rs | 2 +- .../src/push/set_pushrule_enabled.rs | 2 +- .../src/read_marker/set_read_marker.rs | 2 +- .../src/receipt/create_receipt.rs | 2 +- .../ruma-client-api/src/redact/redact_event.rs | 2 +- .../src/relations/get_relating_events.rs | 2 +- .../get_relating_events_with_rel_type.rs | 2 +- ...lating_events_with_rel_type_and_event_type.rs | 2 +- crates/ruma-client-api/src/room/aliases.rs | 2 +- crates/ruma-client-api/src/room/create_room.rs | 2 +- .../ruma-client-api/src/room/get_room_event.rs | 2 +- .../ruma-client-api/src/room/report_content.rs | 2 +- crates/ruma-client-api/src/room/upgrade_room.rs | 2 +- .../ruma-client-api/src/search/search_events.rs | 2 +- .../ruma-client-api/src/server/get_user_info.rs | 2 +- .../src/session/get_login_types.rs | 2 +- crates/ruma-client-api/src/session/login.rs | 6 +++--- .../src/session/login_fallback.rs | 2 +- crates/ruma-client-api/src/session/logout.rs | 2 +- crates/ruma-client-api/src/session/logout_all.rs | 2 +- .../ruma-client-api/src/session/refresh_token.rs | 2 +- crates/ruma-client-api/src/session/sso_login.rs | 2 +- .../src/session/sso_login_with_provider.rs | 2 +- crates/ruma-client-api/src/space.rs | 2 +- .../ruma-client-api/src/space/get_hierarchy.rs | 2 +- .../src/state/get_state_events.rs | 2 +- .../src/state/get_state_events_for_key.rs | 2 +- .../src/state/send_state_event.rs | 4 ++-- .../ruma-client-api/src/sync/sync_events/v3.rs | 2 +- crates/ruma-client-api/src/tag/create_tag.rs | 2 +- crates/ruma-client-api/src/tag/delete_tag.rs | 2 +- crates/ruma-client-api/src/tag/get_tags.rs | 2 +- .../src/thirdparty/get_location_for_protocol.rs | 2 +- .../thirdparty/get_location_for_room_alias.rs | 2 +- .../src/thirdparty/get_protocol.rs | 2 +- .../src/thirdparty/get_protocols.rs | 2 +- .../src/thirdparty/get_user_for_protocol.rs | 2 +- .../src/thirdparty/get_user_for_user_id.rs | 2 +- .../src/to_device/send_event_to_device.rs | 2 +- .../src/typing/create_typing_event.rs | 2 +- crates/ruma-client-api/src/uiaa.rs | 16 ++++++++-------- .../src/uiaa/get_uiaa_fallback_page.rs | 2 +- .../src/user_directory/search_users.rs | 2 +- .../src/voip/get_turn_server_info.rs | 2 +- crates/ruma-common/src/api.rs | 4 ++-- crates/ruma-common/src/api/metadata.rs | 6 +++--- crates/ruma-common/src/doc/rich_reply.md | 2 +- crates/ruma-common/src/encryption.rs | 2 +- crates/ruma-common/src/events/call/answer.rs | 2 +- crates/ruma-common/src/events/call/candidates.rs | 2 +- crates/ruma-common/src/events/call/hangup.rs | 2 +- crates/ruma-common/src/events/call/invite.rs | 2 +- crates/ruma-common/src/events/direct.rs | 2 +- crates/ruma-common/src/events/dummy.rs | 2 +- .../ruma-common/src/events/forwarded_room_key.rs | 2 +- crates/ruma-common/src/events/fully_read.rs | 2 +- crates/ruma-common/src/events/identity_server.rs | 2 +- .../ruma-common/src/events/ignored_user_list.rs | 2 +- .../src/events/key/verification/accept.rs | 2 +- .../src/events/key/verification/cancel.rs | 2 +- .../src/events/key/verification/done.rs | 2 +- .../src/events/key/verification/key.rs | 2 +- .../src/events/key/verification/mac.rs | 2 +- .../src/events/key/verification/ready.rs | 2 +- .../src/events/key/verification/request.rs | 2 +- .../src/events/key/verification/start.rs | 4 ++-- .../ruma-common/src/events/policy/rule/room.rs | 2 +- .../ruma-common/src/events/policy/rule/server.rs | 2 +- .../ruma-common/src/events/policy/rule/user.rs | 2 +- crates/ruma-common/src/events/push_rules.rs | 2 +- crates/ruma-common/src/events/receipt.rs | 2 +- crates/ruma-common/src/events/relation.rs | 4 ++-- crates/ruma-common/src/events/room/avatar.rs | 2 +- .../src/events/room/canonical_alias.rs | 2 +- crates/ruma-common/src/events/room/create.rs | 2 +- crates/ruma-common/src/events/room/encrypted.rs | 2 +- crates/ruma-common/src/events/room/encryption.rs | 2 +- .../ruma-common/src/events/room/guest_access.rs | 2 +- .../src/events/room/history_visibility.rs | 2 +- crates/ruma-common/src/events/room/join_rules.rs | 2 +- crates/ruma-common/src/events/room/member.rs | 14 +++++++------- .../ruma-common/src/events/room/member/change.rs | 2 +- crates/ruma-common/src/events/room/message.rs | 14 +++++++------- .../ruma-common/src/events/room/message/reply.rs | 4 ++-- .../src/events/room/message/sanitize.rs | 12 ++++++------ .../room/message/sanitize/html_sanitizer.rs | 6 +++--- crates/ruma-common/src/events/room/name.rs | 2 +- .../ruma-common/src/events/room/pinned_events.rs | 2 +- .../ruma-common/src/events/room/power_levels.rs | 2 +- crates/ruma-common/src/events/room/redaction.rs | 2 +- crates/ruma-common/src/events/room/server_acl.rs | 2 +- .../src/events/room/third_party_invite.rs | 2 +- crates/ruma-common/src/events/room/tombstone.rs | 2 +- crates/ruma-common/src/events/room/topic.rs | 2 +- crates/ruma-common/src/events/room_key.rs | 2 +- .../ruma-common/src/events/room_key_request.rs | 2 +- crates/ruma-common/src/events/secret/request.rs | 2 +- crates/ruma-common/src/events/secret/send.rs | 2 +- .../src/events/secret_storage/default_key.rs | 2 +- .../ruma-common/src/events/secret_storage/key.rs | 2 +- crates/ruma-common/src/events/space.rs | 2 +- crates/ruma-common/src/events/space/child.rs | 2 +- crates/ruma-common/src/events/space/parent.rs | 2 +- crates/ruma-common/src/events/sticker.rs | 2 +- crates/ruma-common/src/events/tag.rs | 4 ++-- crates/ruma-common/src/events/typing.rs | 2 +- crates/ruma-common/src/events/unsigned.rs | 4 ++-- crates/ruma-common/src/identifiers/event_id.rs | 4 ++-- crates/ruma-common/src/identifiers/matrix_uri.rs | 4 ++-- crates/ruma-common/src/identifiers/mxc_uri.rs | 4 ++-- .../ruma-common/src/identifiers/room_alias_id.rs | 2 +- crates/ruma-common/src/identifiers/room_id.rs | 10 +++++----- .../src/identifiers/room_or_room_alias_id.rs | 4 ++-- .../src/identifiers/room_version_id.rs | 2 +- .../ruma-common/src/identifiers/server_name.rs | 2 +- crates/ruma-common/src/identifiers/user_id.rs | 2 +- crates/ruma-common/src/power_levels.rs | 2 +- crates/ruma-common/src/presence.rs | 2 +- crates/ruma-common/src/push.rs | 4 ++-- crates/ruma-common/src/push/action.rs | 2 +- crates/ruma-common/src/push/condition.rs | 4 ++-- crates/ruma-common/src/push/predefined.rs | 4 ++-- crates/ruma-common/src/thirdparty.rs | 2 +- crates/ruma-common/src/to_device.rs | 2 +- .../src/authorization/get_event_authorization.rs | 2 +- .../src/backfill/get_backfill.rs | 2 +- .../src/device/get_devices.rs | 2 +- .../src/directory/get_public_rooms.rs | 2 +- .../src/directory/get_public_rooms_filtered.rs | 2 +- .../src/discovery/discover_homeserver.rs | 2 +- .../src/discovery/get_remote_server_keys.rs | 2 +- .../discovery/get_remote_server_keys_batch.rs | 2 +- .../src/discovery/get_server_keys.rs | 2 +- .../src/discovery/get_server_version.rs | 2 +- .../ruma-federation-api/src/event/get_event.rs | 2 +- .../src/event/get_missing_events.rs | 2 +- .../src/event/get_room_state.rs | 2 +- .../src/event/get_room_state_ids.rs | 2 +- .../ruma-federation-api/src/keys/claim_keys.rs | 2 +- crates/ruma-federation-api/src/keys/get_keys.rs | 2 +- .../src/knock/create_knock_event_template.rs | 2 +- .../ruma-federation-api/src/knock/send_knock.rs | 2 +- crates/ruma-federation-api/src/lib.rs | 2 +- .../src/membership/create_invite/v1.rs | 2 +- .../src/membership/create_invite/v2.rs | 2 +- .../src/membership/create_join_event/v1.rs | 2 +- .../src/membership/create_join_event/v2.rs | 2 +- .../src/membership/create_leave_event/v1.rs | 2 +- .../src/membership/create_leave_event/v2.rs | 2 +- .../src/membership/prepare_join_event.rs | 2 +- .../src/membership/prepare_leave_event.rs | 2 +- .../src/openid/get_openid_userinfo.rs | 2 +- .../src/query/get_custom_information.rs | 2 +- .../src/query/get_profile_information.rs | 2 +- .../src/query/get_room_information.rs | 2 +- crates/ruma-federation-api/src/serde/v1_pdu.rs | 6 +++--- .../src/space/get_hierarchy.rs | 2 +- .../src/thirdparty/bind_callback.rs | 2 +- .../src/thirdparty/exchange_invite.rs | 4 ++-- .../src/transactions/send_transaction_message.rs | 2 +- crates/ruma-identifiers-validation/src/error.rs | 2 +- .../ruma-identifiers-validation/src/mxc_uri.rs | 2 +- .../ruma-identifiers-validation/src/user_id.rs | 4 ++-- .../src/association/bind_3pid.rs | 2 +- .../src/association/check_3pid_validity.rs | 2 +- .../email/create_email_validation_session.rs | 2 +- .../src/association/email/validate_email.rs | 2 +- .../email/validate_email_by_end_user.rs | 2 +- .../msisdn/create_msisdn_validation_session.rs | 2 +- .../src/association/msisdn/validate_msisdn.rs | 2 +- .../msisdn/validate_msisdn_by_phone_number.rs | 2 +- .../src/association/unbind_3pid.rs | 2 +- .../authentication/get_account_information.rs | 2 +- .../src/authentication/logout.rs | 2 +- .../src/authentication/register.rs | 2 +- .../src/discovery/get_server_status.rs | 2 +- .../src/discovery/get_supported_versions.rs | 2 +- .../src/invitation/sign_invitation_ed25519.rs | 2 +- .../src/invitation/store_invitation.rs | 2 +- .../src/keys/check_public_key_validity.rs | 2 +- .../src/keys/get_public_key.rs | 2 +- .../src/keys/validate_ephemeral_key.rs | 2 +- crates/ruma-identity-service-api/src/lib.rs | 2 +- .../src/lookup/get_hash_parameters.rs | 2 +- .../src/lookup/lookup_3pid.rs | 2 +- .../src/tos/accept_terms_of_service.rs | 2 +- .../src/tos/get_terms_of_service.rs | 2 +- crates/ruma-push-gateway-api/src/lib.rs | 2 +- .../src/send_event_notification.rs | 2 +- crates/ruma-server-util/src/authorization.rs | 2 +- crates/ruma-signatures/src/functions.rs | 2 +- crates/ruma-state-res/src/event_auth.rs | 2 +- crates/ruma-state-res/src/room_version.rs | 2 +- crates/ruma/src/lib.rs | 2 +- 305 files changed, 368 insertions(+), 368 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbccacfc..eff74b18 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,7 +20,7 @@ Here is a list of helpful resources you can consult: ## Documentation -- [Matrix spec Documentation](https://spec.matrix.org/v1.2/) +- [Matrix spec Documentation](https://spec.matrix.org/v1.4/) ## Chat Rooms @@ -154,7 +154,7 @@ the latest minor version of the Matrix specification. ### Endpoint Module Structure -Matrix uses [versioned endpoints](https://spec.matrix.org/v1.2/#endpoint-versioning) (with a few small exceptions), +Matrix uses [versioned endpoints](https://spec.matrix.org/v1.4/#endpoint-versioning) (with a few small exceptions), we follow this versioning approach in modules as well. We structure endpoints and their versions like the following; @@ -192,7 +192,7 @@ Then, in the subsequent version module, embed the version and specification link pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3sync + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3sync } ``` diff --git a/crates/ruma-appservice-api/src/event/push_events.rs b/crates/ruma-appservice-api/src/event/push_events.rs index 95f45867..705e79a0 100644 --- a/crates/ruma-appservice-api/src/event/push_events.rs +++ b/crates/ruma-appservice-api/src/event/push_events.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#put_matrixappv1transactionstxnid + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#put_matrixappv1transactionstxnid use ruma_common::{ api::ruma_api, events::AnyTimelineEvent, serde::Raw, OwnedTransactionId, TransactionId, diff --git a/crates/ruma-appservice-api/src/lib.rs b/crates/ruma-appservice-api/src/lib.rs index 538faa47..295cf94f 100644 --- a/crates/ruma-appservice-api/src/lib.rs +++ b/crates/ruma-appservice-api/src/lib.rs @@ -3,7 +3,7 @@ //! (De)serializable types for the [Matrix Application Service API][appservice-api]. //! These types can be shared by application service and server code. //! -//! [appservice-api]: https://spec.matrix.org/v1.2/application-service-api/ +//! [appservice-api]: https://spec.matrix.org/v1.4/application-service-api/ #![warn(missing_docs)] @@ -15,7 +15,7 @@ pub mod thirdparty; /// A namespace defined by an application service. /// -/// Used for [appservice registration](https://spec.matrix.org/v1.2/application-service-api/#registration). +/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration). #[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Namespace { @@ -35,7 +35,7 @@ impl Namespace { /// Namespaces defined by an application service. /// -/// Used for [appservice registration](https://spec.matrix.org/v1.2/application-service-api/#registration). +/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration). #[derive(Clone, Debug, Default, Serialize, Deserialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Namespaces { @@ -65,7 +65,7 @@ impl Namespaces { /// To create an instance of this type, first create a `RegistrationInit` and convert it via /// `Registration::from` / `.into()`. /// -/// Used for [appservice registration](https://spec.matrix.org/v1.2/application-service-api/#registration). +/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration). #[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Registration { @@ -103,7 +103,7 @@ pub struct Registration { /// This struct will not be updated even if additional fields are added to `Registration` in a new /// (non-breaking) release of the Matrix specification. /// -/// Used for [appservice registration](https://spec.matrix.org/v1.2/application-service-api/#registration). +/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration). #[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct RegistrationInit { diff --git a/crates/ruma-appservice-api/src/query/query_room_alias.rs b/crates/ruma-appservice-api/src/query/query_room_alias.rs index e83e4981..0c0fbee0 100644 --- a/crates/ruma-appservice-api/src/query/query_room_alias.rs +++ b/crates/ruma-appservice-api/src/query/query_room_alias.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1roomsroomalias + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1roomsroomalias use ruma_common::{api::ruma_api, RoomAliasId}; diff --git a/crates/ruma-appservice-api/src/query/query_user_id.rs b/crates/ruma-appservice-api/src/query/query_user_id.rs index 8864e337..ce075815 100644 --- a/crates/ruma-appservice-api/src/query/query_user_id.rs +++ b/crates/ruma-appservice-api/src/query/query_user_id.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1usersuserid + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1usersuserid use ruma_common::{api::ruma_api, UserId}; diff --git a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs b/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs index e257545a..1081521e 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1thirdpartylocationprotocol + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartylocationprotocol use std::collections::BTreeMap; diff --git a/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias.rs b/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias.rs index 8cdd788a..6150fe8d 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1thirdpartylocation + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartylocation use ruma_common::{api::ruma_api, thirdparty::Location, RoomAliasId}; diff --git a/crates/ruma-appservice-api/src/thirdparty/get_protocol.rs b/crates/ruma-appservice-api/src/thirdparty/get_protocol.rs index 00295a51..a303a523 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_protocol.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_protocol.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1thirdpartyprotocolprotocol + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyprotocolprotocol use ruma_common::{api::ruma_api, thirdparty::Protocol}; diff --git a/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol.rs b/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol.rs index a090078e..b8ceb805 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1thirdpartyuserprotocol + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyuserprotocol use std::collections::BTreeMap; diff --git a/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id.rs b/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id.rs index ca99ed8c..63fb5caf 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#get_matrixappv1thirdpartyuser + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyuser use ruma_common::{api::ruma_api, thirdparty::User, UserId}; diff --git a/crates/ruma-client-api/src/account/add_3pid.rs b/crates/ruma-client-api/src/account/add_3pid.rs index 998ef8e9..a43a3928 100644 --- a/crates/ruma-client-api/src/account/add_3pid.rs +++ b/crates/ruma-client-api/src/account/add_3pid.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3pidadd + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidadd use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-client-api/src/account/bind_3pid.rs b/crates/ruma-client-api/src/account/bind_3pid.rs index a352448e..d45a47dd 100644 --- a/crates/ruma-client-api/src/account/bind_3pid.rs +++ b/crates/ruma-client-api/src/account/bind_3pid.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3pidbind + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidbind use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-client-api/src/account/change_password.rs b/crates/ruma-client-api/src/account/change_password.rs index 2418ec9b..d19292be 100644 --- a/crates/ruma-client-api/src/account/change_password.rs +++ b/crates/ruma-client-api/src/account/change_password.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3accountpassword + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpassword use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/account/check_registration_token_validity.rs b/crates/ruma-client-api/src/account/check_registration_token_validity.rs index bf045894..338497b8 100644 --- a/crates/ruma-client-api/src/account/check_registration_token_validity.rs +++ b/crates/ruma-client-api/src/account/check_registration_token_validity.rs @@ -3,7 +3,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv1registermloginregistration_tokenvalidity + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1registermloginregistration_tokenvalidity use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/account/deactivate.rs b/crates/ruma-client-api/src/account/deactivate.rs index 16c9782c..20f978e4 100644 --- a/crates/ruma-client-api/src/account/deactivate.rs +++ b/crates/ruma-client-api/src/account/deactivate.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3accountdeactivate + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountdeactivate use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/account/delete_3pid.rs b/crates/ruma-client-api/src/account/delete_3pid.rs index eb563208..ee5e67c1 100644 --- a/crates/ruma-client-api/src/account/delete_3pid.rs +++ b/crates/ruma-client-api/src/account/delete_3pid.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3piddelete + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3piddelete use ruma_common::{api::ruma_api, thirdparty::Medium}; diff --git a/crates/ruma-client-api/src/account/get_3pids.rs b/crates/ruma-client-api/src/account/get_3pids.rs index a0b51f73..68accf5b 100644 --- a/crates/ruma-client-api/src/account/get_3pids.rs +++ b/crates/ruma-client-api/src/account/get_3pids.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3account3pid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3account3pid use ruma_common::{api::ruma_api, thirdparty::ThirdPartyIdentifier}; diff --git a/crates/ruma-client-api/src/account/get_username_availability.rs b/crates/ruma-client-api/src/account/get_username_availability.rs index 528dfba2..1eaceab3 100644 --- a/crates/ruma-client-api/src/account/get_username_availability.rs +++ b/crates/ruma-client-api/src/account/get_username_availability.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3registeravailable + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3registeravailable use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/account/register.rs b/crates/ruma-client-api/src/account/register.rs index 651aa096..0bb01fda 100644 --- a/crates/ruma-client-api/src/account/register.rs +++ b/crates/ruma-client-api/src/account/register.rs @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize}; pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3register + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3register use std::time::Duration; @@ -80,13 +80,13 @@ pub mod v3 { /// Appservices can [bypass the registration flows][admin] entirely by providing their /// token in the header and setting this login `type` to `m.login.application_service`. /// - /// [admin]: https://spec.matrix.org/v1.2/application-service-api/#server-admin-style-permissions + /// [admin]: https://spec.matrix.org/v1.4/application-service-api/#server-admin-style-permissions #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub login_type: Option<&'a LoginType>, /// If set to `true`, the client supports [refresh tokens]. /// - /// [refresh tokens]: https://spec.matrix.org/v1.3/client-server-api/#refreshing-access-tokens + /// [refresh tokens]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens #[serde(default, skip_serializing_if = "ruma_common::serde::is_default")] pub refresh_token: bool, } @@ -117,7 +117,7 @@ pub mod v3 { /// /// Omitted if the request's `inhibit_login` was set to `true`. /// - /// [refresh token]: https://spec.matrix.org/v1.3/client-server-api/#refreshing-access-tokens + /// [refresh token]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens /// [`refresh_token`]: crate::session::refresh_token #[serde(skip_serializing_if = "Option::is_none")] pub refresh_token: Option, diff --git a/crates/ruma-client-api/src/account/request_3pid_management_token_via_email.rs b/crates/ruma-client-api/src/account/request_3pid_management_token_via_email.rs index 6fb3c2ef..ceb64b49 100644 --- a/crates/ruma-client-api/src/account/request_3pid_management_token_via_email.rs +++ b/crates/ruma-client-api/src/account/request_3pid_management_token_via_email.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3pidemailrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidemailrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/request_3pid_management_token_via_msisdn.rs b/crates/ruma-client-api/src/account/request_3pid_management_token_via_msisdn.rs index 2e86fc62..7447893a 100644 --- a/crates/ruma-client-api/src/account/request_3pid_management_token_via_msisdn.rs +++ b/crates/ruma-client-api/src/account/request_3pid_management_token_via_msisdn.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3pidmsisdnrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidmsisdnrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/request_openid_token.rs b/crates/ruma-client-api/src/account/request_openid_token.rs index f5163793..deca0de1 100644 --- a/crates/ruma-client-api/src/account/request_openid_token.rs +++ b/crates/ruma-client-api/src/account/request_openid_token.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3useruseridopenidrequest_token + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3useruseridopenidrequest_token use std::time::Duration; diff --git a/crates/ruma-client-api/src/account/request_password_change_token_via_email.rs b/crates/ruma-client-api/src/account/request_password_change_token_via_email.rs index 0b80c5e3..f95338e3 100644 --- a/crates/ruma-client-api/src/account/request_password_change_token_via_email.rs +++ b/crates/ruma-client-api/src/account/request_password_change_token_via_email.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/request_password_change_token_via_msisdn.rs b/crates/ruma-client-api/src/account/request_password_change_token_via_msisdn.rs index a1b465c2..953fb25a 100644 --- a/crates/ruma-client-api/src/account/request_password_change_token_via_msisdn.rs +++ b/crates/ruma-client-api/src/account/request_password_change_token_via_msisdn.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3accountpasswordmsisdnrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpasswordmsisdnrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/request_registration_token_via_email.rs b/crates/ruma-client-api/src/account/request_registration_token_via_email.rs index 13bc9927..ca6a56bc 100644 --- a/crates/ruma-client-api/src/account/request_registration_token_via_email.rs +++ b/crates/ruma-client-api/src/account/request_registration_token_via_email.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3registeremailrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3registeremailrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/request_registration_token_via_msisdn.rs b/crates/ruma-client-api/src/account/request_registration_token_via_msisdn.rs index 55b5bcf0..63490f82 100644 --- a/crates/ruma-client-api/src/account/request_registration_token_via_msisdn.rs +++ b/crates/ruma-client-api/src/account/request_registration_token_via_msisdn.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3registermsisdnrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3registermsisdnrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-client-api/src/account/unbind_3pid.rs b/crates/ruma-client-api/src/account/unbind_3pid.rs index 17714913..45679ddf 100644 --- a/crates/ruma-client-api/src/account/unbind_3pid.rs +++ b/crates/ruma-client-api/src/account/unbind_3pid.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3account3pidunbind + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidunbind use ruma_common::{api::ruma_api, thirdparty::Medium}; diff --git a/crates/ruma-client-api/src/account/whoami.rs b/crates/ruma-client-api/src/account/whoami.rs index 1adea7e0..e3a760bf 100644 --- a/crates/ruma-client-api/src/account/whoami.rs +++ b/crates/ruma-client-api/src/account/whoami.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3accountwhoami + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3accountwhoami use ruma_common::{api::ruma_api, OwnedDeviceId, OwnedUserId}; diff --git a/crates/ruma-client-api/src/alias/create_alias.rs b/crates/ruma-client-api/src/alias/create_alias.rs index 4feb4f2a..1871afac 100644 --- a/crates/ruma-client-api/src/alias/create_alias.rs +++ b/crates/ruma-client-api/src/alias/create_alias.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3directoryroomroomalias + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3directoryroomroomalias use ruma_common::{api::ruma_api, RoomAliasId, RoomId}; diff --git a/crates/ruma-client-api/src/alias/delete_alias.rs b/crates/ruma-client-api/src/alias/delete_alias.rs index e207bd0e..26367e49 100644 --- a/crates/ruma-client-api/src/alias/delete_alias.rs +++ b/crates/ruma-client-api/src/alias/delete_alias.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3directoryroomroomalias + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3directoryroomroomalias use ruma_common::{api::ruma_api, RoomAliasId}; diff --git a/crates/ruma-client-api/src/alias/get_alias.rs b/crates/ruma-client-api/src/alias/get_alias.rs index 786a24ff..61d63b71 100644 --- a/crates/ruma-client-api/src/alias/get_alias.rs +++ b/crates/ruma-client-api/src/alias/get_alias.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3directoryroomroomalias + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3directoryroomroomalias use ruma_common::{api::ruma_api, OwnedRoomId, OwnedServerName, RoomAliasId}; diff --git a/crates/ruma-client-api/src/appservice/set_room_visibility.rs b/crates/ruma-client-api/src/appservice/set_room_visibility.rs index 9c2a19d3..9d5b5209 100644 --- a/crates/ruma-client-api/src/appservice/set_room_visibility.rs +++ b/crates/ruma-client-api/src/appservice/set_room_visibility.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/application-service-api/#put_matrixclientv3directorylistappservicenetworkidroomid + //! [spec]: https://spec.matrix.org/v1.4/application-service-api/#put_matrixclientv3directorylistappservicenetworkidroomid use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/backup/add_backup_keys.rs b/crates/ruma-client-api/src/backup/add_backup_keys.rs index 8859f5b5..1cb4fb7b 100644 --- a/crates/ruma-client-api/src/backup/add_backup_keys.rs +++ b/crates/ruma-client-api/src/backup/add_backup_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3room_keyskeys + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeys use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/backup/add_backup_keys_for_room.rs b/crates/ruma-client-api/src/backup/add_backup_keys_for_room.rs index 0a1cf8be..5a464ee7 100644 --- a/crates/ruma-client-api/src/backup/add_backup_keys_for_room.rs +++ b/crates/ruma-client-api/src/backup/add_backup_keys_for_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3room_keyskeysroomid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeysroomid use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/backup/add_backup_keys_for_session.rs b/crates/ruma-client-api/src/backup/add_backup_keys_for_session.rs index 358bb676..522d3f7e 100644 --- a/crates/ruma-client-api/src/backup/add_backup_keys_for_session.rs +++ b/crates/ruma-client-api/src/backup/add_backup_keys_for_session.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid use js_int::UInt; use ruma_common::{api::ruma_api, serde::Raw, RoomId}; diff --git a/crates/ruma-client-api/src/backup/create_backup_version.rs b/crates/ruma-client-api/src/backup/create_backup_version.rs index 57d73710..b625e92c 100644 --- a/crates/ruma-client-api/src/backup/create_backup_version.rs +++ b/crates/ruma-client-api/src/backup/create_backup_version.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3room_keysversion + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3room_keysversion use ruma_common::{api::ruma_api, serde::Raw}; diff --git a/crates/ruma-client-api/src/backup/delete_backup_keys.rs b/crates/ruma-client-api/src/backup/delete_backup_keys.rs index 26432ee5..bead9ba5 100644 --- a/crates/ruma-client-api/src/backup/delete_backup_keys.rs +++ b/crates/ruma-client-api/src/backup/delete_backup_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3room_keyskeys + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeys //! //! This deletes keys from a backup version, but not the version itself. diff --git a/crates/ruma-client-api/src/backup/delete_backup_keys_for_room.rs b/crates/ruma-client-api/src/backup/delete_backup_keys_for_room.rs index 40711833..4365dc95 100644 --- a/crates/ruma-client-api/src/backup/delete_backup_keys_for_room.rs +++ b/crates/ruma-client-api/src/backup/delete_backup_keys_for_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3room_keyskeysroomid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeysroomid use js_int::UInt; use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/backup/delete_backup_keys_for_session.rs b/crates/ruma-client-api/src/backup/delete_backup_keys_for_session.rs index 2da5b65e..2a402109 100644 --- a/crates/ruma-client-api/src/backup/delete_backup_keys_for_session.rs +++ b/crates/ruma-client-api/src/backup/delete_backup_keys_for_session.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid use js_int::UInt; use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/backup/delete_backup_version.rs b/crates/ruma-client-api/src/backup/delete_backup_version.rs index 0ee1f1e7..5edb901d 100644 --- a/crates/ruma-client-api/src/backup/delete_backup_version.rs +++ b/crates/ruma-client-api/src/backup/delete_backup_version.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3room_keysversionversion + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keysversionversion //! //! This deletes a backup version and its room keys. diff --git a/crates/ruma-client-api/src/backup/get_backup_info.rs b/crates/ruma-client-api/src/backup/get_backup_info.rs index 4245a353..fda928fc 100644 --- a/crates/ruma-client-api/src/backup/get_backup_info.rs +++ b/crates/ruma-client-api/src/backup/get_backup_info.rs @@ -5,7 +5,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3room_keysversionversion + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keysversionversion use js_int::UInt; use ruma_common::{api::ruma_api, serde::Raw}; diff --git a/crates/ruma-client-api/src/backup/get_backup_keys.rs b/crates/ruma-client-api/src/backup/get_backup_keys.rs index a607c6fa..3aa23fc8 100644 --- a/crates/ruma-client-api/src/backup/get_backup_keys.rs +++ b/crates/ruma-client-api/src/backup/get_backup_keys.rs @@ -5,7 +5,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3room_keyskeys + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeys use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/backup/get_backup_keys_for_room.rs b/crates/ruma-client-api/src/backup/get_backup_keys_for_room.rs index 5c315a3b..cdd0aeb9 100644 --- a/crates/ruma-client-api/src/backup/get_backup_keys_for_room.rs +++ b/crates/ruma-client-api/src/backup/get_backup_keys_for_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3room_keyskeysroomid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeysroomid use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/backup/get_backup_keys_for_session.rs b/crates/ruma-client-api/src/backup/get_backup_keys_for_session.rs index 3946faac..259bb3ef 100644 --- a/crates/ruma-client-api/src/backup/get_backup_keys_for_session.rs +++ b/crates/ruma-client-api/src/backup/get_backup_keys_for_session.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid use ruma_common::{api::ruma_api, serde::Raw, RoomId}; diff --git a/crates/ruma-client-api/src/backup/get_latest_backup_info.rs b/crates/ruma-client-api/src/backup/get_latest_backup_info.rs index 038cbbc4..8df7a471 100644 --- a/crates/ruma-client-api/src/backup/get_latest_backup_info.rs +++ b/crates/ruma-client-api/src/backup/get_latest_backup_info.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3room_keysversion + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keysversion use js_int::UInt; use ruma_common::{api::ruma_api, serde::Raw}; diff --git a/crates/ruma-client-api/src/backup/update_backup_version.rs b/crates/ruma-client-api/src/backup/update_backup_version.rs index 795e5dbb..3d8fea3b 100644 --- a/crates/ruma-client-api/src/backup/update_backup_version.rs +++ b/crates/ruma-client-api/src/backup/update_backup_version.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3room_keysversionversion + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keysversionversion use ruma_common::{api::ruma_api, serde::Raw}; diff --git a/crates/ruma-client-api/src/config/get_global_account_data.rs b/crates/ruma-client-api/src/config/get_global_account_data.rs index 123bf4ea..cdcdd7b1 100644 --- a/crates/ruma-client-api/src/config/get_global_account_data.rs +++ b/crates/ruma-client-api/src/config/get_global_account_data.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3useruseridaccount_datatype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridaccount_datatype use ruma_common::{ api::ruma_api, events::AnyGlobalAccountDataEventContent, serde::Raw, UserId, diff --git a/crates/ruma-client-api/src/config/get_room_account_data.rs b/crates/ruma-client-api/src/config/get_room_account_data.rs index 2f61140a..d3e3b0f1 100644 --- a/crates/ruma-client-api/src/config/get_room_account_data.rs +++ b/crates/ruma-client-api/src/config/get_room_account_data.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3useruseridroomsroomidaccount_datatype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridroomsroomidaccount_datatype use ruma_common::{ api::ruma_api, events::AnyRoomAccountDataEventContent, serde::Raw, RoomId, UserId, diff --git a/crates/ruma-client-api/src/config/set_global_account_data.rs b/crates/ruma-client-api/src/config/set_global_account_data.rs index 5ae4ad4b..585bd0c2 100644 --- a/crates/ruma-client-api/src/config/set_global_account_data.rs +++ b/crates/ruma-client-api/src/config/set_global_account_data.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3useruseridaccount_datatype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridaccount_datatype use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/config/set_room_account_data.rs b/crates/ruma-client-api/src/config/set_room_account_data.rs index 1661be25..7b6d236a 100644 --- a/crates/ruma-client-api/src/config/set_room_account_data.rs +++ b/crates/ruma-client-api/src/config/set_room_account_data.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3useruseridroomsroomidaccount_datatype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridroomsroomidaccount_datatype use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/context/get_context.rs b/crates/ruma-client-api/src/context/get_context.rs index 6311bf89..7424fe0e 100644 --- a/crates/ruma-client-api/src/context/get_context.rs +++ b/crates/ruma-client-api/src/context/get_context.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidcontexteventid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidcontexteventid use js_int::{uint, UInt}; use ruma_common::{ diff --git a/crates/ruma-client-api/src/device/delete_device.rs b/crates/ruma-client-api/src/device/delete_device.rs index 51a1136b..6091328f 100644 --- a/crates/ruma-client-api/src/device/delete_device.rs +++ b/crates/ruma-client-api/src/device/delete_device.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3devicesdeviceid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3devicesdeviceid use ruma_common::{api::ruma_api, DeviceId}; diff --git a/crates/ruma-client-api/src/device/delete_devices.rs b/crates/ruma-client-api/src/device/delete_devices.rs index 1b5ba652..95069dd7 100644 --- a/crates/ruma-client-api/src/device/delete_devices.rs +++ b/crates/ruma-client-api/src/device/delete_devices.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3delete_devices + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3delete_devices use ruma_common::{api::ruma_api, OwnedDeviceId}; diff --git a/crates/ruma-client-api/src/device/get_device.rs b/crates/ruma-client-api/src/device/get_device.rs index d04d07db..17b92142 100644 --- a/crates/ruma-client-api/src/device/get_device.rs +++ b/crates/ruma-client-api/src/device/get_device.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3devicesdeviceid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3devicesdeviceid use ruma_common::{api::ruma_api, DeviceId}; diff --git a/crates/ruma-client-api/src/device/get_devices.rs b/crates/ruma-client-api/src/device/get_devices.rs index 743d5140..db8be368 100644 --- a/crates/ruma-client-api/src/device/get_devices.rs +++ b/crates/ruma-client-api/src/device/get_devices.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3devices + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3devices use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/device/update_device.rs b/crates/ruma-client-api/src/device/update_device.rs index e56b4003..b146fcec 100644 --- a/crates/ruma-client-api/src/device/update_device.rs +++ b/crates/ruma-client-api/src/device/update_device.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3devicesdeviceid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3devicesdeviceid use ruma_common::{api::ruma_api, DeviceId}; diff --git a/crates/ruma-client-api/src/directory/get_public_rooms.rs b/crates/ruma-client-api/src/directory/get_public_rooms.rs index 1eca9513..3750fec6 100644 --- a/crates/ruma-client-api/src/directory/get_public_rooms.rs +++ b/crates/ruma-client-api/src/directory/get_public_rooms.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3publicrooms + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3publicrooms use js_int::UInt; use ruma_common::{api::ruma_api, directory::PublicRoomsChunk, ServerName}; diff --git a/crates/ruma-client-api/src/directory/get_public_rooms_filtered.rs b/crates/ruma-client-api/src/directory/get_public_rooms_filtered.rs index 316cc3a6..970c305d 100644 --- a/crates/ruma-client-api/src/directory/get_public_rooms_filtered.rs +++ b/crates/ruma-client-api/src/directory/get_public_rooms_filtered.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3publicrooms + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3publicrooms use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-client-api/src/directory/get_room_visibility.rs b/crates/ruma-client-api/src/directory/get_room_visibility.rs index 41ac7569..a555a18e 100644 --- a/crates/ruma-client-api/src/directory/get_room_visibility.rs +++ b/crates/ruma-client-api/src/directory/get_room_visibility.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3directorylistroomroomid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3directorylistroomroomid use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/directory/set_room_visibility.rs b/crates/ruma-client-api/src/directory/set_room_visibility.rs index 45b4069d..060af428 100644 --- a/crates/ruma-client-api/src/directory/set_room_visibility.rs +++ b/crates/ruma-client-api/src/directory/set_room_visibility.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3directorylistroomroomid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3directorylistroomroomid use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/discovery/discover_homeserver.rs b/crates/ruma-client-api/src/discovery/discover_homeserver.rs index a21a9b29..a5309e90 100644 --- a/crates/ruma-client-api/src/discovery/discover_homeserver.rs +++ b/crates/ruma-client-api/src/discovery/discover_homeserver.rs @@ -1,6 +1,6 @@ //! `GET /.well-known/matrix/client` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#getwell-knownmatrixclient +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#getwell-knownmatrixclient use ruma_common::api::ruma_api; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-client-api/src/discovery/get_capabilities/v3.rs b/crates/ruma-client-api/src/discovery/get_capabilities/v3.rs index 9793f13b..726c49a2 100644 --- a/crates/ruma-client-api/src/discovery/get_capabilities/v3.rs +++ b/crates/ruma-client-api/src/discovery/get_capabilities/v3.rs @@ -1,6 +1,6 @@ //! `/v3/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3capabilities +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3capabilities use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/discovery/get_supported_versions.rs b/crates/ruma-client-api/src/discovery/get_supported_versions.rs index 10103420..80a1065f 100644 --- a/crates/ruma-client-api/src/discovery/get_supported_versions.rs +++ b/crates/ruma-client-api/src/discovery/get_supported_versions.rs @@ -1,6 +1,6 @@ //! `GET /_matrix/client/versions` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientversions +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientversions use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/error.rs b/crates/ruma-client-api/src/error.rs index 650013d3..b26db667 100644 --- a/crates/ruma-client-api/src/error.rs +++ b/crates/ruma-client-api/src/error.rs @@ -35,7 +35,7 @@ pub enum ErrorKind { /// /// For more information, see [the spec]. /// - /// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#soft-logout + /// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#soft-logout soft_logout: bool, }, diff --git a/crates/ruma-client-api/src/filter/create_filter.rs b/crates/ruma-client-api/src/filter/create_filter.rs index 349c1bce..825915dc 100644 --- a/crates/ruma-client-api/src/filter/create_filter.rs +++ b/crates/ruma-client-api/src/filter/create_filter.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3useruseridfilter + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3useruseridfilter use ruma_common::{api::ruma_api, UserId}; diff --git a/crates/ruma-client-api/src/filter/get_filter.rs b/crates/ruma-client-api/src/filter/get_filter.rs index 6de70ce8..e0131419 100644 --- a/crates/ruma-client-api/src/filter/get_filter.rs +++ b/crates/ruma-client-api/src/filter/get_filter.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3useruseridfilterfilterid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridfilterfilterid use ruma_common::{api::ruma_api, UserId}; diff --git a/crates/ruma-client-api/src/filter/lazy_load.rs b/crates/ruma-client-api/src/filter/lazy_load.rs index bd6e3891..a1835ec9 100644 --- a/crates/ruma-client-api/src/filter/lazy_load.rs +++ b/crates/ruma-client-api/src/filter/lazy_load.rs @@ -3,7 +3,7 @@ use serde::{ser::SerializeStruct as _, Deserialize, Serialize, Serializer}; /// Specifies options for [lazy-loading membership events][lazy-loading] on /// supported endpoints /// -/// [lazy-loading]: https://spec.matrix.org/v1.2/client-server-api/#lazy-loading-room-members +/// [lazy-loading]: https://spec.matrix.org/v1.4/client-server-api/#lazy-loading-room-members #[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Deserialize)] #[serde(from = "LazyLoadJsonRepr")] #[allow(clippy::exhaustive_enums)] diff --git a/crates/ruma-client-api/src/keys/claim_keys.rs b/crates/ruma-client-api/src/keys/claim_keys.rs index baf642b5..4726318f 100644 --- a/crates/ruma-client-api/src/keys/claim_keys.rs +++ b/crates/ruma-client-api/src/keys/claim_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysclaim + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysclaim use std::{collections::BTreeMap, time::Duration}; diff --git a/crates/ruma-client-api/src/keys/get_key_changes.rs b/crates/ruma-client-api/src/keys/get_key_changes.rs index d5607dba..7d281f1e 100644 --- a/crates/ruma-client-api/src/keys/get_key_changes.rs +++ b/crates/ruma-client-api/src/keys/get_key_changes.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3keyschanges + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3keyschanges use ruma_common::{api::ruma_api, OwnedUserId}; diff --git a/crates/ruma-client-api/src/keys/get_keys.rs b/crates/ruma-client-api/src/keys/get_keys.rs index 0e299489..1569bfa0 100644 --- a/crates/ruma-client-api/src/keys/get_keys.rs +++ b/crates/ruma-client-api/src/keys/get_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysquery + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysquery use std::{collections::BTreeMap, time::Duration}; diff --git a/crates/ruma-client-api/src/keys/upload_keys.rs b/crates/ruma-client-api/src/keys/upload_keys.rs index 4768eeeb..3bf082a2 100644 --- a/crates/ruma-client-api/src/keys/upload_keys.rs +++ b/crates/ruma-client-api/src/keys/upload_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysupload + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/keys/upload_signatures.rs b/crates/ruma-client-api/src/keys/upload_signatures.rs index a3417945..9ab2eb1c 100644 --- a/crates/ruma-client-api/src/keys/upload_signatures.rs +++ b/crates/ruma-client-api/src/keys/upload_signatures.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keyssignaturesupload + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keyssignaturesupload use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/keys/upload_signing_keys.rs b/crates/ruma-client-api/src/keys/upload_signing_keys.rs index 25d56fe4..7c3ac00d 100644 --- a/crates/ruma-client-api/src/keys/upload_signing_keys.rs +++ b/crates/ruma-client-api/src/keys/upload_signing_keys.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3keysdevice_signingupload + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysdevice_signingupload use ruma_common::{api::ruma_api, encryption::CrossSigningKey, serde::Raw}; diff --git a/crates/ruma-client-api/src/knock/knock_room.rs b/crates/ruma-client-api/src/knock/knock_room.rs index b596113b..a260fd25 100644 --- a/crates/ruma-client-api/src/knock/knock_room.rs +++ b/crates/ruma-client-api/src/knock/knock_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3knockroomidoralias + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3knockroomidoralias use ruma_common::{api::ruma_api, OwnedRoomId, OwnedServerName, RoomOrAliasId}; diff --git a/crates/ruma-client-api/src/lib.rs b/crates/ruma-client-api/src/lib.rs index 5d7489db..21e08c00 100644 --- a/crates/ruma-client-api/src/lib.rs +++ b/crates/ruma-client-api/src/lib.rs @@ -3,7 +3,7 @@ //! (De)serializable types for the [Matrix Client-Server API][client-api]. //! These types can be shared by client and server code. //! -//! [client-api]: https://spec.matrix.org/v1.2/client-server-api/ +//! [client-api]: https://spec.matrix.org/v1.4/client-server-api/ #![cfg(any(feature = "client", feature = "server"))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] diff --git a/crates/ruma-client-api/src/media/create_content.rs b/crates/ruma-client-api/src/media/create_content.rs index e6ab1b07..ddda44bd 100644 --- a/crates/ruma-client-api/src/media/create_content.rs +++ b/crates/ruma-client-api/src/media/create_content.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixmediav3upload + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixmediav3upload use http::header::CONTENT_TYPE; use ruma_common::{api::ruma_api, OwnedMxcUri}; diff --git a/crates/ruma-client-api/src/media/get_content.rs b/crates/ruma-client-api/src/media/get_content.rs index 015367cb..ac5b73ab 100644 --- a/crates/ruma-client-api/src/media/get_content.rs +++ b/crates/ruma-client-api/src/media/get_content.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3downloadservernamemediaid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3downloadservernamemediaid use http::header::{CONTENT_DISPOSITION, CONTENT_TYPE}; #[cfg(feature = "unstable-msc2246")] diff --git a/crates/ruma-client-api/src/media/get_content_as_filename.rs b/crates/ruma-client-api/src/media/get_content_as_filename.rs index e57002a3..40b01e9d 100644 --- a/crates/ruma-client-api/src/media/get_content_as_filename.rs +++ b/crates/ruma-client-api/src/media/get_content_as_filename.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3downloadservernamemediaidfilename + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3downloadservernamemediaidfilename use http::header::{CONTENT_DISPOSITION, CONTENT_TYPE}; use ruma_common::{api::ruma_api, IdParseError, MxcUri, ServerName}; diff --git a/crates/ruma-client-api/src/media/get_content_thumbnail.rs b/crates/ruma-client-api/src/media/get_content_thumbnail.rs index bcbccf07..037e648a 100644 --- a/crates/ruma-client-api/src/media/get_content_thumbnail.rs +++ b/crates/ruma-client-api/src/media/get_content_thumbnail.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3thumbnailservernamemediaid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3thumbnailservernamemediaid use http::header::CONTENT_TYPE; use js_int::UInt; diff --git a/crates/ruma-client-api/src/media/get_media_config.rs b/crates/ruma-client-api/src/media/get_media_config.rs index aed4a1e7..9a46a41c 100644 --- a/crates/ruma-client-api/src/media/get_media_config.rs +++ b/crates/ruma-client-api/src/media/get_media_config.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3config + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3config use js_int::UInt; use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/media/get_media_preview.rs b/crates/ruma-client-api/src/media/get_media_preview.rs index ebe8f292..857bad19 100644 --- a/crates/ruma-client-api/src/media/get_media_preview.rs +++ b/crates/ruma-client-api/src/media/get_media_preview.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3preview_url + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3preview_url use ruma_common::{api::ruma_api, MilliSecondsSinceUnixEpoch}; use serde::Serialize; diff --git a/crates/ruma-client-api/src/membership/ban_user.rs b/crates/ruma-client-api/src/membership/ban_user.rs index f837e4fe..0b4330bc 100644 --- a/crates/ruma-client-api/src/membership/ban_user.rs +++ b/crates/ruma-client-api/src/membership/ban_user.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidban + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidban use ruma_common::{api::ruma_api, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/membership/forget_room.rs b/crates/ruma-client-api/src/membership/forget_room.rs index 90cfbe7d..3da443b0 100644 --- a/crates/ruma-client-api/src/membership/forget_room.rs +++ b/crates/ruma-client-api/src/membership/forget_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidforget + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidforget use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/membership/get_member_events.rs b/crates/ruma-client-api/src/membership/get_member_events.rs index 69893392..5054bb19 100644 --- a/crates/ruma-client-api/src/membership/get_member_events.rs +++ b/crates/ruma-client-api/src/membership/get_member_events.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidmembers + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidmembers use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/membership/invite_user.rs b/crates/ruma-client-api/src/membership/invite_user.rs index dc39d9f0..f70a4b03 100644 --- a/crates/ruma-client-api/src/membership/invite_user.rs +++ b/crates/ruma-client-api/src/membership/invite_user.rs @@ -7,8 +7,8 @@ pub mod v3 { //! [by their Matrix identifier][spec-mxid], and one to invite a user //! [by their third party identifier][spec-3pid]. //! - //! [spec-mxid]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidinvite - //! [spec-3pid]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidinvite-1 + //! [spec-mxid]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidinvite + //! [spec-3pid]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidinvite-1 use ruma_common::{api::ruma_api, serde::Incoming, RoomId, UserId}; use serde::Serialize; diff --git a/crates/ruma-client-api/src/membership/join_room_by_id.rs b/crates/ruma-client-api/src/membership/join_room_by_id.rs index b815597d..6bfecc92 100644 --- a/crates/ruma-client-api/src/membership/join_room_by_id.rs +++ b/crates/ruma-client-api/src/membership/join_room_by_id.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidjoin + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidjoin use ruma_common::{api::ruma_api, OwnedRoomId, RoomId}; diff --git a/crates/ruma-client-api/src/membership/join_room_by_id_or_alias.rs b/crates/ruma-client-api/src/membership/join_room_by_id_or_alias.rs index 8e770e69..188ddeb7 100644 --- a/crates/ruma-client-api/src/membership/join_room_by_id_or_alias.rs +++ b/crates/ruma-client-api/src/membership/join_room_by_id_or_alias.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3joinroomidoralias + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3joinroomidoralias use ruma_common::{api::ruma_api, OwnedRoomId, OwnedServerName, RoomOrAliasId}; diff --git a/crates/ruma-client-api/src/membership/joined_members.rs b/crates/ruma-client-api/src/membership/joined_members.rs index da38e228..dc3200a2 100644 --- a/crates/ruma-client-api/src/membership/joined_members.rs +++ b/crates/ruma-client-api/src/membership/joined_members.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidjoined_members + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidjoined_members use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/membership/joined_rooms.rs b/crates/ruma-client-api/src/membership/joined_rooms.rs index 490f4fdf..28784e6d 100644 --- a/crates/ruma-client-api/src/membership/joined_rooms.rs +++ b/crates/ruma-client-api/src/membership/joined_rooms.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3joined_rooms + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3joined_rooms use ruma_common::{api::ruma_api, OwnedRoomId}; diff --git a/crates/ruma-client-api/src/membership/kick_user.rs b/crates/ruma-client-api/src/membership/kick_user.rs index 7f92b04a..5268eaa3 100644 --- a/crates/ruma-client-api/src/membership/kick_user.rs +++ b/crates/ruma-client-api/src/membership/kick_user.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidkick + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidkick use ruma_common::{api::ruma_api, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/membership/leave_room.rs b/crates/ruma-client-api/src/membership/leave_room.rs index 1b61dfb5..7b83805d 100644 --- a/crates/ruma-client-api/src/membership/leave_room.rs +++ b/crates/ruma-client-api/src/membership/leave_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidleave + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidleave use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/membership/unban_user.rs b/crates/ruma-client-api/src/membership/unban_user.rs index ea162c1a..b9ce2107 100644 --- a/crates/ruma-client-api/src/membership/unban_user.rs +++ b/crates/ruma-client-api/src/membership/unban_user.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidunban + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidunban use ruma_common::{api::ruma_api, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/message/get_message_events.rs b/crates/ruma-client-api/src/message/get_message_events.rs index 24d6016c..a3a9aa74 100644 --- a/crates/ruma-client-api/src/message/get_message_events.rs +++ b/crates/ruma-client-api/src/message/get_message_events.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidmessages + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidmessages use js_int::{uint, UInt}; use ruma_common::{ diff --git a/crates/ruma-client-api/src/message/send_message_event.rs b/crates/ruma-client-api/src/message/send_message_event.rs index 6f2c423a..0bcf0829 100644 --- a/crates/ruma-client-api/src/message/send_message_event.rs +++ b/crates/ruma-client-api/src/message/send_message_event.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid use ruma_common::{ api::ruma_api, @@ -56,7 +56,7 @@ pub mod v3 { /// /// Note that this does not change the position of the event in the timeline. /// - /// [timestamp massaging]: https://spec.matrix.org/v1.3/application-service-api/#timestamp-massaging + /// [timestamp massaging]: https://spec.matrix.org/v1.4/application-service-api/#timestamp-massaging #[ruma_api(query)] #[serde(skip_serializing_if = "Option::is_none", rename = "ts")] pub timestamp: Option, diff --git a/crates/ruma-client-api/src/presence/get_presence.rs b/crates/ruma-client-api/src/presence/get_presence.rs index 6263b66a..94a26444 100644 --- a/crates/ruma-client-api/src/presence/get_presence.rs +++ b/crates/ruma-client-api/src/presence/get_presence.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3presenceuseridstatus + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3presenceuseridstatus use std::time::Duration; diff --git a/crates/ruma-client-api/src/presence/set_presence.rs b/crates/ruma-client-api/src/presence/set_presence.rs index 2f415344..bef1123e 100644 --- a/crates/ruma-client-api/src/presence/set_presence.rs +++ b/crates/ruma-client-api/src/presence/set_presence.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3presenceuseridstatus + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3presenceuseridstatus use ruma_common::{api::ruma_api, presence::PresenceState, UserId}; diff --git a/crates/ruma-client-api/src/profile/get_avatar_url.rs b/crates/ruma-client-api/src/profile/get_avatar_url.rs index 10f9a4c5..76df0c35 100644 --- a/crates/ruma-client-api/src/profile/get_avatar_url.rs +++ b/crates/ruma-client-api/src/profile/get_avatar_url.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3profileuseridavatar_url + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuseridavatar_url use ruma_common::{api::ruma_api, OwnedMxcUri, UserId}; diff --git a/crates/ruma-client-api/src/profile/get_display_name.rs b/crates/ruma-client-api/src/profile/get_display_name.rs index e2848d8d..d2cf32a0 100644 --- a/crates/ruma-client-api/src/profile/get_display_name.rs +++ b/crates/ruma-client-api/src/profile/get_display_name.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3profileuseriddisplayname + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuseriddisplayname use ruma_common::{api::ruma_api, UserId}; diff --git a/crates/ruma-client-api/src/profile/get_profile.rs b/crates/ruma-client-api/src/profile/get_profile.rs index e4a138eb..94699fb2 100644 --- a/crates/ruma-client-api/src/profile/get_profile.rs +++ b/crates/ruma-client-api/src/profile/get_profile.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3profileuserid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuserid use ruma_common::{api::ruma_api, OwnedMxcUri, UserId}; diff --git a/crates/ruma-client-api/src/profile/set_avatar_url.rs b/crates/ruma-client-api/src/profile/set_avatar_url.rs index a6232217..7505808b 100644 --- a/crates/ruma-client-api/src/profile/set_avatar_url.rs +++ b/crates/ruma-client-api/src/profile/set_avatar_url.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3profileuseridavatar_url + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3profileuseridavatar_url use ruma_common::{api::ruma_api, MxcUri, UserId}; diff --git a/crates/ruma-client-api/src/profile/set_display_name.rs b/crates/ruma-client-api/src/profile/set_display_name.rs index 1ee538c7..7f3e452e 100644 --- a/crates/ruma-client-api/src/profile/set_display_name.rs +++ b/crates/ruma-client-api/src/profile/set_display_name.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3profileuseriddisplayname + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3profileuseriddisplayname use ruma_common::{api::ruma_api, UserId}; diff --git a/crates/ruma-client-api/src/push/delete_pushrule.rs b/crates/ruma-client-api/src/push/delete_pushrule.rs index bc7349d1..e3f1783e 100644 --- a/crates/ruma-client-api/src/push/delete_pushrule.rs +++ b/crates/ruma-client-api/src/push/delete_pushrule.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#delete_matrixclientv3pushrulesscopekindruleid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3pushrulesscopekindruleid use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/push/get_notifications.rs b/crates/ruma-client-api/src/push/get_notifications.rs index 5b8cb59b..1378a972 100644 --- a/crates/ruma-client-api/src/push/get_notifications.rs +++ b/crates/ruma-client-api/src/push/get_notifications.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3notifications + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3notifications use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-client-api/src/push/get_pushers.rs b/crates/ruma-client-api/src/push/get_pushers.rs index 91725e77..db82a18e 100644 --- a/crates/ruma-client-api/src/push/get_pushers.rs +++ b/crates/ruma-client-api/src/push/get_pushers.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushers + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushers use ruma_common::api::ruma_api; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-client-api/src/push/get_pushrule.rs b/crates/ruma-client-api/src/push/get_pushrule.rs index f57d5363..884c7ed5 100644 --- a/crates/ruma-client-api/src/push/get_pushrule.rs +++ b/crates/ruma-client-api/src/push/get_pushrule.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushrulesscopekindruleid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushrulesscopekindruleid use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/push/get_pushrule_actions.rs b/crates/ruma-client-api/src/push/get_pushrule_actions.rs index 312e774f..2caa84af 100644 --- a/crates/ruma-client-api/src/push/get_pushrule_actions.rs +++ b/crates/ruma-client-api/src/push/get_pushrule_actions.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushrulesscopekindruleidactions + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushrulesscopekindruleidactions use ruma_common::{api::ruma_api, push::Action}; diff --git a/crates/ruma-client-api/src/push/get_pushrule_enabled.rs b/crates/ruma-client-api/src/push/get_pushrule_enabled.rs index 3844f588..bb74e44b 100644 --- a/crates/ruma-client-api/src/push/get_pushrule_enabled.rs +++ b/crates/ruma-client-api/src/push/get_pushrule_enabled.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushrulesscopekindruleidenabled + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushrulesscopekindruleidenabled use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/push/get_pushrules_all.rs b/crates/ruma-client-api/src/push/get_pushrules_all.rs index ff9e8f16..c3985001 100644 --- a/crates/ruma-client-api/src/push/get_pushrules_all.rs +++ b/crates/ruma-client-api/src/push/get_pushrules_all.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushrules + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushrules use ruma_common::{api::ruma_api, push::Ruleset}; diff --git a/crates/ruma-client-api/src/push/get_pushrules_global_scope.rs b/crates/ruma-client-api/src/push/get_pushrules_global_scope.rs index 054f6fa8..9aeb18c9 100644 --- a/crates/ruma-client-api/src/push/get_pushrules_global_scope.rs +++ b/crates/ruma-client-api/src/push/get_pushrules_global_scope.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3pushrules + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3pushrules use ruma_common::{api::ruma_api, push::Ruleset}; diff --git a/crates/ruma-client-api/src/push/set_pusher.rs b/crates/ruma-client-api/src/push/set_pusher.rs index 4c85a577..a5112643 100644 --- a/crates/ruma-client-api/src/push/set_pusher.rs +++ b/crates/ruma-client-api/src/push/set_pusher.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3pushersset + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3pushersset use ruma_common::api::ruma_api; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-client-api/src/push/set_pushrule.rs b/crates/ruma-client-api/src/push/set_pushrule.rs index 2b9f25d1..f983a6ee 100644 --- a/crates/ruma-client-api/src/push/set_pushrule.rs +++ b/crates/ruma-client-api/src/push/set_pushrule.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3pushrulesscopekindruleid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3pushrulesscopekindruleid use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/push/set_pushrule_actions.rs b/crates/ruma-client-api/src/push/set_pushrule_actions.rs index 74df8bcd..bb4a59ae 100644 --- a/crates/ruma-client-api/src/push/set_pushrule_actions.rs +++ b/crates/ruma-client-api/src/push/set_pushrule_actions.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3pushrulesscopekindruleidactions + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3pushrulesscopekindruleidactions use ruma_common::{api::ruma_api, push::Action}; diff --git a/crates/ruma-client-api/src/push/set_pushrule_enabled.rs b/crates/ruma-client-api/src/push/set_pushrule_enabled.rs index 0e503168..a94f73a6 100644 --- a/crates/ruma-client-api/src/push/set_pushrule_enabled.rs +++ b/crates/ruma-client-api/src/push/set_pushrule_enabled.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3pushrulesscopekindruleidenabled + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3pushrulesscopekindruleidenabled use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/read_marker/set_read_marker.rs b/crates/ruma-client-api/src/read_marker/set_read_marker.rs index 1dbf91c3..ad33a5fe 100644 --- a/crates/ruma-client-api/src/read_marker/set_read_marker.rs +++ b/crates/ruma-client-api/src/read_marker/set_read_marker.rs @@ -6,7 +6,7 @@ pub mod v3 { //! This endpoint is equivalent to calling the [`create_receipt`] endpoint, //! but is provided as a way to update several read markers with a single call. //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidread_markers + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidread_markers //! [`create_receipt`]: crate::receipt::create_receipt use ruma_common::{api::ruma_api, EventId, RoomId}; diff --git a/crates/ruma-client-api/src/receipt/create_receipt.rs b/crates/ruma-client-api/src/receipt/create_receipt.rs index 15e41766..4f8c7e71 100644 --- a/crates/ruma-client-api/src/receipt/create_receipt.rs +++ b/crates/ruma-client-api/src/receipt/create_receipt.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidreceiptreceipttypeeventid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidreceiptreceipttypeeventid use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/redact/redact_event.rs b/crates/ruma-client-api/src/redact/redact_event.rs index 49d10ddc..95df4d82 100644 --- a/crates/ruma-client-api/src/redact/redact_event.rs +++ b/crates/ruma-client-api/src/redact/redact_event.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3roomsroomidredacteventidtxnid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3roomsroomidredacteventidtxnid use ruma_common::{api::ruma_api, EventId, OwnedEventId, RoomId, TransactionId}; diff --git a/crates/ruma-client-api/src/relations/get_relating_events.rs b/crates/ruma-client-api/src/relations/get_relating_events.rs index 52b6495d..e93ed015 100644 --- a/crates/ruma-client-api/src/relations/get_relating_events.rs +++ b/crates/ruma-client-api/src/relations/get_relating_events.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1roomsroomidrelationseventid use js_int::UInt; use ruma_common::{api::ruma_api, events::AnyMessageLikeEvent, serde::Raw, EventId, RoomId}; diff --git a/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type.rs b/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type.rs index a58a4968..16ca2507 100644 --- a/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type.rs +++ b/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltype use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type_and_event_type.rs b/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type_and_event_type.rs index 43c8254d..8c6dec3c 100644 --- a/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type_and_event_type.rs +++ b/crates/ruma-client-api/src/relations/get_relating_events_with_rel_type_and_event_type.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltypeeventtype + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltypeeventtype use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-client-api/src/room/aliases.rs b/crates/ruma-client-api/src/room/aliases.rs index cf0a72f7..f6e65452 100644 --- a/crates/ruma-client-api/src/room/aliases.rs +++ b/crates/ruma-client-api/src/room/aliases.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidaliases + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidaliases use ruma_common::{api::ruma_api, OwnedRoomAliasId, RoomId}; diff --git a/crates/ruma-client-api/src/room/create_room.rs b/crates/ruma-client-api/src/room/create_room.rs index 8e18028b..42e22fa6 100644 --- a/crates/ruma-client-api/src/room/create_room.rs +++ b/crates/ruma-client-api/src/room/create_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3createroom + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3createroom use assign::assign; use ruma_common::{ diff --git a/crates/ruma-client-api/src/room/get_room_event.rs b/crates/ruma-client-api/src/room/get_room_event.rs index 72fc746a..f71b095f 100644 --- a/crates/ruma-client-api/src/room/get_room_event.rs +++ b/crates/ruma-client-api/src/room/get_room_event.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomideventeventid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomideventeventid use ruma_common::{api::ruma_api, events::AnyTimelineEvent, serde::Raw, EventId, RoomId}; diff --git a/crates/ruma-client-api/src/room/report_content.rs b/crates/ruma-client-api/src/room/report_content.rs index 78e1ec31..3ca3dd9a 100644 --- a/crates/ruma-client-api/src/room/report_content.rs +++ b/crates/ruma-client-api/src/room/report_content.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidreporteventid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidreporteventid use js_int::Int; use ruma_common::{api::ruma_api, EventId, RoomId}; diff --git a/crates/ruma-client-api/src/room/upgrade_room.rs b/crates/ruma-client-api/src/room/upgrade_room.rs index 9660f22e..01348e5f 100644 --- a/crates/ruma-client-api/src/room/upgrade_room.rs +++ b/crates/ruma-client-api/src/room/upgrade_room.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidupgrade + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidupgrade use ruma_common::{api::ruma_api, OwnedRoomId, RoomId, RoomVersionId}; diff --git a/crates/ruma-client-api/src/search/search_events.rs b/crates/ruma-client-api/src/search/search_events.rs index 62c8e84d..eacaa334 100644 --- a/crates/ruma-client-api/src/search/search_events.rs +++ b/crates/ruma-client-api/src/search/search_events.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3search + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3search use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/server/get_user_info.rs b/crates/ruma-client-api/src/server/get_user_info.rs index 18394c04..95ab487c 100644 --- a/crates/ruma-client-api/src/server/get_user_info.rs +++ b/crates/ruma-client-api/src/server/get_user_info.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3adminwhoisuserid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3adminwhoisuserid use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/session/get_login_types.rs b/crates/ruma-client-api/src/session/get_login_types.rs index e7474e25..6c9bd7b7 100644 --- a/crates/ruma-client-api/src/session/get_login_types.rs +++ b/crates/ruma-client-api/src/session/get_login_types.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3login + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3login use std::borrow::Cow; diff --git a/crates/ruma-client-api/src/session/login.rs b/crates/ruma-client-api/src/session/login.rs index 741d2ec3..fb744582 100644 --- a/crates/ruma-client-api/src/session/login.rs +++ b/crates/ruma-client-api/src/session/login.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3login + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3login use std::{fmt, time::Duration}; @@ -49,7 +49,7 @@ pub mod v3 { /// If set to `true`, the client supports [refresh tokens]. /// - /// [refresh tokens]: https://spec.matrix.org/v1.3/client-server-api/#refreshing-access-tokens + /// [refresh tokens]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens #[serde(default, skip_serializing_if = "ruma_common::serde::is_default")] pub refresh_token: bool, } @@ -85,7 +85,7 @@ pub mod v3 { /// This token can be used to obtain a new access token when it expires by calling the /// [`refresh_token`] endpoint. /// - /// [refresh token]: https://spec.matrix.org/v1.3/client-server-api/#refreshing-access-tokens + /// [refresh token]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens /// [`refresh_token`]: crate::session::refresh_token #[serde(skip_serializing_if = "Option::is_none")] pub refresh_token: Option, diff --git a/crates/ruma-client-api/src/session/login_fallback.rs b/crates/ruma-client-api/src/session/login_fallback.rs index 2cbc8faa..fbb9e6a8 100644 --- a/crates/ruma-client-api/src/session/login_fallback.rs +++ b/crates/ruma-client-api/src/session/login_fallback.rs @@ -1,6 +1,6 @@ //! `GET /_matrix/static/client/login/` (fallback, [spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#login-fallback +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#login-fallback use ruma_common::{api::ruma_api, DeviceId}; diff --git a/crates/ruma-client-api/src/session/logout.rs b/crates/ruma-client-api/src/session/logout.rs index 43d1f87e..36c06bd8 100644 --- a/crates/ruma-client-api/src/session/logout.rs +++ b/crates/ruma-client-api/src/session/logout.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3logout + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3logout use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/session/logout_all.rs b/crates/ruma-client-api/src/session/logout_all.rs index 40858e44..95d589eb 100644 --- a/crates/ruma-client-api/src/session/logout_all.rs +++ b/crates/ruma-client-api/src/session/logout_all.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3logoutall + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3logoutall use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/session/refresh_token.rs b/crates/ruma-client-api/src/session/refresh_token.rs index 496b41e6..c859ed53 100644 --- a/crates/ruma-client-api/src/session/refresh_token.rs +++ b/crates/ruma-client-api/src/session/refresh_token.rs @@ -23,7 +23,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3refresh + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3refresh use std::time::Duration; diff --git a/crates/ruma-client-api/src/session/sso_login.rs b/crates/ruma-client-api/src/session/sso_login.rs index 968f18bd..8e044225 100644 --- a/crates/ruma-client-api/src/session/sso_login.rs +++ b/crates/ruma-client-api/src/session/sso_login.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3loginssoredirect + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3loginssoredirect use http::header::LOCATION; use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/session/sso_login_with_provider.rs b/crates/ruma-client-api/src/session/sso_login_with_provider.rs index 4fb1509f..f355be69 100644 --- a/crates/ruma-client-api/src/session/sso_login_with_provider.rs +++ b/crates/ruma-client-api/src/session/sso_login_with_provider.rs @@ -5,7 +5,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3loginssoredirectidpid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3loginssoredirectidpid use http::header::LOCATION; use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/space.rs b/crates/ruma-client-api/src/space.rs index 57c00c33..27894d73 100644 --- a/crates/ruma-client-api/src/space.rs +++ b/crates/ruma-client-api/src/space.rs @@ -2,7 +2,7 @@ //! //! See the [Matrix specification][spec] for more details about spaces. //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#spaces +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#spaces use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-client-api/src/space/get_hierarchy.rs b/crates/ruma-client-api/src/space/get_hierarchy.rs index 1a1a04a8..f93a6e75 100644 --- a/crates/ruma-client-api/src/space/get_hierarchy.rs +++ b/crates/ruma-client-api/src/space/get_hierarchy.rs @@ -3,7 +3,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv1roomsroomidhierarchy + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1roomsroomidhierarchy use js_int::UInt; use ruma_common::{api::ruma_api, RoomId}; diff --git a/crates/ruma-client-api/src/state/get_state_events.rs b/crates/ruma-client-api/src/state/get_state_events.rs index f9974e6f..b71bce01 100644 --- a/crates/ruma-client-api/src/state/get_state_events.rs +++ b/crates/ruma-client-api/src/state/get_state_events.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidstate + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidstate use ruma_common::{api::ruma_api, events::AnyStateEvent, serde::Raw, RoomId}; diff --git a/crates/ruma-client-api/src/state/get_state_events_for_key.rs b/crates/ruma-client-api/src/state/get_state_events_for_key.rs index 74ee6026..9e0c2a32 100644 --- a/crates/ruma-client-api/src/state/get_state_events_for_key.rs +++ b/crates/ruma-client-api/src/state/get_state_events_for_key.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3roomsroomidstateeventtypestatekey + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidstateeventtypestatekey use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-client-api/src/state/send_state_event.rs b/crates/ruma-client-api/src/state/send_state_event.rs index ef07410f..37237557 100644 --- a/crates/ruma-client-api/src/state/send_state_event.rs +++ b/crates/ruma-client-api/src/state/send_state_event.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3roomsroomidstateeventtypestatekey + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3roomsroomidstateeventtypestatekey use std::borrow::Borrow; @@ -60,7 +60,7 @@ pub mod v3 { /// /// Note that this does not change the position of the event in the timeline. /// - /// [timestamp massaging]: https://spec.matrix.org/v1.3/application-service-api/#timestamp-massaging + /// [timestamp massaging]: https://spec.matrix.org/v1.4/application-service-api/#timestamp-massaging pub timestamp: Option, } diff --git a/crates/ruma-client-api/src/sync/sync_events/v3.rs b/crates/ruma-client-api/src/sync/sync_events/v3.rs index d88fc5d1..68e051e2 100644 --- a/crates/ruma-client-api/src/sync/sync_events/v3.rs +++ b/crates/ruma-client-api/src/sync/sync_events/v3.rs @@ -1,6 +1,6 @@ //! `/v3/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3sync +//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3sync use std::{collections::BTreeMap, time::Duration}; diff --git a/crates/ruma-client-api/src/tag/create_tag.rs b/crates/ruma-client-api/src/tag/create_tag.rs index f8d0bba3..b21a2aaf 100644 --- a/crates/ruma-client-api/src/tag/create_tag.rs +++ b/crates/ruma-client-api/src/tag/create_tag.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3useruseridroomsroomidtagstag + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridroomsroomidtagstag use ruma_common::{api::ruma_api, events::tag::TagInfo, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/tag/delete_tag.rs b/crates/ruma-client-api/src/tag/delete_tag.rs index 91b5184d..1cf893a1 100644 --- a/crates/ruma-client-api/src/tag/delete_tag.rs +++ b/crates/ruma-client-api/src/tag/delete_tag.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3useruseridroomsroomidtagstag + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridroomsroomidtagstag use ruma_common::{api::ruma_api, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/tag/get_tags.rs b/crates/ruma-client-api/src/tag/get_tags.rs index a1366686..f1f64fdd 100644 --- a/crates/ruma-client-api/src/tag/get_tags.rs +++ b/crates/ruma-client-api/src/tag/get_tags.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3useruseridroomsroomidtags + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridroomsroomidtags use ruma_common::{api::ruma_api, events::tag::Tags, RoomId, UserId}; diff --git a/crates/ruma-client-api/src/thirdparty/get_location_for_protocol.rs b/crates/ruma-client-api/src/thirdparty/get_location_for_protocol.rs index 89066173..53a248f5 100644 --- a/crates/ruma-client-api/src/thirdparty/get_location_for_protocol.rs +++ b/crates/ruma-client-api/src/thirdparty/get_location_for_protocol.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartylocationprotocol + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartylocationprotocol use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/thirdparty/get_location_for_room_alias.rs b/crates/ruma-client-api/src/thirdparty/get_location_for_room_alias.rs index 883c2421..dcfb2f6c 100644 --- a/crates/ruma-client-api/src/thirdparty/get_location_for_room_alias.rs +++ b/crates/ruma-client-api/src/thirdparty/get_location_for_room_alias.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartylocation + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartylocation use ruma_common::{api::ruma_api, thirdparty::Location, RoomAliasId}; diff --git a/crates/ruma-client-api/src/thirdparty/get_protocol.rs b/crates/ruma-client-api/src/thirdparty/get_protocol.rs index f15926b8..b3a60e90 100644 --- a/crates/ruma-client-api/src/thirdparty/get_protocol.rs +++ b/crates/ruma-client-api/src/thirdparty/get_protocol.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartyprotocolprotocol + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartyprotocolprotocol use ruma_common::{api::ruma_api, thirdparty::Protocol}; diff --git a/crates/ruma-client-api/src/thirdparty/get_protocols.rs b/crates/ruma-client-api/src/thirdparty/get_protocols.rs index 48fd7163..a545993b 100644 --- a/crates/ruma-client-api/src/thirdparty/get_protocols.rs +++ b/crates/ruma-client-api/src/thirdparty/get_protocols.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartyprotocols + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartyprotocols use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/thirdparty/get_user_for_protocol.rs b/crates/ruma-client-api/src/thirdparty/get_user_for_protocol.rs index 1f3e1dc8..ffee5730 100644 --- a/crates/ruma-client-api/src/thirdparty/get_user_for_protocol.rs +++ b/crates/ruma-client-api/src/thirdparty/get_user_for_protocol.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartyuserprotocol + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartyuserprotocol use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/thirdparty/get_user_for_user_id.rs b/crates/ruma-client-api/src/thirdparty/get_user_for_user_id.rs index 9fa19b2a..1d988be9 100644 --- a/crates/ruma-client-api/src/thirdparty/get_user_for_user_id.rs +++ b/crates/ruma-client-api/src/thirdparty/get_user_for_user_id.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3thirdpartyuser + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3thirdpartyuser use ruma_common::{api::ruma_api, thirdparty::User, UserId}; diff --git a/crates/ruma-client-api/src/to_device/send_event_to_device.rs b/crates/ruma-client-api/src/to_device/send_event_to_device.rs index ee6c5029..b0c62942 100644 --- a/crates/ruma-client-api/src/to_device/send_event_to_device.rs +++ b/crates/ruma-client-api/src/to_device/send_event_to_device.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3sendtodeviceeventtypetxnid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3sendtodeviceeventtypetxnid use std::collections::BTreeMap; diff --git a/crates/ruma-client-api/src/typing/create_typing_event.rs b/crates/ruma-client-api/src/typing/create_typing_event.rs index f3d3c851..b89beaeb 100644 --- a/crates/ruma-client-api/src/typing/create_typing_event.rs +++ b/crates/ruma-client-api/src/typing/create_typing_event.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#put_matrixclientv3roomsroomidtypinguserid + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3roomsroomidtypinguserid use std::time::Duration; diff --git a/crates/ruma-client-api/src/uiaa.rs b/crates/ruma-client-api/src/uiaa.rs index a81373cc..545cea2f 100644 --- a/crates/ruma-client-api/src/uiaa.rs +++ b/crates/ruma-client-api/src/uiaa.rs @@ -1,6 +1,6 @@ //! Module for [User-Interactive Authentication API][uiaa] types. //! -//! [uiaa]: https://spec.matrix.org/v1.2/client-server-api/#user-interactive-authentication-api +//! [uiaa]: https://spec.matrix.org/v1.4/client-server-api/#user-interactive-authentication-api use std::{borrow::Cow, fmt}; @@ -342,7 +342,7 @@ pub enum AuthType { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#password-based +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#password-based #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.password")] @@ -379,7 +379,7 @@ impl IncomingPassword { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#google-recaptcha +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#google-recaptcha #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.recaptcha")] @@ -409,7 +409,7 @@ impl IncomingReCaptcha { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#email-based-identity--homeserver +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#email-based-identity--homeserver #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.email.identity")] @@ -436,7 +436,7 @@ impl IncomingEmailIdentity { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#phone-numbermsisdn-based-identity--homeserver +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#phone-numbermsisdn-based-identity--homeserver #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.msisdn")] @@ -460,7 +460,7 @@ impl IncomingMsisdn { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#dummy-auth +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#dummy-auth #[derive(Clone, Debug, Default, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.dummy")] @@ -487,7 +487,7 @@ impl IncomingDummy { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#token-authenticated-registration +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#token-authenticated-registration #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[serde(tag = "type", rename = "m.login.registration_token")] @@ -517,7 +517,7 @@ impl IncomingRegistrationToken { /// /// See [the spec] for how to use this. /// -/// [the spec]: https://spec.matrix.org/v1.2/client-server-api/#fallback +/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#fallback #[derive(Clone, Debug, Incoming, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct FallbackAcknowledgement<'a> { diff --git a/crates/ruma-client-api/src/uiaa/get_uiaa_fallback_page.rs b/crates/ruma-client-api/src/uiaa/get_uiaa_fallback_page.rs index 95636d3a..c86cf4d8 100644 --- a/crates/ruma-client-api/src/uiaa/get_uiaa_fallback_page.rs +++ b/crates/ruma-client-api/src/uiaa/get_uiaa_fallback_page.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#fallback + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#fallback use http::header::LOCATION; use ruma_common::api::ruma_api; diff --git a/crates/ruma-client-api/src/user_directory/search_users.rs b/crates/ruma-client-api/src/user_directory/search_users.rs index 92f14579..dc7e98c7 100644 --- a/crates/ruma-client-api/src/user_directory/search_users.rs +++ b/crates/ruma-client-api/src/user_directory/search_users.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3user_directorysearch + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3user_directorysearch use http::header::ACCEPT_LANGUAGE; use js_int::{uint, UInt}; diff --git a/crates/ruma-client-api/src/voip/get_turn_server_info.rs b/crates/ruma-client-api/src/voip/get_turn_server_info.rs index 3ceab436..e6d629c3 100644 --- a/crates/ruma-client-api/src/voip/get_turn_server_info.rs +++ b/crates/ruma-client-api/src/voip/get_turn_server_info.rs @@ -3,7 +3,7 @@ pub mod v3 { //! `/v3/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3voipturnserver + //! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3voipturnserver use std::time::Duration; diff --git a/crates/ruma-common/src/api.rs b/crates/ruma-common/src/api.rs index c04e8fe7..1d153b64 100644 --- a/crates/ruma-common/src/api.rs +++ b/crates/ruma-common/src/api.rs @@ -10,7 +10,7 @@ //! successful response. Such types can then be used by client code to make requests, and by server //! code to fulfill those requests. //! -//! [apis]: https://spec.matrix.org/v1.2/#matrix-apis +//! [apis]: https://spec.matrix.org/v1.4/#matrix-apis use std::{convert::TryInto as _, error::Error as StdError}; @@ -293,7 +293,7 @@ pub trait OutgoingRequestAppserviceExt: OutgoingRequest { /// Tries to convert this request into an `http::Request` and appends a virtual `user_id` to /// [assert Appservice identity][id_assert]. /// - /// [id_assert]: https://spec.matrix.org/v1.2/application-service-api/#identity-assertion + /// [id_assert]: https://spec.matrix.org/v1.4/application-service-api/#identity-assertion fn try_into_http_request_with_user_id( self, base_url: &str, diff --git a/crates/ruma-common/src/api/metadata.rs b/crates/ruma-common/src/api/metadata.rs index c74c018f..3eb3c67b 100644 --- a/crates/ruma-common/src/api/metadata.rs +++ b/crates/ruma-common/src/api/metadata.rs @@ -224,7 +224,7 @@ pub enum VersioningDecision { /// Every new minor version denotes stable support for endpoints in a *relatively* /// backwards-compatible manner. /// -/// Matrix has a deprecation policy, read more about it here: . +/// Matrix has a deprecation policy, read more about it here: . /// /// Ruma keeps track of when endpoints are added, deprecated, and removed. It'll automatically /// select the right endpoint stability variation to use depending on which Matrix versions you @@ -235,7 +235,7 @@ pub enum VersioningDecision { pub enum MatrixVersion { /// Version 1.0 of the Matrix specification. /// - /// Retroactively defined as . + /// Retroactively defined as . V1_0, /// Version 1.1 of the Matrix specification, released in Q4 2021. @@ -268,7 +268,7 @@ impl TryFrom<&str> for MatrixVersion { Ok(match value { // FIXME: these are likely not entirely correct; https://github.com/ruma/ruma/issues/852 "v1.0" | - // Additional definitions according to https://spec.matrix.org/v1.2/#legacy-versioning + // Additional definitions according to https://spec.matrix.org/v1.4/#legacy-versioning "r0.5.0" | "r0.6.0" | "r0.6.1" => V1_0, "v1.1" => V1_1, "v1.2" => V1_2, diff --git a/crates/ruma-common/src/doc/rich_reply.md b/crates/ruma-common/src/doc/rich_reply.md index 0c7c2dc3..8672dfeb 100644 --- a/crates/ruma-common/src/doc/rich_reply.md +++ b/crates/ruma-common/src/doc/rich_reply.md @@ -11,4 +11,4 @@ It is recommended to enable the `unstable-sanitize` feature when using this meth clean up nested [rich reply fallbacks] in chains of replies. This uses [`sanitize_html()`] internally, with [`RemoveReplyFallback::Yes`]. -[rich reply fallbacks]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +[rich reply fallbacks]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies diff --git a/crates/ruma-common/src/encryption.rs b/crates/ruma-common/src/encryption.rs index 437ba70b..ac07f1f6 100644 --- a/crates/ruma-common/src/encryption.rs +++ b/crates/ruma-common/src/encryption.rs @@ -1,6 +1,6 @@ //! Common types for [encryption] related tasks. //! -//! [encryption]: https://spec.matrix.org/v1.2/client-server-api/#end-to-end-encryption +//! [encryption]: https://spec.matrix.org/v1.4/client-server-api/#end-to-end-encryption use std::collections::BTreeMap; diff --git a/crates/ruma-common/src/events/call/answer.rs b/crates/ruma-common/src/events/call/answer.rs index 0d990671..8d8af694 100644 --- a/crates/ruma-common/src/events/call/answer.rs +++ b/crates/ruma-common/src/events/call/answer.rs @@ -1,6 +1,6 @@ //! Types for the [`m.call.answer`] event. //! -//! [`m.call.answer`]: https://spec.matrix.org/v1.2/client-server-api/#mcallanswer +//! [`m.call.answer`]: https://spec.matrix.org/v1.4/client-server-api/#mcallanswer use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/call/candidates.rs b/crates/ruma-common/src/events/call/candidates.rs index 68ef7ef5..d0dc92b4 100644 --- a/crates/ruma-common/src/events/call/candidates.rs +++ b/crates/ruma-common/src/events/call/candidates.rs @@ -1,6 +1,6 @@ //! Types for the [`m.call.candidates`] event. //! -//! [`m.call.candidates`]: https://spec.matrix.org/v1.2/client-server-api/#mcallcandidates +//! [`m.call.candidates`]: https://spec.matrix.org/v1.4/client-server-api/#mcallcandidates use js_int::UInt; use ruma_macros::EventContent; diff --git a/crates/ruma-common/src/events/call/hangup.rs b/crates/ruma-common/src/events/call/hangup.rs index da970489..af90228f 100644 --- a/crates/ruma-common/src/events/call/hangup.rs +++ b/crates/ruma-common/src/events/call/hangup.rs @@ -1,6 +1,6 @@ //! Types for the [`m.call.hangup`] event. //! -//! [`m.call.hangup`]: https://spec.matrix.org/v1.2/client-server-api/#mcallhangup +//! [`m.call.hangup`]: https://spec.matrix.org/v1.4/client-server-api/#mcallhangup use ruma_macros::EventContent; #[cfg(feature = "unstable-msc2746")] diff --git a/crates/ruma-common/src/events/call/invite.rs b/crates/ruma-common/src/events/call/invite.rs index 0bf51cc4..13244680 100644 --- a/crates/ruma-common/src/events/call/invite.rs +++ b/crates/ruma-common/src/events/call/invite.rs @@ -1,6 +1,6 @@ //! Types for the [`m.call.invite`] event. //! -//! [`m.call.invite`]: https://spec.matrix.org/v1.2/client-server-api/#mcallinvite +//! [`m.call.invite`]: https://spec.matrix.org/v1.4/client-server-api/#mcallinvite use js_int::UInt; use ruma_macros::EventContent; diff --git a/crates/ruma-common/src/events/direct.rs b/crates/ruma-common/src/events/direct.rs index 8bda1b62..ae29c803 100644 --- a/crates/ruma-common/src/events/direct.rs +++ b/crates/ruma-common/src/events/direct.rs @@ -1,6 +1,6 @@ //! Types for the [`m.direct`] event. //! -//! [`m.direct`]: https://spec.matrix.org/v1.2/client-server-api/#mdirect +//! [`m.direct`]: https://spec.matrix.org/v1.4/client-server-api/#mdirect use std::{ collections::BTreeMap, diff --git a/crates/ruma-common/src/events/dummy.rs b/crates/ruma-common/src/events/dummy.rs index b96eaf79..4e9884a4 100644 --- a/crates/ruma-common/src/events/dummy.rs +++ b/crates/ruma-common/src/events/dummy.rs @@ -1,6 +1,6 @@ //! Types for the [`m.dummy`] event. //! -//! [`m.dummy`]: https://spec.matrix.org/v1.2/client-server-api/#mdummy +//! [`m.dummy`]: https://spec.matrix.org/v1.4/client-server-api/#mdummy use std::fmt; diff --git a/crates/ruma-common/src/events/forwarded_room_key.rs b/crates/ruma-common/src/events/forwarded_room_key.rs index 54393635..7ca382f1 100644 --- a/crates/ruma-common/src/events/forwarded_room_key.rs +++ b/crates/ruma-common/src/events/forwarded_room_key.rs @@ -1,6 +1,6 @@ //! Types for the [`m.forwarded_room_key`] event. //! -//! [`m.forwarded_room_key`]: https://spec.matrix.org/v1.2/client-server-api/#mforwarded_room_key +//! [`m.forwarded_room_key`]: https://spec.matrix.org/v1.4/client-server-api/#mforwarded_room_key use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/fully_read.rs b/crates/ruma-common/src/events/fully_read.rs index 1ccc4fe4..5a67a04e 100644 --- a/crates/ruma-common/src/events/fully_read.rs +++ b/crates/ruma-common/src/events/fully_read.rs @@ -1,6 +1,6 @@ //! Types for the [`m.fully_read`] event. //! -//! [`m.fully_read`]: https://spec.matrix.org/v1.2/client-server-api/#mfully_read +//! [`m.fully_read`]: https://spec.matrix.org/v1.4/client-server-api/#mfully_read use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/identity_server.rs b/crates/ruma-common/src/events/identity_server.rs index b0545436..f8b1ed1f 100644 --- a/crates/ruma-common/src/events/identity_server.rs +++ b/crates/ruma-common/src/events/identity_server.rs @@ -1,6 +1,6 @@ //! Types for the [`m.identity_server`] event. //! -//! [`m.identity_server`]: https://spec.matrix.org/v1.2/client-server-api/#mdirect +//! [`m.identity_server`]: https://spec.matrix.org/v1.4/client-server-api/#mdirect use js_option::JsOption; use ruma_macros::EventContent; diff --git a/crates/ruma-common/src/events/ignored_user_list.rs b/crates/ruma-common/src/events/ignored_user_list.rs index ffc844f4..5a688a64 100644 --- a/crates/ruma-common/src/events/ignored_user_list.rs +++ b/crates/ruma-common/src/events/ignored_user_list.rs @@ -1,6 +1,6 @@ //! Types for the [`m.ignored_user_list`] event. //! -//! [`m.ignored_user_list`]: https://spec.matrix.org/v1.2/client-server-api/#mignored_user_list +//! [`m.ignored_user_list`]: https://spec.matrix.org/v1.4/client-server-api/#mignored_user_list use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/accept.rs b/crates/ruma-common/src/events/key/verification/accept.rs index c78e455e..b3e2ddcb 100644 --- a/crates/ruma-common/src/events/key/verification/accept.rs +++ b/crates/ruma-common/src/events/key/verification/accept.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.accept`] event. //! -//! [`m.key.verification.accept`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationaccept +//! [`m.key.verification.accept`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationaccept use std::collections::BTreeMap; diff --git a/crates/ruma-common/src/events/key/verification/cancel.rs b/crates/ruma-common/src/events/key/verification/cancel.rs index 1f37a518..cd2b241e 100644 --- a/crates/ruma-common/src/events/key/verification/cancel.rs +++ b/crates/ruma-common/src/events/key/verification/cancel.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.cancel`] event. //! -//! [`m.key.verification.cancel`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationcancel +//! [`m.key.verification.cancel`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationcancel use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/done.rs b/crates/ruma-common/src/events/key/verification/done.rs index 4a734c62..7cfa5f93 100644 --- a/crates/ruma-common/src/events/key/verification/done.rs +++ b/crates/ruma-common/src/events/key/verification/done.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.done`] event. //! -//! [`m.key.verification.done`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationdone +//! [`m.key.verification.done`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationdone use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/key.rs b/crates/ruma-common/src/events/key/verification/key.rs index be746414..e6bf2728 100644 --- a/crates/ruma-common/src/events/key/verification/key.rs +++ b/crates/ruma-common/src/events/key/verification/key.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.key`] event. //! -//! [`m.key.verification.key`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationkey +//! [`m.key.verification.key`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationkey use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/mac.rs b/crates/ruma-common/src/events/key/verification/mac.rs index cbec56d3..0d2b283c 100644 --- a/crates/ruma-common/src/events/key/verification/mac.rs +++ b/crates/ruma-common/src/events/key/verification/mac.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.mac`] event. //! -//! [`m.key.verification.mac`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationmac +//! [`m.key.verification.mac`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationmac use std::collections::BTreeMap; diff --git a/crates/ruma-common/src/events/key/verification/ready.rs b/crates/ruma-common/src/events/key/verification/ready.rs index 04343680..7c4b81cf 100644 --- a/crates/ruma-common/src/events/key/verification/ready.rs +++ b/crates/ruma-common/src/events/key/verification/ready.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.ready`] event. //! -//! [`m.key.verification.ready`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationready +//! [`m.key.verification.ready`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationready use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/request.rs b/crates/ruma-common/src/events/key/verification/request.rs index 2e4f30e9..6c3872c1 100644 --- a/crates/ruma-common/src/events/key/verification/request.rs +++ b/crates/ruma-common/src/events/key/verification/request.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.request`] event. //! -//! [`m.key.verification.request`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationrequest +//! [`m.key.verification.request`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationrequest use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/key/verification/start.rs b/crates/ruma-common/src/events/key/verification/start.rs index 5f8da9b5..97c66e0b 100644 --- a/crates/ruma-common/src/events/key/verification/start.rs +++ b/crates/ruma-common/src/events/key/verification/start.rs @@ -1,6 +1,6 @@ //! Types for the [`m.key.verification.start`] event. //! -//! [`m.key.verification.start`]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationstart +//! [`m.key.verification.start`]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationstart use std::collections::BTreeMap; @@ -87,7 +87,7 @@ pub enum StartMethod { /// /// The spec entry for this method can be found [here]. /// - /// [here]: https://spec.matrix.org/v1.2/client-server-api/#mkeyverificationstartmreciprocatev1 + /// [here]: https://spec.matrix.org/v1.4/client-server-api/#mkeyverificationstartmreciprocatev1 ReciprocateV1(ReciprocateV1Content), /// Any unknown start method. diff --git a/crates/ruma-common/src/events/policy/rule/room.rs b/crates/ruma-common/src/events/policy/rule/room.rs index 8150b874..50d2ab85 100644 --- a/crates/ruma-common/src/events/policy/rule/room.rs +++ b/crates/ruma-common/src/events/policy/rule/room.rs @@ -1,6 +1,6 @@ //! Types for the [`m.policy.rule.room`] event. //! -//! [`m.policy.rule.room`]: https://spec.matrix.org/v1.2/client-server-api/#mpolicyruleroom +//! [`m.policy.rule.room`]: https://spec.matrix.org/v1.4/client-server-api/#mpolicyruleroom use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/policy/rule/server.rs b/crates/ruma-common/src/events/policy/rule/server.rs index 4616eaa5..d4fe159a 100644 --- a/crates/ruma-common/src/events/policy/rule/server.rs +++ b/crates/ruma-common/src/events/policy/rule/server.rs @@ -1,6 +1,6 @@ //! Types for the [`m.policy.rule.server`] event. //! -//! [`m.policy.rule.server`]: https://spec.matrix.org/v1.2/client-server-api/#mpolicyruleserver +//! [`m.policy.rule.server`]: https://spec.matrix.org/v1.4/client-server-api/#mpolicyruleserver use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/policy/rule/user.rs b/crates/ruma-common/src/events/policy/rule/user.rs index 3d08c311..6277a5bf 100644 --- a/crates/ruma-common/src/events/policy/rule/user.rs +++ b/crates/ruma-common/src/events/policy/rule/user.rs @@ -1,6 +1,6 @@ //! Types for the [`m.policy.rule.user`] event. //! -//! [`m.policy.rule.user`]: https://spec.matrix.org/v1.2/client-server-api/#mpolicyruleuser +//! [`m.policy.rule.user`]: https://spec.matrix.org/v1.4/client-server-api/#mpolicyruleuser use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/push_rules.rs b/crates/ruma-common/src/events/push_rules.rs index ad667d44..dc69449f 100644 --- a/crates/ruma-common/src/events/push_rules.rs +++ b/crates/ruma-common/src/events/push_rules.rs @@ -1,6 +1,6 @@ //! Types for the [`m.push_rules`] event. //! -//! [`m.push_rules`]: https://spec.matrix.org/v1.2/client-server-api/#mpush_rules +//! [`m.push_rules`]: https://spec.matrix.org/v1.4/client-server-api/#mpush_rules use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/receipt.rs b/crates/ruma-common/src/events/receipt.rs index 106016d2..e83b0141 100644 --- a/crates/ruma-common/src/events/receipt.rs +++ b/crates/ruma-common/src/events/receipt.rs @@ -1,6 +1,6 @@ //! Types for the [`m.receipt`] event. //! -//! [`m.receipt`]: https://spec.matrix.org/v1.2/client-server-api/#mreceipt +//! [`m.receipt`]: https://spec.matrix.org/v1.4/client-server-api/#mreceipt mod receipt_thread_serde; diff --git a/crates/ruma-common/src/events/relation.rs b/crates/ruma-common/src/events/relation.rs index d22e15a1..60238541 100644 --- a/crates/ruma-common/src/events/relation.rs +++ b/crates/ruma-common/src/events/relation.rs @@ -1,6 +1,6 @@ //! Types describing [relationships between events]. //! -//! [relationships between events]: https://spec.matrix.org/v1.3/client-server-api/#forming-relationships-between-events +//! [relationships between events]: https://spec.matrix.org/v1.4/client-server-api/#forming-relationships-between-events use std::fmt::Debug; @@ -133,7 +133,7 @@ impl BundledThread { /// [Bundled aggregations] of related child events. /// -/// [Bundled aggregations]: https://spec.matrix.org/v1.3/client-server-api/#aggregations +/// [Bundled aggregations]: https://spec.matrix.org/v1.4/client-server-api/#aggregations #[derive(Clone, Debug, Default, Deserialize, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Relations { diff --git a/crates/ruma-common/src/events/room/avatar.rs b/crates/ruma-common/src/events/room/avatar.rs index bb5e2f3d..703cdf65 100644 --- a/crates/ruma-common/src/events/room/avatar.rs +++ b/crates/ruma-common/src/events/room/avatar.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.avatar`] event. //! -//! [`m.room.avatar`]: https://spec.matrix.org/v1.2/client-server-api/#mroomavatar +//! [`m.room.avatar`]: https://spec.matrix.org/v1.4/client-server-api/#mroomavatar use js_int::UInt; use ruma_macros::EventContent; diff --git a/crates/ruma-common/src/events/room/canonical_alias.rs b/crates/ruma-common/src/events/room/canonical_alias.rs index b3e79115..f57de8e0 100644 --- a/crates/ruma-common/src/events/room/canonical_alias.rs +++ b/crates/ruma-common/src/events/room/canonical_alias.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.canonical_alias`] event. //! -//! [`m.room.canonical_alias`]: https://spec.matrix.org/v1.2/client-server-api/#mroomcanonical_alias +//! [`m.room.canonical_alias`]: https://spec.matrix.org/v1.4/client-server-api/#mroomcanonical_alias use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/create.rs b/crates/ruma-common/src/events/room/create.rs index ef7e9a24..ec2c1bcb 100644 --- a/crates/ruma-common/src/events/room/create.rs +++ b/crates/ruma-common/src/events/room/create.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.create`] event. //! -//! [`m.room.create`]: https://spec.matrix.org/v1.2/client-server-api/#mroomcreate +//! [`m.room.create`]: https://spec.matrix.org/v1.4/client-server-api/#mroomcreate use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/encrypted.rs b/crates/ruma-common/src/events/room/encrypted.rs index fd034a2b..e2790b2b 100644 --- a/crates/ruma-common/src/events/room/encrypted.rs +++ b/crates/ruma-common/src/events/room/encrypted.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.encrypted`] event. //! -//! [`m.room.encrypted`]: https://spec.matrix.org/v1.2/client-server-api/#mroomencrypted +//! [`m.room.encrypted`]: https://spec.matrix.org/v1.4/client-server-api/#mroomencrypted use std::collections::BTreeMap; diff --git a/crates/ruma-common/src/events/room/encryption.rs b/crates/ruma-common/src/events/room/encryption.rs index 3d1e8dee..6b333a05 100644 --- a/crates/ruma-common/src/events/room/encryption.rs +++ b/crates/ruma-common/src/events/room/encryption.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.encryption`] event. //! -//! [`m.room.encryption`]: https://spec.matrix.org/v1.2/client-server-api/#mroomencryption +//! [`m.room.encryption`]: https://spec.matrix.org/v1.4/client-server-api/#mroomencryption use js_int::UInt; use ruma_macros::EventContent; diff --git a/crates/ruma-common/src/events/room/guest_access.rs b/crates/ruma-common/src/events/room/guest_access.rs index 2d36d4bd..82c5ddb3 100644 --- a/crates/ruma-common/src/events/room/guest_access.rs +++ b/crates/ruma-common/src/events/room/guest_access.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.guest_access`] event. //! -//! [`m.room.guest_access`]: https://spec.matrix.org/v1.2/client-server-api/#mroomguest_access +//! [`m.room.guest_access`]: https://spec.matrix.org/v1.4/client-server-api/#mroomguest_access use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/history_visibility.rs b/crates/ruma-common/src/events/room/history_visibility.rs index a5078dd4..d2d9f6fa 100644 --- a/crates/ruma-common/src/events/room/history_visibility.rs +++ b/crates/ruma-common/src/events/room/history_visibility.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.history_visibility`] event. //! -//! [`m.room.history_visibility`]: https://spec.matrix.org/v1.2/client-server-api/#mroomhistory_visibility +//! [`m.room.history_visibility`]: https://spec.matrix.org/v1.4/client-server-api/#mroomhistory_visibility use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/join_rules.rs b/crates/ruma-common/src/events/room/join_rules.rs index 3003f497..b7cb3f11 100644 --- a/crates/ruma-common/src/events/room/join_rules.rs +++ b/crates/ruma-common/src/events/room/join_rules.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.join_rules`] event. //! -//! [`m.room.join_rules`]: https://spec.matrix.org/v1.2/client-server-api/#mroomjoin_rules +//! [`m.room.join_rules`]: https://spec.matrix.org/v1.4/client-server-api/#mroomjoin_rules use std::{borrow::Cow, collections::BTreeMap}; diff --git a/crates/ruma-common/src/events/room/member.rs b/crates/ruma-common/src/events/room/member.rs index dc07250e..9a664b2a 100644 --- a/crates/ruma-common/src/events/room/member.rs +++ b/crates/ruma-common/src/events/room/member.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.member`] event. //! -//! [`m.room.member`]: https://spec.matrix.org/v1.2/client-server-api/#mroommember +//! [`m.room.member`]: https://spec.matrix.org/v1.4/client-server-api/#mroommember use std::collections::BTreeMap; @@ -347,7 +347,7 @@ impl OriginalRoomMemberEvent { /// /// Check [the specification][spec] for details. /// - /// [spec]: https://spec.matrix.org/v1.2/client-server-api/#mroommember + /// [spec]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub fn membership_change(&self) -> MembershipChange<'_> { membership_change(self.details(), self.prev_details(), &self.sender, &self.state_key) } @@ -370,7 +370,7 @@ impl RedactedRoomMemberEvent { /// /// Check [the specification][spec] for details. /// - /// [spec]: https://spec.matrix.org/v1.2/client-server-api/#mroommember + /// [spec]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub fn membership_change<'a>( &'a self, prev_details: Option>, @@ -403,7 +403,7 @@ impl OriginalSyncRoomMemberEvent { /// /// Check [the specification][spec] for details. /// - /// [spec]: https://spec.matrix.org/v1.2/client-server-api/#mroommember + /// [spec]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub fn membership_change(&self) -> MembershipChange<'_> { membership_change(self.details(), self.prev_details(), &self.sender, &self.state_key) } @@ -426,7 +426,7 @@ impl RedactedSyncRoomMemberEvent { /// /// Check [the specification][spec] for details. /// - /// [spec]: https://spec.matrix.org/v1.2/client-server-api/#mroommember + /// [spec]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub fn membership_change<'a>( &'a self, prev_details: Option>, @@ -452,7 +452,7 @@ impl StrippedRoomMemberEvent { /// /// Check [the specification][spec] for details. /// - /// [spec]: https://spec.matrix.org/v1.2/client-server-api/#mroommember + /// [spec]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub fn membership_change<'a>( &'a self, prev_details: Option>, @@ -488,7 +488,7 @@ pub struct RoomMemberUnsigned { /// [Bundled aggregations] of related child events. /// - /// [Bundled aggregations]: https://spec.matrix.org/v1.3/client-server-api/#aggregations + /// [Bundled aggregations]: https://spec.matrix.org/v1.4/client-server-api/#aggregations #[serde(rename = "m.relations", skip_serializing_if = "Option::is_none")] pub relations: Option, } diff --git a/crates/ruma-common/src/events/room/member/change.rs b/crates/ruma-common/src/events/room/member/change.rs index 0dfb1904..0333aec2 100644 --- a/crates/ruma-common/src/events/room/member/change.rs +++ b/crates/ruma-common/src/events/room/member/change.rs @@ -97,7 +97,7 @@ impl Change { /// /// This must match the table for [`m.room.member`] in the spec. /// -/// [`m.room.member`]: https://spec.matrix.org/v1.2/client-server-api/#mroommember +/// [`m.room.member`]: https://spec.matrix.org/v1.4/client-server-api/#mroommember pub(super) fn membership_change<'a>( details: MembershipDetails<'a>, prev_details: Option>, diff --git a/crates/ruma-common/src/events/room/message.rs b/crates/ruma-common/src/events/room/message.rs index 13d7bd56..b393a8bd 100644 --- a/crates/ruma-common/src/events/room/message.rs +++ b/crates/ruma-common/src/events/room/message.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.message`] event. //! -//! [`m.room.message`]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage +//! [`m.room.message`]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage use std::borrow::Cow; @@ -60,7 +60,7 @@ pub struct RoomMessageEventContent { /// Information about related messages for [rich replies]. /// - /// [rich replies]: https://spec.matrix.org/v1.2/client-server-api/#rich-replies + /// [rich replies]: https://spec.matrix.org/v1.4/client-server-api/#rich-replies #[serde(flatten, skip_serializing_if = "Option::is_none")] pub relates_to: Option>, } @@ -316,8 +316,8 @@ impl RoomMessageEventContent { /// /// This method is only effective on text, notice and emote messages. /// - /// [tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes - /// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies + /// [tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes + /// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies #[cfg(feature = "unstable-sanitize")] pub fn sanitize( &mut self, @@ -420,7 +420,7 @@ pub enum MessageType { impl MessageType { /// Creates a new `MessageType`. /// - /// The `msgtype` and `body` are required fields as defined by [the `m.room.message` spec](https://spec.matrix.org/v1.2/client-server-api/#mroommessage). + /// The `msgtype` and `body` are required fields as defined by [the `m.room.message` spec](https://spec.matrix.org/v1.4/client-server-api/#mroommessage). /// Additionally it's possible to add arbitrary key/value pairs to the event content for custom /// events through the `data` map. /// @@ -678,8 +678,8 @@ impl FormattedBody { /// /// Returns the sanitized HTML if the format is `MessageFormat::Html`. /// - /// [tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes - /// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies + /// [tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes + /// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies #[cfg(feature = "unstable-sanitize")] pub fn sanitize_html( &mut self, diff --git a/crates/ruma-common/src/events/room/message/reply.rs b/crates/ruma-common/src/events/room/message/reply.rs index ac518008..2ae771db 100644 --- a/crates/ruma-common/src/events/room/message/reply.rs +++ b/crates/ruma-common/src/events/room/message/reply.rs @@ -94,8 +94,8 @@ fn formatted_or_plain_body( /// spec and previous [rich reply fallbacks] are removed from the previous message in the new rich /// reply fallback. /// -/// [HTML tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes -/// [rich reply fallbacks]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +/// [HTML tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes +/// [rich reply fallbacks]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies pub fn plain_and_formatted_reply_body( body: impl fmt::Display, formatted: Option, diff --git a/crates/ruma-common/src/events/room/message/sanitize.rs b/crates/ruma-common/src/events/room/message/sanitize.rs index 4975620b..77ead8a6 100644 --- a/crates/ruma-common/src/events/room/message/sanitize.rs +++ b/crates/ruma-common/src/events/room/message/sanitize.rs @@ -14,8 +14,8 @@ use html_sanitizer::HtmlSanitizer; /// /// It can also optionally remove the [rich reply fallback]. /// -/// [tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes -/// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +/// [tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes +/// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies #[cfg(feature = "unstable-sanitize")] pub fn sanitize_html( s: &str, @@ -28,7 +28,7 @@ pub fn sanitize_html( /// What HTML [tags and attributes] should be kept by the sanitizer. /// -/// [tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes +/// [tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes #[cfg(feature = "unstable-sanitize")] #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[allow(clippy::exhaustive_enums)] @@ -43,7 +43,7 @@ pub enum HtmlSanitizerMode { /// Whether to remove the [rich reply fallback] while sanitizing. /// -/// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +/// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies #[cfg(feature = "unstable-sanitize")] #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[allow(clippy::exhaustive_enums)] @@ -60,7 +60,7 @@ pub enum RemoveReplyFallback { /// Due to the fact that the HTML is parsed, note that malformed HTML and comments will be stripped /// from the output. /// -/// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +/// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies #[cfg(feature = "unstable-sanitize")] pub fn remove_html_reply_fallback(s: &str) -> String { let sanitizer = HtmlSanitizer::reply_fallback_remover(); @@ -69,7 +69,7 @@ pub fn remove_html_reply_fallback(s: &str) -> String { /// Remove the [rich reply fallback] of the given plain text string. /// -/// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies +/// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies pub fn remove_plain_reply_fallback(mut s: &str) -> &str { while s.starts_with("> ") { if let Some((_line, rest)) = s.split_once('\n') { diff --git a/crates/ruma-common/src/events/room/message/sanitize/html_sanitizer.rs b/crates/ruma-common/src/events/room/message/sanitize/html_sanitizer.rs index 1fe7b410..aae59a27 100644 --- a/crates/ruma-common/src/events/room/message/sanitize/html_sanitizer.rs +++ b/crates/ruma-common/src/events/room/message/sanitize/html_sanitizer.rs @@ -9,7 +9,7 @@ use super::{ /// A sanitizer to filter [HTML tags and attributes] according to the Matrix specification. /// -/// [HTML tags and attributes]: https://spec.matrix.org/v1.2/client-server-api/#mroommessage-msgtypes +/// [HTML tags and attributes]: https://spec.matrix.org/v1.4/client-server-api/#mroommessage-msgtypes #[derive(Debug, Clone)] pub struct HtmlSanitizer { /// The mode of the HTML sanitizer. @@ -37,7 +37,7 @@ impl HtmlSanitizer { /// /// It can also optionally remove the [rich reply fallback]. /// - /// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies + /// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies pub fn new(mode: HtmlSanitizerMode, remove_reply_fallback: RemoveReplyFallback) -> Self { Self { mode, @@ -48,7 +48,7 @@ impl HtmlSanitizer { /// Constructs a `HTMLSanitizer` instance that only removes the [rich reply fallback]. /// - /// [rich reply fallback]: https://spec.matrix.org/v1.2/client-server-api/#fallbacks-for-rich-replies + /// [rich reply fallback]: https://spec.matrix.org/v1.4/client-server-api/#fallbacks-for-rich-replies pub fn reply_fallback_remover() -> Self { Self { mode: HtmlSanitizerMode::Strict, diff --git a/crates/ruma-common/src/events/room/name.rs b/crates/ruma-common/src/events/room/name.rs index b704593c..ef975779 100644 --- a/crates/ruma-common/src/events/room/name.rs +++ b/crates/ruma-common/src/events/room/name.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.name`] event. //! -//! [`m.room.name`]: https://spec.matrix.org/v1.2/client-server-api/#mroomname +//! [`m.room.name`]: https://spec.matrix.org/v1.4/client-server-api/#mroomname use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/pinned_events.rs b/crates/ruma-common/src/events/room/pinned_events.rs index 278bda24..8c0695e2 100644 --- a/crates/ruma-common/src/events/room/pinned_events.rs +++ b/crates/ruma-common/src/events/room/pinned_events.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.pinned_events`] event. //! -//! [`m.room.pinned_events`]: https://spec.matrix.org/v1.2/client-server-api/#mroompinned_events +//! [`m.room.pinned_events`]: https://spec.matrix.org/v1.4/client-server-api/#mroompinned_events use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/power_levels.rs b/crates/ruma-common/src/events/room/power_levels.rs index 32b77445..c171b2df 100644 --- a/crates/ruma-common/src/events/room/power_levels.rs +++ b/crates/ruma-common/src/events/room/power_levels.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.power_levels`] event. //! -//! [`m.room.power_levels`]: https://spec.matrix.org/v1.2/client-server-api/#mroompower_levels +//! [`m.room.power_levels`]: https://spec.matrix.org/v1.4/client-server-api/#mroompower_levels use std::{cmp::max, collections::BTreeMap}; diff --git a/crates/ruma-common/src/events/room/redaction.rs b/crates/ruma-common/src/events/room/redaction.rs index 1fd6d4b3..0905ec9d 100644 --- a/crates/ruma-common/src/events/room/redaction.rs +++ b/crates/ruma-common/src/events/room/redaction.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.redaction`] event. //! -//! [`m.room.redaction`]: https://spec.matrix.org/v1.2/client-server-api/#mroomredaction +//! [`m.room.redaction`]: https://spec.matrix.org/v1.4/client-server-api/#mroomredaction use ruma_macros::{Event, EventContent}; use serde::{Deserialize, Deserializer, Serialize}; diff --git a/crates/ruma-common/src/events/room/server_acl.rs b/crates/ruma-common/src/events/room/server_acl.rs index f833d023..67afe24f 100644 --- a/crates/ruma-common/src/events/room/server_acl.rs +++ b/crates/ruma-common/src/events/room/server_acl.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.server_acl`] event. //! -//! [`m.room.server_acl`]: https://spec.matrix.org/v1.2/client-server-api/#mroomserver_acl +//! [`m.room.server_acl`]: https://spec.matrix.org/v1.4/client-server-api/#mroomserver_acl use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/third_party_invite.rs b/crates/ruma-common/src/events/room/third_party_invite.rs index ac5045ce..b9488fd3 100644 --- a/crates/ruma-common/src/events/room/third_party_invite.rs +++ b/crates/ruma-common/src/events/room/third_party_invite.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.third_party_invite`] event. //! -//! [`m.room.third_party_invite`]: https://spec.matrix.org/v1.2/client-server-api/#mroomthird_party_invite +//! [`m.room.third_party_invite`]: https://spec.matrix.org/v1.4/client-server-api/#mroomthird_party_invite use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/tombstone.rs b/crates/ruma-common/src/events/room/tombstone.rs index 366e43ae..7e678129 100644 --- a/crates/ruma-common/src/events/room/tombstone.rs +++ b/crates/ruma-common/src/events/room/tombstone.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.tombstone`] event. //! -//! [`m.room.tombstone`]: https://spec.matrix.org/v1.2/client-server-api/#mroomtombstone +//! [`m.room.tombstone`]: https://spec.matrix.org/v1.4/client-server-api/#mroomtombstone use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room/topic.rs b/crates/ruma-common/src/events/room/topic.rs index 36b7af0f..c8dadc5c 100644 --- a/crates/ruma-common/src/events/room/topic.rs +++ b/crates/ruma-common/src/events/room/topic.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room.topic`] event. //! -//! [`m.room.topic`]: https://spec.matrix.org/v1.2/client-server-api/#mroomtopic +//! [`m.room.topic`]: https://spec.matrix.org/v1.4/client-server-api/#mroomtopic use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room_key.rs b/crates/ruma-common/src/events/room_key.rs index 7c1248e0..b6d3190f 100644 --- a/crates/ruma-common/src/events/room_key.rs +++ b/crates/ruma-common/src/events/room_key.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room_key`] event. //! -//! [`m.room_key`]: https://spec.matrix.org/v1.2/client-server-api/#mroom_key +//! [`m.room_key`]: https://spec.matrix.org/v1.4/client-server-api/#mroom_key use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/room_key_request.rs b/crates/ruma-common/src/events/room_key_request.rs index c07b1713..50654f29 100644 --- a/crates/ruma-common/src/events/room_key_request.rs +++ b/crates/ruma-common/src/events/room_key_request.rs @@ -1,6 +1,6 @@ //! Types for the [`m.room_key_request`] event. //! -//! [`m.room_key_request`]: https://spec.matrix.org/v1.2/client-server-api/#mroom_key_request +//! [`m.room_key_request`]: https://spec.matrix.org/v1.4/client-server-api/#mroom_key_request use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/secret/request.rs b/crates/ruma-common/src/events/secret/request.rs index 1dc9dee6..87bd6c34 100644 --- a/crates/ruma-common/src/events/secret/request.rs +++ b/crates/ruma-common/src/events/secret/request.rs @@ -1,6 +1,6 @@ //! Types for the [`m.secret.request`] event. //! -//! [`m.secret.request`]: https://spec.matrix.org/v1.2/client-server-api/#msecretrequest +//! [`m.secret.request`]: https://spec.matrix.org/v1.4/client-server-api/#msecretrequest use ruma_macros::EventContent; use serde::{ser::SerializeStruct, Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/secret/send.rs b/crates/ruma-common/src/events/secret/send.rs index 84fab36d..3573562e 100644 --- a/crates/ruma-common/src/events/secret/send.rs +++ b/crates/ruma-common/src/events/secret/send.rs @@ -1,6 +1,6 @@ //! Types for the [`m.secret.send`] event. //! -//! [`m.secret.send`]: https://spec.matrix.org/v1.2/client-server-api/#msecretsend +//! [`m.secret.send`]: https://spec.matrix.org/v1.4/client-server-api/#msecretsend use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/secret_storage/default_key.rs b/crates/ruma-common/src/events/secret_storage/default_key.rs index 23df5b22..b99d29ac 100644 --- a/crates/ruma-common/src/events/secret_storage/default_key.rs +++ b/crates/ruma-common/src/events/secret_storage/default_key.rs @@ -1,6 +1,6 @@ //! Types for the [`m.secret_storage.default_key`] event. //! -//! [`m.secret_storage.default_key`]: https://spec.matrix.org/v1.2/client-server-api/#key-storage +//! [`m.secret_storage.default_key`]: https://spec.matrix.org/v1.4/client-server-api/#key-storage use ruma_common::events::macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/secret_storage/key.rs b/crates/ruma-common/src/events/secret_storage/key.rs index 98a2c1b0..742fa88f 100644 --- a/crates/ruma-common/src/events/secret_storage/key.rs +++ b/crates/ruma-common/src/events/secret_storage/key.rs @@ -1,6 +1,6 @@ //! Types for the [`m.secret_storage.key.*`] event. //! -//! [`m.secret_storage.key.*`]: https://spec.matrix.org/v1.2/client-server-api/#key-storage +//! [`m.secret_storage.key.*`]: https://spec.matrix.org/v1.4/client-server-api/#key-storage use js_int::{uint, UInt}; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/space.rs b/crates/ruma-common/src/events/space.rs index 0d89319e..0d7c7918 100644 --- a/crates/ruma-common/src/events/space.rs +++ b/crates/ruma-common/src/events/space.rs @@ -1,6 +1,6 @@ //! Types for the `m.space` events. //! -//! See [the specification](https://spec.matrix.org/v1.2/client-server-api/#spaces). +//! See [the specification](https://spec.matrix.org/v1.4/client-server-api/#spaces). pub mod child; pub mod parent; diff --git a/crates/ruma-common/src/events/space/child.rs b/crates/ruma-common/src/events/space/child.rs index fb304b97..a270ff7c 100644 --- a/crates/ruma-common/src/events/space/child.rs +++ b/crates/ruma-common/src/events/space/child.rs @@ -1,6 +1,6 @@ //! Types for the [`m.space.child`] event. //! -//! [`m.space.child`]: https://spec.matrix.org/v1.2/client-server-api/#mspacechild +//! [`m.space.child`]: https://spec.matrix.org/v1.4/client-server-api/#mspacechild use ruma_macros::{Event, EventContent}; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/space/parent.rs b/crates/ruma-common/src/events/space/parent.rs index bd51ff5a..47c714b3 100644 --- a/crates/ruma-common/src/events/space/parent.rs +++ b/crates/ruma-common/src/events/space/parent.rs @@ -1,6 +1,6 @@ //! Types for the [`m.space.parent`] event. //! -//! [`m.space.parent`]: https://spec.matrix.org/v1.2/client-server-api/#mspaceparent +//! [`m.space.parent`]: https://spec.matrix.org/v1.4/client-server-api/#mspaceparent use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/sticker.rs b/crates/ruma-common/src/events/sticker.rs index 059c995b..3ef41d02 100644 --- a/crates/ruma-common/src/events/sticker.rs +++ b/crates/ruma-common/src/events/sticker.rs @@ -1,6 +1,6 @@ //! Types for the [`m.sticker`] event. //! -//! [`m.sticker`]: https://spec.matrix.org/v1.2/client-server-api/#msticker +//! [`m.sticker`]: https://spec.matrix.org/v1.4/client-server-api/#msticker use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/tag.rs b/crates/ruma-common/src/events/tag.rs index 5aacfb2a..a12930ec 100644 --- a/crates/ruma-common/src/events/tag.rs +++ b/crates/ruma-common/src/events/tag.rs @@ -1,6 +1,6 @@ //! Types for the [`m.tag`] event. //! -//! [`m.tag`]: https://spec.matrix.org/v1.2/client-server-api/#mtag +//! [`m.tag`]: https://spec.matrix.org/v1.4/client-server-api/#mtag use std::{collections::BTreeMap, error::Error, fmt, str::FromStr}; @@ -87,7 +87,7 @@ pub enum TagName { LowPriority, /// `m.server_notice`: Used to identify - /// [Server Notice Rooms](https://spec.matrix.org/v1.2/client-server-api/#server-notices). + /// [Server Notice Rooms](https://spec.matrix.org/v1.4/client-server-api/#server-notices). ServerNotice, /// `u.*`: User-defined tag diff --git a/crates/ruma-common/src/events/typing.rs b/crates/ruma-common/src/events/typing.rs index afa3f340..79f8838d 100644 --- a/crates/ruma-common/src/events/typing.rs +++ b/crates/ruma-common/src/events/typing.rs @@ -1,6 +1,6 @@ //! Types for the [`m.typing`] event. //! -//! [`m.typing`]: https://spec.matrix.org/v1.2/client-server-api/#mtyping +//! [`m.typing`]: https://spec.matrix.org/v1.4/client-server-api/#mtyping use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/events/unsigned.rs b/crates/ruma-common/src/events/unsigned.rs index 55085a1d..532b8b1a 100644 --- a/crates/ruma-common/src/events/unsigned.rs +++ b/crates/ruma-common/src/events/unsigned.rs @@ -27,7 +27,7 @@ pub struct MessageLikeUnsigned { /// [Bundled aggregations] of related child events. /// - /// [Bundled aggregations]: https://spec.matrix.org/v1.3/client-server-api/#aggregations + /// [Bundled aggregations]: https://spec.matrix.org/v1.4/client-server-api/#aggregations #[serde(rename = "m.relations", skip_serializing_if = "Option::is_none")] pub relations: Option, } @@ -73,7 +73,7 @@ pub struct StateUnsigned { /// [Bundled aggregations] of related child events. /// - /// [Bundled aggregations]: https://spec.matrix.org/v1.3/client-server-api/#aggregations + /// [Bundled aggregations]: https://spec.matrix.org/v1.4/client-server-api/#aggregations #[serde(rename = "m.relations", skip_serializing_if = "Option::is_none")] pub relations: Option, } diff --git a/crates/ruma-common/src/identifiers/event_id.rs b/crates/ruma-common/src/identifiers/event_id.rs index 51176e5d..2c206a9a 100644 --- a/crates/ruma-common/src/identifiers/event_id.rs +++ b/crates/ruma-common/src/identifiers/event_id.rs @@ -11,7 +11,7 @@ use super::ServerName; /// /// # Room versions /// -/// Matrix specifies multiple [room versions](https://spec.matrix.org/v1.2/#room-versions) and the +/// Matrix specifies multiple [room versions](https://spec.matrix.org/v1.4/#room-versions) and the /// format of event identifiers differ between them. The original format used by room versions 1 and /// 2 uses a short pseudorandom "localpart" followed by the hostname and port of the originating /// homeserver. Later room versions change event identifiers to be a hash of the event encoded with @@ -34,7 +34,7 @@ use super::ServerName; /// ); /// ``` /// -/// [event ID]: https://spec.matrix.org/v1.2/appendices/#room-ids-and-event-ids +/// [event ID]: https://spec.matrix.org/v1.4/appendices/#room-ids-and-event-ids #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::event_id::validate)] diff --git a/crates/ruma-common/src/identifiers/matrix_uri.rs b/crates/ruma-common/src/identifiers/matrix_uri.rs index 9e9da929..07d9ce08 100644 --- a/crates/ruma-common/src/identifiers/matrix_uri.rs +++ b/crates/ruma-common/src/identifiers/matrix_uri.rs @@ -274,7 +274,7 @@ impl From<(&RoomAliasId, &EventId)> for MatrixId { /// Get the URI through its `Display` implementation (i.e. by interpolating it /// in a formatting macro or via `.to_string()`). /// -/// [`matrix.to` URI]: https://spec.matrix.org/v1.2/appendices/#matrixto-navigation +/// [`matrix.to` URI]: https://spec.matrix.org/v1.4/appendices/#matrixto-navigation #[derive(Debug, PartialEq, Eq)] pub struct MatrixToUri { id: MatrixId, @@ -458,7 +458,7 @@ impl From> for UriAction { /// Get the URI through its `Display` implementation (i.e. by interpolating it /// in a formatting macro or via `.to_string()`). /// -/// [`matrix:` URI]: https://spec.matrix.org/v1.2/appendices/#matrix-uri-scheme +/// [`matrix:` URI]: https://spec.matrix.org/v1.4/appendices/#matrix-uri-scheme #[derive(Debug, PartialEq, Eq)] pub struct MatrixUri { id: MatrixId, diff --git a/crates/ruma-common/src/identifiers/mxc_uri.rs b/crates/ruma-common/src/identifiers/mxc_uri.rs index a074a0e5..c1810098 100644 --- a/crates/ruma-common/src/identifiers/mxc_uri.rs +++ b/crates/ruma-common/src/identifiers/mxc_uri.rs @@ -1,6 +1,6 @@ //! A URI that should be a Matrix-spec compliant [MXC URI]. //! -//! [MXC URI]: https://spec.matrix.org/v1.2/client-server-api/#matrix-content-mxc-uris +//! [MXC URI]: https://spec.matrix.org/v1.4/client-server-api/#matrix-content-mxc-uris use std::num::NonZeroU8; @@ -13,7 +13,7 @@ type Result = std::result::Result; /// A URI that should be a Matrix-spec compliant [MXC URI]. /// -/// [MXC URI]: https://spec.matrix.org/v1.2/client-server-api/#matrix-content-mxc-uris +/// [MXC URI]: https://spec.matrix.org/v1.4/client-server-api/#matrix-content-mxc-uris #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] diff --git a/crates/ruma-common/src/identifiers/room_alias_id.rs b/crates/ruma-common/src/identifiers/room_alias_id.rs index ec9f7141..61f3d702 100644 --- a/crates/ruma-common/src/identifiers/room_alias_id.rs +++ b/crates/ruma-common/src/identifiers/room_alias_id.rs @@ -14,7 +14,7 @@ use super::{matrix_uri::UriAction, server_name::ServerName, MatrixToUri, MatrixU /// assert_eq!(<&RoomAliasId>::try_from("#ruma:example.com").unwrap(), "#ruma:example.com"); /// ``` /// -/// [room alias ID]: https://spec.matrix.org/v1.2/appendices/#room-aliases +/// [room alias ID]: https://spec.matrix.org/v1.4/appendices/#room-aliases #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::room_alias_id::validate)] diff --git a/crates/ruma-common/src/identifiers/room_id.rs b/crates/ruma-common/src/identifiers/room_id.rs index 6ecd7b5a..11822552 100644 --- a/crates/ruma-common/src/identifiers/room_id.rs +++ b/crates/ruma-common/src/identifiers/room_id.rs @@ -16,7 +16,7 @@ use super::{ /// assert_eq!(<&RoomId>::try_from("!n8f893n9:example.com").unwrap(), "!n8f893n9:example.com"); /// ``` /// -/// [room ID]: https://spec.matrix.org/v1.2/appendices/#room-ids-and-event-ids +/// [room ID]: https://spec.matrix.org/v1.4/appendices/#room-ids-and-event-ids #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::room_id::validate)] @@ -82,7 +82,7 @@ impl RoomId { /// ); /// ``` /// - /// [routing algorithm]: https://spec.matrix.org/v1.3/appendices/#routing + /// [routing algorithm]: https://spec.matrix.org/v1.4/appendices/#routing pub fn matrix_to_uri_via(&self, via: T) -> MatrixToUri where T: IntoIterator, @@ -106,7 +106,7 @@ impl RoomId { /// /// If you don't have a list of servers, you can use [`RoomId::matrix_to_event_uri()`] instead. /// - /// [routing algorithm]: https://spec.matrix.org/v1.3/appendices/#routing + /// [routing algorithm]: https://spec.matrix.org/v1.4/appendices/#routing pub fn matrix_to_event_uri_via(&self, ev_id: impl Into, via: T) -> MatrixToUri where T: IntoIterator, @@ -163,7 +163,7 @@ impl RoomId { /// ); /// ``` /// - /// [routing algorithm]: https://spec.matrix.org/v1.3/appendices/#routing + /// [routing algorithm]: https://spec.matrix.org/v1.4/appendices/#routing pub fn matrix_uri_via(&self, via: T, join: bool) -> MatrixUri where T: IntoIterator, @@ -191,7 +191,7 @@ impl RoomId { /// /// If you don't have a list of servers, you can use [`RoomId::matrix_event_uri()`] instead. /// - /// [routing algorithm]: https://spec.matrix.org/v1.3/appendices/#routing + /// [routing algorithm]: https://spec.matrix.org/v1.4/appendices/#routing pub fn matrix_event_uri_via(&self, ev_id: impl Into, via: T) -> MatrixUri where T: IntoIterator, diff --git a/crates/ruma-common/src/identifiers/room_or_room_alias_id.rs b/crates/ruma-common/src/identifiers/room_or_room_alias_id.rs index 1c1f83d5..b05da8b2 100644 --- a/crates/ruma-common/src/identifiers/room_or_room_alias_id.rs +++ b/crates/ruma-common/src/identifiers/room_or_room_alias_id.rs @@ -22,8 +22,8 @@ use super::{server_name::ServerName, OwnedRoomAliasId, OwnedRoomId, RoomAliasId, /// ); /// ``` /// -/// [room ID]: https://spec.matrix.org/v1.2/appendices/#room-ids-and-event-ids -/// [room alias ID]: https://spec.matrix.org/v1.2/appendices/#room-aliases +/// [room ID]: https://spec.matrix.org/v1.4/appendices/#room-ids-and-event-ids +/// [room alias ID]: https://spec.matrix.org/v1.4/appendices/#room-aliases #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::room_id_or_alias_id::validate)] diff --git a/crates/ruma-common/src/identifiers/room_version_id.rs b/crates/ruma-common/src/identifiers/room_version_id.rs index 48cddc12..7008b7d3 100644 --- a/crates/ruma-common/src/identifiers/room_version_id.rs +++ b/crates/ruma-common/src/identifiers/room_version_id.rs @@ -22,7 +22,7 @@ use super::IdParseError; /// written are represented by a hidden enum variant. You can still construct them the same, and /// check for them using one of `RoomVersionId`s `PartialEq` implementations or through `.as_str()`. /// -/// [room version]: https://spec.matrix.org/v1.2/rooms/ +/// [room version]: https://spec.matrix.org/v1.4/rooms/ #[derive(Clone, Debug, PartialEq, Eq, Hash, DisplayAsRefStr)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub enum RoomVersionId { diff --git a/crates/ruma-common/src/identifiers/server_name.rs b/crates/ruma-common/src/identifiers/server_name.rs index 594a8407..89ee7271 100644 --- a/crates/ruma-common/src/identifiers/server_name.rs +++ b/crates/ruma-common/src/identifiers/server_name.rs @@ -8,7 +8,7 @@ use ruma_macros::IdZst; /// /// It consists of a host and an optional port (separated by a colon if present). /// -/// [server name]: https://spec.matrix.org/v1.2/appendices/#server-name +/// [server name]: https://spec.matrix.org/v1.4/appendices/#server-name #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::server_name::validate)] diff --git a/crates/ruma-common/src/identifiers/user_id.rs b/crates/ruma-common/src/identifiers/user_id.rs index 5ea50dc8..be887cce 100644 --- a/crates/ruma-common/src/identifiers/user_id.rs +++ b/crates/ruma-common/src/identifiers/user_id.rs @@ -14,7 +14,7 @@ use super::{matrix_uri::UriAction, IdParseError, MatrixToUri, MatrixUri, ServerN /// assert_eq!(<&UserId>::try_from("@carl:example.com").unwrap(), "@carl:example.com"); /// ``` /// -/// [user ID]: https://spec.matrix.org/v1.2/appendices/#user-identifiers +/// [user ID]: https://spec.matrix.org/v1.4/appendices/#user-identifiers #[repr(transparent)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)] #[ruma_id(validate = ruma_identifiers_validation::user_id::validate)] diff --git a/crates/ruma-common/src/power_levels.rs b/crates/ruma-common/src/power_levels.rs index 322a1304..62a1ca4d 100644 --- a/crates/ruma-common/src/power_levels.rs +++ b/crates/ruma-common/src/power_levels.rs @@ -1,6 +1,6 @@ //! Common types for the [`m.room.power_levels` event][power_levels]. //! -//! [power_levels]: https://spec.matrix.org/v1.2/client-server-api/#mroompower_levels +//! [power_levels]: https://spec.matrix.org/v1.4/client-server-api/#mroompower_levels use js_int::{int, Int}; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-common/src/presence.rs b/crates/ruma-common/src/presence.rs index 9bb0e84a..819167f9 100644 --- a/crates/ruma-common/src/presence.rs +++ b/crates/ruma-common/src/presence.rs @@ -1,6 +1,6 @@ //! Common types for the [presence module][presence]. //! -//! [presence]: https://spec.matrix.org/v1.2/client-server-api/#presence +//! [presence]: https://spec.matrix.org/v1.4/client-server-api/#presence use crate::{serde::StringEnum, PrivOwnedStr}; diff --git a/crates/ruma-common/src/push.rs b/crates/ruma-common/src/push.rs index 516b56c5..639f0f9b 100644 --- a/crates/ruma-common/src/push.rs +++ b/crates/ruma-common/src/push.rs @@ -1,6 +1,6 @@ //! Common types for the [push notifications module][push]. //! -//! [push]: https://spec.matrix.org/v1.2/client-server-api/#push-notifications +//! [push]: https://spec.matrix.org/v1.4/client-server-api/#push-notifications //! //! ## Understanding the types of this module //! @@ -450,7 +450,7 @@ impl PusherData { /// A special format that the homeserver should use when sending notifications to a Push Gateway. /// Currently, only "event_id_only" is supported as of [Push Gateway API r0.1.1][spec]. /// -/// [spec]: https://spec.matrix.org/v1.2/push-gateway-api/#homeserver-behaviour +/// [spec]: https://spec.matrix.org/v1.4/push-gateway-api/#homeserver-behaviour #[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))] #[derive(Clone, Debug, PartialEq, Eq, StringEnum)] #[ruma_enum(rename_all = "snake_case")] diff --git a/crates/ruma-common/src/push/action.rs b/crates/ruma-common/src/push/action.rs index fef7f8b2..7c062def 100644 --- a/crates/ruma-common/src/push/action.rs +++ b/crates/ruma-common/src/push/action.rs @@ -6,7 +6,7 @@ use serde_json::value::RawValue as RawJsonValue; /// This represents the different actions that should be taken when a rule is matched, and /// controls how notifications are delivered to the client. /// -/// See [the spec](https://spec.matrix.org/v1.2/client-server-api/#actions) for details. +/// See [the spec](https://spec.matrix.org/v1.4/client-server-api/#actions) for details. #[derive(Clone, Debug)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub enum Action { diff --git a/crates/ruma-common/src/push/condition.rs b/crates/ruma-common/src/push/condition.rs index 360a4314..2629b739 100644 --- a/crates/ruma-common/src/push/condition.rs +++ b/crates/ruma-common/src/push/condition.rs @@ -514,7 +514,7 @@ mod tests { assert!(!"m".matches_word("[[:alpha:]]?")); assert!("[[:alpha:]]!".matches_word("[[:alpha:]]?")); - // From the spec: + // From the spec: assert!("An example event.".matches_word("ex*ple")); assert!("exple".matches_word("ex*ple")); assert!("An exciting triple-whammy".matches_word("ex*ple")); @@ -563,7 +563,7 @@ mod tests { assert!("".matches_pattern("*", false)); assert!(!"foo".matches_pattern("", false)); - // From the spec: + // From the spec: assert!("Lunch plans".matches_pattern("lunc?*", false)); assert!("LUNCH".matches_pattern("lunc?*", false)); assert!(!" lunch".matches_pattern("lunc?*", false)); diff --git a/crates/ruma-common/src/push/predefined.rs b/crates/ruma-common/src/push/predefined.rs index 992ed7dc..7e8ae869 100644 --- a/crates/ruma-common/src/push/predefined.rs +++ b/crates/ruma-common/src/push/predefined.rs @@ -1,6 +1,6 @@ ///! Constructors for [predefined push rules]. ///! -///! [predefined push rules]: https://spec.matrix.org/v1.2/client-server-api/#predefined-rules +///! [predefined push rules]: https://spec.matrix.org/v1.4/client-server-api/#predefined-rules use super::{ Action::*, ConditionalPushRule, PatternedPushRule, PushCondition::*, RoomMemberCountIs, Ruleset, Tweak, @@ -10,7 +10,7 @@ use crate::UserId; impl Ruleset { /// The list of all [predefined push rules]. /// - /// [predefined push rules]: https://spec.matrix.org/v1.2/client-server-api/#predefined-rules + /// [predefined push rules]: https://spec.matrix.org/v1.4/client-server-api/#predefined-rules /// /// # Parameters /// diff --git a/crates/ruma-common/src/thirdparty.rs b/crates/ruma-common/src/thirdparty.rs index fa0d7cf7..1a979946 100644 --- a/crates/ruma-common/src/thirdparty.rs +++ b/crates/ruma-common/src/thirdparty.rs @@ -1,6 +1,6 @@ //! Common types for the [third party networks module][thirdparty]. //! -//! [thirdparty]: https://spec.matrix.org/v1.2/client-server-api/#third-party-networks +//! [thirdparty]: https://spec.matrix.org/v1.4/client-server-api/#third-party-networks use std::collections::BTreeMap; diff --git a/crates/ruma-common/src/to_device.rs b/crates/ruma-common/src/to_device.rs index a315ed64..c24ea107 100644 --- a/crates/ruma-common/src/to_device.rs +++ b/crates/ruma-common/src/to_device.rs @@ -1,6 +1,6 @@ //! Common types for the Send-To-Device Messaging //! -//! [send-to-device]: https://spec.matrix.org/v1.2/client-server-api/#send-to-device-messaging +//! [send-to-device]: https://spec.matrix.org/v1.4/client-server-api/#send-to-device-messaging use std::fmt::{Display, Formatter, Result as FmtResult}; diff --git a/crates/ruma-federation-api/src/authorization/get_event_authorization.rs b/crates/ruma-federation-api/src/authorization/get_event_authorization.rs index ccd0a733..cfe0244a 100644 --- a/crates/ruma-federation-api/src/authorization/get_event_authorization.rs +++ b/crates/ruma-federation-api/src/authorization/get_event_authorization.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1event_authroomideventid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1event_authroomideventid use ruma_common::{api::ruma_api, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/backfill/get_backfill.rs b/crates/ruma-federation-api/src/backfill/get_backfill.rs index 4c87cef9..c4ce925a 100644 --- a/crates/ruma-federation-api/src/backfill/get_backfill.rs +++ b/crates/ruma-federation-api/src/backfill/get_backfill.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1backfillroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1backfillroomid use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-federation-api/src/device/get_devices.rs b/crates/ruma-federation-api/src/device/get_devices.rs index 7b3ed880..fe3df751 100644 --- a/crates/ruma-federation-api/src/device/get_devices.rs +++ b/crates/ruma-federation-api/src/device/get_devices.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1userdevicesuserid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1userdevicesuserid use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-federation-api/src/directory/get_public_rooms.rs b/crates/ruma-federation-api/src/directory/get_public_rooms.rs index 3d7eb898..ab1f6266 100644 --- a/crates/ruma-federation-api/src/directory/get_public_rooms.rs +++ b/crates/ruma-federation-api/src/directory/get_public_rooms.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixfederationv1publicrooms + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixfederationv1publicrooms use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-federation-api/src/directory/get_public_rooms_filtered.rs b/crates/ruma-federation-api/src/directory/get_public_rooms_filtered.rs index 82000348..9ce43f80 100644 --- a/crates/ruma-federation-api/src/directory/get_public_rooms_filtered.rs +++ b/crates/ruma-federation-api/src/directory/get_public_rooms_filtered.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixfederationv1publicrooms + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixfederationv1publicrooms use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-federation-api/src/discovery/discover_homeserver.rs b/crates/ruma-federation-api/src/discovery/discover_homeserver.rs index 71d3e589..40413b2d 100644 --- a/crates/ruma-federation-api/src/discovery/discover_homeserver.rs +++ b/crates/ruma-federation-api/src/discovery/discover_homeserver.rs @@ -1,6 +1,6 @@ //! `GET /.well-known/matrix/server` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#getwell-knownmatrixserver +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#getwell-knownmatrixserver use ruma_common::{api::ruma_api, OwnedServerName}; diff --git a/crates/ruma-federation-api/src/discovery/get_remote_server_keys.rs b/crates/ruma-federation-api/src/discovery/get_remote_server_keys.rs index 52f4f99d..e950d05f 100644 --- a/crates/ruma-federation-api/src/discovery/get_remote_server_keys.rs +++ b/crates/ruma-federation-api/src/discovery/get_remote_server_keys.rs @@ -6,7 +6,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixkeyv2queryservernamekeyid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixkeyv2queryservernamekeyid use ruma_common::{api::ruma_api, serde::Raw, MilliSecondsSinceUnixEpoch, ServerName}; diff --git a/crates/ruma-federation-api/src/discovery/get_remote_server_keys_batch.rs b/crates/ruma-federation-api/src/discovery/get_remote_server_keys_batch.rs index 17a72f4a..5f9db2e1 100644 --- a/crates/ruma-federation-api/src/discovery/get_remote_server_keys_batch.rs +++ b/crates/ruma-federation-api/src/discovery/get_remote_server_keys_batch.rs @@ -6,7 +6,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixkeyv2query + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixkeyv2query use std::collections::BTreeMap; diff --git a/crates/ruma-federation-api/src/discovery/get_server_keys.rs b/crates/ruma-federation-api/src/discovery/get_server_keys.rs index 1ee52e8f..39f83180 100644 --- a/crates/ruma-federation-api/src/discovery/get_server_keys.rs +++ b/crates/ruma-federation-api/src/discovery/get_server_keys.rs @@ -8,7 +8,7 @@ pub mod v2 { //! Note: The specification includes `/{keyID}`, but this is deprecated, and the trailing slash //! then made optional. //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixkeyv2serverkeyid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixkeyv2serverkeyid use ruma_common::{api::ruma_api, serde::Raw}; diff --git a/crates/ruma-federation-api/src/discovery/get_server_version.rs b/crates/ruma-federation-api/src/discovery/get_server_version.rs index 92694e0f..9e86ef2d 100644 --- a/crates/ruma-federation-api/src/discovery/get_server_version.rs +++ b/crates/ruma-federation-api/src/discovery/get_server_version.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1version + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1version use ruma_common::api::ruma_api; use serde::{Deserialize, Serialize}; diff --git a/crates/ruma-federation-api/src/event/get_event.rs b/crates/ruma-federation-api/src/event/get_event.rs index 843ed089..1b22ede4 100644 --- a/crates/ruma-federation-api/src/event/get_event.rs +++ b/crates/ruma-federation-api/src/event/get_event.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1eventeventid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1eventeventid use ruma_common::{api::ruma_api, EventId, MilliSecondsSinceUnixEpoch, OwnedServerName}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/event/get_missing_events.rs b/crates/ruma-federation-api/src/event/get_missing_events.rs index b84528ac..87085109 100644 --- a/crates/ruma-federation-api/src/event/get_missing_events.rs +++ b/crates/ruma-federation-api/src/event/get_missing_events.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixfederationv1get_missing_eventsroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixfederationv1get_missing_eventsroomid use js_int::{uint, UInt}; use ruma_common::{api::ruma_api, OwnedEventId, RoomId}; diff --git a/crates/ruma-federation-api/src/event/get_room_state.rs b/crates/ruma-federation-api/src/event/get_room_state.rs index 90cf661c..e088ce6c 100644 --- a/crates/ruma-federation-api/src/event/get_room_state.rs +++ b/crates/ruma-federation-api/src/event/get_room_state.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1stateroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1stateroomid use ruma_common::{api::ruma_api, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/event/get_room_state_ids.rs b/crates/ruma-federation-api/src/event/get_room_state_ids.rs index 22ffc660..494eee77 100644 --- a/crates/ruma-federation-api/src/event/get_room_state_ids.rs +++ b/crates/ruma-federation-api/src/event/get_room_state_ids.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1state_idsroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1state_idsroomid use ruma_common::{api::ruma_api, EventId, OwnedEventId, RoomId}; diff --git a/crates/ruma-federation-api/src/keys/claim_keys.rs b/crates/ruma-federation-api/src/keys/claim_keys.rs index ffba66b7..187f4cd9 100644 --- a/crates/ruma-federation-api/src/keys/claim_keys.rs +++ b/crates/ruma-federation-api/src/keys/claim_keys.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixfederationv1userkeysclaim + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixfederationv1userkeysclaim use std::collections::BTreeMap; diff --git a/crates/ruma-federation-api/src/keys/get_keys.rs b/crates/ruma-federation-api/src/keys/get_keys.rs index cae3b6df..6fa62157 100644 --- a/crates/ruma-federation-api/src/keys/get_keys.rs +++ b/crates/ruma-federation-api/src/keys/get_keys.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#post_matrixfederationv1userkeysquery + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#post_matrixfederationv1userkeysquery use std::collections::BTreeMap; diff --git a/crates/ruma-federation-api/src/knock/create_knock_event_template.rs b/crates/ruma-federation-api/src/knock/create_knock_event_template.rs index f7d9e06f..e54c6dcc 100644 --- a/crates/ruma-federation-api/src/knock/create_knock_event_template.rs +++ b/crates/ruma-federation-api/src/knock/create_knock_event_template.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1make_knockroomiduserid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1make_knockroomiduserid use ruma_common::{api::ruma_api, RoomId, RoomVersionId, UserId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/knock/send_knock.rs b/crates/ruma-federation-api/src/knock/send_knock.rs index 2557a897..b21b9dfd 100644 --- a/crates/ruma-federation-api/src/knock/send_knock.rs +++ b/crates/ruma-federation-api/src/knock/send_knock.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1send_knockroomideventid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1send_knockroomideventid use ruma_common::{api::ruma_api, events::AnyStrippedStateEvent, serde::Raw, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/lib.rs b/crates/ruma-federation-api/src/lib.rs index bb917c0e..bc65528f 100644 --- a/crates/ruma-federation-api/src/lib.rs +++ b/crates/ruma-federation-api/src/lib.rs @@ -3,7 +3,7 @@ //! (De)serializable types for the [Matrix Server-Server API][federation-api]. //! These types are used by server code. //! -//! [federation-api]: https://spec.matrix.org/v1.2/server-server-api/ +//! [federation-api]: https://spec.matrix.org/v1.4/server-server-api/ #![warn(missing_docs)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] diff --git a/crates/ruma-federation-api/src/membership/create_invite/v1.rs b/crates/ruma-federation-api/src/membership/create_invite/v1.rs index 2b6e09b8..a07496e3 100644 --- a/crates/ruma-federation-api/src/membership/create_invite/v1.rs +++ b/crates/ruma-federation-api/src/membership/create_invite/v1.rs @@ -1,6 +1,6 @@ //! `/v1/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1inviteroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1inviteroomideventid use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-federation-api/src/membership/create_invite/v2.rs b/crates/ruma-federation-api/src/membership/create_invite/v2.rs index 30fd9282..974e9c29 100644 --- a/crates/ruma-federation-api/src/membership/create_invite/v2.rs +++ b/crates/ruma-federation-api/src/membership/create_invite/v2.rs @@ -1,6 +1,6 @@ //! `/v2/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv2inviteroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv2inviteroomideventid use ruma_common::{ api::ruma_api, events::AnyStrippedStateEvent, serde::Raw, EventId, RoomId, RoomVersionId, diff --git a/crates/ruma-federation-api/src/membership/create_join_event/v1.rs b/crates/ruma-federation-api/src/membership/create_join_event/v1.rs index 37333cb3..6bb2c4ae 100644 --- a/crates/ruma-federation-api/src/membership/create_join_event/v1.rs +++ b/crates/ruma-federation-api/src/membership/create_join_event/v1.rs @@ -1,6 +1,6 @@ //! `/v1/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1send_joinroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1send_joinroomideventid use ruma_common::{api::ruma_api, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/membership/create_join_event/v2.rs b/crates/ruma-federation-api/src/membership/create_join_event/v2.rs index 6ea3ca3c..c487c96f 100644 --- a/crates/ruma-federation-api/src/membership/create_join_event/v2.rs +++ b/crates/ruma-federation-api/src/membership/create_join_event/v2.rs @@ -1,6 +1,6 @@ //! `/v2/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv2send_joinroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv2send_joinroomideventid use ruma_common::{api::ruma_api, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/membership/create_leave_event/v1.rs b/crates/ruma-federation-api/src/membership/create_leave_event/v1.rs index b128c405..aab90b72 100644 --- a/crates/ruma-federation-api/src/membership/create_leave_event/v1.rs +++ b/crates/ruma-federation-api/src/membership/create_leave_event/v1.rs @@ -1,6 +1,6 @@ //! `/v1/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1send_leaveroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1send_leaveroomideventid use js_int::UInt; use ruma_common::{ diff --git a/crates/ruma-federation-api/src/membership/create_leave_event/v2.rs b/crates/ruma-federation-api/src/membership/create_leave_event/v2.rs index 552a0aa9..c4339fba 100644 --- a/crates/ruma-federation-api/src/membership/create_leave_event/v2.rs +++ b/crates/ruma-federation-api/src/membership/create_leave_event/v2.rs @@ -1,6 +1,6 @@ //! `/v2/` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv2send_leaveroomideventid +//! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv2send_leaveroomideventid use ruma_common::{api::ruma_api, EventId, RoomId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/membership/prepare_join_event.rs b/crates/ruma-federation-api/src/membership/prepare_join_event.rs index 580f6dba..3d4ed768 100644 --- a/crates/ruma-federation-api/src/membership/prepare_join_event.rs +++ b/crates/ruma-federation-api/src/membership/prepare_join_event.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1make_joinroomiduserid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1make_joinroomiduserid use ruma_common::{api::ruma_api, RoomId, RoomVersionId, UserId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/membership/prepare_leave_event.rs b/crates/ruma-federation-api/src/membership/prepare_leave_event.rs index b3b3d893..8158b6c4 100644 --- a/crates/ruma-federation-api/src/membership/prepare_leave_event.rs +++ b/crates/ruma-federation-api/src/membership/prepare_leave_event.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1make_leaveroomiduserid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1make_leaveroomiduserid use ruma_common::{api::ruma_api, RoomId, RoomVersionId, UserId}; use serde_json::value::RawValue as RawJsonValue; diff --git a/crates/ruma-federation-api/src/openid/get_openid_userinfo.rs b/crates/ruma-federation-api/src/openid/get_openid_userinfo.rs index a4bf01cc..f03afdbf 100644 --- a/crates/ruma-federation-api/src/openid/get_openid_userinfo.rs +++ b/crates/ruma-federation-api/src/openid/get_openid_userinfo.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1openiduserinfo + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1openiduserinfo use ruma_common::{api::ruma_api, OwnedUserId}; diff --git a/crates/ruma-federation-api/src/query/get_custom_information.rs b/crates/ruma-federation-api/src/query/get_custom_information.rs index 032b1e0b..1c76a43a 100644 --- a/crates/ruma-federation-api/src/query/get_custom_information.rs +++ b/crates/ruma-federation-api/src/query/get_custom_information.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1queryquerytype + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1queryquerytype use std::collections::BTreeMap; diff --git a/crates/ruma-federation-api/src/query/get_profile_information.rs b/crates/ruma-federation-api/src/query/get_profile_information.rs index 417f868c..39292fa9 100644 --- a/crates/ruma-federation-api/src/query/get_profile_information.rs +++ b/crates/ruma-federation-api/src/query/get_profile_information.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1queryprofile + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1queryprofile use ruma_common::{api::ruma_api, serde::StringEnum, OwnedMxcUri, UserId}; diff --git a/crates/ruma-federation-api/src/query/get_room_information.rs b/crates/ruma-federation-api/src/query/get_room_information.rs index 98e3ee17..288bcb33 100644 --- a/crates/ruma-federation-api/src/query/get_room_information.rs +++ b/crates/ruma-federation-api/src/query/get_room_information.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1querydirectory + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1querydirectory use ruma_common::{api::ruma_api, OwnedRoomId, OwnedServerName, RoomAliasId}; diff --git a/crates/ruma-federation-api/src/serde/v1_pdu.rs b/crates/ruma-federation-api/src/serde/v1_pdu.rs index bff8dcf6..c5aa0a66 100644 --- a/crates/ruma-federation-api/src/serde/v1_pdu.rs +++ b/crates/ruma-federation-api/src/serde/v1_pdu.rs @@ -1,8 +1,8 @@ //! A module to deserialize a response from incorrectly specified endpoint: //! -//! - [PUT /_matrix/federation/v1/send_join/{roomId}/{eventId}](https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1send_joinroomideventid) -//! - [PUT /_matrix/federation/v1/invite/{roomId}/{eventId}](https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1inviteroomideventid) -//! - [PUT /_matrix/federation/v1/send_leave/{roomId}/{eventId}](https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1send_leaveroomideventid) +//! - [PUT /_matrix/federation/v1/send_join/{roomId}/{eventId}](https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1send_joinroomideventid) +//! - [PUT /_matrix/federation/v1/invite/{roomId}/{eventId}](https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1inviteroomideventid) +//! - [PUT /_matrix/federation/v1/send_leave/{roomId}/{eventId}](https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1send_leaveroomideventid) //! //! For more information, see this [GitHub issue][issue]. //! diff --git a/crates/ruma-federation-api/src/space/get_hierarchy.rs b/crates/ruma-federation-api/src/space/get_hierarchy.rs index 40e9de85..985e0303 100644 --- a/crates/ruma-federation-api/src/space/get_hierarchy.rs +++ b/crates/ruma-federation-api/src/space/get_hierarchy.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#get_matrixfederationv1hierarchyroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#get_matrixfederationv1hierarchyroomid use ruma_common::{api::ruma_api, OwnedRoomId, RoomId}; diff --git a/crates/ruma-federation-api/src/thirdparty/bind_callback.rs b/crates/ruma-federation-api/src/thirdparty/bind_callback.rs index f700f0b7..820ec363 100644 --- a/crates/ruma-federation-api/src/thirdparty/bind_callback.rs +++ b/crates/ruma-federation-api/src/thirdparty/bind_callback.rs @@ -7,7 +7,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv13pidonbind + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv13pidonbind use std::collections::BTreeMap; diff --git a/crates/ruma-federation-api/src/thirdparty/exchange_invite.rs b/crates/ruma-federation-api/src/thirdparty/exchange_invite.rs index 7c9cd3a7..d6fd2402 100644 --- a/crates/ruma-federation-api/src/thirdparty/exchange_invite.rs +++ b/crates/ruma-federation-api/src/thirdparty/exchange_invite.rs @@ -4,12 +4,12 @@ //! If valid, the receiving server will issue an invite as per the [Inviting to a room] section //! before returning a response to this request. //! -//! [Inviting to a room]: https://spec.matrix.org/v1.2/server-server-api/#inviting-to-a-room +//! [Inviting to a room]: https://spec.matrix.org/v1.4/server-server-api/#inviting-to-a-room pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1exchange_third_party_inviteroomid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1exchange_third_party_inviteroomid use ruma_common::{ api::ruma_api, diff --git a/crates/ruma-federation-api/src/transactions/send_transaction_message.rs b/crates/ruma-federation-api/src/transactions/send_transaction_message.rs index 93c3e79e..02666872 100644 --- a/crates/ruma-federation-api/src/transactions/send_transaction_message.rs +++ b/crates/ruma-federation-api/src/transactions/send_transaction_message.rs @@ -5,7 +5,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/server-server-api/#put_matrixfederationv1sendtxnid + //! [spec]: https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv1sendtxnid use std::collections::BTreeMap; diff --git a/crates/ruma-identifiers-validation/src/error.rs b/crates/ruma-identifiers-validation/src/error.rs index a9e00571..b76cbd2b 100644 --- a/crates/ruma-identifiers-validation/src/error.rs +++ b/crates/ruma-identifiers-validation/src/error.rs @@ -77,7 +77,7 @@ pub enum MxcUriError { /// Media identifier malformed due to invalid characters detected. /// /// Valid characters are (in regex notation) `[A-Za-z0-9_-]+`. - /// See [here](https://spec.matrix.org/v1.2/client-server-api/#security-considerations-5) for more details. + /// See [here](https://spec.matrix.org/v1.4/client-server-api/#security-considerations-5) for more details. #[error("Media Identifier malformed, invalid characters")] MediaIdMalformed, diff --git a/crates/ruma-identifiers-validation/src/mxc_uri.rs b/crates/ruma-identifiers-validation/src/mxc_uri.rs index dd515e25..496d5f9a 100644 --- a/crates/ruma-identifiers-validation/src/mxc_uri.rs +++ b/crates/ruma-identifiers-validation/src/mxc_uri.rs @@ -17,7 +17,7 @@ pub fn validate(uri: &str) -> Result { let server_name = &uri[..index]; let media_id = &uri[index + 1..]; - // See: https://spec.matrix.org/v1.2/client-server-api/#security-considerations-5 + // See: https://spec.matrix.org/v1.4/client-server-api/#security-considerations-5 let media_id_is_valid = media_id.bytes().all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z' | b'-' )); diff --git a/crates/ruma-identifiers-validation/src/user_id.rs b/crates/ruma-identifiers-validation/src/user_id.rs index f5fdddeb..73f13a1f 100644 --- a/crates/ruma-identifiers-validation/src/user_id.rs +++ b/crates/ruma-identifiers-validation/src/user_id.rs @@ -18,14 +18,14 @@ pub fn validate(s: &str) -> Result<(), Error> { /// due to Synapse allowing them over federation. This will likely be fixed in an upcoming room /// version; see [MSC2828](https://github.com/matrix-org/matrix-spec-proposals/pull/2828). pub fn localpart_is_fully_conforming(localpart: &str) -> Result { - // See https://spec.matrix.org/v1.2/appendices/#user-identifiers + // See https://spec.matrix.org/v1.4/appendices/#user-identifiers let is_fully_conforming = localpart .bytes() .all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'z' | b'-' | b'.' | b'=' | b'_' | b'/')); // If it's not fully conforming, check if it contains characters that are also disallowed // for historical user IDs. If there are, return an error. - // See https://spec.matrix.org/v1.2/appendices/#historical-user-ids + // See https://spec.matrix.org/v1.4/appendices/#historical-user-ids #[cfg(not(feature = "compat"))] if !is_fully_conforming && localpart.bytes().any(|b| b < 0x21 || b == b':' || b > 0x7E) { return Err(Error::InvalidCharacters); diff --git a/crates/ruma-identity-service-api/src/association/bind_3pid.rs b/crates/ruma-identity-service-api/src/association/bind_3pid.rs index 104a1bed..ac55d20b 100644 --- a/crates/ruma-identity-service-api/src/association/bind_3pid.rs +++ b/crates/ruma-identity-service-api/src/association/bind_3pid.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv23pidbind + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv23pidbind use ruma_common::{ api::ruma_api, thirdparty::Medium, ClientSecret, MilliSecondsSinceUnixEpoch, OwnedUserId, diff --git a/crates/ruma-identity-service-api/src/association/check_3pid_validity.rs b/crates/ruma-identity-service-api/src/association/check_3pid_validity.rs index eeb4d93b..1268132b 100644 --- a/crates/ruma-identity-service-api/src/association/check_3pid_validity.rs +++ b/crates/ruma-identity-service-api/src/association/check_3pid_validity.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv23pidgetvalidated3pid + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv23pidgetvalidated3pid use js_int::UInt; use ruma_common::{api::ruma_api, thirdparty::Medium, ClientSecret, SessionId}; diff --git a/crates/ruma-identity-service-api/src/association/email/create_email_validation_session.rs b/crates/ruma-identity-service-api/src/association/email/create_email_validation_session.rs index e1e939d9..feeb6969 100644 --- a/crates/ruma-identity-service-api/src/association/email/create_email_validation_session.rs +++ b/crates/ruma-identity-service-api/src/association/email/create_email_validation_session.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2validateemailrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2validateemailrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-identity-service-api/src/association/email/validate_email.rs b/crates/ruma-identity-service-api/src/association/email/validate_email.rs index 507d2fa2..b93d4ad2 100644 --- a/crates/ruma-identity-service-api/src/association/email/validate_email.rs +++ b/crates/ruma-identity-service-api/src/association/email/validate_email.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2validateemailsubmittoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2validateemailsubmittoken use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-identity-service-api/src/association/email/validate_email_by_end_user.rs b/crates/ruma-identity-service-api/src/association/email/validate_email_by_end_user.rs index e1b444c4..ab4aec29 100644 --- a/crates/ruma-identity-service-api/src/association/email/validate_email_by_end_user.rs +++ b/crates/ruma-identity-service-api/src/association/email/validate_email_by_end_user.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2validateemailsubmittoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2validateemailsubmittoken use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-identity-service-api/src/association/msisdn/create_msisdn_validation_session.rs b/crates/ruma-identity-service-api/src/association/msisdn/create_msisdn_validation_session.rs index ef74202e..69d48e77 100644 --- a/crates/ruma-identity-service-api/src/association/msisdn/create_msisdn_validation_session.rs +++ b/crates/ruma-identity-service-api/src/association/msisdn/create_msisdn_validation_session.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2validatemsisdnrequesttoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2validatemsisdnrequesttoken use js_int::UInt; use ruma_common::{api::ruma_api, ClientSecret, OwnedSessionId}; diff --git a/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn.rs b/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn.rs index 4da2ee43..52d9d1fe 100644 --- a/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn.rs +++ b/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn_by_phone_number.rs b/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn_by_phone_number.rs index 0b8f9bd5..464494e6 100644 --- a/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn_by_phone_number.rs +++ b/crates/ruma-identity-service-api/src/association/msisdn/validate_msisdn_by_phone_number.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2validatemsisdnsubmittoken + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2validatemsisdnsubmittoken use ruma_common::{api::ruma_api, ClientSecret, SessionId}; diff --git a/crates/ruma-identity-service-api/src/association/unbind_3pid.rs b/crates/ruma-identity-service-api/src/association/unbind_3pid.rs index 831d48de..013ab622 100644 --- a/crates/ruma-identity-service-api/src/association/unbind_3pid.rs +++ b/crates/ruma-identity-service-api/src/association/unbind_3pid.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv23pidunbind + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv23pidunbind use ruma_common::{ api::ruma_api, thirdparty::Medium, user_id::UserId, ClientSecret, OwnedSessionId, diff --git a/crates/ruma-identity-service-api/src/authentication/get_account_information.rs b/crates/ruma-identity-service-api/src/authentication/get_account_information.rs index ada1ccb8..cc837baa 100644 --- a/crates/ruma-identity-service-api/src/authentication/get_account_information.rs +++ b/crates/ruma-identity-service-api/src/authentication/get_account_information.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2account + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2account use ruma_common::{api::ruma_api, OwnedUserId}; diff --git a/crates/ruma-identity-service-api/src/authentication/logout.rs b/crates/ruma-identity-service-api/src/authentication/logout.rs index 44893ef2..be2dd26e 100644 --- a/crates/ruma-identity-service-api/src/authentication/logout.rs +++ b/crates/ruma-identity-service-api/src/authentication/logout.rs @@ -6,7 +6,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2accountlogout + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2accountlogout use ruma_common::api::ruma_api; diff --git a/crates/ruma-identity-service-api/src/authentication/register.rs b/crates/ruma-identity-service-api/src/authentication/register.rs index 05864e21..892aeb89 100644 --- a/crates/ruma-identity-service-api/src/authentication/register.rs +++ b/crates/ruma-identity-service-api/src/authentication/register.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2accountregister + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2accountregister use std::time::Duration; diff --git a/crates/ruma-identity-service-api/src/discovery/get_server_status.rs b/crates/ruma-identity-service-api/src/discovery/get_server_status.rs index b1633997..c689539c 100644 --- a/crates/ruma-identity-service-api/src/discovery/get_server_status.rs +++ b/crates/ruma-identity-service-api/src/discovery/get_server_status.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2 + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2 use ruma_common::api::ruma_api; diff --git a/crates/ruma-identity-service-api/src/discovery/get_supported_versions.rs b/crates/ruma-identity-service-api/src/discovery/get_supported_versions.rs index deb9b3b0..ef5052a1 100644 --- a/crates/ruma-identity-service-api/src/discovery/get_supported_versions.rs +++ b/crates/ruma-identity-service-api/src/discovery/get_supported_versions.rs @@ -1,6 +1,6 @@ //! `GET /_matrix/identity/versions` ([spec]) //! -//! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityversions +//! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityversions //! //! Note: This endpoint was only implemented in/after 1.1, so a 404 could indicate the server only //! supports 1.0 endpoints. Please use [`server_status`](super::get_server_status) to diff --git a/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519.rs b/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519.rs index 2b048ce1..d107b050 100644 --- a/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519.rs +++ b/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2sign-ed25519 + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2sign-ed25519 use ruma_common::{api::ruma_api, serde::Base64, OwnedUserId, ServerSignatures, UserId}; diff --git a/crates/ruma-identity-service-api/src/invitation/store_invitation.rs b/crates/ruma-identity-service-api/src/invitation/store_invitation.rs index 98bd4ee8..2226ce3e 100644 --- a/crates/ruma-identity-service-api/src/invitation/store_invitation.rs +++ b/crates/ruma-identity-service-api/src/invitation/store_invitation.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2store-invite + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2store-invite use ruma_common::{ api::ruma_api, room::RoomType, thirdparty::Medium, MxcUri, RoomAliasId, RoomId, UserId, diff --git a/crates/ruma-identity-service-api/src/keys/check_public_key_validity.rs b/crates/ruma-identity-service-api/src/keys/check_public_key_validity.rs index d472795d..71159f52 100644 --- a/crates/ruma-identity-service-api/src/keys/check_public_key_validity.rs +++ b/crates/ruma-identity-service-api/src/keys/check_public_key_validity.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2pubkeyisvalid + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2pubkeyisvalid use ruma_common::{api::ruma_api, serde::Base64}; diff --git a/crates/ruma-identity-service-api/src/keys/get_public_key.rs b/crates/ruma-identity-service-api/src/keys/get_public_key.rs index 5bc92bf5..bd0e15f7 100644 --- a/crates/ruma-identity-service-api/src/keys/get_public_key.rs +++ b/crates/ruma-identity-service-api/src/keys/get_public_key.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2pubkeykeyid + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2pubkeykeyid use ruma_common::{api::ruma_api, serde::Base64, ServerSigningKeyId}; diff --git a/crates/ruma-identity-service-api/src/keys/validate_ephemeral_key.rs b/crates/ruma-identity-service-api/src/keys/validate_ephemeral_key.rs index a0833856..3ee01012 100644 --- a/crates/ruma-identity-service-api/src/keys/validate_ephemeral_key.rs +++ b/crates/ruma-identity-service-api/src/keys/validate_ephemeral_key.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2pubkeyephemeralisvalid + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2pubkeyephemeralisvalid use ruma_common::{api::ruma_api, serde::Base64}; diff --git a/crates/ruma-identity-service-api/src/lib.rs b/crates/ruma-identity-service-api/src/lib.rs index b9e963b7..88e78b4b 100644 --- a/crates/ruma-identity-service-api/src/lib.rs +++ b/crates/ruma-identity-service-api/src/lib.rs @@ -3,7 +3,7 @@ //! (De)serializable types for the [Matrix Identity Service API][identity-api]. //! These types can be shared by client and identity service code. //! -//! [identity-api]: https://spec.matrix.org/v1.2/identity-service-api/ +//! [identity-api]: https://spec.matrix.org/v1.4/identity-service-api/ #![warn(missing_docs)] diff --git a/crates/ruma-identity-service-api/src/lookup/get_hash_parameters.rs b/crates/ruma-identity-service-api/src/lookup/get_hash_parameters.rs index f86e0ea1..7d608efe 100644 --- a/crates/ruma-identity-service-api/src/lookup/get_hash_parameters.rs +++ b/crates/ruma-identity-service-api/src/lookup/get_hash_parameters.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2hash_details + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2hash_details use ruma_common::api::ruma_api; diff --git a/crates/ruma-identity-service-api/src/lookup/lookup_3pid.rs b/crates/ruma-identity-service-api/src/lookup/lookup_3pid.rs index 52294d6a..75603b5a 100644 --- a/crates/ruma-identity-service-api/src/lookup/lookup_3pid.rs +++ b/crates/ruma-identity-service-api/src/lookup/lookup_3pid.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2lookup + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2lookup use std::collections::BTreeMap; diff --git a/crates/ruma-identity-service-api/src/tos/accept_terms_of_service.rs b/crates/ruma-identity-service-api/src/tos/accept_terms_of_service.rs index 1c844f29..051196c8 100644 --- a/crates/ruma-identity-service-api/src/tos/accept_terms_of_service.rs +++ b/crates/ruma-identity-service-api/src/tos/accept_terms_of_service.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#post_matrixidentityv2terms + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#post_matrixidentityv2terms use ruma_common::api::ruma_api; diff --git a/crates/ruma-identity-service-api/src/tos/get_terms_of_service.rs b/crates/ruma-identity-service-api/src/tos/get_terms_of_service.rs index 2768d1ad..de2591a5 100644 --- a/crates/ruma-identity-service-api/src/tos/get_terms_of_service.rs +++ b/crates/ruma-identity-service-api/src/tos/get_terms_of_service.rs @@ -5,7 +5,7 @@ pub mod v2 { //! `/v2/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/identity-service-api/#get_matrixidentityv2terms + //! [spec]: https://spec.matrix.org/v1.4/identity-service-api/#get_matrixidentityv2terms use std::collections::BTreeMap; diff --git a/crates/ruma-push-gateway-api/src/lib.rs b/crates/ruma-push-gateway-api/src/lib.rs index b1b47b3c..751e08a9 100644 --- a/crates/ruma-push-gateway-api/src/lib.rs +++ b/crates/ruma-push-gateway-api/src/lib.rs @@ -3,7 +3,7 @@ //! (De)serializable types for the [Matrix Push Gateway API][push-api]. //! These types can be shared by push gateway and server code. //! -//! [push-api]: https://spec.matrix.org/v1.2/push-gateway-api/ +//! [push-api]: https://spec.matrix.org/v1.4/push-gateway-api/ #![warn(missing_docs)] diff --git a/crates/ruma-push-gateway-api/src/send_event_notification.rs b/crates/ruma-push-gateway-api/src/send_event_notification.rs index e56d849b..a7f3d803 100644 --- a/crates/ruma-push-gateway-api/src/send_event_notification.rs +++ b/crates/ruma-push-gateway-api/src/send_event_notification.rs @@ -6,7 +6,7 @@ pub mod v1 { //! `/v1/` ([spec]) //! - //! [spec]: https://spec.matrix.org/v1.2/push-gateway-api/#post_matrixpushv1notify + //! [spec]: https://spec.matrix.org/v1.4/push-gateway-api/#post_matrixpushv1notify use js_int::{uint, UInt}; use ruma_common::{ diff --git a/crates/ruma-server-util/src/authorization.rs b/crates/ruma-server-util/src/authorization.rs index 7a1a8081..55dcb4a3 100644 --- a/crates/ruma-server-util/src/authorization.rs +++ b/crates/ruma-server-util/src/authorization.rs @@ -11,7 +11,7 @@ use yap::{IntoTokens, TokenLocation, Tokens}; /// [`headers::authorization::Credentials`] for automatically handling the encoding and decoding /// when using a web framework that supports typed headers. /// -/// [spec]: https://spec.matrix.org/v1.3/server-server-api/#request-authentication +/// [spec]: https://spec.matrix.org/v1.4/server-server-api/#request-authentication #[non_exhaustive] pub struct XMatrix { /// The server name of the sending server. diff --git a/crates/ruma-signatures/src/functions.rs b/crates/ruma-signatures/src/functions.rs index e4860bf8..7e04c5a8 100644 --- a/crates/ruma-signatures/src/functions.rs +++ b/crates/ruma-signatures/src/functions.rs @@ -133,7 +133,7 @@ where /// Converts an event into the [canonical] string form. /// -/// [canonical]: https://spec.matrix.org/v1.2/appendices/#canonical-json +/// [canonical]: https://spec.matrix.org/v1.4/appendices/#canonical-json /// /// # Parameters /// diff --git a/crates/ruma-state-res/src/event_auth.rs b/crates/ruma-state-res/src/event_auth.rs index 91b4ad0c..a2e780a1 100644 --- a/crates/ruma-state-res/src/event_auth.rs +++ b/crates/ruma-state-res/src/event_auth.rs @@ -143,7 +143,7 @@ pub fn auth_check( let sender = incoming_event.sender(); - // Implementation of https://spec.matrix.org/v1.2/rooms/v1/#authorization-rules + // Implementation of https://spec.matrix.org/v1.4/rooms/v1/#authorization-rules // // 1. If type is m.room.create: if *incoming_event.event_type() == RoomEventType::RoomCreate { diff --git a/crates/ruma-state-res/src/room_version.rs b/crates/ruma-state-res/src/room_version.rs index d28ed4b5..42361c64 100644 --- a/crates/ruma-state-res/src/room_version.rs +++ b/crates/ruma-state-res/src/room_version.rs @@ -60,7 +60,7 @@ pub struct RoomVersion { pub extra_redaction_checks: bool, /// Allow knocking in event authentication. /// - /// See [room v7 specification](https://spec.matrix.org/v1.2/rooms/v7/) for more information. + /// See [room v7 specification](https://spec.matrix.org/v1.4/rooms/v7/) for more information. pub allow_knocking: bool, /// Adds support for the restricted join rule. /// diff --git a/crates/ruma/src/lib.rs b/crates/ruma/src/lib.rs index bbe85791..31272755 100644 --- a/crates/ruma/src/lib.rs +++ b/crates/ruma/src/lib.rs @@ -92,7 +92,7 @@ pub use ruma_state_res as state_res; /// (De)serializable types for various [Matrix APIs][apis] requests and responses and abstractions /// for them. /// -/// [apis]: https://spec.matrix.org/v1.2/#matrix-apis +/// [apis]: https://spec.matrix.org/v1.4/#matrix-apis #[cfg(feature = "api")] pub mod api { pub use ruma_common::api::*;