diff --git a/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs b/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs index 818a2018..9bc69e63 100644 --- a/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs +++ b/ruma-appservice-api/src/thirdparty/get_location_for_protocol/v1.rs @@ -15,6 +15,7 @@ ruma_api! { requires_authentication: true, } + #[non_exhaustive] request: { /// The protocol used to communicate to the third party network. #[ruma_api(path)] @@ -26,6 +27,7 @@ ruma_api! { pub fields: BTreeMap, } + #[non_exhaustive] response: { /// List of matched third party locations. #[ruma_api(body)] diff --git a/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs b/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs index bdcd0beb..f0b541ee 100644 --- a/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs +++ b/ruma-appservice-api/src/thirdparty/get_location_for_room_alias/v1.rs @@ -14,12 +14,14 @@ ruma_api! { requires_authentication: true, } + #[non_exhaustive] request: { /// The Matrix room alias to look up. #[ruma_api(query)] pub alias: &'a RoomAliasId, } + #[non_exhaustive] response: { /// List of matched third party locations. #[ruma_api(body)] diff --git a/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs b/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs index ae105910..7f9db34a 100644 --- a/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs +++ b/ruma-appservice-api/src/thirdparty/get_protocol/v1.rs @@ -13,12 +13,14 @@ ruma_api! { requires_authentication: true, } + #[non_exhaustive] request: { /// The name of the protocol. #[ruma_api(path)] pub protocol: &'a str, } + #[non_exhaustive] response: { /// Metadata about the protocol. #[ruma_api(body)] diff --git a/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs b/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs index 202a4b04..36fb95ea 100644 --- a/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs +++ b/ruma-appservice-api/src/thirdparty/get_user_for_protocol/v1.rs @@ -15,6 +15,7 @@ ruma_api! { requires_authentication: true, } + #[non_exhaustive] request: { /// The protocol used to communicate to the third party network. #[ruma_api(path)] @@ -26,6 +27,7 @@ ruma_api! { pub fields: BTreeMap, } + #[non_exhaustive] response: { /// List of matched third party users. #[ruma_api(body)] diff --git a/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs b/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs index 8b8c8b80..dd6fcfc8 100644 --- a/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs +++ b/ruma-appservice-api/src/thirdparty/get_user_for_user_id/v1.rs @@ -14,12 +14,14 @@ ruma_api! { requires_authentication: true, } + #[non_exhaustive] request: { /// The Matrix User ID to look up. #[ruma_api(query)] pub userid: &'a UserId, } + #[non_exhaustive] response: { /// List of matched third party users. #[ruma_api(body)]