protobuf-platform 1.2.605 → 1.2.608
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 +5 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +182 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -99,6 +99,7 @@ service User {
|
|
|
99
99
|
rpc readUserKycDocument(ReadUserKycDocumentRequest) returns (UserKycDocumentItem);
|
|
100
100
|
rpc readListUserKycDocuments(ReadListUserKycDocumentsRequest) returns (UserKycDocumentListResponse);
|
|
101
101
|
rpc readUserKycDocumentOptions(ReadUserKycDocumentOptionsRequest) returns (UserKycDocumentOptionsResponse);
|
|
102
|
+
rpc readUserKycDocumentPreview(ReadUserKycDocumentPreviewRequest) returns (UserKycVerificationDocumentPreviewResponse);
|
|
102
103
|
// Submit an existing user KYC document record to the active verification provider.
|
|
103
104
|
rpc ingestUserKycDocumentToProvider(IngestUserKycDocumentToProviderRequest) returns (UserKycDocumentItem);
|
|
104
105
|
// Provider-agnostic KYC: bootstrap verification context (purpose/flow only; provider resolved internally).
|
|
@@ -1529,6 +1530,10 @@ message UserKycDocumentsResponse {
|
|
|
1529
1530
|
message ReadUserKycDocumentRequest {
|
|
1530
1531
|
int32 id = 1;
|
|
1531
1532
|
}
|
|
1533
|
+
message ReadUserKycDocumentPreviewRequest {
|
|
1534
|
+
int32 user_id = 1;
|
|
1535
|
+
int64 document_id = 2;
|
|
1536
|
+
}
|
|
1532
1537
|
message ReadListUserKycDocumentsRequest {
|
|
1533
1538
|
int32 limit = 1;
|
|
1534
1539
|
int32 offset = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -1159,6 +1159,17 @@ function deserialize_user_ReadUserKycDocumentOptionsRequest(buffer_arg) {
|
|
|
1159
1159
|
return user_pb.ReadUserKycDocumentOptionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
+
function serialize_user_ReadUserKycDocumentPreviewRequest(arg) {
|
|
1163
|
+
if (!(arg instanceof user_pb.ReadUserKycDocumentPreviewRequest)) {
|
|
1164
|
+
throw new Error('Expected argument of type user.ReadUserKycDocumentPreviewRequest');
|
|
1165
|
+
}
|
|
1166
|
+
return Buffer.from(arg.serializeBinary());
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
function deserialize_user_ReadUserKycDocumentPreviewRequest(buffer_arg) {
|
|
1170
|
+
return user_pb.ReadUserKycDocumentPreviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1162
1173
|
function serialize_user_ReadUserKycDocumentRequest(arg) {
|
|
1163
1174
|
if (!(arg instanceof user_pb.ReadUserKycDocumentRequest)) {
|
|
1164
1175
|
throw new Error('Expected argument of type user.ReadUserKycDocumentRequest');
|
|
@@ -3256,6 +3267,17 @@ readUserKycDocuments: {
|
|
|
3256
3267
|
responseSerialize: serialize_user_UserKycDocumentOptionsResponse,
|
|
3257
3268
|
responseDeserialize: deserialize_user_UserKycDocumentOptionsResponse,
|
|
3258
3269
|
},
|
|
3270
|
+
readUserKycDocumentPreview: {
|
|
3271
|
+
path: '/user.User/readUserKycDocumentPreview',
|
|
3272
|
+
requestStream: false,
|
|
3273
|
+
responseStream: false,
|
|
3274
|
+
requestType: user_pb.ReadUserKycDocumentPreviewRequest,
|
|
3275
|
+
responseType: user_pb.UserKycVerificationDocumentPreviewResponse,
|
|
3276
|
+
requestSerialize: serialize_user_ReadUserKycDocumentPreviewRequest,
|
|
3277
|
+
requestDeserialize: deserialize_user_ReadUserKycDocumentPreviewRequest,
|
|
3278
|
+
responseSerialize: serialize_user_UserKycVerificationDocumentPreviewResponse,
|
|
3279
|
+
responseDeserialize: deserialize_user_UserKycVerificationDocumentPreviewResponse,
|
|
3280
|
+
},
|
|
3259
3281
|
// Submit an existing user KYC document record to the active verification provider.
|
|
3260
3282
|
ingestUserKycDocumentToProvider: {
|
|
3261
3283
|
path: '/user.User/ingestUserKycDocumentToProvider',
|
package/user/user_pb.js
CHANGED
|
@@ -137,6 +137,7 @@ goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, glob
|
|
|
137
137
|
goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
|
|
138
138
|
goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
|
|
139
139
|
goog.exportSymbol('proto.user.ReadUserKycDocumentOptionsRequest', null, global);
|
|
140
|
+
goog.exportSymbol('proto.user.ReadUserKycDocumentPreviewRequest', null, global);
|
|
140
141
|
goog.exportSymbol('proto.user.ReadUserKycDocumentRequest', null, global);
|
|
141
142
|
goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
|
|
142
143
|
goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
|
|
@@ -3523,6 +3524,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3523
3524
|
*/
|
|
3524
3525
|
proto.user.ReadUserKycDocumentRequest.displayName = 'proto.user.ReadUserKycDocumentRequest';
|
|
3525
3526
|
}
|
|
3527
|
+
/**
|
|
3528
|
+
* Generated by JsPbCodeGenerator.
|
|
3529
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3530
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3531
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3532
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3533
|
+
* valid.
|
|
3534
|
+
* @extends {jspb.Message}
|
|
3535
|
+
* @constructor
|
|
3536
|
+
*/
|
|
3537
|
+
proto.user.ReadUserKycDocumentPreviewRequest = function(opt_data) {
|
|
3538
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3539
|
+
};
|
|
3540
|
+
goog.inherits(proto.user.ReadUserKycDocumentPreviewRequest, jspb.Message);
|
|
3541
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3542
|
+
/**
|
|
3543
|
+
* @public
|
|
3544
|
+
* @override
|
|
3545
|
+
*/
|
|
3546
|
+
proto.user.ReadUserKycDocumentPreviewRequest.displayName = 'proto.user.ReadUserKycDocumentPreviewRequest';
|
|
3547
|
+
}
|
|
3526
3548
|
/**
|
|
3527
3549
|
* Generated by JsPbCodeGenerator.
|
|
3528
3550
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -64602,6 +64624,166 @@ proto.user.ReadUserKycDocumentRequest.prototype.setId = function(value) {
|
|
|
64602
64624
|
|
|
64603
64625
|
|
|
64604
64626
|
|
|
64627
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
64628
|
+
/**
|
|
64629
|
+
* Creates an object representation of this proto.
|
|
64630
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
64631
|
+
* Optional fields that are not set will be set to undefined.
|
|
64632
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
64633
|
+
* For the list of reserved names please see:
|
|
64634
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
64635
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
64636
|
+
* JSPB instance for transitional soy proto support:
|
|
64637
|
+
* http://goto/soy-param-migration
|
|
64638
|
+
* @return {!Object}
|
|
64639
|
+
*/
|
|
64640
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.toObject = function(opt_includeInstance) {
|
|
64641
|
+
return proto.user.ReadUserKycDocumentPreviewRequest.toObject(opt_includeInstance, this);
|
|
64642
|
+
};
|
|
64643
|
+
|
|
64644
|
+
|
|
64645
|
+
/**
|
|
64646
|
+
* Static version of the {@see toObject} method.
|
|
64647
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
64648
|
+
* the JSPB instance for transitional soy proto support:
|
|
64649
|
+
* http://goto/soy-param-migration
|
|
64650
|
+
* @param {!proto.user.ReadUserKycDocumentPreviewRequest} msg The msg instance to transform.
|
|
64651
|
+
* @return {!Object}
|
|
64652
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64653
|
+
*/
|
|
64654
|
+
proto.user.ReadUserKycDocumentPreviewRequest.toObject = function(includeInstance, msg) {
|
|
64655
|
+
var f, obj = {
|
|
64656
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
64657
|
+
documentId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
64658
|
+
};
|
|
64659
|
+
|
|
64660
|
+
if (includeInstance) {
|
|
64661
|
+
obj.$jspbMessageInstance = msg;
|
|
64662
|
+
}
|
|
64663
|
+
return obj;
|
|
64664
|
+
};
|
|
64665
|
+
}
|
|
64666
|
+
|
|
64667
|
+
|
|
64668
|
+
/**
|
|
64669
|
+
* Deserializes binary data (in protobuf wire format).
|
|
64670
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
64671
|
+
* @return {!proto.user.ReadUserKycDocumentPreviewRequest}
|
|
64672
|
+
*/
|
|
64673
|
+
proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinary = function(bytes) {
|
|
64674
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
64675
|
+
var msg = new proto.user.ReadUserKycDocumentPreviewRequest;
|
|
64676
|
+
return proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinaryFromReader(msg, reader);
|
|
64677
|
+
};
|
|
64678
|
+
|
|
64679
|
+
|
|
64680
|
+
/**
|
|
64681
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
64682
|
+
* given reader into the given message object.
|
|
64683
|
+
* @param {!proto.user.ReadUserKycDocumentPreviewRequest} msg The message object to deserialize into.
|
|
64684
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
64685
|
+
* @return {!proto.user.ReadUserKycDocumentPreviewRequest}
|
|
64686
|
+
*/
|
|
64687
|
+
proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
64688
|
+
while (reader.nextField()) {
|
|
64689
|
+
if (reader.isEndGroup()) {
|
|
64690
|
+
break;
|
|
64691
|
+
}
|
|
64692
|
+
var field = reader.getFieldNumber();
|
|
64693
|
+
switch (field) {
|
|
64694
|
+
case 1:
|
|
64695
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
64696
|
+
msg.setUserId(value);
|
|
64697
|
+
break;
|
|
64698
|
+
case 2:
|
|
64699
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
64700
|
+
msg.setDocumentId(value);
|
|
64701
|
+
break;
|
|
64702
|
+
default:
|
|
64703
|
+
reader.skipField();
|
|
64704
|
+
break;
|
|
64705
|
+
}
|
|
64706
|
+
}
|
|
64707
|
+
return msg;
|
|
64708
|
+
};
|
|
64709
|
+
|
|
64710
|
+
|
|
64711
|
+
/**
|
|
64712
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
64713
|
+
* @return {!Uint8Array}
|
|
64714
|
+
*/
|
|
64715
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.serializeBinary = function() {
|
|
64716
|
+
var writer = new jspb.BinaryWriter();
|
|
64717
|
+
proto.user.ReadUserKycDocumentPreviewRequest.serializeBinaryToWriter(this, writer);
|
|
64718
|
+
return writer.getResultBuffer();
|
|
64719
|
+
};
|
|
64720
|
+
|
|
64721
|
+
|
|
64722
|
+
/**
|
|
64723
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
64724
|
+
* format), writing to the given BinaryWriter.
|
|
64725
|
+
* @param {!proto.user.ReadUserKycDocumentPreviewRequest} message
|
|
64726
|
+
* @param {!jspb.BinaryWriter} writer
|
|
64727
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64728
|
+
*/
|
|
64729
|
+
proto.user.ReadUserKycDocumentPreviewRequest.serializeBinaryToWriter = function(message, writer) {
|
|
64730
|
+
var f = undefined;
|
|
64731
|
+
f = message.getUserId();
|
|
64732
|
+
if (f !== 0) {
|
|
64733
|
+
writer.writeInt32(
|
|
64734
|
+
1,
|
|
64735
|
+
f
|
|
64736
|
+
);
|
|
64737
|
+
}
|
|
64738
|
+
f = message.getDocumentId();
|
|
64739
|
+
if (f !== 0) {
|
|
64740
|
+
writer.writeInt64(
|
|
64741
|
+
2,
|
|
64742
|
+
f
|
|
64743
|
+
);
|
|
64744
|
+
}
|
|
64745
|
+
};
|
|
64746
|
+
|
|
64747
|
+
|
|
64748
|
+
/**
|
|
64749
|
+
* optional int32 user_id = 1;
|
|
64750
|
+
* @return {number}
|
|
64751
|
+
*/
|
|
64752
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.getUserId = function() {
|
|
64753
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
64754
|
+
};
|
|
64755
|
+
|
|
64756
|
+
|
|
64757
|
+
/**
|
|
64758
|
+
* @param {number} value
|
|
64759
|
+
* @return {!proto.user.ReadUserKycDocumentPreviewRequest} returns this
|
|
64760
|
+
*/
|
|
64761
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.setUserId = function(value) {
|
|
64762
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
64763
|
+
};
|
|
64764
|
+
|
|
64765
|
+
|
|
64766
|
+
/**
|
|
64767
|
+
* optional int64 document_id = 2;
|
|
64768
|
+
* @return {number}
|
|
64769
|
+
*/
|
|
64770
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.getDocumentId = function() {
|
|
64771
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
64772
|
+
};
|
|
64773
|
+
|
|
64774
|
+
|
|
64775
|
+
/**
|
|
64776
|
+
* @param {number} value
|
|
64777
|
+
* @return {!proto.user.ReadUserKycDocumentPreviewRequest} returns this
|
|
64778
|
+
*/
|
|
64779
|
+
proto.user.ReadUserKycDocumentPreviewRequest.prototype.setDocumentId = function(value) {
|
|
64780
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
64781
|
+
};
|
|
64782
|
+
|
|
64783
|
+
|
|
64784
|
+
|
|
64785
|
+
|
|
64786
|
+
|
|
64605
64787
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
64606
64788
|
/**
|
|
64607
64789
|
* Creates an object representation of this proto.
|