@arbiwallet/contracts 1.0.11 → 1.0.12
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 +9 -1
- package/package.json +1 -1
- package/proto/kyc.proto +11 -4
package/gen/kyc.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface WebhookReviewResultMessage {
|
|
|
65
65
|
clientComment: string;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export interface
|
|
68
|
+
export interface SumsubWebhookPayload {
|
|
69
69
|
applicantId: string;
|
|
70
70
|
externalUserId: string;
|
|
71
71
|
webhookType: string;
|
|
@@ -74,11 +74,19 @@ export interface ApplySumsubWebhookRequest {
|
|
|
74
74
|
reviewResult: WebhookReviewResultMessage | undefined;
|
|
75
75
|
createdAtMs: number;
|
|
76
76
|
inspectionId: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface SumsubWebhookVerification {
|
|
77
80
|
payloadDigest: string;
|
|
78
81
|
payloadDigestAlg: string;
|
|
79
82
|
rawBody: Uint8Array;
|
|
80
83
|
}
|
|
81
84
|
|
|
85
|
+
export interface ApplySumsubWebhookRequest {
|
|
86
|
+
payload: SumsubWebhookPayload | undefined;
|
|
87
|
+
verification: SumsubWebhookVerification | undefined;
|
|
88
|
+
}
|
|
89
|
+
|
|
82
90
|
export interface ApplySumsubWebhookResponse {
|
|
83
91
|
ok: boolean;
|
|
84
92
|
}
|
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.12",
|
|
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
|
@@ -65,7 +65,7 @@ message WebhookReviewResultMessage {
|
|
|
65
65
|
string client_comment = 5;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
message
|
|
68
|
+
message SumsubWebhookPayload {
|
|
69
69
|
string applicant_id = 1;
|
|
70
70
|
string external_user_id = 2;
|
|
71
71
|
string webhook_type = 3;
|
|
@@ -74,10 +74,17 @@ message ApplySumsubWebhookRequest {
|
|
|
74
74
|
WebhookReviewResultMessage review_result = 6;
|
|
75
75
|
int64 created_at_ms = 7;
|
|
76
76
|
string inspection_id = 8;
|
|
77
|
+
}
|
|
77
78
|
|
|
78
|
-
|
|
79
|
-
string
|
|
80
|
-
|
|
79
|
+
message SumsubWebhookVerification {
|
|
80
|
+
string payload_digest = 1;
|
|
81
|
+
string payload_digest_alg = 2;
|
|
82
|
+
bytes raw_body = 3;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message ApplySumsubWebhookRequest {
|
|
86
|
+
SumsubWebhookPayload payload = 1;
|
|
87
|
+
SumsubWebhookVerification verification = 2;
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
message ApplySumsubWebhookResponse {
|