mobility-accounts/grpcapi/accounts.proto

30 lines
615 B
Protocol Buffer
Executable File

syntax = "proto3";
option go_package = "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi";
import "google/protobuf/struct.proto";
message Account {
string id = 1;
string namespace = 2;
AccountAuth authentication = 3;
google.protobuf.Struct data = 4;
}
message AccountAuth {
LocalAuth local = 7;
}
message LocalAuth {
string username = 10;
string password = 11;
string email = 12;
string phone_number = 13;
Validation email_validation = 14;
Validation phone_number_validation = 15;
}
message Validation {
bool validated = 20;
string validation_code = 21;
}