@arbiwallet/contracts 1.0.18 → 1.0.19

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/auth.ts CHANGED
@@ -30,6 +30,18 @@ export interface GoogleAuthRequest {
30
30
  idToken: string;
31
31
  }
32
32
 
33
+ export interface GoogleAuthStartRequest {
34
+ }
35
+
36
+ export interface GoogleAuthStartResponse {
37
+ authUrl: string;
38
+ }
39
+
40
+ export interface GoogleAuthCallbackRequest {
41
+ code: string;
42
+ state: string;
43
+ }
44
+
33
45
  export interface AppleAuthRequest {
34
46
  identityToken: string;
35
47
  }
@@ -77,6 +89,10 @@ export interface AuthServiceClient {
77
89
 
78
90
  telegramLoginWidgetAuth(request: TelegramLoginWidgetAuthRequest): Observable<AuthTokensResponse>;
79
91
 
92
+ googleAuthStart(request: GoogleAuthStartRequest): Observable<GoogleAuthStartResponse>;
93
+
94
+ googleAuthCallback(request: GoogleAuthCallbackRequest): Observable<AuthTokensResponse>;
95
+
80
96
  googleAuth(request: GoogleAuthRequest): Observable<AuthTokensResponse>;
81
97
 
82
98
  appleAuth(request: AppleAuthRequest): Observable<AuthTokensResponse>;
@@ -101,6 +117,14 @@ export interface AuthServiceController {
101
117
  request: TelegramLoginWidgetAuthRequest,
102
118
  ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
103
119
 
120
+ googleAuthStart(
121
+ request: GoogleAuthStartRequest,
122
+ ): Promise<GoogleAuthStartResponse> | Observable<GoogleAuthStartResponse> | GoogleAuthStartResponse;
123
+
124
+ googleAuthCallback(
125
+ request: GoogleAuthCallbackRequest,
126
+ ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
127
+
104
128
  googleAuth(
105
129
  request: GoogleAuthRequest,
106
130
  ): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
@@ -131,6 +155,8 @@ export function AuthServiceControllerMethods() {
131
155
  const grpcMethods: string[] = [
132
156
  "telegramMiniAppAuth",
133
157
  "telegramLoginWidgetAuth",
158
+ "googleAuthStart",
159
+ "googleAuthCallback",
134
160
  "googleAuth",
135
161
  "appleAuth",
136
162
  "requestContactCode",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.18",
4
+ "version": "1.0.19",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
package/proto/auth.proto CHANGED
@@ -4,6 +4,8 @@ package auth;
4
4
  service AuthService {
5
5
  rpc TelegramMiniAppAuth (TelegramMiniAppAuthRequest) returns (AuthTokensResponse);
6
6
  rpc TelegramLoginWidgetAuth (TelegramLoginWidgetAuthRequest) returns (AuthTokensResponse);
7
+ rpc GoogleAuthStart (GoogleAuthStartRequest) returns (GoogleAuthStartResponse);
8
+ rpc GoogleAuthCallback (GoogleAuthCallbackRequest) returns (AuthTokensResponse);
7
9
  rpc GoogleAuth (GoogleAuthRequest) returns (AuthTokensResponse);
8
10
  rpc AppleAuth (AppleAuthRequest) returns (AuthTokensResponse);
9
11
  rpc RequestContactCode (ContactCodeRequest) returns (MessageResponse);
@@ -33,6 +35,17 @@ message GoogleAuthRequest {
33
35
  string id_token = 1;
34
36
  }
35
37
 
38
+ message GoogleAuthStartRequest {}
39
+
40
+ message GoogleAuthStartResponse {
41
+ string auth_url = 1;
42
+ }
43
+
44
+ message GoogleAuthCallbackRequest {
45
+ string code = 1;
46
+ string state = 2;
47
+ }
48
+
36
49
  message AppleAuthRequest {
37
50
  string identity_token = 1;
38
51
  }