diff --git a/crates/ruma-appservice-api/src/event/push_events/v1.rs b/crates/ruma-appservice-api/src/event/push_events/v1.rs index a2df2b46..f23e77d8 100644 --- a/crates/ruma-appservice-api/src/event/push_events/v1.rs +++ b/crates/ruma-appservice-api/src/event/push_events/v1.rs @@ -10,9 +10,10 @@ ruma_api! { description: "This API is called by the homeserver when it wants to push an event (or batch of events) to the application service.", method: PUT, name: "push_events", - path: "/_matrix/app/v1/transactions/:txn_id", + stable_path: "/_matrix/app/v1/transactions/:txn_id", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { @@ -173,7 +174,7 @@ mod tests { .try_into_http_request::>( "https://homeserver.tld", SendAccessToken::IfRequired("auth_tok"), - &[ruma_api::MatrixVersion::V1_0], + &[ruma_api::MatrixVersion::V1_1], ) .unwrap(); let json_body: serde_json::Value = serde_json::from_slice(req.body()).unwrap(); diff --git a/crates/ruma-appservice-api/src/query/query_room_alias/v1.rs b/crates/ruma-appservice-api/src/query/query_room_alias/v1.rs index 1cc2e9e9..65e25930 100644 --- a/crates/ruma-appservice-api/src/query/query_room_alias/v1.rs +++ b/crates/ruma-appservice-api/src/query/query_room_alias/v1.rs @@ -8,9 +8,10 @@ ruma_api! { description: "This endpoint is invoked by the homeserver on an application service to query the existence of a given room alias.", method: GET, name: "query_room_alias", - path: "/_matrix/app/v1/rooms/:room_alias", + stable_path: "/_matrix/app/v1/rooms/:room_alias", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/query/query_user_id/v1.rs b/crates/ruma-appservice-api/src/query/query_user_id/v1.rs index ffa057c9..e87831a0 100644 --- a/crates/ruma-appservice-api/src/query/query_user_id/v1.rs +++ b/crates/ruma-appservice-api/src/query/query_user_id/v1.rs @@ -8,9 +8,10 @@ ruma_api! { description: "This endpoint is invoked by the homeserver on an application service to query the existence of a given user ID.", method: GET, name: "query_user_id", - path: "/_matrix/app/v1/users/:user_id", + stable_path: "/_matrix/app/v1/users/:user_id", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs b/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs index 1b45065f..25780d5a 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs @@ -10,9 +10,10 @@ ruma_api! { description: "Fetches third party locations for a protocol.", method: GET, name: "get_location_for_protocol", - path: "/_matrix/app/v1/thirdparty/location/:protocol", + stable_path: "/_matrix/app/v1/thirdparty/location/:protocol", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs b/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs index 59cd280c..11d9a35f 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs @@ -9,9 +9,10 @@ ruma_api! { description: "Retrieve an array of third party network locations from a Matrix room alias.", method: GET, name: "get_location_for_room_alias", - path: "/_matrix/app/v1/thirdparty/location", + stable_path: "/_matrix/app/v1/thirdparty/location", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs b/crates/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs index 2e908c43..30c399de 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs @@ -8,9 +8,10 @@ ruma_api! { description: "Fetches the metadata from the homeserver about a particular third party protocol.", method: GET, name: "get_protocol", - path: "/_matrix/app/v1/thirdparty/protocol/:protocol", + stable_path: "/_matrix/app/v1/thirdparty/protocol/:protocol", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs b/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs index 3f4e4a5d..01fddea3 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs @@ -10,9 +10,10 @@ ruma_api! { description: "Fetches third party users for a protocol.", method: GET, name: "get_user_for_protocol", - path: "/_matrix/app/v1/thirdparty/user/:protocol", + stable_path: "/_matrix/app/v1/thirdparty/user/:protocol", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: { diff --git a/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs b/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs index aee44c64..4f44408d 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs +++ b/crates/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs @@ -9,9 +9,10 @@ ruma_api! { description: "Retrieve an array of third party users from a Matrix User ID.", method: GET, name: "get_user_for_user_id", - path: "/_matrix/app/v1/thirdparty/user", + stable_path: "/_matrix/app/v1/thirdparty/user", rate_limited: false, authentication: QueryOnlyAccessToken, + added: 1.0, } request: {