client-api: Add support for local user erasure

According to MSC4025
This commit is contained in:
Kévin Commaille 2024-02-28 17:35:58 +01:00 committed by Kévin Commaille
parent 6c7fbb5e88
commit f24cae17f5
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,8 @@ Improvements:
- Add deprecated `address` and `medium` 3PID fields for `m.login.password`
login type.
- Add optional cookie field to `session::sso_login*::v3` responses.
- Add support for local user erasure to `account::deactivate::v3::Request`,
according to MSC4025.
# 0.17.4

View File

@ -39,6 +39,13 @@ pub mod v3 {
/// identifier.
#[serde(skip_serializing_if = "Option::is_none")]
pub id_server: Option<String>,
/// Whether the user would like their content to be erased as much as possible from the
/// server.
///
/// Defaults to `false`.
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub erase: bool,
}
/// Response type for the `deactivate` endpoint.