mezon-sdk 2.7.80 → 2.7.82

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.
Files changed (47) hide show
  1. package/dist/cjs/api/api.d.ts +591 -96
  2. package/dist/cjs/api/api.js +833 -77
  3. package/dist/cjs/api/api.js.map +1 -1
  4. package/dist/cjs/client.js +3 -3
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/interfaces/client.d.ts +1 -1
  7. package/dist/cjs/interfaces/socket.d.ts +4 -4
  8. package/dist/cjs/mezon-client/channel_manager.d.ts +2 -0
  9. package/dist/cjs/mezon-client/channel_manager.js +2 -1
  10. package/dist/cjs/mezon-client/channel_manager.js.map +1 -1
  11. package/dist/cjs/mezon-client/message_manager.d.ts +3 -1
  12. package/dist/cjs/mezon-client/message_manager.js +4 -3
  13. package/dist/cjs/mezon-client/message_manager.js.map +1 -1
  14. package/dist/cjs/mezon-client/mezon_client.d.ts +7 -8
  15. package/dist/cjs/mezon-client/mezon_client.js +11 -44
  16. package/dist/cjs/mezon-client/mezon_client.js.map +1 -1
  17. package/dist/cjs/mezon-client/socket_manager.d.ts +12 -1
  18. package/dist/cjs/mezon-client/socket_manager.js +48 -7
  19. package/dist/cjs/mezon-client/socket_manager.js.map +1 -1
  20. package/dist/cjs/rtapi/realtime.d.ts +1704 -377
  21. package/dist/cjs/rtapi/realtime.js +897 -124
  22. package/dist/cjs/rtapi/realtime.js.map +1 -1
  23. package/dist/esm/api/api.d.ts +591 -96
  24. package/dist/esm/api/api.js +805 -58
  25. package/dist/esm/api/api.js.map +1 -1
  26. package/dist/esm/client.js +3 -3
  27. package/dist/esm/client.js.map +1 -1
  28. package/dist/esm/interfaces/client.d.ts +1 -1
  29. package/dist/esm/interfaces/socket.d.ts +4 -4
  30. package/dist/esm/mezon-client/channel_manager.d.ts +2 -0
  31. package/dist/esm/mezon-client/channel_manager.js +2 -1
  32. package/dist/esm/mezon-client/channel_manager.js.map +1 -1
  33. package/dist/esm/mezon-client/message_manager.d.ts +3 -1
  34. package/dist/esm/mezon-client/message_manager.js +4 -3
  35. package/dist/esm/mezon-client/message_manager.js.map +1 -1
  36. package/dist/esm/mezon-client/mezon_client.d.ts +7 -8
  37. package/dist/esm/mezon-client/mezon_client.js +11 -45
  38. package/dist/esm/mezon-client/mezon_client.js.map +1 -1
  39. package/dist/esm/mezon-client/socket_manager.d.ts +12 -1
  40. package/dist/esm/mezon-client/socket_manager.js +51 -7
  41. package/dist/esm/mezon-client/socket_manager.js.map +1 -1
  42. package/dist/esm/rtapi/realtime.d.ts +1704 -377
  43. package/dist/esm/rtapi/realtime.js +884 -115
  44. package/dist/esm/rtapi/realtime.js.map +1 -1
  45. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +1 -1
@@ -159,6 +159,10 @@ function createBaseEnvelope() {
159
159
  remove_friend: undefined,
160
160
  webhook_event: undefined,
161
161
  noti_user_channel: undefined,
162
+ join_channel_app_data: undefined,
163
+ canvas_event: undefined,
164
+ unpin_message_event: undefined,
165
+ category_event: undefined,
162
166
  };
163
167
  }
