This commit is contained in:
lendry
2026-06-25 08:31:36 +03:00
parent 71b270fcb3
commit 933f7fb9e1
22 changed files with 1871 additions and 620 deletions

View File

@@ -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 {