doc: Update Matrix spec links to v1.4
This commit is contained in:
parent
2fe7265188
commit
045861441a
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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 {
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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<String>,
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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::{
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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::{
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
},
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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))]
|
||||
|
@ -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};
|
||||
|
@ -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")]
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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::{
|
||||
|
@ -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<MilliSecondsSinceUnixEpoch>,
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user