164
168
  export const Envelope = {
@@ -379,6 +383,18 @@ export const Envelope = {
379
383
  if (message.noti_user_channel !== undefined) {
380
384
  NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
381
385
  }
386
+ if (message.join_channel_app_data !== undefined) {
387
+ JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
388
+ }
389
+ if (message.canvas_event !== undefined) {
390
+ ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
391
+ }
392
+ if (message.unpin_message_event !== undefined) {
393
+ UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
394
+ }
395
+ if (message.category_event !== undefined) {
396
+ CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
397
+ }
382
398
  return writer;
383
399
  },
384
400
  decode(input, length) {
@@ -820,6 +836,30 @@ export const Envelope = {
820
836
  }
821
837
  message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
822
838
  continue;
839
+ case 73:
840
+ if (tag !== 586) {
841
+ break;
842
+ }
843
+ message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
844
+ continue;
845
+ case 74:
846
+ if (tag !== 594) {
847
+ break;
848
+ }
849
+ message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
850
+ continue;
851
+ case 75:
852
+ if (tag !== 602) {
853
+ break;
854
+ }
855
+ message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
856
+ continue;
857
+ case 76:
858
+ if (tag !== 610) {
859
+ break;
860
+ }
861
+ message.category_event = CategoryEvent.decode(reader, reader.uint32());
862
+ continue;
823
863
  }
824
864
  if ((tag & 7) === 4 || tag === 0) {
825
865
  break;
@@ -996,6 +1036,14 @@ export const Envelope = {
996
1036
  noti_user_channel: isSet(object.noti_user_channel)
997
1037
  ? NotificationUserChannel.fromJSON(object.noti_user_channel)
998
1038
  : undefined,
1039
+ join_channel_app_data: isSet(object.join_channel_app_data)
1040
+ ? JoinChannelAppData.fromJSON(object.join_channel_app_data)
1041
+ : undefined,
1042
+ canvas_event: isSet(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : undefined,
1043
+ unpin_message_event: isSet(object.unpin_message_event)
1044
+ ? UnpinMessageEvent.fromJSON(object.unpin_message_event)
1045
+ : undefined,
1046
+ category_event: isSet(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : undefined,
999
1047
  };
1000
1048
  },
1001
1049
  toJSON(message) {
@@ -1216,6 +1264,18 @@ export const Envelope = {
1216
1264
  if (message.noti_user_channel !== undefined) {
1217
1265
  obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
1218
1266
  }
1267
+ if (message.join_channel_app_data !== undefined) {
1268
+ obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
1269
+ }
1270
+ if (message.canvas_event !== undefined) {
1271
+ obj.canvas_event = ChannelCanvas.toJSON(message.canvas_event);
1272
+ }
1273
+ if (message.unpin_message_event !== undefined) {
1274
+ obj.unpin_message_event = UnpinMessageEvent.toJSON(message.unpin_message_event);
1275
+ }
1276
+ if (message.category_event !== undefined) {
1277
+ obj.category_event = CategoryEvent.toJSON(message.category_event);
1278
+ }
1219
1279
  return obj;
1220
1280
  },
1221
1281
  create(base) {
@@ -1453,6 +1513,19 @@ export const Envelope = {
1453
1513
  message.noti_user_channel = (object.noti_user_channel !== undefined && object.noti_user_channel !== null)
1454
1514
  ? NotificationUserChannel.fromPartial(object.noti_user_channel)
1455
1515
  : undefined;
1516
+ message.join_channel_app_data =
1517
+ (object.join_channel_app_data !== undefined && object.join_channel_app_data !== null)
1518
+ ? JoinChannelAppData.fromPartial(object.join_channel_app_data)
1519
+ : undefined;
1520
+ message.canvas_event = (object.canvas_event !== undefined && object.canvas_event !== null)
1521
+ ? ChannelCanvas.fromPartial(object.canvas_event)
1522
+ : undefined;
1523
+ message.unpin_message_event = (object.unpin_message_event !== undefined && object.unpin_message_event !== null)
1524
+ ? UnpinMessageEvent.fromPartial(object.unpin_message_event)
1525
+ : undefined;
1526
+ message.category_event = (object.category_event !== undefined && object.category_event !== null)
1527
+ ? CategoryEvent.fromPartial(object.category_event)
1528
+ : undefined;
1456
1529
  return message;
1457
1530
  },
1458
1531
  };
@@ -1493,6 +1566,165 @@ export const FollowEvent = {
1493
1566
  return message;
1494
1567
  },
1495
1568
  };
1569
+ function createBaseChannelCanvas() {
1570
+ return {
1571
+ id: "",
1572
+ title: "",
1573
+ content: "",
1574
+ creator_id: "",
1575
+ editor_id: "",
1576
+ is_default: false,
1577
+ channel_id: "",
1578
+ status: 0,
1579
+ };
1580
+ }
1581
+ export const ChannelCanvas = {
1582
+ encode(message, writer = _m0.Writer.create()) {
1583
+ if (message.id !== "") {
1584
+ writer.uint32(10).string(message.id);
1585
+ }
1586
+ if (message.title !== "") {
1587
+ writer.uint32(18).string(message.title);
1588
+ }
1589
+ if (message.content !== "") {
1590
+ writer.uint32(26).string(message.content);
1591
+ }
1592
+ if (message.creator_id !== "") {
1593
+ writer.uint32(34).string(message.creator_id);
1594
+ }
1595
+ if (message.editor_id !== "") {
1596
+ writer.uint32(42).string(message.editor_id);
1597
+ }
1598
+ if (message.is_default !== false) {
1599
+ writer.uint32(48).bool(message.is_default);
1600
+ }
1601
+ if (message.channel_id !== "") {
1602
+ writer.uint32(58).string(message.channel_id);
1603
+ }
1604
+ if (message.status !== 0) {
1605
+ writer.uint32(64).int32(message.status);
1606
+ }
1607
+ return writer;
1608
+ },
1609
+ decode(input, length) {
1610
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1611
+ let end = length === undefined ? reader.len : reader.pos + length;
1612
+ const message = createBaseChannelCanvas();
1613
+ while (reader.pos < end) {
1614
+ const tag = reader.uint32();
1615
+ switch (tag >>> 3) {
1616
+ case 1:
1617
+ if (tag !== 10) {
1618
+ break;
1619
+ }
1620
+ message.id = reader.string();
1621
+ continue;
1622
+ case 2:
1623
+ if (tag !== 18) {
1624
+ break;
1625
+ }
1626
+ message.title = reader.string();
1627
+ continue;
1628
+ case 3:
1629
+ if (tag !== 26) {
1630
+ break;
1631
+ }
1632
+ message.content = reader.string();
1633
+ continue;
1634
+ case 4:
1635
+ if (tag !== 34) {
1636
+ break;
1637
+ }
1638
+ message.creator_id = reader.string();
1639
+ continue;
1640
+ case 5:
1641
+ if (tag !== 42) {
1642
+ break;
1643
+ }
1644
+ message.editor_id = reader.string();
1645
+ continue;
1646
+ case 6:
1647
+ if (tag !== 48) {
1648
+ break;
1649
+ }
1650
+ message.is_default = reader.bool();
1651
+ continue;
1652
+ case 7:
1653
+ if (tag !== 58) {
1654
+ break;
1655
+ }
1656
+ message.channel_id = reader.string();
1657
+ continue;
1658
+ case 8:
1659
+ if (tag !== 64) {
1660
+ break;
1661
+ }
1662
+ message.status = reader.int32();
1663
+ continue;
1664
+ }
1665
+ if ((tag & 7) === 4 || tag === 0) {
1666
+ break;
1667
+ }
1668
+ reader.skipType(tag & 7);
1669
+ }
1670
+ return message;
1671
+ },
1672
+ fromJSON(object) {
1673
+ return {
1674
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
1675
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
1676
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
1677
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
1678
+ editor_id: isSet(object.editor_id) ? globalThis.String(object.editor_id) : "",
1679
+ is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
1680
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
1681
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
1682
+ };
1683
+ },
1684
+ toJSON(message) {
1685
+ const obj = {};
1686
+ if (message.id !== "") {
1687
+ obj.id = message.id;
1688
+ }
1689
+ if (message.title !== "") {
1690
+ obj.title = message.title;
1691
+ }
1692
+ if (message.content !== "") {
1693
+ obj.content = message.content;
1694
+ }
1695
+ if (message.creator_id !== "") {
1696
+ obj.creator_id = message.creator_id;
1697
+ }
1698
+ if (message.editor_id !== "") {
1699
+ obj.editor_id = message.editor_id;
1700
+ }
1701
+ if (message.is_default !== false) {
1702
+ obj.is_default = message.is_default;
1703
+ }
1704
+ if (message.channel_id !== "") {
1705
+ obj.channel_id = message.channel_id;
1706
+ }
1707
+ if (message.status !== 0) {
1708
+ obj.status = Math.round(message.status);
1709
+ }
1710
+ return obj;
1711
+ },
1712
+ create(base) {
1713
+ return ChannelCanvas.fromPartial(base ?? {});
1714
+ },
1715
+ fromPartial(object) {
1716
+ const message = createBaseChannelCanvas();
1717
+ message.id = object.id ?? "";
1718
+ message.title = object.title ?? "";
1719
+ message.content = object.content ?? "";
1720
+ message.creator_id = object.creator_id ?? "";
1721
+ message.editor_id = object.editor_id ?? "";
1722
+ message.is_default = object.is_default ?? false;
1723
+ message.channel_id = object.channel_id ?? "";
1724
+ message.status = object.status ?? 0;
1725
+ return message;
1726
+ },
1727
+ };
1496
1728
  function createBaseIncomingCallPush() {
1497
1729
  return { receiver_id: "", json_data: "", channel_id: "", caller_id: "" };
1498
1730
  }
@@ -2044,7 +2276,7 @@ function createBaseHashtagDm() {
2044
2276
  meeting_code: "",
2045
2277
  type: 0,
2046
2278
  channel_private: 0,
2047
- parrent_id: "",
2279
+ parent_id: "",
2048
2280
  };
2049
2281
  }
2050
2282
  export const HashtagDm = {
@@ -2070,8 +2302,8 @@ export const HashtagDm = {
2070
2302
  if (message.channel_private !== 0) {
2071
2303
  writer.uint32(56).int32(message.channel_private);
2072
2304
  }
2073
- if (message.parrent_id !== "") {
2074
- writer.uint32(66).string(message.parrent_id);
2305
+ if (message.parent_id !== "") {
2306
+ writer.uint32(66).string(message.parent_id);
2075
2307
  }
2076
2308
  return writer;
2077
2309
  },
@@ -2128,7 +2360,7 @@ export const HashtagDm = {
2128
2360
  if (tag !== 66) {
2129
2361
  break;
2130
2362
  }
2131
- message.parrent_id = reader.string();
2363
+ message.parent_id = reader.string();
2132
2364
  continue;
2133
2365
  }
2134
2366
  if ((tag & 7) === 4 || tag === 0) {
@@ -2147,7 +2379,7 @@ export const HashtagDm = {
2147
2379
  meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
2148
2380
  type: isSet(object.type) ? globalThis.Number(object.type) : 0,
2149
2381
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
2150
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
2382
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
2151
2383
  };
2152
2384
  },
2153
2385
  toJSON(message) {
@@ -2173,8 +2405,8 @@ export const HashtagDm = {
2173
2405
  if (message.channel_private !== 0) {
2174
2406
  obj.channel_private = Math.round(message.channel_private);
2175
2407
  }
2176
- if (message.parrent_id !== "") {
2177
- obj.parrent_id = message.parrent_id;
2408
+ if (message.parent_id !== "") {
2409
+ obj.parent_id = message.parent_id;
2178
2410
  }
2179
2411
  return obj;
2180
2412
  },
@@ -2190,7 +2422,7 @@ export const HashtagDm = {
2190
2422
  message.meeting_code = object.meeting_code ?? "";
2191
2423
  message.type = object.type ?? 0;
2192
2424
  message.channel_private = object.channel_private ?? 0;
2193
- message.parrent_id = object.parrent_id ?? "";
2425
+ message.parent_id = object.parent_id ?? "";
2194
2426
  return message;
2195
2427
  },
2196
2428
  };
@@ -2203,7 +2435,7 @@ function createBaseChannelDescription() {
2203
2435
  channel_private: 0,
2204
2436
  meeting_code: "",
2205
2437
  clan_name: "",
2206
- parrent_id: "",
2438
+ parent_id: "",
2207
2439
  last_sent_message: undefined,
2208
2440
  };
2209
2441
  }
@@ -2230,8 +2462,8 @@ export const ChannelDescription = {
2230
2462
  if (message.clan_name !== "") {
2231
2463
  writer.uint32(58).string(message.clan_name);
2232
2464
  }
2233
- if (message.parrent_id !== "") {
2234
- writer.uint32(66).string(message.parrent_id);
2465
+ if (message.parent_id !== "") {
2466
+ writer.uint32(66).string(message.parent_id);
2235
2467
  }
2236
2468
  if (message.last_sent_message !== undefined) {
2237
2469
  ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
@@ -2291,7 +2523,7 @@ export const ChannelDescription = {
2291
2523
  if (tag !== 66) {
2292
2524
  break;
2293
2525
  }
2294
- message.parrent_id = reader.string();
2526
+ message.parent_id = reader.string();
2295
2527
  continue;
2296
2528
  case 12:
2297
2529
  if (tag !== 98) {
@@ -2316,7 +2548,7 @@ export const ChannelDescription = {
2316
2548
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
2317
2549
  meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
2318
2550
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
2319
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
2551
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
2320
2552
  last_sent_message: isSet(object.last_sent_message)
2321
2553
  ? ChannelMessageHeader.fromJSON(object.last_sent_message)
2322
2554
  : undefined,
@@ -2345,8 +2577,8 @@ export const ChannelDescription = {
2345
2577
  if (message.clan_name !== "") {
2346
2578
  obj.clan_name = message.clan_name;
2347
2579
  }
2348
- if (message.parrent_id !== "") {
2349
- obj.parrent_id = message.parrent_id;
2580
+ if (message.parent_id !== "") {
2581
+ obj.parent_id = message.parent_id;
2350
2582
  }
2351
2583
  if (message.last_sent_message !== undefined) {
2352
2584
  obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
@@ -2365,7 +2597,7 @@ export const ChannelDescription = {
2365
2597
  message.channel_private = object.channel_private ?? 0;
2366
2598
  message.meeting_code = object.meeting_code ?? "";
2367
2599
  message.clan_name = object.clan_name ?? "";
2368
- message.parrent_id = object.parrent_id ?? "";
2600
+ message.parent_id = object.parent_id ?? "";
2369
2601
  message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
2370
2602
  ? ChannelMessageHeader.fromPartial(object.last_sent_message)
2371
2603
  : undefined;
@@ -4465,7 +4697,7 @@ export const LastPinMessageEvent = {
4465
4697
  },
4466
4698
  };
4467
4699
  function createBaseLastSeenMessageEvent() {
4468
- return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0 };
4700
+ return { clan_id: "", channel_id: "", message_id: "", mode: 0, timestamp_seconds: 0, badge_count: 0 };
4469
4701
  }
4470
4702
  export const LastSeenMessageEvent = {
4471
4703
  encode(message, writer = _m0.Writer.create()) {
@@ -4484,6 +4716,9 @@ export const LastSeenMessageEvent = {
4484
4716
  if (message.timestamp_seconds !== 0) {
4485
4717
  writer.uint32(40).uint32(message.timestamp_seconds);
4486
4718
  }
4719
+ if (message.badge_count !== 0) {
4720
+ writer.uint32(48).int32(message.badge_count);
4721
+ }
4487
4722
  return writer;
4488
4723
  },
4489
4724
  decode(input, length) {
@@ -4523,6 +4758,12 @@ export const LastSeenMessageEvent = {
4523
4758
  }
4524
4759
  message.timestamp_seconds = reader.uint32();
4525
4760
  continue;
4761
+ case 6:
4762
+ if (tag !== 48) {
4763
+ break;
4764
+ }
4765
+ message.badge_count = reader.int32();
4766
+ continue;
4526
4767
  }
4527
4768
  if ((tag & 7) === 4 || tag === 0) {
4528
4769
  break;
@@ -4538,6 +4779,7 @@ export const LastSeenMessageEvent = {
4538
4779
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
4539
4780
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
4540
4781
  timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
4782
+ badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
4541
4783
  };
4542
4784
  },
4543
4785
  toJSON(message) {
@@ -4557,6 +4799,9 @@ export const LastSeenMessageEvent = {
4557
4799
  if (message.timestamp_seconds !== 0) {
4558
4800
  obj.timestamp_seconds = Math.round(message.timestamp_seconds);
4559
4801
  }
4802
+ if (message.badge_count !== 0) {
4803
+ obj.badge_count = Math.round(message.badge_count);
4804
+ }
4560
4805
  return obj;
4561
4806
  },
4562
4807
  create(base) {
@@ -4569,6 +4814,7 @@ export const LastSeenMessageEvent = {
4569
4814
  message.message_id = object.message_id ?? "";
4570
4815
  message.mode = object.mode ?? 0;
4571
4816
  message.timestamp_seconds = object.timestamp_seconds ?? 0;
4817
+ message.badge_count = object.badge_count ?? 0;
4572
4818
  return message;
4573
4819
  },
4574
4820
  };
@@ -5498,13 +5744,14 @@ function createBaseChannelCreatedEvent() {
5498
5744
  clan_id: "",
5499
5745
  category_id: "",
5500
5746
  creator_id: "",
5501
- parrent_id: "",
5747
+ parent_id: "",
5502
5748
  channel_id: "",
5503
5749
  channel_label: "",
5504
5750
  channel_private: 0,
5505
5751
  channel_type: undefined,
5506
5752
  status: 0,
5507
5753
  app_url: "",
5754
+ clan_name: "",
5508
5755
  };
5509
5756
  }
5510
5757
  export const ChannelCreatedEvent = {
@@ -5518,8 +5765,8 @@ export const ChannelCreatedEvent = {
5518
5765
  if (message.creator_id !== "") {
5519
5766
  writer.uint32(26).string(message.creator_id);
5520
5767
  }
5521
- if (message.parrent_id !== "") {
5522
- writer.uint32(34).string(message.parrent_id);
5768
+ if (message.parent_id !== "") {
5769
+ writer.uint32(34).string(message.parent_id);
5523
5770
  }
5524
5771
  if (message.channel_id !== "") {
5525
5772
  writer.uint32(42).string(message.channel_id);
@@ -5539,6 +5786,9 @@ export const ChannelCreatedEvent = {
5539
5786
  if (message.app_url !== "") {
5540
5787
  writer.uint32(82).string(message.app_url);
5541
5788
  }
5789
+ if (message.clan_name !== "") {
5790
+ writer.uint32(90).string(message.clan_name);
5791
+ }
5542
5792
  return writer;
5543
5793
  },
5544
5794
  decode(input, length) {
@@ -5570,7 +5820,7 @@ export const ChannelCreatedEvent = {
5570
5820
  if (tag !== 34) {
5571
5821
  break;
5572
5822
  }
5573
- message.parrent_id = reader.string();
5823
+ message.parent_id = reader.string();
5574
5824
  continue;
5575
5825
  case 5:
5576
5826
  if (tag !== 42) {
@@ -5608,6 +5858,12 @@ export const ChannelCreatedEvent = {
5608
5858
  }
5609
5859
  message.app_url = reader.string();
5610
5860
  continue;
5861
+ case 11:
5862
+ if (tag !== 90) {
5863
+ break;
5864
+ }
5865
+ message.clan_name = reader.string();
5866
+ continue;
5611
5867
  }
5612
5868
  if ((tag & 7) === 4 || tag === 0) {
5613
5869
  break;
@@ -5621,13 +5877,14 @@ export const ChannelCreatedEvent = {
5621
5877
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
5622
5878
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
5623
5879
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
5624
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
5880
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
5625
5881
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
5626
5882
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
5627
5883
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
5628
5884
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
5629
5885
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
5630
5886
  app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
5887
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
5631
5888
  };
5632
5889
  },
5633
5890
  toJSON(message) {
@@ -5641,8 +5898,8 @@ export const ChannelCreatedEvent = {
5641
5898
  if (message.creator_id !== "") {
5642
5899
  obj.creator_id = message.creator_id;
5643
5900
  }
5644
- if (message.parrent_id !== "") {
5645
- obj.parrent_id = message.parrent_id;
5901
+ if (message.parent_id !== "") {
5902
+ obj.parent_id = message.parent_id;
5646
5903
  }
5647
5904
  if (message.channel_id !== "") {
5648
5905
  obj.channel_id = message.channel_id;
@@ -5662,6 +5919,9 @@ export const ChannelCreatedEvent = {
5662
5919
  if (message.app_url !== "") {
5663
5920
  obj.app_url = message.app_url;
5664
5921
  }
5922
+ if (message.clan_name !== "") {
5923
+ obj.clan_name = message.clan_name;
5924
+ }
5665
5925
  return obj;
5666
5926
  },
5667
5927
  create(base) {
@@ -5672,56 +5932,43 @@ export const ChannelCreatedEvent = {
5672
5932
  message.clan_id = object.clan_id ?? "";
5673
5933
  message.category_id = object.category_id ?? "";
5674
5934
  message.creator_id = object.creator_id ?? "";
5675
- message.parrent_id = object.parrent_id ?? "";
5935
+ message.parent_id = object.parent_id ?? "";
5676
5936
  message.channel_id = object.channel_id ?? "";
5677
5937
  message.channel_label = object.channel_label ?? "";
5678
5938
  message.channel_private = object.channel_private ?? 0;
5679
5939
  message.channel_type = object.channel_type ?? undefined;
5680
5940
  message.status = object.status ?? 0;
5681
5941
  message.app_url = object.app_url ?? "";
5942
+ message.clan_name = object.clan_name ?? "";
5682
5943
  return message;
5683
5944
  },
5684
5945
  };
5685
- function createBaseRoleEvent() {
5686
- return {
5687
- role: undefined,
5688
- status: 0,
5689
- user_id: "",
5690
- user_add_ids: [],
5691
- user_remove_ids: [],
5692
- active_permission_ids: [],
5693
- remove_permission_ids: [],
5694
- };
5946
+ function createBaseCategoryEvent() {
5947
+ return { creator_id: "", clan_id: "", category_name: "", id: "", status: 0 };
5695
5948
  }
5696
- export const RoleEvent = {
5949
+ export const CategoryEvent = {
5697
5950
  encode(message, writer = _m0.Writer.create()) {
5698
- if (message.role !== undefined) {
5699
- Role.encode(message.role, writer.uint32(10).fork()).ldelim();
5700
- }
5701
- if (message.status !== 0) {
5702
- writer.uint32(16).int32(message.status);
5703
- }
5704
- if (message.user_id !== "") {
5705
- writer.uint32(26).string(message.user_id);
5951
+ if (message.creator_id !== "") {
5952
+ writer.uint32(10).string(message.creator_id);
5706
5953
  }
5707
- for (const v of message.user_add_ids) {
5708
- writer.uint32(34).string(v);
5954
+ if (message.clan_id !== "") {
5955
+ writer.uint32(18).string(message.clan_id);
5709
5956
  }
5710
- for (const v of message.user_remove_ids) {
5711
- writer.uint32(42).string(v);
5957
+ if (message.category_name !== "") {
5958
+ writer.uint32(26).string(message.category_name);
5712
5959
  }
5713
- for (const v of message.active_permission_ids) {
5714
- writer.uint32(50).string(v);
5960
+ if (message.id !== "") {
5961
+ writer.uint32(34).string(message.id);
5715
5962
  }
5716
- for (const v of message.remove_permission_ids) {
5717
- writer.uint32(58).string(v);
5963
+ if (message.status !== 0) {
5964
+ writer.uint32(40).int32(message.status);
5718
5965
  }
5719
5966
  return writer;
5720
5967
  },
5721
5968
  decode(input, length) {
5722
5969
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5723
5970
  let end = length === undefined ? reader.len : reader.pos + length;
5724
- const message = createBaseRoleEvent();
5971
+ const message = createBaseCategoryEvent();
5725
5972
  while (reader.pos < end) {
5726
5973
  const tag = reader.uint32();
5727
5974
  switch (tag >>> 3) {
@@ -5729,43 +5976,31 @@ export const RoleEvent = {
5729
5976
  if (tag !== 10) {
5730
5977
  break;
5731
5978
  }
5732
- message.role = Role.decode(reader, reader.uint32());
5979
+ message.creator_id = reader.string();
5733
5980
  continue;
5734
5981
  case 2:
5735
- if (tag !== 16) {
5982
+ if (tag !== 18) {
5736
5983
  break;
5737
5984
  }
5738
- message.status = reader.int32();
5985
+ message.clan_id = reader.string();
5739
5986
  continue;
5740
5987
  case 3:
5741
5988
  if (tag !== 26) {
5742
5989
  break;
5743
5990
  }
5744
- message.user_id = reader.string();
5991
+ message.category_name = reader.string();
5745
5992
  continue;
5746
5993
  case 4:
5747
5994
  if (tag !== 34) {
5748
5995
  break;
5749
5996
  }
5750
- message.user_add_ids.push(reader.string());
5997
+ message.id = reader.string();
5751
5998
  continue;
5752
5999
  case 5:
5753
- if (tag !== 42) {
5754
- break;
5755
- }
5756
- message.user_remove_ids.push(reader.string());
5757
- continue;
5758
- case 6:
5759
- if (tag !== 50) {
5760
- break;
5761
- }
5762
- message.active_permission_ids.push(reader.string());
5763
- continue;
5764
- case 7:
5765
- if (tag !== 58) {
6000
+ if (tag !== 40) {
5766
6001
  break;
5767
6002
  }
5768
- message.remove_permission_ids.push(reader.string());
6003
+ message.status = reader.int32();
5769
6004
  continue;
5770
6005
  }
5771
6006
  if ((tag & 7) === 4 || tag === 0) {
@@ -5777,28 +6012,162 @@ export const RoleEvent = {
5777
6012
  },
5778
6013
  fromJSON(object) {
5779
6014
  return {
5780
- role: isSet(object.role) ? Role.fromJSON(object.role) : undefined,
6015
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
6016
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
6017
+ category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
6018
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
5781
6019
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
5782
- user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
5783
- user_add_ids: globalThis.Array.isArray(object?.user_add_ids)
5784
- ? object.user_add_ids.map((e) => globalThis.String(e))
5785
- : [],
5786
- user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids)
5787
- ? object.user_remove_ids.map((e) => globalThis.String(e))
5788
- : [],
5789
- active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids)
5790
- ? object.active_permission_ids.map((e) => globalThis.String(e))
5791
- : [],
5792
- remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids)
5793
- ? object.remove_permission_ids.map((e) => globalThis.String(e))
5794
- : [],
5795
6020
  };
5796
6021
  },
5797
6022
  toJSON(message) {
5798
6023
  const obj = {};
5799
- if (message.role !== undefined) {
5800
- obj.role = Role.toJSON(message.role);
5801
- }
6024
+ if (message.creator_id !== "") {
6025
+ obj.creator_id = message.creator_id;
6026
+ }
6027
+ if (message.clan_id !== "") {
6028
+ obj.clan_id = message.clan_id;
6029
+ }
6030
+ if (message.category_name !== "") {
6031
+ obj.category_name = message.category_name;
6032
+ }
6033
+ if (message.id !== "") {
6034
+ obj.id = message.id;
6035
+ }
6036
+ if (message.status !== 0) {
6037
+ obj.status = Math.round(message.status);
6038
+ }
6039
+ return obj;
6040
+ },
6041
+ create(base) {
6042
+ return CategoryEvent.fromPartial(base ?? {});
6043
+ },
6044
+ fromPartial(object) {
6045
+ const message = createBaseCategoryEvent();
6046
+ message.creator_id = object.creator_id ?? "";
6047
+ message.clan_id = object.clan_id ?? "";
6048
+ message.category_name = object.category_name ?? "";
6049
+ message.id = object.id ?? "";
6050
+ message.status = object.status ?? 0;
6051
+ return message;
6052
+ },
6053
+ };
6054
+ function createBaseRoleEvent() {
6055
+ return {
6056
+ role: undefined,
6057
+ status: 0,
6058
+ user_id: "",
6059
+ user_add_ids: [],
6060
+ user_remove_ids: [],
6061
+ active_permission_ids: [],
6062
+ remove_permission_ids: [],
6063
+ };
6064
+ }
6065
+ export const RoleEvent = {
6066
+ encode(message, writer = _m0.Writer.create()) {
6067
+ if (message.role !== undefined) {
6068
+ Role.encode(message.role, writer.uint32(10).fork()).ldelim();
6069
+ }
6070
+ if (message.status !== 0) {
6071
+ writer.uint32(16).int32(message.status);
6072
+ }
6073
+ if (message.user_id !== "") {
6074
+ writer.uint32(26).string(message.user_id);
6075
+ }
6076
+ for (const v of message.user_add_ids) {
6077
+ writer.uint32(34).string(v);
6078
+ }
6079
+ for (const v of message.user_remove_ids) {
6080
+ writer.uint32(42).string(v);
6081
+ }
6082
+ for (const v of message.active_permission_ids) {
6083
+ writer.uint32(50).string(v);
6084
+ }
6085
+ for (const v of message.remove_permission_ids) {
6086
+ writer.uint32(58).string(v);
6087
+ }
6088
+ return writer;
6089
+ },
6090
+ decode(input, length) {
6091
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6092
+ let end = length === undefined ? reader.len : reader.pos + length;
6093
+ const message = createBaseRoleEvent();
6094
+ while (reader.pos < end) {
6095
+ const tag = reader.uint32();
6096
+ switch (tag >>> 3) {
6097
+ case 1:
6098
+ if (tag !== 10) {
6099
+ break;
6100
+ }
6101
+ message.role = Role.decode(reader, reader.uint32());
6102
+ continue;
6103
+ case 2:
6104
+ if (tag !== 16) {
6105
+ break;
6106
+ }
6107
+ message.status = reader.int32();
6108
+ continue;
6109
+ case 3:
6110
+ if (tag !== 26) {
6111
+ break;
6112
+ }
6113
+ message.user_id = reader.string();
6114
+ continue;
6115
+ case 4:
6116
+ if (tag !== 34) {
6117
+ break;
6118
+ }
6119
+ message.user_add_ids.push(reader.string());
6120
+ continue;
6121
+ case 5:
6122
+ if (tag !== 42) {
6123
+ break;
6124
+ }
6125
+ message.user_remove_ids.push(reader.string());
6126
+ continue;
6127
+ case 6:
6128
+ if (tag !== 50) {
6129
+ break;
6130
+ }
6131
+ message.active_permission_ids.push(reader.string());
6132
+ continue;
6133
+ case 7:
6134
+ if (tag !== 58) {
6135
+ break;
6136
+ }
6137
+ message.remove_permission_ids.push(reader.string());
6138
+ continue;
6139
+ }
6140
+ if ((tag & 7) === 4 || tag === 0) {
6141
+ break;
6142
+ }
6143
+ reader.skipType(tag & 7);
6144
+ }
6145
+ return message;
6146
+ },
6147
+ fromJSON(object) {
6148
+ return {
6149
+ role: isSet(object.role) ? Role.fromJSON(object.role) : undefined,
6150
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
6151
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
6152
+ user_add_ids: globalThis.Array.isArray(object?.user_add_ids)
6153
+ ? object.user_add_ids.map((e) => globalThis.String(e))
6154
+ : [],
6155
+ user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids)
6156
+ ? object.user_remove_ids.map((e) => globalThis.String(e))
6157
+ : [],
6158
+ active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids)
6159
+ ? object.active_permission_ids.map((e) => globalThis.String(e))
6160
+ : [],
6161
+ remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids)
6162
+ ? object.remove_permission_ids.map((e) => globalThis.String(e))
6163
+ : [],
6164
+ };
6165
+ },
6166
+ toJSON(message) {
6167
+ const obj = {};
6168
+ if (message.role !== undefined) {
6169
+ obj.role = Role.toJSON(message.role);
6170
+ }
5802
6171
  if (message.status !== 0) {
5803
6172
  obj.status = Math.round(message.status);
5804
6173
  }
@@ -5835,7 +6204,7 @@ export const RoleEvent = {
5835
6204
  },
5836
6205
  };
5837
6206
  function createBaseChannelDeletedEvent() {
5838
- return { clan_id: "", category_id: "", parrent_id: "", channel_id: "", deletor: "" };
6207
+ return { clan_id: "", category_id: "", parent_id: "", channel_id: "", deletor: "" };
5839
6208
  }
5840
6209
  export const ChannelDeletedEvent = {
5841
6210
  encode(message, writer = _m0.Writer.create()) {
@@ -5845,8 +6214,8 @@ export const ChannelDeletedEvent = {
5845
6214
  if (message.category_id !== "") {
5846
6215
  writer.uint32(18).string(message.category_id);
5847
6216
  }
5848
- if (message.parrent_id !== "") {
5849
- writer.uint32(26).string(message.parrent_id);
6217
+ if (message.parent_id !== "") {
6218
+ writer.uint32(26).string(message.parent_id);
5850
6219
  }
5851
6220
  if (message.channel_id !== "") {
5852
6221
  writer.uint32(34).string(message.channel_id);
@@ -5879,7 +6248,7 @@ export const ChannelDeletedEvent = {
5879
6248
  if (tag !== 26) {
5880
6249
  break;
5881
6250
  }
5882
- message.parrent_id = reader.string();
6251
+ message.parent_id = reader.string();
5883
6252
  continue;
5884
6253
  case 4:
5885
6254
  if (tag !== 34) {
@@ -5905,7 +6274,7 @@ export const ChannelDeletedEvent = {
5905
6274
  return {
5906
6275
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
5907
6276
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
5908
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
6277
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
5909
6278
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
5910
6279
  deletor: isSet(object.deletor) ? globalThis.String(object.deletor) : "",
5911
6280
  };
@@ -5918,8 +6287,8 @@ export const ChannelDeletedEvent = {
5918
6287
  if (message.category_id !== "") {
5919
6288
  obj.category_id = message.category_id;
5920
6289
  }
5921
- if (message.parrent_id !== "") {
5922
- obj.parrent_id = message.parrent_id;
6290
+ if (message.parent_id !== "") {
6291
+ obj.parent_id = message.parent_id;
5923
6292
  }
5924
6293
  if (message.channel_id !== "") {
5925
6294
  obj.channel_id = message.channel_id;
@@ -5936,7 +6305,7 @@ export const ChannelDeletedEvent = {
5936
6305
  const message = createBaseChannelDeletedEvent();
5937
6306
  message.clan_id = object.clan_id ?? "";
5938
6307
  message.category_id = object.category_id ?? "";
5939
- message.parrent_id = object.parrent_id ?? "";
6308
+ message.parent_id = object.parent_id ?? "";
5940
6309
  message.channel_id = object.channel_id ?? "";
5941
6310
  message.deletor = object.deletor ?? "";
5942
6311
  return message;
@@ -6318,7 +6687,7 @@ function createBaseChannelUpdatedEvent() {
6318
6687
  clan_id: "",
6319
6688
  category_id: "",
6320
6689
  creator_id: "",
6321
- parrent_id: "",
6690
+ parent_id: "",
6322
6691
  channel_id: "",
6323
6692
  channel_label: "",
6324
6693
  channel_type: undefined,
@@ -6330,6 +6699,7 @@ function createBaseChannelUpdatedEvent() {
6330
6699
  e2ee: 0,
6331
6700
  topic: "",
6332
6701
  age_restricted: 0,
6702
+ active: 0,
6333
6703
  };
6334
6704
  }
6335
6705
  export const ChannelUpdatedEvent = {
@@ -6343,8 +6713,8 @@ export const ChannelUpdatedEvent = {
6343
6713
  if (message.creator_id !== "") {
6344
6714
  writer.uint32(26).string(message.creator_id);
6345
6715
  }
6346
- if (message.parrent_id !== "") {
6347
- writer.uint32(34).string(message.parrent_id);
6716
+ if (message.parent_id !== "") {
6717
+ writer.uint32(34).string(message.parent_id);
6348
6718
  }
6349
6719
  if (message.channel_id !== "") {
6350
6720
  writer.uint32(42).string(message.channel_id);
@@ -6379,6 +6749,9 @@ export const ChannelUpdatedEvent = {
6379
6749
  if (message.age_restricted !== 0) {
6380
6750
  writer.uint32(120).int32(message.age_restricted);
6381
6751
  }
6752
+ if (message.active !== 0) {
6753
+ writer.uint32(128).int32(message.active);
6754
+ }
6382
6755
  return writer;
6383
6756
  },
6384
6757
  decode(input, length) {
@@ -6410,7 +6783,7 @@ export const ChannelUpdatedEvent = {
6410
6783
  if (tag !== 34) {
6411
6784
  break;
6412
6785
  }
6413
- message.parrent_id = reader.string();
6786
+ message.parent_id = reader.string();
6414
6787
  continue;
6415
6788
  case 5:
6416
6789
  if (tag !== 42) {
@@ -6478,6 +6851,12 @@ export const ChannelUpdatedEvent = {
6478
6851
  }
6479
6852
  message.age_restricted = reader.int32();
6480
6853
  continue;
6854
+ case 16:
6855
+ if (tag !== 128) {
6856
+ break;
6857
+ }
6858
+ message.active = reader.int32();
6859
+ continue;
6481
6860
  }
6482
6861
  if ((tag & 7) === 4 || tag === 0) {
6483
6862
  break;
@@ -6491,7 +6870,7 @@ export const ChannelUpdatedEvent = {
6491
6870
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
6492
6871
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
6493
6872
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
6494
- parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
6873
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
6495
6874
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
6496
6875
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
6497
6876
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
@@ -6503,6 +6882,7 @@ export const ChannelUpdatedEvent = {
6503
6882
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
6504
6883
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
6505
6884
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
6885
+ active: isSet(object.active) ? globalThis.Number(object.active) : 0,
6506
6886
  };
6507
6887
  },
6508
6888
  toJSON(message) {
@@ -6516,8 +6896,8 @@ export const ChannelUpdatedEvent = {
6516
6896
  if (message.creator_id !== "") {
6517
6897
  obj.creator_id = message.creator_id;
6518
6898
  }
6519
- if (message.parrent_id !== "") {
6520
- obj.parrent_id = message.parrent_id;
6899
+ if (message.parent_id !== "") {
6900
+ obj.parent_id = message.parent_id;
6521
6901
  }
6522
6902
  if (message.channel_id !== "") {
6523
6903
  obj.channel_id = message.channel_id;
@@ -6552,6 +6932,9 @@ export const ChannelUpdatedEvent = {
6552
6932
  if (message.age_restricted !== 0) {
6553
6933
  obj.age_restricted = Math.round(message.age_restricted);
6554
6934
  }
6935
+ if (message.active !== 0) {
6936
+ obj.active = Math.round(message.active);
6937
+ }
6555
6938
  return obj;
6556
6939
  },
6557
6940
  create(base) {
@@ -6562,7 +6945,7 @@ export const ChannelUpdatedEvent = {
6562
6945
  message.clan_id = object.clan_id ?? "";
6563
6946
  message.category_id = object.category_id ?? "";
6564
6947
  message.creator_id = object.creator_id ?? "";
6565
- message.parrent_id = object.parrent_id ?? "";
6948
+ message.parent_id = object.parent_id ?? "";
6566
6949
  message.channel_id = object.channel_id ?? "";
6567
6950
  message.channel_label = object.channel_label ?? "";
6568
6951
  message.channel_type = object.channel_type ?? undefined;
@@ -6574,6 +6957,7 @@ export const ChannelUpdatedEvent = {
6574
6957
  message.e2ee = object.e2ee ?? 0;
6575
6958
  message.topic = object.topic ?? "";
6576
6959
  message.age_restricted = object.age_restricted ?? 0;
6960
+ message.active = object.active ?? 0;
6577
6961
  return message;
6578
6962
  },
6579
6963
  };
@@ -7368,7 +7752,7 @@ export const UserChannelAdded = {
7368
7752
  },
7369
7753
  };
7370
7754
  function createBaseUserChannelRemoved() {
7371
- return { channel_id: "", user_ids: [], channel_type: 0 };
7755
+ return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
7372
7756
  }
7373
7757
  export const UserChannelRemoved = {
7374
7758
  encode(message, writer = _m0.Writer.create()) {
@@ -7381,6 +7765,9 @@ export const UserChannelRemoved = {
7381
7765
  if (message.channel_type !== 0) {
7382
7766
  writer.uint32(24).int32(message.channel_type);
7383
7767
  }
7768
+ if (message.clan_id !== "") {
7769
+ writer.uint32(34).string(message.clan_id);
7770
+ }
7384
7771
  return writer;
7385
7772
  },
7386
7773
  decode(input, length) {
@@ -7408,6 +7795,12 @@ export const UserChannelRemoved = {
7408
7795
  }
7409
7796
  message.channel_type = reader.int32();
7410
7797
  continue;
7798
+ case 4:
7799
+ if (tag !== 34) {
7800
+ break;
7801
+ }
7802
+ message.clan_id = reader.string();
7803
+ continue;
7411
7804
  }
7412
7805
  if ((tag & 7) === 4 || tag === 0) {
7413
7806
  break;
@@ -7421,6 +7814,7 @@ export const UserChannelRemoved = {
7421
7814
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
7422
7815
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
7423
7816
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
7817
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
7424
7818
  };
7425
7819
  },
7426
7820
  toJSON(message) {
@@ -7434,6 +7828,9 @@ export const UserChannelRemoved = {
7434
7828
  if (message.channel_type !== 0) {
7435
7829
  obj.channel_type = Math.round(message.channel_type);
7436
7830
  }
7831
+ if (message.clan_id !== "") {
7832
+ obj.clan_id = message.clan_id;
7833
+ }
7437
7834
  return obj;
7438
7835
  },
7439
7836
  create(base) {
@@ -7444,6 +7841,7 @@ export const UserChannelRemoved = {
7444
7841
  message.channel_id = object.channel_id ?? "";
7445
7842
  message.user_ids = object.user_ids?.map((e) => e) || [];
7446
7843
  message.channel_type = object.channel_type ?? 0;
7844
+ message.clan_id = object.clan_id ?? "";
7447
7845
  return message;
7448
7846
  },
7449
7847
  };
@@ -7514,7 +7912,16 @@ export const UserClanRemoved = {
7514
7912
  },
7515
7913
  };
7516
7914
  function createBaseClanUpdatedEvent() {
7517
- return { clan_id: "", clan_name: "", clan_logo: "" };
7915
+ return {
7916
+ clan_id: "",
7917
+ clan_name: "",
7918
+ logo: "",
7919
+ banner: "",
7920
+ status: 0,
7921
+ is_onboarding: false,
7922
+ welcome_channel_id: "",
7923
+ onboarding_banner: "",
7924
+ };
7518
7925
  }
7519
7926
  export const ClanUpdatedEvent = {
7520
7927
  encode(message, writer = _m0.Writer.create()) {
@@ -7524,8 +7931,23 @@ export const ClanUpdatedEvent = {
7524
7931
  if (message.clan_name !== "") {
7525
7932
  writer.uint32(18).string(message.clan_name);
7526
7933
  }
7527
- if (message.clan_logo !== "") {
7528
- writer.uint32(26).string(message.clan_logo);
7934
+ if (message.logo !== "") {
7935
+ writer.uint32(26).string(message.logo);
7936
+ }
7937
+ if (message.banner !== "") {
7938
+ writer.uint32(34).string(message.banner);
7939
+ }
7940
+ if (message.status !== 0) {
7941
+ writer.uint32(40).int32(message.status);
7942
+ }
7943
+ if (message.is_onboarding !== false) {
7944
+ writer.uint32(48).bool(message.is_onboarding);
7945
+ }
7946
+ if (message.welcome_channel_id !== "") {
7947
+ writer.uint32(58).string(message.welcome_channel_id);
7948
+ }
7949
+ if (message.onboarding_banner !== "") {
7950
+ writer.uint32(66).string(message.onboarding_banner);
7529
7951
  }
7530
7952
  return writer;
7531
7953
  },
@@ -7552,7 +7974,37 @@ export const ClanUpdatedEvent = {
7552
7974
  if (tag !== 26) {
7553
7975
  break;
7554
7976
  }
7555
- message.clan_logo = reader.string();
7977
+ message.logo = reader.string();
7978
+ continue;
7979
+ case 4:
7980
+ if (tag !== 34) {
7981
+ break;
7982
+ }
7983
+ message.banner = reader.string();
7984
+ continue;
7985
+ case 5:
7986
+ if (tag !== 40) {
7987
+ break;
7988
+ }
7989
+ message.status = reader.int32();
7990
+ continue;
7991
+ case 6:
7992
+ if (tag !== 48) {
7993
+ break;
7994
+ }
7995
+ message.is_onboarding = reader.bool();
7996
+ continue;
7997
+ case 7:
7998
+ if (tag !== 58) {
7999
+ break;
8000
+ }
8001
+ message.welcome_channel_id = reader.string();
8002
+ continue;
8003
+ case 8:
8004
+ if (tag !== 66) {
8005
+ break;
8006
+ }
8007
+ message.onboarding_banner = reader.string();
7556
8008
  continue;
7557
8009
  }
7558
8010
  if ((tag & 7) === 4 || tag === 0) {
@@ -7566,7 +8018,12 @@ export const ClanUpdatedEvent = {
7566
8018
  return {
7567
8019
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
7568
8020
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
7569
- clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
8021
+ logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
8022
+ banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
8023
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
8024
+ is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
8025
+ welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
8026
+ onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
7570
8027
  };
7571
8028
  },
7572
8029
  toJSON(message) {
@@ -7577,8 +8034,23 @@ export const ClanUpdatedEvent = {
7577
8034
  if (message.clan_name !== "") {
7578
8035
  obj.clan_name = message.clan_name;
7579
8036
  }
7580
- if (message.clan_logo !== "") {
7581
- obj.clan_logo = message.clan_logo;
8037
+ if (message.logo !== "") {
8038
+ obj.logo = message.logo;
8039
+ }
8040
+ if (message.banner !== "") {
8041
+ obj.banner = message.banner;
8042
+ }
8043
+ if (message.status !== 0) {
8044
+ obj.status = Math.round(message.status);
8045
+ }
8046
+ if (message.is_onboarding !== false) {
8047
+ obj.is_onboarding = message.is_onboarding;
8048
+ }
8049
+ if (message.welcome_channel_id !== "") {
8050
+ obj.welcome_channel_id = message.welcome_channel_id;
8051
+ }
8052
+ if (message.onboarding_banner !== "") {
8053
+ obj.onboarding_banner = message.onboarding_banner;
7582
8054
  }
7583
8055
  return obj;
7584
8056
  },
@@ -7589,7 +8061,12 @@ export const ClanUpdatedEvent = {
7589
8061
  const message = createBaseClanUpdatedEvent();
7590
8062
  message.clan_id = object.clan_id ?? "";
7591
8063
  message.clan_name = object.clan_name ?? "";
7592
- message.clan_logo = object.clan_logo ?? "";
8064
+ message.logo = object.logo ?? "";
8065
+ message.banner = object.banner ?? "";
8066
+ message.status = object.status ?? 0;
8067
+ message.is_onboarding = object.is_onboarding ?? false;
8068
+ message.welcome_channel_id = object.welcome_channel_id ?? "";
8069
+ message.onboarding_banner = object.onboarding_banner ?? "";
7593
8070
  return message;
7594
8071
  },
7595
8072
  };
@@ -7844,6 +8321,10 @@ function createBaseUserProfileRedis() {
7844
8321
  online: false,
7845
8322
  metadata: "",
7846
8323
  is_disabled: false,
8324
+ joined_clans: [],
8325
+ pubkey: "",
8326
+ mezon_id: "",
8327
+ app_token: "",
7847
8328
  };
7848
8329
  }
7849
8330
  export const UserProfileRedis = {
@@ -7881,6 +8362,18 @@ export const UserProfileRedis = {
7881
8362
  if (message.is_disabled !== false) {
7882
8363
  writer.uint32(88).bool(message.is_disabled);
7883
8364
  }
8365
+ for (const v of message.joined_clans) {
8366
+ writer.uint32(98).string(v);
8367
+ }
8368
+ if (message.pubkey !== "") {
8369
+ writer.uint32(106).string(message.pubkey);
8370
+ }
8371
+ if (message.mezon_id !== "") {
8372
+ writer.uint32(114).string(message.mezon_id);
8373
+ }
8374
+ if (message.app_token !== "") {
8375
+ writer.uint32(122).string(message.app_token);
8376
+ }
7884
8377
  return writer;
7885
8378
  },
7886
8379
  decode(input, length) {
@@ -7956,6 +8449,30 @@ export const UserProfileRedis = {
7956
8449
  }
7957
8450
  message.is_disabled = reader.bool();
7958
8451
  continue;
8452
+ case 12:
8453
+ if (tag !== 98) {
8454
+ break;
8455
+ }
8456
+ message.joined_clans.push(reader.string());
8457
+ continue;
8458
+ case 13:
8459
+ if (tag !== 106) {
8460
+ break;
8461
+ }
8462
+ message.pubkey = reader.string();
8463
+ continue;
8464
+ case 14:
8465
+ if (tag !== 114) {
8466
+ break;
8467
+ }
8468
+ message.mezon_id = reader.string();
8469
+ continue;
8470
+ case 15:
8471
+ if (tag !== 122) {
8472
+ break;
8473
+ }
8474
+ message.app_token = reader.string();
8475
+ continue;
7959
8476
  }
7960
8477
  if ((tag & 7) === 4 || tag === 0) {
7961
8478
  break;
@@ -7979,6 +8496,12 @@ export const UserProfileRedis = {
7979
8496
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
7980
8497
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
7981
8498
  is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
8499
+ joined_clans: globalThis.Array.isArray(object?.joined_clans)
8500
+ ? object.joined_clans.map((e) => globalThis.String(e))
8501
+ : [],
8502
+ pubkey: isSet(object.pubkey) ? globalThis.String(object.pubkey) : "",
8503
+ mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
8504
+ app_token: isSet(object.app_token) ? globalThis.String(object.app_token) : "",
7982
8505
  };
7983
8506
  },
7984
8507
  toJSON(message) {
@@ -8016,6 +8539,18 @@ export const UserProfileRedis = {
8016
8539
  if (message.is_disabled !== false) {
8017
8540
  obj.is_disabled = message.is_disabled;
8018
8541
  }
8542
+ if (message.joined_clans?.length) {
8543
+ obj.joined_clans = message.joined_clans;
8544
+ }
8545
+ if (message.pubkey !== "") {
8546
+ obj.pubkey = message.pubkey;
8547
+ }
8548
+ if (message.mezon_id !== "") {
8549
+ obj.mezon_id = message.mezon_id;
8550
+ }
8551
+ if (message.app_token !== "") {
8552
+ obj.app_token = message.app_token;
8553
+ }
8019
8554
  return obj;
8020
8555
  },
8021
8556
  create(base) {
@@ -8034,6 +8569,10 @@ export const UserProfileRedis = {
8034
8569
  message.online = object.online ?? false;
8035
8570
  message.metadata = object.metadata ?? "";
8036
8571
  message.is_disabled = object.is_disabled ?? false;
8572
+ message.joined_clans = object.joined_clans?.map((e) => e) || [];
8573
+ message.pubkey = object.pubkey ?? "";
8574
+ message.mezon_id = object.mezon_id ?? "";
8575
+ message.app_token = object.app_token ?? "";
8037
8576
  return message;
8038
8577
  },
8039
8578
  };
@@ -9100,7 +9639,15 @@ export const DropdownBoxSelected = {
9100
9639
  },
9101
9640
  };
9102
9641
  function createBaseSdTopicEvent() {
9103
- return { id: "", clan_id: "", channel_id: "", message_id: "" };
9642
+ return {
9643
+ id: "",
9644
+ clan_id: "",
9645
+ channel_id: "",
9646
+ message_id: "",
9647
+ user_id: "",
9648
+ last_sent_message: undefined,
9649
+ message: undefined,
9650
+ };
9104
9651
  }
9105
9652
  export const SdTopicEvent = {
9106
9653
  encode(message, writer = _m0.Writer.create()) {
@@ -9116,6 +9663,15 @@ export const SdTopicEvent = {
9116
9663
  if (message.message_id !== "") {
9117
9664
  writer.uint32(34).string(message.message_id);
9118
9665
  }
9666
+ if (message.user_id !== "") {
9667
+ writer.uint32(42).string(message.user_id);
9668
+ }
9669
+ if (message.last_sent_message !== undefined) {
9670
+ ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(50).fork()).ldelim();
9671
+ }
9672
+ if (message.message !== undefined) {
9673
+ ChannelMessage.encode(message.message, writer.uint32(58).fork()).ldelim();
9674
+ }
9119
9675
  return writer;
9120
9676
  },
9121
9677
  decode(input, length) {
@@ -9149,6 +9705,24 @@ export const SdTopicEvent = {
9149
9705
  }
9150
9706
  message.message_id = reader.string();
9151
9707
  continue;
9708
+ case 5:
9709
+ if (tag !== 42) {
9710
+ break;
9711
+ }
9712
+ message.user_id = reader.string();
9713
+ continue;
9714
+ case 6:
9715
+ if (tag !== 50) {
9716
+ break;
9717
+ }
9718
+ message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
9719
+ continue;
9720
+ case 7:
9721
+ if (tag !== 58) {
9722
+ break;
9723
+ }
9724
+ message.message = ChannelMessage.decode(reader, reader.uint32());
9725
+ continue;
9152
9726
  }
9153
9727
  if ((tag & 7) === 4 || tag === 0) {
9154
9728
  break;
@@ -9163,6 +9737,11 @@ export const SdTopicEvent = {
9163
9737
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
9164
9738
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
9165
9739
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
9740
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
9741
+ last_sent_message: isSet(object.last_sent_message)
9742
+ ? ChannelMessageHeader.fromJSON(object.last_sent_message)
9743
+ : undefined,
9744
+ message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
9166
9745
  };
9167
9746
  },
9168
9747
  toJSON(message) {
@@ -9179,6 +9758,15 @@ export const SdTopicEvent = {
9179
9758
  if (message.message_id !== "") {
9180
9759
  obj.message_id = message.message_id;
9181
9760
  }
9761
+ if (message.user_id !== "") {
9762
+ obj.user_id = message.user_id;
9763
+ }
9764
+ if (message.last_sent_message !== undefined) {
9765
+ obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
9766
+ }
9767
+ if (message.message !== undefined) {
9768
+ obj.message = ChannelMessage.toJSON(message.message);
9769
+ }
9182
9770
  return obj;
9183
9771
  },
9184
9772
  create(base) {
@@ -9190,6 +9778,13 @@ export const SdTopicEvent = {
9190
9778
  message.clan_id = object.clan_id ?? "";
9191
9779
  message.channel_id = object.channel_id ?? "";
9192
9780
  message.message_id = object.message_id ?? "";
9781
+ message.user_id = object.user_id ?? "";
9782
+ message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
9783
+ ? ChannelMessageHeader.fromPartial(object.last_sent_message)
9784
+ : undefined;
9785
+ message.message = (object.message !== undefined && object.message !== null)
9786
+ ? ChannelMessage.fromPartial(object.message)
9787
+ : undefined;
9193
9788
  return message;
9194
9789
  },
9195
9790
  };
@@ -9367,6 +9962,180 @@ export const UserStatusEvent = {
9367
9962
  return message;
9368
9963
  },
9369
9964
  };
9965
+ function createBaseJoinChannelAppData() {
9966
+ return { user_id: "", username: "", hash: "" };
9967
+ }
9968
+ export const JoinChannelAppData = {
9969
+ encode(message, writer = _m0.Writer.create()) {
9970
+ if (message.user_id !== "") {
9971
+ writer.uint32(10).string(message.user_id);
9972
+ }
9973
+ if (message.username !== "") {
9974
+ writer.uint32(18).string(message.username);
9975
+ }
9976
+ if (message.hash !== "") {
9977
+ writer.uint32(26).string(message.hash);
9978
+ }
9979
+ return writer;
9980
+ },
9981
+ decode(input, length) {
9982
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
9983
+ let end = length === undefined ? reader.len : reader.pos + length;
9984
+ const message = createBaseJoinChannelAppData();
9985
+ while (reader.pos < end) {
9986
+ const tag = reader.uint32();
9987
+ switch (tag >>> 3) {
9988
+ case 1:
9989
+ if (tag !== 10) {
9990
+ break;
9991
+ }
9992
+ message.user_id = reader.string();
9993
+ continue;
9994
+ case 2:
9995
+ if (tag !== 18) {
9996
+ break;
9997
+ }
9998
+ message.username = reader.string();
9999
+ continue;
10000
+ case 3:
10001
+ if (tag !== 26) {
10002
+ break;
10003
+ }
10004
+ message.hash = reader.string();
10005
+ continue;
10006
+ }
10007
+ if ((tag & 7) === 4 || tag === 0) {
10008
+ break;
10009
+ }
10010
+ reader.skipType(tag & 7);
10011
+ }
10012
+ return message;
10013
+ },
10014
+ fromJSON(object) {
10015
+ return {
10016
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
10017
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
10018
+ hash: isSet(object.hash) ? globalThis.String(object.hash) : "",
10019
+ };
10020
+ },
10021
+ toJSON(message) {
10022
+ const obj = {};
10023
+ if (message.user_id !== "") {
10024
+ obj.user_id = message.user_id;
10025
+ }
10026
+ if (message.username !== "") {
10027
+ obj.username = message.username;
10028
+ }
10029
+ if (message.hash !== "") {
10030
+ obj.hash = message.hash;
10031
+ }
10032
+ return obj;
10033
+ },
10034
+ create(base) {
10035
+ return JoinChannelAppData.fromPartial(base ?? {});
10036
+ },
10037
+ fromPartial(object) {
10038
+ const message = createBaseJoinChannelAppData();
10039
+ message.user_id = object.user_id ?? "";
10040
+ message.username = object.username ?? "";
10041
+ message.hash = object.hash ?? "";
10042
+ return message;
10043
+ },
10044
+ };
10045
+ function createBaseUnpinMessageEvent() {
10046
+ return { id: "", message_id: "", channel_id: "", clan_id: "" };
10047
+ }
10048
+ export const UnpinMessageEvent = {
10049
+ encode(message, writer = _m0.Writer.create()) {
10050
+ if (message.id !== "") {
10051
+ writer.uint32(10).string(message.id);
10052
+ }
10053
+ if (message.message_id !== "") {
10054
+ writer.uint32(18).string(message.message_id);
10055
+ }
10056
+ if (message.channel_id !== "") {
10057
+ writer.uint32(26).string(message.channel_id);
10058
+ }
10059
+ if (message.clan_id !== "") {
10060
+ writer.uint32(34).string(message.clan_id);
10061
+ }
10062
+ return writer;
10063
+ },
10064
+ decode(input, length) {
10065
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
10066
+ let end = length === undefined ? reader.len : reader.pos + length;
10067
+ const message = createBaseUnpinMessageEvent();
10068
+ while (reader.pos < end) {
10069
+ const tag = reader.uint32();
10070
+ switch (tag >>> 3) {
10071
+ case 1:
10072
+ if (tag !== 10) {
10073
+ break;
10074
+ }
10075
+ message.id = reader.string();
10076
+ continue;
10077
+ case 2:
10078
+ if (tag !== 18) {
10079
+ break;
10080
+ }
10081
+ message.message_id = reader.string();
10082
+ continue;
10083
+ case 3:
10084
+ if (tag !== 26) {
10085
+ break;
10086
+ }
10087
+ message.channel_id = reader.string();
10088
+ continue;
10089
+ case 4:
10090
+ if (tag !== 34) {
10091
+ break;
10092
+ }
10093
+ message.clan_id = reader.string();
10094
+ continue;
10095
+ }
10096
+ if ((tag & 7) === 4 || tag === 0) {
10097
+ break;
10098
+ }
10099
+ reader.skipType(tag & 7);
10100
+ }
10101
+ return message;
10102
+ },
10103
+ fromJSON(object) {
10104
+ return {
10105
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
10106
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
10107
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
10108
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
10109
+ };
10110
+ },
10111
+ toJSON(message) {
10112
+ const obj = {};
10113
+ if (message.id !== "") {
10114
+ obj.id = message.id;
10115
+ }
10116
+ if (message.message_id !== "") {
10117
+ obj.message_id = message.message_id;
10118
+ }
10119
+ if (message.channel_id !== "") {
10120
+ obj.channel_id = message.channel_id;
10121
+ }
10122
+ if (message.clan_id !== "") {
10123
+ obj.clan_id = message.clan_id;
10124
+ }
10125
+ return obj;
10126
+ },
10127
+ create(base) {
10128
+ return UnpinMessageEvent.fromPartial(base ?? {});
10129
+ },
10130
+ fromPartial(object) {
10131
+ const message = createBaseUnpinMessageEvent();
10132
+ message.id = object.id ?? "";
10133
+ message.message_id = object.message_id ?? "";
10134
+ message.channel_id = object.channel_id ?? "";
10135
+ message.clan_id = object.clan_id ?? "";
10136
+ return message;
10137
+ },
10138
+ };
9370
10139
  function toTimestamp(date) {
9371
10140
  const seconds = Math.trunc(date.getTime() / 1_000);
9372
10141
  const nanos = (date.getTime() % 1_000) * 1_000_000;