@arbiwallet/contracts 1.0.33 → 1.0.34
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 +1 -6
- package/gen/user.ts +12 -0
- package/package.json +1 -1
- package/proto/kyc.proto +1 -6
- package/proto/user.proto +12 -0
package/gen/kyc.ts
CHANGED
|
@@ -61,13 +61,8 @@ export interface GetVerificationStatusesBatchRequest {
|
|
|
61
61
|
userIds: string[];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export interface VerificationStatusRow {
|
|
65
|
-
userId: string;
|
|
66
|
-
kycStatus: KycStatus;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
64
|
export interface GetVerificationStatusesBatchResponse {
|
|
70
|
-
users:
|
|
65
|
+
users: GetVerificationStatusResponse[];
|
|
71
66
|
}
|
|
72
67
|
|
|
73
68
|
export interface ApplySumsubWebhookRequest {
|
package/gen/user.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface UserResponse {
|
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
balances: UserBalance[];
|
|
63
63
|
kycStatus: UserKycStatus;
|
|
64
|
+
kyc: UserKycInfo | undefined;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
export interface UpdateUserRequest {
|
|
@@ -112,6 +113,17 @@ export interface UserBalance {
|
|
|
112
113
|
total: string;
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
export interface UserKycInfo {
|
|
117
|
+
userId: string;
|
|
118
|
+
applicantId: string;
|
|
119
|
+
kycStatus: UserKycStatus;
|
|
120
|
+
reviewAnswer: string;
|
|
121
|
+
rejectionLabels: string[];
|
|
122
|
+
moderationComment: string;
|
|
123
|
+
createdAtMs: number;
|
|
124
|
+
updatedAtMs: number;
|
|
125
|
+
}
|
|
126
|
+
|
|
115
127
|
export const USER_PACKAGE_NAME = "user";
|
|
116
128
|
|
|
117
129
|
export interface UserServiceClient {
|
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.34",
|
|
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
|
@@ -63,13 +63,8 @@ message GetVerificationStatusesBatchRequest {
|
|
|
63
63
|
repeated string user_ids = 1;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
message VerificationStatusRow {
|
|
67
|
-
string user_id = 1;
|
|
68
|
-
KycStatus kyc_status = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
66
|
message GetVerificationStatusesBatchResponse {
|
|
72
|
-
repeated
|
|
67
|
+
repeated GetVerificationStatusResponse users = 1;
|
|
73
68
|
}
|
|
74
69
|
|
|
75
70
|
message ApplySumsubWebhookRequest {
|
package/proto/user.proto
CHANGED
|
@@ -46,6 +46,7 @@ message UserResponse {
|
|
|
46
46
|
string updated_at = 12;
|
|
47
47
|
repeated UserBalance balances = 15;
|
|
48
48
|
UserKycStatus kyc_status = 16;
|
|
49
|
+
UserKycInfo kyc = 17;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
message UpdateUserRequest {
|
|
@@ -107,3 +108,14 @@ message UserBalance {
|
|
|
107
108
|
string reserved = 4;
|
|
108
109
|
string total = 5;
|
|
109
110
|
}
|
|
111
|
+
|
|
112
|
+
message UserKycInfo {
|
|
113
|
+
string user_id = 1;
|
|
114
|
+
string applicant_id = 2;
|
|
115
|
+
UserKycStatus kyc_status = 3;
|
|
116
|
+
string review_answer = 4;
|
|
117
|
+
repeated string rejection_labels = 5;
|
|
118
|
+
string moderation_comment = 6;
|
|
119
|
+
int64 created_at_ms = 7;
|
|
120
|
+
int64 updated_at_ms = 8;
|
|
121
|
+
}
|