mezon-js-protobuf 1.5.72 → 1.5.73

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
@@ -1127,6 +1127,8 @@ export interface LinkSteamRequest {
1127
1127
 
1128
1128
  /** List a channel's message history. */
1129
1129
  export interface ListChannelMessagesRequest {
1130
+ /** the clan id */
1131
+ clan_id: string;
1130
1132
  /** The channel ID to list from. */
1131
1133
  channel_id: string;
1132
1134
  /** The current message ID. */
@@ -10480,22 +10482,25 @@ export const LinkSteamRequest = {
10480
10482
  };
10481
10483
 
10482
10484
  function createBaseListChannelMessagesRequest(): ListChannelMessagesRequest {
10483
- return { channel_id: "", message_id: "", limit: undefined, direction: undefined };
10485
+ return { clan_id: "", channel_id: "", message_id: "", limit: undefined, direction: undefined };
10484
10486
  }
10485
10487
 
10486
10488
  export const ListChannelMessagesRequest = {
10487
10489
  encode(message: ListChannelMessagesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
10490
+ if (message.clan_id !== "") {
10491
+ writer.uint32(10).string(message.clan_id);
10492
+ }
10488
10493
  if (message.channel_id !== "") {
10489
- writer.uint32(10).string(message.channel_id);
10494
+ writer.uint32(18).string(message.channel_id);
10490
10495
  }
10491
10496
  if (message.message_id !== "") {
10492
- writer.uint32(18).string(message.message_id);
10497
+ writer.uint32(26).string(message.message_id);
10493
10498
  }
10494
10499
  if (message.limit !== undefined) {
10495
- Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
10500
+ Int32Value.encode({ value: message.limit! }, writer.uint32(34).fork()).ldelim();
10496
10501
  }
10497
10502
  if (message.direction !== undefined) {
10498
- Int32Value.encode({ value: message.direction! }, writer.uint32(34).fork()).ldelim();
10503
+ Int32Value.encode({ value: message.direction! }, writer.uint32(42).fork()).ldelim();
10499
10504
  }
10500
10505
  return writer;
10501
10506
  },
@@ -10512,27 +10517,34 @@ export const ListChannelMessagesRequest = {
10512
10517
  break;
10513
10518
  }
10514
10519
 
10515
- message.channel_id = reader.string();
10520
+ message.clan_id = reader.string();
10516
10521
  continue;
10517
10522
  case 2:
10518
10523
  if (tag !== 18) {
10519
10524
  break;
10520
10525
  }
10521
10526
 
10522
- message.message_id = reader.string();
10527
+ message.channel_id = reader.string();
10523
10528
  continue;
10524
10529
  case 3:
10525
10530
  if (tag !== 26) {
10526
10531
  break;
10527
10532
  }
10528
10533
 
10529
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
10534
+ message.message_id = reader.string();
10530
10535
  continue;
10531
10536
  case 4:
10532
10537
  if (tag !== 34) {
10533
10538
  break;
10534
10539
  }
10535
10540
 
10541
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
10542
+ continue;
10543
+ case 5:
10544
+ if (tag !== 42) {
10545
+ break;
10546
+ }
10547
+
10536
10548
  message.direction = Int32Value.decode(reader, reader.uint32()).value;
10537
10549
  continue;
10538
10550
  }
@@ -10546,6 +10558,7 @@ export const ListChannelMessagesRequest = {
10546
10558
 
10547
10559
  fromJSON(object: any): ListChannelMessagesRequest {
10548
10560
  return {
10561
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
10549
10562
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
10550
10563
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
10551
10564
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
@@ -10555,6 +10568,9 @@ export const ListChannelMessagesRequest = {
10555
10568
 
10556
10569
  toJSON(message: ListChannelMessagesRequest): unknown {
10557
10570
  const obj: any = {};
10571
+ if (message.clan_id !== "") {
10572
+ obj.clan_id = message.clan_id;
10573
+ }
10558
10574
  if (message.channel_id !== "") {
10559
10575
  obj.channel_id = message.channel_id;
10560
10576
  }
@@ -10575,6 +10591,7 @@ export const ListChannelMessagesRequest = {
10575
10591
  },
10576
10592
  fromPartial<I extends Exact<DeepPartial<ListChannelMessagesRequest>, I>>(object: I): ListChannelMessagesRequest {
10577
10593
  const message = createBaseListChannelMessagesRequest();
10594
+ message.clan_id = object.clan_id ?? "";
10578
10595
  message.channel_id = object.channel_id ?? "";
10579
10596
  message.message_id = object.message_id ?? "";
10580
10597
  message.limit = object.limit ?? undefined;
@@ -812,6 +812,8 @@ export interface LinkSteamRequest {
812
812
  }
813
813
  /** List a channel's message history. */
814
814
  export interface ListChannelMessagesRequest {
815
+ /** the clan id */
816
+ clan_id: string;
815
817
  /** The channel ID to list from. */
816
818
  channel_id: string;
817
819
  /** The current message ID. */
@@ -6959,22 +6961,26 @@ export declare const ListChannelMessagesRequest: {
6959
6961
  fromJSON(object: any): ListChannelMessagesRequest;
6960
6962
  toJSON(message: ListChannelMessagesRequest): unknown;
6961
6963
  create<I extends {
6964
+ clan_id?: string | undefined;
6962
6965
  channel_id?: string | undefined;
6963
6966
  message_id?: string | undefined;
6964
6967
  limit?: number | undefined;
6965
6968
  direction?: number | undefined;
6966
6969
  } & {
6970
+ clan_id?: string | undefined;
6967
6971
  channel_id?: string | undefined;
6968
6972
  message_id?: string | undefined;
6969
6973
  limit?: number | undefined;
6970
6974
  direction?: number | undefined;
6971
6975
  } & { [K in Exclude<keyof I, keyof ListChannelMessagesRequest>]: never; }>(base?: I | undefined): ListChannelMessagesRequest;
6972
6976
  fromPartial<I_1 extends {
6977
+ clan_id?: string | undefined;
6973
6978
  channel_id?: string | undefined;
6974
6979
  message_id?: string | undefined;
6975
6980
  limit?: number | undefined;
6976
6981
  direction?: number | undefined;
6977
6982
  } & {
6983
+ clan_id?: string | undefined;
6978
6984
  channel_id?: string | undefined;
6979
6985
  message_id?: string | undefined;
6980
6986
  limit?: number | undefined;
@@ -541,6 +541,8 @@ export interface LastPinMessageEvent {
541
541
  }
542
542
  /** Last seen message by user */
543
543
  export interface LastSeenMessageEvent {
544
+ /** The clan id */
545
+ clan_id: string;
544
546
  /** The unique ID of this channel. */
545
547
  channel_id: string;
546
548
  /** The unique ID of this message. */
@@ -1301,6 +1303,7 @@ export declare const Envelope: {
1301
1303
  is_parent_public?: boolean | undefined;
1302
1304
  } | undefined;
1303
1305
  last_seen_message_event?: {
1306
+ clan_id?: string | undefined;
1304
1307
  channel_id?: string | undefined;
1305
1308
  message_id?: string | undefined;
1306
1309
  mode?: number | undefined;
@@ -2697,11 +2700,13 @@ export declare const Envelope: {
2697
2700
  is_parent_public?: boolean | undefined;
2698
2701
  } & { [K_58 in Exclude<keyof I["message_typing_event"], keyof MessageTypingEvent>]: never; }) | undefined;
2699
2702
  last_seen_message_event?: ({
2703
+ clan_id?: string | undefined;
2700
2704
  channel_id?: string | undefined;
2701
2705
  message_id?: string | undefined;
2702
2706
  mode?: number | undefined;
2703
2707
  timestamp_seconds?: number | undefined;
2704
2708
  } & {
2709
+ clan_id?: string | undefined;
2705
2710
  channel_id?: string | undefined;
2706
2711
  message_id?: string | undefined;
2707
2712
  mode?: number | undefined;
@@ -4657,6 +4662,7 @@ export declare const Envelope: {
4657
4662
  is_parent_public?: boolean | undefined;
4658
4663
  } | undefined;
4659
4664
  last_seen_message_event?: {
4665
+ clan_id?: string | undefined;
4660
4666
  channel_id?: string | undefined;
4661
4667
  message_id?: string | undefined;
4662
4668
  mode?: number | undefined;
@@ -6053,11 +6059,13 @@ export declare const Envelope: {
6053
6059
  is_parent_public?: boolean | undefined;
6054
6060
  } & { [K_217 in Exclude<keyof I_1["message_typing_event"], keyof MessageTypingEvent>]: never; }) | undefined;
6055
6061
  last_seen_message_event?: ({
6062
+ clan_id?: string | undefined;
6056
6063
  channel_id?: string | undefined;
6057
6064
  message_id?: string | undefined;
6058
6065
  mode?: number | undefined;
6059
6066
  timestamp_seconds?: number | undefined;
6060
6067
  } & {
6068
+ clan_id?: string | undefined;
6061
6069
  channel_id?: string | undefined;
6062
6070
  message_id?: string | undefined;
6063
6071
  mode?: number | undefined;
@@ -11315,22 +11323,26 @@ export declare const LastSeenMessageEvent: {
11315
11323
  fromJSON(object: any): LastSeenMessageEvent;
11316
11324
  toJSON(message: LastSeenMessageEvent): unknown;
11317
11325
  create<I extends {
11326
+ clan_id?: string | undefined;
11318
11327
  channel_id?: string | undefined;
11319
11328
  message_id?: string | undefined;
11320
11329
  mode?: number | undefined;
11321
11330
  timestamp_seconds?: number | undefined;
11322
11331
  } & {
11332
+ clan_id?: string | undefined;
11323
11333
  channel_id?: string | undefined;
11324
11334
  message_id?: string | undefined;
11325
11335
  mode?: number | undefined;
11326
11336
  timestamp_seconds?: number | undefined;
11327
11337
  } & { [K in Exclude<keyof I, keyof LastSeenMessageEvent>]: never; }>(base?: I | undefined): LastSeenMessageEvent;
11328
11338
  fromPartial<I_1 extends {
11339
+ clan_id?: string | undefined;
11329
11340
  channel_id?: string | undefined;
11330
11341
  message_id?: string | undefined;
11331
11342
  mode?: number | undefined;
11332
11343
  timestamp_seconds?: number | undefined;
11333
11344
  } & {
11345
+ clan_id?: string | undefined;
11334
11346
  channel_id?: string | undefined;
11335
11347
  message_id?: string | undefined;
11336
11348
  mode?: number | undefined;
@@ -10263,21 +10263,24 @@ var LastPinMessageEvent = {
10263
10263
  }
10264
10264
  };
10265
10265
  function createBaseLastSeenMessageEvent() {
10266
- return { channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
10266
+ return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
10267
10267
  }
10268
10268
  var LastSeenMessageEvent = {
10269
10269
  encode(message, writer = import_minimal5.default.Writer.create()) {
10270
+ if (message.clan_id !== "") {
10271
+ writer.uint32(10).string(message.clan_id);
10272
+ }
10270
10273
  if (message.channel_id !== "") {
10271
- writer.uint32(10).string(message.channel_id);
10274
+ writer.uint32(18).string(message.channel_id);
10272
10275
  }
10273
10276
  if (message.message_id !== "") {
10274
- writer.uint32(18).string(message.message_id);
10277
+ writer.uint32(26).string(message.message_id);
10275
10278
  }
10276
10279
  if (message.mode !== 0) {
10277
- writer.uint32(24).int32(message.mode);
10280
+ writer.uint32(32).int32(message.mode);
10278
10281
  }
10279
10282
  if (message.timestamp_seconds !== 0) {
10280
- writer.uint32(32).uint32(message.timestamp_seconds);
10283
+ writer.uint32(40).uint32(message.timestamp_seconds);
10281
10284
  }
10282
10285
  return writer;
10283
10286
  },
@@ -10292,24 +10295,30 @@ var LastSeenMessageEvent = {
10292
10295
  if (tag !== 10) {
10293
10296
  break;
10294
10297
  }
10295
- message.channel_id = reader.string();
10298
+ message.clan_id = reader.string();
10296
10299
  continue;
10297
10300
  case 2:
10298
10301
  if (tag !== 18) {
10299
10302
  break;
10300
10303
  }
10301
- message.message_id = reader.string();
10304
+ message.channel_id = reader.string();
10302
10305
  continue;
10303
10306
  case 3:
10304
- if (tag !== 24) {
10307
+ if (tag !== 26) {
10305
10308
  break;
10306
10309
  }
10307
- message.mode = reader.int32();
10310
+ message.message_id = reader.string();
10308
10311
  continue;
10309
10312
  case 4:
10310
10313
  if (tag !== 32) {
10311
10314
  break;
10312
10315
  }
10316
+ message.mode = reader.int32();
10317
+ continue;
10318
+ case 5:
10319
+ if (tag !== 40) {
10320
+ break;
10321
+ }
10313
10322
  message.timestamp_seconds = reader.uint32();
10314
10323
  continue;
10315
10324
  }
@@ -10322,6 +10331,7 @@ var LastSeenMessageEvent = {
10322
10331
  },
10323
10332
  fromJSON(object) {
10324
10333
  return {
10334
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
10325
10335
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
10326
10336
  message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
10327
10337
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
@@ -10330,6 +10340,9 @@ var LastSeenMessageEvent = {
10330
10340
  },
10331
10341
  toJSON(message) {
10332
10342
  const obj = {};
10343
+ if (message.clan_id !== "") {
10344
+ obj.clan_id = message.clan_id;
10345
+ }
10333
10346
  if (message.channel_id !== "") {
10334
10347
  obj.channel_id = message.channel_id;
10335
10348
  }
@@ -10348,12 +10361,13 @@ var LastSeenMessageEvent = {
10348
10361
  return LastSeenMessageEvent.fromPartial(base != null ? base : {});
10349
10362
  },
10350
10363
  fromPartial(object) {
10351
- var _a, _b, _c, _d;
10364
+ var _a, _b, _c, _d, _e;
10352
10365
  const message = createBaseLastSeenMessageEvent();
10353
- message.channel_id = (_a = object.channel_id) != null ? _a : "";
10354
- message.message_id = (_b = object.message_id) != null ? _b : "";
10355
- message.mode = (_c = object.mode) != null ? _c : 0;
10356
- message.timestamp_seconds = (_d = object.timestamp_seconds) != null ? _d : 0;
10366
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
10367
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
10368
+ message.message_id = (_c = object.message_id) != null ? _c : "";
10369
+ message.mode = (_d = object.mode) != null ? _d : 0;
10370
+ message.timestamp_seconds = (_e = object.timestamp_seconds) != null ? _e : 0;
10357
10371
  return message;
10358
10372
  }
10359
10373
  };
@@ -10250,21 +10250,24 @@ var LastPinMessageEvent = {
10250
10250
  }
10251
10251
  };
10252
10252
  function createBaseLastSeenMessageEvent() {
10253
- return { channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
10253
+ return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
10254
10254
  }
10255
10255
  var LastSeenMessageEvent = {
10256
10256
  encode(message, writer = import_minimal5.default.Writer.create()) {
10257
+ if (message.clan_id !== "") {
10258
+ writer.uint32(10).string(message.clan_id);
10259
+ }
10257
10260
  if (message.channel_id !== "") {
10258
- writer.uint32(10).string(message.channel_id);
10261
+ writer.uint32(18).string(message.channel_id);
10259
10262
  }
10260
10263
  if (message.message_id !== "") {
10261
- writer.uint32(18).string(message.message_id);
10264
+ writer.uint32(26).string(message.message_id);
10262
10265
  }
10263
10266
  if (message.mode !== 0) {
10264
- writer.uint32(24).int32(message.mode);
10267
+ writer.uint32(32).int32(message.mode);
10265
10268
  }
10266
10269
  if (message.timestamp_seconds !== 0) {
10267
- writer.uint32(32).uint32(message.timestamp_seconds);
10270
+ writer.uint32(40).uint32(message.timestamp_seconds);
10268
10271
  }
10269
10272
  return writer;
10270
10273
  },
@@ -10279,24 +10282,30 @@ var LastSeenMessageEvent = {
10279
10282
  if (tag !== 10) {
10280
10283
  break;
10281
10284
  }
10282
- message.channel_id = reader.string();
10285
+ message.clan_id = reader.string();
10283
10286
  continue;
10284
10287
  case 2:
10285
10288
  if (tag !== 18) {
10286
10289
  break;
10287
10290
  }
10288
- message.message_id = reader.string();
10291
+ message.channel_id = reader.string();
10289
10292
  continue;
10290
10293
  case 3:
10291
- if (tag !== 24) {
10294
+ if (tag !== 26) {
10292
10295
  break;
10293
10296
  }
10294
- message.mode = reader.int32();
10297
+ message.message_id = reader.string();
10295
10298
  continue;
10296
10299
  case 4:
10297
10300
  if (tag !== 32) {
10298
10301
  break;
10299
10302
  }
10303
+ message.mode = reader.int32();
10304
+ continue;
10305
+ case 5:
10306
+ if (tag !== 40) {
10307
+ break;
10308
+ }
10300
10309
  message.timestamp_seconds = reader.uint32();
10301
10310
  continue;
10302
10311
  }
@@ -10309,6 +10318,7 @@ var LastSeenMessageEvent = {
10309
10318
  },
10310
10319
  fromJSON(object) {
10311
10320
  return {
10321
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
10312
10322
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
10313
10323
  message_id: isSet4(object.message_id) ? globalThis.String(object.message_id) : "",
10314
10324
  mode: isSet4(object.mode) ? globalThis.Number(object.mode) : 0,
@@ -10317,6 +10327,9 @@ var LastSeenMessageEvent = {
10317
10327
  },
10318
10328
  toJSON(message) {
10319
10329
  const obj = {};
10330
+ if (message.clan_id !== "") {
10331
+ obj.clan_id = message.clan_id;
10332
+ }
10320
10333
  if (message.channel_id !== "") {
10321
10334
  obj.channel_id = message.channel_id;
10322
10335
  }
@@ -10335,12 +10348,13 @@ var LastSeenMessageEvent = {
10335
10348
  return LastSeenMessageEvent.fromPartial(base != null ? base : {});
10336
10349
  },
10337
10350
  fromPartial(object) {
10338
- var _a, _b, _c, _d;
10351
+ var _a, _b, _c, _d, _e;
10339
10352
  const message = createBaseLastSeenMessageEvent();
10340
- message.channel_id = (_a = object.channel_id) != null ? _a : "";
10341
- message.message_id = (_b = object.message_id) != null ? _b : "";
10342
- message.mode = (_c = object.mode) != null ? _c : 0;
10343
- message.timestamp_seconds = (_d = object.timestamp_seconds) != null ? _d : 0;
10353
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
10354
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
10355
+ message.message_id = (_c = object.message_id) != null ? _c : "";
10356
+ message.mode = (_d = object.mode) != null ? _d : 0;
10357
+ message.timestamp_seconds = (_e = object.timestamp_seconds) != null ? _e : 0;
10344
10358
  return message;
10345
10359
  }
10346
10360
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.72",
3
+ "version": "1.5.73",
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
@@ -807,6 +807,8 @@ export interface LastPinMessageEvent {
807
807
 
808
808
  /** Last seen message by user */
809
809
  export interface LastSeenMessageEvent {
810
+ /** The clan id */
811
+ clan_id: string;
810
812
  /** The unique ID of this channel. */
811
813
  channel_id: string;
812
814
  /** The unique ID of this message. */
@@ -6663,22 +6665,25 @@ export const LastPinMessageEvent = {
6663
6665
  };
6664
6666
 
6665
6667
  function createBaseLastSeenMessageEvent(): LastSeenMessageEvent {
6666
- return { channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
6668
+ return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
6667
6669
  }
6668
6670
 
6669
6671
  export const LastSeenMessageEvent = {
6670
6672
  encode(message: LastSeenMessageEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6673
+ if (message.clan_id !== "") {
6674
+ writer.uint32(10).string(message.clan_id);
6675
+ }
6671
6676
  if (message.channel_id !== "") {
6672
- writer.uint32(10).string(message.channel_id);
6677
+ writer.uint32(18).string(message.channel_id);
6673
6678
  }
6674
6679
  if (message.message_id !== "") {
6675
- writer.uint32(18).string(message.message_id);
6680
+ writer.uint32(26).string(message.message_id);
6676
6681
  }
6677
6682
  if (message.mode !== 0) {
6678
- writer.uint32(24).int32(message.mode);
6683
+ writer.uint32(32).int32(message.mode);
6679
6684
  }
6680
6685
  if (message.timestamp_seconds !== 0) {
6681
- writer.uint32(32).uint32(message.timestamp_seconds);
6686
+ writer.uint32(40).uint32(message.timestamp_seconds);
6682
6687
  }
6683
6688
  return writer;
6684
6689
  },
@@ -6695,27 +6700,34 @@ export const LastSeenMessageEvent = {
6695
6700
  break;
6696
6701
  }
6697
6702
 
6698
- message.channel_id = reader.string();
6703
+ message.clan_id = reader.string();
6699
6704
  continue;
6700
6705
  case 2:
6701
6706
  if (tag !== 18) {
6702
6707
  break;
6703
6708
  }
6704
6709
 
6705
- message.message_id = reader.string();
6710
+ message.channel_id = reader.string();
6706
6711
  continue;
6707
6712
  case 3:
6708
- if (tag !== 24) {
6713
+ if (tag !== 26) {
6709
6714
  break;
6710
6715
  }
6711
6716
 
6712
- message.mode = reader.int32();
6717
+ message.message_id = reader.string();
6713
6718
  continue;
6714
6719
  case 4:
6715
6720
  if (tag !== 32) {
6716
6721
  break;
6717
6722
  }
6718
6723
 
6724
+ message.mode = reader.int32();
6725
+ continue;
6726
+ case 5:
6727
+ if (tag !== 40) {
6728
+ break;
6729
+ }
6730
+
6719
6731
  message.timestamp_seconds = reader.uint32();
6720
6732
  continue;
6721
6733
  }
@@ -6729,6 +6741,7 @@ export const LastSeenMessageEvent = {
6729
6741
 
6730
6742
  fromJSON(object: any): LastSeenMessageEvent {
6731
6743
  return {
6744
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
6732
6745
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
6733
6746
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
6734
6747
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
@@ -6738,6 +6751,9 @@ export const LastSeenMessageEvent = {
6738
6751
 
6739
6752
  toJSON(message: LastSeenMessageEvent): unknown {
6740
6753
  const obj: any = {};
6754
+ if (message.clan_id !== "") {
6755
+ obj.clan_id = message.clan_id;
6756
+ }
6741
6757
  if (message.channel_id !== "") {
6742
6758
  obj.channel_id = message.channel_id;
6743
6759
  }
@@ -6758,6 +6774,7 @@ export const LastSeenMessageEvent = {
6758
6774
  },
6759
6775
  fromPartial<I extends Exact<DeepPartial<LastSeenMessageEvent>, I>>(object: I): LastSeenMessageEvent {
6760
6776
  const message = createBaseLastSeenMessageEvent();
6777
+ message.clan_id = object.clan_id ?? "";
6761
6778
  message.channel_id = object.channel_id ?? "";
6762
6779
  message.message_id = object.message_id ?? "";
6763
6780
  message.mode = object.mode ?? 0;