protobuf-platform 1.2.592 → 1.2.593
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 +47 -0
- package/user/user_grpc_pb.js +44 -0
- package/user/user_pb.js +1990 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -12,6 +12,8 @@ service User {
|
|
|
12
12
|
rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
|
|
13
13
|
rpc loginOrCreateApple(AppleLoginRequest) returns (LoggedInResponse);
|
|
14
14
|
rpc loginOrCreateX(XLoginRequest) returns (LoggedInResponse);
|
|
15
|
+
rpc loginOrCreateYandex(YandexLoginRequest) returns (LoggedInResponse);
|
|
16
|
+
rpc loginOrCreateVkCommonId(VkCommonIdLoginRequest) returns (LoggedInResponse);
|
|
15
17
|
rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
|
|
16
18
|
rpc beginUserTwoFaSetup(BeginUserTwoFaSetupRequest) returns (BeginUserTwoFaSetupResponse);
|
|
17
19
|
rpc confirmUserTwoFaAction(ConfirmUserTwoFaActionRequest) returns (ConfirmUserTwoFaActionResponse);
|
|
@@ -413,6 +415,51 @@ message XLoginRequest {
|
|
|
413
415
|
// Gateway IP-derived country; distinct from profile country.
|
|
414
416
|
optional string ip_country = 22;
|
|
415
417
|
}
|
|
418
|
+
message YandexLoginRequest {
|
|
419
|
+
string code = 1;
|
|
420
|
+
string redirect_uri = 2;
|
|
421
|
+
string code_verifier = 3;
|
|
422
|
+
optional string user_ip = 4;
|
|
423
|
+
optional string device = 5;
|
|
424
|
+
optional string country = 6;
|
|
425
|
+
optional string city = 7;
|
|
426
|
+
optional string timezone = 8;
|
|
427
|
+
optional string locale = 9;
|
|
428
|
+
optional int32 affiliate_id = 10;
|
|
429
|
+
optional string affiliate_info = 11;
|
|
430
|
+
optional string promo_code = 12;
|
|
431
|
+
optional string seon_session = 13;
|
|
432
|
+
optional string request_id = 14;
|
|
433
|
+
optional string correlation_id = 15;
|
|
434
|
+
optional string user_agent = 16;
|
|
435
|
+
optional string antifraud_session = 17;
|
|
436
|
+
// Gateway IP-derived country; distinct from profile country.
|
|
437
|
+
optional string ip_country = 18;
|
|
438
|
+
optional string preset_code = 19;
|
|
439
|
+
}
|
|
440
|
+
message VkCommonIdLoginRequest {
|
|
441
|
+
string code = 1;
|
|
442
|
+
string redirect_uri = 2;
|
|
443
|
+
string code_verifier = 3;
|
|
444
|
+
string device_id = 4;
|
|
445
|
+
optional string user_ip = 5;
|
|
446
|
+
optional string device = 6;
|
|
447
|
+
optional string country = 7;
|
|
448
|
+
optional string city = 8;
|
|
449
|
+
optional string timezone = 9;
|
|
450
|
+
optional string locale = 10;
|
|
451
|
+
optional int32 affiliate_id = 11;
|
|
452
|
+
optional string affiliate_info = 12;
|
|
453
|
+
optional string promo_code = 13;
|
|
454
|
+
optional string seon_session = 14;
|
|
455
|
+
optional string request_id = 15;
|
|
456
|
+
optional string correlation_id = 16;
|
|
457
|
+
optional string user_agent = 17;
|
|
458
|
+
optional string antifraud_session = 18;
|
|
459
|
+
// Gateway IP-derived country; distinct from profile country.
|
|
460
|
+
optional string ip_country = 19;
|
|
461
|
+
optional string preset_code = 20;
|
|
462
|
+
}
|
|
416
463
|
message ConfirmTwoFaRequest {
|
|
417
464
|
string code = 1;
|
|
418
465
|
string temp_token = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -2325,6 +2325,17 @@ function deserialize_user_VerifySmsResetPasswordCodeResponse(buffer_arg) {
|
|
|
2325
2325
|
return user_pb.VerifySmsResetPasswordCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
|
+
function serialize_user_VkCommonIdLoginRequest(arg) {
|
|
2329
|
+
if (!(arg instanceof user_pb.VkCommonIdLoginRequest)) {
|
|
2330
|
+
throw new Error('Expected argument of type user.VkCommonIdLoginRequest');
|
|
2331
|
+
}
|
|
2332
|
+
return Buffer.from(arg.serializeBinary());
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
function deserialize_user_VkCommonIdLoginRequest(buffer_arg) {
|
|
2336
|
+
return user_pb.VkCommonIdLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2328
2339
|
function serialize_user_XLoginRequest(arg) {
|
|
2329
2340
|
if (!(arg instanceof user_pb.XLoginRequest)) {
|
|
2330
2341
|
throw new Error('Expected argument of type user.XLoginRequest');
|
|
@@ -2336,6 +2347,17 @@ function deserialize_user_XLoginRequest(buffer_arg) {
|
|
|
2336
2347
|
return user_pb.XLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2337
2348
|
}
|
|
2338
2349
|
|
|
2350
|
+
function serialize_user_YandexLoginRequest(arg) {
|
|
2351
|
+
if (!(arg instanceof user_pb.YandexLoginRequest)) {
|
|
2352
|
+
throw new Error('Expected argument of type user.YandexLoginRequest');
|
|
2353
|
+
}
|
|
2354
|
+
return Buffer.from(arg.serializeBinary());
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
function deserialize_user_YandexLoginRequest(buffer_arg) {
|
|
2358
|
+
return user_pb.YandexLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2339
2361
|
|
|
2340
2362
|
var UserService = exports.UserService = {
|
|
2341
2363
|
checkConnection: {
|
|
@@ -2427,6 +2449,28 @@ signUp: {
|
|
|
2427
2449
|
responseSerialize: serialize_user_LoggedInResponse,
|
|
2428
2450
|
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2429
2451
|
},
|
|
2452
|
+
loginOrCreateYandex: {
|
|
2453
|
+
path: '/user.User/loginOrCreateYandex',
|
|
2454
|
+
requestStream: false,
|
|
2455
|
+
responseStream: false,
|
|
2456
|
+
requestType: user_pb.YandexLoginRequest,
|
|
2457
|
+
responseType: user_pb.LoggedInResponse,
|
|
2458
|
+
requestSerialize: serialize_user_YandexLoginRequest,
|
|
2459
|
+
requestDeserialize: deserialize_user_YandexLoginRequest,
|
|
2460
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
2461
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2462
|
+
},
|
|
2463
|
+
loginOrCreateVkCommonId: {
|
|
2464
|
+
path: '/user.User/loginOrCreateVkCommonId',
|
|
2465
|
+
requestStream: false,
|
|
2466
|
+
responseStream: false,
|
|
2467
|
+
requestType: user_pb.VkCommonIdLoginRequest,
|
|
2468
|
+
responseType: user_pb.LoggedInResponse,
|
|
2469
|
+
requestSerialize: serialize_user_VkCommonIdLoginRequest,
|
|
2470
|
+
requestDeserialize: deserialize_user_VkCommonIdLoginRequest,
|
|
2471
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
2472
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
2473
|
+
},
|
|
2430
2474
|
confirmUserTwoFa: {
|
|
2431
2475
|
path: '/user.User/confirmUserTwoFa',
|
|
2432
2476
|
requestStream: false,
|