mobility-accounts/grpcapi/accounts.proto

31 lines
684 B
Protocol Buffer
Raw Normal View History

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 {
optional LocalAuth local = 7;
//TODO SSO
}
message LocalAuth {
optional string username = 10;
string password = 11;
optional string email = 12;
optional string phone_number = 13;
optional Validation email_validation = 14;
optional Validation phone_number_validation = 15;
2023-03-29 10:59:08 +00:00
}
message Validation {
bool validated = 20;
string validation_code = 21;
}