1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
//! [GET /_matrix/client/r0/keys/changes](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-keys-changes) use ruma_api::ruma_api; use ruma_identifiers::UserId; ruma_api! { metadata { description: "Gets a list of users who have updated their device identity keys since a previous sync token.", method: GET, name: "get_key_changes", path: "/_matrix/client/r0/keys/changes", rate_limited: false, requires_authentication: true, } request { /// The desired start point of the list. /// Should be the next_batch field from a response to an earlier call to /sync. #[ruma_api(query)] pub from: String, /// The desired end point of the list. /// Should be the next_batch field from a recent call to /sync - typically the most recent such call. #[ruma_api(query)] pub to: String, } response { /// The Matrix User IDs of all users who updated their device identity keys. pub changed: Vec<UserId>, /// The Matrix User IDs of all users who may have left all the end-to-end /// encrypted rooms they previously shared with the user. pub left: Vec<UserId> } error: crate::Error }