@arbiwallet/contracts 1.0.7 → 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/gen/auth.ts +14 -12
- package/gen/notification.ts +2 -0
- package/package.json +1 -1
- package/proto/auth.proto +8 -6
- package/proto/notification.proto +2 -0
package/gen/auth.ts
CHANGED
|
@@ -28,13 +28,15 @@ export interface AppleAuthRequest {
|
|
|
28
28
|
identityToken: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
31
|
+
export interface ContactCodeRequest {
|
|
32
|
+
contact: string;
|
|
33
|
+
isAuth: boolean;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export interface
|
|
36
|
-
|
|
36
|
+
export interface ContactVerifyRequest {
|
|
37
|
+
contact: string;
|
|
37
38
|
code: string;
|
|
39
|
+
isAuth: boolean;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
export interface RefreshTokenRequest {
|
|
@@ -71,9 +73,9 @@ export interface AuthServiceClient {
|
|
|
71
73
|
|
|
72
74
|
appleAuth(request: AppleAuthRequest): Observable<AuthTokensResponse>;
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
requestContactCode(request: ContactCodeRequest): Observable<MessageResponse>;
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
verifyContactCode(request: ContactVerifyRequest): Observable<AuthTokensResponse>;
|
|
77
79
|
|
|
78
80
|
refreshToken(request: RefreshTokenRequest): Observable<AccessTokenResponse>;
|
|
79
81
|
|
|
@@ -95,12 +97,12 @@ export interface AuthServiceController {
|
|
|
95
97
|
request: AppleAuthRequest,
|
|
96
98
|
): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
|
|
97
99
|
|
|
98
|
-
|
|
99
|
-
request:
|
|
100
|
+
requestContactCode(
|
|
101
|
+
request: ContactCodeRequest,
|
|
100
102
|
): Promise<MessageResponse> | Observable<MessageResponse> | MessageResponse;
|
|
101
103
|
|
|
102
|
-
|
|
103
|
-
request:
|
|
104
|
+
verifyContactCode(
|
|
105
|
+
request: ContactVerifyRequest,
|
|
104
106
|
): Promise<AuthTokensResponse> | Observable<AuthTokensResponse> | AuthTokensResponse;
|
|
105
107
|
|
|
106
108
|
refreshToken(
|
|
@@ -118,8 +120,8 @@ export function AuthServiceControllerMethods() {
|
|
|
118
120
|
"telegramAuth",
|
|
119
121
|
"googleAuth",
|
|
120
122
|
"appleAuth",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
+
"requestContactCode",
|
|
124
|
+
"verifyContactCode",
|
|
123
125
|
"refreshToken",
|
|
124
126
|
"logout",
|
|
125
127
|
"getMe",
|
package/gen/notification.ts
CHANGED
|
@@ -13,11 +13,13 @@ export const protobufPackage = "notification";
|
|
|
13
13
|
export interface EmailVerificationCodeRequest {
|
|
14
14
|
email: string;
|
|
15
15
|
code: string;
|
|
16
|
+
isAuth: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export interface PhoneVerificationCodeRequest {
|
|
19
20
|
phone: string;
|
|
20
21
|
code: string;
|
|
22
|
+
isAuth: boolean;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export interface NotificationResultResponse {
|
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.8",
|
|
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,8 +5,8 @@ service AuthService {
|
|
|
5
5
|
rpc TelegramAuth (TelegramAuthRequest) returns (AuthTokensResponse);
|
|
6
6
|
rpc GoogleAuth (GoogleAuthRequest) returns (AuthTokensResponse);
|
|
7
7
|
rpc AppleAuth (AppleAuthRequest) returns (AuthTokensResponse);
|
|
8
|
-
rpc
|
|
9
|
-
rpc
|
|
8
|
+
rpc RequestContactCode (ContactCodeRequest) returns (MessageResponse);
|
|
9
|
+
rpc VerifyContactCode (ContactVerifyRequest) returns (AuthTokensResponse);
|
|
10
10
|
rpc RefreshToken (RefreshTokenRequest) returns (AccessTokenResponse);
|
|
11
11
|
rpc Logout (RefreshTokenRequest) returns (MessageResponse);
|
|
12
12
|
rpc GetMe (AccessTokenRequest) returns (MeResponse);
|
|
@@ -30,13 +30,15 @@ message AppleAuthRequest {
|
|
|
30
30
|
string identity_token = 1;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
message
|
|
34
|
-
string
|
|
33
|
+
message ContactCodeRequest {
|
|
34
|
+
string contact = 1;
|
|
35
|
+
bool is_auth = 2;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
message
|
|
38
|
-
string
|
|
38
|
+
message ContactVerifyRequest {
|
|
39
|
+
string contact = 1;
|
|
39
40
|
string code = 2;
|
|
41
|
+
bool is_auth = 3;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
message RefreshTokenRequest {
|
package/proto/notification.proto
CHANGED
|
@@ -9,11 +9,13 @@ service NotificationService {
|
|
|
9
9
|
message EmailVerificationCodeRequest {
|
|
10
10
|
string email = 1;
|
|
11
11
|
string code = 2;
|
|
12
|
+
bool is_auth = 3;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
message PhoneVerificationCodeRequest {
|
|
15
16
|
string phone = 1;
|
|
16
17
|
string code = 2;
|
|
18
|
+
bool is_auth = 3;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
message NotificationResultResponse {
|