@arbiwallet/contracts 1.0.11 → 1.0.13

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/auth.ts CHANGED
@@ -18,6 +18,8 @@ export interface TelegramAuthRequest {
18
18
  lastName: string;
19
19
  authDate: string;
20
20
  photoUrl: string;
21
+ languageCode: string;
22
+ allowsWriteToPm: boolean;
21
23
  }
22
24
 
23
25
  export interface GoogleAuthRequest {
package/gen/kyc.ts CHANGED
@@ -65,7 +65,7 @@ export interface WebhookReviewResultMessage {
65
65
  clientComment: string;
66
66
  }
67
67
 
68
- export interface ApplySumsubWebhookRequest {
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.11",
4
+ "version": "1.0.13",
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/auth.proto CHANGED
@@ -20,6 +20,8 @@ message TelegramAuthRequest {
20
20
  string last_name = 5;
21
21
  string auth_date = 6;
22
22
  string photo_url = 7;
23
+ string language_code = 8;
24
+ bool allows_write_to_pm = 9;
23
25
  }
24
26
 
25
27
  message GoogleAuthRequest {
package/proto/kyc.proto CHANGED
@@ -65,7 +65,7 @@ message WebhookReviewResultMessage {
65
65
  string client_comment = 5;
66
66
  }
67
67
 
68
- message ApplySumsubWebhookRequest {
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
- string payload_digest = 9;
79
- string payload_digest_alg = 10;
80
- bytes raw_body = 11;
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 {