client-api: Stabilize MSC2675

This commit is contained in:
Kévin Commaille 2022-06-20 17:05:11 +02:00 committed by Kévin Commaille
parent 0d71ce17da
commit a077c4ea77
7 changed files with 13 additions and 10 deletions

View File

@ -11,7 +11,7 @@ Improvements:
* Add support for refresh tokens (MSC2918) * Add support for refresh tokens (MSC2918)
* Add `ErrorKind::{UnableToAuthorizeJoin, UnableToGrantJoin}` encountered for restricted rooms * Add `ErrorKind::{UnableToAuthorizeJoin, UnableToGrantJoin}` encountered for restricted rooms
* Add unstable support for timestamp massaging (MSC3316) * Add unstable support for timestamp massaging (MSC3316)
* Add unstable support for querying relating events (MSC2675) * Add support for querying relating events (MSC2675)
* Move `filter::RelationType` to `ruma_common::events::relations` * Move `filter::RelationType` to `ruma_common::events::relations`
* Add unstable support for discovering an OpenID Connect server (MSC2965) * Add unstable support for discovering an OpenID Connect server (MSC2965)

View File

@ -22,7 +22,6 @@ unstable-msc2246 = []
unstable-msc2666 = [] unstable-msc2666 = []
unstable-msc2448 = [] unstable-msc2448 = []
unstable-msc2654 = [] unstable-msc2654 = []
unstable-msc2675 = []
unstable-msc2676 = [] unstable-msc2676 = []
unstable-msc2677 = [] unstable-msc2677 = []
unstable-msc2965 = [] unstable-msc2965 = []

View File

@ -32,7 +32,6 @@ pub mod push;
pub mod read_marker; pub mod read_marker;
pub mod receipt; pub mod receipt;
pub mod redact; pub mod redact;
#[cfg(feature = "unstable-msc2675")]
pub mod relations; pub mod relations;
pub mod room; pub mod room;
pub mod search; pub mod search;

View File

@ -3,9 +3,9 @@
//! Retrieve all of the child events for a given parent event. //! Retrieve all of the child events for a given parent event.
pub mod v1 { pub mod v1 {
//! `/unstable/` ([MSC2675]) //! `/v1/` ([spec])
//! //!
//! [MSC2675]: https://github.com/matrix-org/matrix-spec-proposals/pull/2675 //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventid
use js_int::UInt; use js_int::UInt;
use ruma_common::{api::ruma_api, events::AnyMessageLikeEvent, serde::Raw, EventId, RoomId}; use ruma_common::{api::ruma_api, events::AnyMessageLikeEvent, serde::Raw, EventId, RoomId};
@ -16,8 +16,10 @@ pub mod v1 {
method: GET, method: GET,
name: "get_relating_events", name: "get_relating_events",
unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id", unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id",
stable_path: "/_matrix/client/v1/rooms/:room_id/relations/:event_id",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.3,
} }
request: { request: {

View File

@ -4,9 +4,9 @@
//! using the given `rel_type`. //! using the given `rel_type`.
pub mod v1 { pub mod v1 {
//! `/unstable/` ([MSC2675]) //! `/v1/` ([spec])
//! //!
//! [MSC2675]: https://github.com/matrix-org/matrix-spec-proposals/pull/2675 //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltype
use js_int::UInt; use js_int::UInt;
use ruma_common::{ use ruma_common::{
@ -22,8 +22,10 @@ pub mod v1 {
method: GET, method: GET,
name: "get_relating_events_with_rel_type", name: "get_relating_events_with_rel_type",
unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id/:rel_type", unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id/:rel_type",
stable_path: "/_matrix/client/v1/rooms/:room_id/relations/:event_id/:rel_type",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.3,
} }
request: { request: {

View File

@ -4,9 +4,9 @@
//! using the given `rel_type` and having the given `event_type`. //! using the given `rel_type` and having the given `event_type`.
pub mod v1 { pub mod v1 {
//! `/unstable/` ([MSC2675]) //! `/v1/` ([spec])
//! //!
//! [MSC2675]: https://github.com/matrix-org/matrix-spec-proposals/pull/2675 //! [spec]: https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv1roomsroomidrelationseventidreltypeeventtype
use js_int::UInt; use js_int::UInt;
use ruma_common::{ use ruma_common::{
@ -22,8 +22,10 @@ pub mod v1 {
method: GET, method: GET,
name: "get_relating_events_with_rel_type_and_event_type", name: "get_relating_events_with_rel_type_and_event_type",
unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id/:rel_type/:event_type", unstable_path: "/_matrix/client/unstable/rooms/:room_id/relations/:event_id/:rel_type/:event_type",
stable_path: "/_matrix/client/v1/rooms/:room_id/relations/:event_id/:rel_type/:event_type",
rate_limited: false, rate_limited: false,
authentication: AccessToken, authentication: AccessToken,
added: 1.3,
} }
request: { request: {

View File

@ -126,7 +126,6 @@ unstable-msc2448 = [
unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"] unstable-msc2654 = ["ruma-client-api?/unstable-msc2654"]
unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"] unstable-msc2666 = ["ruma-client-api?/unstable-msc2666"]
unstable-msc2675 = [ unstable-msc2675 = [
"ruma-client-api?/unstable-msc2675",
"ruma-common/unstable-msc2675", "ruma-common/unstable-msc2675",
] ]
unstable-msc2676 = [ unstable-msc2676 = [