fix and update
This commit is contained in:
@@ -8,8 +8,12 @@ service AdminService {
|
||||
rpc ResetPassword (ResetPasswordRequest) returns (AdminUser);
|
||||
rpc SuspendUser (UserIdRequest) returns (AdminUser);
|
||||
rpc SetSuperAdmin (SetSuperAdminRequest) returns (AdminUser);
|
||||
rpc SetUserVerification (SetUserVerificationRequest) returns (AdminUser);
|
||||
rpc ListVerificationIcons (Empty) returns (ListVerificationIconsResponse);
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
|
||||
message ListUsersRequest {
|
||||
optional string search = 1;
|
||||
}
|
||||
@@ -39,6 +43,22 @@ message SetSuperAdminRequest {
|
||||
bool isSuperAdmin = 3;
|
||||
}
|
||||
|
||||
message SetUserVerificationRequest {
|
||||
string actorUserId = 1;
|
||||
string userId = 2;
|
||||
bool isVerified = 3;
|
||||
optional string verificationIcon = 4;
|
||||
}
|
||||
|
||||
message VerificationIconOption {
|
||||
string slug = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message ListVerificationIconsResponse {
|
||||
repeated VerificationIconOption icons = 1;
|
||||
}
|
||||
|
||||
message AdminUser {
|
||||
string id = 1;
|
||||
optional string email = 2;
|
||||
@@ -52,6 +72,8 @@ message AdminUser {
|
||||
string createdAt = 10;
|
||||
repeated string roles = 11;
|
||||
repeated string directPermissions = 12;
|
||||
bool isVerified = 13;
|
||||
optional string verificationIcon = 14;
|
||||
}
|
||||
|
||||
message ListUsersResponse {
|
||||
|
||||
@@ -189,6 +189,9 @@ message PublicUser {
|
||||
bool canViewOAuth = 22;
|
||||
bool canManageAllOAuth = 23;
|
||||
bool canManageAllUsers = 24;
|
||||
bool isVerified = 25;
|
||||
optional string verificationIcon = 26;
|
||||
bool canVerifyUsers = 27;
|
||||
}
|
||||
|
||||
message AuthTokens {
|
||||
|
||||
@@ -147,6 +147,8 @@ message ChatMessageResponse {
|
||||
string senderId = 3;
|
||||
string senderName = 4;
|
||||
bool senderHasAvatar = 5;
|
||||
bool senderIsVerified = 17;
|
||||
optional string senderVerificationIcon = 18;
|
||||
string type = 6;
|
||||
optional string content = 7;
|
||||
optional string replyToId = 8;
|
||||
|
||||
@@ -252,6 +252,8 @@ message FamilyMemberResponse {
|
||||
string displayName = 5;
|
||||
bool hasAvatar = 6;
|
||||
string createdAt = 7;
|
||||
bool isVerified = 8;
|
||||
optional string verificationIcon = 9;
|
||||
}
|
||||
|
||||
message FamilyGroupResponse {
|
||||
|
||||
Reference in New Issue
Block a user