fix document 500 error and fix users tabel for bot
This commit is contained in:
@@ -4,6 +4,7 @@ package admin;
|
||||
|
||||
service AdminService {
|
||||
rpc ListUsers (ListUsersRequest) returns (ListUsersResponse);
|
||||
rpc ListBotAccounts (ListUsersRequest) returns (ListUsersResponse);
|
||||
rpc UpdateUserProfile (UpdateUserRequest) returns (AdminUser);
|
||||
rpc ResetPassword (ResetPasswordRequest) returns (AdminUser);
|
||||
rpc SuspendUser (UserIdRequest) returns (AdminUser);
|
||||
@@ -74,6 +75,9 @@ message AdminUser {
|
||||
repeated string directPermissions = 12;
|
||||
bool isVerified = 13;
|
||||
optional string verificationIcon = 14;
|
||||
bool isBot = 15;
|
||||
optional string linkedBotUsername = 16;
|
||||
optional bool isSystemBot = 17;
|
||||
}
|
||||
|
||||
message ListUsersResponse {
|
||||
|
||||
@@ -22,6 +22,7 @@ service SecurityService {
|
||||
rpc SetupTotp (UserSecurityRequest) returns (TotpSetupResponse);
|
||||
rpc EnableTotp (TotpCodeRequest) returns (TotpStatusResponse);
|
||||
rpc DisableTotp (TotpCodeRequest) returns (TotpStatusResponse);
|
||||
rpc AdminDisableTotp (AdminDisableTotpRequest) returns (TotpStatusResponse);
|
||||
}
|
||||
|
||||
service SettingsService {
|
||||
@@ -248,3 +249,8 @@ message TotpCodeRequest {
|
||||
string userId = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message AdminDisableTotpRequest {
|
||||
string actorUserId = 1;
|
||||
string userId = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user