mezon-js-protobuf 1.7.48 → 1.8.2

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/api/api.ts CHANGED
@@ -175,8 +175,6 @@ export interface Account {
175
175
  wallet: string;
176
176
  /** The email address of the user. */
177
177
  email: string;
178
- /** The devices which belong to the user's account. */
179
- devices: AccountDevice[];
180
178
  /** The mezon id in the user's account. */
181
179
  mezon_id: string;
182
180
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
@@ -208,135 +206,6 @@ export interface AccountRefresh_VarsEntry {
208
206
  value: string;
209
207
  }
210
208
 
211
- /** Send a Apple Sign In token to the server. Used with authenticate/link/unlink. */
212
- export interface AccountApple {
213
- /** The ID token received from Apple to validate. */
214
- token: string;
215
- /** Extra information that will be bundled in the session token. */
216
- vars: { [key: string]: string };
217
- }
218
-
219
- export interface AccountApple_VarsEntry {
220
- key: string;
221
- value: string;
222
- }
223
-
224
- /** Send a device to the server. Used with authenticate/link/unlink and user. */
225
- export interface AccountDevice {
226
- /** A device identifier. Should be obtained by a platform-specific device API. */
227
- id: string;
228
- /** Extra information that will be bundled in the session token. */
229
- vars: { [key: string]: string };
230
- }
231
-
232
- export interface AccountDevice_VarsEntry {
233
- key: string;
234
- value: string;
235
- }
236
-
237
- /** Send an email with password to the server. Used with authenticate/link/unlink. */
238
- export interface AccountEmail {
239
- /** A valid RFC-5322 email address. */
240
- email: string;
241
- /** A password for the user account. */
242
- password: string;
243
- /** Extra information that will be bundled in the session token. */
244
- vars: { [key: string]: string };
245
- }
246
-
247
- export interface AccountEmail_VarsEntry {
248
- key: string;
249
- value: string;
250
- }
251
-
252
- /** Send a Facebook token to the server. Used with authenticate/link/unlink. */
253
- export interface AccountFacebook {
254
- /** The OAuth token received from Facebook to access their profile API. */
255
- token: string;
256
- /** Extra information that will be bundled in the session token. */
257
- vars: { [key: string]: string };
258
- }
259
-
260
- export interface AccountFacebook_VarsEntry {
261
- key: string;
262
- value: string;
263
- }
264
-
265
- /** Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink. */
266
- export interface AccountFacebookInstantGame {
267
- /** The OAuth token received from a Facebook Instant Game that may be decoded with the Application Secret (must be available with the mezon configuration) */
268
- signed_player_info: string;
269
- /** Extra information that will be bundled in the session token. */
270
- vars: { [key: string]: string };
271
- }
272
-
273
- export interface AccountFacebookInstantGame_VarsEntry {
274
- key: string;
275
- value: string;
276
- }
277
-
278
- /** Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink. */
279
- export interface AccountGameCenter {
280
- /** Player ID (generated by GameCenter). */
281
- player_id: string;
282
- /** Bundle ID (generated by GameCenter). */
283
- bundle_id: string;
284
- /** Time since UNIX epoch when the signature was created. */
285
- timestamp_seconds: number;
286
- /** A random "NSString" used to compute the hash and keep it randomized. */
287
- salt: string;
288
- /** The verification signature data generated. */
289
- signature: string;
290
- /** The URL for the public encryption key. */
291
- public_key_url: string;
292
- /** Extra information that will be bundled in the session token. */
293
- vars: { [key: string]: string };
294
- }
295
-
296
- export interface AccountGameCenter_VarsEntry {
297
- key: string;
298
- value: string;
299
- }
300
-
301
- /** Send a Google token to the server. Used with authenticate/link/unlink. */
302
- export interface AccountGoogle {
303
- /** The OAuth token received from Google to access their profile API. */
304
- token: string;
305
- /** Extra information that will be bundled in the session token. */
306
- vars: { [key: string]: string };
307
- }
308
-
309
- export interface AccountGoogle_VarsEntry {
310
- key: string;
311
- value: string;
312
- }
313
-
314
- /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
315
- export interface AccountMezon {
316
- /** The OAuth token received from Google to access their profile API. */
317
- token: string;
318
- /** Extra information that will be bundled in the session token. */
319
- vars: { [key: string]: string };
320
- }
321
-
322
- export interface AccountMezon_VarsEntry {
323
- key: string;
324
- value: string;
325
- }
326
-
327
- /** Send a Steam token to the server. Used with authenticate/link/unlink. */
328
- export interface AccountSteam {
329
- /** The account token received from Steam to access their profile API. */
330
- token: string;
331
- /** Extra information that will be bundled in the session token. */
332
- vars: { [key: string]: string };
333
- }
334
-
335
- export interface AccountSteam_VarsEntry {
336
- key: string;
337
- value: string;
338
- }
339
-
340
209
  /** Add one or more friends to the current user. */
341
210
  export interface AddFriendsRequest {
342
211
  /** The account id of a user. */
@@ -382,138 +251,6 @@ export interface SessionLogoutRequest {
382
251
  platform: string;
383
252
  }
384
253
 
385
- /** Authenticate against the server with Apple Sign In. */
386
- export interface AuthenticateAppleRequest {
387
- /** The Apple account details. */
388
- account:
389
- | AccountApple
390
- | undefined;
391
- /** Register the account if the user does not already exist. */
392
- create:
393
- | boolean
394
- | undefined;
395
- /** Set the username on the account at register. Must be unique. */
396
- username: string;
397
- }
398
-
399
- /** Authenticate against the server with a device ID. */
400
- export interface AuthenticateDeviceRequest {
401
- /** The device account details. */
402
- account:
403
- | AccountDevice
404
- | undefined;
405
- /** Register the account if the user does not already exist. */
406
- create:
407
- | boolean
408
- | undefined;
409
- /** Set the username on the account at register. Must be unique. */
410
- username: string;
411
- }
412
-
413
- /** Authenticate against the server with email+password. */
414
- export interface AuthenticateEmailRequest {
415
- /** The email account details. */
416
- account:
417
- | AccountEmail
418
- | undefined;
419
- /** Register the account if the user does not already exist. */
420
- create:
421
- | boolean
422
- | undefined;
423
- /** Set the username on the account at register. Must be unique. */
424
- username: string;
425
- }
426
-
427
- /** Authenticate against the server with Facebook. */
428
- export interface AuthenticateFacebookRequest {
429
- /** The Facebook account details. */
430
- account:
431
- | AccountFacebook
432
- | undefined;
433
- /** Register the account if the user does not already exist. */
434
- create:
435
- | boolean
436
- | undefined;
437
- /** Set the username on the account at register. Must be unique. */
438
- username: string;
439
- /** Import Facebook friends for the user. */
440
- sync: boolean | undefined;
441
- }
442
-
443
- /** Authenticate against the server with Facebook Instant Game token. */
444
- export interface AuthenticateFacebookInstantGameRequest {
445
- /** The Facebook Instant Game account details. */
446
- account:
447
- | AccountFacebookInstantGame
448
- | undefined;
449
- /** Register the account if the user does not already exist. */
450
- create:
451
- | boolean
452
- | undefined;
453
- /** Set the username on the account at register. Must be unique. */
454
- username: string;
455
- }
456
-
457
- /** Authenticate against the server with Apple's Game Center. */
458
- export interface AuthenticateGameCenterRequest {
459
- /** The Game Center account details. */
460
- account:
461
- | AccountGameCenter
462
- | undefined;
463
- /** Register the account if the user does not already exist. */
464
- create:
465
- | boolean
466
- | undefined;
467
- /** Set the username on the account at register. Must be unique. */
468
- username: string;
469
- }
470
-
471
- /** Authenticate against the server with Google. */
472
- export interface AuthenticateGoogleRequest {
473
- /** The Google account details. */
474
- account:
475
- | AccountGoogle
476
- | undefined;
477
- /** Register the account if the user does not already exist. */
478
- create:
479
- | boolean
480
- | undefined;
481
- /** Set the username on the account at register. Must be unique. */
482
- username: string;
483
- }
484
-
485
- /** Authenticate against the server with Mezon. */
486
- export interface AuthenticateMezonRequest {
487
- /** The Mezon account details. */
488
- account:
489
- | AccountMezon
490
- | undefined;
491
- /** Register the account if the user does not already exist. */
492
- create:
493
- | boolean
494
- | undefined;
495
- /** Set the username on the account at register. Must be unique. */
496
- username: string;
497
- /** Whether to enable "Remember Me" for extended session duration. */
498
- is_remember: boolean | undefined;
499
- }
500
-
501
- /** Authenticate against the server with Steam. */
502
- export interface AuthenticateSteamRequest {
503
- /** The Steam account details. */
504
- account:
505
- | AccountSteam
506
- | undefined;
507
- /** Register the account if the user does not already exist. */
508
- create:
509
- | boolean
510
- | undefined;
511
- /** Set the username on the account at register. Must be unique. */
512
- username: string;
513
- /** Import Steam friends for the user. */
514
- sync: boolean | undefined;
515
- }
516
-
517
254
  /** Ban users from a group. */
518
255
  export interface BanGroupUsersRequest {
519
256
  /** The group to ban users from. */
@@ -1099,26 +836,6 @@ export interface ClanUserList_ClanUser {
1099
836
  clan_id: string;
1100
837
  }
1101
838
 
1102
- /** Import Facebook friends into the current user's account. */
1103
- export interface ImportFacebookFriendsRequest {
1104
- /** The Facebook account details. */
1105
- account:
1106
- | AccountFacebook
1107
- | undefined;
1108
- /** Reset the current user's friends list. */
1109
- reset: boolean | undefined;
1110
- }
1111
-
1112
- /** Import Facebook friends into the current user's account. */
1113
- export interface ImportSteamFriendsRequest {
1114
- /** The Facebook account details. */
1115
- account:
1116
- | AccountSteam
1117
- | undefined;
1118
- /** Reset the current user's friends list. */
1119
- reset: boolean | undefined;
1120
- }
1121
-
1122
839
  export interface RegistFcmDeviceTokenRequest {
1123
840
  /** The token */
1124
841
  token: string;
@@ -1137,26 +854,6 @@ export interface RegistFcmDeviceTokenResponse {
1137
854
  platform: string;
1138
855
  }
1139
856
 
1140
- /** Link Facebook to the current user's account. */
1141
- export interface LinkFacebookRequest {
1142
- /** The Facebook account details. */
1143
- account:
1144
- | AccountFacebook
1145
- | undefined;
1146
- /** Import Facebook friends for the user. */
1147
- sync: boolean | undefined;
1148
- }
1149
-
1150
- /** Link Steam to the current user's account. */
1151
- export interface LinkSteamRequest {
1152
- /** The Facebook account details. */
1153
- account:
1154
- | AccountSteam
1155
- | undefined;
1156
- /** Import Steam friends for the user. */
1157
- sync: boolean | undefined;
1158
- }
1159
-
1160
857
  /** List a channel's message history. */
1161
858
  export interface ListChannelMessagesRequest {
1162
859
  /** the clan id */
@@ -1763,6 +1460,8 @@ export interface InviteUserRes {
1763
1460
  | undefined;
1764
1461
  /** */
1765
1462
  channel_desc: ChannelDescription | undefined;
1463
+ clan_logo: string;
1464
+ member_count: number;
1766
1465
  }
1767
1466
 
1768
1467
  /** Add link invite users to. */
@@ -3027,29 +2726,6 @@ export interface AppClan {
3027
2726
  clan_id: string;
3028
2727
  }
3029
2728
 
3030
- /** Authenticate against the server with a device ID. */
3031
- export interface AuthenticateRequest {
3032
- /** The App account details. */
3033
- account: AccountApp | undefined;
3034
- }
3035
-
3036
- /** Send a app token to the server. Used with authenticate/link/unlink. */
3037
- export interface AccountApp {
3038
- /** The app id */
3039
- appid: string;
3040
- /** the app name */
3041
- appname: string;
3042
- /** The account token when create apps to access their profile API. */
3043
- token: string;
3044
- /** Extra information that will be bundled in the session token. */
3045
- vars: { [key: string]: string };
3046
- }
3047
-
3048
- export interface AccountApp_VarsEntry {
3049
- key: string;
3050
- value: string;
3051
- }
3052
-
3053
2729
  /** Delete channel messages by timestamp or/and ids. */
3054
2730
  export interface DeleteChannelMessagesRequest {
3055
2731
  /** Timestamp before which messages will be deleted. */
@@ -3960,23 +3636,10 @@ export interface GenerateMeetTokenRequest {
3960
3636
  room_name: string;
3961
3637
  }
3962
3638
 
3963
- export interface GenerateMeetTokenExternalRequest {
3964
- body: { [key: string]: any } | undefined;
3965
- token: string;
3966
- display_name: string;
3967
- is_guest: boolean;
3968
- }
3969
-
3970
3639
  export interface GenerateMeetTokenResponse {
3971
3640
  token: string;
3972
3641
  }
3973
3642
 
3974
- export interface GenerateMeetTokenExternalResponse {
3975
- token: string;
3976
- guest_user_id: string;
3977
- guest_access_token: string;
3978
- }
3979
-
3980
3643
  export interface GenerateMezonMeetResponse {
3981
3644
  meet_id: string;
3982
3645
  room_name: string;
@@ -4063,11 +3726,6 @@ export interface GenerateHashChannelAppsResponse {
4063
3726
  web_app_data: string;
4064
3727
  }
4065
3728
 
4066
- export interface GetMezonAccountRequest {
4067
- secret: string;
4068
- email: string;
4069
- }
4070
-
4071
3729
  export interface Message2InboxRequest {
4072
3730
  message_id: string;
4073
3731
  channel_id: string;
@@ -4080,12 +3738,39 @@ export interface Message2InboxRequest {
4080
3738
  references: string;
4081
3739
  }
4082
3740
 
3741
+ /** Send an email with password to the server. Used with authenticate/link/unlink. */
3742
+ export interface AccountEmail {
3743
+ /** A valid RFC-5322 email address. */
3744
+ email: string;
3745
+ /** A password for the user account. */
3746
+ password: string;
3747
+ /** Extra information that will be bundled in the session token. */
3748
+ vars: { [key: string]: string };
3749
+ }
3750
+
3751
+ export interface AccountEmail_VarsEntry {
3752
+ key: string;
3753
+ value: string;
3754
+ }
3755
+
3756
+ /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
3757
+ export interface AccountMezon {
3758
+ /** The OAuth token received from Google to access their profile API. */
3759
+ token: string;
3760
+ /** Extra information that will be bundled in the session token. */
3761
+ vars: { [key: string]: string };
3762
+ }
3763
+
3764
+ export interface AccountMezon_VarsEntry {
3765
+ key: string;
3766
+ value: string;
3767
+ }
3768
+
4083
3769
  function createBaseAccount(): Account {
4084
3770
  return {
4085
3771
  user: undefined,
4086
3772
  wallet: "",
4087
3773
  email: "",
4088
- devices: [],
4089
3774
  mezon_id: "",
4090
3775
  verify_time: undefined,
4091
3776
  disable_time: undefined,
@@ -4106,26 +3791,23 @@ export const Account = {
4106
3791
  if (message.email !== "") {
4107
3792
  writer.uint32(26).string(message.email);
4108
3793
  }
4109
- for (const v of message.devices) {
4110
- AccountDevice.encode(v!, writer.uint32(34).fork()).ldelim();
4111
- }
4112
3794
  if (message.mezon_id !== "") {
4113
- writer.uint32(42).string(message.mezon_id);
3795
+ writer.uint32(34).string(message.mezon_id);
4114
3796
  }
4115
3797
  if (message.verify_time !== undefined) {
4116
- Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(50).fork()).ldelim();
3798
+ Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(42).fork()).ldelim();
4117
3799
  }
4118
3800
  if (message.disable_time !== undefined) {
4119
- Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(58).fork()).ldelim();
3801
+ Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(50).fork()).ldelim();
4120
3802
  }
4121
3803
  if (message.logo !== "") {
4122
- writer.uint32(66).string(message.logo);
3804
+ writer.uint32(58).string(message.logo);
4123
3805
  }
4124
3806
  if (message.splash_screen !== "") {
4125
- writer.uint32(74).string(message.splash_screen);
3807
+ writer.uint32(66).string(message.splash_screen);
4126
3808
  }
4127
3809
  if (message.encrypt_private_key !== "") {
4128
- writer.uint32(82).string(message.encrypt_private_key);
3810
+ writer.uint32(74).string(message.encrypt_private_key);
4129
3811
  }
4130
3812
  return writer;
4131
3813
  },
@@ -4163,48 +3845,41 @@ export const Account = {
4163
3845
  break;
4164
3846
  }
4165
3847
 
4166
- message.devices.push(AccountDevice.decode(reader, reader.uint32()));
3848
+ message.mezon_id = reader.string();
4167
3849
  continue;
4168
3850
  case 5:
4169
3851
  if (tag !== 42) {
4170
3852
  break;
4171
3853
  }
4172
3854
 
4173
- message.mezon_id = reader.string();
3855
+ message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4174
3856
  continue;
4175
3857
  case 6:
4176
3858
  if (tag !== 50) {
4177
3859
  break;
4178
3860
  }
4179
3861
 
4180
- message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3862
+ message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4181
3863
  continue;
4182
3864
  case 7:
4183
3865
  if (tag !== 58) {
4184
3866
  break;
4185
3867
  }
4186
3868
 
4187
- message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3869
+ message.logo = reader.string();
4188
3870
  continue;
4189
3871
  case 8:
4190
3872
  if (tag !== 66) {
4191
3873
  break;
4192
3874
  }
4193
3875
 
4194
- message.logo = reader.string();
3876
+ message.splash_screen = reader.string();
4195
3877
  continue;
4196
3878
  case 9:
4197
3879
  if (tag !== 74) {
4198
3880
  break;
4199
3881
  }
4200
3882
 
4201
- message.splash_screen = reader.string();
4202
- continue;
4203
- case 10:
4204
- if (tag !== 82) {
4205
- break;
4206
- }
4207
-
4208
3883
  message.encrypt_private_key = reader.string();
4209
3884
  continue;
4210
3885
  }
@@ -4221,9 +3896,6 @@ export const Account = {
4221
3896
  user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
4222
3897
  wallet: isSet(object.wallet) ? globalThis.String(object.wallet) : "",
4223
3898
  email: isSet(object.email) ? globalThis.String(object.email) : "",
4224
- devices: globalThis.Array.isArray(object?.devices)
4225
- ? object.devices.map((e: any) => AccountDevice.fromJSON(e))
4226
- : [],
4227
3899
  mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
4228
3900
  verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
4229
3901
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
@@ -4244,9 +3916,6 @@ export const Account = {
4244
3916
  if (message.email !== "") {
4245
3917
  obj.email = message.email;
4246
3918
  }
4247
- if (message.devices?.length) {
4248
- obj.devices = message.devices.map((e) => AccountDevice.toJSON(e));
4249
- }
4250
3919
  if (message.mezon_id !== "") {
4251
3920
  obj.mezon_id = message.mezon_id;
4252
3921
  }
@@ -4276,7 +3945,6 @@ export const Account = {
4276
3945
  message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
4277
3946
  message.wallet = object.wallet ?? "";
4278
3947
  message.email = object.email ?? "";
4279
- message.devices = object.devices?.map((e) => AccountDevice.fromPartial(e)) || [];
4280
3948
  message.mezon_id = object.mezon_id ?? "";
4281
3949
  message.verify_time = object.verify_time ?? undefined;
4282
3950
  message.disable_time = object.disable_time ?? undefined;
@@ -4454,25 +4122,25 @@ export const AccountRefresh_VarsEntry = {
4454
4122
  },
4455
4123
  };
4456
4124
 
4457
- function createBaseAccountApple(): AccountApple {
4458
- return { token: "", vars: {} };
4125
+ function createBaseAddFriendsRequest(): AddFriendsRequest {
4126
+ return { ids: [], usernames: [] };
4459
4127
  }
4460
4128
 
4461
- export const AccountApple = {
4462
- encode(message: AccountApple, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4463
- if (message.token !== "") {
4464
- writer.uint32(10).string(message.token);
4129
+ export const AddFriendsRequest = {
4130
+ encode(message: AddFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4131
+ for (const v of message.ids) {
4132
+ writer.uint32(10).string(v!);
4133
+ }
4134
+ for (const v of message.usernames) {
4135
+ writer.uint32(18).string(v!);
4465
4136
  }
4466
- Object.entries(message.vars).forEach(([key, value]) => {
4467
- AccountApple_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4468
- });
4469
4137
  return writer;
4470
4138
  },
4471
4139
 
4472
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountApple {
4140
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddFriendsRequest {
4473
4141
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4474
4142
  let end = length === undefined ? reader.len : reader.pos + length;
4475
- const message = createBaseAccountApple();
4143
+ const message = createBaseAddFriendsRequest();
4476
4144
  while (reader.pos < end) {
4477
4145
  const tag = reader.uint32();
4478
4146
  switch (tag >>> 3) {
@@ -4481,17 +4149,14 @@ export const AccountApple = {
4481
4149
  break;
4482
4150
  }
4483
4151
 
4484
- message.token = reader.string();
4152
+ message.ids.push(reader.string());
4485
4153
  continue;
4486
4154
  case 2:
4487
4155
  if (tag !== 18) {
4488
4156
  break;
4489
4157
  }
4490
4158
 
4491
- const entry2 = AccountApple_VarsEntry.decode(reader, reader.uint32());
4492
- if (entry2.value !== undefined) {
4493
- message.vars[entry2.key] = entry2.value;
4494
- }
4159
+ message.usernames.push(reader.string());
4495
4160
  continue;
4496
4161
  }
4497
4162
  if ((tag & 7) === 4 || tag === 0) {
@@ -4502,70 +4167,56 @@ export const AccountApple = {
4502
4167
  return message;
4503
4168
  },
4504
4169
 
4505
- fromJSON(object: any): AccountApple {
4170
+ fromJSON(object: any): AddFriendsRequest {
4506
4171
  return {
4507
- token: isSet(object.token) ? globalThis.String(object.token) : "",
4508
- vars: isObject(object.vars)
4509
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4510
- acc[key] = String(value);
4511
- return acc;
4512
- }, {})
4513
- : {},
4172
+ ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
4173
+ usernames: globalThis.Array.isArray(object?.usernames)
4174
+ ? object.usernames.map((e: any) => globalThis.String(e))
4175
+ : [],
4514
4176
  };
4515
4177
  },
4516
4178
 
4517
- toJSON(message: AccountApple): unknown {
4179
+ toJSON(message: AddFriendsRequest): unknown {
4518
4180
  const obj: any = {};
4519
- if (message.token !== "") {
4520
- obj.token = message.token;
4181
+ if (message.ids?.length) {
4182
+ obj.ids = message.ids;
4521
4183
  }
4522
- if (message.vars) {
4523
- const entries = Object.entries(message.vars);
4524
- if (entries.length > 0) {
4525
- obj.vars = {};
4526
- entries.forEach(([k, v]) => {
4527
- obj.vars[k] = v;
4528
- });
4529
- }
4184
+ if (message.usernames?.length) {
4185
+ obj.usernames = message.usernames;
4530
4186
  }
4531
4187
  return obj;
4532
4188
  },
4533
4189
 
4534
- create<I extends Exact<DeepPartial<AccountApple>, I>>(base?: I): AccountApple {
4535
- return AccountApple.fromPartial(base ?? ({} as any));
4190
+ create<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(base?: I): AddFriendsRequest {
4191
+ return AddFriendsRequest.fromPartial(base ?? ({} as any));
4536
4192
  },
4537
- fromPartial<I extends Exact<DeepPartial<AccountApple>, I>>(object: I): AccountApple {
4538
- const message = createBaseAccountApple();
4539
- message.token = object.token ?? "";
4540
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4541
- if (value !== undefined) {
4542
- acc[key] = globalThis.String(value);
4543
- }
4544
- return acc;
4545
- }, {});
4193
+ fromPartial<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(object: I): AddFriendsRequest {
4194
+ const message = createBaseAddFriendsRequest();
4195
+ message.ids = object.ids?.map((e) => e) || [];
4196
+ message.usernames = object.usernames?.map((e) => e) || [];
4546
4197
  return message;
4547
4198
  },
4548
4199
  };
4549
4200
 
4550
- function createBaseAccountApple_VarsEntry(): AccountApple_VarsEntry {
4551
- return { key: "", value: "" };
4201
+ function createBaseAddGroupUsersRequest(): AddGroupUsersRequest {
4202
+ return { group_id: "", user_ids: [] };
4552
4203
  }
4553
4204
 
4554
- export const AccountApple_VarsEntry = {
4555
- encode(message: AccountApple_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4556
- if (message.key !== "") {
4557
- writer.uint32(10).string(message.key);
4205
+ export const AddGroupUsersRequest = {
4206
+ encode(message: AddGroupUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4207
+ if (message.group_id !== "") {
4208
+ writer.uint32(10).string(message.group_id);
4558
4209
  }
4559
- if (message.value !== "") {
4560
- writer.uint32(18).string(message.value);
4210
+ for (const v of message.user_ids) {
4211
+ writer.uint32(18).string(v!);
4561
4212
  }
4562
4213
  return writer;
4563
4214
  },
4564
4215
 
4565
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountApple_VarsEntry {
4216
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddGroupUsersRequest {
4566
4217
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4567
4218
  let end = length === undefined ? reader.len : reader.pos + length;
4568
- const message = createBaseAccountApple_VarsEntry();
4219
+ const message = createBaseAddGroupUsersRequest();
4569
4220
  while (reader.pos < end) {
4570
4221
  const tag = reader.uint32();
4571
4222
  switch (tag >>> 3) {
@@ -4574,14 +4225,14 @@ export const AccountApple_VarsEntry = {
4574
4225
  break;
4575
4226
  }
4576
4227
 
4577
- message.key = reader.string();
4228
+ message.group_id = reader.string();
4578
4229
  continue;
4579
4230
  case 2:
4580
4231
  if (tag !== 18) {
4581
4232
  break;
4582
4233
  }
4583
4234
 
4584
- message.value = reader.string();
4235
+ message.user_ids.push(reader.string());
4585
4236
  continue;
4586
4237
  }
4587
4238
  if ((tag & 7) === 4 || tag === 0) {
@@ -4592,54 +4243,57 @@ export const AccountApple_VarsEntry = {
4592
4243
  return message;
4593
4244
  },
4594
4245
 
4595
- fromJSON(object: any): AccountApple_VarsEntry {
4246
+ fromJSON(object: any): AddGroupUsersRequest {
4596
4247
  return {
4597
- key: isSet(object.key) ? globalThis.String(object.key) : "",
4598
- value: isSet(object.value) ? globalThis.String(object.value) : "",
4248
+ group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "",
4249
+ user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
4599
4250
  };
4600
4251
  },
4601
4252
 
4602
- toJSON(message: AccountApple_VarsEntry): unknown {
4253
+ toJSON(message: AddGroupUsersRequest): unknown {
4603
4254
  const obj: any = {};
4604
- if (message.key !== "") {
4605
- obj.key = message.key;
4255
+ if (message.group_id !== "") {
4256
+ obj.group_id = message.group_id;
4606
4257
  }
4607
- if (message.value !== "") {
4608
- obj.value = message.value;
4258
+ if (message.user_ids?.length) {
4259
+ obj.user_ids = message.user_ids;
4609
4260
  }
4610
4261
  return obj;
4611
4262
  },
4612
4263
 
4613
- create<I extends Exact<DeepPartial<AccountApple_VarsEntry>, I>>(base?: I): AccountApple_VarsEntry {
4614
- return AccountApple_VarsEntry.fromPartial(base ?? ({} as any));
4264
+ create<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(base?: I): AddGroupUsersRequest {
4265
+ return AddGroupUsersRequest.fromPartial(base ?? ({} as any));
4615
4266
  },
4616
- fromPartial<I extends Exact<DeepPartial<AccountApple_VarsEntry>, I>>(object: I): AccountApple_VarsEntry {
4617
- const message = createBaseAccountApple_VarsEntry();
4618
- message.key = object.key ?? "";
4619
- message.value = object.value ?? "";
4267
+ fromPartial<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(object: I): AddGroupUsersRequest {
4268
+ const message = createBaseAddGroupUsersRequest();
4269
+ message.group_id = object.group_id ?? "";
4270
+ message.user_ids = object.user_ids?.map((e) => e) || [];
4620
4271
  return message;
4621
4272
  },
4622
4273
  };
4623
4274
 
4624
- function createBaseAccountDevice(): AccountDevice {
4625
- return { id: "", vars: {} };
4275
+ function createBaseSessionRefreshRequest(): SessionRefreshRequest {
4276
+ return { token: "", vars: {}, is_remember: undefined };
4626
4277
  }
4627
4278
 
4628
- export const AccountDevice = {
4629
- encode(message: AccountDevice, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4630
- if (message.id !== "") {
4631
- writer.uint32(10).string(message.id);
4279
+ export const SessionRefreshRequest = {
4280
+ encode(message: SessionRefreshRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4281
+ if (message.token !== "") {
4282
+ writer.uint32(10).string(message.token);
4632
4283
  }
4633
4284
  Object.entries(message.vars).forEach(([key, value]) => {
4634
- AccountDevice_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4285
+ SessionRefreshRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4635
4286
  });
4287
+ if (message.is_remember !== undefined) {
4288
+ BoolValue.encode({ value: message.is_remember! }, writer.uint32(26).fork()).ldelim();
4289
+ }
4636
4290
  return writer;
4637
4291
  },
4638
4292
 
4639
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice {
4293
+ decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest {
4640
4294
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4641
4295
  let end = length === undefined ? reader.len : reader.pos + length;
4642
- const message = createBaseAccountDevice();
4296
+ const message = createBaseSessionRefreshRequest();
4643
4297
  while (reader.pos < end) {
4644
4298
  const tag = reader.uint32();
4645
4299
  switch (tag >>> 3) {
@@ -4648,18 +4302,25 @@ export const AccountDevice = {
4648
4302
  break;
4649
4303
  }
4650
4304
 
4651
- message.id = reader.string();
4305
+ message.token = reader.string();
4652
4306
  continue;
4653
4307
  case 2:
4654
4308
  if (tag !== 18) {
4655
4309
  break;
4656
4310
  }
4657
4311
 
4658
- const entry2 = AccountDevice_VarsEntry.decode(reader, reader.uint32());
4312
+ const entry2 = SessionRefreshRequest_VarsEntry.decode(reader, reader.uint32());
4659
4313
  if (entry2.value !== undefined) {
4660
4314
  message.vars[entry2.key] = entry2.value;
4661
4315
  }
4662
4316
  continue;
4317
+ case 3:
4318
+ if (tag !== 26) {
4319
+ break;
4320
+ }
4321
+
4322
+ message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
4323
+ continue;
4663
4324
  }
4664
4325
  if ((tag & 7) === 4 || tag === 0) {
4665
4326
  break;
@@ -4669,22 +4330,23 @@ export const AccountDevice = {
4669
4330
  return message;
4670
4331
  },
4671
4332
 
4672
- fromJSON(object: any): AccountDevice {
4333
+ fromJSON(object: any): SessionRefreshRequest {
4673
4334
  return {
4674
- id: isSet(object.id) ? globalThis.String(object.id) : "",
4335
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
4675
4336
  vars: isObject(object.vars)
4676
4337
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4677
4338
  acc[key] = String(value);
4678
4339
  return acc;
4679
4340
  }, {})
4680
4341
  : {},
4342
+ is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
4681
4343
  };
4682
4344
  },
4683
4345
 
4684
- toJSON(message: AccountDevice): unknown {
4346
+ toJSON(message: SessionRefreshRequest): unknown {
4685
4347
  const obj: any = {};
4686
- if (message.id !== "") {
4687
- obj.id = message.id;
4348
+ if (message.token !== "") {
4349
+ obj.token = message.token;
4688
4350
  }
4689
4351
  if (message.vars) {
4690
4352
  const entries = Object.entries(message.vars);
@@ -4695,31 +4357,35 @@ export const AccountDevice = {
4695
4357
  });
4696
4358
  }
4697
4359
  }
4360
+ if (message.is_remember !== undefined) {
4361
+ obj.is_remember = message.is_remember;
4362
+ }
4698
4363
  return obj;
4699
4364
  },
4700
4365
 
4701
- create<I extends Exact<DeepPartial<AccountDevice>, I>>(base?: I): AccountDevice {
4702
- return AccountDevice.fromPartial(base ?? ({} as any));
4366
+ create<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(base?: I): SessionRefreshRequest {
4367
+ return SessionRefreshRequest.fromPartial(base ?? ({} as any));
4703
4368
  },
4704
- fromPartial<I extends Exact<DeepPartial<AccountDevice>, I>>(object: I): AccountDevice {
4705
- const message = createBaseAccountDevice();
4706
- message.id = object.id ?? "";
4369
+ fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(object: I): SessionRefreshRequest {
4370
+ const message = createBaseSessionRefreshRequest();
4371
+ message.token = object.token ?? "";
4707
4372
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4708
4373
  if (value !== undefined) {
4709
4374
  acc[key] = globalThis.String(value);
4710
4375
  }
4711
4376
  return acc;
4712
4377
  }, {});
4378
+ message.is_remember = object.is_remember ?? undefined;
4713
4379
  return message;
4714
4380
  },
4715
4381
  };
4716
4382
 
4717
- function createBaseAccountDevice_VarsEntry(): AccountDevice_VarsEntry {
4383
+ function createBaseSessionRefreshRequest_VarsEntry(): SessionRefreshRequest_VarsEntry {
4718
4384
  return { key: "", value: "" };
4719
4385
  }
4720
4386
 
4721
- export const AccountDevice_VarsEntry = {
4722
- encode(message: AccountDevice_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4387
+ export const SessionRefreshRequest_VarsEntry = {
4388
+ encode(message: SessionRefreshRequest_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4723
4389
  if (message.key !== "") {
4724
4390
  writer.uint32(10).string(message.key);
4725
4391
  }
@@ -4729,10 +4395,10 @@ export const AccountDevice_VarsEntry = {
4729
4395
  return writer;
4730
4396
  },
4731
4397
 
4732
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice_VarsEntry {
4398
+ decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest_VarsEntry {
4733
4399
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4734
4400
  let end = length === undefined ? reader.len : reader.pos + length;
4735
- const message = createBaseAccountDevice_VarsEntry();
4401
+ const message = createBaseSessionRefreshRequest_VarsEntry();
4736
4402
  while (reader.pos < end) {
4737
4403
  const tag = reader.uint32();
4738
4404
  switch (tag >>> 3) {
@@ -4759,2434 +4425,65 @@ export const AccountDevice_VarsEntry = {
4759
4425
  return message;
4760
4426
  },
4761
4427
 
4762
- fromJSON(object: any): AccountDevice_VarsEntry {
4763
- return {
4764
- key: isSet(object.key) ? globalThis.String(object.key) : "",
4765
- value: isSet(object.value) ? globalThis.String(object.value) : "",
4766
- };
4767
- },
4768
-
4769
- toJSON(message: AccountDevice_VarsEntry): unknown {
4770
- const obj: any = {};
4771
- if (message.key !== "") {
4772
- obj.key = message.key;
4773
- }
4774
- if (message.value !== "") {
4775
- obj.value = message.value;
4776
- }
4777
- return obj;
4778
- },
4779
-
4780
- create<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(base?: I): AccountDevice_VarsEntry {
4781
- return AccountDevice_VarsEntry.fromPartial(base ?? ({} as any));
4782
- },
4783
- fromPartial<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(object: I): AccountDevice_VarsEntry {
4784
- const message = createBaseAccountDevice_VarsEntry();
4785
- message.key = object.key ?? "";
4786
- message.value = object.value ?? "";
4787
- return message;
4788
- },
4789
- };
4790
-
4791
- function createBaseAccountEmail(): AccountEmail {
4792
- return { email: "", password: "", vars: {} };
4793
- }
4794
-
4795
- export const AccountEmail = {
4796
- encode(message: AccountEmail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4797
- if (message.email !== "") {
4798
- writer.uint32(10).string(message.email);
4799
- }
4800
- if (message.password !== "") {
4801
- writer.uint32(18).string(message.password);
4802
- }
4803
- Object.entries(message.vars).forEach(([key, value]) => {
4804
- AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
4805
- });
4806
- return writer;
4807
- },
4808
-
4809
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail {
4810
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4811
- let end = length === undefined ? reader.len : reader.pos + length;
4812
- const message = createBaseAccountEmail();
4813
- while (reader.pos < end) {
4814
- const tag = reader.uint32();
4815
- switch (tag >>> 3) {
4816
- case 1:
4817
- if (tag !== 10) {
4818
- break;
4819
- }
4820
-
4821
- message.email = reader.string();
4822
- continue;
4823
- case 2:
4824
- if (tag !== 18) {
4825
- break;
4826
- }
4827
-
4828
- message.password = reader.string();
4829
- continue;
4830
- case 3:
4831
- if (tag !== 26) {
4832
- break;
4833
- }
4834
-
4835
- const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
4836
- if (entry3.value !== undefined) {
4837
- message.vars[entry3.key] = entry3.value;
4838
- }
4839
- continue;
4840
- }
4841
- if ((tag & 7) === 4 || tag === 0) {
4842
- break;
4843
- }
4844
- reader.skipType(tag & 7);
4845
- }
4846
- return message;
4847
- },
4848
-
4849
- fromJSON(object: any): AccountEmail {
4850
- return {
4851
- email: isSet(object.email) ? globalThis.String(object.email) : "",
4852
- password: isSet(object.password) ? globalThis.String(object.password) : "",
4853
- vars: isObject(object.vars)
4854
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4855
- acc[key] = String(value);
4856
- return acc;
4857
- }, {})
4858
- : {},
4859
- };
4860
- },
4861
-
4862
- toJSON(message: AccountEmail): unknown {
4863
- const obj: any = {};
4864
- if (message.email !== "") {
4865
- obj.email = message.email;
4866
- }
4867
- if (message.password !== "") {
4868
- obj.password = message.password;
4869
- }
4870
- if (message.vars) {
4871
- const entries = Object.entries(message.vars);
4872
- if (entries.length > 0) {
4873
- obj.vars = {};
4874
- entries.forEach(([k, v]) => {
4875
- obj.vars[k] = v;
4876
- });
4877
- }
4878
- }
4879
- return obj;
4880
- },
4881
-
4882
- create<I extends Exact<DeepPartial<AccountEmail>, I>>(base?: I): AccountEmail {
4883
- return AccountEmail.fromPartial(base ?? ({} as any));
4884
- },
4885
- fromPartial<I extends Exact<DeepPartial<AccountEmail>, I>>(object: I): AccountEmail {
4886
- const message = createBaseAccountEmail();
4887
- message.email = object.email ?? "";
4888
- message.password = object.password ?? "";
4889
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4890
- if (value !== undefined) {
4891
- acc[key] = globalThis.String(value);
4892
- }
4893
- return acc;
4894
- }, {});
4895
- return message;
4896
- },
4897
- };
4898
-
4899
- function createBaseAccountEmail_VarsEntry(): AccountEmail_VarsEntry {
4900
- return { key: "", value: "" };
4901
- }
4902
-
4903
- export const AccountEmail_VarsEntry = {
4904
- encode(message: AccountEmail_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4905
- if (message.key !== "") {
4906
- writer.uint32(10).string(message.key);
4907
- }
4908
- if (message.value !== "") {
4909
- writer.uint32(18).string(message.value);
4910
- }
4911
- return writer;
4912
- },
4913
-
4914
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail_VarsEntry {
4915
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4916
- let end = length === undefined ? reader.len : reader.pos + length;
4917
- const message = createBaseAccountEmail_VarsEntry();
4918
- while (reader.pos < end) {
4919
- const tag = reader.uint32();
4920
- switch (tag >>> 3) {
4921
- case 1:
4922
- if (tag !== 10) {
4923
- break;
4924
- }
4925
-
4926
- message.key = reader.string();
4927
- continue;
4928
- case 2:
4929
- if (tag !== 18) {
4930
- break;
4931
- }
4932
-
4933
- message.value = reader.string();
4934
- continue;
4935
- }
4936
- if ((tag & 7) === 4 || tag === 0) {
4937
- break;
4938
- }
4939
- reader.skipType(tag & 7);
4940
- }
4941
- return message;
4942
- },
4943
-
4944
- fromJSON(object: any): AccountEmail_VarsEntry {
4945
- return {
4946
- key: isSet(object.key) ? globalThis.String(object.key) : "",
4947
- value: isSet(object.value) ? globalThis.String(object.value) : "",
4948
- };
4949
- },
4950
-
4951
- toJSON(message: AccountEmail_VarsEntry): unknown {
4952
- const obj: any = {};
4953
- if (message.key !== "") {
4954
- obj.key = message.key;
4955
- }
4956
- if (message.value !== "") {
4957
- obj.value = message.value;
4958
- }
4959
- return obj;
4960
- },
4961
-
4962
- create<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(base?: I): AccountEmail_VarsEntry {
4963
- return AccountEmail_VarsEntry.fromPartial(base ?? ({} as any));
4964
- },
4965
- fromPartial<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(object: I): AccountEmail_VarsEntry {
4966
- const message = createBaseAccountEmail_VarsEntry();
4967
- message.key = object.key ?? "";
4968
- message.value = object.value ?? "";
4969
- return message;
4970
- },
4971
- };
4972
-
4973
- function createBaseAccountFacebook(): AccountFacebook {
4974
- return { token: "", vars: {} };
4975
- }
4976
-
4977
- export const AccountFacebook = {
4978
- encode(message: AccountFacebook, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4979
- if (message.token !== "") {
4980
- writer.uint32(10).string(message.token);
4981
- }
4982
- Object.entries(message.vars).forEach(([key, value]) => {
4983
- AccountFacebook_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4984
- });
4985
- return writer;
4986
- },
4987
-
4988
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook {
4989
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4990
- let end = length === undefined ? reader.len : reader.pos + length;
4991
- const message = createBaseAccountFacebook();
4992
- while (reader.pos < end) {
4993
- const tag = reader.uint32();
4994
- switch (tag >>> 3) {
4995
- case 1:
4996
- if (tag !== 10) {
4997
- break;
4998
- }
4999
-
5000
- message.token = reader.string();
5001
- continue;
5002
- case 2:
5003
- if (tag !== 18) {
5004
- break;
5005
- }
5006
-
5007
- const entry2 = AccountFacebook_VarsEntry.decode(reader, reader.uint32());
5008
- if (entry2.value !== undefined) {
5009
- message.vars[entry2.key] = entry2.value;
5010
- }
5011
- continue;
5012
- }
5013
- if ((tag & 7) === 4 || tag === 0) {
5014
- break;
5015
- }
5016
- reader.skipType(tag & 7);
5017
- }
5018
- return message;
5019
- },
5020
-
5021
- fromJSON(object: any): AccountFacebook {
5022
- return {
5023
- token: isSet(object.token) ? globalThis.String(object.token) : "",
5024
- vars: isObject(object.vars)
5025
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5026
- acc[key] = String(value);
5027
- return acc;
5028
- }, {})
5029
- : {},
5030
- };
5031
- },
5032
-
5033
- toJSON(message: AccountFacebook): unknown {
5034
- const obj: any = {};
5035
- if (message.token !== "") {
5036
- obj.token = message.token;
5037
- }
5038
- if (message.vars) {
5039
- const entries = Object.entries(message.vars);
5040
- if (entries.length > 0) {
5041
- obj.vars = {};
5042
- entries.forEach(([k, v]) => {
5043
- obj.vars[k] = v;
5044
- });
5045
- }
5046
- }
5047
- return obj;
5048
- },
5049
-
5050
- create<I extends Exact<DeepPartial<AccountFacebook>, I>>(base?: I): AccountFacebook {
5051
- return AccountFacebook.fromPartial(base ?? ({} as any));
5052
- },
5053
- fromPartial<I extends Exact<DeepPartial<AccountFacebook>, I>>(object: I): AccountFacebook {
5054
- const message = createBaseAccountFacebook();
5055
- message.token = object.token ?? "";
5056
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5057
- if (value !== undefined) {
5058
- acc[key] = globalThis.String(value);
5059
- }
5060
- return acc;
5061
- }, {});
5062
- return message;
5063
- },
5064
- };
5065
-
5066
- function createBaseAccountFacebook_VarsEntry(): AccountFacebook_VarsEntry {
5067
- return { key: "", value: "" };
5068
- }
5069
-
5070
- export const AccountFacebook_VarsEntry = {
5071
- encode(message: AccountFacebook_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5072
- if (message.key !== "") {
5073
- writer.uint32(10).string(message.key);
5074
- }
5075
- if (message.value !== "") {
5076
- writer.uint32(18).string(message.value);
5077
- }
5078
- return writer;
5079
- },
5080
-
5081
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook_VarsEntry {
5082
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5083
- let end = length === undefined ? reader.len : reader.pos + length;
5084
- const message = createBaseAccountFacebook_VarsEntry();
5085
- while (reader.pos < end) {
5086
- const tag = reader.uint32();
5087
- switch (tag >>> 3) {
5088
- case 1:
5089
- if (tag !== 10) {
5090
- break;
5091
- }
5092
-
5093
- message.key = reader.string();
5094
- continue;
5095
- case 2:
5096
- if (tag !== 18) {
5097
- break;
5098
- }
5099
-
5100
- message.value = reader.string();
5101
- continue;
5102
- }
5103
- if ((tag & 7) === 4 || tag === 0) {
5104
- break;
5105
- }
5106
- reader.skipType(tag & 7);
5107
- }
5108
- return message;
5109
- },
5110
-
5111
- fromJSON(object: any): AccountFacebook_VarsEntry {
5112
- return {
5113
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5114
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5115
- };
5116
- },
5117
-
5118
- toJSON(message: AccountFacebook_VarsEntry): unknown {
5119
- const obj: any = {};
5120
- if (message.key !== "") {
5121
- obj.key = message.key;
5122
- }
5123
- if (message.value !== "") {
5124
- obj.value = message.value;
5125
- }
5126
- return obj;
5127
- },
5128
-
5129
- create<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(base?: I): AccountFacebook_VarsEntry {
5130
- return AccountFacebook_VarsEntry.fromPartial(base ?? ({} as any));
5131
- },
5132
- fromPartial<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(object: I): AccountFacebook_VarsEntry {
5133
- const message = createBaseAccountFacebook_VarsEntry();
5134
- message.key = object.key ?? "";
5135
- message.value = object.value ?? "";
5136
- return message;
5137
- },
5138
- };
5139
-
5140
- function createBaseAccountFacebookInstantGame(): AccountFacebookInstantGame {
5141
- return { signed_player_info: "", vars: {} };
5142
- }
5143
-
5144
- export const AccountFacebookInstantGame = {
5145
- encode(message: AccountFacebookInstantGame, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5146
- if (message.signed_player_info !== "") {
5147
- writer.uint32(10).string(message.signed_player_info);
5148
- }
5149
- Object.entries(message.vars).forEach(([key, value]) => {
5150
- AccountFacebookInstantGame_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5151
- });
5152
- return writer;
5153
- },
5154
-
5155
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame {
5156
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5157
- let end = length === undefined ? reader.len : reader.pos + length;
5158
- const message = createBaseAccountFacebookInstantGame();
5159
- while (reader.pos < end) {
5160
- const tag = reader.uint32();
5161
- switch (tag >>> 3) {
5162
- case 1:
5163
- if (tag !== 10) {
5164
- break;
5165
- }
5166
-
5167
- message.signed_player_info = reader.string();
5168
- continue;
5169
- case 2:
5170
- if (tag !== 18) {
5171
- break;
5172
- }
5173
-
5174
- const entry2 = AccountFacebookInstantGame_VarsEntry.decode(reader, reader.uint32());
5175
- if (entry2.value !== undefined) {
5176
- message.vars[entry2.key] = entry2.value;
5177
- }
5178
- continue;
5179
- }
5180
- if ((tag & 7) === 4 || tag === 0) {
5181
- break;
5182
- }
5183
- reader.skipType(tag & 7);
5184
- }
5185
- return message;
5186
- },
5187
-
5188
- fromJSON(object: any): AccountFacebookInstantGame {
5189
- return {
5190
- signed_player_info: isSet(object.signed_player_info) ? globalThis.String(object.signed_player_info) : "",
5191
- vars: isObject(object.vars)
5192
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5193
- acc[key] = String(value);
5194
- return acc;
5195
- }, {})
5196
- : {},
5197
- };
5198
- },
5199
-
5200
- toJSON(message: AccountFacebookInstantGame): unknown {
5201
- const obj: any = {};
5202
- if (message.signed_player_info !== "") {
5203
- obj.signed_player_info = message.signed_player_info;
5204
- }
5205
- if (message.vars) {
5206
- const entries = Object.entries(message.vars);
5207
- if (entries.length > 0) {
5208
- obj.vars = {};
5209
- entries.forEach(([k, v]) => {
5210
- obj.vars[k] = v;
5211
- });
5212
- }
5213
- }
5214
- return obj;
5215
- },
5216
-
5217
- create<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(base?: I): AccountFacebookInstantGame {
5218
- return AccountFacebookInstantGame.fromPartial(base ?? ({} as any));
5219
- },
5220
- fromPartial<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(object: I): AccountFacebookInstantGame {
5221
- const message = createBaseAccountFacebookInstantGame();
5222
- message.signed_player_info = object.signed_player_info ?? "";
5223
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5224
- if (value !== undefined) {
5225
- acc[key] = globalThis.String(value);
5226
- }
5227
- return acc;
5228
- }, {});
5229
- return message;
5230
- },
5231
- };
5232
-
5233
- function createBaseAccountFacebookInstantGame_VarsEntry(): AccountFacebookInstantGame_VarsEntry {
5234
- return { key: "", value: "" };
5235
- }
5236
-
5237
- export const AccountFacebookInstantGame_VarsEntry = {
5238
- encode(message: AccountFacebookInstantGame_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5239
- if (message.key !== "") {
5240
- writer.uint32(10).string(message.key);
5241
- }
5242
- if (message.value !== "") {
5243
- writer.uint32(18).string(message.value);
5244
- }
5245
- return writer;
5246
- },
5247
-
5248
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame_VarsEntry {
5249
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5250
- let end = length === undefined ? reader.len : reader.pos + length;
5251
- const message = createBaseAccountFacebookInstantGame_VarsEntry();
5252
- while (reader.pos < end) {
5253
- const tag = reader.uint32();
5254
- switch (tag >>> 3) {
5255
- case 1:
5256
- if (tag !== 10) {
5257
- break;
5258
- }
5259
-
5260
- message.key = reader.string();
5261
- continue;
5262
- case 2:
5263
- if (tag !== 18) {
5264
- break;
5265
- }
5266
-
5267
- message.value = reader.string();
5268
- continue;
5269
- }
5270
- if ((tag & 7) === 4 || tag === 0) {
5271
- break;
5272
- }
5273
- reader.skipType(tag & 7);
5274
- }
5275
- return message;
5276
- },
5277
-
5278
- fromJSON(object: any): AccountFacebookInstantGame_VarsEntry {
5279
- return {
5280
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5281
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5282
- };
5283
- },
5284
-
5285
- toJSON(message: AccountFacebookInstantGame_VarsEntry): unknown {
5286
- const obj: any = {};
5287
- if (message.key !== "") {
5288
- obj.key = message.key;
5289
- }
5290
- if (message.value !== "") {
5291
- obj.value = message.value;
5292
- }
5293
- return obj;
5294
- },
5295
-
5296
- create<I extends Exact<DeepPartial<AccountFacebookInstantGame_VarsEntry>, I>>(
5297
- base?: I,
5298
- ): AccountFacebookInstantGame_VarsEntry {
5299
- return AccountFacebookInstantGame_VarsEntry.fromPartial(base ?? ({} as any));
5300
- },
5301
- fromPartial<I extends Exact<DeepPartial<AccountFacebookInstantGame_VarsEntry>, I>>(
5302
- object: I,
5303
- ): AccountFacebookInstantGame_VarsEntry {
5304
- const message = createBaseAccountFacebookInstantGame_VarsEntry();
5305
- message.key = object.key ?? "";
5306
- message.value = object.value ?? "";
5307
- return message;
5308
- },
5309
- };
5310
-
5311
- function createBaseAccountGameCenter(): AccountGameCenter {
5312
- return { player_id: "", bundle_id: "", timestamp_seconds: 0, salt: "", signature: "", public_key_url: "", vars: {} };
5313
- }
5314
-
5315
- export const AccountGameCenter = {
5316
- encode(message: AccountGameCenter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5317
- if (message.player_id !== "") {
5318
- writer.uint32(10).string(message.player_id);
5319
- }
5320
- if (message.bundle_id !== "") {
5321
- writer.uint32(18).string(message.bundle_id);
5322
- }
5323
- if (message.timestamp_seconds !== 0) {
5324
- writer.uint32(24).int64(message.timestamp_seconds);
5325
- }
5326
- if (message.salt !== "") {
5327
- writer.uint32(34).string(message.salt);
5328
- }
5329
- if (message.signature !== "") {
5330
- writer.uint32(42).string(message.signature);
5331
- }
5332
- if (message.public_key_url !== "") {
5333
- writer.uint32(50).string(message.public_key_url);
5334
- }
5335
- Object.entries(message.vars).forEach(([key, value]) => {
5336
- AccountGameCenter_VarsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim();
5337
- });
5338
- return writer;
5339
- },
5340
-
5341
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountGameCenter {
5342
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5343
- let end = length === undefined ? reader.len : reader.pos + length;
5344
- const message = createBaseAccountGameCenter();
5345
- while (reader.pos < end) {
5346
- const tag = reader.uint32();
5347
- switch (tag >>> 3) {
5348
- case 1:
5349
- if (tag !== 10) {
5350
- break;
5351
- }
5352
-
5353
- message.player_id = reader.string();
5354
- continue;
5355
- case 2:
5356
- if (tag !== 18) {
5357
- break;
5358
- }
5359
-
5360
- message.bundle_id = reader.string();
5361
- continue;
5362
- case 3:
5363
- if (tag !== 24) {
5364
- break;
5365
- }
5366
-
5367
- message.timestamp_seconds = longToNumber(reader.int64() as Long);
5368
- continue;
5369
- case 4:
5370
- if (tag !== 34) {
5371
- break;
5372
- }
5373
-
5374
- message.salt = reader.string();
5375
- continue;
5376
- case 5:
5377
- if (tag !== 42) {
5378
- break;
5379
- }
5380
-
5381
- message.signature = reader.string();
5382
- continue;
5383
- case 6:
5384
- if (tag !== 50) {
5385
- break;
5386
- }
5387
-
5388
- message.public_key_url = reader.string();
5389
- continue;
5390
- case 7:
5391
- if (tag !== 58) {
5392
- break;
5393
- }
5394
-
5395
- const entry7 = AccountGameCenter_VarsEntry.decode(reader, reader.uint32());
5396
- if (entry7.value !== undefined) {
5397
- message.vars[entry7.key] = entry7.value;
5398
- }
5399
- continue;
5400
- }
5401
- if ((tag & 7) === 4 || tag === 0) {
5402
- break;
5403
- }
5404
- reader.skipType(tag & 7);
5405
- }
5406
- return message;
5407
- },
5408
-
5409
- fromJSON(object: any): AccountGameCenter {
5410
- return {
5411
- player_id: isSet(object.player_id) ? globalThis.String(object.player_id) : "",
5412
- bundle_id: isSet(object.bundle_id) ? globalThis.String(object.bundle_id) : "",
5413
- timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
5414
- salt: isSet(object.salt) ? globalThis.String(object.salt) : "",
5415
- signature: isSet(object.signature) ? globalThis.String(object.signature) : "",
5416
- public_key_url: isSet(object.public_key_url) ? globalThis.String(object.public_key_url) : "",
5417
- vars: isObject(object.vars)
5418
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5419
- acc[key] = String(value);
5420
- return acc;
5421
- }, {})
5422
- : {},
5423
- };
5424
- },
5425
-
5426
- toJSON(message: AccountGameCenter): unknown {
5427
- const obj: any = {};
5428
- if (message.player_id !== "") {
5429
- obj.player_id = message.player_id;
5430
- }
5431
- if (message.bundle_id !== "") {
5432
- obj.bundle_id = message.bundle_id;
5433
- }
5434
- if (message.timestamp_seconds !== 0) {
5435
- obj.timestamp_seconds = Math.round(message.timestamp_seconds);
5436
- }
5437
- if (message.salt !== "") {
5438
- obj.salt = message.salt;
5439
- }
5440
- if (message.signature !== "") {
5441
- obj.signature = message.signature;
5442
- }
5443
- if (message.public_key_url !== "") {
5444
- obj.public_key_url = message.public_key_url;
5445
- }
5446
- if (message.vars) {
5447
- const entries = Object.entries(message.vars);
5448
- if (entries.length > 0) {
5449
- obj.vars = {};
5450
- entries.forEach(([k, v]) => {
5451
- obj.vars[k] = v;
5452
- });
5453
- }
5454
- }
5455
- return obj;
5456
- },
5457
-
5458
- create<I extends Exact<DeepPartial<AccountGameCenter>, I>>(base?: I): AccountGameCenter {
5459
- return AccountGameCenter.fromPartial(base ?? ({} as any));
5460
- },
5461
- fromPartial<I extends Exact<DeepPartial<AccountGameCenter>, I>>(object: I): AccountGameCenter {
5462
- const message = createBaseAccountGameCenter();
5463
- message.player_id = object.player_id ?? "";
5464
- message.bundle_id = object.bundle_id ?? "";
5465
- message.timestamp_seconds = object.timestamp_seconds ?? 0;
5466
- message.salt = object.salt ?? "";
5467
- message.signature = object.signature ?? "";
5468
- message.public_key_url = object.public_key_url ?? "";
5469
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5470
- if (value !== undefined) {
5471
- acc[key] = globalThis.String(value);
5472
- }
5473
- return acc;
5474
- }, {});
5475
- return message;
5476
- },
5477
- };
5478
-
5479
- function createBaseAccountGameCenter_VarsEntry(): AccountGameCenter_VarsEntry {
5480
- return { key: "", value: "" };
5481
- }
5482
-
5483
- export const AccountGameCenter_VarsEntry = {
5484
- encode(message: AccountGameCenter_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5485
- if (message.key !== "") {
5486
- writer.uint32(10).string(message.key);
5487
- }
5488
- if (message.value !== "") {
5489
- writer.uint32(18).string(message.value);
5490
- }
5491
- return writer;
5492
- },
5493
-
5494
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountGameCenter_VarsEntry {
5495
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5496
- let end = length === undefined ? reader.len : reader.pos + length;
5497
- const message = createBaseAccountGameCenter_VarsEntry();
5498
- while (reader.pos < end) {
5499
- const tag = reader.uint32();
5500
- switch (tag >>> 3) {
5501
- case 1:
5502
- if (tag !== 10) {
5503
- break;
5504
- }
5505
-
5506
- message.key = reader.string();
5507
- continue;
5508
- case 2:
5509
- if (tag !== 18) {
5510
- break;
5511
- }
5512
-
5513
- message.value = reader.string();
5514
- continue;
5515
- }
5516
- if ((tag & 7) === 4 || tag === 0) {
5517
- break;
5518
- }
5519
- reader.skipType(tag & 7);
5520
- }
5521
- return message;
5522
- },
5523
-
5524
- fromJSON(object: any): AccountGameCenter_VarsEntry {
5525
- return {
5526
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5527
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5528
- };
5529
- },
5530
-
5531
- toJSON(message: AccountGameCenter_VarsEntry): unknown {
5532
- const obj: any = {};
5533
- if (message.key !== "") {
5534
- obj.key = message.key;
5535
- }
5536
- if (message.value !== "") {
5537
- obj.value = message.value;
5538
- }
5539
- return obj;
5540
- },
5541
-
5542
- create<I extends Exact<DeepPartial<AccountGameCenter_VarsEntry>, I>>(base?: I): AccountGameCenter_VarsEntry {
5543
- return AccountGameCenter_VarsEntry.fromPartial(base ?? ({} as any));
5544
- },
5545
- fromPartial<I extends Exact<DeepPartial<AccountGameCenter_VarsEntry>, I>>(object: I): AccountGameCenter_VarsEntry {
5546
- const message = createBaseAccountGameCenter_VarsEntry();
5547
- message.key = object.key ?? "";
5548
- message.value = object.value ?? "";
5549
- return message;
5550
- },
5551
- };
5552
-
5553
- function createBaseAccountGoogle(): AccountGoogle {
5554
- return { token: "", vars: {} };
5555
- }
5556
-
5557
- export const AccountGoogle = {
5558
- encode(message: AccountGoogle, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5559
- if (message.token !== "") {
5560
- writer.uint32(10).string(message.token);
5561
- }
5562
- Object.entries(message.vars).forEach(([key, value]) => {
5563
- AccountGoogle_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5564
- });
5565
- return writer;
5566
- },
5567
-
5568
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountGoogle {
5569
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5570
- let end = length === undefined ? reader.len : reader.pos + length;
5571
- const message = createBaseAccountGoogle();
5572
- while (reader.pos < end) {
5573
- const tag = reader.uint32();
5574
- switch (tag >>> 3) {
5575
- case 1:
5576
- if (tag !== 10) {
5577
- break;
5578
- }
5579
-
5580
- message.token = reader.string();
5581
- continue;
5582
- case 2:
5583
- if (tag !== 18) {
5584
- break;
5585
- }
5586
-
5587
- const entry2 = AccountGoogle_VarsEntry.decode(reader, reader.uint32());
5588
- if (entry2.value !== undefined) {
5589
- message.vars[entry2.key] = entry2.value;
5590
- }
5591
- continue;
5592
- }
5593
- if ((tag & 7) === 4 || tag === 0) {
5594
- break;
5595
- }
5596
- reader.skipType(tag & 7);
5597
- }
5598
- return message;
5599
- },
5600
-
5601
- fromJSON(object: any): AccountGoogle {
5602
- return {
5603
- token: isSet(object.token) ? globalThis.String(object.token) : "",
5604
- vars: isObject(object.vars)
5605
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5606
- acc[key] = String(value);
5607
- return acc;
5608
- }, {})
5609
- : {},
5610
- };
5611
- },
5612
-
5613
- toJSON(message: AccountGoogle): unknown {
5614
- const obj: any = {};
5615
- if (message.token !== "") {
5616
- obj.token = message.token;
5617
- }
5618
- if (message.vars) {
5619
- const entries = Object.entries(message.vars);
5620
- if (entries.length > 0) {
5621
- obj.vars = {};
5622
- entries.forEach(([k, v]) => {
5623
- obj.vars[k] = v;
5624
- });
5625
- }
5626
- }
5627
- return obj;
5628
- },
5629
-
5630
- create<I extends Exact<DeepPartial<AccountGoogle>, I>>(base?: I): AccountGoogle {
5631
- return AccountGoogle.fromPartial(base ?? ({} as any));
5632
- },
5633
- fromPartial<I extends Exact<DeepPartial<AccountGoogle>, I>>(object: I): AccountGoogle {
5634
- const message = createBaseAccountGoogle();
5635
- message.token = object.token ?? "";
5636
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5637
- if (value !== undefined) {
5638
- acc[key] = globalThis.String(value);
5639
- }
5640
- return acc;
5641
- }, {});
5642
- return message;
5643
- },
5644
- };
5645
-
5646
- function createBaseAccountGoogle_VarsEntry(): AccountGoogle_VarsEntry {
5647
- return { key: "", value: "" };
5648
- }
5649
-
5650
- export const AccountGoogle_VarsEntry = {
5651
- encode(message: AccountGoogle_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5652
- if (message.key !== "") {
5653
- writer.uint32(10).string(message.key);
5654
- }
5655
- if (message.value !== "") {
5656
- writer.uint32(18).string(message.value);
5657
- }
5658
- return writer;
5659
- },
5660
-
5661
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountGoogle_VarsEntry {
5662
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5663
- let end = length === undefined ? reader.len : reader.pos + length;
5664
- const message = createBaseAccountGoogle_VarsEntry();
5665
- while (reader.pos < end) {
5666
- const tag = reader.uint32();
5667
- switch (tag >>> 3) {
5668
- case 1:
5669
- if (tag !== 10) {
5670
- break;
5671
- }
5672
-
5673
- message.key = reader.string();
5674
- continue;
5675
- case 2:
5676
- if (tag !== 18) {
5677
- break;
5678
- }
5679
-
5680
- message.value = reader.string();
5681
- continue;
5682
- }
5683
- if ((tag & 7) === 4 || tag === 0) {
5684
- break;
5685
- }
5686
- reader.skipType(tag & 7);
5687
- }
5688
- return message;
5689
- },
5690
-
5691
- fromJSON(object: any): AccountGoogle_VarsEntry {
5692
- return {
5693
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5694
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5695
- };
5696
- },
5697
-
5698
- toJSON(message: AccountGoogle_VarsEntry): unknown {
5699
- const obj: any = {};
5700
- if (message.key !== "") {
5701
- obj.key = message.key;
5702
- }
5703
- if (message.value !== "") {
5704
- obj.value = message.value;
5705
- }
5706
- return obj;
5707
- },
5708
-
5709
- create<I extends Exact<DeepPartial<AccountGoogle_VarsEntry>, I>>(base?: I): AccountGoogle_VarsEntry {
5710
- return AccountGoogle_VarsEntry.fromPartial(base ?? ({} as any));
5711
- },
5712
- fromPartial<I extends Exact<DeepPartial<AccountGoogle_VarsEntry>, I>>(object: I): AccountGoogle_VarsEntry {
5713
- const message = createBaseAccountGoogle_VarsEntry();
5714
- message.key = object.key ?? "";
5715
- message.value = object.value ?? "";
5716
- return message;
5717
- },
5718
- };
5719
-
5720
- function createBaseAccountMezon(): AccountMezon {
5721
- return { token: "", vars: {} };
5722
- }
5723
-
5724
- export const AccountMezon = {
5725
- encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5726
- if (message.token !== "") {
5727
- writer.uint32(10).string(message.token);
5728
- }
5729
- Object.entries(message.vars).forEach(([key, value]) => {
5730
- AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5731
- });
5732
- return writer;
5733
- },
5734
-
5735
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon {
5736
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5737
- let end = length === undefined ? reader.len : reader.pos + length;
5738
- const message = createBaseAccountMezon();
5739
- while (reader.pos < end) {
5740
- const tag = reader.uint32();
5741
- switch (tag >>> 3) {
5742
- case 1:
5743
- if (tag !== 10) {
5744
- break;
5745
- }
5746
-
5747
- message.token = reader.string();
5748
- continue;
5749
- case 2:
5750
- if (tag !== 18) {
5751
- break;
5752
- }
5753
-
5754
- const entry2 = AccountMezon_VarsEntry.decode(reader, reader.uint32());
5755
- if (entry2.value !== undefined) {
5756
- message.vars[entry2.key] = entry2.value;
5757
- }
5758
- continue;
5759
- }
5760
- if ((tag & 7) === 4 || tag === 0) {
5761
- break;
5762
- }
5763
- reader.skipType(tag & 7);
5764
- }
5765
- return message;
5766
- },
5767
-
5768
- fromJSON(object: any): AccountMezon {
5769
- return {
5770
- token: isSet(object.token) ? globalThis.String(object.token) : "",
5771
- vars: isObject(object.vars)
5772
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5773
- acc[key] = String(value);
5774
- return acc;
5775
- }, {})
5776
- : {},
5777
- };
5778
- },
5779
-
5780
- toJSON(message: AccountMezon): unknown {
5781
- const obj: any = {};
5782
- if (message.token !== "") {
5783
- obj.token = message.token;
5784
- }
5785
- if (message.vars) {
5786
- const entries = Object.entries(message.vars);
5787
- if (entries.length > 0) {
5788
- obj.vars = {};
5789
- entries.forEach(([k, v]) => {
5790
- obj.vars[k] = v;
5791
- });
5792
- }
5793
- }
5794
- return obj;
5795
- },
5796
-
5797
- create<I extends Exact<DeepPartial<AccountMezon>, I>>(base?: I): AccountMezon {
5798
- return AccountMezon.fromPartial(base ?? ({} as any));
5799
- },
5800
- fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
5801
- const message = createBaseAccountMezon();
5802
- message.token = object.token ?? "";
5803
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5804
- if (value !== undefined) {
5805
- acc[key] = globalThis.String(value);
5806
- }
5807
- return acc;
5808
- }, {});
5809
- return message;
5810
- },
5811
- };
5812
-
5813
- function createBaseAccountMezon_VarsEntry(): AccountMezon_VarsEntry {
5814
- return { key: "", value: "" };
5815
- }
5816
-
5817
- export const AccountMezon_VarsEntry = {
5818
- encode(message: AccountMezon_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5819
- if (message.key !== "") {
5820
- writer.uint32(10).string(message.key);
5821
- }
5822
- if (message.value !== "") {
5823
- writer.uint32(18).string(message.value);
5824
- }
5825
- return writer;
5826
- },
5827
-
5828
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon_VarsEntry {
5829
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5830
- let end = length === undefined ? reader.len : reader.pos + length;
5831
- const message = createBaseAccountMezon_VarsEntry();
5832
- while (reader.pos < end) {
5833
- const tag = reader.uint32();
5834
- switch (tag >>> 3) {
5835
- case 1:
5836
- if (tag !== 10) {
5837
- break;
5838
- }
5839
-
5840
- message.key = reader.string();
5841
- continue;
5842
- case 2:
5843
- if (tag !== 18) {
5844
- break;
5845
- }
5846
-
5847
- message.value = reader.string();
5848
- continue;
5849
- }
5850
- if ((tag & 7) === 4 || tag === 0) {
5851
- break;
5852
- }
5853
- reader.skipType(tag & 7);
5854
- }
5855
- return message;
5856
- },
5857
-
5858
- fromJSON(object: any): AccountMezon_VarsEntry {
5859
- return {
5860
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5861
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5862
- };
5863
- },
5864
-
5865
- toJSON(message: AccountMezon_VarsEntry): unknown {
5866
- const obj: any = {};
5867
- if (message.key !== "") {
5868
- obj.key = message.key;
5869
- }
5870
- if (message.value !== "") {
5871
- obj.value = message.value;
5872
- }
5873
- return obj;
5874
- },
5875
-
5876
- create<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(base?: I): AccountMezon_VarsEntry {
5877
- return AccountMezon_VarsEntry.fromPartial(base ?? ({} as any));
5878
- },
5879
- fromPartial<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(object: I): AccountMezon_VarsEntry {
5880
- const message = createBaseAccountMezon_VarsEntry();
5881
- message.key = object.key ?? "";
5882
- message.value = object.value ?? "";
5883
- return message;
5884
- },
5885
- };
5886
-
5887
- function createBaseAccountSteam(): AccountSteam {
5888
- return { token: "", vars: {} };
5889
- }
5890
-
5891
- export const AccountSteam = {
5892
- encode(message: AccountSteam, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5893
- if (message.token !== "") {
5894
- writer.uint32(10).string(message.token);
5895
- }
5896
- Object.entries(message.vars).forEach(([key, value]) => {
5897
- AccountSteam_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5898
- });
5899
- return writer;
5900
- },
5901
-
5902
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountSteam {
5903
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5904
- let end = length === undefined ? reader.len : reader.pos + length;
5905
- const message = createBaseAccountSteam();
5906
- while (reader.pos < end) {
5907
- const tag = reader.uint32();
5908
- switch (tag >>> 3) {
5909
- case 1:
5910
- if (tag !== 10) {
5911
- break;
5912
- }
5913
-
5914
- message.token = reader.string();
5915
- continue;
5916
- case 2:
5917
- if (tag !== 18) {
5918
- break;
5919
- }
5920
-
5921
- const entry2 = AccountSteam_VarsEntry.decode(reader, reader.uint32());
5922
- if (entry2.value !== undefined) {
5923
- message.vars[entry2.key] = entry2.value;
5924
- }
5925
- continue;
5926
- }
5927
- if ((tag & 7) === 4 || tag === 0) {
5928
- break;
5929
- }
5930
- reader.skipType(tag & 7);
5931
- }
5932
- return message;
5933
- },
5934
-
5935
- fromJSON(object: any): AccountSteam {
5936
- return {
5937
- token: isSet(object.token) ? globalThis.String(object.token) : "",
5938
- vars: isObject(object.vars)
5939
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5940
- acc[key] = String(value);
5941
- return acc;
5942
- }, {})
5943
- : {},
5944
- };
5945
- },
5946
-
5947
- toJSON(message: AccountSteam): unknown {
5948
- const obj: any = {};
5949
- if (message.token !== "") {
5950
- obj.token = message.token;
5951
- }
5952
- if (message.vars) {
5953
- const entries = Object.entries(message.vars);
5954
- if (entries.length > 0) {
5955
- obj.vars = {};
5956
- entries.forEach(([k, v]) => {
5957
- obj.vars[k] = v;
5958
- });
5959
- }
5960
- }
5961
- return obj;
5962
- },
5963
-
5964
- create<I extends Exact<DeepPartial<AccountSteam>, I>>(base?: I): AccountSteam {
5965
- return AccountSteam.fromPartial(base ?? ({} as any));
5966
- },
5967
- fromPartial<I extends Exact<DeepPartial<AccountSteam>, I>>(object: I): AccountSteam {
5968
- const message = createBaseAccountSteam();
5969
- message.token = object.token ?? "";
5970
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5971
- if (value !== undefined) {
5972
- acc[key] = globalThis.String(value);
5973
- }
5974
- return acc;
5975
- }, {});
5976
- return message;
5977
- },
5978
- };
5979
-
5980
- function createBaseAccountSteam_VarsEntry(): AccountSteam_VarsEntry {
5981
- return { key: "", value: "" };
5982
- }
5983
-
5984
- export const AccountSteam_VarsEntry = {
5985
- encode(message: AccountSteam_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5986
- if (message.key !== "") {
5987
- writer.uint32(10).string(message.key);
5988
- }
5989
- if (message.value !== "") {
5990
- writer.uint32(18).string(message.value);
5991
- }
5992
- return writer;
5993
- },
5994
-
5995
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountSteam_VarsEntry {
5996
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5997
- let end = length === undefined ? reader.len : reader.pos + length;
5998
- const message = createBaseAccountSteam_VarsEntry();
5999
- while (reader.pos < end) {
6000
- const tag = reader.uint32();
6001
- switch (tag >>> 3) {
6002
- case 1:
6003
- if (tag !== 10) {
6004
- break;
6005
- }
6006
-
6007
- message.key = reader.string();
6008
- continue;
6009
- case 2:
6010
- if (tag !== 18) {
6011
- break;
6012
- }
6013
-
6014
- message.value = reader.string();
6015
- continue;
6016
- }
6017
- if ((tag & 7) === 4 || tag === 0) {
6018
- break;
6019
- }
6020
- reader.skipType(tag & 7);
6021
- }
6022
- return message;
6023
- },
6024
-
6025
- fromJSON(object: any): AccountSteam_VarsEntry {
6026
- return {
6027
- key: isSet(object.key) ? globalThis.String(object.key) : "",
6028
- value: isSet(object.value) ? globalThis.String(object.value) : "",
6029
- };
6030
- },
6031
-
6032
- toJSON(message: AccountSteam_VarsEntry): unknown {
6033
- const obj: any = {};
6034
- if (message.key !== "") {
6035
- obj.key = message.key;
6036
- }
6037
- if (message.value !== "") {
6038
- obj.value = message.value;
6039
- }
6040
- return obj;
6041
- },
6042
-
6043
- create<I extends Exact<DeepPartial<AccountSteam_VarsEntry>, I>>(base?: I): AccountSteam_VarsEntry {
6044
- return AccountSteam_VarsEntry.fromPartial(base ?? ({} as any));
6045
- },
6046
- fromPartial<I extends Exact<DeepPartial<AccountSteam_VarsEntry>, I>>(object: I): AccountSteam_VarsEntry {
6047
- const message = createBaseAccountSteam_VarsEntry();
6048
- message.key = object.key ?? "";
6049
- message.value = object.value ?? "";
6050
- return message;
6051
- },
6052
- };
6053
-
6054
- function createBaseAddFriendsRequest(): AddFriendsRequest {
6055
- return { ids: [], usernames: [] };
6056
- }
6057
-
6058
- export const AddFriendsRequest = {
6059
- encode(message: AddFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6060
- for (const v of message.ids) {
6061
- writer.uint32(10).string(v!);
6062
- }
6063
- for (const v of message.usernames) {
6064
- writer.uint32(18).string(v!);
6065
- }
6066
- return writer;
6067
- },
6068
-
6069
- decode(input: _m0.Reader | Uint8Array, length?: number): AddFriendsRequest {
6070
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6071
- let end = length === undefined ? reader.len : reader.pos + length;
6072
- const message = createBaseAddFriendsRequest();
6073
- while (reader.pos < end) {
6074
- const tag = reader.uint32();
6075
- switch (tag >>> 3) {
6076
- case 1:
6077
- if (tag !== 10) {
6078
- break;
6079
- }
6080
-
6081
- message.ids.push(reader.string());
6082
- continue;
6083
- case 2:
6084
- if (tag !== 18) {
6085
- break;
6086
- }
6087
-
6088
- message.usernames.push(reader.string());
6089
- continue;
6090
- }
6091
- if ((tag & 7) === 4 || tag === 0) {
6092
- break;
6093
- }
6094
- reader.skipType(tag & 7);
6095
- }
6096
- return message;
6097
- },
6098
-
6099
- fromJSON(object: any): AddFriendsRequest {
6100
- return {
6101
- ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
6102
- usernames: globalThis.Array.isArray(object?.usernames)
6103
- ? object.usernames.map((e: any) => globalThis.String(e))
6104
- : [],
6105
- };
6106
- },
6107
-
6108
- toJSON(message: AddFriendsRequest): unknown {
6109
- const obj: any = {};
6110
- if (message.ids?.length) {
6111
- obj.ids = message.ids;
6112
- }
6113
- if (message.usernames?.length) {
6114
- obj.usernames = message.usernames;
6115
- }
6116
- return obj;
6117
- },
6118
-
6119
- create<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(base?: I): AddFriendsRequest {
6120
- return AddFriendsRequest.fromPartial(base ?? ({} as any));
6121
- },
6122
- fromPartial<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(object: I): AddFriendsRequest {
6123
- const message = createBaseAddFriendsRequest();
6124
- message.ids = object.ids?.map((e) => e) || [];
6125
- message.usernames = object.usernames?.map((e) => e) || [];
6126
- return message;
6127
- },
6128
- };
6129
-
6130
- function createBaseAddGroupUsersRequest(): AddGroupUsersRequest {
6131
- return { group_id: "", user_ids: [] };
6132
- }
6133
-
6134
- export const AddGroupUsersRequest = {
6135
- encode(message: AddGroupUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6136
- if (message.group_id !== "") {
6137
- writer.uint32(10).string(message.group_id);
6138
- }
6139
- for (const v of message.user_ids) {
6140
- writer.uint32(18).string(v!);
6141
- }
6142
- return writer;
6143
- },
6144
-
6145
- decode(input: _m0.Reader | Uint8Array, length?: number): AddGroupUsersRequest {
6146
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6147
- let end = length === undefined ? reader.len : reader.pos + length;
6148
- const message = createBaseAddGroupUsersRequest();
6149
- while (reader.pos < end) {
6150
- const tag = reader.uint32();
6151
- switch (tag >>> 3) {
6152
- case 1:
6153
- if (tag !== 10) {
6154
- break;
6155
- }
6156
-
6157
- message.group_id = reader.string();
6158
- continue;
6159
- case 2:
6160
- if (tag !== 18) {
6161
- break;
6162
- }
6163
-
6164
- message.user_ids.push(reader.string());
6165
- continue;
6166
- }
6167
- if ((tag & 7) === 4 || tag === 0) {
6168
- break;
6169
- }
6170
- reader.skipType(tag & 7);
6171
- }
6172
- return message;
6173
- },
6174
-
6175
- fromJSON(object: any): AddGroupUsersRequest {
6176
- return {
6177
- group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "",
6178
- user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
6179
- };
6180
- },
6181
-
6182
- toJSON(message: AddGroupUsersRequest): unknown {
6183
- const obj: any = {};
6184
- if (message.group_id !== "") {
6185
- obj.group_id = message.group_id;
6186
- }
6187
- if (message.user_ids?.length) {
6188
- obj.user_ids = message.user_ids;
6189
- }
6190
- return obj;
6191
- },
6192
-
6193
- create<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(base?: I): AddGroupUsersRequest {
6194
- return AddGroupUsersRequest.fromPartial(base ?? ({} as any));
6195
- },
6196
- fromPartial<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(object: I): AddGroupUsersRequest {
6197
- const message = createBaseAddGroupUsersRequest();
6198
- message.group_id = object.group_id ?? "";
6199
- message.user_ids = object.user_ids?.map((e) => e) || [];
6200
- return message;
6201
- },
6202
- };
6203
-
6204
- function createBaseSessionRefreshRequest(): SessionRefreshRequest {
6205
- return { token: "", vars: {}, is_remember: undefined };
6206
- }
6207
-
6208
- export const SessionRefreshRequest = {
6209
- encode(message: SessionRefreshRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6210
- if (message.token !== "") {
6211
- writer.uint32(10).string(message.token);
6212
- }
6213
- Object.entries(message.vars).forEach(([key, value]) => {
6214
- SessionRefreshRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
6215
- });
6216
- if (message.is_remember !== undefined) {
6217
- BoolValue.encode({ value: message.is_remember! }, writer.uint32(26).fork()).ldelim();
6218
- }
6219
- return writer;
6220
- },
6221
-
6222
- decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest {
6223
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6224
- let end = length === undefined ? reader.len : reader.pos + length;
6225
- const message = createBaseSessionRefreshRequest();
6226
- while (reader.pos < end) {
6227
- const tag = reader.uint32();
6228
- switch (tag >>> 3) {
6229
- case 1:
6230
- if (tag !== 10) {
6231
- break;
6232
- }
6233
-
6234
- message.token = reader.string();
6235
- continue;
6236
- case 2:
6237
- if (tag !== 18) {
6238
- break;
6239
- }
6240
-
6241
- const entry2 = SessionRefreshRequest_VarsEntry.decode(reader, reader.uint32());
6242
- if (entry2.value !== undefined) {
6243
- message.vars[entry2.key] = entry2.value;
6244
- }
6245
- continue;
6246
- case 3:
6247
- if (tag !== 26) {
6248
- break;
6249
- }
6250
-
6251
- message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
6252
- continue;
6253
- }
6254
- if ((tag & 7) === 4 || tag === 0) {
6255
- break;
6256
- }
6257
- reader.skipType(tag & 7);
6258
- }
6259
- return message;
6260
- },
6261
-
6262
- fromJSON(object: any): SessionRefreshRequest {
6263
- return {
6264
- token: isSet(object.token) ? globalThis.String(object.token) : "",
6265
- vars: isObject(object.vars)
6266
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
6267
- acc[key] = String(value);
6268
- return acc;
6269
- }, {})
6270
- : {},
6271
- is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
6272
- };
6273
- },
6274
-
6275
- toJSON(message: SessionRefreshRequest): unknown {
6276
- const obj: any = {};
6277
- if (message.token !== "") {
6278
- obj.token = message.token;
6279
- }
6280
- if (message.vars) {
6281
- const entries = Object.entries(message.vars);
6282
- if (entries.length > 0) {
6283
- obj.vars = {};
6284
- entries.forEach(([k, v]) => {
6285
- obj.vars[k] = v;
6286
- });
6287
- }
6288
- }
6289
- if (message.is_remember !== undefined) {
6290
- obj.is_remember = message.is_remember;
6291
- }
6292
- return obj;
6293
- },
6294
-
6295
- create<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(base?: I): SessionRefreshRequest {
6296
- return SessionRefreshRequest.fromPartial(base ?? ({} as any));
6297
- },
6298
- fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(object: I): SessionRefreshRequest {
6299
- const message = createBaseSessionRefreshRequest();
6300
- message.token = object.token ?? "";
6301
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
6302
- if (value !== undefined) {
6303
- acc[key] = globalThis.String(value);
6304
- }
6305
- return acc;
6306
- }, {});
6307
- message.is_remember = object.is_remember ?? undefined;
6308
- return message;
6309
- },
6310
- };
6311
-
6312
- function createBaseSessionRefreshRequest_VarsEntry(): SessionRefreshRequest_VarsEntry {
6313
- return { key: "", value: "" };
6314
- }
6315
-
6316
- export const SessionRefreshRequest_VarsEntry = {
6317
- encode(message: SessionRefreshRequest_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6318
- if (message.key !== "") {
6319
- writer.uint32(10).string(message.key);
6320
- }
6321
- if (message.value !== "") {
6322
- writer.uint32(18).string(message.value);
6323
- }
6324
- return writer;
6325
- },
6326
-
6327
- decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest_VarsEntry {
6328
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6329
- let end = length === undefined ? reader.len : reader.pos + length;
6330
- const message = createBaseSessionRefreshRequest_VarsEntry();
6331
- while (reader.pos < end) {
6332
- const tag = reader.uint32();
6333
- switch (tag >>> 3) {
6334
- case 1:
6335
- if (tag !== 10) {
6336
- break;
6337
- }
6338
-
6339
- message.key = reader.string();
6340
- continue;
6341
- case 2:
6342
- if (tag !== 18) {
6343
- break;
6344
- }
6345
-
6346
- message.value = reader.string();
6347
- continue;
6348
- }
6349
- if ((tag & 7) === 4 || tag === 0) {
6350
- break;
6351
- }
6352
- reader.skipType(tag & 7);
6353
- }
6354
- return message;
6355
- },
6356
-
6357
- fromJSON(object: any): SessionRefreshRequest_VarsEntry {
6358
- return {
6359
- key: isSet(object.key) ? globalThis.String(object.key) : "",
6360
- value: isSet(object.value) ? globalThis.String(object.value) : "",
6361
- };
6362
- },
6363
-
6364
- toJSON(message: SessionRefreshRequest_VarsEntry): unknown {
6365
- const obj: any = {};
6366
- if (message.key !== "") {
6367
- obj.key = message.key;
6368
- }
6369
- if (message.value !== "") {
6370
- obj.value = message.value;
6371
- }
6372
- return obj;
6373
- },
6374
-
6375
- create<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(base?: I): SessionRefreshRequest_VarsEntry {
6376
- return SessionRefreshRequest_VarsEntry.fromPartial(base ?? ({} as any));
6377
- },
6378
- fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(
6379
- object: I,
6380
- ): SessionRefreshRequest_VarsEntry {
6381
- const message = createBaseSessionRefreshRequest_VarsEntry();
6382
- message.key = object.key ?? "";
6383
- message.value = object.value ?? "";
6384
- return message;
6385
- },
6386
- };
6387
-
6388
- function createBaseSessionLogoutRequest(): SessionLogoutRequest {
6389
- return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
6390
- }
6391
-
6392
- export const SessionLogoutRequest = {
6393
- encode(message: SessionLogoutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6394
- if (message.token !== "") {
6395
- writer.uint32(10).string(message.token);
6396
- }
6397
- if (message.refresh_token !== "") {
6398
- writer.uint32(18).string(message.refresh_token);
6399
- }
6400
- if (message.device_id !== "") {
6401
- writer.uint32(26).string(message.device_id);
6402
- }
6403
- if (message.fcm_token !== "") {
6404
- writer.uint32(34).string(message.fcm_token);
6405
- }
6406
- if (message.platform !== "") {
6407
- writer.uint32(42).string(message.platform);
6408
- }
6409
- return writer;
6410
- },
6411
-
6412
- decode(input: _m0.Reader | Uint8Array, length?: number): SessionLogoutRequest {
6413
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6414
- let end = length === undefined ? reader.len : reader.pos + length;
6415
- const message = createBaseSessionLogoutRequest();
6416
- while (reader.pos < end) {
6417
- const tag = reader.uint32();
6418
- switch (tag >>> 3) {
6419
- case 1:
6420
- if (tag !== 10) {
6421
- break;
6422
- }
6423
-
6424
- message.token = reader.string();
6425
- continue;
6426
- case 2:
6427
- if (tag !== 18) {
6428
- break;
6429
- }
6430
-
6431
- message.refresh_token = reader.string();
6432
- continue;
6433
- case 3:
6434
- if (tag !== 26) {
6435
- break;
6436
- }
6437
-
6438
- message.device_id = reader.string();
6439
- continue;
6440
- case 4:
6441
- if (tag !== 34) {
6442
- break;
6443
- }
6444
-
6445
- message.fcm_token = reader.string();
6446
- continue;
6447
- case 5:
6448
- if (tag !== 42) {
6449
- break;
6450
- }
6451
-
6452
- message.platform = reader.string();
6453
- continue;
6454
- }
6455
- if ((tag & 7) === 4 || tag === 0) {
6456
- break;
6457
- }
6458
- reader.skipType(tag & 7);
6459
- }
6460
- return message;
6461
- },
6462
-
6463
- fromJSON(object: any): SessionLogoutRequest {
6464
- return {
6465
- token: isSet(object.token) ? globalThis.String(object.token) : "",
6466
- refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
6467
- device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
6468
- fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
6469
- platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
6470
- };
6471
- },
6472
-
6473
- toJSON(message: SessionLogoutRequest): unknown {
6474
- const obj: any = {};
6475
- if (message.token !== "") {
6476
- obj.token = message.token;
6477
- }
6478
- if (message.refresh_token !== "") {
6479
- obj.refresh_token = message.refresh_token;
6480
- }
6481
- if (message.device_id !== "") {
6482
- obj.device_id = message.device_id;
6483
- }
6484
- if (message.fcm_token !== "") {
6485
- obj.fcm_token = message.fcm_token;
6486
- }
6487
- if (message.platform !== "") {
6488
- obj.platform = message.platform;
6489
- }
6490
- return obj;
6491
- },
6492
-
6493
- create<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(base?: I): SessionLogoutRequest {
6494
- return SessionLogoutRequest.fromPartial(base ?? ({} as any));
6495
- },
6496
- fromPartial<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(object: I): SessionLogoutRequest {
6497
- const message = createBaseSessionLogoutRequest();
6498
- message.token = object.token ?? "";
6499
- message.refresh_token = object.refresh_token ?? "";
6500
- message.device_id = object.device_id ?? "";
6501
- message.fcm_token = object.fcm_token ?? "";
6502
- message.platform = object.platform ?? "";
6503
- return message;
6504
- },
6505
- };
6506
-
6507
- function createBaseAuthenticateAppleRequest(): AuthenticateAppleRequest {
6508
- return { account: undefined, create: undefined, username: "" };
6509
- }
6510
-
6511
- export const AuthenticateAppleRequest = {
6512
- encode(message: AuthenticateAppleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6513
- if (message.account !== undefined) {
6514
- AccountApple.encode(message.account, writer.uint32(10).fork()).ldelim();
6515
- }
6516
- if (message.create !== undefined) {
6517
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6518
- }
6519
- if (message.username !== "") {
6520
- writer.uint32(26).string(message.username);
6521
- }
6522
- return writer;
6523
- },
6524
-
6525
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateAppleRequest {
6526
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6527
- let end = length === undefined ? reader.len : reader.pos + length;
6528
- const message = createBaseAuthenticateAppleRequest();
6529
- while (reader.pos < end) {
6530
- const tag = reader.uint32();
6531
- switch (tag >>> 3) {
6532
- case 1:
6533
- if (tag !== 10) {
6534
- break;
6535
- }
6536
-
6537
- message.account = AccountApple.decode(reader, reader.uint32());
6538
- continue;
6539
- case 2:
6540
- if (tag !== 18) {
6541
- break;
6542
- }
6543
-
6544
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6545
- continue;
6546
- case 3:
6547
- if (tag !== 26) {
6548
- break;
6549
- }
6550
-
6551
- message.username = reader.string();
6552
- continue;
6553
- }
6554
- if ((tag & 7) === 4 || tag === 0) {
6555
- break;
6556
- }
6557
- reader.skipType(tag & 7);
6558
- }
6559
- return message;
6560
- },
6561
-
6562
- fromJSON(object: any): AuthenticateAppleRequest {
6563
- return {
6564
- account: isSet(object.account) ? AccountApple.fromJSON(object.account) : undefined,
6565
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6566
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6567
- };
6568
- },
6569
-
6570
- toJSON(message: AuthenticateAppleRequest): unknown {
6571
- const obj: any = {};
6572
- if (message.account !== undefined) {
6573
- obj.account = AccountApple.toJSON(message.account);
6574
- }
6575
- if (message.create !== undefined) {
6576
- obj.create = message.create;
6577
- }
6578
- if (message.username !== "") {
6579
- obj.username = message.username;
6580
- }
6581
- return obj;
6582
- },
6583
-
6584
- create<I extends Exact<DeepPartial<AuthenticateAppleRequest>, I>>(base?: I): AuthenticateAppleRequest {
6585
- return AuthenticateAppleRequest.fromPartial(base ?? ({} as any));
6586
- },
6587
- fromPartial<I extends Exact<DeepPartial<AuthenticateAppleRequest>, I>>(object: I): AuthenticateAppleRequest {
6588
- const message = createBaseAuthenticateAppleRequest();
6589
- message.account = (object.account !== undefined && object.account !== null)
6590
- ? AccountApple.fromPartial(object.account)
6591
- : undefined;
6592
- message.create = object.create ?? undefined;
6593
- message.username = object.username ?? "";
6594
- return message;
6595
- },
6596
- };
6597
-
6598
- function createBaseAuthenticateDeviceRequest(): AuthenticateDeviceRequest {
6599
- return { account: undefined, create: undefined, username: "" };
6600
- }
6601
-
6602
- export const AuthenticateDeviceRequest = {
6603
- encode(message: AuthenticateDeviceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6604
- if (message.account !== undefined) {
6605
- AccountDevice.encode(message.account, writer.uint32(10).fork()).ldelim();
6606
- }
6607
- if (message.create !== undefined) {
6608
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6609
- }
6610
- if (message.username !== "") {
6611
- writer.uint32(26).string(message.username);
6612
- }
6613
- return writer;
6614
- },
6615
-
6616
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateDeviceRequest {
6617
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6618
- let end = length === undefined ? reader.len : reader.pos + length;
6619
- const message = createBaseAuthenticateDeviceRequest();
6620
- while (reader.pos < end) {
6621
- const tag = reader.uint32();
6622
- switch (tag >>> 3) {
6623
- case 1:
6624
- if (tag !== 10) {
6625
- break;
6626
- }
6627
-
6628
- message.account = AccountDevice.decode(reader, reader.uint32());
6629
- continue;
6630
- case 2:
6631
- if (tag !== 18) {
6632
- break;
6633
- }
6634
-
6635
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6636
- continue;
6637
- case 3:
6638
- if (tag !== 26) {
6639
- break;
6640
- }
6641
-
6642
- message.username = reader.string();
6643
- continue;
6644
- }
6645
- if ((tag & 7) === 4 || tag === 0) {
6646
- break;
6647
- }
6648
- reader.skipType(tag & 7);
6649
- }
6650
- return message;
6651
- },
6652
-
6653
- fromJSON(object: any): AuthenticateDeviceRequest {
6654
- return {
6655
- account: isSet(object.account) ? AccountDevice.fromJSON(object.account) : undefined,
6656
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6657
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6658
- };
6659
- },
6660
-
6661
- toJSON(message: AuthenticateDeviceRequest): unknown {
6662
- const obj: any = {};
6663
- if (message.account !== undefined) {
6664
- obj.account = AccountDevice.toJSON(message.account);
6665
- }
6666
- if (message.create !== undefined) {
6667
- obj.create = message.create;
6668
- }
6669
- if (message.username !== "") {
6670
- obj.username = message.username;
6671
- }
6672
- return obj;
6673
- },
6674
-
6675
- create<I extends Exact<DeepPartial<AuthenticateDeviceRequest>, I>>(base?: I): AuthenticateDeviceRequest {
6676
- return AuthenticateDeviceRequest.fromPartial(base ?? ({} as any));
6677
- },
6678
- fromPartial<I extends Exact<DeepPartial<AuthenticateDeviceRequest>, I>>(object: I): AuthenticateDeviceRequest {
6679
- const message = createBaseAuthenticateDeviceRequest();
6680
- message.account = (object.account !== undefined && object.account !== null)
6681
- ? AccountDevice.fromPartial(object.account)
6682
- : undefined;
6683
- message.create = object.create ?? undefined;
6684
- message.username = object.username ?? "";
6685
- return message;
6686
- },
6687
- };
6688
-
6689
- function createBaseAuthenticateEmailRequest(): AuthenticateEmailRequest {
6690
- return { account: undefined, create: undefined, username: "" };
6691
- }
6692
-
6693
- export const AuthenticateEmailRequest = {
6694
- encode(message: AuthenticateEmailRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6695
- if (message.account !== undefined) {
6696
- AccountEmail.encode(message.account, writer.uint32(10).fork()).ldelim();
6697
- }
6698
- if (message.create !== undefined) {
6699
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6700
- }
6701
- if (message.username !== "") {
6702
- writer.uint32(26).string(message.username);
6703
- }
6704
- return writer;
6705
- },
6706
-
6707
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateEmailRequest {
6708
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6709
- let end = length === undefined ? reader.len : reader.pos + length;
6710
- const message = createBaseAuthenticateEmailRequest();
6711
- while (reader.pos < end) {
6712
- const tag = reader.uint32();
6713
- switch (tag >>> 3) {
6714
- case 1:
6715
- if (tag !== 10) {
6716
- break;
6717
- }
6718
-
6719
- message.account = AccountEmail.decode(reader, reader.uint32());
6720
- continue;
6721
- case 2:
6722
- if (tag !== 18) {
6723
- break;
6724
- }
6725
-
6726
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6727
- continue;
6728
- case 3:
6729
- if (tag !== 26) {
6730
- break;
6731
- }
6732
-
6733
- message.username = reader.string();
6734
- continue;
6735
- }
6736
- if ((tag & 7) === 4 || tag === 0) {
6737
- break;
6738
- }
6739
- reader.skipType(tag & 7);
6740
- }
6741
- return message;
6742
- },
6743
-
6744
- fromJSON(object: any): AuthenticateEmailRequest {
6745
- return {
6746
- account: isSet(object.account) ? AccountEmail.fromJSON(object.account) : undefined,
6747
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6748
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6749
- };
6750
- },
6751
-
6752
- toJSON(message: AuthenticateEmailRequest): unknown {
6753
- const obj: any = {};
6754
- if (message.account !== undefined) {
6755
- obj.account = AccountEmail.toJSON(message.account);
6756
- }
6757
- if (message.create !== undefined) {
6758
- obj.create = message.create;
6759
- }
6760
- if (message.username !== "") {
6761
- obj.username = message.username;
6762
- }
6763
- return obj;
6764
- },
6765
-
6766
- create<I extends Exact<DeepPartial<AuthenticateEmailRequest>, I>>(base?: I): AuthenticateEmailRequest {
6767
- return AuthenticateEmailRequest.fromPartial(base ?? ({} as any));
6768
- },
6769
- fromPartial<I extends Exact<DeepPartial<AuthenticateEmailRequest>, I>>(object: I): AuthenticateEmailRequest {
6770
- const message = createBaseAuthenticateEmailRequest();
6771
- message.account = (object.account !== undefined && object.account !== null)
6772
- ? AccountEmail.fromPartial(object.account)
6773
- : undefined;
6774
- message.create = object.create ?? undefined;
6775
- message.username = object.username ?? "";
6776
- return message;
6777
- },
6778
- };
6779
-
6780
- function createBaseAuthenticateFacebookRequest(): AuthenticateFacebookRequest {
6781
- return { account: undefined, create: undefined, username: "", sync: undefined };
6782
- }
6783
-
6784
- export const AuthenticateFacebookRequest = {
6785
- encode(message: AuthenticateFacebookRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6786
- if (message.account !== undefined) {
6787
- AccountFacebook.encode(message.account, writer.uint32(10).fork()).ldelim();
6788
- }
6789
- if (message.create !== undefined) {
6790
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6791
- }
6792
- if (message.username !== "") {
6793
- writer.uint32(26).string(message.username);
6794
- }
6795
- if (message.sync !== undefined) {
6796
- BoolValue.encode({ value: message.sync! }, writer.uint32(34).fork()).ldelim();
6797
- }
6798
- return writer;
6799
- },
6800
-
6801
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateFacebookRequest {
6802
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6803
- let end = length === undefined ? reader.len : reader.pos + length;
6804
- const message = createBaseAuthenticateFacebookRequest();
6805
- while (reader.pos < end) {
6806
- const tag = reader.uint32();
6807
- switch (tag >>> 3) {
6808
- case 1:
6809
- if (tag !== 10) {
6810
- break;
6811
- }
6812
-
6813
- message.account = AccountFacebook.decode(reader, reader.uint32());
6814
- continue;
6815
- case 2:
6816
- if (tag !== 18) {
6817
- break;
6818
- }
6819
-
6820
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6821
- continue;
6822
- case 3:
6823
- if (tag !== 26) {
6824
- break;
6825
- }
6826
-
6827
- message.username = reader.string();
6828
- continue;
6829
- case 4:
6830
- if (tag !== 34) {
6831
- break;
6832
- }
6833
-
6834
- message.sync = BoolValue.decode(reader, reader.uint32()).value;
6835
- continue;
6836
- }
6837
- if ((tag & 7) === 4 || tag === 0) {
6838
- break;
6839
- }
6840
- reader.skipType(tag & 7);
6841
- }
6842
- return message;
6843
- },
6844
-
6845
- fromJSON(object: any): AuthenticateFacebookRequest {
6846
- return {
6847
- account: isSet(object.account) ? AccountFacebook.fromJSON(object.account) : undefined,
6848
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6849
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6850
- sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
6851
- };
6852
- },
6853
-
6854
- toJSON(message: AuthenticateFacebookRequest): unknown {
6855
- const obj: any = {};
6856
- if (message.account !== undefined) {
6857
- obj.account = AccountFacebook.toJSON(message.account);
6858
- }
6859
- if (message.create !== undefined) {
6860
- obj.create = message.create;
6861
- }
6862
- if (message.username !== "") {
6863
- obj.username = message.username;
6864
- }
6865
- if (message.sync !== undefined) {
6866
- obj.sync = message.sync;
6867
- }
6868
- return obj;
6869
- },
6870
-
6871
- create<I extends Exact<DeepPartial<AuthenticateFacebookRequest>, I>>(base?: I): AuthenticateFacebookRequest {
6872
- return AuthenticateFacebookRequest.fromPartial(base ?? ({} as any));
6873
- },
6874
- fromPartial<I extends Exact<DeepPartial<AuthenticateFacebookRequest>, I>>(object: I): AuthenticateFacebookRequest {
6875
- const message = createBaseAuthenticateFacebookRequest();
6876
- message.account = (object.account !== undefined && object.account !== null)
6877
- ? AccountFacebook.fromPartial(object.account)
6878
- : undefined;
6879
- message.create = object.create ?? undefined;
6880
- message.username = object.username ?? "";
6881
- message.sync = object.sync ?? undefined;
6882
- return message;
6883
- },
6884
- };
6885
-
6886
- function createBaseAuthenticateFacebookInstantGameRequest(): AuthenticateFacebookInstantGameRequest {
6887
- return { account: undefined, create: undefined, username: "" };
6888
- }
6889
-
6890
- export const AuthenticateFacebookInstantGameRequest = {
6891
- encode(message: AuthenticateFacebookInstantGameRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6892
- if (message.account !== undefined) {
6893
- AccountFacebookInstantGame.encode(message.account, writer.uint32(10).fork()).ldelim();
6894
- }
6895
- if (message.create !== undefined) {
6896
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6897
- }
6898
- if (message.username !== "") {
6899
- writer.uint32(26).string(message.username);
6900
- }
6901
- return writer;
6902
- },
6903
-
6904
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateFacebookInstantGameRequest {
6905
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6906
- let end = length === undefined ? reader.len : reader.pos + length;
6907
- const message = createBaseAuthenticateFacebookInstantGameRequest();
6908
- while (reader.pos < end) {
6909
- const tag = reader.uint32();
6910
- switch (tag >>> 3) {
6911
- case 1:
6912
- if (tag !== 10) {
6913
- break;
6914
- }
6915
-
6916
- message.account = AccountFacebookInstantGame.decode(reader, reader.uint32());
6917
- continue;
6918
- case 2:
6919
- if (tag !== 18) {
6920
- break;
6921
- }
6922
-
6923
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6924
- continue;
6925
- case 3:
6926
- if (tag !== 26) {
6927
- break;
6928
- }
6929
-
6930
- message.username = reader.string();
6931
- continue;
6932
- }
6933
- if ((tag & 7) === 4 || tag === 0) {
6934
- break;
6935
- }
6936
- reader.skipType(tag & 7);
6937
- }
6938
- return message;
6939
- },
6940
-
6941
- fromJSON(object: any): AuthenticateFacebookInstantGameRequest {
6942
- return {
6943
- account: isSet(object.account) ? AccountFacebookInstantGame.fromJSON(object.account) : undefined,
6944
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6945
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6946
- };
6947
- },
6948
-
6949
- toJSON(message: AuthenticateFacebookInstantGameRequest): unknown {
6950
- const obj: any = {};
6951
- if (message.account !== undefined) {
6952
- obj.account = AccountFacebookInstantGame.toJSON(message.account);
6953
- }
6954
- if (message.create !== undefined) {
6955
- obj.create = message.create;
6956
- }
6957
- if (message.username !== "") {
6958
- obj.username = message.username;
6959
- }
6960
- return obj;
6961
- },
6962
-
6963
- create<I extends Exact<DeepPartial<AuthenticateFacebookInstantGameRequest>, I>>(
6964
- base?: I,
6965
- ): AuthenticateFacebookInstantGameRequest {
6966
- return AuthenticateFacebookInstantGameRequest.fromPartial(base ?? ({} as any));
6967
- },
6968
- fromPartial<I extends Exact<DeepPartial<AuthenticateFacebookInstantGameRequest>, I>>(
6969
- object: I,
6970
- ): AuthenticateFacebookInstantGameRequest {
6971
- const message = createBaseAuthenticateFacebookInstantGameRequest();
6972
- message.account = (object.account !== undefined && object.account !== null)
6973
- ? AccountFacebookInstantGame.fromPartial(object.account)
6974
- : undefined;
6975
- message.create = object.create ?? undefined;
6976
- message.username = object.username ?? "";
6977
- return message;
6978
- },
6979
- };
6980
-
6981
- function createBaseAuthenticateGameCenterRequest(): AuthenticateGameCenterRequest {
6982
- return { account: undefined, create: undefined, username: "" };
6983
- }
6984
-
6985
- export const AuthenticateGameCenterRequest = {
6986
- encode(message: AuthenticateGameCenterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6987
- if (message.account !== undefined) {
6988
- AccountGameCenter.encode(message.account, writer.uint32(10).fork()).ldelim();
6989
- }
6990
- if (message.create !== undefined) {
6991
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6992
- }
6993
- if (message.username !== "") {
6994
- writer.uint32(26).string(message.username);
6995
- }
6996
- return writer;
6997
- },
6998
-
6999
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateGameCenterRequest {
7000
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7001
- let end = length === undefined ? reader.len : reader.pos + length;
7002
- const message = createBaseAuthenticateGameCenterRequest();
7003
- while (reader.pos < end) {
7004
- const tag = reader.uint32();
7005
- switch (tag >>> 3) {
7006
- case 1:
7007
- if (tag !== 10) {
7008
- break;
7009
- }
7010
-
7011
- message.account = AccountGameCenter.decode(reader, reader.uint32());
7012
- continue;
7013
- case 2:
7014
- if (tag !== 18) {
7015
- break;
7016
- }
7017
-
7018
- message.create = BoolValue.decode(reader, reader.uint32()).value;
7019
- continue;
7020
- case 3:
7021
- if (tag !== 26) {
7022
- break;
7023
- }
7024
-
7025
- message.username = reader.string();
7026
- continue;
7027
- }
7028
- if ((tag & 7) === 4 || tag === 0) {
7029
- break;
7030
- }
7031
- reader.skipType(tag & 7);
7032
- }
7033
- return message;
7034
- },
7035
-
7036
- fromJSON(object: any): AuthenticateGameCenterRequest {
4428
+ fromJSON(object: any): SessionRefreshRequest_VarsEntry {
7037
4429
  return {
7038
- account: isSet(object.account) ? AccountGameCenter.fromJSON(object.account) : undefined,
7039
- create: isSet(object.create) ? Boolean(object.create) : undefined,
7040
- username: isSet(object.username) ? globalThis.String(object.username) : "",
4430
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
4431
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
7041
4432
  };
7042
4433
  },
7043
4434
 
7044
- toJSON(message: AuthenticateGameCenterRequest): unknown {
4435
+ toJSON(message: SessionRefreshRequest_VarsEntry): unknown {
7045
4436
  const obj: any = {};
7046
- if (message.account !== undefined) {
7047
- obj.account = AccountGameCenter.toJSON(message.account);
7048
- }
7049
- if (message.create !== undefined) {
7050
- obj.create = message.create;
4437
+ if (message.key !== "") {
4438
+ obj.key = message.key;
7051
4439
  }
7052
- if (message.username !== "") {
7053
- obj.username = message.username;
4440
+ if (message.value !== "") {
4441
+ obj.value = message.value;
7054
4442
  }
7055
4443
  return obj;
7056
4444
  },
7057
4445
 
7058
- create<I extends Exact<DeepPartial<AuthenticateGameCenterRequest>, I>>(base?: I): AuthenticateGameCenterRequest {
7059
- return AuthenticateGameCenterRequest.fromPartial(base ?? ({} as any));
4446
+ create<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(base?: I): SessionRefreshRequest_VarsEntry {
4447
+ return SessionRefreshRequest_VarsEntry.fromPartial(base ?? ({} as any));
7060
4448
  },
7061
- fromPartial<I extends Exact<DeepPartial<AuthenticateGameCenterRequest>, I>>(
4449
+ fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(
7062
4450
  object: I,
7063
- ): AuthenticateGameCenterRequest {
7064
- const message = createBaseAuthenticateGameCenterRequest();
7065
- message.account = (object.account !== undefined && object.account !== null)
7066
- ? AccountGameCenter.fromPartial(object.account)
7067
- : undefined;
7068
- message.create = object.create ?? undefined;
7069
- message.username = object.username ?? "";
4451
+ ): SessionRefreshRequest_VarsEntry {
4452
+ const message = createBaseSessionRefreshRequest_VarsEntry();
4453
+ message.key = object.key ?? "";
4454
+ message.value = object.value ?? "";
7070
4455
  return message;
7071
4456
  },
7072
4457
  };
7073
4458
 
7074
- function createBaseAuthenticateGoogleRequest(): AuthenticateGoogleRequest {
7075
- return { account: undefined, create: undefined, username: "" };
4459
+ function createBaseSessionLogoutRequest(): SessionLogoutRequest {
4460
+ return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
7076
4461
  }
7077
4462
 
7078
- export const AuthenticateGoogleRequest = {
7079
- encode(message: AuthenticateGoogleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
7080
- if (message.account !== undefined) {
7081
- AccountGoogle.encode(message.account, writer.uint32(10).fork()).ldelim();
7082
- }
7083
- if (message.create !== undefined) {
7084
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
7085
- }
7086
- if (message.username !== "") {
7087
- writer.uint32(26).string(message.username);
7088
- }
7089
- return writer;
7090
- },
7091
-
7092
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateGoogleRequest {
7093
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7094
- let end = length === undefined ? reader.len : reader.pos + length;
7095
- const message = createBaseAuthenticateGoogleRequest();
7096
- while (reader.pos < end) {
7097
- const tag = reader.uint32();
7098
- switch (tag >>> 3) {
7099
- case 1:
7100
- if (tag !== 10) {
7101
- break;
7102
- }
7103
-
7104
- message.account = AccountGoogle.decode(reader, reader.uint32());
7105
- continue;
7106
- case 2:
7107
- if (tag !== 18) {
7108
- break;
7109
- }
7110
-
7111
- message.create = BoolValue.decode(reader, reader.uint32()).value;
7112
- continue;
7113
- case 3:
7114
- if (tag !== 26) {
7115
- break;
7116
- }
7117
-
7118
- message.username = reader.string();
7119
- continue;
7120
- }
7121
- if ((tag & 7) === 4 || tag === 0) {
7122
- break;
7123
- }
7124
- reader.skipType(tag & 7);
7125
- }
7126
- return message;
7127
- },
7128
-
7129
- fromJSON(object: any): AuthenticateGoogleRequest {
7130
- return {
7131
- account: isSet(object.account) ? AccountGoogle.fromJSON(object.account) : undefined,
7132
- create: isSet(object.create) ? Boolean(object.create) : undefined,
7133
- username: isSet(object.username) ? globalThis.String(object.username) : "",
7134
- };
7135
- },
7136
-
7137
- toJSON(message: AuthenticateGoogleRequest): unknown {
7138
- const obj: any = {};
7139
- if (message.account !== undefined) {
7140
- obj.account = AccountGoogle.toJSON(message.account);
7141
- }
7142
- if (message.create !== undefined) {
7143
- obj.create = message.create;
7144
- }
7145
- if (message.username !== "") {
7146
- obj.username = message.username;
4463
+ export const SessionLogoutRequest = {
4464
+ encode(message: SessionLogoutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4465
+ if (message.token !== "") {
4466
+ writer.uint32(10).string(message.token);
7147
4467
  }
7148
- return obj;
7149
- },
7150
-
7151
- create<I extends Exact<DeepPartial<AuthenticateGoogleRequest>, I>>(base?: I): AuthenticateGoogleRequest {
7152
- return AuthenticateGoogleRequest.fromPartial(base ?? ({} as any));
7153
- },
7154
- fromPartial<I extends Exact<DeepPartial<AuthenticateGoogleRequest>, I>>(object: I): AuthenticateGoogleRequest {
7155
- const message = createBaseAuthenticateGoogleRequest();
7156
- message.account = (object.account !== undefined && object.account !== null)
7157
- ? AccountGoogle.fromPartial(object.account)
7158
- : undefined;
7159
- message.create = object.create ?? undefined;
7160
- message.username = object.username ?? "";
7161
- return message;
7162
- },
7163
- };
7164
-
7165
- function createBaseAuthenticateMezonRequest(): AuthenticateMezonRequest {
7166
- return { account: undefined, create: undefined, username: "", is_remember: undefined };
7167
- }
7168
-
7169
- export const AuthenticateMezonRequest = {
7170
- encode(message: AuthenticateMezonRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
7171
- if (message.account !== undefined) {
7172
- AccountMezon.encode(message.account, writer.uint32(10).fork()).ldelim();
4468
+ if (message.refresh_token !== "") {
4469
+ writer.uint32(18).string(message.refresh_token);
7173
4470
  }
7174
- if (message.create !== undefined) {
7175
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
4471
+ if (message.device_id !== "") {
4472
+ writer.uint32(26).string(message.device_id);
7176
4473
  }
7177
- if (message.username !== "") {
7178
- writer.uint32(26).string(message.username);
4474
+ if (message.fcm_token !== "") {
4475
+ writer.uint32(34).string(message.fcm_token);
7179
4476
  }
7180
- if (message.is_remember !== undefined) {
7181
- BoolValue.encode({ value: message.is_remember! }, writer.uint32(34).fork()).ldelim();
4477
+ if (message.platform !== "") {
4478
+ writer.uint32(42).string(message.platform);
7182
4479
  }
7183
4480
  return writer;
7184
4481
  },
7185
4482
 
7186
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateMezonRequest {
4483
+ decode(input: _m0.Reader | Uint8Array, length?: number): SessionLogoutRequest {
7187
4484
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7188
4485
  let end = length === undefined ? reader.len : reader.pos + length;
7189
- const message = createBaseAuthenticateMezonRequest();
4486
+ const message = createBaseSessionLogoutRequest();
7190
4487
  while (reader.pos < end) {
7191
4488
  const tag = reader.uint32();
7192
4489
  switch (tag >>> 3) {
@@ -7195,134 +4492,35 @@ export const AuthenticateMezonRequest = {
7195
4492
  break;
7196
4493
  }
7197
4494
 
7198
- message.account = AccountMezon.decode(reader, reader.uint32());
4495
+ message.token = reader.string();
7199
4496
  continue;
7200
4497
  case 2:
7201
4498
  if (tag !== 18) {
7202
4499
  break;
7203
4500
  }
7204
4501
 
7205
- message.create = BoolValue.decode(reader, reader.uint32()).value;
4502
+ message.refresh_token = reader.string();
7206
4503
  continue;
7207
4504
  case 3:
7208
4505
  if (tag !== 26) {
7209
4506
  break;
7210
4507
  }
7211
4508
 
7212
- message.username = reader.string();
4509
+ message.device_id = reader.string();
7213
4510
  continue;
7214
4511
  case 4:
7215
4512
  if (tag !== 34) {
7216
4513
  break;
7217
4514
  }
7218
4515
 
7219
- message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
7220
- continue;
7221
- }
7222
- if ((tag & 7) === 4 || tag === 0) {
7223
- break;
7224
- }
7225
- reader.skipType(tag & 7);
7226
- }
7227
- return message;
7228
- },
7229
-
7230
- fromJSON(object: any): AuthenticateMezonRequest {
7231
- return {
7232
- account: isSet(object.account) ? AccountMezon.fromJSON(object.account) : undefined,
7233
- create: isSet(object.create) ? Boolean(object.create) : undefined,
7234
- username: isSet(object.username) ? globalThis.String(object.username) : "",
7235
- is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
7236
- };
7237
- },
7238
-
7239
- toJSON(message: AuthenticateMezonRequest): unknown {
7240
- const obj: any = {};
7241
- if (message.account !== undefined) {
7242
- obj.account = AccountMezon.toJSON(message.account);
7243
- }
7244
- if (message.create !== undefined) {
7245
- obj.create = message.create;
7246
- }
7247
- if (message.username !== "") {
7248
- obj.username = message.username;
7249
- }
7250
- if (message.is_remember !== undefined) {
7251
- obj.is_remember = message.is_remember;
7252
- }
7253
- return obj;
7254
- },
7255
-
7256
- create<I extends Exact<DeepPartial<AuthenticateMezonRequest>, I>>(base?: I): AuthenticateMezonRequest {
7257
- return AuthenticateMezonRequest.fromPartial(base ?? ({} as any));
7258
- },
7259
- fromPartial<I extends Exact<DeepPartial<AuthenticateMezonRequest>, I>>(object: I): AuthenticateMezonRequest {
7260
- const message = createBaseAuthenticateMezonRequest();
7261
- message.account = (object.account !== undefined && object.account !== null)
7262
- ? AccountMezon.fromPartial(object.account)
7263
- : undefined;
7264
- message.create = object.create ?? undefined;
7265
- message.username = object.username ?? "";
7266
- message.is_remember = object.is_remember ?? undefined;
7267
- return message;
7268
- },
7269
- };
7270
-
7271
- function createBaseAuthenticateSteamRequest(): AuthenticateSteamRequest {
7272
- return { account: undefined, create: undefined, username: "", sync: undefined };
7273
- }
7274
-
7275
- export const AuthenticateSteamRequest = {
7276
- encode(message: AuthenticateSteamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
7277
- if (message.account !== undefined) {
7278
- AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
7279
- }
7280
- if (message.create !== undefined) {
7281
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
7282
- }
7283
- if (message.username !== "") {
7284
- writer.uint32(26).string(message.username);
7285
- }
7286
- if (message.sync !== undefined) {
7287
- BoolValue.encode({ value: message.sync! }, writer.uint32(34).fork()).ldelim();
7288
- }
7289
- return writer;
7290
- },
7291
-
7292
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateSteamRequest {
7293
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7294
- let end = length === undefined ? reader.len : reader.pos + length;
7295
- const message = createBaseAuthenticateSteamRequest();
7296
- while (reader.pos < end) {
7297
- const tag = reader.uint32();
7298
- switch (tag >>> 3) {
7299
- case 1:
7300
- if (tag !== 10) {
7301
- break;
7302
- }
7303
-
7304
- message.account = AccountSteam.decode(reader, reader.uint32());
7305
- continue;
7306
- case 2:
7307
- if (tag !== 18) {
7308
- break;
7309
- }
7310
-
7311
- message.create = BoolValue.decode(reader, reader.uint32()).value;
7312
- continue;
7313
- case 3:
7314
- if (tag !== 26) {
7315
- break;
7316
- }
7317
-
7318
- message.username = reader.string();
4516
+ message.fcm_token = reader.string();
7319
4517
  continue;
7320
- case 4:
7321
- if (tag !== 34) {
4518
+ case 5:
4519
+ if (tag !== 42) {
7322
4520
  break;
7323
4521
  }
7324
4522
 
7325
- message.sync = BoolValue.decode(reader, reader.uint32()).value;
4523
+ message.platform = reader.string();
7326
4524
  continue;
7327
4525
  }
7328
4526
  if ((tag & 7) === 4 || tag === 0) {
@@ -7333,43 +4531,46 @@ export const AuthenticateSteamRequest = {
7333
4531
  return message;
7334
4532
  },
7335
4533
 
7336
- fromJSON(object: any): AuthenticateSteamRequest {
4534
+ fromJSON(object: any): SessionLogoutRequest {
7337
4535
  return {
7338
- account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
7339
- create: isSet(object.create) ? Boolean(object.create) : undefined,
7340
- username: isSet(object.username) ? globalThis.String(object.username) : "",
7341
- sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
4536
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
4537
+ refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
4538
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
4539
+ fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
4540
+ platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
7342
4541
  };
7343
4542
  },
7344
4543
 
7345
- toJSON(message: AuthenticateSteamRequest): unknown {
4544
+ toJSON(message: SessionLogoutRequest): unknown {
7346
4545
  const obj: any = {};
7347
- if (message.account !== undefined) {
7348
- obj.account = AccountSteam.toJSON(message.account);
4546
+ if (message.token !== "") {
4547
+ obj.token = message.token;
4548
+ }
4549
+ if (message.refresh_token !== "") {
4550
+ obj.refresh_token = message.refresh_token;
7349
4551
  }
7350
- if (message.create !== undefined) {
7351
- obj.create = message.create;
4552
+ if (message.device_id !== "") {
4553
+ obj.device_id = message.device_id;
7352
4554
  }
7353
- if (message.username !== "") {
7354
- obj.username = message.username;
4555
+ if (message.fcm_token !== "") {
4556
+ obj.fcm_token = message.fcm_token;
7355
4557
  }
7356
- if (message.sync !== undefined) {
7357
- obj.sync = message.sync;
4558
+ if (message.platform !== "") {
4559
+ obj.platform = message.platform;
7358
4560
  }
7359
4561
  return obj;
7360
4562
  },
7361
4563
 
7362
- create<I extends Exact<DeepPartial<AuthenticateSteamRequest>, I>>(base?: I): AuthenticateSteamRequest {
7363
- return AuthenticateSteamRequest.fromPartial(base ?? ({} as any));
4564
+ create<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(base?: I): SessionLogoutRequest {
4565
+ return SessionLogoutRequest.fromPartial(base ?? ({} as any));
7364
4566
  },
7365
- fromPartial<I extends Exact<DeepPartial<AuthenticateSteamRequest>, I>>(object: I): AuthenticateSteamRequest {
7366
- const message = createBaseAuthenticateSteamRequest();
7367
- message.account = (object.account !== undefined && object.account !== null)
7368
- ? AccountSteam.fromPartial(object.account)
7369
- : undefined;
7370
- message.create = object.create ?? undefined;
7371
- message.username = object.username ?? "";
7372
- message.sync = object.sync ?? undefined;
4567
+ fromPartial<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(object: I): SessionLogoutRequest {
4568
+ const message = createBaseSessionLogoutRequest();
4569
+ message.token = object.token ?? "";
4570
+ message.refresh_token = object.refresh_token ?? "";
4571
+ message.device_id = object.device_id ?? "";
4572
+ message.fcm_token = object.fcm_token ?? "";
4573
+ message.platform = object.platform ?? "";
7373
4574
  return message;
7374
4575
  },
7375
4576
  };
@@ -11435,158 +8636,6 @@ export const ClanUserList_ClanUser = {
11435
8636
  },
11436
8637
  };
11437
8638
 
11438
- function createBaseImportFacebookFriendsRequest(): ImportFacebookFriendsRequest {
11439
- return { account: undefined, reset: undefined };
11440
- }
11441
-
11442
- export const ImportFacebookFriendsRequest = {
11443
- encode(message: ImportFacebookFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
11444
- if (message.account !== undefined) {
11445
- AccountFacebook.encode(message.account, writer.uint32(10).fork()).ldelim();
11446
- }
11447
- if (message.reset !== undefined) {
11448
- BoolValue.encode({ value: message.reset! }, writer.uint32(18).fork()).ldelim();
11449
- }
11450
- return writer;
11451
- },
11452
-
11453
- decode(input: _m0.Reader | Uint8Array, length?: number): ImportFacebookFriendsRequest {
11454
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11455
- let end = length === undefined ? reader.len : reader.pos + length;
11456
- const message = createBaseImportFacebookFriendsRequest();
11457
- while (reader.pos < end) {
11458
- const tag = reader.uint32();
11459
- switch (tag >>> 3) {
11460
- case 1:
11461
- if (tag !== 10) {
11462
- break;
11463
- }
11464
-
11465
- message.account = AccountFacebook.decode(reader, reader.uint32());
11466
- continue;
11467
- case 2:
11468
- if (tag !== 18) {
11469
- break;
11470
- }
11471
-
11472
- message.reset = BoolValue.decode(reader, reader.uint32()).value;
11473
- continue;
11474
- }
11475
- if ((tag & 7) === 4 || tag === 0) {
11476
- break;
11477
- }
11478
- reader.skipType(tag & 7);
11479
- }
11480
- return message;
11481
- },
11482
-
11483
- fromJSON(object: any): ImportFacebookFriendsRequest {
11484
- return {
11485
- account: isSet(object.account) ? AccountFacebook.fromJSON(object.account) : undefined,
11486
- reset: isSet(object.reset) ? Boolean(object.reset) : undefined,
11487
- };
11488
- },
11489
-
11490
- toJSON(message: ImportFacebookFriendsRequest): unknown {
11491
- const obj: any = {};
11492
- if (message.account !== undefined) {
11493
- obj.account = AccountFacebook.toJSON(message.account);
11494
- }
11495
- if (message.reset !== undefined) {
11496
- obj.reset = message.reset;
11497
- }
11498
- return obj;
11499
- },
11500
-
11501
- create<I extends Exact<DeepPartial<ImportFacebookFriendsRequest>, I>>(base?: I): ImportFacebookFriendsRequest {
11502
- return ImportFacebookFriendsRequest.fromPartial(base ?? ({} as any));
11503
- },
11504
- fromPartial<I extends Exact<DeepPartial<ImportFacebookFriendsRequest>, I>>(object: I): ImportFacebookFriendsRequest {
11505
- const message = createBaseImportFacebookFriendsRequest();
11506
- message.account = (object.account !== undefined && object.account !== null)
11507
- ? AccountFacebook.fromPartial(object.account)
11508
- : undefined;
11509
- message.reset = object.reset ?? undefined;
11510
- return message;
11511
- },
11512
- };
11513
-
11514
- function createBaseImportSteamFriendsRequest(): ImportSteamFriendsRequest {
11515
- return { account: undefined, reset: undefined };
11516
- }
11517
-
11518
- export const ImportSteamFriendsRequest = {
11519
- encode(message: ImportSteamFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
11520
- if (message.account !== undefined) {
11521
- AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
11522
- }
11523
- if (message.reset !== undefined) {
11524
- BoolValue.encode({ value: message.reset! }, writer.uint32(18).fork()).ldelim();
11525
- }
11526
- return writer;
11527
- },
11528
-
11529
- decode(input: _m0.Reader | Uint8Array, length?: number): ImportSteamFriendsRequest {
11530
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11531
- let end = length === undefined ? reader.len : reader.pos + length;
11532
- const message = createBaseImportSteamFriendsRequest();
11533
- while (reader.pos < end) {
11534
- const tag = reader.uint32();
11535
- switch (tag >>> 3) {
11536
- case 1:
11537
- if (tag !== 10) {
11538
- break;
11539
- }
11540
-
11541
- message.account = AccountSteam.decode(reader, reader.uint32());
11542
- continue;
11543
- case 2:
11544
- if (tag !== 18) {
11545
- break;
11546
- }
11547
-
11548
- message.reset = BoolValue.decode(reader, reader.uint32()).value;
11549
- continue;
11550
- }
11551
- if ((tag & 7) === 4 || tag === 0) {
11552
- break;
11553
- }
11554
- reader.skipType(tag & 7);
11555
- }
11556
- return message;
11557
- },
11558
-
11559
- fromJSON(object: any): ImportSteamFriendsRequest {
11560
- return {
11561
- account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
11562
- reset: isSet(object.reset) ? Boolean(object.reset) : undefined,
11563
- };
11564
- },
11565
-
11566
- toJSON(message: ImportSteamFriendsRequest): unknown {
11567
- const obj: any = {};
11568
- if (message.account !== undefined) {
11569
- obj.account = AccountSteam.toJSON(message.account);
11570
- }
11571
- if (message.reset !== undefined) {
11572
- obj.reset = message.reset;
11573
- }
11574
- return obj;
11575
- },
11576
-
11577
- create<I extends Exact<DeepPartial<ImportSteamFriendsRequest>, I>>(base?: I): ImportSteamFriendsRequest {
11578
- return ImportSteamFriendsRequest.fromPartial(base ?? ({} as any));
11579
- },
11580
- fromPartial<I extends Exact<DeepPartial<ImportSteamFriendsRequest>, I>>(object: I): ImportSteamFriendsRequest {
11581
- const message = createBaseImportSteamFriendsRequest();
11582
- message.account = (object.account !== undefined && object.account !== null)
11583
- ? AccountSteam.fromPartial(object.account)
11584
- : undefined;
11585
- message.reset = object.reset ?? undefined;
11586
- return message;
11587
- },
11588
- };
11589
-
11590
8639
  function createBaseRegistFcmDeviceTokenRequest(): RegistFcmDeviceTokenRequest {
11591
8640
  return { token: "", device_id: "", platform: "" };
11592
8641
  }
@@ -11765,158 +8814,6 @@ export const RegistFcmDeviceTokenResponse = {
11765
8814
  },
11766
8815
  };
11767
8816
 
11768
- function createBaseLinkFacebookRequest(): LinkFacebookRequest {
11769
- return { account: undefined, sync: undefined };
11770
- }
11771
-
11772
- export const LinkFacebookRequest = {
11773
- encode(message: LinkFacebookRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
11774
- if (message.account !== undefined) {
11775
- AccountFacebook.encode(message.account, writer.uint32(10).fork()).ldelim();
11776
- }
11777
- if (message.sync !== undefined) {
11778
- BoolValue.encode({ value: message.sync! }, writer.uint32(18).fork()).ldelim();
11779
- }
11780
- return writer;
11781
- },
11782
-
11783
- decode(input: _m0.Reader | Uint8Array, length?: number): LinkFacebookRequest {
11784
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11785
- let end = length === undefined ? reader.len : reader.pos + length;
11786
- const message = createBaseLinkFacebookRequest();
11787
- while (reader.pos < end) {
11788
- const tag = reader.uint32();
11789
- switch (tag >>> 3) {
11790
- case 1:
11791
- if (tag !== 10) {
11792
- break;
11793
- }
11794
-
11795
- message.account = AccountFacebook.decode(reader, reader.uint32());
11796
- continue;
11797
- case 2:
11798
- if (tag !== 18) {
11799
- break;
11800
- }
11801
-
11802
- message.sync = BoolValue.decode(reader, reader.uint32()).value;
11803
- continue;
11804
- }
11805
- if ((tag & 7) === 4 || tag === 0) {
11806
- break;
11807
- }
11808
- reader.skipType(tag & 7);
11809
- }
11810
- return message;
11811
- },
11812
-
11813
- fromJSON(object: any): LinkFacebookRequest {
11814
- return {
11815
- account: isSet(object.account) ? AccountFacebook.fromJSON(object.account) : undefined,
11816
- sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
11817
- };
11818
- },
11819
-
11820
- toJSON(message: LinkFacebookRequest): unknown {
11821
- const obj: any = {};
11822
- if (message.account !== undefined) {
11823
- obj.account = AccountFacebook.toJSON(message.account);
11824
- }
11825
- if (message.sync !== undefined) {
11826
- obj.sync = message.sync;
11827
- }
11828
- return obj;
11829
- },
11830
-
11831
- create<I extends Exact<DeepPartial<LinkFacebookRequest>, I>>(base?: I): LinkFacebookRequest {
11832
- return LinkFacebookRequest.fromPartial(base ?? ({} as any));
11833
- },
11834
- fromPartial<I extends Exact<DeepPartial<LinkFacebookRequest>, I>>(object: I): LinkFacebookRequest {
11835
- const message = createBaseLinkFacebookRequest();
11836
- message.account = (object.account !== undefined && object.account !== null)
11837
- ? AccountFacebook.fromPartial(object.account)
11838
- : undefined;
11839
- message.sync = object.sync ?? undefined;
11840
- return message;
11841
- },
11842
- };
11843
-
11844
- function createBaseLinkSteamRequest(): LinkSteamRequest {
11845
- return { account: undefined, sync: undefined };
11846
- }
11847
-
11848
- export const LinkSteamRequest = {
11849
- encode(message: LinkSteamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
11850
- if (message.account !== undefined) {
11851
- AccountSteam.encode(message.account, writer.uint32(10).fork()).ldelim();
11852
- }
11853
- if (message.sync !== undefined) {
11854
- BoolValue.encode({ value: message.sync! }, writer.uint32(18).fork()).ldelim();
11855
- }
11856
- return writer;
11857
- },
11858
-
11859
- decode(input: _m0.Reader | Uint8Array, length?: number): LinkSteamRequest {
11860
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11861
- let end = length === undefined ? reader.len : reader.pos + length;
11862
- const message = createBaseLinkSteamRequest();
11863
- while (reader.pos < end) {
11864
- const tag = reader.uint32();
11865
- switch (tag >>> 3) {
11866
- case 1:
11867
- if (tag !== 10) {
11868
- break;
11869
- }
11870
-
11871
- message.account = AccountSteam.decode(reader, reader.uint32());
11872
- continue;
11873
- case 2:
11874
- if (tag !== 18) {
11875
- break;
11876
- }
11877
-
11878
- message.sync = BoolValue.decode(reader, reader.uint32()).value;
11879
- continue;
11880
- }
11881
- if ((tag & 7) === 4 || tag === 0) {
11882
- break;
11883
- }
11884
- reader.skipType(tag & 7);
11885
- }
11886
- return message;
11887
- },
11888
-
11889
- fromJSON(object: any): LinkSteamRequest {
11890
- return {
11891
- account: isSet(object.account) ? AccountSteam.fromJSON(object.account) : undefined,
11892
- sync: isSet(object.sync) ? Boolean(object.sync) : undefined,
11893
- };
11894
- },
11895
-
11896
- toJSON(message: LinkSteamRequest): unknown {
11897
- const obj: any = {};
11898
- if (message.account !== undefined) {
11899
- obj.account = AccountSteam.toJSON(message.account);
11900
- }
11901
- if (message.sync !== undefined) {
11902
- obj.sync = message.sync;
11903
- }
11904
- return obj;
11905
- },
11906
-
11907
- create<I extends Exact<DeepPartial<LinkSteamRequest>, I>>(base?: I): LinkSteamRequest {
11908
- return LinkSteamRequest.fromPartial(base ?? ({} as any));
11909
- },
11910
- fromPartial<I extends Exact<DeepPartial<LinkSteamRequest>, I>>(object: I): LinkSteamRequest {
11911
- const message = createBaseLinkSteamRequest();
11912
- message.account = (object.account !== undefined && object.account !== null)
11913
- ? AccountSteam.fromPartial(object.account)
11914
- : undefined;
11915
- message.sync = object.sync ?? undefined;
11916
- return message;
11917
- },
11918
- };
11919
-
11920
8817
  function createBaseListChannelMessagesRequest(): ListChannelMessagesRequest {
11921
8818
  return { clan_id: "", channel_id: "", message_id: "", limit: undefined, direction: undefined, topic_id: "" };
11922
8819
  }
@@ -16026,6 +12923,8 @@ function createBaseInviteUserRes(): InviteUserRes {
16026
12923
  user_joined: false,
16027
12924
  expiry_time: undefined,
16028
12925
  channel_desc: undefined,
12926
+ clan_logo: "",
12927
+ member_count: 0,
16029
12928
  };
16030
12929
  }
16031
12930
 
@@ -16052,6 +12951,12 @@ export const InviteUserRes = {
16052
12951
  if (message.channel_desc !== undefined) {
16053
12952
  ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
16054
12953
  }
12954
+ if (message.clan_logo !== "") {
12955
+ writer.uint32(66).string(message.clan_logo);
12956
+ }
12957
+ if (message.member_count !== 0) {
12958
+ writer.uint32(72).int32(message.member_count);
12959
+ }
16055
12960
  return writer;
16056
12961
  },
16057
12962
 
@@ -16111,6 +13016,20 @@ export const InviteUserRes = {
16111
13016
 
16112
13017
  message.channel_desc = ChannelDescription.decode(reader, reader.uint32());
16113
13018
  continue;
13019
+ case 8:
13020
+ if (tag !== 66) {
13021
+ break;
13022
+ }
13023
+
13024
+ message.clan_logo = reader.string();
13025
+ continue;
13026
+ case 9:
13027
+ if (tag !== 72) {
13028
+ break;
13029
+ }
13030
+
13031
+ message.member_count = reader.int32();
13032
+ continue;
16114
13033
  }
16115
13034
  if ((tag & 7) === 4 || tag === 0) {
16116
13035
  break;
@@ -16129,6 +13048,8 @@ export const InviteUserRes = {
16129
13048
  user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
16130
13049
  expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
16131
13050
  channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
13051
+ clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
13052
+ member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
16132
13053
  };
16133
13054
  },
16134
13055
 
@@ -16155,6 +13076,12 @@ export const InviteUserRes = {
16155
13076
  if (message.channel_desc !== undefined) {
16156
13077
  obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
16157
13078
  }
13079
+ if (message.clan_logo !== "") {
13080
+ obj.clan_logo = message.clan_logo;
13081
+ }
13082
+ if (message.member_count !== 0) {
13083
+ obj.member_count = Math.round(message.member_count);
13084
+ }
16158
13085
  return obj;
16159
13086
  },
16160
13087
 
@@ -16172,6 +13099,8 @@ export const InviteUserRes = {
16172
13099
  message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
16173
13100
  ? ChannelDescription.fromPartial(object.channel_desc)
16174
13101
  : undefined;
13102
+ message.clan_logo = object.clan_logo ?? "";
13103
+ message.member_count = object.member_count ?? 0;
16175
13104
  return message;
16176
13105
  },
16177
13106
  };
@@ -29106,262 +26035,6 @@ export const AppClan = {
29106
26035
  },
29107
26036
  };
29108
26037
 
29109
- function createBaseAuthenticateRequest(): AuthenticateRequest {
29110
- return { account: undefined };
29111
- }
29112
-
29113
- export const AuthenticateRequest = {
29114
- encode(message: AuthenticateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29115
- if (message.account !== undefined) {
29116
- AccountApp.encode(message.account, writer.uint32(10).fork()).ldelim();
29117
- }
29118
- return writer;
29119
- },
29120
-
29121
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateRequest {
29122
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29123
- let end = length === undefined ? reader.len : reader.pos + length;
29124
- const message = createBaseAuthenticateRequest();
29125
- while (reader.pos < end) {
29126
- const tag = reader.uint32();
29127
- switch (tag >>> 3) {
29128
- case 1:
29129
- if (tag !== 10) {
29130
- break;
29131
- }
29132
-
29133
- message.account = AccountApp.decode(reader, reader.uint32());
29134
- continue;
29135
- }
29136
- if ((tag & 7) === 4 || tag === 0) {
29137
- break;
29138
- }
29139
- reader.skipType(tag & 7);
29140
- }
29141
- return message;
29142
- },
29143
-
29144
- fromJSON(object: any): AuthenticateRequest {
29145
- return { account: isSet(object.account) ? AccountApp.fromJSON(object.account) : undefined };
29146
- },
29147
-
29148
- toJSON(message: AuthenticateRequest): unknown {
29149
- const obj: any = {};
29150
- if (message.account !== undefined) {
29151
- obj.account = AccountApp.toJSON(message.account);
29152
- }
29153
- return obj;
29154
- },
29155
-
29156
- create<I extends Exact<DeepPartial<AuthenticateRequest>, I>>(base?: I): AuthenticateRequest {
29157
- return AuthenticateRequest.fromPartial(base ?? ({} as any));
29158
- },
29159
- fromPartial<I extends Exact<DeepPartial<AuthenticateRequest>, I>>(object: I): AuthenticateRequest {
29160
- const message = createBaseAuthenticateRequest();
29161
- message.account = (object.account !== undefined && object.account !== null)
29162
- ? AccountApp.fromPartial(object.account)
29163
- : undefined;
29164
- return message;
29165
- },
29166
- };
29167
-
29168
- function createBaseAccountApp(): AccountApp {
29169
- return { appid: "", appname: "", token: "", vars: {} };
29170
- }
29171
-
29172
- export const AccountApp = {
29173
- encode(message: AccountApp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29174
- if (message.appid !== "") {
29175
- writer.uint32(10).string(message.appid);
29176
- }
29177
- if (message.appname !== "") {
29178
- writer.uint32(18).string(message.appname);
29179
- }
29180
- if (message.token !== "") {
29181
- writer.uint32(26).string(message.token);
29182
- }
29183
- Object.entries(message.vars).forEach(([key, value]) => {
29184
- AccountApp_VarsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim();
29185
- });
29186
- return writer;
29187
- },
29188
-
29189
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountApp {
29190
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29191
- let end = length === undefined ? reader.len : reader.pos + length;
29192
- const message = createBaseAccountApp();
29193
- while (reader.pos < end) {
29194
- const tag = reader.uint32();
29195
- switch (tag >>> 3) {
29196
- case 1:
29197
- if (tag !== 10) {
29198
- break;
29199
- }
29200
-
29201
- message.appid = reader.string();
29202
- continue;
29203
- case 2:
29204
- if (tag !== 18) {
29205
- break;
29206
- }
29207
-
29208
- message.appname = reader.string();
29209
- continue;
29210
- case 3:
29211
- if (tag !== 26) {
29212
- break;
29213
- }
29214
-
29215
- message.token = reader.string();
29216
- continue;
29217
- case 4:
29218
- if (tag !== 34) {
29219
- break;
29220
- }
29221
-
29222
- const entry4 = AccountApp_VarsEntry.decode(reader, reader.uint32());
29223
- if (entry4.value !== undefined) {
29224
- message.vars[entry4.key] = entry4.value;
29225
- }
29226
- continue;
29227
- }
29228
- if ((tag & 7) === 4 || tag === 0) {
29229
- break;
29230
- }
29231
- reader.skipType(tag & 7);
29232
- }
29233
- return message;
29234
- },
29235
-
29236
- fromJSON(object: any): AccountApp {
29237
- return {
29238
- appid: isSet(object.appid) ? globalThis.String(object.appid) : "",
29239
- appname: isSet(object.appname) ? globalThis.String(object.appname) : "",
29240
- token: isSet(object.token) ? globalThis.String(object.token) : "",
29241
- vars: isObject(object.vars)
29242
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
29243
- acc[key] = String(value);
29244
- return acc;
29245
- }, {})
29246
- : {},
29247
- };
29248
- },
29249
-
29250
- toJSON(message: AccountApp): unknown {
29251
- const obj: any = {};
29252
- if (message.appid !== "") {
29253
- obj.appid = message.appid;
29254
- }
29255
- if (message.appname !== "") {
29256
- obj.appname = message.appname;
29257
- }
29258
- if (message.token !== "") {
29259
- obj.token = message.token;
29260
- }
29261
- if (message.vars) {
29262
- const entries = Object.entries(message.vars);
29263
- if (entries.length > 0) {
29264
- obj.vars = {};
29265
- entries.forEach(([k, v]) => {
29266
- obj.vars[k] = v;
29267
- });
29268
- }
29269
- }
29270
- return obj;
29271
- },
29272
-
29273
- create<I extends Exact<DeepPartial<AccountApp>, I>>(base?: I): AccountApp {
29274
- return AccountApp.fromPartial(base ?? ({} as any));
29275
- },
29276
- fromPartial<I extends Exact<DeepPartial<AccountApp>, I>>(object: I): AccountApp {
29277
- const message = createBaseAccountApp();
29278
- message.appid = object.appid ?? "";
29279
- message.appname = object.appname ?? "";
29280
- message.token = object.token ?? "";
29281
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
29282
- if (value !== undefined) {
29283
- acc[key] = globalThis.String(value);
29284
- }
29285
- return acc;
29286
- }, {});
29287
- return message;
29288
- },
29289
- };
29290
-
29291
- function createBaseAccountApp_VarsEntry(): AccountApp_VarsEntry {
29292
- return { key: "", value: "" };
29293
- }
29294
-
29295
- export const AccountApp_VarsEntry = {
29296
- encode(message: AccountApp_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29297
- if (message.key !== "") {
29298
- writer.uint32(10).string(message.key);
29299
- }
29300
- if (message.value !== "") {
29301
- writer.uint32(18).string(message.value);
29302
- }
29303
- return writer;
29304
- },
29305
-
29306
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountApp_VarsEntry {
29307
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29308
- let end = length === undefined ? reader.len : reader.pos + length;
29309
- const message = createBaseAccountApp_VarsEntry();
29310
- while (reader.pos < end) {
29311
- const tag = reader.uint32();
29312
- switch (tag >>> 3) {
29313
- case 1:
29314
- if (tag !== 10) {
29315
- break;
29316
- }
29317
-
29318
- message.key = reader.string();
29319
- continue;
29320
- case 2:
29321
- if (tag !== 18) {
29322
- break;
29323
- }
29324
-
29325
- message.value = reader.string();
29326
- continue;
29327
- }
29328
- if ((tag & 7) === 4 || tag === 0) {
29329
- break;
29330
- }
29331
- reader.skipType(tag & 7);
29332
- }
29333
- return message;
29334
- },
29335
-
29336
- fromJSON(object: any): AccountApp_VarsEntry {
29337
- return {
29338
- key: isSet(object.key) ? globalThis.String(object.key) : "",
29339
- value: isSet(object.value) ? globalThis.String(object.value) : "",
29340
- };
29341
- },
29342
-
29343
- toJSON(message: AccountApp_VarsEntry): unknown {
29344
- const obj: any = {};
29345
- if (message.key !== "") {
29346
- obj.key = message.key;
29347
- }
29348
- if (message.value !== "") {
29349
- obj.value = message.value;
29350
- }
29351
- return obj;
29352
- },
29353
-
29354
- create<I extends Exact<DeepPartial<AccountApp_VarsEntry>, I>>(base?: I): AccountApp_VarsEntry {
29355
- return AccountApp_VarsEntry.fromPartial(base ?? ({} as any));
29356
- },
29357
- fromPartial<I extends Exact<DeepPartial<AccountApp_VarsEntry>, I>>(object: I): AccountApp_VarsEntry {
29358
- const message = createBaseAccountApp_VarsEntry();
29359
- message.key = object.key ?? "";
29360
- message.value = object.value ?? "";
29361
- return message;
29362
- },
29363
- };
29364
-
29365
26038
  function createBaseDeleteChannelMessagesRequest(): DeleteChannelMessagesRequest {
29366
26039
  return { before: undefined, ids: [] };
29367
26040
  }
@@ -38832,114 +35505,6 @@ export const GenerateMeetTokenRequest = {
38832
35505
  },
38833
35506
  };
38834
35507
 
38835
- function createBaseGenerateMeetTokenExternalRequest(): GenerateMeetTokenExternalRequest {
38836
- return { body: undefined, token: "", display_name: "", is_guest: false };
38837
- }
38838
-
38839
- export const GenerateMeetTokenExternalRequest = {
38840
- encode(message: GenerateMeetTokenExternalRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38841
- if (message.body !== undefined) {
38842
- Struct.encode(Struct.wrap(message.body), writer.uint32(10).fork()).ldelim();
38843
- }
38844
- if (message.token !== "") {
38845
- writer.uint32(18).string(message.token);
38846
- }
38847
- if (message.display_name !== "") {
38848
- writer.uint32(26).string(message.display_name);
38849
- }
38850
- if (message.is_guest !== false) {
38851
- writer.uint32(32).bool(message.is_guest);
38852
- }
38853
- return writer;
38854
- },
38855
-
38856
- decode(input: _m0.Reader | Uint8Array, length?: number): GenerateMeetTokenExternalRequest {
38857
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38858
- let end = length === undefined ? reader.len : reader.pos + length;
38859
- const message = createBaseGenerateMeetTokenExternalRequest();
38860
- while (reader.pos < end) {
38861
- const tag = reader.uint32();
38862
- switch (tag >>> 3) {
38863
- case 1:
38864
- if (tag !== 10) {
38865
- break;
38866
- }
38867
-
38868
- message.body = Struct.unwrap(Struct.decode(reader, reader.uint32()));
38869
- continue;
38870
- case 2:
38871
- if (tag !== 18) {
38872
- break;
38873
- }
38874
-
38875
- message.token = reader.string();
38876
- continue;
38877
- case 3:
38878
- if (tag !== 26) {
38879
- break;
38880
- }
38881
-
38882
- message.display_name = reader.string();
38883
- continue;
38884
- case 4:
38885
- if (tag !== 32) {
38886
- break;
38887
- }
38888
-
38889
- message.is_guest = reader.bool();
38890
- continue;
38891
- }
38892
- if ((tag & 7) === 4 || tag === 0) {
38893
- break;
38894
- }
38895
- reader.skipType(tag & 7);
38896
- }
38897
- return message;
38898
- },
38899
-
38900
- fromJSON(object: any): GenerateMeetTokenExternalRequest {
38901
- return {
38902
- body: isObject(object.body) ? object.body : undefined,
38903
- token: isSet(object.token) ? globalThis.String(object.token) : "",
38904
- display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
38905
- is_guest: isSet(object.is_guest) ? globalThis.Boolean(object.is_guest) : false,
38906
- };
38907
- },
38908
-
38909
- toJSON(message: GenerateMeetTokenExternalRequest): unknown {
38910
- const obj: any = {};
38911
- if (message.body !== undefined) {
38912
- obj.body = message.body;
38913
- }
38914
- if (message.token !== "") {
38915
- obj.token = message.token;
38916
- }
38917
- if (message.display_name !== "") {
38918
- obj.display_name = message.display_name;
38919
- }
38920
- if (message.is_guest !== false) {
38921
- obj.is_guest = message.is_guest;
38922
- }
38923
- return obj;
38924
- },
38925
-
38926
- create<I extends Exact<DeepPartial<GenerateMeetTokenExternalRequest>, I>>(
38927
- base?: I,
38928
- ): GenerateMeetTokenExternalRequest {
38929
- return GenerateMeetTokenExternalRequest.fromPartial(base ?? ({} as any));
38930
- },
38931
- fromPartial<I extends Exact<DeepPartial<GenerateMeetTokenExternalRequest>, I>>(
38932
- object: I,
38933
- ): GenerateMeetTokenExternalRequest {
38934
- const message = createBaseGenerateMeetTokenExternalRequest();
38935
- message.body = object.body ?? undefined;
38936
- message.token = object.token ?? "";
38937
- message.display_name = object.display_name ?? "";
38938
- message.is_guest = object.is_guest ?? false;
38939
- return message;
38940
- },
38941
- };
38942
-
38943
35508
  function createBaseGenerateMeetTokenResponse(): GenerateMeetTokenResponse {
38944
35509
  return { token: "" };
38945
35510
  }
@@ -38997,99 +35562,6 @@ export const GenerateMeetTokenResponse = {
38997
35562
  },
38998
35563
  };
38999
35564
 
39000
- function createBaseGenerateMeetTokenExternalResponse(): GenerateMeetTokenExternalResponse {
39001
- return { token: "", guest_user_id: "", guest_access_token: "" };
39002
- }
39003
-
39004
- export const GenerateMeetTokenExternalResponse = {
39005
- encode(message: GenerateMeetTokenExternalResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39006
- if (message.token !== "") {
39007
- writer.uint32(10).string(message.token);
39008
- }
39009
- if (message.guest_user_id !== "") {
39010
- writer.uint32(18).string(message.guest_user_id);
39011
- }
39012
- if (message.guest_access_token !== "") {
39013
- writer.uint32(26).string(message.guest_access_token);
39014
- }
39015
- return writer;
39016
- },
39017
-
39018
- decode(input: _m0.Reader | Uint8Array, length?: number): GenerateMeetTokenExternalResponse {
39019
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39020
- let end = length === undefined ? reader.len : reader.pos + length;
39021
- const message = createBaseGenerateMeetTokenExternalResponse();
39022
- while (reader.pos < end) {
39023
- const tag = reader.uint32();
39024
- switch (tag >>> 3) {
39025
- case 1:
39026
- if (tag !== 10) {
39027
- break;
39028
- }
39029
-
39030
- message.token = reader.string();
39031
- continue;
39032
- case 2:
39033
- if (tag !== 18) {
39034
- break;
39035
- }
39036
-
39037
- message.guest_user_id = reader.string();
39038
- continue;
39039
- case 3:
39040
- if (tag !== 26) {
39041
- break;
39042
- }
39043
-
39044
- message.guest_access_token = reader.string();
39045
- continue;
39046
- }
39047
- if ((tag & 7) === 4 || tag === 0) {
39048
- break;
39049
- }
39050
- reader.skipType(tag & 7);
39051
- }
39052
- return message;
39053
- },
39054
-
39055
- fromJSON(object: any): GenerateMeetTokenExternalResponse {
39056
- return {
39057
- token: isSet(object.token) ? globalThis.String(object.token) : "",
39058
- guest_user_id: isSet(object.guest_user_id) ? globalThis.String(object.guest_user_id) : "",
39059
- guest_access_token: isSet(object.guest_access_token) ? globalThis.String(object.guest_access_token) : "",
39060
- };
39061
- },
39062
-
39063
- toJSON(message: GenerateMeetTokenExternalResponse): unknown {
39064
- const obj: any = {};
39065
- if (message.token !== "") {
39066
- obj.token = message.token;
39067
- }
39068
- if (message.guest_user_id !== "") {
39069
- obj.guest_user_id = message.guest_user_id;
39070
- }
39071
- if (message.guest_access_token !== "") {
39072
- obj.guest_access_token = message.guest_access_token;
39073
- }
39074
- return obj;
39075
- },
39076
-
39077
- create<I extends Exact<DeepPartial<GenerateMeetTokenExternalResponse>, I>>(
39078
- base?: I,
39079
- ): GenerateMeetTokenExternalResponse {
39080
- return GenerateMeetTokenExternalResponse.fromPartial(base ?? ({} as any));
39081
- },
39082
- fromPartial<I extends Exact<DeepPartial<GenerateMeetTokenExternalResponse>, I>>(
39083
- object: I,
39084
- ): GenerateMeetTokenExternalResponse {
39085
- const message = createBaseGenerateMeetTokenExternalResponse();
39086
- message.token = object.token ?? "";
39087
- message.guest_user_id = object.guest_user_id ?? "";
39088
- message.guest_access_token = object.guest_access_token ?? "";
39089
- return message;
39090
- },
39091
- };
39092
-
39093
35565
  function createBaseGenerateMezonMeetResponse(): GenerateMezonMeetResponse {
39094
35566
  return { meet_id: "", room_name: "", external_link: "", creator_id: "", event_id: "" };
39095
35567
  }
@@ -40483,80 +36955,6 @@ export const GenerateHashChannelAppsResponse = {
40483
36955
  },
40484
36956
  };
40485
36957
 
40486
- function createBaseGetMezonAccountRequest(): GetMezonAccountRequest {
40487
- return { secret: "", email: "" };
40488
- }
40489
-
40490
- export const GetMezonAccountRequest = {
40491
- encode(message: GetMezonAccountRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
40492
- if (message.secret !== "") {
40493
- writer.uint32(10).string(message.secret);
40494
- }
40495
- if (message.email !== "") {
40496
- writer.uint32(18).string(message.email);
40497
- }
40498
- return writer;
40499
- },
40500
-
40501
- decode(input: _m0.Reader | Uint8Array, length?: number): GetMezonAccountRequest {
40502
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
40503
- let end = length === undefined ? reader.len : reader.pos + length;
40504
- const message = createBaseGetMezonAccountRequest();
40505
- while (reader.pos < end) {
40506
- const tag = reader.uint32();
40507
- switch (tag >>> 3) {
40508
- case 1:
40509
- if (tag !== 10) {
40510
- break;
40511
- }
40512
-
40513
- message.secret = reader.string();
40514
- continue;
40515
- case 2:
40516
- if (tag !== 18) {
40517
- break;
40518
- }
40519
-
40520
- message.email = reader.string();
40521
- continue;
40522
- }
40523
- if ((tag & 7) === 4 || tag === 0) {
40524
- break;
40525
- }
40526
- reader.skipType(tag & 7);
40527
- }
40528
- return message;
40529
- },
40530
-
40531
- fromJSON(object: any): GetMezonAccountRequest {
40532
- return {
40533
- secret: isSet(object.secret) ? globalThis.String(object.secret) : "",
40534
- email: isSet(object.email) ? globalThis.String(object.email) : "",
40535
- };
40536
- },
40537
-
40538
- toJSON(message: GetMezonAccountRequest): unknown {
40539
- const obj: any = {};
40540
- if (message.secret !== "") {
40541
- obj.secret = message.secret;
40542
- }
40543
- if (message.email !== "") {
40544
- obj.email = message.email;
40545
- }
40546
- return obj;
40547
- },
40548
-
40549
- create<I extends Exact<DeepPartial<GetMezonAccountRequest>, I>>(base?: I): GetMezonAccountRequest {
40550
- return GetMezonAccountRequest.fromPartial(base ?? ({} as any));
40551
- },
40552
- fromPartial<I extends Exact<DeepPartial<GetMezonAccountRequest>, I>>(object: I): GetMezonAccountRequest {
40553
- const message = createBaseGetMezonAccountRequest();
40554
- message.secret = object.secret ?? "";
40555
- message.email = object.email ?? "";
40556
- return message;
40557
- },
40558
- };
40559
-
40560
36958
  function createBaseMessage2InboxRequest(): Message2InboxRequest {
40561
36959
  return {
40562
36960
  message_id: "",
@@ -40746,6 +37144,355 @@ export const Message2InboxRequest = {
40746
37144
  },
40747
37145
  };
40748
37146
 
37147
+ function createBaseAccountEmail(): AccountEmail {
37148
+ return { email: "", password: "", vars: {} };
37149
+ }
37150
+
37151
+ export const AccountEmail = {
37152
+ encode(message: AccountEmail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
37153
+ if (message.email !== "") {
37154
+ writer.uint32(10).string(message.email);
37155
+ }
37156
+ if (message.password !== "") {
37157
+ writer.uint32(18).string(message.password);
37158
+ }
37159
+ Object.entries(message.vars).forEach(([key, value]) => {
37160
+ AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
37161
+ });
37162
+ return writer;
37163
+ },
37164
+
37165
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail {
37166
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
37167
+ let end = length === undefined ? reader.len : reader.pos + length;
37168
+ const message = createBaseAccountEmail();
37169
+ while (reader.pos < end) {
37170
+ const tag = reader.uint32();
37171
+ switch (tag >>> 3) {
37172
+ case 1:
37173
+ if (tag !== 10) {
37174
+ break;
37175
+ }
37176
+
37177
+ message.email = reader.string();
37178
+ continue;
37179
+ case 2:
37180
+ if (tag !== 18) {
37181
+ break;
37182
+ }
37183
+
37184
+ message.password = reader.string();
37185
+ continue;
37186
+ case 3:
37187
+ if (tag !== 26) {
37188
+ break;
37189
+ }
37190
+
37191
+ const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
37192
+ if (entry3.value !== undefined) {
37193
+ message.vars[entry3.key] = entry3.value;
37194
+ }
37195
+ continue;
37196
+ }
37197
+ if ((tag & 7) === 4 || tag === 0) {
37198
+ break;
37199
+ }
37200
+ reader.skipType(tag & 7);
37201
+ }
37202
+ return message;
37203
+ },
37204
+
37205
+ fromJSON(object: any): AccountEmail {
37206
+ return {
37207
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
37208
+ password: isSet(object.password) ? globalThis.String(object.password) : "",
37209
+ vars: isObject(object.vars)
37210
+ ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37211
+ acc[key] = String(value);
37212
+ return acc;
37213
+ }, {})
37214
+ : {},
37215
+ };
37216
+ },
37217
+
37218
+ toJSON(message: AccountEmail): unknown {
37219
+ const obj: any = {};
37220
+ if (message.email !== "") {
37221
+ obj.email = message.email;
37222
+ }
37223
+ if (message.password !== "") {
37224
+ obj.password = message.password;
37225
+ }
37226
+ if (message.vars) {
37227
+ const entries = Object.entries(message.vars);
37228
+ if (entries.length > 0) {
37229
+ obj.vars = {};
37230
+ entries.forEach(([k, v]) => {
37231
+ obj.vars[k] = v;
37232
+ });
37233
+ }
37234
+ }
37235
+ return obj;
37236
+ },
37237
+
37238
+ create<I extends Exact<DeepPartial<AccountEmail>, I>>(base?: I): AccountEmail {
37239
+ return AccountEmail.fromPartial(base ?? ({} as any));
37240
+ },
37241
+ fromPartial<I extends Exact<DeepPartial<AccountEmail>, I>>(object: I): AccountEmail {
37242
+ const message = createBaseAccountEmail();
37243
+ message.email = object.email ?? "";
37244
+ message.password = object.password ?? "";
37245
+ message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37246
+ if (value !== undefined) {
37247
+ acc[key] = globalThis.String(value);
37248
+ }
37249
+ return acc;
37250
+ }, {});
37251
+ return message;
37252
+ },
37253
+ };
37254
+
37255
+ function createBaseAccountEmail_VarsEntry(): AccountEmail_VarsEntry {
37256
+ return { key: "", value: "" };
37257
+ }
37258
+
37259
+ export const AccountEmail_VarsEntry = {
37260
+ encode(message: AccountEmail_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
37261
+ if (message.key !== "") {
37262
+ writer.uint32(10).string(message.key);
37263
+ }
37264
+ if (message.value !== "") {
37265
+ writer.uint32(18).string(message.value);
37266
+ }
37267
+ return writer;
37268
+ },
37269
+
37270
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail_VarsEntry {
37271
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
37272
+ let end = length === undefined ? reader.len : reader.pos + length;
37273
+ const message = createBaseAccountEmail_VarsEntry();
37274
+ while (reader.pos < end) {
37275
+ const tag = reader.uint32();
37276
+ switch (tag >>> 3) {
37277
+ case 1:
37278
+ if (tag !== 10) {
37279
+ break;
37280
+ }
37281
+
37282
+ message.key = reader.string();
37283
+ continue;
37284
+ case 2:
37285
+ if (tag !== 18) {
37286
+ break;
37287
+ }
37288
+
37289
+ message.value = reader.string();
37290
+ continue;
37291
+ }
37292
+ if ((tag & 7) === 4 || tag === 0) {
37293
+ break;
37294
+ }
37295
+ reader.skipType(tag & 7);
37296
+ }
37297
+ return message;
37298
+ },
37299
+
37300
+ fromJSON(object: any): AccountEmail_VarsEntry {
37301
+ return {
37302
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
37303
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
37304
+ };
37305
+ },
37306
+
37307
+ toJSON(message: AccountEmail_VarsEntry): unknown {
37308
+ const obj: any = {};
37309
+ if (message.key !== "") {
37310
+ obj.key = message.key;
37311
+ }
37312
+ if (message.value !== "") {
37313
+ obj.value = message.value;
37314
+ }
37315
+ return obj;
37316
+ },
37317
+
37318
+ create<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(base?: I): AccountEmail_VarsEntry {
37319
+ return AccountEmail_VarsEntry.fromPartial(base ?? ({} as any));
37320
+ },
37321
+ fromPartial<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(object: I): AccountEmail_VarsEntry {
37322
+ const message = createBaseAccountEmail_VarsEntry();
37323
+ message.key = object.key ?? "";
37324
+ message.value = object.value ?? "";
37325
+ return message;
37326
+ },
37327
+ };
37328
+
37329
+ function createBaseAccountMezon(): AccountMezon {
37330
+ return { token: "", vars: {} };
37331
+ }
37332
+
37333
+ export const AccountMezon = {
37334
+ encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
37335
+ if (message.token !== "") {
37336
+ writer.uint32(10).string(message.token);
37337
+ }
37338
+ Object.entries(message.vars).forEach(([key, value]) => {
37339
+ AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
37340
+ });
37341
+ return writer;
37342
+ },
37343
+
37344
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon {
37345
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
37346
+ let end = length === undefined ? reader.len : reader.pos + length;
37347
+ const message = createBaseAccountMezon();
37348
+ while (reader.pos < end) {
37349
+ const tag = reader.uint32();
37350
+ switch (tag >>> 3) {
37351
+ case 1:
37352
+ if (tag !== 10) {
37353
+ break;
37354
+ }
37355
+
37356
+ message.token = reader.string();
37357
+ continue;
37358
+ case 2:
37359
+ if (tag !== 18) {
37360
+ break;
37361
+ }
37362
+
37363
+ const entry2 = AccountMezon_VarsEntry.decode(reader, reader.uint32());
37364
+ if (entry2.value !== undefined) {
37365
+ message.vars[entry2.key] = entry2.value;
37366
+ }
37367
+ continue;
37368
+ }
37369
+ if ((tag & 7) === 4 || tag === 0) {
37370
+ break;
37371
+ }
37372
+ reader.skipType(tag & 7);
37373
+ }
37374
+ return message;
37375
+ },
37376
+
37377
+ fromJSON(object: any): AccountMezon {
37378
+ return {
37379
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
37380
+ vars: isObject(object.vars)
37381
+ ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37382
+ acc[key] = String(value);
37383
+ return acc;
37384
+ }, {})
37385
+ : {},
37386
+ };
37387
+ },
37388
+
37389
+ toJSON(message: AccountMezon): unknown {
37390
+ const obj: any = {};
37391
+ if (message.token !== "") {
37392
+ obj.token = message.token;
37393
+ }
37394
+ if (message.vars) {
37395
+ const entries = Object.entries(message.vars);
37396
+ if (entries.length > 0) {
37397
+ obj.vars = {};
37398
+ entries.forEach(([k, v]) => {
37399
+ obj.vars[k] = v;
37400
+ });
37401
+ }
37402
+ }
37403
+ return obj;
37404
+ },
37405
+
37406
+ create<I extends Exact<DeepPartial<AccountMezon>, I>>(base?: I): AccountMezon {
37407
+ return AccountMezon.fromPartial(base ?? ({} as any));
37408
+ },
37409
+ fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
37410
+ const message = createBaseAccountMezon();
37411
+ message.token = object.token ?? "";
37412
+ message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37413
+ if (value !== undefined) {
37414
+ acc[key] = globalThis.String(value);
37415
+ }
37416
+ return acc;
37417
+ }, {});
37418
+ return message;
37419
+ },
37420
+ };
37421
+
37422
+ function createBaseAccountMezon_VarsEntry(): AccountMezon_VarsEntry {
37423
+ return { key: "", value: "" };
37424
+ }
37425
+
37426
+ export const AccountMezon_VarsEntry = {
37427
+ encode(message: AccountMezon_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
37428
+ if (message.key !== "") {
37429
+ writer.uint32(10).string(message.key);
37430
+ }
37431
+ if (message.value !== "") {
37432
+ writer.uint32(18).string(message.value);
37433
+ }
37434
+ return writer;
37435
+ },
37436
+
37437
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon_VarsEntry {
37438
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
37439
+ let end = length === undefined ? reader.len : reader.pos + length;
37440
+ const message = createBaseAccountMezon_VarsEntry();
37441
+ while (reader.pos < end) {
37442
+ const tag = reader.uint32();
37443
+ switch (tag >>> 3) {
37444
+ case 1:
37445
+ if (tag !== 10) {
37446
+ break;
37447
+ }
37448
+
37449
+ message.key = reader.string();
37450
+ continue;
37451
+ case 2:
37452
+ if (tag !== 18) {
37453
+ break;
37454
+ }
37455
+
37456
+ message.value = reader.string();
37457
+ continue;
37458
+ }
37459
+ if ((tag & 7) === 4 || tag === 0) {
37460
+ break;
37461
+ }
37462
+ reader.skipType(tag & 7);
37463
+ }
37464
+ return message;
37465
+ },
37466
+
37467
+ fromJSON(object: any): AccountMezon_VarsEntry {
37468
+ return {
37469
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
37470
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
37471
+ };
37472
+ },
37473
+
37474
+ toJSON(message: AccountMezon_VarsEntry): unknown {
37475
+ const obj: any = {};
37476
+ if (message.key !== "") {
37477
+ obj.key = message.key;
37478
+ }
37479
+ if (message.value !== "") {
37480
+ obj.value = message.value;
37481
+ }
37482
+ return obj;
37483
+ },
37484
+
37485
+ create<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(base?: I): AccountMezon_VarsEntry {
37486
+ return AccountMezon_VarsEntry.fromPartial(base ?? ({} as any));
37487
+ },
37488
+ fromPartial<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(object: I): AccountMezon_VarsEntry {
37489
+ const message = createBaseAccountMezon_VarsEntry();
37490
+ message.key = object.key ?? "";
37491
+ message.value = object.value ?? "";
37492
+ return message;
37493
+ },
37494
+ };
37495
+
40749
37496
  function bytesFromBase64(b64: string): Uint8Array {
40750
37497
  if ((globalThis as any).Buffer) {
40751
37498
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));