Add request and response parameters for account deactiviation
This commit is contained in:
parent
e16049b5b3
commit
4b05e7e361
@ -8,6 +8,7 @@ Improvements:
|
||||
* Add endpoints to retrieve account_data (introduced in r0.5.0)
|
||||
* Add media endpoints: `r0::media::{get_media_config, get_media_preview, get_content_as_filename}`
|
||||
* Add `unstable_features` to `unversioned::get_supported_versions` (introduced in r0.5.0)
|
||||
* Add request and response parameters for `r0::account::deactivate`
|
||||
|
||||
Breaking changes:
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
//! [POST /_matrix/client/r0/account/deactivate](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-account-deactivate)
|
||||
// TODO: missing request parameters
|
||||
//! [POST /_matrix/client/r0/account/deactivate](https://matrix.org/docs/spec/client_server/r0.6.0.html#post-matrix-client-r0-account-deactivate)
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
use super::{AuthenticationData, ThirdPartyIdRemovalStatus};
|
||||
|
||||
ruma_api! {
|
||||
metadata {
|
||||
description: "Deactivate the current user's account.",
|
||||
@ -13,7 +14,18 @@ ruma_api! {
|
||||
requires_authentication: true,
|
||||
}
|
||||
|
||||
request {}
|
||||
request {
|
||||
/// Additional authentication information for the user-interactive authentication API.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
auth: Option<AuthenticationData>,
|
||||
/// Identity server from which to unbind the user's third party
|
||||
/// identifier.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
id_server: Option<String>,
|
||||
}
|
||||
|
||||
response {}
|
||||
response {
|
||||
/// Result of unbind operation.
|
||||
id_server_unbind_result: ThirdPartyIdRemovalStatus
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user