protobuf-platform 1.0.287 → 1.0.288
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/package.json +1 -1
- package/user/user.proto +27 -1
- package/user/user_grpc_pb.js +56 -0
- package/user/user_pb.js +3576 -2387
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -39,8 +39,11 @@ service User {
|
|
39
39
|
rpc updateSingleNote(NoteRequest) returns (NoteItem);
|
40
40
|
rpc deleteSingleNote(GetNoteRequest) returns (NoteStatusResponse);
|
41
41
|
rpc readListNotes(PaginationRequest) returns (NoteItemsResponse);
|
42
|
+
//KYC
|
43
|
+
rpc createSumSubApplicant(SumSubApplicantRequest) returns (SumSubResponse);
|
44
|
+
rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
|
42
45
|
}
|
43
|
-
|
46
|
+
//Technical
|
44
47
|
message PingRequest { string ping = 1; }
|
45
48
|
message PongResponse { string pong = 1; }
|
46
49
|
message PaginationRequest {
|
@@ -50,6 +53,9 @@ message PaginationRequest {
|
|
50
53
|
optional SegmentSearchParams segment_search_params = 4;
|
51
54
|
optional NoteSearchParams note_search_params = 5;
|
52
55
|
}
|
56
|
+
//Media
|
57
|
+
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
58
|
+
//Searching
|
53
59
|
message UserSearchParams {
|
54
60
|
repeated string user_public_ids = 1;
|
55
61
|
repeated int32 user_ids = 2;
|
@@ -304,4 +310,24 @@ message NoteStatusResponse {
|
|
304
310
|
}
|
305
311
|
message GetNoteRequest {
|
306
312
|
optional int32 id = 1;
|
313
|
+
}
|
314
|
+
//KYC | SumSub
|
315
|
+
message SumSubApplicantRequest {
|
316
|
+
string user_public_id = 1;
|
317
|
+
}
|
318
|
+
message SumSubDocumentItemRequest {
|
319
|
+
string user_public_id = 1;
|
320
|
+
optional string doc_type = 2;
|
321
|
+
optional string doc_side = 3;
|
322
|
+
}
|
323
|
+
message SumSubDocumentRequest {
|
324
|
+
oneof request {
|
325
|
+
SumSubDocumentItemRequest document_data = 1;
|
326
|
+
File file = 2;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
message SumSubResponse {
|
330
|
+
optional string external_user_id = 1;
|
331
|
+
optional string created_at = 2;
|
332
|
+
optional string id_doc_type = 3;
|
307
333
|
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -279,6 +279,39 @@ function deserialize_user_SegmentStatusResponse(buffer_arg) {
|
|
279
279
|
return user_pb.SegmentStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
280
280
|
}
|
281
281
|
|
282
|
+
function serialize_user_SumSubApplicantRequest(arg) {
|
283
|
+
if (!(arg instanceof user_pb.SumSubApplicantRequest)) {
|
284
|
+
throw new Error('Expected argument of type user.SumSubApplicantRequest');
|
285
|
+
}
|
286
|
+
return Buffer.from(arg.serializeBinary());
|
287
|
+
}
|
288
|
+
|
289
|
+
function deserialize_user_SumSubApplicantRequest(buffer_arg) {
|
290
|
+
return user_pb.SumSubApplicantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
291
|
+
}
|
292
|
+
|
293
|
+
function serialize_user_SumSubDocumentRequest(arg) {
|
294
|
+
if (!(arg instanceof user_pb.SumSubDocumentRequest)) {
|
295
|
+
throw new Error('Expected argument of type user.SumSubDocumentRequest');
|
296
|
+
}
|
297
|
+
return Buffer.from(arg.serializeBinary());
|
298
|
+
}
|
299
|
+
|
300
|
+
function deserialize_user_SumSubDocumentRequest(buffer_arg) {
|
301
|
+
return user_pb.SumSubDocumentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
302
|
+
}
|
303
|
+
|
304
|
+
function serialize_user_SumSubResponse(arg) {
|
305
|
+
if (!(arg instanceof user_pb.SumSubResponse)) {
|
306
|
+
throw new Error('Expected argument of type user.SumSubResponse');
|
307
|
+
}
|
308
|
+
return Buffer.from(arg.serializeBinary());
|
309
|
+
}
|
310
|
+
|
311
|
+
function deserialize_user_SumSubResponse(buffer_arg) {
|
312
|
+
return user_pb.SumSubResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
313
|
+
}
|
314
|
+
|
282
315
|
function serialize_user_UserDataRequest(arg) {
|
283
316
|
if (!(arg instanceof user_pb.UserDataRequest)) {
|
284
317
|
throw new Error('Expected argument of type user.UserDataRequest');
|
@@ -642,6 +675,29 @@ createSingleNote: {
|
|
642
675
|
responseSerialize: serialize_user_NoteItemsResponse,
|
643
676
|
responseDeserialize: deserialize_user_NoteItemsResponse,
|
644
677
|
},
|
678
|
+
// KYC
|
679
|
+
createSumSubApplicant: {
|
680
|
+
path: '/user.User/createSumSubApplicant',
|
681
|
+
requestStream: false,
|
682
|
+
responseStream: false,
|
683
|
+
requestType: user_pb.SumSubApplicantRequest,
|
684
|
+
responseType: user_pb.SumSubResponse,
|
685
|
+
requestSerialize: serialize_user_SumSubApplicantRequest,
|
686
|
+
requestDeserialize: deserialize_user_SumSubApplicantRequest,
|
687
|
+
responseSerialize: serialize_user_SumSubResponse,
|
688
|
+
responseDeserialize: deserialize_user_SumSubResponse,
|
689
|
+
},
|
690
|
+
uploadSumSubDocument: {
|
691
|
+
path: '/user.User/uploadSumSubDocument',
|
692
|
+
requestStream: true,
|
693
|
+
responseStream: false,
|
694
|
+
requestType: user_pb.SumSubDocumentRequest,
|
695
|
+
responseType: user_pb.SumSubResponse,
|
696
|
+
requestSerialize: serialize_user_SumSubDocumentRequest,
|
697
|
+
requestDeserialize: deserialize_user_SumSubDocumentRequest,
|
698
|
+
responseSerialize: serialize_user_SumSubResponse,
|
699
|
+
responseDeserialize: deserialize_user_SumSubResponse,
|
700
|
+
},
|
645
701
|
};
|
646
702
|
|
647
703
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|