protobuf-platform 1.0.286 → 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/game/game.proto +1 -0
- package/game/game_pb.js +58 -2
- 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/game/game.proto
CHANGED
package/game/game_pb.js
CHANGED
@@ -1027,7 +1027,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
1027
1027
|
* @constructor
|
1028
1028
|
*/
|
1029
1029
|
proto.game.GameItem = function(opt_data) {
|
1030
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
1030
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameItem.repeatedFields_, null);
|
1031
1031
|
};
|
1032
1032
|
goog.inherits(proto.game.GameItem, jspb.Message);
|
1033
1033
|
if (goog.DEBUG && !COMPILED) {
|
@@ -12186,6 +12186,13 @@ proto.game.IntegratorSelfValidationResponse.prototype.setData = function(value)
|
|
12186
12186
|
|
12187
12187
|
|
12188
12188
|
|
12189
|
+
/**
|
12190
|
+
* List of repeated fields within this message type.
|
12191
|
+
* @private {!Array<number>}
|
12192
|
+
* @const
|
12193
|
+
*/
|
12194
|
+
proto.game.GameItem.repeatedFields_ = [23];
|
12195
|
+
|
12189
12196
|
|
12190
12197
|
|
12191
12198
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -12238,7 +12245,8 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
|
|
12238
12245
|
collections: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
12239
12246
|
tags: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
12240
12247
|
isTop: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
|
12241
|
-
isVip: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
12248
|
+
isVip: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
12249
|
+
devicesList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f
|
12242
12250
|
};
|
12243
12251
|
|
12244
12252
|
if (includeInstance) {
|
@@ -12364,6 +12372,10 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
12364
12372
|
var value = /** @type {boolean} */ (reader.readBool());
|
12365
12373
|
msg.setIsVip(value);
|
12366
12374
|
break;
|
12375
|
+
case 23:
|
12376
|
+
var value = /** @type {string} */ (reader.readString());
|
12377
|
+
msg.addDevices(value);
|
12378
|
+
break;
|
12367
12379
|
default:
|
12368
12380
|
reader.skipField();
|
12369
12381
|
break;
|
@@ -12548,6 +12560,13 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
|
|
12548
12560
|
f
|
12549
12561
|
);
|
12550
12562
|
}
|
12563
|
+
f = message.getDevicesList();
|
12564
|
+
if (f.length > 0) {
|
12565
|
+
writer.writeRepeatedString(
|
12566
|
+
23,
|
12567
|
+
f
|
12568
|
+
);
|
12569
|
+
}
|
12551
12570
|
};
|
12552
12571
|
|
12553
12572
|
|
@@ -13344,6 +13363,43 @@ proto.game.GameItem.prototype.hasIsVip = function() {
|
|
13344
13363
|
};
|
13345
13364
|
|
13346
13365
|
|
13366
|
+
/**
|
13367
|
+
* repeated string devices = 23;
|
13368
|
+
* @return {!Array<string>}
|
13369
|
+
*/
|
13370
|
+
proto.game.GameItem.prototype.getDevicesList = function() {
|
13371
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 23));
|
13372
|
+
};
|
13373
|
+
|
13374
|
+
|
13375
|
+
/**
|
13376
|
+
* @param {!Array<string>} value
|
13377
|
+
* @return {!proto.game.GameItem} returns this
|
13378
|
+
*/
|
13379
|
+
proto.game.GameItem.prototype.setDevicesList = function(value) {
|
13380
|
+
return jspb.Message.setField(this, 23, value || []);
|
13381
|
+
};
|
13382
|
+
|
13383
|
+
|
13384
|
+
/**
|
13385
|
+
* @param {string} value
|
13386
|
+
* @param {number=} opt_index
|
13387
|
+
* @return {!proto.game.GameItem} returns this
|
13388
|
+
*/
|
13389
|
+
proto.game.GameItem.prototype.addDevices = function(value, opt_index) {
|
13390
|
+
return jspb.Message.addToRepeatedField(this, 23, value, opt_index);
|
13391
|
+
};
|
13392
|
+
|
13393
|
+
|
13394
|
+
/**
|
13395
|
+
* Clears the list making it empty but non-null.
|
13396
|
+
* @return {!proto.game.GameItem} returns this
|
13397
|
+
*/
|
13398
|
+
proto.game.GameItem.prototype.clearDevicesList = function() {
|
13399
|
+
return this.setDevicesList([]);
|
13400
|
+
};
|
13401
|
+
|
13402
|
+
|
13347
13403
|
|
13348
13404
|
/**
|
13349
13405
|
* Oneof group definitions for this message. Each group defines the field
|
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);
|