Compare commits
No commits in common. "18327d19d3f7c8da49c78733aa8cd3cc64aa4490" and "4484fbaa7019b8198a199c0545b28889b6981b8e" have entirely different histories.
18327d19d3
...
4484fbaa70
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@teacinema/contracts",
|
"name": "@teacinema/contracts",
|
||||||
"version": "1.0.8",
|
"version": "1.0.7",
|
||||||
"description": "Protocol Buffers contracts for microservices",
|
"description": "Protocol Buffers contracts for microservices",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.build.json",
|
"build": "tsc -p tsconfig.build.json",
|
||||||
|
|||||||
@ -2,15 +2,10 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package auth.v1;
|
package auth.v1;
|
||||||
|
|
||||||
import "google/protobuf/empty.proto";
|
|
||||||
|
|
||||||
service AuthService {
|
service AuthService {
|
||||||
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
||||||
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
||||||
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
||||||
|
|
||||||
rpc TelegramInit(google.protobuf.Empty) returns (TelegramInitResponse);
|
|
||||||
rpc TelegramVerify(TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message SendOtpRequest {
|
message SendOtpRequest {
|
||||||
@ -41,17 +36,3 @@ message RefreshResponse {
|
|||||||
string access_token = 1;
|
string access_token = 1;
|
||||||
string refresh_token = 2;
|
string refresh_token = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TelegramInitResponse {
|
|
||||||
string url = 1;
|
|
||||||
}
|
|
||||||
message TelegramVerifyRequest {
|
|
||||||
map<string, string> query = 1;
|
|
||||||
}
|
|
||||||
message TelegramVerifyResponse {
|
|
||||||
oneof result {
|
|
||||||
string url = 1;
|
|
||||||
string access_token = 2;
|
|
||||||
string refresh_token = 3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user