mezon-js-protobuf 1.8.31 → 1.8.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts CHANGED
@@ -191,6 +191,8 @@ export interface Account {
191
191
  splash_screen: string;
192
192
  /** E2ee encrypt private key */
193
193
  encrypt_private_key: string;
194
+ /** password is setted */
195
+ password_setted: boolean;
194
196
  }
195
197
 
196
198
  /** Obtain a new authentication token using a refresh token. */
@@ -1154,6 +1156,8 @@ export interface UpdateAccountRequest {
1154
1156
  splash_screen: string;
1155
1157
  /** e2ee encrypt private key */
1156
1158
  encrypt_private_key: string;
1159
+ /** The email of the user's account. */
1160
+ email: string | undefined;
1157
1161
  }
1158
1162
 
1159
1163
  /** Update fields in a given group. */
@@ -1205,16 +1209,10 @@ export interface User {
1205
1209
  timezone: string;
1206
1210
  /** Additional information stored as a JSON object. */
1207
1211
  metadata: string;
1208
- /** The Facebook id in the user's account. */
1209
- facebook_id: string;
1210
- /** The Google id in the user's account. */
1211
- google_id: string;
1212
- /** The Apple Game Center in of the user's account. */
1213
- gamecenter_id: string;
1214
- /** The Steam id in the user's account. */
1215
- steam_id: string;
1216
1212
  /** Indicates whether the user is currently online. */
1217
1213
  online: boolean;
1214
+ /** The phone number */
1215
+ phone_number: string;
1218
1216
  /** Number of related edges to this user. */
1219
1217
  edge_count: number;
1220
1218
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created. */
@@ -1225,8 +1223,6 @@ export interface User {
1225
1223
  update_time:
1226
1224
  | Date
1227
1225
  | undefined;
1228
- /** The Apple Sign In ID in the user's account. */
1229
- apple_id: string;
1230
1226
  /** About me */
1231
1227
  about_me: string;
1232
1228
  /** Join time */
@@ -1816,12 +1812,16 @@ export interface CreateChannelDescRequest {
1816
1812
 
1817
1813
  /** Delete a channel the user has access to. */
1818
1814
  export interface DeleteChannelDescRequest {
1815
+ /** The clan id */
1816
+ clan_id: string;
1819
1817
  /** The id of a channel. */
1820
1818
  channel_id: string;
1821
1819
  }
1822
1820
 
1823
1821
  /** Update fields in a given channel. */
1824
1822
  export interface UpdateChannelDescRequest {
1823
+ /** The clan ID */
1824
+ clan_id: string;
1825
1825
  /** The ID of the channel to update. */
1826
1826
  channel_id: string;
1827
1827
  /** The channel lable */
@@ -1844,6 +1844,8 @@ export interface UpdateChannelDescRequest {
1844
1844
 
1845
1845
  /** Update fields in a given channel. */
1846
1846
  export interface ChangeChannelPrivateRequest {
1847
+ /** The clan ID */
1848
+ clan_id: string;
1847
1849
  /** The ID of the channel to update. */
1848
1850
  channel_id: string;
1849
1851
  /** The channel private */
@@ -1880,6 +1882,7 @@ export interface RemoveClanUsersRequest {
1880
1882
 
1881
1883
  /** Leave a channel. */
1882
1884
  export interface LeaveThreadRequest {
1885
+ clan_id: string;
1883
1886
  /** The channel ID to leave. */
1884
1887
  channel_id: string;
1885
1888
  }
@@ -2460,6 +2463,8 @@ export interface RegistrationEmailRequest {
2460
2463
  email: string;
2461
2464
  /** A password for the user account. */
2462
2465
  password: string;
2466
+ /** A old password for the user account. */
2467
+ old_password: string;
2463
2468
  /** Set the username on the account at register. Must be unique. */
2464
2469
  username: string;
2465
2470
  /** Display name */
@@ -3216,6 +3221,7 @@ export interface AddFavoriteChannelRequest {
3216
3221
  }
3217
3222
 
3218
3223
  export interface RemoveFavoriteChannelRequest {
3224
+ clan_id: string;
3219
3225
  channel_id: string;
3220
3226
  }
3221
3227
 
@@ -3823,6 +3829,8 @@ export interface AccountEmail {
3823
3829
  email: string;
3824
3830
  /** A password for the user account. */
3825
3831
  password: string;
3832
+ /** Prev email */
3833
+ prev_email: string;
3826
3834
  /** Extra information that will be bundled in the session token. */
3827
3835
  vars: { [key: string]: string };
3828
3836
  }
@@ -3834,8 +3842,8 @@ export interface AccountEmail_VarsEntry {
3834
3842
 
3835
3843
  /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
3836
3844
  export interface AccountMezon {
3837
- /** The OAuth token received from Google to access their profile API. */
3838
- token: string;
3845
+ /** The phone number. */
3846
+ phone_number: string;
3839
3847
  /** Extra information that will be bundled in the session token. */
3840
3848
  vars: { [key: string]: string };
3841
3849
  }
@@ -3845,6 +3853,15 @@ export interface AccountMezon_VarsEntry {
3845
3853
  value: string;
3846
3854
  }
3847
3855
 
3856
+ export interface LinkAccountConfirmRequest {
3857
+ /** The request id */
3858
+ req_id: string;
3859
+ /** Status */
3860
+ status: number;
3861
+ /** The confirm code */
3862
+ otp_code: string;
3863
+ }
3864
+
3848
3865
  export interface QuickMenuAccess {
3849
3866
  id: string;
3850
3867
  bot_id: string;
@@ -3904,6 +3921,7 @@ function createBaseAccount(): Account {
3904
3921
  logo: "",
3905
3922
  splash_screen: "",
3906
3923
  encrypt_private_key: "",
3924
+ password_setted: false,
3907
3925
  };
3908
3926
  }
3909
3927
 
@@ -3936,6 +3954,9 @@ export const Account = {
3936
3954
  if (message.encrypt_private_key !== "") {
3937
3955
  writer.uint32(74).string(message.encrypt_private_key);
3938
3956
  }
3957
+ if (message.password_setted !== false) {
3958
+ writer.uint32(80).bool(message.password_setted);
3959
+ }
3939
3960
  return writer;
3940
3961
  },
3941
3962
 
@@ -4009,6 +4030,13 @@ export const Account = {
4009
4030
 
4010
4031
  message.encrypt_private_key = reader.string();
4011
4032
  continue;
4033
+ case 10:
4034
+ if (tag !== 80) {
4035
+ break;
4036
+ }
4037
+
4038
+ message.password_setted = reader.bool();
4039
+ continue;
4012
4040
  }
4013
4041
  if ((tag & 7) === 4 || tag === 0) {
4014
4042
  break;
@@ -4029,6 +4057,7 @@ export const Account = {
4029
4057
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
4030
4058
  splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
4031
4059
  encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
4060
+ password_setted: isSet(object.password_setted) ? globalThis.Boolean(object.password_setted) : false,
4032
4061
  };
4033
4062
  },
4034
4063
 
@@ -4061,6 +4090,9 @@ export const Account = {
4061
4090
  if (message.encrypt_private_key !== "") {
4062
4091
  obj.encrypt_private_key = message.encrypt_private_key;
4063
4092
  }
4093
+ if (message.password_setted !== false) {
4094
+ obj.password_setted = message.password_setted;
4095
+ }
4064
4096
  return obj;
4065
4097
  },
4066
4098
 
@@ -4078,6 +4110,7 @@ export const Account = {
4078
4110
  message.logo = object.logo ?? "";
4079
4111
  message.splash_screen = object.splash_screen ?? "";
4080
4112
  message.encrypt_private_key = object.encrypt_private_key ?? "";
4113
+ message.password_setted = object.password_setted ?? false;
4081
4114
  return message;
4082
4115
  },
4083
4116
  };
@@ -10900,6 +10933,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
10900
10933
  logo: undefined,
10901
10934
  splash_screen: "",
10902
10935
  encrypt_private_key: "",
10936
+ email: undefined,
10903
10937
  };
10904
10938
  }
10905
10939
 
@@ -10938,6 +10972,9 @@ export const UpdateAccountRequest = {
10938
10972
  if (message.encrypt_private_key !== "") {
10939
10973
  writer.uint32(90).string(message.encrypt_private_key);
10940
10974
  }
10975
+ if (message.email !== undefined) {
10976
+ StringValue.encode({ value: message.email! }, writer.uint32(98).fork()).ldelim();
10977
+ }
10941
10978
  return writer;
10942
10979
  },
10943
10980
 
@@ -11025,6 +11062,13 @@ export const UpdateAccountRequest = {
11025
11062
 
11026
11063
  message.encrypt_private_key = reader.string();
11027
11064
  continue;
11065
+ case 12:
11066
+ if (tag !== 98) {
11067
+ break;
11068
+ }
11069
+
11070
+ message.email = StringValue.decode(reader, reader.uint32()).value;
11071
+ continue;
11028
11072
  }
11029
11073
  if ((tag & 7) === 4 || tag === 0) {
11030
11074
  break;
@@ -11047,6 +11091,7 @@ export const UpdateAccountRequest = {
11047
11091
  logo: isSet(object.logo) ? String(object.logo) : undefined,
11048
11092
  splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
11049
11093
  encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
11094
+ email: isSet(object.email) ? String(object.email) : undefined,
11050
11095
  };
11051
11096
  },
11052
11097
 
@@ -11085,6 +11130,9 @@ export const UpdateAccountRequest = {
11085
11130
  if (message.encrypt_private_key !== "") {
11086
11131
  obj.encrypt_private_key = message.encrypt_private_key;
11087
11132
  }
11133
+ if (message.email !== undefined) {
11134
+ obj.email = message.email;
11135
+ }
11088
11136
  return obj;
11089
11137
  },
11090
11138
 
@@ -11104,6 +11152,7 @@ export const UpdateAccountRequest = {
11104
11152
  message.logo = object.logo ?? undefined;
11105
11153
  message.splash_screen = object.splash_screen ?? "";
11106
11154
  message.encrypt_private_key = object.encrypt_private_key ?? "";
11155
+ message.email = object.email ?? undefined;
11107
11156
  return message;
11108
11157
  },
11109
11158
  };
@@ -11348,15 +11397,11 @@ function createBaseUser(): User {
11348
11397
  location: "",
11349
11398
  timezone: "",
11350
11399
  metadata: "",
11351
- facebook_id: "",
11352
- google_id: "",
11353
- gamecenter_id: "",
11354
- steam_id: "",
11355
11400
  online: false,
11401
+ phone_number: "",
11356
11402
  edge_count: 0,
11357
11403
  create_time: undefined,
11358
11404
  update_time: undefined,
11359
- apple_id: "",
11360
11405
  about_me: "",
11361
11406
  join_time: undefined,
11362
11407
  is_mobile: false,
@@ -11392,50 +11437,38 @@ export const User = {
11392
11437
  if (message.metadata !== "") {
11393
11438
  writer.uint32(66).string(message.metadata);
11394
11439
  }
11395
- if (message.facebook_id !== "") {
11396
- writer.uint32(74).string(message.facebook_id);
11397
- }
11398
- if (message.google_id !== "") {
11399
- writer.uint32(82).string(message.google_id);
11400
- }
11401
- if (message.gamecenter_id !== "") {
11402
- writer.uint32(90).string(message.gamecenter_id);
11403
- }
11404
- if (message.steam_id !== "") {
11405
- writer.uint32(98).string(message.steam_id);
11406
- }
11407
11440
  if (message.online !== false) {
11408
- writer.uint32(104).bool(message.online);
11441
+ writer.uint32(72).bool(message.online);
11442
+ }
11443
+ if (message.phone_number !== "") {
11444
+ writer.uint32(82).string(message.phone_number);
11409
11445
  }
11410
11446
  if (message.edge_count !== 0) {
11411
- writer.uint32(112).int32(message.edge_count);
11447
+ writer.uint32(88).int32(message.edge_count);
11412
11448
  }
11413
11449
  if (message.create_time !== undefined) {
11414
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(122).fork()).ldelim();
11450
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
11415
11451
  }
11416
11452
  if (message.update_time !== undefined) {
11417
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(130).fork()).ldelim();
11418
- }
11419
- if (message.apple_id !== "") {
11420
- writer.uint32(138).string(message.apple_id);
11453
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
11421
11454
  }
11422
11455
  if (message.about_me !== "") {
11423
- writer.uint32(146).string(message.about_me);
11456
+ writer.uint32(114).string(message.about_me);
11424
11457
  }
11425
11458
  if (message.join_time !== undefined) {
11426
- Timestamp.encode(toTimestamp(message.join_time), writer.uint32(154).fork()).ldelim();
11459
+ Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
11427
11460
  }
11428
11461
  if (message.is_mobile !== false) {
11429
- writer.uint32(160).bool(message.is_mobile);
11462
+ writer.uint32(128).bool(message.is_mobile);
11430
11463
  }
11431
11464
  if (message.dob !== undefined) {
11432
- Timestamp.encode(toTimestamp(message.dob), writer.uint32(170).fork()).ldelim();
11465
+ Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
11433
11466
  }
11434
11467
  if (message.mezon_id !== "") {
11435
- writer.uint32(178).string(message.mezon_id);
11468
+ writer.uint32(146).string(message.mezon_id);
11436
11469
  }
11437
11470
  for (const v of message.list_nick_names) {
11438
- writer.uint32(186).string(v!);
11471
+ writer.uint32(154).string(v!);
11439
11472
  }
11440
11473
  return writer;
11441
11474
  },
@@ -11504,108 +11537,80 @@ export const User = {
11504
11537
  message.metadata = reader.string();
11505
11538
  continue;
11506
11539
  case 9:
11507
- if (tag !== 74) {
11540
+ if (tag !== 72) {
11508
11541
  break;
11509
11542
  }
11510
11543
 
11511
- message.facebook_id = reader.string();
11544
+ message.online = reader.bool();
11512
11545
  continue;
11513
11546
  case 10:
11514
11547
  if (tag !== 82) {
11515
11548
  break;
11516
11549
  }
11517
11550
 
11518
- message.google_id = reader.string();
11551
+ message.phone_number = reader.string();
11519
11552
  continue;
11520
11553
  case 11:
11521
- if (tag !== 90) {
11554
+ if (tag !== 88) {
11522
11555
  break;
11523
11556
  }
11524
11557
 
11525
- message.gamecenter_id = reader.string();
11558
+ message.edge_count = reader.int32();
11526
11559
  continue;
11527
11560
  case 12:
11528
11561
  if (tag !== 98) {
11529
11562
  break;
11530
11563
  }
11531
11564
 
11532
- message.steam_id = reader.string();
11565
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11533
11566
  continue;
11534
11567
  case 13:
11535
- if (tag !== 104) {
11568
+ if (tag !== 106) {
11536
11569
  break;
11537
11570
  }
11538
11571
 
11539
- message.online = reader.bool();
11572
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11540
11573
  continue;
11541
11574
  case 14:
11542
- if (tag !== 112) {
11575
+ if (tag !== 114) {
11543
11576
  break;
11544
11577
  }
11545
11578
 
11546
- message.edge_count = reader.int32();
11579
+ message.about_me = reader.string();
11547
11580
  continue;
11548
11581
  case 15:
11549
11582
  if (tag !== 122) {
11550
11583
  break;
11551
11584
  }
11552
11585
 
11553
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11586
+ message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11554
11587
  continue;
11555
11588
  case 16:
11556
- if (tag !== 130) {
11589
+ if (tag !== 128) {
11557
11590
  break;
11558
11591
  }
11559
11592
 
11560
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11593
+ message.is_mobile = reader.bool();
11561
11594
  continue;
11562
11595
  case 17:
11563
11596
  if (tag !== 138) {
11564
11597
  break;
11565
11598
  }
11566
11599
 
11567
- message.apple_id = reader.string();
11600
+ message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11568
11601
  continue;
11569
11602
  case 18:
11570
11603
  if (tag !== 146) {
11571
11604
  break;
11572
11605
  }
11573
11606
 
11574
- message.about_me = reader.string();
11607
+ message.mezon_id = reader.string();
11575
11608
  continue;
11576
11609
  case 19:
11577
11610
  if (tag !== 154) {
11578
11611
  break;
11579
11612
  }
11580
11613
 
11581
- message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11582
- continue;
11583
- case 20:
11584
- if (tag !== 160) {
11585
- break;
11586
- }
11587
-
11588
- message.is_mobile = reader.bool();
11589
- continue;
11590
- case 21:
11591
- if (tag !== 170) {
11592
- break;
11593
- }
11594
-
11595
- message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
11596
- continue;
11597
- case 22:
11598
- if (tag !== 178) {
11599
- break;
11600
- }
11601
-
11602
- message.mezon_id = reader.string();
11603
- continue;
11604
- case 23:
11605
- if (tag !== 186) {
11606
- break;
11607
- }
11608
-
11609
11614
  message.list_nick_names.push(reader.string());
11610
11615
  continue;
11611
11616
  }
@@ -11627,15 +11632,11 @@ export const User = {
11627
11632
  location: isSet(object.location) ? globalThis.String(object.location) : "",
11628
11633
  timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
11629
11634
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
11630
- facebook_id: isSet(object.facebook_id) ? globalThis.String(object.facebook_id) : "",
11631
- google_id: isSet(object.google_id) ? globalThis.String(object.google_id) : "",
11632
- gamecenter_id: isSet(object.gamecenter_id) ? globalThis.String(object.gamecenter_id) : "",
11633
- steam_id: isSet(object.steam_id) ? globalThis.String(object.steam_id) : "",
11634
11635
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
11636
+ phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
11635
11637
  edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
11636
11638
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
11637
11639
  update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
11638
- apple_id: isSet(object.apple_id) ? globalThis.String(object.apple_id) : "",
11639
11640
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
11640
11641
  join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
11641
11642
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
@@ -11673,21 +11674,12 @@ export const User = {
11673
11674
  if (message.metadata !== "") {
11674
11675
  obj.metadata = message.metadata;
11675
11676
  }
11676
- if (message.facebook_id !== "") {
11677
- obj.facebook_id = message.facebook_id;
11678
- }
11679
- if (message.google_id !== "") {
11680
- obj.google_id = message.google_id;
11681
- }
11682
- if (message.gamecenter_id !== "") {
11683
- obj.gamecenter_id = message.gamecenter_id;
11684
- }
11685
- if (message.steam_id !== "") {
11686
- obj.steam_id = message.steam_id;
11687
- }
11688
11677
  if (message.online !== false) {
11689
11678
  obj.online = message.online;
11690
11679
  }
11680
+ if (message.phone_number !== "") {
11681
+ obj.phone_number = message.phone_number;
11682
+ }
11691
11683
  if (message.edge_count !== 0) {
11692
11684
  obj.edge_count = Math.round(message.edge_count);
11693
11685
  }
@@ -11697,9 +11689,6 @@ export const User = {
11697
11689
  if (message.update_time !== undefined) {
11698
11690
  obj.update_time = message.update_time.toISOString();
11699
11691
  }
11700
- if (message.apple_id !== "") {
11701
- obj.apple_id = message.apple_id;
11702
- }
11703
11692
  if (message.about_me !== "") {
11704
11693
  obj.about_me = message.about_me;
11705
11694
  }
@@ -11734,15 +11723,11 @@ export const User = {
11734
11723
  message.location = object.location ?? "";
11735
11724
  message.timezone = object.timezone ?? "";
11736
11725
  message.metadata = object.metadata ?? "";
11737
- message.facebook_id = object.facebook_id ?? "";
11738
- message.google_id = object.google_id ?? "";
11739
- message.gamecenter_id = object.gamecenter_id ?? "";
11740
- message.steam_id = object.steam_id ?? "";
11741
11726
  message.online = object.online ?? false;
11727
+ message.phone_number = object.phone_number ?? "";
11742
11728
  message.edge_count = object.edge_count ?? 0;
11743
11729
  message.create_time = object.create_time ?? undefined;
11744
11730
  message.update_time = object.update_time ?? undefined;
11745
- message.apple_id = object.apple_id ?? "";
11746
11731
  message.about_me = object.about_me ?? "";
11747
11732
  message.join_time = object.join_time ?? undefined;
11748
11733
  message.is_mobile = object.is_mobile ?? false;
@@ -16260,13 +16245,16 @@ export const CreateChannelDescRequest = {
16260
16245
  };
16261
16246
 
16262
16247
  function createBaseDeleteChannelDescRequest(): DeleteChannelDescRequest {
16263
- return { channel_id: "" };
16248
+ return { clan_id: "", channel_id: "" };
16264
16249
  }
16265
16250
 
16266
16251
  export const DeleteChannelDescRequest = {
16267
16252
  encode(message: DeleteChannelDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16253
+ if (message.clan_id !== "") {
16254
+ writer.uint32(10).string(message.clan_id);
16255
+ }
16268
16256
  if (message.channel_id !== "") {
16269
- writer.uint32(10).string(message.channel_id);
16257
+ writer.uint32(18).string(message.channel_id);
16270
16258
  }
16271
16259
  return writer;
16272
16260
  },
@@ -16283,6 +16271,13 @@ export const DeleteChannelDescRequest = {
16283
16271
  break;
16284
16272
  }
16285
16273
 
16274
+ message.clan_id = reader.string();
16275
+ continue;
16276
+ case 2:
16277
+ if (tag !== 18) {
16278
+ break;
16279
+ }
16280
+
16286
16281
  message.channel_id = reader.string();
16287
16282
  continue;
16288
16283
  }
@@ -16295,11 +16290,17 @@ export const DeleteChannelDescRequest = {
16295
16290
  },
16296
16291
 
16297
16292
  fromJSON(object: any): DeleteChannelDescRequest {
16298
- return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
16293
+ return {
16294
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16295
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16296
+ };
16299
16297
  },
16300
16298
 
16301
16299
  toJSON(message: DeleteChannelDescRequest): unknown {
16302
16300
  const obj: any = {};
16301
+ if (message.clan_id !== "") {
16302
+ obj.clan_id = message.clan_id;
16303
+ }
16303
16304
  if (message.channel_id !== "") {
16304
16305
  obj.channel_id = message.channel_id;
16305
16306
  }
@@ -16311,6 +16312,7 @@ export const DeleteChannelDescRequest = {
16311
16312
  },
16312
16313
  fromPartial<I extends Exact<DeepPartial<DeleteChannelDescRequest>, I>>(object: I): DeleteChannelDescRequest {
16313
16314
  const message = createBaseDeleteChannelDescRequest();
16315
+ message.clan_id = object.clan_id ?? "";
16314
16316
  message.channel_id = object.channel_id ?? "";
16315
16317
  return message;
16316
16318
  },
@@ -16318,6 +16320,7 @@ export const DeleteChannelDescRequest = {
16318
16320
 
16319
16321
  function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
16320
16322
  return {
16323
+ clan_id: "",
16321
16324
  channel_id: "",
16322
16325
  channel_label: undefined,
16323
16326
  category_id: undefined,
@@ -16330,26 +16333,29 @@ function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
16330
16333
 
16331
16334
  export const UpdateChannelDescRequest = {
16332
16335
  encode(message: UpdateChannelDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16336
+ if (message.clan_id !== "") {
16337
+ writer.uint32(10).string(message.clan_id);
16338
+ }
16333
16339
  if (message.channel_id !== "") {
16334
- writer.uint32(10).string(message.channel_id);
16340
+ writer.uint32(18).string(message.channel_id);
16335
16341
  }
16336
16342
  if (message.channel_label !== undefined) {
16337
- StringValue.encode({ value: message.channel_label! }, writer.uint32(18).fork()).ldelim();
16343
+ StringValue.encode({ value: message.channel_label! }, writer.uint32(26).fork()).ldelim();
16338
16344
  }
16339
16345
  if (message.category_id !== undefined) {
16340
- StringValue.encode({ value: message.category_id! }, writer.uint32(26).fork()).ldelim();
16346
+ StringValue.encode({ value: message.category_id! }, writer.uint32(34).fork()).ldelim();
16341
16347
  }
16342
16348
  if (message.app_id !== "") {
16343
- writer.uint32(34).string(message.app_id);
16349
+ writer.uint32(42).string(message.app_id);
16344
16350
  }
16345
16351
  if (message.topic !== "") {
16346
- writer.uint32(42).string(message.topic);
16352
+ writer.uint32(50).string(message.topic);
16347
16353
  }
16348
16354
  if (message.age_restricted !== 0) {
16349
- writer.uint32(48).int32(message.age_restricted);
16355
+ writer.uint32(56).int32(message.age_restricted);
16350
16356
  }
16351
16357
  if (message.e2ee !== 0) {
16352
- writer.uint32(56).int32(message.e2ee);
16358
+ writer.uint32(64).int32(message.e2ee);
16353
16359
  }
16354
16360
  return writer;
16355
16361
  },
@@ -16366,48 +16372,55 @@ export const UpdateChannelDescRequest = {
16366
16372
  break;
16367
16373
  }
16368
16374
 
16369
- message.channel_id = reader.string();
16375
+ message.clan_id = reader.string();
16370
16376
  continue;
16371
16377
  case 2:
16372
16378
  if (tag !== 18) {
16373
16379
  break;
16374
16380
  }
16375
16381
 
16376
- message.channel_label = StringValue.decode(reader, reader.uint32()).value;
16382
+ message.channel_id = reader.string();
16377
16383
  continue;
16378
16384
  case 3:
16379
16385
  if (tag !== 26) {
16380
16386
  break;
16381
16387
  }
16382
16388
 
16383
- message.category_id = StringValue.decode(reader, reader.uint32()).value;
16389
+ message.channel_label = StringValue.decode(reader, reader.uint32()).value;
16384
16390
  continue;
16385
16391
  case 4:
16386
16392
  if (tag !== 34) {
16387
16393
  break;
16388
16394
  }
16389
16395
 
16390
- message.app_id = reader.string();
16396
+ message.category_id = StringValue.decode(reader, reader.uint32()).value;
16391
16397
  continue;
16392
16398
  case 5:
16393
16399
  if (tag !== 42) {
16394
16400
  break;
16395
16401
  }
16396
16402
 
16397
- message.topic = reader.string();
16403
+ message.app_id = reader.string();
16398
16404
  continue;
16399
16405
  case 6:
16400
- if (tag !== 48) {
16406
+ if (tag !== 50) {
16401
16407
  break;
16402
16408
  }
16403
16409
 
16404
- message.age_restricted = reader.int32();
16410
+ message.topic = reader.string();
16405
16411
  continue;
16406
16412
  case 7:
16407
16413
  if (tag !== 56) {
16408
16414
  break;
16409
16415
  }
16410
16416
 
16417
+ message.age_restricted = reader.int32();
16418
+ continue;
16419
+ case 8:
16420
+ if (tag !== 64) {
16421
+ break;
16422
+ }
16423
+
16411
16424
  message.e2ee = reader.int32();
16412
16425
  continue;
16413
16426
  }
@@ -16421,6 +16434,7 @@ export const UpdateChannelDescRequest = {
16421
16434
 
16422
16435
  fromJSON(object: any): UpdateChannelDescRequest {
16423
16436
  return {
16437
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16424
16438
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16425
16439
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : undefined,
16426
16440
  category_id: isSet(object.category_id) ? String(object.category_id) : undefined,
@@ -16433,6 +16447,9 @@ export const UpdateChannelDescRequest = {
16433
16447
 
16434
16448
  toJSON(message: UpdateChannelDescRequest): unknown {
16435
16449
  const obj: any = {};
16450
+ if (message.clan_id !== "") {
16451
+ obj.clan_id = message.clan_id;
16452
+ }
16436
16453
  if (message.channel_id !== "") {
16437
16454
  obj.channel_id = message.channel_id;
16438
16455
  }
@@ -16462,6 +16479,7 @@ export const UpdateChannelDescRequest = {
16462
16479
  },
16463
16480
  fromPartial<I extends Exact<DeepPartial<UpdateChannelDescRequest>, I>>(object: I): UpdateChannelDescRequest {
16464
16481
  const message = createBaseUpdateChannelDescRequest();
16482
+ message.clan_id = object.clan_id ?? "";
16465
16483
  message.channel_id = object.channel_id ?? "";
16466
16484
  message.channel_label = object.channel_label ?? undefined;
16467
16485
  message.category_id = object.category_id ?? undefined;
@@ -16474,22 +16492,25 @@ export const UpdateChannelDescRequest = {
16474
16492
  };
16475
16493
 
16476
16494
  function createBaseChangeChannelPrivateRequest(): ChangeChannelPrivateRequest {
16477
- return { channel_id: "", channel_private: 0, user_ids: [], role_ids: [] };
16495
+ return { clan_id: "", channel_id: "", channel_private: 0, user_ids: [], role_ids: [] };
16478
16496
  }
16479
16497
 
16480
16498
  export const ChangeChannelPrivateRequest = {
16481
16499
  encode(message: ChangeChannelPrivateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16500
+ if (message.clan_id !== "") {
16501
+ writer.uint32(10).string(message.clan_id);
16502
+ }
16482
16503
  if (message.channel_id !== "") {
16483
- writer.uint32(10).string(message.channel_id);
16504
+ writer.uint32(18).string(message.channel_id);
16484
16505
  }
16485
16506
  if (message.channel_private !== 0) {
16486
- writer.uint32(16).int32(message.channel_private);
16507
+ writer.uint32(24).int32(message.channel_private);
16487
16508
  }
16488
16509
  for (const v of message.user_ids) {
16489
- writer.uint32(26).string(v!);
16510
+ writer.uint32(34).string(v!);
16490
16511
  }
16491
16512
  for (const v of message.role_ids) {
16492
- writer.uint32(34).string(v!);
16513
+ writer.uint32(42).string(v!);
16493
16514
  }
16494
16515
  return writer;
16495
16516
  },
@@ -16506,27 +16527,34 @@ export const ChangeChannelPrivateRequest = {
16506
16527
  break;
16507
16528
  }
16508
16529
 
16509
- message.channel_id = reader.string();
16530
+ message.clan_id = reader.string();
16510
16531
  continue;
16511
16532
  case 2:
16512
- if (tag !== 16) {
16533
+ if (tag !== 18) {
16513
16534
  break;
16514
16535
  }
16515
16536
 
16516
- message.channel_private = reader.int32();
16537
+ message.channel_id = reader.string();
16517
16538
  continue;
16518
16539
  case 3:
16519
- if (tag !== 26) {
16540
+ if (tag !== 24) {
16520
16541
  break;
16521
16542
  }
16522
16543
 
16523
- message.user_ids.push(reader.string());
16544
+ message.channel_private = reader.int32();
16524
16545
  continue;
16525
16546
  case 4:
16526
16547
  if (tag !== 34) {
16527
16548
  break;
16528
16549
  }
16529
16550
 
16551
+ message.user_ids.push(reader.string());
16552
+ continue;
16553
+ case 5:
16554
+ if (tag !== 42) {
16555
+ break;
16556
+ }
16557
+
16530
16558
  message.role_ids.push(reader.string());
16531
16559
  continue;
16532
16560
  }
@@ -16540,6 +16568,7 @@ export const ChangeChannelPrivateRequest = {
16540
16568
 
16541
16569
  fromJSON(object: any): ChangeChannelPrivateRequest {
16542
16570
  return {
16571
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16543
16572
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16544
16573
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
16545
16574
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
@@ -16549,6 +16578,9 @@ export const ChangeChannelPrivateRequest = {
16549
16578
 
16550
16579
  toJSON(message: ChangeChannelPrivateRequest): unknown {
16551
16580
  const obj: any = {};
16581
+ if (message.clan_id !== "") {
16582
+ obj.clan_id = message.clan_id;
16583
+ }
16552
16584
  if (message.channel_id !== "") {
16553
16585
  obj.channel_id = message.channel_id;
16554
16586
  }
@@ -16569,6 +16601,7 @@ export const ChangeChannelPrivateRequest = {
16569
16601
  },
16570
16602
  fromPartial<I extends Exact<DeepPartial<ChangeChannelPrivateRequest>, I>>(object: I): ChangeChannelPrivateRequest {
16571
16603
  const message = createBaseChangeChannelPrivateRequest();
16604
+ message.clan_id = object.clan_id ?? "";
16572
16605
  message.channel_id = object.channel_id ?? "";
16573
16606
  message.channel_private = object.channel_private ?? 0;
16574
16607
  message.user_ids = object.user_ids?.map((e) => e) || [];
@@ -16800,13 +16833,16 @@ export const RemoveClanUsersRequest = {
16800
16833
  };
16801
16834
 
16802
16835
  function createBaseLeaveThreadRequest(): LeaveThreadRequest {
16803
- return { channel_id: "" };
16836
+ return { clan_id: "", channel_id: "" };
16804
16837
  }
16805
16838
 
16806
16839
  export const LeaveThreadRequest = {
16807
16840
  encode(message: LeaveThreadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
16841
+ if (message.clan_id !== "") {
16842
+ writer.uint32(10).string(message.clan_id);
16843
+ }
16808
16844
  if (message.channel_id !== "") {
16809
- writer.uint32(10).string(message.channel_id);
16845
+ writer.uint32(18).string(message.channel_id);
16810
16846
  }
16811
16847
  return writer;
16812
16848
  },
@@ -16823,6 +16859,13 @@ export const LeaveThreadRequest = {
16823
16859
  break;
16824
16860
  }
16825
16861
 
16862
+ message.clan_id = reader.string();
16863
+ continue;
16864
+ case 2:
16865
+ if (tag !== 18) {
16866
+ break;
16867
+ }
16868
+
16826
16869
  message.channel_id = reader.string();
16827
16870
  continue;
16828
16871
  }
@@ -16835,11 +16878,17 @@ export const LeaveThreadRequest = {
16835
16878
  },
16836
16879
 
16837
16880
  fromJSON(object: any): LeaveThreadRequest {
16838
- return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
16881
+ return {
16882
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
16883
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16884
+ };
16839
16885
  },
16840
16886
 
16841
16887
  toJSON(message: LeaveThreadRequest): unknown {
16842
16888
  const obj: any = {};
16889
+ if (message.clan_id !== "") {
16890
+ obj.clan_id = message.clan_id;
16891
+ }
16843
16892
  if (message.channel_id !== "") {
16844
16893
  obj.channel_id = message.channel_id;
16845
16894
  }
@@ -16851,6 +16900,7 @@ export const LeaveThreadRequest = {
16851
16900
  },
16852
16901
  fromPartial<I extends Exact<DeepPartial<LeaveThreadRequest>, I>>(object: I): LeaveThreadRequest {
16853
16902
  const message = createBaseLeaveThreadRequest();
16903
+ message.clan_id = object.clan_id ?? "";
16854
16904
  message.channel_id = object.channel_id ?? "";
16855
16905
  return message;
16856
16906
  },
@@ -22778,7 +22828,16 @@ export const SearchMessageResponse = {
22778
22828
  };
22779
22829
 
22780
22830
  function createBaseRegistrationEmailRequest(): RegistrationEmailRequest {
22781
- return { email: "", password: "", username: "", display_name: "", avatar_url: "", dob: "", vars: {} };
22831
+ return {
22832
+ email: "",
22833
+ password: "",
22834
+ old_password: "",
22835
+ username: "",
22836
+ display_name: "",
22837
+ avatar_url: "",
22838
+ dob: "",
22839
+ vars: {},
22840
+ };
22782
22841
  }
22783
22842
 
22784
22843
  export const RegistrationEmailRequest = {
@@ -22789,20 +22848,23 @@ export const RegistrationEmailRequest = {
22789
22848
  if (message.password !== "") {
22790
22849
  writer.uint32(18).string(message.password);
22791
22850
  }
22851
+ if (message.old_password !== "") {
22852
+ writer.uint32(26).string(message.old_password);
22853
+ }
22792
22854
  if (message.username !== "") {
22793
- writer.uint32(26).string(message.username);
22855
+ writer.uint32(34).string(message.username);
22794
22856
  }
22795
22857
  if (message.display_name !== "") {
22796
- writer.uint32(34).string(message.display_name);
22858
+ writer.uint32(42).string(message.display_name);
22797
22859
  }
22798
22860
  if (message.avatar_url !== "") {
22799
- writer.uint32(42).string(message.avatar_url);
22861
+ writer.uint32(50).string(message.avatar_url);
22800
22862
  }
22801
22863
  if (message.dob !== "") {
22802
- writer.uint32(50).string(message.dob);
22864
+ writer.uint32(58).string(message.dob);
22803
22865
  }
22804
22866
  Object.entries(message.vars).forEach(([key, value]) => {
22805
- RegistrationEmailRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim();
22867
+ RegistrationEmailRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).ldelim();
22806
22868
  });
22807
22869
  return writer;
22808
22870
  },
@@ -22833,37 +22895,44 @@ export const RegistrationEmailRequest = {
22833
22895
  break;
22834
22896
  }
22835
22897
 
22836
- message.username = reader.string();
22898
+ message.old_password = reader.string();
22837
22899
  continue;
22838
22900
  case 4:
22839
22901
  if (tag !== 34) {
22840
22902
  break;
22841
22903
  }
22842
22904
 
22843
- message.display_name = reader.string();
22905
+ message.username = reader.string();
22844
22906
  continue;
22845
22907
  case 5:
22846
22908
  if (tag !== 42) {
22847
22909
  break;
22848
22910
  }
22849
22911
 
22850
- message.avatar_url = reader.string();
22912
+ message.display_name = reader.string();
22851
22913
  continue;
22852
22914
  case 6:
22853
22915
  if (tag !== 50) {
22854
22916
  break;
22855
22917
  }
22856
22918
 
22857
- message.dob = reader.string();
22919
+ message.avatar_url = reader.string();
22858
22920
  continue;
22859
22921
  case 7:
22860
22922
  if (tag !== 58) {
22861
22923
  break;
22862
22924
  }
22863
22925
 
22864
- const entry7 = RegistrationEmailRequest_VarsEntry.decode(reader, reader.uint32());
22865
- if (entry7.value !== undefined) {
22866
- message.vars[entry7.key] = entry7.value;
22926
+ message.dob = reader.string();
22927
+ continue;
22928
+ case 8:
22929
+ if (tag !== 66) {
22930
+ break;
22931
+ }
22932
+
22933
+ const entry8 = RegistrationEmailRequest_VarsEntry.decode(reader, reader.uint32());
22934
+ if (entry8.value !== undefined) {
22935
+ message.vars[entry8.key] = entry8.value;
22867
22936
  }
22868
22937
  continue;
22869
22938
  }
@@ -22879,6 +22948,7 @@ export const RegistrationEmailRequest = {
22879
22948
  return {
22880
22949
  email: isSet(object.email) ? globalThis.String(object.email) : "",
22881
22950
  password: isSet(object.password) ? globalThis.String(object.password) : "",
22951
+ old_password: isSet(object.old_password) ? globalThis.String(object.old_password) : "",
22882
22952
  username: isSet(object.username) ? globalThis.String(object.username) : "",
22883
22953
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
22884
22954
  avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
@@ -22900,6 +22970,9 @@ export const RegistrationEmailRequest = {
22900
22970
  if (message.password !== "") {
22901
22971
  obj.password = message.password;
22902
22972
  }
22973
+ if (message.old_password !== "") {
22974
+ obj.old_password = message.old_password;
22975
+ }
22903
22976
  if (message.username !== "") {
22904
22977
  obj.username = message.username;
22905
22978
  }
@@ -22931,6 +23004,7 @@ export const RegistrationEmailRequest = {
22931
23004
  const message = createBaseRegistrationEmailRequest();
22932
23005
  message.email = object.email ?? "";
22933
23006
  message.password = object.password ?? "";
23007
+ message.old_password = object.old_password ?? "";
22934
23008
  message.username = object.username ?? "";
22935
23009
  message.display_name = object.display_name ?? "";
22936
23010
  message.avatar_url = object.avatar_url ?? "";
@@ -30531,13 +30605,16 @@ export const AddFavoriteChannelRequest = {
30531
30605
  };
30532
30606
 
30533
30607
  function createBaseRemoveFavoriteChannelRequest(): RemoveFavoriteChannelRequest {
30534
- return { channel_id: "" };
30608
+ return { clan_id: "", channel_id: "" };
30535
30609
  }
30536
30610
 
30537
30611
  export const RemoveFavoriteChannelRequest = {
30538
30612
  encode(message: RemoveFavoriteChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
30613
+ if (message.clan_id !== "") {
30614
+ writer.uint32(10).string(message.clan_id);
30615
+ }
30539
30616
  if (message.channel_id !== "") {
30540
- writer.uint32(10).string(message.channel_id);
30617
+ writer.uint32(18).string(message.channel_id);
30541
30618
  }
30542
30619
  return writer;
30543
30620
  },
@@ -30554,6 +30631,13 @@ export const RemoveFavoriteChannelRequest = {
30554
30631
  break;
30555
30632
  }
30556
30633
 
30634
+ message.clan_id = reader.string();
30635
+ continue;
30636
+ case 2:
30637
+ if (tag !== 18) {
30638
+ break;
30639
+ }
30640
+
30557
30641
  message.channel_id = reader.string();
30558
30642
  continue;
30559
30643
  }
@@ -30566,11 +30650,17 @@ export const RemoveFavoriteChannelRequest = {
30566
30650
  },
30567
30651
 
30568
30652
  fromJSON(object: any): RemoveFavoriteChannelRequest {
30569
- return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
30653
+ return {
30654
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
30655
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
30656
+ };
30570
30657
  },
30571
30658
 
30572
30659
  toJSON(message: RemoveFavoriteChannelRequest): unknown {
30573
30660
  const obj: any = {};
30661
+ if (message.clan_id !== "") {
30662
+ obj.clan_id = message.clan_id;
30663
+ }
30574
30664
  if (message.channel_id !== "") {
30575
30665
  obj.channel_id = message.channel_id;
30576
30666
  }
@@ -30582,6 +30672,7 @@ export const RemoveFavoriteChannelRequest = {
30582
30672
  },
30583
30673
  fromPartial<I extends Exact<DeepPartial<RemoveFavoriteChannelRequest>, I>>(object: I): RemoveFavoriteChannelRequest {
30584
30674
  const message = createBaseRemoveFavoriteChannelRequest();
30675
+ message.clan_id = object.clan_id ?? "";
30585
30676
  message.channel_id = object.channel_id ?? "";
30586
30677
  return message;
30587
30678
  },
@@ -37854,7 +37945,7 @@ export const Message2InboxRequest = {
37854
37945
  };
37855
37946
 
37856
37947
  function createBaseAccountEmail(): AccountEmail {
37857
- return { email: "", password: "", vars: {} };
37948
+ return { email: "", password: "", prev_email: "", vars: {} };
37858
37949
  }
37859
37950
 
37860
37951
  export const AccountEmail = {
@@ -37865,8 +37956,11 @@ export const AccountEmail = {
37865
37956
  if (message.password !== "") {
37866
37957
  writer.uint32(18).string(message.password);
37867
37958
  }
37959
+ if (message.prev_email !== "") {
37960
+ writer.uint32(26).string(message.prev_email);
37961
+ }
37868
37962
  Object.entries(message.vars).forEach(([key, value]) => {
37869
- AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
37963
+ AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim();
37870
37964
  });
37871
37965
  return writer;
37872
37966
  },
@@ -37897,9 +37991,16 @@ export const AccountEmail = {
37897
37991
  break;
37898
37992
  }
37899
37993
 
37900
- const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
37901
- if (entry3.value !== undefined) {
37902
- message.vars[entry3.key] = entry3.value;
37994
+ message.prev_email = reader.string();
37995
+ continue;
37996
+ case 4:
37997
+ if (tag !== 34) {
37998
+ break;
37999
+ }
38000
+
38001
+ const entry4 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
38002
+ if (entry4.value !== undefined) {
38003
+ message.vars[entry4.key] = entry4.value;
37903
38004
  }
37904
38005
  continue;
37905
38006
  }
@@ -37915,6 +38016,7 @@ export const AccountEmail = {
37915
38016
  return {
37916
38017
  email: isSet(object.email) ? globalThis.String(object.email) : "",
37917
38018
  password: isSet(object.password) ? globalThis.String(object.password) : "",
38019
+ prev_email: isSet(object.prev_email) ? globalThis.String(object.prev_email) : "",
37918
38020
  vars: isObject(object.vars)
37919
38021
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37920
38022
  acc[key] = String(value);
@@ -37932,6 +38034,9 @@ export const AccountEmail = {
37932
38034
  if (message.password !== "") {
37933
38035
  obj.password = message.password;
37934
38036
  }
38037
+ if (message.prev_email !== "") {
38038
+ obj.prev_email = message.prev_email;
38039
+ }
37935
38040
  if (message.vars) {
37936
38041
  const entries = Object.entries(message.vars);
37937
38042
  if (entries.length > 0) {
@@ -37951,6 +38056,7 @@ export const AccountEmail = {
37951
38056
  const message = createBaseAccountEmail();
37952
38057
  message.email = object.email ?? "";
37953
38058
  message.password = object.password ?? "";
38059
+ message.prev_email = object.prev_email ?? "";
37954
38060
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
37955
38061
  if (value !== undefined) {
37956
38062
  acc[key] = globalThis.String(value);
@@ -38036,13 +38142,13 @@ export const AccountEmail_VarsEntry = {
38036
38142
  };
38037
38143
 
38038
38144
  function createBaseAccountMezon(): AccountMezon {
38039
- return { token: "", vars: {} };
38145
+ return { phone_number: "", vars: {} };
38040
38146
  }
38041
38147
 
38042
38148
  export const AccountMezon = {
38043
38149
  encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38044
- if (message.token !== "") {
38045
- writer.uint32(10).string(message.token);
38150
+ if (message.phone_number !== "") {
38151
+ writer.uint32(10).string(message.phone_number);
38046
38152
  }
38047
38153
  Object.entries(message.vars).forEach(([key, value]) => {
38048
38154
  AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
@@ -38062,7 +38168,7 @@ export const AccountMezon = {
38062
38168
  break;
38063
38169
  }
38064
38170
 
38065
- message.token = reader.string();
38171
+ message.phone_number = reader.string();
38066
38172
  continue;
38067
38173
  case 2:
38068
38174
  if (tag !== 18) {
@@ -38085,7 +38191,7 @@ export const AccountMezon = {
38085
38191
 
38086
38192
  fromJSON(object: any): AccountMezon {
38087
38193
  return {
38088
- token: isSet(object.token) ? globalThis.String(object.token) : "",
38194
+ phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
38089
38195
  vars: isObject(object.vars)
38090
38196
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
38091
38197
  acc[key] = String(value);
@@ -38097,8 +38203,8 @@ export const AccountMezon = {
38097
38203
 
38098
38204
  toJSON(message: AccountMezon): unknown {
38099
38205
  const obj: any = {};
38100
- if (message.token !== "") {
38101
- obj.token = message.token;
38206
+ if (message.phone_number !== "") {
38207
+ obj.phone_number = message.phone_number;
38102
38208
  }
38103
38209
  if (message.vars) {
38104
38210
  const entries = Object.entries(message.vars);
@@ -38117,7 +38223,7 @@ export const AccountMezon = {
38117
38223
  },
38118
38224
  fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
38119
38225
  const message = createBaseAccountMezon();
38120
- message.token = object.token ?? "";
38226
+ message.phone_number = object.phone_number ?? "";
38121
38227
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
38122
38228
  if (value !== undefined) {
38123
38229
  acc[key] = globalThis.String(value);
@@ -38202,6 +38308,95 @@ export const AccountMezon_VarsEntry = {
38202
38308
  },
38203
38309
  };
38204
38310
 
38311
+ function createBaseLinkAccountConfirmRequest(): LinkAccountConfirmRequest {
38312
+ return { req_id: "", status: 0, otp_code: "" };
38313
+ }
38314
+
38315
+ export const LinkAccountConfirmRequest = {
38316
+ encode(message: LinkAccountConfirmRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38317
+ if (message.req_id !== "") {
38318
+ writer.uint32(10).string(message.req_id);
38319
+ }
38320
+ if (message.status !== 0) {
38321
+ writer.uint32(16).int32(message.status);
38322
+ }
38323
+ if (message.otp_code !== "") {
38324
+ writer.uint32(26).string(message.otp_code);
38325
+ }
38326
+ return writer;
38327
+ },
38328
+
38329
+ decode(input: _m0.Reader | Uint8Array, length?: number): LinkAccountConfirmRequest {
38330
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38331
+ let end = length === undefined ? reader.len : reader.pos + length;
38332
+ const message = createBaseLinkAccountConfirmRequest();
38333
+ while (reader.pos < end) {
38334
+ const tag = reader.uint32();
38335
+ switch (tag >>> 3) {
38336
+ case 1:
38337
+ if (tag !== 10) {
38338
+ break;
38339
+ }
38340
+
38341
+ message.req_id = reader.string();
38342
+ continue;
38343
+ case 2:
38344
+ if (tag !== 16) {
38345
+ break;
38346
+ }
38347
+
38348
+ message.status = reader.int32();
38349
+ continue;
38350
+ case 3:
38351
+ if (tag !== 26) {
38352
+ break;
38353
+ }
38354
+
38355
+ message.otp_code = reader.string();
38356
+ continue;
38357
+ }
38358
+ if ((tag & 7) === 4 || tag === 0) {
38359
+ break;
38360
+ }
38361
+ reader.skipType(tag & 7);
38362
+ }
38363
+ return message;
38364
+ },
38365
+
38366
+ fromJSON(object: any): LinkAccountConfirmRequest {
38367
+ return {
38368
+ req_id: isSet(object.req_id) ? globalThis.String(object.req_id) : "",
38369
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
38370
+ otp_code: isSet(object.otp_code) ? globalThis.String(object.otp_code) : "",
38371
+ };
38372
+ },
38373
+
38374
+ toJSON(message: LinkAccountConfirmRequest): unknown {
38375
+ const obj: any = {};
38376
+ if (message.req_id !== "") {
38377
+ obj.req_id = message.req_id;
38378
+ }
38379
+ if (message.status !== 0) {
38380
+ obj.status = Math.round(message.status);
38381
+ }
38382
+ if (message.otp_code !== "") {
38383
+ obj.otp_code = message.otp_code;
38384
+ }
38385
+ return obj;
38386
+ },
38387
+
38388
+ create<I extends Exact<DeepPartial<LinkAccountConfirmRequest>, I>>(base?: I): LinkAccountConfirmRequest {
38389
+ return LinkAccountConfirmRequest.fromPartial(base ?? ({} as any));
38390
+ },
38391
+ fromPartial<I extends Exact<DeepPartial<LinkAccountConfirmRequest>, I>>(object: I): LinkAccountConfirmRequest {
38392
+ const message = createBaseLinkAccountConfirmRequest();
38393
+ message.req_id = object.req_id ?? "";
38394
+ message.status = object.status ?? 0;
38395
+ message.otp_code = object.otp_code ?? "";
38396
+ return message;
38397
+ },
38398
+ };
38399
+
38205
38400
  function createBaseQuickMenuAccess(): QuickMenuAccess {
38206
38401
  return {
38207
38402
  id: "",