Compare commits
No commits in common. "4484fbaa7019b8198a199c0545b28889b6981b8e" and "a27e931bf3b4e8541115467f7eb29d3933c82495" have entirely different histories.
4484fbaa70
...
a27e931bf3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@teacinema/contracts",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.6",
|
||||
"description": "Protocol Buffers contracts for microservices",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
|
||||
@ -4,10 +4,6 @@ package account.v1;
|
||||
|
||||
service AccountService {
|
||||
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
|
||||
rpc InitEmailChange(InitEmailChangeRequest) returns (InitEmailChangeResponse);
|
||||
rpc ConfirmEmailChange(ConfirmEmailChangeRequest) returns (ConfirmEmailChangeResponse);
|
||||
rpc InitPhoneChange(InitPhoneChangeRequest) returns (InitPhoneChangeResponse);
|
||||
rpc ConfirmPhoneChange(ConfirmPhoneChangeRequest) returns (ConfirmPhoneChangeResponse);
|
||||
}
|
||||
|
||||
message GetAccountRequest {
|
||||
@ -26,37 +22,3 @@ enum Role {
|
||||
USER = 0;
|
||||
ADMIN = 1;
|
||||
}
|
||||
|
||||
message InitEmailChangeRequest {
|
||||
string email = 1;
|
||||
string user_id = 2;
|
||||
}
|
||||
message InitEmailChangeResponse {
|
||||
bool ok = 1;
|
||||
}
|
||||
|
||||
message ConfirmEmailChangeRequest {
|
||||
string email = 1;
|
||||
string code = 2;
|
||||
string user_id = 3;
|
||||
}
|
||||
message ConfirmEmailChangeResponse {
|
||||
bool ok = 1;
|
||||
}
|
||||
|
||||
|
||||
message InitPhoneChangeRequest {
|
||||
string phone = 1;
|
||||
string user_id = 2;
|
||||
}
|
||||
message InitPhoneChangeResponse {
|
||||
bool ok = 1;
|
||||
}
|
||||
message ConfirmPhoneChangeRequest {
|
||||
string phone = 1;
|
||||
string code = 2;
|
||||
string user_id = 3;
|
||||
}
|
||||
message ConfirmPhoneChangeResponse {
|
||||
bool ok = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user