@arbiwallet/contracts 1.0.16 → 1.0.17
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 +8 -8
- package/package.json +1 -1
- package/proto/kyc.proto +21 -21
package/gen/kyc.ts
CHANGED
|
@@ -57,6 +57,12 @@ export interface GetVerificationStatusResponse {
|
|
|
57
57
|
updatedAtMs: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export interface SumsubWebhookVerification {
|
|
61
|
+
payloadDigest: string;
|
|
62
|
+
payloadDigestAlg: string;
|
|
63
|
+
rawBody: Uint8Array;
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
export interface WebhookReviewResultMessage {
|
|
61
67
|
reviewAnswer: string;
|
|
62
68
|
rejectLabels: string[];
|
|
@@ -68,7 +74,7 @@ export interface WebhookReviewResultMessage {
|
|
|
68
74
|
export interface SumsubWebhookPayload {
|
|
69
75
|
applicantId: string;
|
|
70
76
|
externalUserId: string;
|
|
71
|
-
|
|
77
|
+
type: string;
|
|
72
78
|
correlationId: string;
|
|
73
79
|
reviewStatus: string;
|
|
74
80
|
reviewResult: WebhookReviewResultMessage | undefined;
|
|
@@ -76,15 +82,9 @@ export interface SumsubWebhookPayload {
|
|
|
76
82
|
inspectionId: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
export interface SumsubWebhookVerification {
|
|
80
|
-
payloadDigest: string;
|
|
81
|
-
payloadDigestAlg: string;
|
|
82
|
-
rawBody: Uint8Array;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
85
|
export interface ApplySumsubWebhookRequest {
|
|
86
|
-
payload: SumsubWebhookPayload | undefined;
|
|
87
86
|
verification: SumsubWebhookVerification | undefined;
|
|
87
|
+
payload: SumsubWebhookPayload | undefined;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface ApplySumsubWebhookResponse {
|
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.17",
|
|
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
|
@@ -57,34 +57,34 @@ message GetVerificationStatusResponse {
|
|
|
57
57
|
int64 updated_at_ms = 9;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
message
|
|
61
|
-
string
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
string moderation_comment = 4;
|
|
65
|
-
string client_comment = 5;
|
|
60
|
+
message SumsubWebhookVerification {
|
|
61
|
+
string payloadDigest = 1;
|
|
62
|
+
string payloadDigestAlg = 2;
|
|
63
|
+
bytes rawBody = 3;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
|
-
message
|
|
69
|
-
string
|
|
70
|
-
string
|
|
71
|
-
string
|
|
72
|
-
string
|
|
73
|
-
string
|
|
74
|
-
WebhookReviewResultMessage review_result = 6;
|
|
75
|
-
int64 created_at_ms = 7;
|
|
76
|
-
string inspection_id = 8;
|
|
66
|
+
message WebhookReviewResultMessage {
|
|
67
|
+
string reviewAnswer = 1;
|
|
68
|
+
repeated string rejectLabels = 2;
|
|
69
|
+
string reviewRejectType = 3;
|
|
70
|
+
string moderationComment = 4;
|
|
71
|
+
string clientComment = 5;
|
|
77
72
|
}
|
|
78
73
|
|
|
79
|
-
message
|
|
80
|
-
string
|
|
81
|
-
string
|
|
82
|
-
|
|
74
|
+
message SumsubWebhookPayload {
|
|
75
|
+
string applicantId = 1;
|
|
76
|
+
string externalUserId = 2;
|
|
77
|
+
string type = 3;
|
|
78
|
+
string correlationId = 4;
|
|
79
|
+
string reviewStatus = 5;
|
|
80
|
+
WebhookReviewResultMessage reviewResult = 6;
|
|
81
|
+
int64 createdAtMs = 7;
|
|
82
|
+
string inspectionId = 8;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
message ApplySumsubWebhookRequest {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
SumsubWebhookVerification verification = 1;
|
|
87
|
+
SumsubWebhookPayload payload = 2;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
message ApplySumsubWebhookResponse {
|