♻️ Refind bot account

This commit is contained in:
2025-08-23 13:00:30 +08:00
parent fb7e52d6f3
commit 5d7429a416
15 changed files with 691 additions and 71 deletions

View File

@@ -32,6 +32,8 @@ message Account {
google.protobuf.Timestamp created_at = 14;
google.protobuf.Timestamp updated_at = 15;
optional string automated_id = 17;
}
// Enum for status attitude
@@ -246,7 +248,9 @@ message GetAccountStatusBatchResponse {
service AccountService {
// Account Operations
rpc GetAccount(GetAccountRequest) returns (Account) {}
rpc GetBotAccount(GetBotAccountRequest) returns (Account) {}
rpc GetAccountBatch(GetAccountBatchRequest) returns (GetAccountBatchResponse) {}
rpc GetBotAccountBatch(GetBotAccountBatchRequest) returns (GetAccountBatchResponse) {}
rpc LookupAccountBatch(LookupAccountBatchRequest) returns (GetAccountBatchResponse) {}
rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) {}
@@ -321,10 +325,18 @@ message GetAccountRequest {
string id = 1; // Account ID to retrieve
}
message GetBotAccountRequest {
string automated_id = 1;
}
message GetAccountBatchRequest {
repeated string id = 1; // Account ID to retrieve
}
message GetBotAccountBatchRequest {
repeated string automated_id = 1;
}
message LookupAccountBatchRequest {
repeated string names = 1;
}

View File

@@ -108,6 +108,8 @@ message BotAccount {
message CreateBotAccountRequest {
Account account = 1;
string automated_id = 2;
optional string picture_id = 8;
optional string background_id = 9;
}
message CreateBotAccountResponse {
@@ -117,6 +119,8 @@ message CreateBotAccountResponse {
message UpdateBotAccountRequest {
string automated_id = 1; // ID of the bot account to update
Account account = 2; // Updated account information
optional string picture_id = 8;
optional string background_id = 9;
}
message UpdateBotAccountResponse {