syntax = "proto3"; package users.v1; option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb"; service UsersService { rpc GetMe(GetMeRequest) returns (GetMeResponse); rpc ChangeMe(ChangeMeRequest) returns (ChangeMeResponse); rpc CreateUser (CreateUserRequest) returns (CreateUserResponse); } message GetMeRequest { string id = 1; } message GetMeResponse { User user = 1; } message CreateUserRequest { string id = 1; } message CreateUserResponse { bool success = 1; } message ChangeMeRequest { string user_id = 1; string session_id = 2; optional string email = 3; optional string phone = 4; optional string full_name = 5; optional string avatar_url = 6; optional string custom_status_text = 7; optional string custom_status_emoji = 8; optional string timezone = 9; optional string language = 10; optional bool is_public = 11; } message ChangeMeResponse { bool success = 1; string message = 2; } message User { string id = 1; optional string username = 2; optional string email = 3; optional string phone = 4; optional string full_name = 5; bool is_ldap = 6; optional string status = 7; repeated string roles = 8; optional string avatar_url = 9; optional string employee_id = 10; optional string presence = 11; optional string last_active = 12; optional string custom_status_text = 13; optional string custom_status_emoji = 14; optional string timezone = 15; optional string language = 16; bool two_fa_enabled = 17; bool has_pin = 18; }