@arbiwallet/contracts 1.0.19 → 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/kyc.ts +21 -0
- package/package.json +1 -1
- package/proto/kyc.proto +10 -0
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.
|
|
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/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
|
+
}
|