syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "google/protobuf/field_mask.proto"; import "onprem/user/v1/account.proto"; import "onprem/user/v1/error.proto"; message AccountFilter { optional string email = 1; } message AfterConfirmEmailRequest { string account_id = 1; } message AfterConfirmEmailResponse{}; message CreateAccountRequest { Account account = 1; bytes password = 2; } message CreateAccountResponse { Account account = 1; } message FindAccountRequest { string id = 1; } message FindAccountResponse { Account account = 1; } message FindAccountsRequest { AccountFilter filter = 1; reserved 2; google.protobuf.FieldMask field_mask = 3; } message FindAccountsResponse { repeated Account accounts = 1; } message ValidateAccountRequest { Account account = 1; } message ValidateAccountResponse { repeated ErrorObject errors = 1; }