@arbiwallet/contracts 1.0.19 → 1.0.21

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
@@ -67,6 +67,29 @@ export interface ApplySumsubWebhookResponse {
67
67
  ok: boolean;
68
68
  }
69
69
 
70
+ export interface GetApplicantFullDataRequest {
71
+ userId: string;
72
+ }
73
+
74
+ export interface VerifiedApplicantResource {
75
+ imageId: string;
76
+ idDocType: string;
77
+ fileName: string;
78
+ fileType: string;
79
+ contentType: string;
80
+ contentLength: number;
81
+ fileData: Uint8Array;
82
+ }
83
+
84
+ export interface GetApplicantFullDataResponse {
85
+ userId: string;
86
+ applicantId: string;
87
+ inspectionId: string;
88
+ applicantJson: string;
89
+ resourcesJson: string;
90
+ verifiedResources: VerifiedApplicantResource[];
91
+ }
92
+
70
93
  export const KYC_PACKAGE_NAME = "kyc";
71
94
 
72
95
  export interface KycVerificationClient {
@@ -77,6 +100,8 @@ export interface KycVerificationClient {
77
100
  getVerificationStatus(request: GetVerificationStatusRequest): Observable<GetVerificationStatusResponse>;
78
101
 
79
102
  applySumsubWebhook(request: ApplySumsubWebhookRequest): Observable<ApplySumsubWebhookResponse>;
103
+
104
+ getApplicantFullData(request: GetApplicantFullDataRequest): Observable<GetApplicantFullDataResponse>;
80
105
  }
81
106
 
82
107
  export interface KycVerificationController {
@@ -95,6 +120,10 @@ export interface KycVerificationController {
95
120
  applySumsubWebhook(
96
121
  request: ApplySumsubWebhookRequest,
97
122
  ): Promise<ApplySumsubWebhookResponse> | Observable<ApplySumsubWebhookResponse> | ApplySumsubWebhookResponse;
123
+
124
+ getApplicantFullData(
125
+ request: GetApplicantFullDataRequest,
126
+ ): Promise<GetApplicantFullDataResponse> | Observable<GetApplicantFullDataResponse> | GetApplicantFullDataResponse;
98
127
  }
99
128
 
100
129
  export function KycVerificationControllerMethods() {
@@ -104,6 +133,7 @@ export function KycVerificationControllerMethods() {
104
133
  "refreshAccessToken",
105
134
  "getVerificationStatus",
106
135
  "applySumsubWebhook",
136
+ "getApplicantFullData",
107
137
  ];
108
138
  for (const method of grpcMethods) {
109
139
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
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.19",
4
+ "version": "1.0.21",
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
@@ -7,6 +7,7 @@ service KycVerification {
7
7
  rpc RefreshAccessToken (RefreshAccessTokenRequest) returns (RefreshAccessTokenResponse);
8
8
  rpc GetVerificationStatus (GetVerificationStatusRequest) returns (GetVerificationStatusResponse);
9
9
  rpc ApplySumsubWebhook (ApplySumsubWebhookRequest) returns (ApplySumsubWebhookResponse);
10
+ rpc GetApplicantFullData (GetApplicantFullDataRequest) returns (GetApplicantFullDataResponse);
10
11
  }
11
12
 
12
13
  enum KycStatus {
@@ -66,3 +67,26 @@ message ApplySumsubWebhookRequest {
66
67
  message ApplySumsubWebhookResponse {
67
68
  bool ok = 1;
68
69
  }
70
+
71
+ message GetApplicantFullDataRequest {
72
+ string user_id = 1;
73
+ }
74
+
75
+ message VerifiedApplicantResource {
76
+ string image_id = 1;
77
+ string id_doc_type = 2;
78
+ string file_name = 3;
79
+ string file_type = 4;
80
+ string content_type = 5;
81
+ int64 content_length = 6;
82
+ bytes file_data = 7;
83
+ }
84
+
85
+ message GetApplicantFullDataResponse {
86
+ string user_id = 1;
87
+ string applicant_id = 2;
88
+ string inspection_id = 3;
89
+ string applicant_json = 4;
90
+ string resources_json = 5;
91
+ repeated VerifiedApplicantResource verified_resources = 6;
92
+ }