@barumetric/contracts 1.2.6 → 1.2.7
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/gen/ts/auth.ts +14 -2
- package/package.json +1 -1
- package/proto/auth.proto +11 -3
package/gen/ts/auth.ts
CHANGED
|
@@ -50,18 +50,25 @@ export interface VerifyOtpResponse {
|
|
|
50
50
|
accessToken: string;
|
|
51
51
|
refreshToken: string;
|
|
52
52
|
sessionToken: string;
|
|
53
|
-
userId: string;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
export interface RefreshRequest {
|
|
57
56
|
refreshToken: string;
|
|
57
|
+
sessionToken: string;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export interface RefreshResponse {
|
|
61
61
|
accessToken: string;
|
|
62
62
|
refreshToken: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface LogoutRequest {
|
|
66
|
+
accessToken: string;
|
|
63
67
|
sessionToken: string;
|
|
64
|
-
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface LogoutResponse {
|
|
71
|
+
ok: boolean;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
export interface TelegramInitResponse {
|
|
@@ -110,6 +117,8 @@ export interface AuthServiceClient {
|
|
|
110
117
|
|
|
111
118
|
refresh(request: RefreshRequest): Observable<RefreshResponse>;
|
|
112
119
|
|
|
120
|
+
logout(request: LogoutRequest): Observable<LogoutResponse>;
|
|
121
|
+
|
|
113
122
|
telegramInit(request: Empty): Observable<TelegramInitResponse>;
|
|
114
123
|
|
|
115
124
|
telegramVerify(request: TelegramVerifyRequest): Observable<TelegramVerifyResponse>;
|
|
@@ -126,6 +135,8 @@ export interface AuthServiceController {
|
|
|
126
135
|
|
|
127
136
|
refresh(request: RefreshRequest): Promise<RefreshResponse> | Observable<RefreshResponse> | RefreshResponse;
|
|
128
137
|
|
|
138
|
+
logout(request: LogoutRequest): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
|
|
139
|
+
|
|
129
140
|
telegramInit(request: Empty): Promise<TelegramInitResponse> | Observable<TelegramInitResponse> | TelegramInitResponse;
|
|
130
141
|
|
|
131
142
|
telegramVerify(
|
|
@@ -147,6 +158,7 @@ export function AuthServiceControllerMethods() {
|
|
|
147
158
|
"sendOtp",
|
|
148
159
|
"verifyOtp",
|
|
149
160
|
"refresh",
|
|
161
|
+
"logout",
|
|
150
162
|
"telegramInit",
|
|
151
163
|
"telegramVerify",
|
|
152
164
|
"telegramComplete",
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -8,6 +8,7 @@ service AuthService {
|
|
|
8
8
|
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
9
9
|
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
10
10
|
rpc Refresh (RefreshRequest) returns (RefreshResponse);
|
|
11
|
+
rpc Logout (LogoutRequest) returns (LogoutResponse);
|
|
11
12
|
|
|
12
13
|
rpc TelegramInit (google.protobuf.Empty) returns (TelegramInitResponse);
|
|
13
14
|
rpc TelegramVerify (TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
@@ -54,18 +55,25 @@ message VerifyOtpResponse {
|
|
|
54
55
|
string access_token = 1;
|
|
55
56
|
string refresh_token = 2;
|
|
56
57
|
string session_token = 3;
|
|
57
|
-
string user_id = 4;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
message RefreshRequest {
|
|
61
61
|
string refresh_token = 1;
|
|
62
|
+
string session_token = 2;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
message RefreshResponse {
|
|
65
66
|
string access_token = 1;
|
|
66
67
|
string refresh_token = 2;
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message LogoutRequest {
|
|
71
|
+
string access_token = 1;
|
|
72
|
+
string session_token = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message LogoutResponse {
|
|
76
|
+
bool ok = 1;
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
message TelegramInitResponse {
|