Explain what the 'hsErase' parameter does

This commit is contained in:
Quentin Gliech
2025-03-13 11:36:53 +01:00
parent c50f4eaca4
commit 8d721c14b1
3 changed files with 24 additions and 1 deletions

View File

@@ -388,6 +388,13 @@ impl ResendRecoveryEmailPayload {
#[derive(InputObject)]
pub struct DeactivateUserInput {
/// Whether to ask the homeserver to GDPR-erase the user
///
/// This is equivalent to the `erase` parameter on the
/// `/_matrix/client/v3/account/deactivate` C-S API, which is
/// implementation-specific.
///
/// What Synapse does is documented here:
/// <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
hs_erase: bool,
/// The password of the user to deactivate.

View File

@@ -607,6 +607,13 @@ The input for the `deactivateUser` mutation.
input DeactivateUserInput {
"""
Whether to ask the homeserver to GDPR-erase the user
This is equivalent to the `erase` parameter on the
`/_matrix/client/v3/account/deactivate` C-S API, which is
implementation-specific.
What Synapse does is documented here:
<https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
"""
hsErase: Boolean!
"""

View File

@@ -391,7 +391,16 @@ export type DateFilter = {
/** The input for the `deactivateUser` mutation. */
export type DeactivateUserInput = {
/** Whether to ask the homeserver to GDPR-erase the user */
/**
* Whether to ask the homeserver to GDPR-erase the user
*
* This is equivalent to the `erase` parameter on the
* `/_matrix/client/v3/account/deactivate` C-S API, which is
* implementation-specific.
*
* What Synapse does is documented here:
* <https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account>
*/
hsErase: Scalars['Boolean']['input'];
/** The password of the user to deactivate. */
password?: InputMaybe<Scalars['String']['input']>;