@arbiwallet/contracts 1.0.135 → 1.0.136
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 +17 -1
- package/package.json +1 -1
- package/proto/auth.proto +11 -1
package/gen/auth.ts
CHANGED
|
@@ -43,6 +43,15 @@ export interface GoogleAuthCallbackRequest {
|
|
|
43
43
|
state: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export interface ExchangeAuthCodeRequest {
|
|
47
|
+
code: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AuthExchangeCodeResponse {
|
|
51
|
+
exchangeCode: string;
|
|
52
|
+
returnUrl?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
46
55
|
export interface AppleAuthRequest {
|
|
47
56
|
identityToken: string;
|
|
48
57
|
}
|
|
@@ -93,7 +102,9 @@ export interface AuthServiceClient {
|
|
|
93
102
|
|
|
94
103
|
googleAuthStart(request: GoogleAuthStartRequest): Observable<GoogleAuthStartResponse>;
|
|
95
104
|
|
|
96
|
-
googleAuthCallback(request: GoogleAuthCallbackRequest): Observable<
|
|
105
|
+
googleAuthCallback(request: GoogleAuthCallbackRequest): Observable<AuthExchangeCodeResponse>;
|
|
106
|
+
|
|
107
|
+
exchangeAuthCode(request: ExchangeAuthCodeRequest): Observable<AuthTokensResponse>;
|
|
97
108
|
|
|
98
109
|
googleAuth(request: GoogleAuthRequest): Observable<AuthTokensResponse>;
|
|
99
110
|
|
|
@@ -125,6 +136,10 @@ export interface AuthServiceController {
|
|
|
125
136
|
|
|
126
137
|
googleAuthCallback(
|
|
127
138
|
request: GoogleAuthCallbackRequest,
|
|
139
|
+
): Promise<AuthExchangeCodeResponse> | Observable<AuthExchangeCodeResponse> | AuthExchangeCodeResponse;
|
|
140
|
+
|
|
141
|
+
exchangeAuthCode(
|
|
142
|
+
request: ExchangeAuthCodeRequest,
|
|
128
143
|
): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
|
|
129
144
|
|
|
130
145
|
googleAuth(
|
|
@@ -159,6 +174,7 @@ export function AuthServiceControllerMethods() {
|
|
|
159
174
|
"telegramLoginWidgetAuth",
|
|
160
175
|
"googleAuthStart",
|
|
161
176
|
"googleAuthCallback",
|
|
177
|
+
"exchangeAuthCode",
|
|
162
178
|
"googleAuth",
|
|
163
179
|
"appleAuth",
|
|
164
180
|
"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.
|
|
4
|
+
"version": "1.0.136",
|
|
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
|
@@ -5,7 +5,8 @@ service AuthService {
|
|
|
5
5
|
rpc TelegramMiniAppAuth (TelegramMiniAppAuthRequest) returns (AuthTokensResponse);
|
|
6
6
|
rpc TelegramLoginWidgetAuth (TelegramLoginWidgetAuthRequest) returns (AuthTokensResponse);
|
|
7
7
|
rpc GoogleAuthStart (GoogleAuthStartRequest) returns (GoogleAuthStartResponse);
|
|
8
|
-
rpc GoogleAuthCallback (GoogleAuthCallbackRequest) returns (
|
|
8
|
+
rpc GoogleAuthCallback (GoogleAuthCallbackRequest) returns (AuthExchangeCodeResponse);
|
|
9
|
+
rpc ExchangeAuthCode (ExchangeAuthCodeRequest) returns (AuthTokensResponse);
|
|
9
10
|
rpc GoogleAuth (GoogleAuthRequest) returns (AuthTokensResponse);
|
|
10
11
|
rpc AppleAuth (AppleAuthRequest) returns (AuthTokensResponse);
|
|
11
12
|
rpc RequestContactCode (ContactCodeRequest) returns (MessageResponse);
|
|
@@ -48,6 +49,15 @@ message GoogleAuthCallbackRequest {
|
|
|
48
49
|
string state = 2;
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
message ExchangeAuthCodeRequest {
|
|
53
|
+
string code = 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message AuthExchangeCodeResponse {
|
|
57
|
+
string exchange_code = 1;
|
|
58
|
+
optional string return_url = 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
51
61
|
message AppleAuthRequest {
|
|
52
62
|
string identity_token = 1;
|
|
53
63
|
}
|