@arbiwallet/contracts 1.0.18 → 1.0.20

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/gen/kyc.ts CHANGED
@@ -67,6 +67,15 @@ export interface ApplySumsubWebhookResponse {
67
67
  ok: boolean;
68
68
  }
69
69
 
70
+ export interface GetVerifiedApplicantDocumentsByExternalUserIdRequest {
71
+ userId: string;
72
+ }
73
+
74
+ export interface GetVerifiedApplicantDocumentsByExternalUserIdResponse {
75
+ applicantId: string;
76
+ resourcesJson: string;
77
+ }
78
+
70
79
  export const KYC_PACKAGE_NAME = "kyc";
71
80
 
72
81
  export interface KycVerificationClient {
@@ -77,6 +86,10 @@ export interface KycVerificationClient {
77
86
  getVerificationStatus(request: GetVerificationStatusRequest): Observable<GetVerificationStatusResponse>;
78
87
 
79
88
  applySumsubWebhook(request: ApplySumsubWebhookRequest): Observable<ApplySumsubWebhookResponse>;
89
+
90
+ getVerifiedApplicantDocumentsByExternalUserId(
91
+ request: GetVerifiedApplicantDocumentsByExternalUserIdRequest,
92
+ ): Observable<GetVerifiedApplicantDocumentsByExternalUserIdResponse>;
80
93
  }
81
94
 
82
95
  export interface KycVerificationController {
@@ -95,6 +108,13 @@ export interface KycVerificationController {
95
108
  applySumsubWebhook(
96
109
  request: ApplySumsubWebhookRequest,
97
110
  ): Promise<ApplySumsubWebhookResponse> | Observable<ApplySumsubWebhookResponse> | ApplySumsubWebhookResponse;
111
+
112
+ getVerifiedApplicantDocumentsByExternalUserId(
113
+ request: GetVerifiedApplicantDocumentsByExternalUserIdRequest,
114
+ ):
115
+ | Promise<GetVerifiedApplicantDocumentsByExternalUserIdResponse>
116
+ | Observable<GetVerifiedApplicantDocumentsByExternalUserIdResponse>
117
+ | GetVerifiedApplicantDocumentsByExternalUserIdResponse;
98
118
  }
99
119
 
100
120
  export function KycVerificationControllerMethods() {
@@ -104,6 +124,7 @@ export function KycVerificationControllerMethods() {
104
124
  "refreshAccessToken",
105
125
  "getVerificationStatus",
106
126
  "applySumsubWebhook",
127
+ "getVerifiedApplicantDocumentsByExternalUserId",
107
128
  ];
108
129
  for (const method of grpcMethods) {
109
130
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
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.20",
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
  }
package/proto/kyc.proto CHANGED
@@ -7,6 +7,7 @@ service KycVerification {
7
7
  rpc RefreshAccessToken (RefreshAccessTokenRequest) returns (RefreshAccessTokenResponse);
8
8
  rpc GetVerificationStatus (GetVerificationStatusRequest) returns (GetVerificationStatusResponse);
9
9
  rpc ApplySumsubWebhook (ApplySumsubWebhookRequest) returns (ApplySumsubWebhookResponse);
10
+ rpc GetVerifiedApplicantDocumentsByExternalUserId (GetVerifiedApplicantDocumentsByExternalUserIdRequest) returns (GetVerifiedApplicantDocumentsByExternalUserIdResponse);
10
11
  }
11
12
 
12
13
  enum KycStatus {
@@ -66,3 +67,12 @@ message ApplySumsubWebhookRequest {
66
67
  message ApplySumsubWebhookResponse {
67
68
  bool ok = 1;
68
69
  }
70
+
71
+ message GetVerifiedApplicantDocumentsByExternalUserIdRequest {
72
+ string user_id = 1;
73
+ }
74
+
75
+ message GetVerifiedApplicantDocumentsByExternalUserIdResponse {
76
+ string applicant_id = 1;
77
+ string resources_json = 2;
78
+ }