mezon-js-protobuf 1.6.96 → 1.6.99

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.
@@ -362,6 +362,8 @@ export interface ChannelMessageUpdate {
362
362
  hide_editted: boolean;
363
363
  /** topic id */
364
364
  topic_id: string;
365
+ /** topic id */
366
+ mess_topic_id: string;
365
367
  }
366
368
  /** Remove a message previously sent to a realtime channel. */
367
369
  export interface ChannelMessageRemove {
@@ -377,6 +379,8 @@ export interface ChannelMessageRemove {
377
379
  is_public: boolean;
378
380
  /** has_attachments. */
379
381
  has_attachment: boolean;
382
+ /** */
383
+ topic_id: string;
380
384
  }
381
385
  /** A set of joins and leaves on a particular channel. */
382
386
  export interface ChannelPresenceEvent {
@@ -784,6 +788,10 @@ export interface CustomStatusEvent {
784
788
  username: string;
785
789
  /** the status */
786
790
  status: string;
791
+ /** time reset */
792
+ time_reset: number;
793
+ /** no clear */
794
+ no_clear: boolean;
787
795
  }
788
796
  /** A event when user is added to channel */
789
797
  export interface UserChannelAdded {
@@ -1135,6 +1143,7 @@ export declare const Envelope: {
1135
1143
  is_public?: boolean | undefined;
1136
1144
  hide_editted?: boolean | undefined;
1137
1145
  topic_id?: string | undefined;
1146
+ mess_topic_id?: string | undefined;
1138
1147
  } | undefined;
1139
1148
  channel_message_remove?: {
1140
1149
  clan_id?: string | undefined;
@@ -1143,6 +1152,7 @@ export declare const Envelope: {
1143
1152
  mode?: number | undefined;
1144
1153
  is_public?: boolean | undefined;
1145
1154
  has_attachment?: boolean | undefined;
1155
+ topic_id?: string | undefined;
1146
1156
  } | undefined;
1147
1157
  channel_presence_event?: {
1148
1158
  channel_id?: string | undefined;
@@ -1391,6 +1401,8 @@ export declare const Envelope: {
1391
1401
  user_id?: string | undefined;
1392
1402
  username?: string | undefined;
1393
1403
  status?: string | undefined;
1404
+ time_reset?: number | undefined;
1405
+ no_clear?: boolean | undefined;
1394
1406
  } | undefined;
1395
1407
  user_channel_added_event?: {
1396
1408
  channel_desc?: {
@@ -2171,6 +2183,7 @@ export declare const Envelope: {
2171
2183
  is_public?: boolean | undefined;
2172
2184
  hide_editted?: boolean | undefined;
2173
2185
  topic_id?: string | undefined;
2186
+ mess_topic_id?: string | undefined;
2174
2187
  } & {
2175
2188
  clan_id?: string | undefined;
2176
2189
  channel_id?: string | undefined;
@@ -2246,6 +2259,7 @@ export declare const Envelope: {
2246
2259
  is_public?: boolean | undefined;
2247
2260
  hide_editted?: boolean | undefined;
2248
2261
  topic_id?: string | undefined;
2262
+ mess_topic_id?: string | undefined;
2249
2263
  } & { [K_20 in Exclude<keyof I["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
2250
2264
  channel_message_remove?: ({
2251
2265
  clan_id?: string | undefined;
@@ -2254,6 +2268,7 @@ export declare const Envelope: {
2254
2268
  mode?: number | undefined;
2255
2269
  is_public?: boolean | undefined;
2256
2270
  has_attachment?: boolean | undefined;
2271
+ topic_id?: string | undefined;
2257
2272
  } & {
2258
2273
  clan_id?: string | undefined;
2259
2274
  channel_id?: string | undefined;
@@ -2261,6 +2276,7 @@ export declare const Envelope: {
2261
2276
  mode?: number | undefined;
2262
2277
  is_public?: boolean | undefined;
2263
2278
  has_attachment?: boolean | undefined;
2279
+ topic_id?: string | undefined;
2264
2280
  } & { [K_21 in Exclude<keyof I["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
2265
2281
  channel_presence_event?: ({
2266
2282
  channel_id?: string | undefined;
@@ -2951,11 +2967,15 @@ export declare const Envelope: {
2951
2967
  user_id?: string | undefined;
2952
2968
  username?: string | undefined;
2953
2969
  status?: string | undefined;
2970
+ time_reset?: number | undefined;
2971
+ no_clear?: boolean | undefined;
2954
2972
  } & {
2955
2973
  clan_id?: string | undefined;
2956
2974
  user_id?: string | undefined;
2957
2975
  username?: string | undefined;
2958
2976
  status?: string | undefined;
2977
+ time_reset?: number | undefined;
2978
+ no_clear?: boolean | undefined;
2959
2979
  } & { [K_69 in Exclude<keyof I["custom_status_event"], keyof CustomStatusEvent>]: never; }) | undefined;
2960
2980
  user_channel_added_event?: ({
2961
2981
  channel_desc?: {
@@ -4247,6 +4267,7 @@ export declare const Envelope: {
4247
4267
  is_public?: boolean | undefined;
4248
4268
  hide_editted?: boolean | undefined;
4249
4269
  topic_id?: string | undefined;
4270
+ mess_topic_id?: string | undefined;
4250
4271
  } | undefined;
4251
4272
  channel_message_remove?: {
4252
4273
  clan_id?: string | undefined;
@@ -4255,6 +4276,7 @@ export declare const Envelope: {
4255
4276
  mode?: number | undefined;
4256
4277
  is_public?: boolean | undefined;
4257
4278
  has_attachment?: boolean | undefined;
4279
+ topic_id?: string | undefined;
4258
4280
  } | undefined;
4259
4281
  channel_presence_event?: {
4260
4282
  channel_id?: string | undefined;
@@ -4503,6 +4525,8 @@ export declare const Envelope: {
4503
4525
  user_id?: string | undefined;
4504
4526
  username?: string | undefined;
4505
4527
  status?: string | undefined;
4528
+ time_reset?: number | undefined;
4529
+ no_clear?: boolean | undefined;
4506
4530
  } | undefined;
4507
4531
  user_channel_added_event?: {
4508
4532
  channel_desc?: {
@@ -5283,6 +5307,7 @@ export declare const Envelope: {
5283
5307
  is_public?: boolean | undefined;
5284
5308
  hide_editted?: boolean | undefined;
5285
5309
  topic_id?: string | undefined;
5310
+ mess_topic_id?: string | undefined;
5286
5311
  } & {
5287
5312
  clan_id?: string | undefined;
5288
5313
  channel_id?: string | undefined;
@@ -5358,6 +5383,7 @@ export declare const Envelope: {
5358
5383
  is_public?: boolean | undefined;
5359
5384
  hide_editted?: boolean | undefined;
5360
5385
  topic_id?: string | undefined;
5386
+ mess_topic_id?: string | undefined;
5361
5387
  } & { [K_174 in Exclude<keyof I_1["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
5362
5388
  channel_message_remove?: ({
5363
5389
  clan_id?: string | undefined;
@@ -5366,6 +5392,7 @@ export declare const Envelope: {
5366
5392
  mode?: number | undefined;
5367
5393
  is_public?: boolean | undefined;
5368
5394
  has_attachment?: boolean | undefined;
5395
+ topic_id?: string | undefined;
5369
5396
  } & {
5370
5397
  clan_id?: string | undefined;
5371
5398
  channel_id?: string | undefined;
@@ -5373,6 +5400,7 @@ export declare const Envelope: {
5373
5400
  mode?: number | undefined;
5374
5401
  is_public?: boolean | undefined;
5375
5402
  has_attachment?: boolean | undefined;
5403
+ topic_id?: string | undefined;
5376
5404
  } & { [K_175 in Exclude<keyof I_1["channel_message_remove"], keyof ChannelMessageRemove>]: never; }) | undefined;
5377
5405
  channel_presence_event?: ({
5378
5406
  channel_id?: string | undefined;
@@ -6063,11 +6091,15 @@ export declare const Envelope: {
6063
6091
  user_id?: string | undefined;
6064
6092
  username?: string | undefined;
6065
6093
  status?: string | undefined;
6094
+ time_reset?: number | undefined;
6095
+ no_clear?: boolean | undefined;
6066
6096
  } & {
6067
6097
  clan_id?: string | undefined;
6068
6098
  user_id?: string | undefined;
6069
6099
  username?: string | undefined;
6070
6100
  status?: string | undefined;
6101
+ time_reset?: number | undefined;
6102
+ no_clear?: boolean | undefined;
6071
6103
  } & { [K_223 in Exclude<keyof I_1["custom_status_event"], keyof CustomStatusEvent>]: never; }) | undefined;
6072
6104
  user_channel_added_event?: ({
6073
6105
  channel_desc?: {
@@ -8344,6 +8376,7 @@ export declare const ChannelMessageUpdate: {
8344
8376
  is_public?: boolean | undefined;
8345
8377
  hide_editted?: boolean | undefined;
8346
8378
  topic_id?: string | undefined;
8379
+ mess_topic_id?: string | undefined;
8347
8380
  } & {
8348
8381
  clan_id?: string | undefined;
8349
8382
  channel_id?: string | undefined;
@@ -8419,6 +8452,7 @@ export declare const ChannelMessageUpdate: {
8419
8452
  is_public?: boolean | undefined;
8420
8453
  hide_editted?: boolean | undefined;
8421
8454
  topic_id?: string | undefined;
8455
+ mess_topic_id?: string | undefined;
8422
8456
  } & { [K_4 in Exclude<keyof I, keyof ChannelMessageUpdate>]: never; }>(base?: I | undefined): ChannelMessageUpdate;
8423
8457
  fromPartial<I_1 extends {
8424
8458
  clan_id?: string | undefined;
@@ -8447,6 +8481,7 @@ export declare const ChannelMessageUpdate: {
8447
8481
  is_public?: boolean | undefined;
8448
8482
  hide_editted?: boolean | undefined;
8449
8483
  topic_id?: string | undefined;
8484
+ mess_topic_id?: string | undefined;
8450
8485
  } & {
8451
8486
  clan_id?: string | undefined;
8452
8487
  channel_id?: string | undefined;
@@ -8522,6 +8557,7 @@ export declare const ChannelMessageUpdate: {
8522
8557
  is_public?: boolean | undefined;
8523
8558
  hide_editted?: boolean | undefined;
8524
8559
  topic_id?: string | undefined;
8560
+ mess_topic_id?: string | undefined;
8525
8561
  } & { [K_9 in Exclude<keyof I_1, keyof ChannelMessageUpdate>]: never; }>(object: I_1): ChannelMessageUpdate;
8526
8562
  };
8527
8563
  export declare const ChannelMessageRemove: {
@@ -8536,6 +8572,7 @@ export declare const ChannelMessageRemove: {
8536
8572
  mode?: number | undefined;
8537
8573
  is_public?: boolean | undefined;
8538
8574
  has_attachment?: boolean | undefined;
8575
+ topic_id?: string | undefined;
8539
8576
  } & {
8540
8577
  clan_id?: string | undefined;
8541
8578
  channel_id?: string | undefined;
@@ -8543,6 +8580,7 @@ export declare const ChannelMessageRemove: {
8543
8580
  mode?: number | undefined;
8544
8581
  is_public?: boolean | undefined;
8545
8582
  has_attachment?: boolean | undefined;
8583
+ topic_id?: string | undefined;
8546
8584
  } & { [K in Exclude<keyof I, keyof ChannelMessageRemove>]: never; }>(base?: I | undefined): ChannelMessageRemove;
8547
8585
  fromPartial<I_1 extends {
8548
8586
  clan_id?: string | undefined;
@@ -8551,6 +8589,7 @@ export declare const ChannelMessageRemove: {
8551
8589
  mode?: number | undefined;
8552
8590
  is_public?: boolean | undefined;
8553
8591
  has_attachment?: boolean | undefined;
8592
+ topic_id?: string | undefined;
8554
8593
  } & {
8555
8594
  clan_id?: string | undefined;
8556
8595
  channel_id?: string | undefined;
@@ -8558,6 +8597,7 @@ export declare const ChannelMessageRemove: {
8558
8597
  mode?: number | undefined;
8559
8598
  is_public?: boolean | undefined;
8560
8599
  has_attachment?: boolean | undefined;
8600
+ topic_id?: string | undefined;
8561
8601
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelMessageRemove>]: never; }>(object: I_1): ChannelMessageRemove;
8562
8602
  };
8563
8603
  export declare const ChannelPresenceEvent: {
@@ -10728,22 +10768,30 @@ export declare const CustomStatusEvent: {
10728
10768
  user_id?: string | undefined;
10729
10769
  username?: string | undefined;
10730
10770
  status?: string | undefined;
10771
+ time_reset?: number | undefined;
10772
+ no_clear?: boolean | undefined;
10731
10773
  } & {
10732
10774
  clan_id?: string | undefined;
10733
10775
  user_id?: string | undefined;
10734
10776
  username?: string | undefined;
10735
10777
  status?: string | undefined;
10778
+ time_reset?: number | undefined;
10779
+ no_clear?: boolean | undefined;
10736
10780
  } & { [K in Exclude<keyof I, keyof CustomStatusEvent>]: never; }>(base?: I | undefined): CustomStatusEvent;
10737
10781
  fromPartial<I_1 extends {
10738
10782
  clan_id?: string | undefined;
10739
10783
  user_id?: string | undefined;
10740
10784
  username?: string | undefined;
10741
10785
  status?: string | undefined;
10786
+ time_reset?: number | undefined;
10787
+ no_clear?: boolean | undefined;
10742
10788
  } & {
10743
10789
  clan_id?: string | undefined;
10744
10790
  user_id?: string | undefined;
10745
10791
  username?: string | undefined;
10746
10792
  status?: string | undefined;
10793
+ time_reset?: number | undefined;
10794
+ no_clear?: boolean | undefined;
10747
10795
  } & { [K_1 in Exclude<keyof I_1, keyof CustomStatusEvent>]: never; }>(object: I_1): CustomStatusEvent;
10748
10796
  };
10749
10797
  export declare const UserChannelAdded: {
@@ -8639,7 +8639,8 @@ function createBaseChannelMessageUpdate() {
8639
8639
  mode: 0,
8640
8640
  is_public: false,
8641
8641
  hide_editted: false,
8642
- topic_id: ""
8642
+ topic_id: "",
8643
+ mess_topic_id: ""
8643
8644
  };
8644
8645
  }
8645
8646
  var ChannelMessageUpdate = {
@@ -8674,6 +8675,9 @@ var ChannelMessageUpdate = {
8674
8675
  if (message.topic_id !== "") {
8675
8676
  writer.uint32(82).string(message.topic_id);
8676
8677
  }
8678
+ if (message.mess_topic_id !== "") {
8679
+ writer.uint32(90).string(message.mess_topic_id);
8680
+ }
8677
8681
  return writer;
8678
8682
  },
8679
8683
  decode(input, length) {
@@ -8743,6 +8747,12 @@ var ChannelMessageUpdate = {
8743
8747
  }
8744
8748
  message.topic_id = reader.string();
8745
8749
  continue;
8750
+ case 11:
8751
+ if (tag !== 90) {
8752
+ break;
8753
+ }
8754
+ message.mess_topic_id = reader.string();
8755
+ continue;
8746
8756
  }
8747
8757
  if ((tag & 7) === 4 || tag === 0) {
8748
8758
  break;
@@ -8762,7 +8772,8 @@ var ChannelMessageUpdate = {
8762
8772
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
8763
8773
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8764
8774
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
8765
- topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
8775
+ topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
8776
+ mess_topic_id: isSet4(object.mess_topic_id) ? globalThis.String(object.mess_topic_id) : ""
8766
8777
  };
8767
8778
  },
8768
8779
  toJSON(message) {
@@ -8798,13 +8809,16 @@ var ChannelMessageUpdate = {
8798
8809
  if (message.topic_id !== "") {
8799
8810
  obj.topic_id = message.topic_id;
8800
8811
  }
8812
+ if (message.mess_topic_id !== "") {
8813
+ obj.mess_topic_id = message.mess_topic_id;
8814
+ }
8801
8815
  return obj;
8802
8816
  },
8803
8817
  create(base) {
8804
8818
  return ChannelMessageUpdate.fromPartial(base != null ? base : {});
8805
8819
  },
8806
8820
  fromPartial(object) {
8807
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8821
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
8808
8822
  const message = createBaseChannelMessageUpdate();
8809
8823
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8810
8824
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -8816,11 +8830,20 @@ var ChannelMessageUpdate = {
8816
8830
  message.is_public = (_h = object.is_public) != null ? _h : false;
8817
8831
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
8818
8832
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
8833
+ message.mess_topic_id = (_k = object.mess_topic_id) != null ? _k : "";
8819
8834
  return message;
8820
8835
  }
8821
8836
  };
8822
8837
  function createBaseChannelMessageRemove() {
8823
- return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false, has_attachment: false };
8838
+ return {
8839
+ clan_id: "",
8840
+ channel_id: "",
8841
+ message_id: "",
8842
+ mode: 0,
8843
+ is_public: false,
8844
+ has_attachment: false,
8845
+ topic_id: ""
8846
+ };
8824
8847
  }
8825
8848
  var ChannelMessageRemove = {
8826
8849
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -8842,6 +8865,9 @@ var ChannelMessageRemove = {
8842
8865
  if (message.has_attachment !== false) {
8843
8866
  writer.uint32(48).bool(message.has_attachment);
8844
8867
  }
8868
+ if (message.topic_id !== "") {
8869
+ writer.uint32(58).string(message.topic_id);
8870
+ }
8845
8871
  return writer;
8846
8872
  },
8847
8873
  decode(input, length) {
@@ -8887,6 +8913,12 @@ var ChannelMessageRemove = {
8887
8913
  }
8888
8914
  message.has_attachment = reader.bool();
8889
8915
  continue;
8916
+ case 7:
8917
+ if (tag !== 58) {
8918
+ break;
8919
+ }
8920
+ message.topic_id = reader.string();
8921
+ continue;
8890
8922
  }
8891
8923
  if ((tag & 7) === 4 || tag === 0) {
8892
8924
  break;
@@ -8902,7 +8934,8 @@ var ChannelMessageRemove = {
8902
8934
  message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
8903
8935
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
8904
8936
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8905
- has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false
8937
+ has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
8938
+ topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
8906
8939
  };
8907
8940
  },
8908
8941
  toJSON(message) {
@@ -8925,13 +8958,16 @@ var ChannelMessageRemove = {
8925
8958
  if (message.has_attachment !== false) {
8926
8959
  obj.has_attachment = message.has_attachment;
8927
8960
  }
8961
+ if (message.topic_id !== "") {
8962
+ obj.topic_id = message.topic_id;
8963
+ }
8928
8964
  return obj;
8929
8965
  },
8930
8966
  create(base) {
8931
8967
  return ChannelMessageRemove.fromPartial(base != null ? base : {});
8932
8968
  },
8933
8969
  fromPartial(object) {
8934
- var _a, _b, _c, _d, _e, _f;
8970
+ var _a, _b, _c, _d, _e, _f, _g;
8935
8971
  const message = createBaseChannelMessageRemove();
8936
8972
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8937
8973
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -8939,6 +8975,7 @@ var ChannelMessageRemove = {
8939
8975
  message.mode = (_d = object.mode) != null ? _d : 0;
8940
8976
  message.is_public = (_e = object.is_public) != null ? _e : false;
8941
8977
  message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
8978
+ message.topic_id = (_g = object.topic_id) != null ? _g : "";
8942
8979
  return message;
8943
8980
  }
8944
8981
  };
@@ -12405,7 +12442,7 @@ var UserPresence = {
12405
12442
  }
12406
12443
  };
12407
12444
  function createBaseCustomStatusEvent() {
12408
- return { clan_id: "", user_id: "", username: "", status: "" };
12445
+ return { clan_id: "", user_id: "", username: "", status: "", time_reset: 0, no_clear: false };
12409
12446
  }
12410
12447
  var CustomStatusEvent = {
12411
12448
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -12421,6 +12458,12 @@ var CustomStatusEvent = {
12421
12458
  if (message.status !== "") {
12422
12459
  writer.uint32(34).string(message.status);
12423
12460
  }
12461
+ if (message.time_reset !== 0) {
12462
+ writer.uint32(40).int32(message.time_reset);
12463
+ }
12464
+ if (message.no_clear !== false) {
12465
+ writer.uint32(48).bool(message.no_clear);
12466
+ }
12424
12467
  return writer;
12425
12468
  },
12426
12469
  decode(input, length) {
@@ -12454,6 +12497,18 @@ var CustomStatusEvent = {
12454
12497
  }
12455
12498
  message.status = reader.string();
12456
12499
  continue;
12500
+ case 5:
12501
+ if (tag !== 40) {
12502
+ break;
12503
+ }
12504
+ message.time_reset = reader.int32();
12505
+ continue;
12506
+ case 6:
12507
+ if (tag !== 48) {
12508
+ break;
12509
+ }
12510
+ message.no_clear = reader.bool();
12511
+ continue;
12457
12512
  }
12458
12513
  if ((tag & 7) === 4 || tag === 0) {
12459
12514
  break;
@@ -12467,7 +12522,9 @@ var CustomStatusEvent = {
12467
12522
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
12468
12523
  user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12469
12524
  username: isSet4(object.username) ? globalThis.String(object.username) : "",
12470
- status: isSet4(object.status) ? globalThis.String(object.status) : ""
12525
+ status: isSet4(object.status) ? globalThis.String(object.status) : "",
12526
+ time_reset: isSet4(object.time_reset) ? globalThis.Number(object.time_reset) : 0,
12527
+ no_clear: isSet4(object.no_clear) ? globalThis.Boolean(object.no_clear) : false
12471
12528
  };
12472
12529
  },
12473
12530
  toJSON(message) {
@@ -12484,18 +12541,26 @@ var CustomStatusEvent = {
12484
12541
  if (message.status !== "") {
12485
12542
  obj.status = message.status;
12486
12543
  }
12544
+ if (message.time_reset !== 0) {
12545
+ obj.time_reset = Math.round(message.time_reset);
12546
+ }
12547
+ if (message.no_clear !== false) {
12548
+ obj.no_clear = message.no_clear;
12549
+ }
12487
12550
  return obj;
12488
12551
  },
12489
12552
  create(base) {
12490
12553
  return CustomStatusEvent.fromPartial(base != null ? base : {});
12491
12554
  },
12492
12555
  fromPartial(object) {
12493
- var _a, _b, _c, _d;
12556
+ var _a, _b, _c, _d, _e, _f;
12494
12557
  const message = createBaseCustomStatusEvent();
12495
12558
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
12496
12559
  message.user_id = (_b = object.user_id) != null ? _b : "";
12497
12560
  message.username = (_c = object.username) != null ? _c : "";
12498
12561
  message.status = (_d = object.status) != null ? _d : "";
12562
+ message.time_reset = (_e = object.time_reset) != null ? _e : 0;
12563
+ message.no_clear = (_f = object.no_clear) != null ? _f : false;
12499
12564
  return message;
12500
12565
  }
12501
12566
  };
@@ -8626,7 +8626,8 @@ function createBaseChannelMessageUpdate() {
8626
8626
  mode: 0,
8627
8627
  is_public: false,
8628
8628
  hide_editted: false,
8629
- topic_id: ""
8629
+ topic_id: "",
8630
+ mess_topic_id: ""
8630
8631
  };
8631
8632
  }
8632
8633
  var ChannelMessageUpdate = {
@@ -8661,6 +8662,9 @@ var ChannelMessageUpdate = {
8661
8662
  if (message.topic_id !== "") {
8662
8663
  writer.uint32(82).string(message.topic_id);
8663
8664
  }
8665
+ if (message.mess_topic_id !== "") {
8666
+ writer.uint32(90).string(message.mess_topic_id);
8667
+ }
8664
8668
  return writer;
8665
8669
  },
8666
8670
  decode(input, length) {
@@ -8730,6 +8734,12 @@ var ChannelMessageUpdate = {
8730
8734
  }
8731
8735
  message.topic_id = reader.string();
8732
8736
  continue;
8737
+ case 11:
8738
+ if (tag !== 90) {
8739
+ break;
8740
+ }
8741
+ message.mess_topic_id = reader.string();
8742
+ continue;
8733
8743
  }
8734
8744
  if ((tag & 7) === 4 || tag === 0) {
8735
8745
  break;
@@ -8749,7 +8759,8 @@ var ChannelMessageUpdate = {
8749
8759
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
8750
8760
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8751
8761
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
8752
- topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
8762
+ topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
8763
+ mess_topic_id: isSet4(object.mess_topic_id) ? globalThis.String(object.mess_topic_id) : ""
8753
8764
  };
8754
8765
  },
8755
8766
  toJSON(message) {
@@ -8785,13 +8796,16 @@ var ChannelMessageUpdate = {
8785
8796
  if (message.topic_id !== "") {
8786
8797
  obj.topic_id = message.topic_id;
8787
8798
  }
8799
+ if (message.mess_topic_id !== "") {
8800
+ obj.mess_topic_id = message.mess_topic_id;
8801
+ }
8788
8802
  return obj;
8789
8803
  },
8790
8804
  create(base) {
8791
8805
  return ChannelMessageUpdate.fromPartial(base != null ? base : {});
8792
8806
  },
8793
8807
  fromPartial(object) {
8794
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8808
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
8795
8809
  const message = createBaseChannelMessageUpdate();
8796
8810
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8797
8811
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -8803,11 +8817,20 @@ var ChannelMessageUpdate = {
8803
8817
  message.is_public = (_h = object.is_public) != null ? _h : false;
8804
8818
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
8805
8819
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
8820
+ message.mess_topic_id = (_k = object.mess_topic_id) != null ? _k : "";
8806
8821
  return message;
8807
8822
  }
8808
8823
  };
8809
8824
  function createBaseChannelMessageRemove() {
8810
- return { clan_id: "", channel_id: "", message_id: "", mode: 0, is_public: false, has_attachment: false };
8825
+ return {
8826
+ clan_id: "",
8827
+ channel_id: "",
8828
+ message_id: "",
8829
+ mode: 0,
8830
+ is_public: false,
8831
+ has_attachment: false,
8832
+ topic_id: ""
8833
+ };
8811
8834
  }
8812
8835
  var ChannelMessageRemove = {
8813
8836
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -8829,6 +8852,9 @@ var ChannelMessageRemove = {
8829
8852
  if (message.has_attachment !== false) {
8830
8853
  writer.uint32(48).bool(message.has_attachment);
8831
8854
  }
8855
+ if (message.topic_id !== "") {
8856
+ writer.uint32(58).string(message.topic_id);
8857
+ }
8832
8858
  return writer;
8833
8859
  },
8834
8860
  decode(input, length) {
@@ -8874,6 +8900,12 @@ var ChannelMessageRemove = {
8874
8900
  }
8875
8901
  message.has_attachment = reader.bool();
8876
8902
  continue;
8903
+ case 7:
8904
+ if (tag !== 58) {
8905
+ break;
8906
+ }
8907
+ message.topic_id = reader.string();
8908
+ continue;
8877
8909
  }
8878
8910
  if ((tag & 7) === 4 || tag === 0) {
8879
8911
  break;
@@ -8889,7 +8921,8 @@ var ChannelMessageRemove = {
8889
8921
  message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
8890
8922
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
8891
8923
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8892
- has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false
8924
+ has_attachment: isSet4(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
8925
+ topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : ""
8893
8926
  };
8894
8927
  },
8895
8928
  toJSON(message) {
@@ -8912,13 +8945,16 @@ var ChannelMessageRemove = {
8912
8945
  if (message.has_attachment !== false) {
8913
8946
  obj.has_attachment = message.has_attachment;
8914
8947
  }
8948
+ if (message.topic_id !== "") {
8949
+ obj.topic_id = message.topic_id;
8950
+ }
8915
8951
  return obj;
8916
8952
  },
8917
8953
  create(base) {
8918
8954
  return ChannelMessageRemove.fromPartial(base != null ? base : {});
8919
8955
  },
8920
8956
  fromPartial(object) {
8921
- var _a, _b, _c, _d, _e, _f;
8957
+ var _a, _b, _c, _d, _e, _f, _g;
8922
8958
  const message = createBaseChannelMessageRemove();
8923
8959
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8924
8960
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -8926,6 +8962,7 @@ var ChannelMessageRemove = {
8926
8962
  message.mode = (_d = object.mode) != null ? _d : 0;
8927
8963
  message.is_public = (_e = object.is_public) != null ? _e : false;
8928
8964
  message.has_attachment = (_f = object.has_attachment) != null ? _f : false;
8965
+ message.topic_id = (_g = object.topic_id) != null ? _g : "";
8929
8966
  return message;
8930
8967
  }
8931
8968
  };
@@ -12392,7 +12429,7 @@ var UserPresence = {
12392
12429
  }
12393
12430
  };
12394
12431
  function createBaseCustomStatusEvent() {
12395
- return { clan_id: "", user_id: "", username: "", status: "" };
12432
+ return { clan_id: "", user_id: "", username: "", status: "", time_reset: 0, no_clear: false };
12396
12433
  }
12397
12434
  var CustomStatusEvent = {
12398
12435
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -12408,6 +12445,12 @@ var CustomStatusEvent = {
12408
12445
  if (message.status !== "") {
12409
12446
  writer.uint32(34).string(message.status);
12410
12447
  }
12448
+ if (message.time_reset !== 0) {
12449
+ writer.uint32(40).int32(message.time_reset);
12450
+ }
12451
+ if (message.no_clear !== false) {
12452
+ writer.uint32(48).bool(message.no_clear);
12453
+ }
12411
12454
  return writer;
12412
12455
  },
12413
12456
  decode(input, length) {
@@ -12441,6 +12484,18 @@ var CustomStatusEvent = {
12441
12484
  }
12442
12485
  message.status = reader.string();
12443
12486
  continue;
12487
+ case 5:
12488
+ if (tag !== 40) {
12489
+ break;
12490
+ }
12491
+ message.time_reset = reader.int32();
12492
+ continue;
12493
+ case 6:
12494
+ if (tag !== 48) {
12495
+ break;
12496
+ }
12497
+ message.no_clear = reader.bool();
12498
+ continue;
12444
12499
  }
12445
12500
  if ((tag & 7) === 4 || tag === 0) {
12446
12501
  break;
@@ -12454,7 +12509,9 @@ var CustomStatusEvent = {
12454
12509
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
12455
12510
  user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12456
12511
  username: isSet4(object.username) ? globalThis.String(object.username) : "",
12457
- status: isSet4(object.status) ? globalThis.String(object.status) : ""
12512
+ status: isSet4(object.status) ? globalThis.String(object.status) : "",
12513
+ time_reset: isSet4(object.time_reset) ? globalThis.Number(object.time_reset) : 0,
12514
+ no_clear: isSet4(object.no_clear) ? globalThis.Boolean(object.no_clear) : false
12458
12515
  };
12459
12516
  },
12460
12517
  toJSON(message) {
@@ -12471,18 +12528,26 @@ var CustomStatusEvent = {
12471
12528
  if (message.status !== "") {
12472
12529
  obj.status = message.status;
12473
12530
  }
12531
+ if (message.time_reset !== 0) {
12532
+ obj.time_reset = Math.round(message.time_reset);
12533
+ }
12534
+ if (message.no_clear !== false) {
12535
+ obj.no_clear = message.no_clear;
12536
+ }
12474
12537
  return obj;
12475
12538
  },
12476
12539
  create(base) {
12477
12540
  return CustomStatusEvent.fromPartial(base != null ? base : {});
12478
12541
  },
12479
12542
  fromPartial(object) {
12480
- var _a, _b, _c, _d;
12543
+ var _a, _b, _c, _d, _e, _f;
12481
12544
  const message = createBaseCustomStatusEvent();
12482
12545
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
12483
12546
  message.user_id = (_b = object.user_id) != null ? _b : "";
12484
12547
  message.username = (_c = object.username) != null ? _c : "";
12485
12548
  message.status = (_d = object.status) != null ? _d : "";
12549
+ message.time_reset = (_e = object.time_reset) != null ? _e : 0;
12550
+ message.no_clear = (_f = object.no_clear) != null ? _f : false;
12486
12551
  return message;
12487
12552
  }
12488
12553
  };