protobuf-platform 1.2.344 → 1.2.347
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 +8 -0
- package/user/user_grpc_pb.js +23 -0
- package/user/user_pb.js +278 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -80,6 +80,8 @@ service User {
|
|
|
80
80
|
rpc readUserKycDocument(ReadUserKycDocumentRequest) returns (UserKycDocumentItem);
|
|
81
81
|
rpc readListUserKycDocuments(ReadListUserKycDocumentsRequest) returns (UserKycDocumentListResponse);
|
|
82
82
|
rpc readUserKycDocumentOptions(ReadUserKycDocumentOptionsRequest) returns (UserKycDocumentOptionsResponse);
|
|
83
|
+
// Submit an existing user KYC document record to the active verification provider.
|
|
84
|
+
rpc ingestUserKycDocumentToProvider(IngestUserKycDocumentToProviderRequest) returns (UserKycDocumentItem);
|
|
83
85
|
// Provider-agnostic KYC: start a provider-hosted or provider-driven verification session.
|
|
84
86
|
rpc startUserKycVerification(StartUserKycVerificationRequest) returns (StartUserKycVerificationResponse);
|
|
85
87
|
// Single internal entrypoint for provider webhook processing (`raw_body` / `headers` are internal-only).
|
|
@@ -954,6 +956,12 @@ message UpdateUserKycDocumentReviewRequest {
|
|
|
954
956
|
optional string reason = 3;
|
|
955
957
|
optional int32 reviewer_id = 4;
|
|
956
958
|
}
|
|
959
|
+
message IngestUserKycDocumentToProviderRequest {
|
|
960
|
+
int32 user_id = 1;
|
|
961
|
+
int64 document_id = 2;
|
|
962
|
+
optional string correlation_id = 3;
|
|
963
|
+
optional string document_country = 4;
|
|
964
|
+
}
|
|
957
965
|
message UserKycDocumentItem {
|
|
958
966
|
int32 id = 1;
|
|
959
967
|
int32 user_id = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -279,6 +279,17 @@ function deserialize_user_GoogleLoginRequest(buffer_arg) {
|
|
|
279
279
|
return user_pb.GoogleLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
+
function serialize_user_IngestUserKycDocumentToProviderRequest(arg) {
|
|
283
|
+
if (!(arg instanceof user_pb.IngestUserKycDocumentToProviderRequest)) {
|
|
284
|
+
throw new Error('Expected argument of type user.IngestUserKycDocumentToProviderRequest');
|
|
285
|
+
}
|
|
286
|
+
return Buffer.from(arg.serializeBinary());
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function deserialize_user_IngestUserKycDocumentToProviderRequest(buffer_arg) {
|
|
290
|
+
return user_pb.IngestUserKycDocumentToProviderRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
291
|
+
}
|
|
292
|
+
|
|
282
293
|
function serialize_user_LimitStatusResponse(arg) {
|
|
283
294
|
if (!(arg instanceof user_pb.LimitStatusResponse)) {
|
|
284
295
|
throw new Error('Expected argument of type user.LimitStatusResponse');
|
|
@@ -1957,6 +1968,18 @@ readUserKycDocuments: {
|
|
|
1957
1968
|
responseSerialize: serialize_user_UserKycDocumentOptionsResponse,
|
|
1958
1969
|
responseDeserialize: deserialize_user_UserKycDocumentOptionsResponse,
|
|
1959
1970
|
},
|
|
1971
|
+
// Submit an existing user KYC document record to the active verification provider.
|
|
1972
|
+
ingestUserKycDocumentToProvider: {
|
|
1973
|
+
path: '/user.User/ingestUserKycDocumentToProvider',
|
|
1974
|
+
requestStream: false,
|
|
1975
|
+
responseStream: false,
|
|
1976
|
+
requestType: user_pb.IngestUserKycDocumentToProviderRequest,
|
|
1977
|
+
responseType: user_pb.UserKycDocumentItem,
|
|
1978
|
+
requestSerialize: serialize_user_IngestUserKycDocumentToProviderRequest,
|
|
1979
|
+
requestDeserialize: deserialize_user_IngestUserKycDocumentToProviderRequest,
|
|
1980
|
+
responseSerialize: serialize_user_UserKycDocumentItem,
|
|
1981
|
+
responseDeserialize: deserialize_user_UserKycDocumentItem,
|
|
1982
|
+
},
|
|
1960
1983
|
// Provider-agnostic KYC: start a provider-hosted or provider-driven verification session.
|
|
1961
1984
|
startUserKycVerification: {
|
|
1962
1985
|
path: '/user.User/startUserKycVerification',
|
package/user/user_pb.js
CHANGED
|
@@ -50,6 +50,7 @@ goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
|
|
|
50
50
|
goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
|
|
51
51
|
goog.exportSymbol('proto.user.GetUserWalletBalancesRequest', null, global);
|
|
52
52
|
goog.exportSymbol('proto.user.GoogleLoginRequest', null, global);
|
|
53
|
+
goog.exportSymbol('proto.user.IngestUserKycDocumentToProviderRequest', null, global);
|
|
53
54
|
goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
|
|
54
55
|
goog.exportSymbol('proto.user.LoggedInResponse', null, global);
|
|
55
56
|
goog.exportSymbol('proto.user.LoginRequest', null, global);
|
|
@@ -2347,6 +2348,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2347
2348
|
*/
|
|
2348
2349
|
proto.user.UpdateUserKycDocumentReviewRequest.displayName = 'proto.user.UpdateUserKycDocumentReviewRequest';
|
|
2349
2350
|
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Generated by JsPbCodeGenerator.
|
|
2353
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2354
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2355
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2356
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2357
|
+
* valid.
|
|
2358
|
+
* @extends {jspb.Message}
|
|
2359
|
+
* @constructor
|
|
2360
|
+
*/
|
|
2361
|
+
proto.user.IngestUserKycDocumentToProviderRequest = function(opt_data) {
|
|
2362
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2363
|
+
};
|
|
2364
|
+
goog.inherits(proto.user.IngestUserKycDocumentToProviderRequest, jspb.Message);
|
|
2365
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2366
|
+
/**
|
|
2367
|
+
* @public
|
|
2368
|
+
* @override
|
|
2369
|
+
*/
|
|
2370
|
+
proto.user.IngestUserKycDocumentToProviderRequest.displayName = 'proto.user.IngestUserKycDocumentToProviderRequest';
|
|
2371
|
+
}
|
|
2350
2372
|
/**
|
|
2351
2373
|
* Generated by JsPbCodeGenerator.
|
|
2352
2374
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -40994,6 +41016,262 @@ proto.user.UpdateUserKycDocumentReviewRequest.prototype.hasReviewerId = function
|
|
|
40994
41016
|
|
|
40995
41017
|
|
|
40996
41018
|
|
|
41019
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41020
|
+
/**
|
|
41021
|
+
* Creates an object representation of this proto.
|
|
41022
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
41023
|
+
* Optional fields that are not set will be set to undefined.
|
|
41024
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
41025
|
+
* For the list of reserved names please see:
|
|
41026
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
41027
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
41028
|
+
* JSPB instance for transitional soy proto support:
|
|
41029
|
+
* http://goto/soy-param-migration
|
|
41030
|
+
* @return {!Object}
|
|
41031
|
+
*/
|
|
41032
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.toObject = function(opt_includeInstance) {
|
|
41033
|
+
return proto.user.IngestUserKycDocumentToProviderRequest.toObject(opt_includeInstance, this);
|
|
41034
|
+
};
|
|
41035
|
+
|
|
41036
|
+
|
|
41037
|
+
/**
|
|
41038
|
+
* Static version of the {@see toObject} method.
|
|
41039
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
41040
|
+
* the JSPB instance for transitional soy proto support:
|
|
41041
|
+
* http://goto/soy-param-migration
|
|
41042
|
+
* @param {!proto.user.IngestUserKycDocumentToProviderRequest} msg The msg instance to transform.
|
|
41043
|
+
* @return {!Object}
|
|
41044
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41045
|
+
*/
|
|
41046
|
+
proto.user.IngestUserKycDocumentToProviderRequest.toObject = function(includeInstance, msg) {
|
|
41047
|
+
var f, obj = {
|
|
41048
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
41049
|
+
documentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
41050
|
+
correlationId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
41051
|
+
documentCountry: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
41052
|
+
};
|
|
41053
|
+
|
|
41054
|
+
if (includeInstance) {
|
|
41055
|
+
obj.$jspbMessageInstance = msg;
|
|
41056
|
+
}
|
|
41057
|
+
return obj;
|
|
41058
|
+
};
|
|
41059
|
+
}
|
|
41060
|
+
|
|
41061
|
+
|
|
41062
|
+
/**
|
|
41063
|
+
* Deserializes binary data (in protobuf wire format).
|
|
41064
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
41065
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest}
|
|
41066
|
+
*/
|
|
41067
|
+
proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinary = function(bytes) {
|
|
41068
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
41069
|
+
var msg = new proto.user.IngestUserKycDocumentToProviderRequest;
|
|
41070
|
+
return proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinaryFromReader(msg, reader);
|
|
41071
|
+
};
|
|
41072
|
+
|
|
41073
|
+
|
|
41074
|
+
/**
|
|
41075
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
41076
|
+
* given reader into the given message object.
|
|
41077
|
+
* @param {!proto.user.IngestUserKycDocumentToProviderRequest} msg The message object to deserialize into.
|
|
41078
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
41079
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest}
|
|
41080
|
+
*/
|
|
41081
|
+
proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
41082
|
+
while (reader.nextField()) {
|
|
41083
|
+
if (reader.isEndGroup()) {
|
|
41084
|
+
break;
|
|
41085
|
+
}
|
|
41086
|
+
var field = reader.getFieldNumber();
|
|
41087
|
+
switch (field) {
|
|
41088
|
+
case 1:
|
|
41089
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
41090
|
+
msg.setUserId(value);
|
|
41091
|
+
break;
|
|
41092
|
+
case 2:
|
|
41093
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
41094
|
+
msg.setDocumentId(value);
|
|
41095
|
+
break;
|
|
41096
|
+
case 3:
|
|
41097
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41098
|
+
msg.setCorrelationId(value);
|
|
41099
|
+
break;
|
|
41100
|
+
case 4:
|
|
41101
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41102
|
+
msg.setDocumentCountry(value);
|
|
41103
|
+
break;
|
|
41104
|
+
default:
|
|
41105
|
+
reader.skipField();
|
|
41106
|
+
break;
|
|
41107
|
+
}
|
|
41108
|
+
}
|
|
41109
|
+
return msg;
|
|
41110
|
+
};
|
|
41111
|
+
|
|
41112
|
+
|
|
41113
|
+
/**
|
|
41114
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
41115
|
+
* @return {!Uint8Array}
|
|
41116
|
+
*/
|
|
41117
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.serializeBinary = function() {
|
|
41118
|
+
var writer = new jspb.BinaryWriter();
|
|
41119
|
+
proto.user.IngestUserKycDocumentToProviderRequest.serializeBinaryToWriter(this, writer);
|
|
41120
|
+
return writer.getResultBuffer();
|
|
41121
|
+
};
|
|
41122
|
+
|
|
41123
|
+
|
|
41124
|
+
/**
|
|
41125
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
41126
|
+
* format), writing to the given BinaryWriter.
|
|
41127
|
+
* @param {!proto.user.IngestUserKycDocumentToProviderRequest} message
|
|
41128
|
+
* @param {!jspb.BinaryWriter} writer
|
|
41129
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41130
|
+
*/
|
|
41131
|
+
proto.user.IngestUserKycDocumentToProviderRequest.serializeBinaryToWriter = function(message, writer) {
|
|
41132
|
+
var f = undefined;
|
|
41133
|
+
f = message.getUserId();
|
|
41134
|
+
if (f !== 0) {
|
|
41135
|
+
writer.writeInt32(
|
|
41136
|
+
1,
|
|
41137
|
+
f
|
|
41138
|
+
);
|
|
41139
|
+
}
|
|
41140
|
+
f = message.getDocumentId();
|
|
41141
|
+
if (f !== 0) {
|
|
41142
|
+
writer.writeInt64(
|
|
41143
|
+
2,
|
|
41144
|
+
f
|
|
41145
|
+
);
|
|
41146
|
+
}
|
|
41147
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
41148
|
+
if (f != null) {
|
|
41149
|
+
writer.writeString(
|
|
41150
|
+
3,
|
|
41151
|
+
f
|
|
41152
|
+
);
|
|
41153
|
+
}
|
|
41154
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
41155
|
+
if (f != null) {
|
|
41156
|
+
writer.writeString(
|
|
41157
|
+
4,
|
|
41158
|
+
f
|
|
41159
|
+
);
|
|
41160
|
+
}
|
|
41161
|
+
};
|
|
41162
|
+
|
|
41163
|
+
|
|
41164
|
+
/**
|
|
41165
|
+
* optional int32 user_id = 1;
|
|
41166
|
+
* @return {number}
|
|
41167
|
+
*/
|
|
41168
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.getUserId = function() {
|
|
41169
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
41170
|
+
};
|
|
41171
|
+
|
|
41172
|
+
|
|
41173
|
+
/**
|
|
41174
|
+
* @param {number} value
|
|
41175
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41176
|
+
*/
|
|
41177
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.setUserId = function(value) {
|
|
41178
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
41179
|
+
};
|
|
41180
|
+
|
|
41181
|
+
|
|
41182
|
+
/**
|
|
41183
|
+
* optional int64 document_id = 2;
|
|
41184
|
+
* @return {number}
|
|
41185
|
+
*/
|
|
41186
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.getDocumentId = function() {
|
|
41187
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
41188
|
+
};
|
|
41189
|
+
|
|
41190
|
+
|
|
41191
|
+
/**
|
|
41192
|
+
* @param {number} value
|
|
41193
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41194
|
+
*/
|
|
41195
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.setDocumentId = function(value) {
|
|
41196
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
41197
|
+
};
|
|
41198
|
+
|
|
41199
|
+
|
|
41200
|
+
/**
|
|
41201
|
+
* optional string correlation_id = 3;
|
|
41202
|
+
* @return {string}
|
|
41203
|
+
*/
|
|
41204
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.getCorrelationId = function() {
|
|
41205
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
41206
|
+
};
|
|
41207
|
+
|
|
41208
|
+
|
|
41209
|
+
/**
|
|
41210
|
+
* @param {string} value
|
|
41211
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41212
|
+
*/
|
|
41213
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.setCorrelationId = function(value) {
|
|
41214
|
+
return jspb.Message.setField(this, 3, value);
|
|
41215
|
+
};
|
|
41216
|
+
|
|
41217
|
+
|
|
41218
|
+
/**
|
|
41219
|
+
* Clears the field making it undefined.
|
|
41220
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41221
|
+
*/
|
|
41222
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.clearCorrelationId = function() {
|
|
41223
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
41224
|
+
};
|
|
41225
|
+
|
|
41226
|
+
|
|
41227
|
+
/**
|
|
41228
|
+
* Returns whether this field is set.
|
|
41229
|
+
* @return {boolean}
|
|
41230
|
+
*/
|
|
41231
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.hasCorrelationId = function() {
|
|
41232
|
+
return jspb.Message.getField(this, 3) != null;
|
|
41233
|
+
};
|
|
41234
|
+
|
|
41235
|
+
|
|
41236
|
+
/**
|
|
41237
|
+
* optional string document_country = 4;
|
|
41238
|
+
* @return {string}
|
|
41239
|
+
*/
|
|
41240
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.getDocumentCountry = function() {
|
|
41241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
41242
|
+
};
|
|
41243
|
+
|
|
41244
|
+
|
|
41245
|
+
/**
|
|
41246
|
+
* @param {string} value
|
|
41247
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41248
|
+
*/
|
|
41249
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.setDocumentCountry = function(value) {
|
|
41250
|
+
return jspb.Message.setField(this, 4, value);
|
|
41251
|
+
};
|
|
41252
|
+
|
|
41253
|
+
|
|
41254
|
+
/**
|
|
41255
|
+
* Clears the field making it undefined.
|
|
41256
|
+
* @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
|
|
41257
|
+
*/
|
|
41258
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.clearDocumentCountry = function() {
|
|
41259
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
41260
|
+
};
|
|
41261
|
+
|
|
41262
|
+
|
|
41263
|
+
/**
|
|
41264
|
+
* Returns whether this field is set.
|
|
41265
|
+
* @return {boolean}
|
|
41266
|
+
*/
|
|
41267
|
+
proto.user.IngestUserKycDocumentToProviderRequest.prototype.hasDocumentCountry = function() {
|
|
41268
|
+
return jspb.Message.getField(this, 4) != null;
|
|
41269
|
+
};
|
|
41270
|
+
|
|
41271
|
+
|
|
41272
|
+
|
|
41273
|
+
|
|
41274
|
+
|
|
40997
41275
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40998
41276
|
/**
|
|
40999
41277
|
* Creates an object representation of this proto.
|