🗃️ Updated protobuf specs
This commit is contained in:
		| @@ -3,26 +3,49 @@ syntax = "proto3"; | ||||
| package dyson_network.sphere.account; | ||||
|  | ||||
| import "google/protobuf/empty.proto"; | ||||
| import "google/protobuf/timestamp.proto"; | ||||
|  | ||||
| option csharp_namespace = "DysonNetwork.Sphere.Account.Proto"; | ||||
|  | ||||
| service AccountService { | ||||
|   // Retrieves the current user's account information | ||||
|   rpc GetAccount(google.protobuf.Empty) returns (AccountResponse); | ||||
|  | ||||
|   // Updates the current user's account information | ||||
|   rpc UpdateAccount(UpdateAccountRequest) returns (AccountResponse); | ||||
| } | ||||
|  | ||||
| message AccountResponse { | ||||
|   string id = 1; | ||||
|   string username = 2; | ||||
|   string email = 3; | ||||
|   string display_name = 4; | ||||
|   string name = 2; | ||||
|   string nick = 3; | ||||
|   string language = 4; | ||||
|   google.protobuf.Timestamp activated_at = 5; | ||||
|   bool is_superuser = 6; | ||||
|   Profile profile = 7; | ||||
| } | ||||
|  | ||||
| message Profile { | ||||
|   string first_name = 1; | ||||
|   string last_name = 2; | ||||
|   string bio = 3; | ||||
|   string gender = 4; | ||||
|   string pronouns = 5; | ||||
|   string time_zone = 6; | ||||
|   string location = 7; | ||||
|   google.protobuf.Timestamp birthday = 8; | ||||
|   google.protobuf.Timestamp last_seen_at = 9; | ||||
|   int32 experience = 10; | ||||
|   int32 level = 11; | ||||
|   double leveling_progress = 12; | ||||
| } | ||||
|  | ||||
| message UpdateAccountRequest { | ||||
|   // Fields to update | ||||
|   optional string email = 1; | ||||
|   optional string display_name = 2; | ||||
|   optional string nick = 1; | ||||
|   optional string language = 2; | ||||
|   optional string first_name = 3; | ||||
|   optional string last_name = 4; | ||||
|   optional string bio = 5; | ||||
|   optional string gender = 6; | ||||
|   optional string pronouns = 7; | ||||
|   optional string time_zone = 8; | ||||
|   optional string location = 9; | ||||
|   optional google.protobuf.Timestamp birthday = 10; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user