protobuf-platform 1.2.255 → 1.2.258

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.255",
3
+ "version": "1.2.258",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -8,6 +8,7 @@ service User {
8
8
  rpc signUp(RegistrationRequest) returns (LoggedInResponse);
9
9
  rpc signIn(LoginRequest) returns (LoggedInResponse);
10
10
  rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
11
+ rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
11
12
  rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
12
13
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
13
14
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
@@ -180,6 +181,23 @@ message TelegramLoginRequest {
180
181
  optional string country = 8;
181
182
  optional string city = 9;
182
183
  }
184
+ message GoogleLoginRequest {
185
+ string code = 1;
186
+ string redirect_uri = 2;
187
+ optional string user_ip = 3;
188
+ optional string device = 4;
189
+ optional string country = 5;
190
+ optional string city = 6;
191
+ optional string timezone = 7;
192
+ optional string locale = 8;
193
+ optional int32 affiliate_id = 9;
194
+ optional string affiliate_info = 10;
195
+ optional string promo_code = 11;
196
+ optional string seon_session = 12;
197
+ optional string request_id = 13;
198
+ optional string correlation_id = 14;
199
+ optional string user_agent = 15;
200
+ }
183
201
  message ConfirmTwoFaRequest {
184
202
  string code = 1;
185
203
  string temp_token = 2;
@@ -294,6 +312,7 @@ message UserDataResponse {
294
312
  optional string gender = 37;
295
313
  optional int32 risk_score = 38;
296
314
  optional string address = 39;
315
+ optional int32 seon_fraud_score = 40;
297
316
  }
298
317
  message UsersResponse {
299
318
  repeated UserDataResponse items = 1;
@@ -180,6 +180,17 @@ function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
180
180
  return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_user_GoogleLoginRequest(arg) {
184
+ if (!(arg instanceof user_pb.GoogleLoginRequest)) {
185
+ throw new Error('Expected argument of type user.GoogleLoginRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_user_GoogleLoginRequest(buffer_arg) {
191
+ return user_pb.GoogleLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_user_LimitStatusResponse(arg) {
184
195
  if (!(arg instanceof user_pb.LimitStatusResponse)) {
185
196
  throw new Error('Expected argument of type user.LimitStatusResponse');
@@ -777,6 +788,17 @@ signUp: {
777
788
  responseSerialize: serialize_user_LoggedInResponse,
778
789
  responseDeserialize: deserialize_user_LoggedInResponse,
779
790
  },
791
+ loginOrCreateGoogle: {
792
+ path: '/user.User/loginOrCreateGoogle',
793
+ requestStream: false,
794
+ responseStream: false,
795
+ requestType: user_pb.GoogleLoginRequest,
796
+ responseType: user_pb.LoggedInResponse,
797
+ requestSerialize: serialize_user_GoogleLoginRequest,
798
+ requestDeserialize: deserialize_user_GoogleLoginRequest,
799
+ responseSerialize: serialize_user_LoggedInResponse,
800
+ responseDeserialize: deserialize_user_LoggedInResponse,
801
+ },
780
802
  confirmUserTwoFa: {
781
803
  path: '/user.User/confirmUserTwoFa',
782
804
  requestStream: false,