@barumetric/contracts 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/proto/auth.proto +44 -3
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -2,10 +2,17 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package auth.v1;
|
|
4
4
|
|
|
5
|
+
import "google/protobuf/empty.proto";
|
|
6
|
+
|
|
5
7
|
service AuthService {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
9
|
+
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
10
|
+
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
11
|
+
|
|
12
|
+
rpc TelegramInit (google.protobuf.Empty) returns (TelegramInitResponse);
|
|
13
|
+
rpc TelegramVerify (TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
14
|
+
rpc TelegramComplete (TelegramCompleteRequest) returns (TelegramCompleteResponse);
|
|
15
|
+
rpc TelegramConsume (TelegramConsumeRequest) returns (TelegramConsumeResponse);
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
message SendOtpRequest {
|
|
@@ -36,3 +43,37 @@ message RefreshResponse {
|
|
|
36
43
|
string access_token = 1;
|
|
37
44
|
string refresh_token = 2;
|
|
38
45
|
}
|
|
46
|
+
|
|
47
|
+
message TelegramInitResponse {
|
|
48
|
+
string url = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message TelegramVerifyRequest {
|
|
52
|
+
map<string, string> query = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message TelegramVerifyResponse {
|
|
56
|
+
oneof result {
|
|
57
|
+
string url = 1;
|
|
58
|
+
string access_token = 2;
|
|
59
|
+
string refresh_token = 3;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message TelegramCompleteRequest {
|
|
64
|
+
string session_id = 1;
|
|
65
|
+
string phone = 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message TelegramCompleteResponse {
|
|
69
|
+
string session_id = 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message TelegramConsumeRequest {
|
|
73
|
+
string session_id = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message TelegramConsumeResponse {
|
|
77
|
+
string access_token = 1;
|
|
78
|
+
string refresh_token = 2;
|
|
79
|
+
}
|