Compare commits
2 Commits
4484fbaa70
...
18327d19d3
| Author | SHA1 | Date | |
|---|---|---|---|
| 18327d19d3 | |||
| 1faa14c32f |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@teacinema/contracts",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"description": "Protocol Buffers contracts for microservices",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
|
||||
@ -2,10 +2,15 @@ syntax = "proto3";
|
||||
|
||||
package auth.v1;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
service AuthService {
|
||||
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
||||
rpc VerifyOtp(VerifyOtpRequest) returns (VerifyOtpResponse);
|
||||
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
||||
|
||||
rpc TelegramInit(google.protobuf.Empty) returns (TelegramInitResponse);
|
||||
rpc TelegramVerify(TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
||||
}
|
||||
|
||||
message SendOtpRequest {
|
||||
@ -36,3 +41,17 @@ message RefreshResponse {
|
||||
string access_token = 1;
|
||||
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