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