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