update
This commit is contained in:
@@ -12,6 +12,9 @@ service ProfileService {
|
||||
rpc ChangePassword (ChangePasswordRequest) returns (SetPasswordResponse);
|
||||
rpc RemovePassword (RemovePasswordRequest) returns (SetPasswordResponse);
|
||||
rpc SoftDeleteProfile (UserProfileRequest) returns (SoftDeleteProfileResponse);
|
||||
rpc RequestAccountDeletion (UserProfileRequest) returns (AccountDeletionResponse);
|
||||
rpc CancelAccountDeletion (UserProfileRequest) returns (AccountDeletionCancelResponse);
|
||||
rpc GetAccountDeletionStatus (UserProfileRequest) returns (AccountDeletionStatusResponse);
|
||||
}
|
||||
|
||||
message SetPasswordRequest {
|
||||
@@ -95,6 +98,26 @@ message ProfileResponse {
|
||||
optional string backupPhone = 13;
|
||||
optional string birthDate = 15;
|
||||
bool hasPassword = 16;
|
||||
optional string deletionRequestedAt = 17;
|
||||
}
|
||||
|
||||
message AccountDeletionResponse {
|
||||
string userId = 1;
|
||||
string deletionRequestedAt = 2;
|
||||
string effectiveAt = 3;
|
||||
int32 graceDays = 4;
|
||||
}
|
||||
|
||||
message AccountDeletionCancelResponse {
|
||||
string userId = 1;
|
||||
bool cancelled = 2;
|
||||
}
|
||||
|
||||
message AccountDeletionStatusResponse {
|
||||
bool pending = 1;
|
||||
optional string deletionRequestedAt = 2;
|
||||
optional string effectiveAt = 3;
|
||||
int32 graceDays = 4;
|
||||
}
|
||||
|
||||
message SoftDeleteProfileResponse {
|
||||
|
||||
Reference in New Issue
Block a user