protobuf-platform 1.2.430 → 1.2.432
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/cms/cms.proto +45 -0
- package/cms/cms_grpc_pb.js +111 -0
- package/cms/cms_pb.js +1959 -0
- package/package.json +1 -1
- package/user/user.proto +24 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +1112 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -10,6 +10,7 @@ service User {
|
|
|
10
10
|
rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
|
|
11
11
|
rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
|
|
12
12
|
rpc loginOrCreateApple(AppleLoginRequest) returns (LoggedInResponse);
|
|
13
|
+
rpc loginOrCreateX(XLoginRequest) returns (LoggedInResponse);
|
|
13
14
|
rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
|
|
14
15
|
rpc getUserData(UserDataRequest) returns (UserDataResponse);
|
|
15
16
|
rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
|
|
@@ -288,6 +289,29 @@ message AppleLoginRequest {
|
|
|
288
289
|
optional string nonce = 20;
|
|
289
290
|
optional string antifraud_session = 21;
|
|
290
291
|
}
|
|
292
|
+
message XLoginRequest {
|
|
293
|
+
string x_user_id = 1;
|
|
294
|
+
optional string username = 2;
|
|
295
|
+
optional string display_name = 3;
|
|
296
|
+
optional string email = 4;
|
|
297
|
+
optional bool email_verified = 5;
|
|
298
|
+
optional string avatar_url = 6;
|
|
299
|
+
optional string user_ip = 7;
|
|
300
|
+
optional string device = 8;
|
|
301
|
+
optional string country = 9;
|
|
302
|
+
optional string city = 10;
|
|
303
|
+
optional string timezone = 11;
|
|
304
|
+
optional string locale = 12;
|
|
305
|
+
optional int32 affiliate_id = 13;
|
|
306
|
+
optional string affiliate_info = 14;
|
|
307
|
+
optional string promo_code = 15;
|
|
308
|
+
optional string seon_session = 16;
|
|
309
|
+
optional string request_id = 17;
|
|
310
|
+
optional string correlation_id = 18;
|
|
311
|
+
optional string user_agent = 19;
|
|
312
|
+
optional string antifraud_session = 20;
|
|
313
|
+
optional string preset_code = 21;
|
|
314
|
+
}
|
|
291
315
|
message ConfirmTwoFaRequest {
|
|
292
316
|
string code = 1;
|
|
293
317
|
string temp_token = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -1467,6 +1467,17 @@ function deserialize_user_VerificationStatusItemsResponse(buffer_arg) {
|
|
|
1467
1467
|
return user_pb.VerificationStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
+
function serialize_user_XLoginRequest(arg) {
|
|
1471
|
+
if (!(arg instanceof user_pb.XLoginRequest)) {
|
|
1472
|
+
throw new Error('Expected argument of type user.XLoginRequest');
|
|
1473
|
+
}
|
|
1474
|
+
return Buffer.from(arg.serializeBinary());
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
function deserialize_user_XLoginRequest(buffer_arg) {
|
|
1478
|
+
return user_pb.XLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1470
1481
|
|
|
1471
1482
|
var UserService = exports.UserService = {
|
|
1472
1483
|
checkConnection: {
|
|
@@ -1536,6 +1547,17 @@ signUp: {
|
|
|
1536
1547
|
responseSerialize: serialize_user_LoggedInResponse,
|
|
1537
1548
|
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
1538
1549
|
},
|
|
1550
|
+
loginOrCreateX: {
|
|
1551
|
+
path: '/user.User/loginOrCreateX',
|
|
1552
|
+
requestStream: false,
|
|
1553
|
+
responseStream: false,
|
|
1554
|
+
requestType: user_pb.XLoginRequest,
|
|
1555
|
+
responseType: user_pb.LoggedInResponse,
|
|
1556
|
+
requestSerialize: serialize_user_XLoginRequest,
|
|
1557
|
+
requestDeserialize: deserialize_user_XLoginRequest,
|
|
1558
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
1559
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
1560
|
+
},
|
|
1539
1561
|
confirmUserTwoFa: {
|
|
1540
1562
|
path: '/user.User/confirmUserTwoFa',
|
|
1541
1563
|
requestStream: false,
|