protobuf-platform 1.2.346 → 1.2.348
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 +24 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +1179 -85
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -9,6 +9,7 @@ service User {
|
|
|
9
9
|
rpc signIn(LoginRequest) returns (LoggedInResponse);
|
|
10
10
|
rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
|
|
11
11
|
rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
|
|
12
|
+
rpc loginOrCreateApple(AppleLoginRequest) returns (LoggedInResponse);
|
|
12
13
|
rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
|
|
13
14
|
rpc getUserData(UserDataRequest) returns (UserDataResponse);
|
|
14
15
|
rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
|
|
@@ -241,6 +242,28 @@ message GoogleLoginRequest {
|
|
|
241
242
|
optional string correlation_id = 14;
|
|
242
243
|
optional string user_agent = 15;
|
|
243
244
|
}
|
|
245
|
+
message AppleLoginRequest {
|
|
246
|
+
string code = 1;
|
|
247
|
+
string redirect_uri = 2;
|
|
248
|
+
optional string user_ip = 3;
|
|
249
|
+
optional string device = 4;
|
|
250
|
+
optional string country = 5;
|
|
251
|
+
optional string city = 6;
|
|
252
|
+
optional string timezone = 7;
|
|
253
|
+
optional string locale = 8;
|
|
254
|
+
optional int32 affiliate_id = 9;
|
|
255
|
+
optional string affiliate_info = 10;
|
|
256
|
+
optional string promo_code = 11;
|
|
257
|
+
optional string seon_session = 12;
|
|
258
|
+
optional string request_id = 13;
|
|
259
|
+
optional string correlation_id = 14;
|
|
260
|
+
optional string user_agent = 15;
|
|
261
|
+
optional string identity_token = 16;
|
|
262
|
+
optional string first_name = 17;
|
|
263
|
+
optional string last_name = 18;
|
|
264
|
+
optional string email = 19;
|
|
265
|
+
optional string nonce = 20;
|
|
266
|
+
}
|
|
244
267
|
message ConfirmTwoFaRequest {
|
|
245
268
|
string code = 1;
|
|
246
269
|
string temp_token = 2;
|
|
@@ -960,6 +983,7 @@ message IngestUserKycDocumentToProviderRequest {
|
|
|
960
983
|
int32 user_id = 1;
|
|
961
984
|
int64 document_id = 2;
|
|
962
985
|
optional string correlation_id = 3;
|
|
986
|
+
optional string document_country = 4;
|
|
963
987
|
}
|
|
964
988
|
message UserKycDocumentItem {
|
|
965
989
|
int32 id = 1;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var user_pb = require('./user_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_user_AppleLoginRequest(arg) {
|
|
8
|
+
if (!(arg instanceof user_pb.AppleLoginRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type user.AppleLoginRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_user_AppleLoginRequest(buffer_arg) {
|
|
15
|
+
return user_pb.AppleLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
function serialize_user_BatchGetAffiliateAttributionRequest(arg) {
|
|
8
19
|
if (!(arg instanceof user_pb.BatchGetAffiliateAttributionRequest)) {
|
|
9
20
|
throw new Error('Expected argument of type user.BatchGetAffiliateAttributionRequest');
|
|
@@ -1327,6 +1338,17 @@ signUp: {
|
|
|
1327
1338
|
responseSerialize: serialize_user_LoggedInResponse,
|
|
1328
1339
|
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
1329
1340
|
},
|
|
1341
|
+
loginOrCreateApple: {
|
|
1342
|
+
path: '/user.User/loginOrCreateApple',
|
|
1343
|
+
requestStream: false,
|
|
1344
|
+
responseStream: false,
|
|
1345
|
+
requestType: user_pb.AppleLoginRequest,
|
|
1346
|
+
responseType: user_pb.LoggedInResponse,
|
|
1347
|
+
requestSerialize: serialize_user_AppleLoginRequest,
|
|
1348
|
+
requestDeserialize: deserialize_user_AppleLoginRequest,
|
|
1349
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
1350
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
1351
|
+
},
|
|
1330
1352
|
confirmUserTwoFa: {
|
|
1331
1353
|
path: '/user.User/confirmUserTwoFa',
|
|
1332
1354
|
requestStream: false,
|