protobuf-platform 1.1.84 → 1.1.86
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 +7 -1
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +260 -10
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -47,6 +47,7 @@ service User {
|
|
47
47
|
//KYC
|
48
48
|
rpc createSumSubApplicant(SumSubApplicantRequest) returns (SumSubResponse);
|
49
49
|
rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
|
50
|
+
rpc fetchSumSubApplicant(GetSumSubApplicantRequest) returns (SumSubResponse);
|
50
51
|
//Tournaments
|
51
52
|
rpc getInfoForTournamentRules(UserDataRequest) returns (TournamentRulesInfoResponse);
|
52
53
|
//Confirmations
|
@@ -292,7 +293,7 @@ message SegmentPaymentRuleRequest {
|
|
292
293
|
optional float deposit_sum_max = 10;
|
293
294
|
optional float deposit_avg_min = 11;
|
294
295
|
optional float deposit_avg_max = 12;
|
295
|
-
repeated
|
296
|
+
repeated int32 payment_providers = 13;
|
296
297
|
repeated string payment_types = 14;
|
297
298
|
optional int32 is_active = 15;
|
298
299
|
}
|
@@ -425,6 +426,10 @@ message GetNoteRequest {
|
|
425
426
|
//KYC | SumSub
|
426
427
|
message SumSubApplicantRequest {
|
427
428
|
string user_public_id = 1;
|
429
|
+
optional string level = 2;
|
430
|
+
}
|
431
|
+
message GetSumSubApplicantRequest {
|
432
|
+
string applicant_id = 1;
|
428
433
|
}
|
429
434
|
message SumSubDocumentItemRequest {
|
430
435
|
string user_public_id = 1;
|
@@ -441,6 +446,7 @@ message SumSubResponse {
|
|
441
446
|
optional string external_user_id = 1;
|
442
447
|
optional string created_at = 2;
|
443
448
|
optional string id_doc_type = 3;
|
449
|
+
optional string sum_sub_data = 4;
|
444
450
|
}
|
445
451
|
//User`s limits
|
446
452
|
message UserLimitsRequest {
|
package/user/user_grpc_pb.js
CHANGED
@@ -114,6 +114,17 @@ function deserialize_user_GetSegmentRuleRequest(buffer_arg) {
|
|
114
114
|
return user_pb.GetSegmentRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
115
115
|
}
|
116
116
|
|
117
|
+
function serialize_user_GetSumSubApplicantRequest(arg) {
|
118
|
+
if (!(arg instanceof user_pb.GetSumSubApplicantRequest)) {
|
119
|
+
throw new Error('Expected argument of type user.GetSumSubApplicantRequest');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_user_GetSumSubApplicantRequest(buffer_arg) {
|
125
|
+
return user_pb.GetSumSubApplicantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
117
128
|
function serialize_user_GetUserLimitsRequest(arg) {
|
118
129
|
if (!(arg instanceof user_pb.GetUserLimitsRequest)) {
|
119
130
|
throw new Error('Expected argument of type user.GetUserLimitsRequest');
|
@@ -864,6 +875,17 @@ createSumSubApplicant: {
|
|
864
875
|
responseSerialize: serialize_user_SumSubResponse,
|
865
876
|
responseDeserialize: deserialize_user_SumSubResponse,
|
866
877
|
},
|
878
|
+
fetchSumSubApplicant: {
|
879
|
+
path: '/user.User/fetchSumSubApplicant',
|
880
|
+
requestStream: false,
|
881
|
+
responseStream: false,
|
882
|
+
requestType: user_pb.GetSumSubApplicantRequest,
|
883
|
+
responseType: user_pb.SumSubResponse,
|
884
|
+
requestSerialize: serialize_user_GetSumSubApplicantRequest,
|
885
|
+
requestDeserialize: deserialize_user_GetSumSubApplicantRequest,
|
886
|
+
responseSerialize: serialize_user_SumSubResponse,
|
887
|
+
responseDeserialize: deserialize_user_SumSubResponse,
|
888
|
+
},
|
867
889
|
// Tournaments
|
868
890
|
getInfoForTournamentRules: {
|
869
891
|
path: '/user.User/getInfoForTournamentRules',
|
package/user/user_pb.js
CHANGED
@@ -33,6 +33,7 @@ goog.exportSymbol('proto.user.GetNoteRequest', null, global);
|
|
33
33
|
goog.exportSymbol('proto.user.GetRoleRequest', null, global);
|
34
34
|
goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
|
35
35
|
goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
|
36
|
+
goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
|
36
37
|
goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
|
37
38
|
goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
|
38
39
|
goog.exportSymbol('proto.user.LoggedInResponse', null, global);
|
@@ -1045,6 +1046,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1045
1046
|
*/
|
1046
1047
|
proto.user.SumSubApplicantRequest.displayName = 'proto.user.SumSubApplicantRequest';
|
1047
1048
|
}
|
1049
|
+
/**
|
1050
|
+
* Generated by JsPbCodeGenerator.
|
1051
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1052
|
+
* server response, or constructed directly in Javascript. The array is used
|
1053
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1054
|
+
* If no data is provided, the constructed object will be empty, but still
|
1055
|
+
* valid.
|
1056
|
+
* @extends {jspb.Message}
|
1057
|
+
* @constructor
|
1058
|
+
*/
|
1059
|
+
proto.user.GetSumSubApplicantRequest = function(opt_data) {
|
1060
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1061
|
+
};
|
1062
|
+
goog.inherits(proto.user.GetSumSubApplicantRequest, jspb.Message);
|
1063
|
+
if (goog.DEBUG && !COMPILED) {
|
1064
|
+
/**
|
1065
|
+
* @public
|
1066
|
+
* @override
|
1067
|
+
*/
|
1068
|
+
proto.user.GetSumSubApplicantRequest.displayName = 'proto.user.GetSumSubApplicantRequest';
|
1069
|
+
}
|
1048
1070
|
/**
|
1049
1071
|
* Generated by JsPbCodeGenerator.
|
1050
1072
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -11937,8 +11959,10 @@ proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader = function(msg,
|
|
11937
11959
|
msg.setDepositAvgMax(value);
|
11938
11960
|
break;
|
11939
11961
|
case 13:
|
11940
|
-
var
|
11941
|
-
|
11962
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
11963
|
+
for (var i = 0; i < values.length; i++) {
|
11964
|
+
msg.addPaymentProviders(values[i]);
|
11965
|
+
}
|
11942
11966
|
break;
|
11943
11967
|
case 14:
|
11944
11968
|
var value = /** @type {string} */ (reader.readString());
|
@@ -12063,7 +12087,7 @@ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter = function(message,
|
|
12063
12087
|
}
|
12064
12088
|
f = message.getPaymentProvidersList();
|
12065
12089
|
if (f.length > 0) {
|
12066
|
-
writer.
|
12090
|
+
writer.writePackedInt32(
|
12067
12091
|
13,
|
12068
12092
|
f
|
12069
12093
|
);
|
@@ -12482,16 +12506,16 @@ proto.user.SegmentPaymentRuleRequest.prototype.hasDepositAvgMax = function() {
|
|
12482
12506
|
|
12483
12507
|
|
12484
12508
|
/**
|
12485
|
-
* repeated
|
12486
|
-
* @return {!Array<
|
12509
|
+
* repeated int32 payment_providers = 13;
|
12510
|
+
* @return {!Array<number>}
|
12487
12511
|
*/
|
12488
12512
|
proto.user.SegmentPaymentRuleRequest.prototype.getPaymentProvidersList = function() {
|
12489
|
-
return /** @type {!Array<
|
12513
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 13));
|
12490
12514
|
};
|
12491
12515
|
|
12492
12516
|
|
12493
12517
|
/**
|
12494
|
-
* @param {!Array<
|
12518
|
+
* @param {!Array<number>} value
|
12495
12519
|
* @return {!proto.user.SegmentPaymentRuleRequest} returns this
|
12496
12520
|
*/
|
12497
12521
|
proto.user.SegmentPaymentRuleRequest.prototype.setPaymentProvidersList = function(value) {
|
@@ -12500,7 +12524,7 @@ proto.user.SegmentPaymentRuleRequest.prototype.setPaymentProvidersList = functio
|
|
12500
12524
|
|
12501
12525
|
|
12502
12526
|
/**
|
12503
|
-
* @param {
|
12527
|
+
* @param {number} value
|
12504
12528
|
* @param {number=} opt_index
|
12505
12529
|
* @return {!proto.user.SegmentPaymentRuleRequest} returns this
|
12506
12530
|
*/
|
@@ -18460,7 +18484,8 @@ proto.user.SumSubApplicantRequest.prototype.toObject = function(opt_includeInsta
|
|
18460
18484
|
*/
|
18461
18485
|
proto.user.SumSubApplicantRequest.toObject = function(includeInstance, msg) {
|
18462
18486
|
var f, obj = {
|
18463
|
-
userPublicId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
18487
|
+
userPublicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
18488
|
+
level: jspb.Message.getFieldWithDefault(msg, 2, "")
|
18464
18489
|
};
|
18465
18490
|
|
18466
18491
|
if (includeInstance) {
|
@@ -18501,6 +18526,10 @@ proto.user.SumSubApplicantRequest.deserializeBinaryFromReader = function(msg, re
|
|
18501
18526
|
var value = /** @type {string} */ (reader.readString());
|
18502
18527
|
msg.setUserPublicId(value);
|
18503
18528
|
break;
|
18529
|
+
case 2:
|
18530
|
+
var value = /** @type {string} */ (reader.readString());
|
18531
|
+
msg.setLevel(value);
|
18532
|
+
break;
|
18504
18533
|
default:
|
18505
18534
|
reader.skipField();
|
18506
18535
|
break;
|
@@ -18537,6 +18566,13 @@ proto.user.SumSubApplicantRequest.serializeBinaryToWriter = function(message, wr
|
|
18537
18566
|
f
|
18538
18567
|
);
|
18539
18568
|
}
|
18569
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
18570
|
+
if (f != null) {
|
18571
|
+
writer.writeString(
|
18572
|
+
2,
|
18573
|
+
f
|
18574
|
+
);
|
18575
|
+
}
|
18540
18576
|
};
|
18541
18577
|
|
18542
18578
|
|
@@ -18558,6 +18594,172 @@ proto.user.SumSubApplicantRequest.prototype.setUserPublicId = function(value) {
|
|
18558
18594
|
};
|
18559
18595
|
|
18560
18596
|
|
18597
|
+
/**
|
18598
|
+
* optional string level = 2;
|
18599
|
+
* @return {string}
|
18600
|
+
*/
|
18601
|
+
proto.user.SumSubApplicantRequest.prototype.getLevel = function() {
|
18602
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
18603
|
+
};
|
18604
|
+
|
18605
|
+
|
18606
|
+
/**
|
18607
|
+
* @param {string} value
|
18608
|
+
* @return {!proto.user.SumSubApplicantRequest} returns this
|
18609
|
+
*/
|
18610
|
+
proto.user.SumSubApplicantRequest.prototype.setLevel = function(value) {
|
18611
|
+
return jspb.Message.setField(this, 2, value);
|
18612
|
+
};
|
18613
|
+
|
18614
|
+
|
18615
|
+
/**
|
18616
|
+
* Clears the field making it undefined.
|
18617
|
+
* @return {!proto.user.SumSubApplicantRequest} returns this
|
18618
|
+
*/
|
18619
|
+
proto.user.SumSubApplicantRequest.prototype.clearLevel = function() {
|
18620
|
+
return jspb.Message.setField(this, 2, undefined);
|
18621
|
+
};
|
18622
|
+
|
18623
|
+
|
18624
|
+
/**
|
18625
|
+
* Returns whether this field is set.
|
18626
|
+
* @return {boolean}
|
18627
|
+
*/
|
18628
|
+
proto.user.SumSubApplicantRequest.prototype.hasLevel = function() {
|
18629
|
+
return jspb.Message.getField(this, 2) != null;
|
18630
|
+
};
|
18631
|
+
|
18632
|
+
|
18633
|
+
|
18634
|
+
|
18635
|
+
|
18636
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
18637
|
+
/**
|
18638
|
+
* Creates an object representation of this proto.
|
18639
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
18640
|
+
* Optional fields that are not set will be set to undefined.
|
18641
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
18642
|
+
* For the list of reserved names please see:
|
18643
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
18644
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
18645
|
+
* JSPB instance for transitional soy proto support:
|
18646
|
+
* http://goto/soy-param-migration
|
18647
|
+
* @return {!Object}
|
18648
|
+
*/
|
18649
|
+
proto.user.GetSumSubApplicantRequest.prototype.toObject = function(opt_includeInstance) {
|
18650
|
+
return proto.user.GetSumSubApplicantRequest.toObject(opt_includeInstance, this);
|
18651
|
+
};
|
18652
|
+
|
18653
|
+
|
18654
|
+
/**
|
18655
|
+
* Static version of the {@see toObject} method.
|
18656
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
18657
|
+
* the JSPB instance for transitional soy proto support:
|
18658
|
+
* http://goto/soy-param-migration
|
18659
|
+
* @param {!proto.user.GetSumSubApplicantRequest} msg The msg instance to transform.
|
18660
|
+
* @return {!Object}
|
18661
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
18662
|
+
*/
|
18663
|
+
proto.user.GetSumSubApplicantRequest.toObject = function(includeInstance, msg) {
|
18664
|
+
var f, obj = {
|
18665
|
+
applicantId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
18666
|
+
};
|
18667
|
+
|
18668
|
+
if (includeInstance) {
|
18669
|
+
obj.$jspbMessageInstance = msg;
|
18670
|
+
}
|
18671
|
+
return obj;
|
18672
|
+
};
|
18673
|
+
}
|
18674
|
+
|
18675
|
+
|
18676
|
+
/**
|
18677
|
+
* Deserializes binary data (in protobuf wire format).
|
18678
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
18679
|
+
* @return {!proto.user.GetSumSubApplicantRequest}
|
18680
|
+
*/
|
18681
|
+
proto.user.GetSumSubApplicantRequest.deserializeBinary = function(bytes) {
|
18682
|
+
var reader = new jspb.BinaryReader(bytes);
|
18683
|
+
var msg = new proto.user.GetSumSubApplicantRequest;
|
18684
|
+
return proto.user.GetSumSubApplicantRequest.deserializeBinaryFromReader(msg, reader);
|
18685
|
+
};
|
18686
|
+
|
18687
|
+
|
18688
|
+
/**
|
18689
|
+
* Deserializes binary data (in protobuf wire format) from the
|
18690
|
+
* given reader into the given message object.
|
18691
|
+
* @param {!proto.user.GetSumSubApplicantRequest} msg The message object to deserialize into.
|
18692
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
18693
|
+
* @return {!proto.user.GetSumSubApplicantRequest}
|
18694
|
+
*/
|
18695
|
+
proto.user.GetSumSubApplicantRequest.deserializeBinaryFromReader = function(msg, reader) {
|
18696
|
+
while (reader.nextField()) {
|
18697
|
+
if (reader.isEndGroup()) {
|
18698
|
+
break;
|
18699
|
+
}
|
18700
|
+
var field = reader.getFieldNumber();
|
18701
|
+
switch (field) {
|
18702
|
+
case 1:
|
18703
|
+
var value = /** @type {string} */ (reader.readString());
|
18704
|
+
msg.setApplicantId(value);
|
18705
|
+
break;
|
18706
|
+
default:
|
18707
|
+
reader.skipField();
|
18708
|
+
break;
|
18709
|
+
}
|
18710
|
+
}
|
18711
|
+
return msg;
|
18712
|
+
};
|
18713
|
+
|
18714
|
+
|
18715
|
+
/**
|
18716
|
+
* Serializes the message to binary data (in protobuf wire format).
|
18717
|
+
* @return {!Uint8Array}
|
18718
|
+
*/
|
18719
|
+
proto.user.GetSumSubApplicantRequest.prototype.serializeBinary = function() {
|
18720
|
+
var writer = new jspb.BinaryWriter();
|
18721
|
+
proto.user.GetSumSubApplicantRequest.serializeBinaryToWriter(this, writer);
|
18722
|
+
return writer.getResultBuffer();
|
18723
|
+
};
|
18724
|
+
|
18725
|
+
|
18726
|
+
/**
|
18727
|
+
* Serializes the given message to binary data (in protobuf wire
|
18728
|
+
* format), writing to the given BinaryWriter.
|
18729
|
+
* @param {!proto.user.GetSumSubApplicantRequest} message
|
18730
|
+
* @param {!jspb.BinaryWriter} writer
|
18731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
18732
|
+
*/
|
18733
|
+
proto.user.GetSumSubApplicantRequest.serializeBinaryToWriter = function(message, writer) {
|
18734
|
+
var f = undefined;
|
18735
|
+
f = message.getApplicantId();
|
18736
|
+
if (f.length > 0) {
|
18737
|
+
writer.writeString(
|
18738
|
+
1,
|
18739
|
+
f
|
18740
|
+
);
|
18741
|
+
}
|
18742
|
+
};
|
18743
|
+
|
18744
|
+
|
18745
|
+
/**
|
18746
|
+
* optional string applicant_id = 1;
|
18747
|
+
* @return {string}
|
18748
|
+
*/
|
18749
|
+
proto.user.GetSumSubApplicantRequest.prototype.getApplicantId = function() {
|
18750
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
18751
|
+
};
|
18752
|
+
|
18753
|
+
|
18754
|
+
/**
|
18755
|
+
* @param {string} value
|
18756
|
+
* @return {!proto.user.GetSumSubApplicantRequest} returns this
|
18757
|
+
*/
|
18758
|
+
proto.user.GetSumSubApplicantRequest.prototype.setApplicantId = function(value) {
|
18759
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
18760
|
+
};
|
18761
|
+
|
18762
|
+
|
18561
18763
|
|
18562
18764
|
|
18563
18765
|
|
@@ -19046,7 +19248,8 @@ proto.user.SumSubResponse.toObject = function(includeInstance, msg) {
|
|
19046
19248
|
var f, obj = {
|
19047
19249
|
externalUserId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
19048
19250
|
createdAt: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
19049
|
-
idDocType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
19251
|
+
idDocType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
19252
|
+
sumSubData: jspb.Message.getFieldWithDefault(msg, 4, "")
|
19050
19253
|
};
|
19051
19254
|
|
19052
19255
|
if (includeInstance) {
|
@@ -19095,6 +19298,10 @@ proto.user.SumSubResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
19095
19298
|
var value = /** @type {string} */ (reader.readString());
|
19096
19299
|
msg.setIdDocType(value);
|
19097
19300
|
break;
|
19301
|
+
case 4:
|
19302
|
+
var value = /** @type {string} */ (reader.readString());
|
19303
|
+
msg.setSumSubData(value);
|
19304
|
+
break;
|
19098
19305
|
default:
|
19099
19306
|
reader.skipField();
|
19100
19307
|
break;
|
@@ -19145,6 +19352,13 @@ proto.user.SumSubResponse.serializeBinaryToWriter = function(message, writer) {
|
|
19145
19352
|
f
|
19146
19353
|
);
|
19147
19354
|
}
|
19355
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
19356
|
+
if (f != null) {
|
19357
|
+
writer.writeString(
|
19358
|
+
4,
|
19359
|
+
f
|
19360
|
+
);
|
19361
|
+
}
|
19148
19362
|
};
|
19149
19363
|
|
19150
19364
|
|
@@ -19256,6 +19470,42 @@ proto.user.SumSubResponse.prototype.hasIdDocType = function() {
|
|
19256
19470
|
};
|
19257
19471
|
|
19258
19472
|
|
19473
|
+
/**
|
19474
|
+
* optional string sum_sub_data = 4;
|
19475
|
+
* @return {string}
|
19476
|
+
*/
|
19477
|
+
proto.user.SumSubResponse.prototype.getSumSubData = function() {
|
19478
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
19479
|
+
};
|
19480
|
+
|
19481
|
+
|
19482
|
+
/**
|
19483
|
+
* @param {string} value
|
19484
|
+
* @return {!proto.user.SumSubResponse} returns this
|
19485
|
+
*/
|
19486
|
+
proto.user.SumSubResponse.prototype.setSumSubData = function(value) {
|
19487
|
+
return jspb.Message.setField(this, 4, value);
|
19488
|
+
};
|
19489
|
+
|
19490
|
+
|
19491
|
+
/**
|
19492
|
+
* Clears the field making it undefined.
|
19493
|
+
* @return {!proto.user.SumSubResponse} returns this
|
19494
|
+
*/
|
19495
|
+
proto.user.SumSubResponse.prototype.clearSumSubData = function() {
|
19496
|
+
return jspb.Message.setField(this, 4, undefined);
|
19497
|
+
};
|
19498
|
+
|
19499
|
+
|
19500
|
+
/**
|
19501
|
+
* Returns whether this field is set.
|
19502
|
+
* @return {boolean}
|
19503
|
+
*/
|
19504
|
+
proto.user.SumSubResponse.prototype.hasSumSubData = function() {
|
19505
|
+
return jspb.Message.getField(this, 4) != null;
|
19506
|
+
};
|
19507
|
+
|
19508
|
+
|
19259
19509
|
|
19260
19510
|
|
19261
19511
|
|