people-ui
View readme on GitLab
people-ui.proto
syntax = "proto3";
package peopleui;
service Peopleui {
// Sends a link to all alternative e-mail to reset user's password,
// Fails if user does not exist
rpc SendResetMail (ResetMailRequest) returns (Empty) {}
rpc getAllGroups (Empty) returns (allGroups) {}
}
enum Template {
STANDARD = 0;
NEW_ACCOUNT = 1;
EXPIRED = 2;
}
message allGroups {
repeated string groups = 1;
}
message ResetMailRequest {
string username = 1;
// if true, reset email is sent to primary email instead of alternative email
bool use_primary = 2;
int64 hoursValid = 3;
Template template = 4;
}
message Empty {
}