protobuf-platform 1.2.344 → 1.2.346

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.344",
3
+ "version": "1.2.346",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
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,11 @@ 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
+ }
957
964
  message UserKycDocumentItem {
958
965
  int32 id = 1;
959
966
  int32 user_id = 2;
@@ -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,214 @@ 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
+ };
41052
+
41053
+ if (includeInstance) {
41054
+ obj.$jspbMessageInstance = msg;
41055
+ }
41056
+ return obj;
41057
+ };
41058
+ }
41059
+
41060
+
41061
+ /**
41062
+ * Deserializes binary data (in protobuf wire format).
41063
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
41064
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest}
41065
+ */
41066
+ proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinary = function(bytes) {
41067
+ var reader = new jspb.BinaryReader(bytes);
41068
+ var msg = new proto.user.IngestUserKycDocumentToProviderRequest;
41069
+ return proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinaryFromReader(msg, reader);
41070
+ };
41071
+
41072
+
41073
+ /**
41074
+ * Deserializes binary data (in protobuf wire format) from the
41075
+ * given reader into the given message object.
41076
+ * @param {!proto.user.IngestUserKycDocumentToProviderRequest} msg The message object to deserialize into.
41077
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41078
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest}
41079
+ */
41080
+ proto.user.IngestUserKycDocumentToProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
41081
+ while (reader.nextField()) {
41082
+ if (reader.isEndGroup()) {
41083
+ break;
41084
+ }
41085
+ var field = reader.getFieldNumber();
41086
+ switch (field) {
41087
+ case 1:
41088
+ var value = /** @type {number} */ (reader.readInt32());
41089
+ msg.setUserId(value);
41090
+ break;
41091
+ case 2:
41092
+ var value = /** @type {number} */ (reader.readInt64());
41093
+ msg.setDocumentId(value);
41094
+ break;
41095
+ case 3:
41096
+ var value = /** @type {string} */ (reader.readString());
41097
+ msg.setCorrelationId(value);
41098
+ break;
41099
+ default:
41100
+ reader.skipField();
41101
+ break;
41102
+ }
41103
+ }
41104
+ return msg;
41105
+ };
41106
+
41107
+
41108
+ /**
41109
+ * Serializes the message to binary data (in protobuf wire format).
41110
+ * @return {!Uint8Array}
41111
+ */
41112
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.serializeBinary = function() {
41113
+ var writer = new jspb.BinaryWriter();
41114
+ proto.user.IngestUserKycDocumentToProviderRequest.serializeBinaryToWriter(this, writer);
41115
+ return writer.getResultBuffer();
41116
+ };
41117
+
41118
+
41119
+ /**
41120
+ * Serializes the given message to binary data (in protobuf wire
41121
+ * format), writing to the given BinaryWriter.
41122
+ * @param {!proto.user.IngestUserKycDocumentToProviderRequest} message
41123
+ * @param {!jspb.BinaryWriter} writer
41124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41125
+ */
41126
+ proto.user.IngestUserKycDocumentToProviderRequest.serializeBinaryToWriter = function(message, writer) {
41127
+ var f = undefined;
41128
+ f = message.getUserId();
41129
+ if (f !== 0) {
41130
+ writer.writeInt32(
41131
+ 1,
41132
+ f
41133
+ );
41134
+ }
41135
+ f = message.getDocumentId();
41136
+ if (f !== 0) {
41137
+ writer.writeInt64(
41138
+ 2,
41139
+ f
41140
+ );
41141
+ }
41142
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
41143
+ if (f != null) {
41144
+ writer.writeString(
41145
+ 3,
41146
+ f
41147
+ );
41148
+ }
41149
+ };
41150
+
41151
+
41152
+ /**
41153
+ * optional int32 user_id = 1;
41154
+ * @return {number}
41155
+ */
41156
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.getUserId = function() {
41157
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41158
+ };
41159
+
41160
+
41161
+ /**
41162
+ * @param {number} value
41163
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
41164
+ */
41165
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.setUserId = function(value) {
41166
+ return jspb.Message.setProto3IntField(this, 1, value);
41167
+ };
41168
+
41169
+
41170
+ /**
41171
+ * optional int64 document_id = 2;
41172
+ * @return {number}
41173
+ */
41174
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.getDocumentId = function() {
41175
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
41176
+ };
41177
+
41178
+
41179
+ /**
41180
+ * @param {number} value
41181
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
41182
+ */
41183
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.setDocumentId = function(value) {
41184
+ return jspb.Message.setProto3IntField(this, 2, value);
41185
+ };
41186
+
41187
+
41188
+ /**
41189
+ * optional string correlation_id = 3;
41190
+ * @return {string}
41191
+ */
41192
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.getCorrelationId = function() {
41193
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
41194
+ };
41195
+
41196
+
41197
+ /**
41198
+ * @param {string} value
41199
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
41200
+ */
41201
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.setCorrelationId = function(value) {
41202
+ return jspb.Message.setField(this, 3, value);
41203
+ };
41204
+
41205
+
41206
+ /**
41207
+ * Clears the field making it undefined.
41208
+ * @return {!proto.user.IngestUserKycDocumentToProviderRequest} returns this
41209
+ */
41210
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.clearCorrelationId = function() {
41211
+ return jspb.Message.setField(this, 3, undefined);
41212
+ };
41213
+
41214
+
41215
+ /**
41216
+ * Returns whether this field is set.
41217
+ * @return {boolean}
41218
+ */
41219
+ proto.user.IngestUserKycDocumentToProviderRequest.prototype.hasCorrelationId = function() {
41220
+ return jspb.Message.getField(this, 3) != null;
41221
+ };
41222
+
41223
+
41224
+
41225
+
41226
+
40997
41227
  if (jspb.Message.GENERATE_TO_OBJECT) {
40998
41228
  /**
40999
41229
  * Creates an object representation of this proto.