mezon-js-protobuf 1.6.32 → 1.6.34

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.
@@ -318,6 +318,8 @@ export interface ChannelMessageSend {
318
318
  avatar: string;
319
319
  /** is public */
320
320
  is_public: boolean;
321
+ /** code */
322
+ code: number;
321
323
  }
322
324
  /** Update a message previously sent to a realtime channel. */
323
325
  export interface ChannelMessageUpdate {
@@ -678,6 +680,10 @@ export interface ChannelUpdatedEvent {
678
680
  app_url: string;
679
681
  /** e2ee */
680
682
  e2ee: number;
683
+ /** topic */
684
+ topic: string;
685
+ /** */
686
+ age_restricted: number;
681
687
  }
682
688
  /** Stop receiving status updates for some set of users. */
683
689
  export interface StatusUnfollow {
@@ -1063,6 +1069,7 @@ export declare const Envelope: {
1063
1069
  mention_everyone?: boolean | undefined;
1064
1070
  avatar?: string | undefined;
1065
1071
  is_public?: boolean | undefined;
1072
+ code?: number | undefined;
1066
1073
  } | undefined;
1067
1074
  channel_message_update?: {
1068
1075
  clan_id?: string | undefined;
@@ -1326,6 +1333,8 @@ export declare const Envelope: {
1326
1333
  channel_private?: boolean | undefined;
1327
1334
  app_url?: string | undefined;
1328
1335
  e2ee?: number | undefined;
1336
+ topic?: string | undefined;
1337
+ age_restricted?: number | undefined;
1329
1338
  } | undefined;
1330
1339
  last_pin_message_event?: {
1331
1340
  clan_id?: string | undefined;
@@ -1852,6 +1861,7 @@ export declare const Envelope: {
1852
1861
  mention_everyone?: boolean | undefined;
1853
1862
  avatar?: string | undefined;
1854
1863
  is_public?: boolean | undefined;
1864
+ code?: number | undefined;
1855
1865
  } & {
1856
1866
  clan_id?: string | undefined;
1857
1867
  channel_id?: string | undefined;
@@ -1972,6 +1982,7 @@ export declare const Envelope: {
1972
1982
  mention_everyone?: boolean | undefined;
1973
1983
  avatar?: string | undefined;
1974
1984
  is_public?: boolean | undefined;
1985
+ code?: number | undefined;
1975
1986
  } & { [K_15 in Exclude<keyof I["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
1976
1987
  channel_message_update?: ({
1977
1988
  clan_id?: string | undefined;
@@ -2731,6 +2742,8 @@ export declare const Envelope: {
2731
2742
  channel_private?: boolean | undefined;
2732
2743
  app_url?: string | undefined;
2733
2744
  e2ee?: number | undefined;
2745
+ topic?: string | undefined;
2746
+ age_restricted?: number | undefined;
2734
2747
  } & {
2735
2748
  clan_id?: string | undefined;
2736
2749
  category_id?: string | undefined;
@@ -2745,6 +2758,8 @@ export declare const Envelope: {
2745
2758
  channel_private?: boolean | undefined;
2746
2759
  app_url?: string | undefined;
2747
2760
  e2ee?: number | undefined;
2761
+ topic?: string | undefined;
2762
+ age_restricted?: number | undefined;
2748
2763
  } & { [K_67 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
2749
2764
  last_pin_message_event?: ({
2750
2765
  clan_id?: string | undefined;
@@ -3668,6 +3683,7 @@ export declare const Envelope: {
3668
3683
  mention_everyone?: boolean | undefined;
3669
3684
  avatar?: string | undefined;
3670
3685
  is_public?: boolean | undefined;
3686
+ code?: number | undefined;
3671
3687
  } | undefined;
3672
3688
  channel_message_update?: {
3673
3689
  clan_id?: string | undefined;
@@ -3931,6 +3947,8 @@ export declare const Envelope: {
3931
3947
  channel_private?: boolean | undefined;
3932
3948
  app_url?: string | undefined;
3933
3949
  e2ee?: number | undefined;
3950
+ topic?: string | undefined;
3951
+ age_restricted?: number | undefined;
3934
3952
  } | undefined;
3935
3953
  last_pin_message_event?: {
3936
3954
  clan_id?: string | undefined;
@@ -4457,6 +4475,7 @@ export declare const Envelope: {
4457
4475
  mention_everyone?: boolean | undefined;
4458
4476
  avatar?: string | undefined;
4459
4477
  is_public?: boolean | undefined;
4478
+ code?: number | undefined;
4460
4479
  } & {
4461
4480
  clan_id?: string | undefined;
4462
4481
  channel_id?: string | undefined;
@@ -4577,6 +4596,7 @@ export declare const Envelope: {
4577
4596
  mention_everyone?: boolean | undefined;
4578
4597
  avatar?: string | undefined;
4579
4598
  is_public?: boolean | undefined;
4599
+ code?: number | undefined;
4580
4600
  } & { [K_142 in Exclude<keyof I_1["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
4581
4601
  channel_message_update?: ({
4582
4602
  clan_id?: string | undefined;
@@ -5336,6 +5356,8 @@ export declare const Envelope: {
5336
5356
  channel_private?: boolean | undefined;
5337
5357
  app_url?: string | undefined;
5338
5358
  e2ee?: number | undefined;
5359
+ topic?: string | undefined;
5360
+ age_restricted?: number | undefined;
5339
5361
  } & {
5340
5362
  clan_id?: string | undefined;
5341
5363
  category_id?: string | undefined;
@@ -5350,6 +5372,8 @@ export declare const Envelope: {
5350
5372
  channel_private?: boolean | undefined;
5351
5373
  app_url?: string | undefined;
5352
5374
  e2ee?: number | undefined;
5375
+ topic?: string | undefined;
5376
+ age_restricted?: number | undefined;
5353
5377
  } & { [K_194 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
5354
5378
  last_pin_message_event?: ({
5355
5379
  clan_id?: string | undefined;
@@ -6915,6 +6939,7 @@ export declare const ChannelMessageSend: {
6915
6939
  mention_everyone?: boolean | undefined;
6916
6940
  avatar?: string | undefined;
6917
6941
  is_public?: boolean | undefined;
6942
+ code?: number | undefined;
6918
6943
  } & {
6919
6944
  clan_id?: string | undefined;
6920
6945
  channel_id?: string | undefined;
@@ -7035,6 +7060,7 @@ export declare const ChannelMessageSend: {
7035
7060
  mention_everyone?: boolean | undefined;
7036
7061
  avatar?: string | undefined;
7037
7062
  is_public?: boolean | undefined;
7063
+ code?: number | undefined;
7038
7064
  } & { [K_6 in Exclude<keyof I, keyof ChannelMessageSend>]: never; }>(base?: I | undefined): ChannelMessageSend;
7039
7065
  fromPartial<I_1 extends {
7040
7066
  clan_id?: string | undefined;
@@ -7075,6 +7101,7 @@ export declare const ChannelMessageSend: {
7075
7101
  mention_everyone?: boolean | undefined;
7076
7102
  avatar?: string | undefined;
7077
7103
  is_public?: boolean | undefined;
7104
+ code?: number | undefined;
7078
7105
  } & {
7079
7106
  clan_id?: string | undefined;
7080
7107
  channel_id?: string | undefined;
@@ -7195,6 +7222,7 @@ export declare const ChannelMessageSend: {
7195
7222
  mention_everyone?: boolean | undefined;
7196
7223
  avatar?: string | undefined;
7197
7224
  is_public?: boolean | undefined;
7225
+ code?: number | undefined;
7198
7226
  } & { [K_13 in Exclude<keyof I_1, keyof ChannelMessageSend>]: never; }>(object: I_1): ChannelMessageSend;
7199
7227
  };
7200
7228
  export declare const ChannelMessageUpdate: {
@@ -9090,6 +9118,8 @@ export declare const ChannelUpdatedEvent: {
9090
9118
  channel_private?: boolean | undefined;
9091
9119
  app_url?: string | undefined;
9092
9120
  e2ee?: number | undefined;
9121
+ topic?: string | undefined;
9122
+ age_restricted?: number | undefined;
9093
9123
  } & {
9094
9124
  clan_id?: string | undefined;
9095
9125
  category_id?: string | undefined;
@@ -9104,6 +9134,8 @@ export declare const ChannelUpdatedEvent: {
9104
9134
  channel_private?: boolean | undefined;
9105
9135
  app_url?: string | undefined;
9106
9136
  e2ee?: number | undefined;
9137
+ topic?: string | undefined;
9138
+ age_restricted?: number | undefined;
9107
9139
  } & { [K in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
9108
9140
  fromPartial<I_1 extends {
9109
9141
  clan_id?: string | undefined;
@@ -9119,6 +9151,8 @@ export declare const ChannelUpdatedEvent: {
9119
9151
  channel_private?: boolean | undefined;
9120
9152
  app_url?: string | undefined;
9121
9153
  e2ee?: number | undefined;
9154
+ topic?: string | undefined;
9155
+ age_restricted?: number | undefined;
9122
9156
  } & {
9123
9157
  clan_id?: string | undefined;
9124
9158
  category_id?: string | undefined;
@@ -9133,6 +9167,8 @@ export declare const ChannelUpdatedEvent: {
9133
9167
  channel_private?: boolean | undefined;
9134
9168
  app_url?: string | undefined;
9135
9169
  e2ee?: number | undefined;
9170
+ topic?: string | undefined;
9171
+ age_restricted?: number | undefined;
9136
9172
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
9137
9173
  };
9138
9174
  export declare const StatusUnfollow: {
@@ -7315,7 +7315,8 @@ function createBaseChannelMessageSend() {
7315
7315
  anonymous_message: false,
7316
7316
  mention_everyone: false,
7317
7317
  avatar: "",
7318
- is_public: false
7318
+ is_public: false,
7319
+ code: 0
7319
7320
  };
7320
7321
  }
7321
7322
  var ChannelMessageSend = {
@@ -7353,6 +7354,9 @@ var ChannelMessageSend = {
7353
7354
  if (message.is_public !== false) {
7354
7355
  writer.uint32(88).bool(message.is_public);
7355
7356
  }
7357
+ if (message.code !== 0) {
7358
+ writer.uint32(96).int32(message.code);
7359
+ }
7356
7360
  return writer;
7357
7361
  },
7358
7362
  decode(input, length) {
@@ -7428,6 +7432,12 @@ var ChannelMessageSend = {
7428
7432
  }
7429
7433
  message.is_public = reader.bool();
7430
7434
  continue;
7435
+ case 12:
7436
+ if (tag !== 96) {
7437
+ break;
7438
+ }
7439
+ message.code = reader.int32();
7440
+ continue;
7431
7441
  }
7432
7442
  if ((tag & 7) === 4 || tag === 0) {
7433
7443
  break;
@@ -7448,7 +7458,8 @@ var ChannelMessageSend = {
7448
7458
  anonymous_message: isSet4(object.anonymous_message) ? globalThis.Boolean(object.anonymous_message) : false,
7449
7459
  mention_everyone: isSet4(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
7450
7460
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
7451
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
7461
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
7462
+ code: isSet4(object.code) ? globalThis.Number(object.code) : 0
7452
7463
  };
7453
7464
  },
7454
7465
  toJSON(message) {
@@ -7487,13 +7498,16 @@ var ChannelMessageSend = {
7487
7498
  if (message.is_public !== false) {
7488
7499
  obj.is_public = message.is_public;
7489
7500
  }
7501
+ if (message.code !== 0) {
7502
+ obj.code = Math.round(message.code);
7503
+ }
7490
7504
  return obj;
7491
7505
  },
7492
7506
  create(base) {
7493
7507
  return ChannelMessageSend.fromPartial(base != null ? base : {});
7494
7508
  },
7495
7509
  fromPartial(object) {
7496
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7510
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
7497
7511
  const message = createBaseChannelMessageSend();
7498
7512
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7499
7513
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -7506,6 +7520,7 @@ var ChannelMessageSend = {
7506
7520
  message.mention_everyone = (_i = object.mention_everyone) != null ? _i : false;
7507
7521
  message.avatar = (_j = object.avatar) != null ? _j : "";
7508
7522
  message.is_public = (_k = object.is_public) != null ? _k : false;
7523
+ message.code = (_l = object.code) != null ? _l : 0;
7509
7524
  return message;
7510
7525
  }
7511
7526
  };
@@ -10367,7 +10382,9 @@ function createBaseChannelUpdatedEvent() {
10367
10382
  is_error: false,
10368
10383
  channel_private: false,
10369
10384
  app_url: "",
10370
- e2ee: 0
10385
+ e2ee: 0,
10386
+ topic: "",
10387
+ age_restricted: 0
10371
10388
  };
10372
10389
  }
10373
10390
  var ChannelUpdatedEvent = {
@@ -10411,6 +10428,12 @@ var ChannelUpdatedEvent = {
10411
10428
  if (message.e2ee !== 0) {
10412
10429
  writer.uint32(104).int32(message.e2ee);
10413
10430
  }
10431
+ if (message.topic !== "") {
10432
+ writer.uint32(114).string(message.topic);
10433
+ }
10434
+ if (message.age_restricted !== 0) {
10435
+ writer.uint32(120).int32(message.age_restricted);
10436
+ }
10414
10437
  return writer;
10415
10438
  },
10416
10439
  decode(input, length) {
@@ -10498,6 +10521,18 @@ var ChannelUpdatedEvent = {
10498
10521
  }
10499
10522
  message.e2ee = reader.int32();
10500
10523
  continue;
10524
+ case 14:
10525
+ if (tag !== 114) {
10526
+ break;
10527
+ }
10528
+ message.topic = reader.string();
10529
+ continue;
10530
+ case 15:
10531
+ if (tag !== 120) {
10532
+ break;
10533
+ }
10534
+ message.age_restricted = reader.int32();
10535
+ continue;
10501
10536
  }
10502
10537
  if ((tag & 7) === 4 || tag === 0) {
10503
10538
  break;
@@ -10520,7 +10555,9 @@ var ChannelUpdatedEvent = {
10520
10555
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
10521
10556
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
10522
10557
  app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
10523
- e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0
10558
+ e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
10559
+ topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
10560
+ age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0
10524
10561
  };
10525
10562
  },
10526
10563
  toJSON(message) {
@@ -10564,13 +10601,19 @@ var ChannelUpdatedEvent = {
10564
10601
  if (message.e2ee !== 0) {
10565
10602
  obj.e2ee = Math.round(message.e2ee);
10566
10603
  }
10604
+ if (message.topic !== "") {
10605
+ obj.topic = message.topic;
10606
+ }
10607
+ if (message.age_restricted !== 0) {
10608
+ obj.age_restricted = Math.round(message.age_restricted);
10609
+ }
10567
10610
  return obj;
10568
10611
  },
10569
10612
  create(base) {
10570
10613
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
10571
10614
  },
10572
10615
  fromPartial(object) {
10573
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10616
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10574
10617
  const message = createBaseChannelUpdatedEvent();
10575
10618
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10576
10619
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -10585,6 +10628,8 @@ var ChannelUpdatedEvent = {
10585
10628
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
10586
10629
  message.app_url = (_l = object.app_url) != null ? _l : "";
10587
10630
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
10631
+ message.topic = (_n = object.topic) != null ? _n : "";
10632
+ message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
10588
10633
  return message;
10589
10634
  }
10590
10635
  };
@@ -7302,7 +7302,8 @@ function createBaseChannelMessageSend() {
7302
7302
  anonymous_message: false,
7303
7303
  mention_everyone: false,
7304
7304
  avatar: "",
7305
- is_public: false
7305
+ is_public: false,
7306
+ code: 0
7306
7307
  };
7307
7308
  }
7308
7309
  var ChannelMessageSend = {
@@ -7340,6 +7341,9 @@ var ChannelMessageSend = {
7340
7341
  if (message.is_public !== false) {
7341
7342
  writer.uint32(88).bool(message.is_public);
7342
7343
  }
7344
+ if (message.code !== 0) {
7345
+ writer.uint32(96).int32(message.code);
7346
+ }
7343
7347
  return writer;
7344
7348
  },
7345
7349
  decode(input, length) {
@@ -7415,6 +7419,12 @@ var ChannelMessageSend = {
7415
7419
  }
7416
7420
  message.is_public = reader.bool();
7417
7421
  continue;
7422
+ case 12:
7423
+ if (tag !== 96) {
7424
+ break;
7425
+ }
7426
+ message.code = reader.int32();
7427
+ continue;
7418
7428
  }
7419
7429
  if ((tag & 7) === 4 || tag === 0) {
7420
7430
  break;
@@ -7435,7 +7445,8 @@ var ChannelMessageSend = {
7435
7445
  anonymous_message: isSet4(object.anonymous_message) ? globalThis.Boolean(object.anonymous_message) : false,
7436
7446
  mention_everyone: isSet4(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
7437
7447
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
7438
- is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false
7448
+ is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
7449
+ code: isSet4(object.code) ? globalThis.Number(object.code) : 0
7439
7450
  };
7440
7451
  },
7441
7452
  toJSON(message) {
@@ -7474,13 +7485,16 @@ var ChannelMessageSend = {
7474
7485
  if (message.is_public !== false) {
7475
7486
  obj.is_public = message.is_public;
7476
7487
  }
7488
+ if (message.code !== 0) {
7489
+ obj.code = Math.round(message.code);
7490
+ }
7477
7491
  return obj;
7478
7492
  },
7479
7493
  create(base) {
7480
7494
  return ChannelMessageSend.fromPartial(base != null ? base : {});
7481
7495
  },
7482
7496
  fromPartial(object) {
7483
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7497
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
7484
7498
  const message = createBaseChannelMessageSend();
7485
7499
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7486
7500
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -7493,6 +7507,7 @@ var ChannelMessageSend = {
7493
7507
  message.mention_everyone = (_i = object.mention_everyone) != null ? _i : false;
7494
7508
  message.avatar = (_j = object.avatar) != null ? _j : "";
7495
7509
  message.is_public = (_k = object.is_public) != null ? _k : false;
7510
+ message.code = (_l = object.code) != null ? _l : 0;
7496
7511
  return message;
7497
7512
  }
7498
7513
  };
@@ -10354,7 +10369,9 @@ function createBaseChannelUpdatedEvent() {
10354
10369
  is_error: false,
10355
10370
  channel_private: false,
10356
10371
  app_url: "",
10357
- e2ee: 0
10372
+ e2ee: 0,
10373
+ topic: "",
10374
+ age_restricted: 0
10358
10375
  };
10359
10376
  }
10360
10377
  var ChannelUpdatedEvent = {
@@ -10398,6 +10415,12 @@ var ChannelUpdatedEvent = {
10398
10415
  if (message.e2ee !== 0) {
10399
10416
  writer.uint32(104).int32(message.e2ee);
10400
10417
  }
10418
+ if (message.topic !== "") {
10419
+ writer.uint32(114).string(message.topic);
10420
+ }
10421
+ if (message.age_restricted !== 0) {
10422
+ writer.uint32(120).int32(message.age_restricted);
10423
+ }
10401
10424
  return writer;
10402
10425
  },
10403
10426
  decode(input, length) {
@@ -10485,6 +10508,18 @@ var ChannelUpdatedEvent = {
10485
10508
  }
10486
10509
  message.e2ee = reader.int32();
10487
10510
  continue;
10511
+ case 14:
10512
+ if (tag !== 114) {
10513
+ break;
10514
+ }
10515
+ message.topic = reader.string();
10516
+ continue;
10517
+ case 15:
10518
+ if (tag !== 120) {
10519
+ break;
10520
+ }
10521
+ message.age_restricted = reader.int32();
10522
+ continue;
10488
10523
  }
10489
10524
  if ((tag & 7) === 4 || tag === 0) {
10490
10525
  break;
@@ -10507,7 +10542,9 @@ var ChannelUpdatedEvent = {
10507
10542
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
10508
10543
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
10509
10544
  app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
10510
- e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0
10545
+ e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
10546
+ topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
10547
+ age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0
10511
10548
  };
10512
10549
  },
10513
10550
  toJSON(message) {
@@ -10551,13 +10588,19 @@ var ChannelUpdatedEvent = {
10551
10588
  if (message.e2ee !== 0) {
10552
10589
  obj.e2ee = Math.round(message.e2ee);
10553
10590
  }
10591
+ if (message.topic !== "") {
10592
+ obj.topic = message.topic;
10593
+ }
10594
+ if (message.age_restricted !== 0) {
10595
+ obj.age_restricted = Math.round(message.age_restricted);
10596
+ }
10554
10597
  return obj;
10555
10598
  },
10556
10599
  create(base) {
10557
10600
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
10558
10601
  },
10559
10602
  fromPartial(object) {
10560
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10603
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10561
10604
  const message = createBaseChannelUpdatedEvent();
10562
10605
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10563
10606
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -10572,6 +10615,8 @@ var ChannelUpdatedEvent = {
10572
10615
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
10573
10616
  message.app_url = (_l = object.app_url) != null ? _l : "";
10574
10617
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
10618
+ message.topic = (_n = object.topic) != null ? _n : "";
10619
+ message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
10575
10620
  return message;
10576
10621
  }
10577
10622
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.32",
3
+ "version": "1.6.34",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -499,6 +499,8 @@ export interface ChannelMessageSend {
499
499
  avatar: string;
500
500
  /** is public */
501
501
  is_public: boolean;
502
+ /** code */
503
+ code: number;
502
504
  }
503
505
 
504
506
  /** Update a message previously sent to a realtime channel. */
@@ -947,6 +949,10 @@ export interface ChannelUpdatedEvent {
947
949
  app_url: string;
948
950
  /** e2ee */
949
951
  e2ee: number;
952
+ /** topic */
953
+ topic: string;
954
+ /** */
955
+ age_restricted: number;
950
956
  }
951
957
 
952
958
  /** Stop receiving status updates for some set of users. */
@@ -4212,6 +4218,7 @@ function createBaseChannelMessageSend(): ChannelMessageSend {
4212
4218
  mention_everyone: false,
4213
4219
  avatar: "",
4214
4220
  is_public: false,
4221
+ code: 0,
4215
4222
  };
4216
4223
  }
4217
4224
 
@@ -4250,6 +4257,9 @@ export const ChannelMessageSend = {
4250
4257
  if (message.is_public !== false) {
4251
4258
  writer.uint32(88).bool(message.is_public);
4252
4259
  }
4260
+ if (message.code !== 0) {
4261
+ writer.uint32(96).int32(message.code);
4262
+ }
4253
4263
  return writer;
4254
4264
  },
4255
4265
 
@@ -4337,6 +4347,13 @@ export const ChannelMessageSend = {
4337
4347
 
4338
4348
  message.is_public = reader.bool();
4339
4349
  continue;
4350
+ case 12:
4351
+ if (tag !== 96) {
4352
+ break;
4353
+ }
4354
+
4355
+ message.code = reader.int32();
4356
+ continue;
4340
4357
  }
4341
4358
  if ((tag & 7) === 4 || tag === 0) {
4342
4359
  break;
@@ -4365,6 +4382,7 @@ export const ChannelMessageSend = {
4365
4382
  mention_everyone: isSet(object.mention_everyone) ? globalThis.Boolean(object.mention_everyone) : false,
4366
4383
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
4367
4384
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
4385
+ code: isSet(object.code) ? globalThis.Number(object.code) : 0,
4368
4386
  };
4369
4387
  },
4370
4388
 
@@ -4403,6 +4421,9 @@ export const ChannelMessageSend = {
4403
4421
  if (message.is_public !== false) {
4404
4422
  obj.is_public = message.is_public;
4405
4423
  }
4424
+ if (message.code !== 0) {
4425
+ obj.code = Math.round(message.code);
4426
+ }
4406
4427
  return obj;
4407
4428
  },
4408
4429
 
@@ -4422,6 +4443,7 @@ export const ChannelMessageSend = {
4422
4443
  message.mention_everyone = object.mention_everyone ?? false;
4423
4444
  message.avatar = object.avatar ?? "";
4424
4445
  message.is_public = object.is_public ?? false;
4446
+ message.code = object.code ?? 0;
4425
4447
  return message;
4426
4448
  },
4427
4449
  };
@@ -7557,6 +7579,8 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
7557
7579
  channel_private: false,
7558
7580
  app_url: "",
7559
7581
  e2ee: 0,
7582
+ topic: "",
7583
+ age_restricted: 0,
7560
7584
  };
7561
7585
  }
7562
7586
 
@@ -7601,6 +7625,12 @@ export const ChannelUpdatedEvent = {
7601
7625
  if (message.e2ee !== 0) {
7602
7626
  writer.uint32(104).int32(message.e2ee);
7603
7627
  }
7628
+ if (message.topic !== "") {
7629
+ writer.uint32(114).string(message.topic);
7630
+ }
7631
+ if (message.age_restricted !== 0) {
7632
+ writer.uint32(120).int32(message.age_restricted);
7633
+ }
7604
7634
  return writer;
7605
7635
  },
7606
7636
 
@@ -7702,6 +7732,20 @@ export const ChannelUpdatedEvent = {
7702
7732
 
7703
7733
  message.e2ee = reader.int32();
7704
7734
  continue;
7735
+ case 14:
7736
+ if (tag !== 114) {
7737
+ break;
7738
+ }
7739
+
7740
+ message.topic = reader.string();
7741
+ continue;
7742
+ case 15:
7743
+ if (tag !== 120) {
7744
+ break;
7745
+ }
7746
+
7747
+ message.age_restricted = reader.int32();
7748
+ continue;
7705
7749
  }
7706
7750
  if ((tag & 7) === 4 || tag === 0) {
7707
7751
  break;
@@ -7726,6 +7770,8 @@ export const ChannelUpdatedEvent = {
7726
7770
  channel_private: isSet(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
7727
7771
  app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
7728
7772
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7773
+ topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
7774
+ age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7729
7775
  };
7730
7776
  },
7731
7777
 
@@ -7770,6 +7816,12 @@ export const ChannelUpdatedEvent = {
7770
7816
  if (message.e2ee !== 0) {
7771
7817
  obj.e2ee = Math.round(message.e2ee);
7772
7818
  }
7819
+ if (message.topic !== "") {
7820
+ obj.topic = message.topic;
7821
+ }
7822
+ if (message.age_restricted !== 0) {
7823
+ obj.age_restricted = Math.round(message.age_restricted);
7824
+ }
7773
7825
  return obj;
7774
7826
  },
7775
7827
 
@@ -7791,6 +7843,8 @@ export const ChannelUpdatedEvent = {
7791
7843
  message.channel_private = object.channel_private ?? false;
7792
7844
  message.app_url = object.app_url ?? "";
7793
7845
  message.e2ee = object.e2ee ?? 0;
7846
+ message.topic = object.topic ?? "";
7847
+ message.age_restricted = object.age_restricted ?? 0;
7794
7848
  return message;
7795
7849
  },
7796
7850
  };