mezon-js-protobuf 1.7.48 → 1.8.1
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 +626 -3665
- package/dist/mezon-js-protobuf/api/api.d.ts +282 -1886
- package/package.json +1 -1
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. */
|
|
@@ -4063,11 +3739,6 @@ export interface GenerateHashChannelAppsResponse {
|
|
|
4063
3739
|
web_app_data: string;
|
|
4064
3740
|
}
|
|
4065
3741
|
|
|
4066
|
-
export interface GetMezonAccountRequest {
|
|
4067
|
-
secret: string;
|
|
4068
|
-
email: string;
|
|
4069
|
-
}
|
|
4070
|
-
|
|
4071
3742
|
export interface Message2InboxRequest {
|
|
4072
3743
|
message_id: string;
|
|
4073
3744
|
channel_id: string;
|
|
@@ -4080,12 +3751,39 @@ export interface Message2InboxRequest {
|
|
|
4080
3751
|
references: string;
|
|
4081
3752
|
}
|
|
4082
3753
|
|
|
3754
|
+
/** Send an email with password to the server. Used with authenticate/link/unlink. */
|
|
3755
|
+
export interface AccountEmail {
|
|
3756
|
+
/** A valid RFC-5322 email address. */
|
|
3757
|
+
email: string;
|
|
3758
|
+
/** A password for the user account. */
|
|
3759
|
+
password: string;
|
|
3760
|
+
/** Extra information that will be bundled in the session token. */
|
|
3761
|
+
vars: { [key: string]: string };
|
|
3762
|
+
}
|
|
3763
|
+
|
|
3764
|
+
export interface AccountEmail_VarsEntry {
|
|
3765
|
+
key: string;
|
|
3766
|
+
value: string;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
3770
|
+
export interface AccountMezon {
|
|
3771
|
+
/** The OAuth token received from Google to access their profile API. */
|
|
3772
|
+
token: string;
|
|
3773
|
+
/** Extra information that will be bundled in the session token. */
|
|
3774
|
+
vars: { [key: string]: string };
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
export interface AccountMezon_VarsEntry {
|
|
3778
|
+
key: string;
|
|
3779
|
+
value: string;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
4083
3782
|
function createBaseAccount(): Account {
|
|
4084
3783
|
return {
|
|
4085
3784
|
user: undefined,
|
|
4086
3785
|
wallet: "",
|
|
4087
3786
|
email: "",
|
|
4088
|
-
devices: [],
|
|
4089
3787
|
mezon_id: "",
|
|
4090
3788
|
verify_time: undefined,
|
|
4091
3789
|
disable_time: undefined,
|
|
@@ -4106,26 +3804,23 @@ export const Account = {
|
|
|
4106
3804
|
if (message.email !== "") {
|
|
4107
3805
|
writer.uint32(26).string(message.email);
|
|
4108
3806
|
}
|
|
4109
|
-
for (const v of message.devices) {
|
|
4110
|
-
AccountDevice.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
4111
|
-
}
|
|
4112
3807
|
if (message.mezon_id !== "") {
|
|
4113
|
-
writer.uint32(
|
|
3808
|
+
writer.uint32(34).string(message.mezon_id);
|
|
4114
3809
|
}
|
|
4115
3810
|
if (message.verify_time !== undefined) {
|
|
4116
|
-
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(
|
|
3811
|
+
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(42).fork()).ldelim();
|
|
4117
3812
|
}
|
|
4118
3813
|
if (message.disable_time !== undefined) {
|
|
4119
|
-
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(
|
|
3814
|
+
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(50).fork()).ldelim();
|
|
4120
3815
|
}
|
|
4121
3816
|
if (message.logo !== "") {
|
|
4122
|
-
writer.uint32(
|
|
3817
|
+
writer.uint32(58).string(message.logo);
|
|
4123
3818
|
}
|
|
4124
3819
|
if (message.splash_screen !== "") {
|
|
4125
|
-
writer.uint32(
|
|
3820
|
+
writer.uint32(66).string(message.splash_screen);
|
|
4126
3821
|
}
|
|
4127
3822
|
if (message.encrypt_private_key !== "") {
|
|
4128
|
-
writer.uint32(
|
|
3823
|
+
writer.uint32(74).string(message.encrypt_private_key);
|
|
4129
3824
|
}
|
|
4130
3825
|
return writer;
|
|
4131
3826
|
},
|
|
@@ -4163,48 +3858,41 @@ export const Account = {
|
|
|
4163
3858
|
break;
|
|
4164
3859
|
}
|
|
4165
3860
|
|
|
4166
|
-
message.
|
|
3861
|
+
message.mezon_id = reader.string();
|
|
4167
3862
|
continue;
|
|
4168
3863
|
case 5:
|
|
4169
3864
|
if (tag !== 42) {
|
|
4170
3865
|
break;
|
|
4171
3866
|
}
|
|
4172
3867
|
|
|
4173
|
-
message.
|
|
3868
|
+
message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4174
3869
|
continue;
|
|
4175
3870
|
case 6:
|
|
4176
3871
|
if (tag !== 50) {
|
|
4177
3872
|
break;
|
|
4178
3873
|
}
|
|
4179
3874
|
|
|
4180
|
-
message.
|
|
3875
|
+
message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4181
3876
|
continue;
|
|
4182
3877
|
case 7:
|
|
4183
3878
|
if (tag !== 58) {
|
|
4184
3879
|
break;
|
|
4185
3880
|
}
|
|
4186
3881
|
|
|
4187
|
-
message.
|
|
3882
|
+
message.logo = reader.string();
|
|
4188
3883
|
continue;
|
|
4189
3884
|
case 8:
|
|
4190
3885
|
if (tag !== 66) {
|
|
4191
3886
|
break;
|
|
4192
3887
|
}
|
|
4193
3888
|
|
|
4194
|
-
message.
|
|
3889
|
+
message.splash_screen = reader.string();
|
|
4195
3890
|
continue;
|
|
4196
3891
|
case 9:
|
|
4197
3892
|
if (tag !== 74) {
|
|
4198
3893
|
break;
|
|
4199
3894
|
}
|
|
4200
3895
|
|
|
4201
|
-
message.splash_screen = reader.string();
|
|
4202
|
-
continue;
|
|
4203
|
-
case 10:
|
|
4204
|
-
if (tag !== 82) {
|
|
4205
|
-
break;
|
|
4206
|
-
}
|
|
4207
|
-
|
|
4208
3896
|
message.encrypt_private_key = reader.string();
|
|
4209
3897
|
continue;
|
|
4210
3898
|
}
|
|
@@ -4221,9 +3909,6 @@ export const Account = {
|
|
|
4221
3909
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
4222
3910
|
wallet: isSet(object.wallet) ? globalThis.String(object.wallet) : "",
|
|
4223
3911
|
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
3912
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
4228
3913
|
verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
|
|
4229
3914
|
disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
|
|
@@ -4244,9 +3929,6 @@ export const Account = {
|
|
|
4244
3929
|
if (message.email !== "") {
|
|
4245
3930
|
obj.email = message.email;
|
|
4246
3931
|
}
|
|
4247
|
-
if (message.devices?.length) {
|
|
4248
|
-
obj.devices = message.devices.map((e) => AccountDevice.toJSON(e));
|
|
4249
|
-
}
|
|
4250
3932
|
if (message.mezon_id !== "") {
|
|
4251
3933
|
obj.mezon_id = message.mezon_id;
|
|
4252
3934
|
}
|
|
@@ -4276,7 +3958,6 @@ export const Account = {
|
|
|
4276
3958
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
4277
3959
|
message.wallet = object.wallet ?? "";
|
|
4278
3960
|
message.email = object.email ?? "";
|
|
4279
|
-
message.devices = object.devices?.map((e) => AccountDevice.fromPartial(e)) || [];
|
|
4280
3961
|
message.mezon_id = object.mezon_id ?? "";
|
|
4281
3962
|
message.verify_time = object.verify_time ?? undefined;
|
|
4282
3963
|
message.disable_time = object.disable_time ?? undefined;
|
|
@@ -4454,25 +4135,25 @@ export const AccountRefresh_VarsEntry = {
|
|
|
4454
4135
|
},
|
|
4455
4136
|
};
|
|
4456
4137
|
|
|
4457
|
-
function
|
|
4458
|
-
return {
|
|
4138
|
+
function createBaseAddFriendsRequest(): AddFriendsRequest {
|
|
4139
|
+
return { ids: [], usernames: [] };
|
|
4459
4140
|
}
|
|
4460
4141
|
|
|
4461
|
-
export const
|
|
4462
|
-
encode(message:
|
|
4463
|
-
|
|
4464
|
-
writer.uint32(10).string(
|
|
4142
|
+
export const AddFriendsRequest = {
|
|
4143
|
+
encode(message: AddFriendsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4144
|
+
for (const v of message.ids) {
|
|
4145
|
+
writer.uint32(10).string(v!);
|
|
4146
|
+
}
|
|
4147
|
+
for (const v of message.usernames) {
|
|
4148
|
+
writer.uint32(18).string(v!);
|
|
4465
4149
|
}
|
|
4466
|
-
Object.entries(message.vars).forEach(([key, value]) => {
|
|
4467
|
-
AccountApple_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
4468
|
-
});
|
|
4469
4150
|
return writer;
|
|
4470
4151
|
},
|
|
4471
4152
|
|
|
4472
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddFriendsRequest {
|
|
4473
4154
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4474
4155
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4475
|
-
const message =
|
|
4156
|
+
const message = createBaseAddFriendsRequest();
|
|
4476
4157
|
while (reader.pos < end) {
|
|
4477
4158
|
const tag = reader.uint32();
|
|
4478
4159
|
switch (tag >>> 3) {
|
|
@@ -4481,17 +4162,14 @@ export const AccountApple = {
|
|
|
4481
4162
|
break;
|
|
4482
4163
|
}
|
|
4483
4164
|
|
|
4484
|
-
message.
|
|
4165
|
+
message.ids.push(reader.string());
|
|
4485
4166
|
continue;
|
|
4486
4167
|
case 2:
|
|
4487
4168
|
if (tag !== 18) {
|
|
4488
4169
|
break;
|
|
4489
4170
|
}
|
|
4490
4171
|
|
|
4491
|
-
|
|
4492
|
-
if (entry2.value !== undefined) {
|
|
4493
|
-
message.vars[entry2.key] = entry2.value;
|
|
4494
|
-
}
|
|
4172
|
+
message.usernames.push(reader.string());
|
|
4495
4173
|
continue;
|
|
4496
4174
|
}
|
|
4497
4175
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -4502,70 +4180,56 @@ export const AccountApple = {
|
|
|
4502
4180
|
return message;
|
|
4503
4181
|
},
|
|
4504
4182
|
|
|
4505
|
-
fromJSON(object: any):
|
|
4183
|
+
fromJSON(object: any): AddFriendsRequest {
|
|
4506
4184
|
return {
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
?
|
|
4510
|
-
|
|
4511
|
-
return acc;
|
|
4512
|
-
}, {})
|
|
4513
|
-
: {},
|
|
4185
|
+
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
4186
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
4187
|
+
? object.usernames.map((e: any) => globalThis.String(e))
|
|
4188
|
+
: [],
|
|
4514
4189
|
};
|
|
4515
4190
|
},
|
|
4516
4191
|
|
|
4517
|
-
toJSON(message:
|
|
4192
|
+
toJSON(message: AddFriendsRequest): unknown {
|
|
4518
4193
|
const obj: any = {};
|
|
4519
|
-
if (message.
|
|
4520
|
-
obj.
|
|
4194
|
+
if (message.ids?.length) {
|
|
4195
|
+
obj.ids = message.ids;
|
|
4521
4196
|
}
|
|
4522
|
-
if (message.
|
|
4523
|
-
|
|
4524
|
-
if (entries.length > 0) {
|
|
4525
|
-
obj.vars = {};
|
|
4526
|
-
entries.forEach(([k, v]) => {
|
|
4527
|
-
obj.vars[k] = v;
|
|
4528
|
-
});
|
|
4529
|
-
}
|
|
4197
|
+
if (message.usernames?.length) {
|
|
4198
|
+
obj.usernames = message.usernames;
|
|
4530
4199
|
}
|
|
4531
4200
|
return obj;
|
|
4532
4201
|
},
|
|
4533
4202
|
|
|
4534
|
-
create<I extends Exact<DeepPartial<
|
|
4535
|
-
return
|
|
4203
|
+
create<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(base?: I): AddFriendsRequest {
|
|
4204
|
+
return AddFriendsRequest.fromPartial(base ?? ({} as any));
|
|
4536
4205
|
},
|
|
4537
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
4538
|
-
const message =
|
|
4539
|
-
message.
|
|
4540
|
-
message.
|
|
4541
|
-
if (value !== undefined) {
|
|
4542
|
-
acc[key] = globalThis.String(value);
|
|
4543
|
-
}
|
|
4544
|
-
return acc;
|
|
4545
|
-
}, {});
|
|
4206
|
+
fromPartial<I extends Exact<DeepPartial<AddFriendsRequest>, I>>(object: I): AddFriendsRequest {
|
|
4207
|
+
const message = createBaseAddFriendsRequest();
|
|
4208
|
+
message.ids = object.ids?.map((e) => e) || [];
|
|
4209
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
4546
4210
|
return message;
|
|
4547
4211
|
},
|
|
4548
4212
|
};
|
|
4549
4213
|
|
|
4550
|
-
function
|
|
4551
|
-
return {
|
|
4214
|
+
function createBaseAddGroupUsersRequest(): AddGroupUsersRequest {
|
|
4215
|
+
return { group_id: "", user_ids: [] };
|
|
4552
4216
|
}
|
|
4553
4217
|
|
|
4554
|
-
export const
|
|
4555
|
-
encode(message:
|
|
4556
|
-
if (message.
|
|
4557
|
-
writer.uint32(10).string(message.
|
|
4218
|
+
export const AddGroupUsersRequest = {
|
|
4219
|
+
encode(message: AddGroupUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4220
|
+
if (message.group_id !== "") {
|
|
4221
|
+
writer.uint32(10).string(message.group_id);
|
|
4558
4222
|
}
|
|
4559
|
-
|
|
4560
|
-
writer.uint32(18).string(
|
|
4223
|
+
for (const v of message.user_ids) {
|
|
4224
|
+
writer.uint32(18).string(v!);
|
|
4561
4225
|
}
|
|
4562
4226
|
return writer;
|
|
4563
4227
|
},
|
|
4564
4228
|
|
|
4565
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4229
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddGroupUsersRequest {
|
|
4566
4230
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4567
4231
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4568
|
-
const message =
|
|
4232
|
+
const message = createBaseAddGroupUsersRequest();
|
|
4569
4233
|
while (reader.pos < end) {
|
|
4570
4234
|
const tag = reader.uint32();
|
|
4571
4235
|
switch (tag >>> 3) {
|
|
@@ -4574,14 +4238,14 @@ export const AccountApple_VarsEntry = {
|
|
|
4574
4238
|
break;
|
|
4575
4239
|
}
|
|
4576
4240
|
|
|
4577
|
-
message.
|
|
4241
|
+
message.group_id = reader.string();
|
|
4578
4242
|
continue;
|
|
4579
4243
|
case 2:
|
|
4580
4244
|
if (tag !== 18) {
|
|
4581
4245
|
break;
|
|
4582
4246
|
}
|
|
4583
4247
|
|
|
4584
|
-
message.
|
|
4248
|
+
message.user_ids.push(reader.string());
|
|
4585
4249
|
continue;
|
|
4586
4250
|
}
|
|
4587
4251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -4592,54 +4256,57 @@ export const AccountApple_VarsEntry = {
|
|
|
4592
4256
|
return message;
|
|
4593
4257
|
},
|
|
4594
4258
|
|
|
4595
|
-
fromJSON(object: any):
|
|
4259
|
+
fromJSON(object: any): AddGroupUsersRequest {
|
|
4596
4260
|
return {
|
|
4597
|
-
|
|
4598
|
-
|
|
4261
|
+
group_id: isSet(object.group_id) ? globalThis.String(object.group_id) : "",
|
|
4262
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
4599
4263
|
};
|
|
4600
4264
|
},
|
|
4601
4265
|
|
|
4602
|
-
toJSON(message:
|
|
4266
|
+
toJSON(message: AddGroupUsersRequest): unknown {
|
|
4603
4267
|
const obj: any = {};
|
|
4604
|
-
if (message.
|
|
4605
|
-
obj.
|
|
4268
|
+
if (message.group_id !== "") {
|
|
4269
|
+
obj.group_id = message.group_id;
|
|
4606
4270
|
}
|
|
4607
|
-
if (message.
|
|
4608
|
-
obj.
|
|
4271
|
+
if (message.user_ids?.length) {
|
|
4272
|
+
obj.user_ids = message.user_ids;
|
|
4609
4273
|
}
|
|
4610
4274
|
return obj;
|
|
4611
4275
|
},
|
|
4612
4276
|
|
|
4613
|
-
create<I extends Exact<DeepPartial<
|
|
4614
|
-
return
|
|
4277
|
+
create<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(base?: I): AddGroupUsersRequest {
|
|
4278
|
+
return AddGroupUsersRequest.fromPartial(base ?? ({} as any));
|
|
4615
4279
|
},
|
|
4616
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
4617
|
-
const message =
|
|
4618
|
-
message.
|
|
4619
|
-
message.
|
|
4280
|
+
fromPartial<I extends Exact<DeepPartial<AddGroupUsersRequest>, I>>(object: I): AddGroupUsersRequest {
|
|
4281
|
+
const message = createBaseAddGroupUsersRequest();
|
|
4282
|
+
message.group_id = object.group_id ?? "";
|
|
4283
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
4620
4284
|
return message;
|
|
4621
4285
|
},
|
|
4622
4286
|
};
|
|
4623
4287
|
|
|
4624
|
-
function
|
|
4625
|
-
return {
|
|
4288
|
+
function createBaseSessionRefreshRequest(): SessionRefreshRequest {
|
|
4289
|
+
return { token: "", vars: {}, is_remember: undefined };
|
|
4626
4290
|
}
|
|
4627
4291
|
|
|
4628
|
-
export const
|
|
4629
|
-
encode(message:
|
|
4630
|
-
if (message.
|
|
4631
|
-
writer.uint32(10).string(message.
|
|
4292
|
+
export const SessionRefreshRequest = {
|
|
4293
|
+
encode(message: SessionRefreshRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4294
|
+
if (message.token !== "") {
|
|
4295
|
+
writer.uint32(10).string(message.token);
|
|
4632
4296
|
}
|
|
4633
4297
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
4634
|
-
|
|
4298
|
+
SessionRefreshRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
4635
4299
|
});
|
|
4300
|
+
if (message.is_remember !== undefined) {
|
|
4301
|
+
BoolValue.encode({ value: message.is_remember! }, writer.uint32(26).fork()).ldelim();
|
|
4302
|
+
}
|
|
4636
4303
|
return writer;
|
|
4637
4304
|
},
|
|
4638
4305
|
|
|
4639
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4306
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest {
|
|
4640
4307
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4641
4308
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4642
|
-
const message =
|
|
4309
|
+
const message = createBaseSessionRefreshRequest();
|
|
4643
4310
|
while (reader.pos < end) {
|
|
4644
4311
|
const tag = reader.uint32();
|
|
4645
4312
|
switch (tag >>> 3) {
|
|
@@ -4648,18 +4315,25 @@ export const AccountDevice = {
|
|
|
4648
4315
|
break;
|
|
4649
4316
|
}
|
|
4650
4317
|
|
|
4651
|
-
message.
|
|
4318
|
+
message.token = reader.string();
|
|
4652
4319
|
continue;
|
|
4653
4320
|
case 2:
|
|
4654
4321
|
if (tag !== 18) {
|
|
4655
4322
|
break;
|
|
4656
4323
|
}
|
|
4657
4324
|
|
|
4658
|
-
const entry2 =
|
|
4325
|
+
const entry2 = SessionRefreshRequest_VarsEntry.decode(reader, reader.uint32());
|
|
4659
4326
|
if (entry2.value !== undefined) {
|
|
4660
4327
|
message.vars[entry2.key] = entry2.value;
|
|
4661
4328
|
}
|
|
4662
4329
|
continue;
|
|
4330
|
+
case 3:
|
|
4331
|
+
if (tag !== 26) {
|
|
4332
|
+
break;
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
message.is_remember = BoolValue.decode(reader, reader.uint32()).value;
|
|
4336
|
+
continue;
|
|
4663
4337
|
}
|
|
4664
4338
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4665
4339
|
break;
|
|
@@ -4669,22 +4343,23 @@ export const AccountDevice = {
|
|
|
4669
4343
|
return message;
|
|
4670
4344
|
},
|
|
4671
4345
|
|
|
4672
|
-
fromJSON(object: any):
|
|
4346
|
+
fromJSON(object: any): SessionRefreshRequest {
|
|
4673
4347
|
return {
|
|
4674
|
-
|
|
4348
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
4675
4349
|
vars: isObject(object.vars)
|
|
4676
4350
|
? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
4677
4351
|
acc[key] = String(value);
|
|
4678
4352
|
return acc;
|
|
4679
4353
|
}, {})
|
|
4680
4354
|
: {},
|
|
4355
|
+
is_remember: isSet(object.is_remember) ? Boolean(object.is_remember) : undefined,
|
|
4681
4356
|
};
|
|
4682
4357
|
},
|
|
4683
4358
|
|
|
4684
|
-
toJSON(message:
|
|
4359
|
+
toJSON(message: SessionRefreshRequest): unknown {
|
|
4685
4360
|
const obj: any = {};
|
|
4686
|
-
if (message.
|
|
4687
|
-
obj.
|
|
4361
|
+
if (message.token !== "") {
|
|
4362
|
+
obj.token = message.token;
|
|
4688
4363
|
}
|
|
4689
4364
|
if (message.vars) {
|
|
4690
4365
|
const entries = Object.entries(message.vars);
|
|
@@ -4695,31 +4370,35 @@ export const AccountDevice = {
|
|
|
4695
4370
|
});
|
|
4696
4371
|
}
|
|
4697
4372
|
}
|
|
4373
|
+
if (message.is_remember !== undefined) {
|
|
4374
|
+
obj.is_remember = message.is_remember;
|
|
4375
|
+
}
|
|
4698
4376
|
return obj;
|
|
4699
4377
|
},
|
|
4700
4378
|
|
|
4701
|
-
create<I extends Exact<DeepPartial<
|
|
4702
|
-
return
|
|
4379
|
+
create<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(base?: I): SessionRefreshRequest {
|
|
4380
|
+
return SessionRefreshRequest.fromPartial(base ?? ({} as any));
|
|
4703
4381
|
},
|
|
4704
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
4705
|
-
const message =
|
|
4706
|
-
message.
|
|
4382
|
+
fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest>, I>>(object: I): SessionRefreshRequest {
|
|
4383
|
+
const message = createBaseSessionRefreshRequest();
|
|
4384
|
+
message.token = object.token ?? "";
|
|
4707
4385
|
message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
4708
4386
|
if (value !== undefined) {
|
|
4709
4387
|
acc[key] = globalThis.String(value);
|
|
4710
4388
|
}
|
|
4711
4389
|
return acc;
|
|
4712
4390
|
}, {});
|
|
4391
|
+
message.is_remember = object.is_remember ?? undefined;
|
|
4713
4392
|
return message;
|
|
4714
4393
|
},
|
|
4715
4394
|
};
|
|
4716
4395
|
|
|
4717
|
-
function
|
|
4396
|
+
function createBaseSessionRefreshRequest_VarsEntry(): SessionRefreshRequest_VarsEntry {
|
|
4718
4397
|
return { key: "", value: "" };
|
|
4719
4398
|
}
|
|
4720
4399
|
|
|
4721
|
-
export const
|
|
4722
|
-
encode(message:
|
|
4400
|
+
export const SessionRefreshRequest_VarsEntry = {
|
|
4401
|
+
encode(message: SessionRefreshRequest_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4723
4402
|
if (message.key !== "") {
|
|
4724
4403
|
writer.uint32(10).string(message.key);
|
|
4725
4404
|
}
|
|
@@ -4729,10 +4408,10 @@ export const AccountDevice_VarsEntry = {
|
|
|
4729
4408
|
return writer;
|
|
4730
4409
|
},
|
|
4731
4410
|
|
|
4732
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4411
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SessionRefreshRequest_VarsEntry {
|
|
4733
4412
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4734
4413
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4735
|
-
const message =
|
|
4414
|
+
const message = createBaseSessionRefreshRequest_VarsEntry();
|
|
4736
4415
|
while (reader.pos < end) {
|
|
4737
4416
|
const tag = reader.uint32();
|
|
4738
4417
|
switch (tag >>> 3) {
|
|
@@ -4759,2434 +4438,65 @@ export const AccountDevice_VarsEntry = {
|
|
|
4759
4438
|
return message;
|
|
4760
4439
|
},
|
|
4761
4440
|
|
|
4762
|
-
fromJSON(object: any):
|
|
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 {
|
|
4441
|
+
fromJSON(object: any): SessionRefreshRequest_VarsEntry {
|
|
7037
4442
|
return {
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
4443
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4444
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
7041
4445
|
};
|
|
7042
4446
|
},
|
|
7043
4447
|
|
|
7044
|
-
toJSON(message:
|
|
4448
|
+
toJSON(message: SessionRefreshRequest_VarsEntry): unknown {
|
|
7045
4449
|
const obj: any = {};
|
|
7046
|
-
if (message.
|
|
7047
|
-
obj.
|
|
7048
|
-
}
|
|
7049
|
-
if (message.create !== undefined) {
|
|
7050
|
-
obj.create = message.create;
|
|
4450
|
+
if (message.key !== "") {
|
|
4451
|
+
obj.key = message.key;
|
|
7051
4452
|
}
|
|
7052
|
-
if (message.
|
|
7053
|
-
obj.
|
|
4453
|
+
if (message.value !== "") {
|
|
4454
|
+
obj.value = message.value;
|
|
7054
4455
|
}
|
|
7055
4456
|
return obj;
|
|
7056
4457
|
},
|
|
7057
4458
|
|
|
7058
|
-
create<I extends Exact<DeepPartial<
|
|
7059
|
-
return
|
|
4459
|
+
create<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(base?: I): SessionRefreshRequest_VarsEntry {
|
|
4460
|
+
return SessionRefreshRequest_VarsEntry.fromPartial(base ?? ({} as any));
|
|
7060
4461
|
},
|
|
7061
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
4462
|
+
fromPartial<I extends Exact<DeepPartial<SessionRefreshRequest_VarsEntry>, I>>(
|
|
7062
4463
|
object: I,
|
|
7063
|
-
):
|
|
7064
|
-
const message =
|
|
7065
|
-
message.
|
|
7066
|
-
|
|
7067
|
-
: undefined;
|
|
7068
|
-
message.create = object.create ?? undefined;
|
|
7069
|
-
message.username = object.username ?? "";
|
|
4464
|
+
): SessionRefreshRequest_VarsEntry {
|
|
4465
|
+
const message = createBaseSessionRefreshRequest_VarsEntry();
|
|
4466
|
+
message.key = object.key ?? "";
|
|
4467
|
+
message.value = object.value ?? "";
|
|
7070
4468
|
return message;
|
|
7071
4469
|
},
|
|
7072
4470
|
};
|
|
7073
4471
|
|
|
7074
|
-
function
|
|
7075
|
-
return {
|
|
4472
|
+
function createBaseSessionLogoutRequest(): SessionLogoutRequest {
|
|
4473
|
+
return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
|
|
7076
4474
|
}
|
|
7077
4475
|
|
|
7078
|
-
export const
|
|
7079
|
-
encode(message:
|
|
7080
|
-
if (message.
|
|
7081
|
-
|
|
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;
|
|
4476
|
+
export const SessionLogoutRequest = {
|
|
4477
|
+
encode(message: SessionLogoutRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4478
|
+
if (message.token !== "") {
|
|
4479
|
+
writer.uint32(10).string(message.token);
|
|
7147
4480
|
}
|
|
7148
|
-
|
|
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();
|
|
4481
|
+
if (message.refresh_token !== "") {
|
|
4482
|
+
writer.uint32(18).string(message.refresh_token);
|
|
7173
4483
|
}
|
|
7174
|
-
if (message.
|
|
7175
|
-
|
|
4484
|
+
if (message.device_id !== "") {
|
|
4485
|
+
writer.uint32(26).string(message.device_id);
|
|
7176
4486
|
}
|
|
7177
|
-
if (message.
|
|
7178
|
-
writer.uint32(
|
|
4487
|
+
if (message.fcm_token !== "") {
|
|
4488
|
+
writer.uint32(34).string(message.fcm_token);
|
|
7179
4489
|
}
|
|
7180
|
-
if (message.
|
|
7181
|
-
|
|
4490
|
+
if (message.platform !== "") {
|
|
4491
|
+
writer.uint32(42).string(message.platform);
|
|
7182
4492
|
}
|
|
7183
4493
|
return writer;
|
|
7184
4494
|
},
|
|
7185
4495
|
|
|
7186
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4496
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SessionLogoutRequest {
|
|
7187
4497
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7188
4498
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7189
|
-
const message =
|
|
4499
|
+
const message = createBaseSessionLogoutRequest();
|
|
7190
4500
|
while (reader.pos < end) {
|
|
7191
4501
|
const tag = reader.uint32();
|
|
7192
4502
|
switch (tag >>> 3) {
|
|
@@ -7195,134 +4505,35 @@ export const AuthenticateMezonRequest = {
|
|
|
7195
4505
|
break;
|
|
7196
4506
|
}
|
|
7197
4507
|
|
|
7198
|
-
message.
|
|
4508
|
+
message.token = reader.string();
|
|
7199
4509
|
continue;
|
|
7200
4510
|
case 2:
|
|
7201
4511
|
if (tag !== 18) {
|
|
7202
4512
|
break;
|
|
7203
4513
|
}
|
|
7204
4514
|
|
|
7205
|
-
message.
|
|
4515
|
+
message.refresh_token = reader.string();
|
|
7206
4516
|
continue;
|
|
7207
4517
|
case 3:
|
|
7208
4518
|
if (tag !== 26) {
|
|
7209
4519
|
break;
|
|
7210
4520
|
}
|
|
7211
4521
|
|
|
7212
|
-
message.
|
|
4522
|
+
message.device_id = reader.string();
|
|
7213
4523
|
continue;
|
|
7214
4524
|
case 4:
|
|
7215
4525
|
if (tag !== 34) {
|
|
7216
4526
|
break;
|
|
7217
4527
|
}
|
|
7218
4528
|
|
|
7219
|
-
message.
|
|
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();
|
|
4529
|
+
message.fcm_token = reader.string();
|
|
7319
4530
|
continue;
|
|
7320
|
-
case
|
|
7321
|
-
if (tag !==
|
|
4531
|
+
case 5:
|
|
4532
|
+
if (tag !== 42) {
|
|
7322
4533
|
break;
|
|
7323
4534
|
}
|
|
7324
4535
|
|
|
7325
|
-
message.
|
|
4536
|
+
message.platform = reader.string();
|
|
7326
4537
|
continue;
|
|
7327
4538
|
}
|
|
7328
4539
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7333,43 +4544,46 @@ export const AuthenticateSteamRequest = {
|
|
|
7333
4544
|
return message;
|
|
7334
4545
|
},
|
|
7335
4546
|
|
|
7336
|
-
fromJSON(object: any):
|
|
4547
|
+
fromJSON(object: any): SessionLogoutRequest {
|
|
7337
4548
|
return {
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
4549
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
4550
|
+
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
4551
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
4552
|
+
fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
|
|
4553
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
7342
4554
|
};
|
|
7343
4555
|
},
|
|
7344
4556
|
|
|
7345
|
-
toJSON(message:
|
|
4557
|
+
toJSON(message: SessionLogoutRequest): unknown {
|
|
7346
4558
|
const obj: any = {};
|
|
7347
|
-
if (message.
|
|
7348
|
-
obj.
|
|
4559
|
+
if (message.token !== "") {
|
|
4560
|
+
obj.token = message.token;
|
|
4561
|
+
}
|
|
4562
|
+
if (message.refresh_token !== "") {
|
|
4563
|
+
obj.refresh_token = message.refresh_token;
|
|
7349
4564
|
}
|
|
7350
|
-
if (message.
|
|
7351
|
-
obj.
|
|
4565
|
+
if (message.device_id !== "") {
|
|
4566
|
+
obj.device_id = message.device_id;
|
|
7352
4567
|
}
|
|
7353
|
-
if (message.
|
|
7354
|
-
obj.
|
|
4568
|
+
if (message.fcm_token !== "") {
|
|
4569
|
+
obj.fcm_token = message.fcm_token;
|
|
7355
4570
|
}
|
|
7356
|
-
if (message.
|
|
7357
|
-
obj.
|
|
4571
|
+
if (message.platform !== "") {
|
|
4572
|
+
obj.platform = message.platform;
|
|
7358
4573
|
}
|
|
7359
4574
|
return obj;
|
|
7360
4575
|
},
|
|
7361
4576
|
|
|
7362
|
-
create<I extends Exact<DeepPartial<
|
|
7363
|
-
return
|
|
4577
|
+
create<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(base?: I): SessionLogoutRequest {
|
|
4578
|
+
return SessionLogoutRequest.fromPartial(base ?? ({} as any));
|
|
7364
4579
|
},
|
|
7365
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7366
|
-
const message =
|
|
7367
|
-
message.
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
message.
|
|
7371
|
-
message.
|
|
7372
|
-
message.sync = object.sync ?? undefined;
|
|
4580
|
+
fromPartial<I extends Exact<DeepPartial<SessionLogoutRequest>, I>>(object: I): SessionLogoutRequest {
|
|
4581
|
+
const message = createBaseSessionLogoutRequest();
|
|
4582
|
+
message.token = object.token ?? "";
|
|
4583
|
+
message.refresh_token = object.refresh_token ?? "";
|
|
4584
|
+
message.device_id = object.device_id ?? "";
|
|
4585
|
+
message.fcm_token = object.fcm_token ?? "";
|
|
4586
|
+
message.platform = object.platform ?? "";
|
|
7373
4587
|
return message;
|
|
7374
4588
|
},
|
|
7375
4589
|
};
|
|
@@ -11435,158 +8649,6 @@ export const ClanUserList_ClanUser = {
|
|
|
11435
8649
|
},
|
|
11436
8650
|
};
|
|
11437
8651
|
|
|
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
8652
|
function createBaseRegistFcmDeviceTokenRequest(): RegistFcmDeviceTokenRequest {
|
|
11591
8653
|
return { token: "", device_id: "", platform: "" };
|
|
11592
8654
|
}
|
|
@@ -11642,96 +8704,7 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
11642
8704
|
return message;
|
|
11643
8705
|
},
|
|
11644
8706
|
|
|
11645
|
-
fromJSON(object: any): RegistFcmDeviceTokenRequest {
|
|
11646
|
-
return {
|
|
11647
|
-
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
11648
|
-
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
11649
|
-
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
11650
|
-
};
|
|
11651
|
-
},
|
|
11652
|
-
|
|
11653
|
-
toJSON(message: RegistFcmDeviceTokenRequest): unknown {
|
|
11654
|
-
const obj: any = {};
|
|
11655
|
-
if (message.token !== "") {
|
|
11656
|
-
obj.token = message.token;
|
|
11657
|
-
}
|
|
11658
|
-
if (message.device_id !== "") {
|
|
11659
|
-
obj.device_id = message.device_id;
|
|
11660
|
-
}
|
|
11661
|
-
if (message.platform !== "") {
|
|
11662
|
-
obj.platform = message.platform;
|
|
11663
|
-
}
|
|
11664
|
-
return obj;
|
|
11665
|
-
},
|
|
11666
|
-
|
|
11667
|
-
create<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(base?: I): RegistFcmDeviceTokenRequest {
|
|
11668
|
-
return RegistFcmDeviceTokenRequest.fromPartial(base ?? ({} as any));
|
|
11669
|
-
},
|
|
11670
|
-
fromPartial<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(object: I): RegistFcmDeviceTokenRequest {
|
|
11671
|
-
const message = createBaseRegistFcmDeviceTokenRequest();
|
|
11672
|
-
message.token = object.token ?? "";
|
|
11673
|
-
message.device_id = object.device_id ?? "";
|
|
11674
|
-
message.platform = object.platform ?? "";
|
|
11675
|
-
return message;
|
|
11676
|
-
},
|
|
11677
|
-
};
|
|
11678
|
-
|
|
11679
|
-
function createBaseRegistFcmDeviceTokenResponse(): RegistFcmDeviceTokenResponse {
|
|
11680
|
-
return { token: "", device_id: "", platform: "" };
|
|
11681
|
-
}
|
|
11682
|
-
|
|
11683
|
-
export const RegistFcmDeviceTokenResponse = {
|
|
11684
|
-
encode(message: RegistFcmDeviceTokenResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11685
|
-
if (message.token !== "") {
|
|
11686
|
-
writer.uint32(10).string(message.token);
|
|
11687
|
-
}
|
|
11688
|
-
if (message.device_id !== "") {
|
|
11689
|
-
writer.uint32(18).string(message.device_id);
|
|
11690
|
-
}
|
|
11691
|
-
if (message.platform !== "") {
|
|
11692
|
-
writer.uint32(26).string(message.platform);
|
|
11693
|
-
}
|
|
11694
|
-
return writer;
|
|
11695
|
-
},
|
|
11696
|
-
|
|
11697
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RegistFcmDeviceTokenResponse {
|
|
11698
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11699
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11700
|
-
const message = createBaseRegistFcmDeviceTokenResponse();
|
|
11701
|
-
while (reader.pos < end) {
|
|
11702
|
-
const tag = reader.uint32();
|
|
11703
|
-
switch (tag >>> 3) {
|
|
11704
|
-
case 1:
|
|
11705
|
-
if (tag !== 10) {
|
|
11706
|
-
break;
|
|
11707
|
-
}
|
|
11708
|
-
|
|
11709
|
-
message.token = reader.string();
|
|
11710
|
-
continue;
|
|
11711
|
-
case 2:
|
|
11712
|
-
if (tag !== 18) {
|
|
11713
|
-
break;
|
|
11714
|
-
}
|
|
11715
|
-
|
|
11716
|
-
message.device_id = reader.string();
|
|
11717
|
-
continue;
|
|
11718
|
-
case 3:
|
|
11719
|
-
if (tag !== 26) {
|
|
11720
|
-
break;
|
|
11721
|
-
}
|
|
11722
|
-
|
|
11723
|
-
message.platform = reader.string();
|
|
11724
|
-
continue;
|
|
11725
|
-
}
|
|
11726
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11727
|
-
break;
|
|
11728
|
-
}
|
|
11729
|
-
reader.skipType(tag & 7);
|
|
11730
|
-
}
|
|
11731
|
-
return message;
|
|
11732
|
-
},
|
|
11733
|
-
|
|
11734
|
-
fromJSON(object: any): RegistFcmDeviceTokenResponse {
|
|
8707
|
+
fromJSON(object: any): RegistFcmDeviceTokenRequest {
|
|
11735
8708
|
return {
|
|
11736
8709
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
11737
8710
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
@@ -11739,7 +8712,7 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
11739
8712
|
};
|
|
11740
8713
|
},
|
|
11741
8714
|
|
|
11742
|
-
toJSON(message:
|
|
8715
|
+
toJSON(message: RegistFcmDeviceTokenRequest): unknown {
|
|
11743
8716
|
const obj: any = {};
|
|
11744
8717
|
if (message.token !== "") {
|
|
11745
8718
|
obj.token = message.token;
|
|
@@ -11753,11 +8726,11 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
11753
8726
|
return obj;
|
|
11754
8727
|
},
|
|
11755
8728
|
|
|
11756
|
-
create<I extends Exact<DeepPartial<
|
|
11757
|
-
return
|
|
8729
|
+
create<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(base?: I): RegistFcmDeviceTokenRequest {
|
|
8730
|
+
return RegistFcmDeviceTokenRequest.fromPartial(base ?? ({} as any));
|
|
11758
8731
|
},
|
|
11759
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
11760
|
-
const message =
|
|
8732
|
+
fromPartial<I extends Exact<DeepPartial<RegistFcmDeviceTokenRequest>, I>>(object: I): RegistFcmDeviceTokenRequest {
|
|
8733
|
+
const message = createBaseRegistFcmDeviceTokenRequest();
|
|
11761
8734
|
message.token = object.token ?? "";
|
|
11762
8735
|
message.device_id = object.device_id ?? "";
|
|
11763
8736
|
message.platform = object.platform ?? "";
|
|
@@ -11765,25 +8738,28 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
11765
8738
|
},
|
|
11766
8739
|
};
|
|
11767
8740
|
|
|
11768
|
-
function
|
|
11769
|
-
return {
|
|
8741
|
+
function createBaseRegistFcmDeviceTokenResponse(): RegistFcmDeviceTokenResponse {
|
|
8742
|
+
return { token: "", device_id: "", platform: "" };
|
|
11770
8743
|
}
|
|
11771
8744
|
|
|
11772
|
-
export const
|
|
11773
|
-
encode(message:
|
|
11774
|
-
if (message.
|
|
11775
|
-
|
|
8745
|
+
export const RegistFcmDeviceTokenResponse = {
|
|
8746
|
+
encode(message: RegistFcmDeviceTokenResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
8747
|
+
if (message.token !== "") {
|
|
8748
|
+
writer.uint32(10).string(message.token);
|
|
8749
|
+
}
|
|
8750
|
+
if (message.device_id !== "") {
|
|
8751
|
+
writer.uint32(18).string(message.device_id);
|
|
11776
8752
|
}
|
|
11777
|
-
if (message.
|
|
11778
|
-
|
|
8753
|
+
if (message.platform !== "") {
|
|
8754
|
+
writer.uint32(26).string(message.platform);
|
|
11779
8755
|
}
|
|
11780
8756
|
return writer;
|
|
11781
8757
|
},
|
|
11782
8758
|
|
|
11783
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
8759
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RegistFcmDeviceTokenResponse {
|
|
11784
8760
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11785
8761
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11786
|
-
const message =
|
|
8762
|
+
const message = createBaseRegistFcmDeviceTokenResponse();
|
|
11787
8763
|
while (reader.pos < end) {
|
|
11788
8764
|
const tag = reader.uint32();
|
|
11789
8765
|
switch (tag >>> 3) {
|
|
@@ -11792,90 +8768,21 @@ export const LinkFacebookRequest = {
|
|
|
11792
8768
|
break;
|
|
11793
8769
|
}
|
|
11794
8770
|
|
|
11795
|
-
message.
|
|
8771
|
+
message.token = reader.string();
|
|
11796
8772
|
continue;
|
|
11797
8773
|
case 2:
|
|
11798
8774
|
if (tag !== 18) {
|
|
11799
8775
|
break;
|
|
11800
8776
|
}
|
|
11801
8777
|
|
|
11802
|
-
message.
|
|
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());
|
|
8778
|
+
message.device_id = reader.string();
|
|
11872
8779
|
continue;
|
|
11873
|
-
case
|
|
11874
|
-
if (tag !==
|
|
8780
|
+
case 3:
|
|
8781
|
+
if (tag !== 26) {
|
|
11875
8782
|
break;
|
|
11876
8783
|
}
|
|
11877
8784
|
|
|
11878
|
-
message.
|
|
8785
|
+
message.platform = reader.string();
|
|
11879
8786
|
continue;
|
|
11880
8787
|
}
|
|
11881
8788
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11886,33 +8793,36 @@ export const LinkSteamRequest = {
|
|
|
11886
8793
|
return message;
|
|
11887
8794
|
},
|
|
11888
8795
|
|
|
11889
|
-
fromJSON(object: any):
|
|
8796
|
+
fromJSON(object: any): RegistFcmDeviceTokenResponse {
|
|
11890
8797
|
return {
|
|
11891
|
-
|
|
11892
|
-
|
|
8798
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
8799
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
8800
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
11893
8801
|
};
|
|
11894
8802
|
},
|
|
11895
8803
|
|
|
11896
|
-
toJSON(message:
|
|
8804
|
+
toJSON(message: RegistFcmDeviceTokenResponse): unknown {
|
|
11897
8805
|
const obj: any = {};
|
|
11898
|
-
if (message.
|
|
11899
|
-
obj.
|
|
8806
|
+
if (message.token !== "") {
|
|
8807
|
+
obj.token = message.token;
|
|
8808
|
+
}
|
|
8809
|
+
if (message.device_id !== "") {
|
|
8810
|
+
obj.device_id = message.device_id;
|
|
11900
8811
|
}
|
|
11901
|
-
if (message.
|
|
11902
|
-
obj.
|
|
8812
|
+
if (message.platform !== "") {
|
|
8813
|
+
obj.platform = message.platform;
|
|
11903
8814
|
}
|
|
11904
8815
|
return obj;
|
|
11905
8816
|
},
|
|
11906
8817
|
|
|
11907
|
-
create<I extends Exact<DeepPartial<
|
|
11908
|
-
return
|
|
8818
|
+
create<I extends Exact<DeepPartial<RegistFcmDeviceTokenResponse>, I>>(base?: I): RegistFcmDeviceTokenResponse {
|
|
8819
|
+
return RegistFcmDeviceTokenResponse.fromPartial(base ?? ({} as any));
|
|
11909
8820
|
},
|
|
11910
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
11911
|
-
const message =
|
|
11912
|
-
message.
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
message.sync = object.sync ?? undefined;
|
|
8821
|
+
fromPartial<I extends Exact<DeepPartial<RegistFcmDeviceTokenResponse>, I>>(object: I): RegistFcmDeviceTokenResponse {
|
|
8822
|
+
const message = createBaseRegistFcmDeviceTokenResponse();
|
|
8823
|
+
message.token = object.token ?? "";
|
|
8824
|
+
message.device_id = object.device_id ?? "";
|
|
8825
|
+
message.platform = object.platform ?? "";
|
|
11916
8826
|
return message;
|
|
11917
8827
|
},
|
|
11918
8828
|
};
|
|
@@ -16026,6 +12936,8 @@ function createBaseInviteUserRes(): InviteUserRes {
|
|
|
16026
12936
|
user_joined: false,
|
|
16027
12937
|
expiry_time: undefined,
|
|
16028
12938
|
channel_desc: undefined,
|
|
12939
|
+
clan_logo: "",
|
|
12940
|
+
member_count: 0,
|
|
16029
12941
|
};
|
|
16030
12942
|
}
|
|
16031
12943
|
|
|
@@ -16052,6 +12964,12 @@ export const InviteUserRes = {
|
|
|
16052
12964
|
if (message.channel_desc !== undefined) {
|
|
16053
12965
|
ChannelDescription.encode(message.channel_desc, writer.uint32(58).fork()).ldelim();
|
|
16054
12966
|
}
|
|
12967
|
+
if (message.clan_logo !== "") {
|
|
12968
|
+
writer.uint32(66).string(message.clan_logo);
|
|
12969
|
+
}
|
|
12970
|
+
if (message.member_count !== 0) {
|
|
12971
|
+
writer.uint32(72).int32(message.member_count);
|
|
12972
|
+
}
|
|
16055
12973
|
return writer;
|
|
16056
12974
|
},
|
|
16057
12975
|
|
|
@@ -16111,6 +13029,20 @@ export const InviteUserRes = {
|
|
|
16111
13029
|
|
|
16112
13030
|
message.channel_desc = ChannelDescription.decode(reader, reader.uint32());
|
|
16113
13031
|
continue;
|
|
13032
|
+
case 8:
|
|
13033
|
+
if (tag !== 66) {
|
|
13034
|
+
break;
|
|
13035
|
+
}
|
|
13036
|
+
|
|
13037
|
+
message.clan_logo = reader.string();
|
|
13038
|
+
continue;
|
|
13039
|
+
case 9:
|
|
13040
|
+
if (tag !== 72) {
|
|
13041
|
+
break;
|
|
13042
|
+
}
|
|
13043
|
+
|
|
13044
|
+
message.member_count = reader.int32();
|
|
13045
|
+
continue;
|
|
16114
13046
|
}
|
|
16115
13047
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16116
13048
|
break;
|
|
@@ -16129,6 +13061,8 @@ export const InviteUserRes = {
|
|
|
16129
13061
|
user_joined: isSet(object.user_joined) ? globalThis.Boolean(object.user_joined) : false,
|
|
16130
13062
|
expiry_time: isSet(object.expiry_time) ? fromJsonTimestamp(object.expiry_time) : undefined,
|
|
16131
13063
|
channel_desc: isSet(object.channel_desc) ? ChannelDescription.fromJSON(object.channel_desc) : undefined,
|
|
13064
|
+
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
13065
|
+
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
16132
13066
|
};
|
|
16133
13067
|
},
|
|
16134
13068
|
|
|
@@ -16155,6 +13089,12 @@ export const InviteUserRes = {
|
|
|
16155
13089
|
if (message.channel_desc !== undefined) {
|
|
16156
13090
|
obj.channel_desc = ChannelDescription.toJSON(message.channel_desc);
|
|
16157
13091
|
}
|
|
13092
|
+
if (message.clan_logo !== "") {
|
|
13093
|
+
obj.clan_logo = message.clan_logo;
|
|
13094
|
+
}
|
|
13095
|
+
if (message.member_count !== 0) {
|
|
13096
|
+
obj.member_count = Math.round(message.member_count);
|
|
13097
|
+
}
|
|
16158
13098
|
return obj;
|
|
16159
13099
|
},
|
|
16160
13100
|
|
|
@@ -16172,6 +13112,8 @@ export const InviteUserRes = {
|
|
|
16172
13112
|
message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
|
|
16173
13113
|
? ChannelDescription.fromPartial(object.channel_desc)
|
|
16174
13114
|
: undefined;
|
|
13115
|
+
message.clan_logo = object.clan_logo ?? "";
|
|
13116
|
+
message.member_count = object.member_count ?? 0;
|
|
16175
13117
|
return message;
|
|
16176
13118
|
},
|
|
16177
13119
|
};
|
|
@@ -29106,262 +26048,6 @@ export const AppClan = {
|
|
|
29106
26048
|
},
|
|
29107
26049
|
};
|
|
29108
26050
|
|
|
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
26051
|
function createBaseDeleteChannelMessagesRequest(): DeleteChannelMessagesRequest {
|
|
29366
26052
|
return { before: undefined, ids: [] };
|
|
29367
26053
|
}
|
|
@@ -40483,80 +37169,6 @@ export const GenerateHashChannelAppsResponse = {
|
|
|
40483
37169
|
},
|
|
40484
37170
|
};
|
|
40485
37171
|
|
|
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
37172
|
function createBaseMessage2InboxRequest(): Message2InboxRequest {
|
|
40561
37173
|
return {
|
|
40562
37174
|
message_id: "",
|
|
@@ -40746,6 +37358,355 @@ export const Message2InboxRequest = {
|
|
|
40746
37358
|
},
|
|
40747
37359
|
};
|
|
40748
37360
|
|
|
37361
|
+
function createBaseAccountEmail(): AccountEmail {
|
|
37362
|
+
return { email: "", password: "", vars: {} };
|
|
37363
|
+
}
|
|
37364
|
+
|
|
37365
|
+
export const AccountEmail = {
|
|
37366
|
+
encode(message: AccountEmail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37367
|
+
if (message.email !== "") {
|
|
37368
|
+
writer.uint32(10).string(message.email);
|
|
37369
|
+
}
|
|
37370
|
+
if (message.password !== "") {
|
|
37371
|
+
writer.uint32(18).string(message.password);
|
|
37372
|
+
}
|
|
37373
|
+
Object.entries(message.vars).forEach(([key, value]) => {
|
|
37374
|
+
AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
|
|
37375
|
+
});
|
|
37376
|
+
return writer;
|
|
37377
|
+
},
|
|
37378
|
+
|
|
37379
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail {
|
|
37380
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37381
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37382
|
+
const message = createBaseAccountEmail();
|
|
37383
|
+
while (reader.pos < end) {
|
|
37384
|
+
const tag = reader.uint32();
|
|
37385
|
+
switch (tag >>> 3) {
|
|
37386
|
+
case 1:
|
|
37387
|
+
if (tag !== 10) {
|
|
37388
|
+
break;
|
|
37389
|
+
}
|
|
37390
|
+
|
|
37391
|
+
message.email = reader.string();
|
|
37392
|
+
continue;
|
|
37393
|
+
case 2:
|
|
37394
|
+
if (tag !== 18) {
|
|
37395
|
+
break;
|
|
37396
|
+
}
|
|
37397
|
+
|
|
37398
|
+
message.password = reader.string();
|
|
37399
|
+
continue;
|
|
37400
|
+
case 3:
|
|
37401
|
+
if (tag !== 26) {
|
|
37402
|
+
break;
|
|
37403
|
+
}
|
|
37404
|
+
|
|
37405
|
+
const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
|
|
37406
|
+
if (entry3.value !== undefined) {
|
|
37407
|
+
message.vars[entry3.key] = entry3.value;
|
|
37408
|
+
}
|
|
37409
|
+
continue;
|
|
37410
|
+
}
|
|
37411
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37412
|
+
break;
|
|
37413
|
+
}
|
|
37414
|
+
reader.skipType(tag & 7);
|
|
37415
|
+
}
|
|
37416
|
+
return message;
|
|
37417
|
+
},
|
|
37418
|
+
|
|
37419
|
+
fromJSON(object: any): AccountEmail {
|
|
37420
|
+
return {
|
|
37421
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
37422
|
+
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
37423
|
+
vars: isObject(object.vars)
|
|
37424
|
+
? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37425
|
+
acc[key] = String(value);
|
|
37426
|
+
return acc;
|
|
37427
|
+
}, {})
|
|
37428
|
+
: {},
|
|
37429
|
+
};
|
|
37430
|
+
},
|
|
37431
|
+
|
|
37432
|
+
toJSON(message: AccountEmail): unknown {
|
|
37433
|
+
const obj: any = {};
|
|
37434
|
+
if (message.email !== "") {
|
|
37435
|
+
obj.email = message.email;
|
|
37436
|
+
}
|
|
37437
|
+
if (message.password !== "") {
|
|
37438
|
+
obj.password = message.password;
|
|
37439
|
+
}
|
|
37440
|
+
if (message.vars) {
|
|
37441
|
+
const entries = Object.entries(message.vars);
|
|
37442
|
+
if (entries.length > 0) {
|
|
37443
|
+
obj.vars = {};
|
|
37444
|
+
entries.forEach(([k, v]) => {
|
|
37445
|
+
obj.vars[k] = v;
|
|
37446
|
+
});
|
|
37447
|
+
}
|
|
37448
|
+
}
|
|
37449
|
+
return obj;
|
|
37450
|
+
},
|
|
37451
|
+
|
|
37452
|
+
create<I extends Exact<DeepPartial<AccountEmail>, I>>(base?: I): AccountEmail {
|
|
37453
|
+
return AccountEmail.fromPartial(base ?? ({} as any));
|
|
37454
|
+
},
|
|
37455
|
+
fromPartial<I extends Exact<DeepPartial<AccountEmail>, I>>(object: I): AccountEmail {
|
|
37456
|
+
const message = createBaseAccountEmail();
|
|
37457
|
+
message.email = object.email ?? "";
|
|
37458
|
+
message.password = object.password ?? "";
|
|
37459
|
+
message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37460
|
+
if (value !== undefined) {
|
|
37461
|
+
acc[key] = globalThis.String(value);
|
|
37462
|
+
}
|
|
37463
|
+
return acc;
|
|
37464
|
+
}, {});
|
|
37465
|
+
return message;
|
|
37466
|
+
},
|
|
37467
|
+
};
|
|
37468
|
+
|
|
37469
|
+
function createBaseAccountEmail_VarsEntry(): AccountEmail_VarsEntry {
|
|
37470
|
+
return { key: "", value: "" };
|
|
37471
|
+
}
|
|
37472
|
+
|
|
37473
|
+
export const AccountEmail_VarsEntry = {
|
|
37474
|
+
encode(message: AccountEmail_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37475
|
+
if (message.key !== "") {
|
|
37476
|
+
writer.uint32(10).string(message.key);
|
|
37477
|
+
}
|
|
37478
|
+
if (message.value !== "") {
|
|
37479
|
+
writer.uint32(18).string(message.value);
|
|
37480
|
+
}
|
|
37481
|
+
return writer;
|
|
37482
|
+
},
|
|
37483
|
+
|
|
37484
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail_VarsEntry {
|
|
37485
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37486
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37487
|
+
const message = createBaseAccountEmail_VarsEntry();
|
|
37488
|
+
while (reader.pos < end) {
|
|
37489
|
+
const tag = reader.uint32();
|
|
37490
|
+
switch (tag >>> 3) {
|
|
37491
|
+
case 1:
|
|
37492
|
+
if (tag !== 10) {
|
|
37493
|
+
break;
|
|
37494
|
+
}
|
|
37495
|
+
|
|
37496
|
+
message.key = reader.string();
|
|
37497
|
+
continue;
|
|
37498
|
+
case 2:
|
|
37499
|
+
if (tag !== 18) {
|
|
37500
|
+
break;
|
|
37501
|
+
}
|
|
37502
|
+
|
|
37503
|
+
message.value = reader.string();
|
|
37504
|
+
continue;
|
|
37505
|
+
}
|
|
37506
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37507
|
+
break;
|
|
37508
|
+
}
|
|
37509
|
+
reader.skipType(tag & 7);
|
|
37510
|
+
}
|
|
37511
|
+
return message;
|
|
37512
|
+
},
|
|
37513
|
+
|
|
37514
|
+
fromJSON(object: any): AccountEmail_VarsEntry {
|
|
37515
|
+
return {
|
|
37516
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
37517
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
37518
|
+
};
|
|
37519
|
+
},
|
|
37520
|
+
|
|
37521
|
+
toJSON(message: AccountEmail_VarsEntry): unknown {
|
|
37522
|
+
const obj: any = {};
|
|
37523
|
+
if (message.key !== "") {
|
|
37524
|
+
obj.key = message.key;
|
|
37525
|
+
}
|
|
37526
|
+
if (message.value !== "") {
|
|
37527
|
+
obj.value = message.value;
|
|
37528
|
+
}
|
|
37529
|
+
return obj;
|
|
37530
|
+
},
|
|
37531
|
+
|
|
37532
|
+
create<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(base?: I): AccountEmail_VarsEntry {
|
|
37533
|
+
return AccountEmail_VarsEntry.fromPartial(base ?? ({} as any));
|
|
37534
|
+
},
|
|
37535
|
+
fromPartial<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(object: I): AccountEmail_VarsEntry {
|
|
37536
|
+
const message = createBaseAccountEmail_VarsEntry();
|
|
37537
|
+
message.key = object.key ?? "";
|
|
37538
|
+
message.value = object.value ?? "";
|
|
37539
|
+
return message;
|
|
37540
|
+
},
|
|
37541
|
+
};
|
|
37542
|
+
|
|
37543
|
+
function createBaseAccountMezon(): AccountMezon {
|
|
37544
|
+
return { token: "", vars: {} };
|
|
37545
|
+
}
|
|
37546
|
+
|
|
37547
|
+
export const AccountMezon = {
|
|
37548
|
+
encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37549
|
+
if (message.token !== "") {
|
|
37550
|
+
writer.uint32(10).string(message.token);
|
|
37551
|
+
}
|
|
37552
|
+
Object.entries(message.vars).forEach(([key, value]) => {
|
|
37553
|
+
AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
37554
|
+
});
|
|
37555
|
+
return writer;
|
|
37556
|
+
},
|
|
37557
|
+
|
|
37558
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon {
|
|
37559
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37560
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37561
|
+
const message = createBaseAccountMezon();
|
|
37562
|
+
while (reader.pos < end) {
|
|
37563
|
+
const tag = reader.uint32();
|
|
37564
|
+
switch (tag >>> 3) {
|
|
37565
|
+
case 1:
|
|
37566
|
+
if (tag !== 10) {
|
|
37567
|
+
break;
|
|
37568
|
+
}
|
|
37569
|
+
|
|
37570
|
+
message.token = reader.string();
|
|
37571
|
+
continue;
|
|
37572
|
+
case 2:
|
|
37573
|
+
if (tag !== 18) {
|
|
37574
|
+
break;
|
|
37575
|
+
}
|
|
37576
|
+
|
|
37577
|
+
const entry2 = AccountMezon_VarsEntry.decode(reader, reader.uint32());
|
|
37578
|
+
if (entry2.value !== undefined) {
|
|
37579
|
+
message.vars[entry2.key] = entry2.value;
|
|
37580
|
+
}
|
|
37581
|
+
continue;
|
|
37582
|
+
}
|
|
37583
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37584
|
+
break;
|
|
37585
|
+
}
|
|
37586
|
+
reader.skipType(tag & 7);
|
|
37587
|
+
}
|
|
37588
|
+
return message;
|
|
37589
|
+
},
|
|
37590
|
+
|
|
37591
|
+
fromJSON(object: any): AccountMezon {
|
|
37592
|
+
return {
|
|
37593
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
37594
|
+
vars: isObject(object.vars)
|
|
37595
|
+
? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37596
|
+
acc[key] = String(value);
|
|
37597
|
+
return acc;
|
|
37598
|
+
}, {})
|
|
37599
|
+
: {},
|
|
37600
|
+
};
|
|
37601
|
+
},
|
|
37602
|
+
|
|
37603
|
+
toJSON(message: AccountMezon): unknown {
|
|
37604
|
+
const obj: any = {};
|
|
37605
|
+
if (message.token !== "") {
|
|
37606
|
+
obj.token = message.token;
|
|
37607
|
+
}
|
|
37608
|
+
if (message.vars) {
|
|
37609
|
+
const entries = Object.entries(message.vars);
|
|
37610
|
+
if (entries.length > 0) {
|
|
37611
|
+
obj.vars = {};
|
|
37612
|
+
entries.forEach(([k, v]) => {
|
|
37613
|
+
obj.vars[k] = v;
|
|
37614
|
+
});
|
|
37615
|
+
}
|
|
37616
|
+
}
|
|
37617
|
+
return obj;
|
|
37618
|
+
},
|
|
37619
|
+
|
|
37620
|
+
create<I extends Exact<DeepPartial<AccountMezon>, I>>(base?: I): AccountMezon {
|
|
37621
|
+
return AccountMezon.fromPartial(base ?? ({} as any));
|
|
37622
|
+
},
|
|
37623
|
+
fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
|
|
37624
|
+
const message = createBaseAccountMezon();
|
|
37625
|
+
message.token = object.token ?? "";
|
|
37626
|
+
message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37627
|
+
if (value !== undefined) {
|
|
37628
|
+
acc[key] = globalThis.String(value);
|
|
37629
|
+
}
|
|
37630
|
+
return acc;
|
|
37631
|
+
}, {});
|
|
37632
|
+
return message;
|
|
37633
|
+
},
|
|
37634
|
+
};
|
|
37635
|
+
|
|
37636
|
+
function createBaseAccountMezon_VarsEntry(): AccountMezon_VarsEntry {
|
|
37637
|
+
return { key: "", value: "" };
|
|
37638
|
+
}
|
|
37639
|
+
|
|
37640
|
+
export const AccountMezon_VarsEntry = {
|
|
37641
|
+
encode(message: AccountMezon_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37642
|
+
if (message.key !== "") {
|
|
37643
|
+
writer.uint32(10).string(message.key);
|
|
37644
|
+
}
|
|
37645
|
+
if (message.value !== "") {
|
|
37646
|
+
writer.uint32(18).string(message.value);
|
|
37647
|
+
}
|
|
37648
|
+
return writer;
|
|
37649
|
+
},
|
|
37650
|
+
|
|
37651
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon_VarsEntry {
|
|
37652
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37653
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37654
|
+
const message = createBaseAccountMezon_VarsEntry();
|
|
37655
|
+
while (reader.pos < end) {
|
|
37656
|
+
const tag = reader.uint32();
|
|
37657
|
+
switch (tag >>> 3) {
|
|
37658
|
+
case 1:
|
|
37659
|
+
if (tag !== 10) {
|
|
37660
|
+
break;
|
|
37661
|
+
}
|
|
37662
|
+
|
|
37663
|
+
message.key = reader.string();
|
|
37664
|
+
continue;
|
|
37665
|
+
case 2:
|
|
37666
|
+
if (tag !== 18) {
|
|
37667
|
+
break;
|
|
37668
|
+
}
|
|
37669
|
+
|
|
37670
|
+
message.value = reader.string();
|
|
37671
|
+
continue;
|
|
37672
|
+
}
|
|
37673
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37674
|
+
break;
|
|
37675
|
+
}
|
|
37676
|
+
reader.skipType(tag & 7);
|
|
37677
|
+
}
|
|
37678
|
+
return message;
|
|
37679
|
+
},
|
|
37680
|
+
|
|
37681
|
+
fromJSON(object: any): AccountMezon_VarsEntry {
|
|
37682
|
+
return {
|
|
37683
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
37684
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
37685
|
+
};
|
|
37686
|
+
},
|
|
37687
|
+
|
|
37688
|
+
toJSON(message: AccountMezon_VarsEntry): unknown {
|
|
37689
|
+
const obj: any = {};
|
|
37690
|
+
if (message.key !== "") {
|
|
37691
|
+
obj.key = message.key;
|
|
37692
|
+
}
|
|
37693
|
+
if (message.value !== "") {
|
|
37694
|
+
obj.value = message.value;
|
|
37695
|
+
}
|
|
37696
|
+
return obj;
|
|
37697
|
+
},
|
|
37698
|
+
|
|
37699
|
+
create<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(base?: I): AccountMezon_VarsEntry {
|
|
37700
|
+
return AccountMezon_VarsEntry.fromPartial(base ?? ({} as any));
|
|
37701
|
+
},
|
|
37702
|
+
fromPartial<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(object: I): AccountMezon_VarsEntry {
|
|
37703
|
+
const message = createBaseAccountMezon_VarsEntry();
|
|
37704
|
+
message.key = object.key ?? "";
|
|
37705
|
+
message.value = object.value ?? "";
|
|
37706
|
+
return message;
|
|
37707
|
+
},
|
|
37708
|
+
};
|
|
37709
|
+
|
|
40749
37710
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
40750
37711
|
if ((globalThis as any).Buffer) {
|
|
40751
37712
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|