mezon-sdk 2.8.18 → 2.8.20

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 (44) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/api/api.d.ts +870 -2203
  3. package/dist/cjs/api/api.js +10052 -10813
  4. package/dist/cjs/api/api.js.map +1 -1
  5. package/dist/cjs/interfaces/client.d.ts +15 -2
  6. package/dist/cjs/interfaces/client.js.map +1 -1
  7. package/dist/cjs/mezon-client/client/MezonClient.d.ts +4 -4
  8. package/dist/cjs/mezon-client/client/MezonClient.js +49 -13
  9. package/dist/cjs/mezon-client/client/MezonClient.js.map +1 -1
  10. package/dist/cjs/mezon-client/manager/session_manager.d.ts +1 -1
  11. package/dist/cjs/mezon-client/manager/session_manager.js +2 -1
  12. package/dist/cjs/mezon-client/manager/session_manager.js.map +1 -1
  13. package/dist/cjs/mezon-client/structures/Clan.d.ts +1 -1
  14. package/dist/cjs/mezon-client/structures/User.d.ts +1 -1
  15. package/dist/cjs/mezon-client/structures/User.js +26 -17
  16. package/dist/cjs/mezon-client/structures/User.js.map +1 -1
  17. package/dist/cjs/rtapi/realtime.d.ts +2420 -2117
  18. package/dist/cjs/rtapi/realtime.js +387 -45
  19. package/dist/cjs/rtapi/realtime.js.map +1 -1
  20. package/dist/cjs/sqlite/MessageDatabase.js +6 -5
  21. package/dist/cjs/sqlite/MessageDatabase.js.map +1 -1
  22. package/dist/esm/api/api.d.ts +870 -2203
  23. package/dist/esm/api/api.js +3033 -3776
  24. package/dist/esm/api/api.js.map +1 -1
  25. package/dist/esm/interfaces/client.d.ts +15 -2
  26. package/dist/esm/interfaces/client.js.map +1 -1
  27. package/dist/esm/mezon-client/client/MezonClient.d.ts +4 -4
  28. package/dist/esm/mezon-client/client/MezonClient.js +57 -15
  29. package/dist/esm/mezon-client/client/MezonClient.js.map +1 -1
  30. package/dist/esm/mezon-client/manager/session_manager.d.ts +1 -1
  31. package/dist/esm/mezon-client/manager/session_manager.js +2 -1
  32. package/dist/esm/mezon-client/manager/session_manager.js.map +1 -1
  33. package/dist/esm/mezon-client/structures/Clan.d.ts +1 -1
  34. package/dist/esm/mezon-client/structures/User.d.ts +1 -1
  35. package/dist/esm/mezon-client/structures/User.js +32 -17
  36. package/dist/esm/mezon-client/structures/User.js.map +1 -1
  37. package/dist/esm/rtapi/realtime.d.ts +2420 -2117
  38. package/dist/esm/rtapi/realtime.js +378 -38
  39. package/dist/esm/rtapi/realtime.js.map +1 -1
  40. package/dist/esm/sqlite/MessageDatabase.js +6 -5
  41. package/dist/esm/sqlite/MessageDatabase.js.map +1 -1
  42. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +2 -2
@@ -5,7 +5,7 @@
5
5
  // source: rtapi/realtime.proto
6
6
  /* eslint-disable */
7
7
  import _m0 from "protobufjs/minimal";
8
- import { AllUsersAddChannelRequest, AllUsersAddChannelResponse, CategoryDesc, CategoryDescList, ChannelAttachmentList, ChannelDescList, ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, ChannelMessageList, ChannelSettingListRequest, ChannelSettingListResponse, ChannelUserList, ClanDescList, ClanUserList, CreateEventRequest, DefaultNotificationCategory, EmojiListedResponse, EmojiRecentList, EventList, FriendList, GiveCoffeeEvent, HashtagDmList, HashtagDmListRequest, ListChannelAppsRequest, ListChannelAppsResponse, ListChannelAttachmentRequest, ListChannelDescsRequest, ListChannelDetailRequest, ListChannelMessagesRequest, ListChannelUsersRequest, ListClanDescRequest, ListClanUsersRequest, ListClanWebhookRequest, ListClanWebhookResponse, ListEventsRequest, ListFavoriteChannelRequest, ListFavoriteChannelResponse, ListFriendsRequest, ListNotificationsRequest, ListPermissionOfUsersRequest, ListPermissionsRequest, ListRoleUsersRequest, ListThreadRequest, ListUserActivity, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, NotificationChannel, NotificationChannelCategorySettingList, NotificationClan, NotificationList, NotificationSetting, NotificationUserChannel, NotifiReactMessage, PermissionList, PermissionRoleChannelListEventRequest, PermissionRoleChannelListEventResponse, PermissionUpdate, Role, RoleList, RoleListEventRequest, RoleListEventResponse, RoleUserList, Rpc, SearchThreadRequest, StickerListedResponse, StreamingChannelUserList, TokenSentEvent, UserActivity, UserPermissionInChannelListRequest, UserPermissionInChannelListResponse, VoiceChannelUserList, Webhook, WebhookListRequest, WebhookListResponse, } from "../api/api";
8
+ import { AllUsersAddChannelRequest, AllUsersAddChannelResponse, CategoryDesc, CategoryDescList, ChannelAttachmentList, ChannelDescList, ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, ChannelMessageList, ChannelSettingListRequest, ChannelSettingListResponse, ChannelUserList, ClanDescList, ClanUserList, CreateEventRequest, DefaultNotificationCategory, EmojiListedResponse, EmojiRecentList, EventList, FriendList, GiveCoffeeEvent, HashtagDmList, HashtagDmListRequest, ListChannelAppsRequest, ListChannelAppsResponse, ListChannelAttachmentRequest, ListChannelDescsRequest, ListChannelDetailRequest, ListChannelMessagesRequest, ListChannelUsersRequest, ListClanDescRequest, ListClanUnreadMsgIndicatorRequest, ListClanUnreadMsgIndicatorResponse, ListClanUsersRequest, ListClanWebhookRequest, ListClanWebhookResponse, ListEventsRequest, ListFavoriteChannelRequest, ListFavoriteChannelResponse, ListFriendsRequest, ListNotificationsRequest, ListPermissionOfUsersRequest, ListPermissionsRequest, ListRoleUsersRequest, ListThreadRequest, ListUserActivity, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, NotificationChannel, NotificationChannelCategorySettingList, NotificationClan, NotificationList, NotificationSetting, NotificationUserChannel, NotifiReactMessage, PermissionList, PermissionRoleChannelListEventRequest, PermissionRoleChannelListEventResponse, PermissionUpdate, Role, RoleList, RoleListEventRequest, RoleListEventResponse, RoleUserList, Rpc, SearchThreadRequest, StickerListedResponse, StreamingChannelUserList, TokenSentEvent, UserActivity, UserPermissionInChannelListRequest, UserPermissionInChannelListResponse, VoiceChannelUserList, Webhook, WebhookListRequest, WebhookListResponse, } from "../api/api";
9
9
  import { Timestamp } from "../google/protobuf/timestamp";
10
10
  import { BoolValue, Int32Value, StringValue } from "../google/protobuf/wrappers";
11
11
  export const protobufPackage = "mezon.realtime";
@@ -173,6 +173,8 @@ function createBaseEnvelope() {
173
173
  quick_menu_event: undefined,
174
174
  un_block_friend: undefined,
175
175
  meet_participant_event: undefined,
176
+ transfer_ownership_event: undefined,
177
+ add_friend: undefined,
176
178
  };
177
179
  }
178
180
  export const Envelope = {
@@ -436,6 +438,12 @@ export const Envelope = {
436
438
  if (message.meet_participant_event !== undefined) {
437
439
  MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
438
440
  }
441
+ if (message.transfer_ownership_event !== undefined) {
442
+ TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
443
+ }
444
+ if (message.add_friend !== undefined) {
445
+ AddFriend.encode(message.add_friend, writer.uint32(706).fork()).ldelim();
446
+ }
439
447
  return writer;
440
448
  },
441
449
  decode(input, length) {
@@ -961,6 +969,18 @@ export const Envelope = {
961
969
  }
962
970
  message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
963
971
  continue;
972
+ case 87:
973
+ if (tag !== 698) {
974
+ break;
975
+ }
976
+ message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
977
+ continue;
978
+ case 88:
979
+ if (tag !== 706) {
980
+ break;
981
+ }
982
+ message.add_friend = AddFriend.decode(reader, reader.uint32());
983
+ continue;
964
984
  }
965
985
  if ((tag & 7) === 4 || tag === 0) {
966
986
  break;
@@ -1167,6 +1187,10 @@ export const Envelope = {
1167
1187
  meet_participant_event: isSet(object.meet_participant_event)
1168
1188
  ? MeetParticipantEvent.fromJSON(object.meet_participant_event)
1169
1189
  : undefined,
1190
+ transfer_ownership_event: isSet(object.transfer_ownership_event)
1191
+ ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event)
1192
+ : undefined,
1193
+ add_friend: isSet(object.add_friend) ? AddFriend.fromJSON(object.add_friend) : undefined,
1170
1194
  };
1171
1195
  },
1172
1196
  toJSON(message) {
@@ -1429,6 +1453,12 @@ export const Envelope = {
1429
1453
  if (message.meet_participant_event !== undefined) {
1430
1454
  obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
1431
1455
  }
1456
+ if (message.transfer_ownership_event !== undefined) {
1457
+ obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
1458
+ }
1459
+ if (message.add_friend !== undefined) {
1460
+ obj.add_friend = AddFriend.toJSON(message.add_friend);
1461
+ }
1432
1462
  return obj;
1433
1463
  },
1434
1464
  create(base) {
@@ -1712,6 +1742,13 @@ export const Envelope = {
1712
1742
  (object.meet_participant_event !== undefined && object.meet_participant_event !== null)
1713
1743
  ? MeetParticipantEvent.fromPartial(object.meet_participant_event)
1714
1744
  : undefined;
1745
+ message.transfer_ownership_event =
1746
+ (object.transfer_ownership_event !== undefined && object.transfer_ownership_event !== null)
1747
+ ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event)
1748
+ : undefined;
1749
+ message.add_friend = (object.add_friend !== undefined && object.add_friend !== null)
1750
+ ? AddFriend.fromPartial(object.add_friend)
1751
+ : undefined;
1715
1752
  return message;
1716
1753
  },
1717
1754
  };
@@ -4780,6 +4817,100 @@ export const Notifications = {
4780
4817
  return message;
4781
4818
  },
4782
4819
  };
4820
+ function createBaseAddFriend() {
4821
+ return { user_id: "", username: "", display_name: "", avatar: "" };
4822
+ }
4823
+ export const AddFriend = {
4824
+ encode(message, writer = _m0.Writer.create()) {
4825
+ if (message.user_id !== "") {
4826
+ writer.uint32(10).string(message.user_id);
4827
+ }
4828
+ if (message.username !== "") {
4829
+ writer.uint32(18).string(message.username);
4830
+ }
4831
+ if (message.display_name !== "") {
4832
+ writer.uint32(26).string(message.display_name);
4833
+ }
4834
+ if (message.avatar !== "") {
4835
+ writer.uint32(34).string(message.avatar);
4836
+ }
4837
+ return writer;
4838
+ },
4839
+ decode(input, length) {
4840
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4841
+ let end = length === undefined ? reader.len : reader.pos + length;
4842
+ const message = createBaseAddFriend();
4843
+ while (reader.pos < end) {
4844
+ const tag = reader.uint32();
4845
+ switch (tag >>> 3) {
4846
+ case 1:
4847
+ if (tag !== 10) {
4848
+ break;
4849
+ }
4850
+ message.user_id = reader.string();
4851
+ continue;
4852
+ case 2:
4853
+ if (tag !== 18) {
4854
+ break;
4855
+ }
4856
+ message.username = reader.string();
4857
+ continue;
4858
+ case 3:
4859
+ if (tag !== 26) {
4860
+ break;
4861
+ }
4862
+ message.display_name = reader.string();
4863
+ continue;
4864
+ case 4:
4865
+ if (tag !== 34) {
4866
+ break;
4867
+ }
4868
+ message.avatar = reader.string();
4869
+ continue;
4870
+ }
4871
+ if ((tag & 7) === 4 || tag === 0) {
4872
+ break;
4873
+ }
4874
+ reader.skipType(tag & 7);
4875
+ }
4876
+ return message;
4877
+ },
4878
+ fromJSON(object) {
4879
+ return {
4880
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
4881
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
4882
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
4883
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
4884
+ };
4885
+ },
4886
+ toJSON(message) {
4887
+ const obj = {};
4888
+ if (message.user_id !== "") {
4889
+ obj.user_id = message.user_id;
4890
+ }
4891
+ if (message.username !== "") {
4892
+ obj.username = message.username;
4893
+ }
4894
+ if (message.display_name !== "") {
4895
+ obj.display_name = message.display_name;
4896
+ }
4897
+ if (message.avatar !== "") {
4898
+ obj.avatar = message.avatar;
4899
+ }
4900
+ return obj;
4901
+ },
4902
+ create(base) {
4903
+ return AddFriend.fromPartial(base ?? {});
4904
+ },
4905
+ fromPartial(object) {
4906
+ const message = createBaseAddFriend();
4907
+ message.user_id = object.user_id ?? "";
4908
+ message.username = object.username ?? "";
4909
+ message.display_name = object.display_name ?? "";
4910
+ message.avatar = object.avatar ?? "";
4911
+ return message;
4912
+ },
4913
+ };
4783
4914
  function createBaseRemoveFriend() {
4784
4915
  return { user_id: "" };
4785
4916
  }
@@ -5574,6 +5705,7 @@ function createBaseMessageTypingEvent() {
5574
5705
  is_public: false,
5575
5706
  sender_username: "",
5576
5707
  sender_display_name: "",
5708
+ topic_id: "",
5577
5709
  };
5578
5710
  }
5579
5711
  export const MessageTypingEvent = {
@@ -5599,6 +5731,9 @@ export const MessageTypingEvent = {
5599
5731
  if (message.sender_display_name !== "") {
5600
5732
  writer.uint32(58).string(message.sender_display_name);
5601
5733
  }
5734
+ if (message.topic_id !== "") {
5735
+ writer.uint32(66).string(message.topic_id);
5736
+ }
5602
5737
  return writer;
5603
5738
  },
5604
5739
  decode(input, length) {
@@ -5650,6 +5785,12 @@ export const MessageTypingEvent = {
5650
5785
  }
5651
5786
  message.sender_display_name = reader.string();
5652
5787
  continue;
5788
+ case 8:
5789
+ if (tag !== 66) {
5790
+ break;
5791
+ }
5792
+ message.topic_id = reader.string();
5793
+ continue;
5653
5794
  }
5654
5795
  if ((tag & 7) === 4 || tag === 0) {
5655
5796
  break;
@@ -5667,6 +5808,7 @@ export const MessageTypingEvent = {
5667
5808
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
5668
5809
  sender_username: isSet(object.sender_username) ? globalThis.String(object.sender_username) : "",
5669
5810
  sender_display_name: isSet(object.sender_display_name) ? globalThis.String(object.sender_display_name) : "",
5811
+ topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
5670
5812
  };
5671
5813
  },
5672
5814
  toJSON(message) {
@@ -5692,6 +5834,9 @@ export const MessageTypingEvent = {
5692
5834
  if (message.sender_display_name !== "") {
5693
5835
  obj.sender_display_name = message.sender_display_name;
5694
5836
  }
5837
+ if (message.topic_id !== "") {
5838
+ obj.topic_id = message.topic_id;
5839
+ }
5695
5840
  return obj;
5696
5841
  },
5697
5842
  create(base) {
@@ -5706,6 +5851,7 @@ export const MessageTypingEvent = {
5706
5851
  message.is_public = object.is_public ?? false;
5707
5852
  message.sender_username = object.sender_username ?? "";
5708
5853
  message.sender_display_name = object.sender_display_name ?? "";
5854
+ message.topic_id = object.topic_id ?? "";
5709
5855
  return message;
5710
5856
  },
5711
5857
  };
@@ -8173,7 +8319,7 @@ function createBaseUserPresence() {
8173
8319
  persistence: false,
8174
8320
  status: undefined,
8175
8321
  is_mobile: false,
8176
- metadata: "",
8322
+ user_status: "",
8177
8323
  };
8178
8324
  }
8179
8325
  export const UserPresence = {
@@ -8196,8 +8342,8 @@ export const UserPresence = {
8196
8342
  if (message.is_mobile !== false) {
8197
8343
  writer.uint32(48).bool(message.is_mobile);
8198
8344
  }
8199
- if (message.metadata !== "") {
8200
- writer.uint32(58).string(message.metadata);
8345
+ if (message.user_status !== "") {
8346
+ writer.uint32(58).string(message.user_status);
8201
8347
  }
8202
8348
  return writer;
8203
8349
  },
@@ -8248,7 +8394,7 @@ export const UserPresence = {
8248
8394
  if (tag !== 58) {
8249
8395
  break;
8250
8396
  }
8251
- message.metadata = reader.string();
8397
+ message.user_status = reader.string();
8252
8398
  continue;
8253
8399
  }
8254
8400
  if ((tag & 7) === 4 || tag === 0) {
@@ -8266,7 +8412,7 @@ export const UserPresence = {
8266
8412
  persistence: isSet(object.persistence) ? globalThis.Boolean(object.persistence) : false,
8267
8413
  status: isSet(object.status) ? String(object.status) : undefined,
8268
8414
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
8269
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
8415
+ user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
8270
8416
  };
8271
8417
  },
8272
8418
  toJSON(message) {
@@ -8289,8 +8435,8 @@ export const UserPresence = {
8289
8435
  if (message.is_mobile !== false) {
8290
8436
  obj.is_mobile = message.is_mobile;
8291
8437
  }
8292
- if (message.metadata !== "") {
8293
- obj.metadata = message.metadata;
8438
+ if (message.user_status !== "") {
8439
+ obj.user_status = message.user_status;
8294
8440
  }
8295
8441
  return obj;
8296
8442
  },
@@ -8305,7 +8451,7 @@ export const UserPresence = {
8305
8451
  message.persistence = object.persistence ?? false;
8306
8452
  message.status = object.status ?? undefined;
8307
8453
  message.is_mobile = object.is_mobile ?? false;
8308
- message.metadata = object.metadata ?? "";
8454
+ message.user_status = object.user_status ?? "";
8309
8455
  return message;
8310
8456
  },
8311
8457
  };
@@ -8774,6 +8920,10 @@ function createBaseClanUpdatedEvent() {
8774
8920
  is_onboarding: false,
8775
8921
  welcome_channel_id: "",
8776
8922
  onboarding_banner: "",
8923
+ community_banner: "",
8924
+ is_community: false,
8925
+ about: "",
8926
+ description: "",
8777
8927
  };
8778
8928
  }
8779
8929
  export const ClanUpdatedEvent = {
@@ -8802,6 +8952,18 @@ export const ClanUpdatedEvent = {
8802
8952
  if (message.onboarding_banner !== "") {
8803
8953
  writer.uint32(66).string(message.onboarding_banner);
8804
8954
  }
8955
+ if (message.community_banner !== "") {
8956
+ writer.uint32(74).string(message.community_banner);
8957
+ }
8958
+ if (message.is_community !== false) {
8959
+ writer.uint32(80).bool(message.is_community);
8960
+ }
8961
+ if (message.about !== "") {
8962
+ writer.uint32(90).string(message.about);
8963
+ }
8964
+ if (message.description !== "") {
8965
+ writer.uint32(98).string(message.description);
8966
+ }
8805
8967
  return writer;
8806
8968
  },
8807
8969
  decode(input, length) {
@@ -8859,6 +9021,30 @@ export const ClanUpdatedEvent = {
8859
9021
  }
8860
9022
  message.onboarding_banner = reader.string();
8861
9023
  continue;
9024
+ case 9:
9025
+ if (tag !== 74) {
9026
+ break;
9027
+ }
9028
+ message.community_banner = reader.string();
9029
+ continue;
9030
+ case 10:
9031
+ if (tag !== 80) {
9032
+ break;
9033
+ }
9034
+ message.is_community = reader.bool();
9035
+ continue;
9036
+ case 11:
9037
+ if (tag !== 90) {
9038
+ break;
9039
+ }
9040
+ message.about = reader.string();
9041
+ continue;
9042
+ case 12:
9043
+ if (tag !== 98) {
9044
+ break;
9045
+ }
9046
+ message.description = reader.string();
9047
+ continue;
8862
9048
  }
8863
9049
  if ((tag & 7) === 4 || tag === 0) {
8864
9050
  break;
@@ -8877,6 +9063,10 @@ export const ClanUpdatedEvent = {
8877
9063
  is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
8878
9064
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
8879
9065
  onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
9066
+ community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
9067
+ is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
9068
+ about: isSet(object.about) ? globalThis.String(object.about) : "",
9069
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
8880
9070
  };
8881
9071
  },
8882
9072
  toJSON(message) {
@@ -8905,6 +9095,18 @@ export const ClanUpdatedEvent = {
8905
9095
  if (message.onboarding_banner !== "") {
8906
9096
  obj.onboarding_banner = message.onboarding_banner;
8907
9097
  }
9098
+ if (message.community_banner !== "") {
9099
+ obj.community_banner = message.community_banner;
9100
+ }
9101
+ if (message.is_community !== false) {
9102
+ obj.is_community = message.is_community;
9103
+ }
9104
+ if (message.about !== "") {
9105
+ obj.about = message.about;
9106
+ }
9107
+ if (message.description !== "") {
9108
+ obj.description = message.description;
9109
+ }
8908
9110
  return obj;
8909
9111
  },
8910
9112
  create(base) {
@@ -8920,6 +9122,10 @@ export const ClanUpdatedEvent = {
8920
9122
  message.is_onboarding = object.is_onboarding ?? false;
8921
9123
  message.welcome_channel_id = object.welcome_channel_id ?? "";
8922
9124
  message.onboarding_banner = object.onboarding_banner ?? "";
9125
+ message.community_banner = object.community_banner ?? "";
9126
+ message.is_community = object.is_community ?? false;
9127
+ message.about = object.about ?? "";
9128
+ message.description = object.description ?? "";
8923
9129
  return message;
8924
9130
  },
8925
9131
  };
@@ -9168,11 +9374,11 @@ function createBaseUserProfileRedis() {
9168
9374
  avatar: "",
9169
9375
  display_name: "",
9170
9376
  about_me: "",
9171
- custom_status: "",
9377
+ user_status: "",
9378
+ status: "",
9172
9379
  create_time_second: 0,
9173
9380
  fcm_tokens: [],
9174
9381
  online: false,
9175
- metadata: "",
9176
9382
  is_disabled: false,
9177
9383
  joined_clans: [],
9178
9384
  pubkey: "",
@@ -9200,20 +9406,20 @@ export const UserProfileRedis = {
9200
9406
  if (message.about_me !== "") {
9201
9407
  writer.uint32(42).string(message.about_me);
9202
9408
  }
9203
- if (message.custom_status !== "") {
9204
- writer.uint32(50).string(message.custom_status);
9409
+ if (message.user_status !== "") {
9410
+ writer.uint32(50).string(message.user_status);
9411
+ }
9412
+ if (message.status !== "") {
9413
+ writer.uint32(58).string(message.status);
9205
9414
  }
9206
9415
  if (message.create_time_second !== 0) {
9207
- writer.uint32(56).uint32(message.create_time_second);
9416
+ writer.uint32(64).uint32(message.create_time_second);
9208
9417
  }
9209
9418
  for (const v of message.fcm_tokens) {
9210
- FCMTokens.encode(v, writer.uint32(66).fork()).ldelim();
9419
+ FCMTokens.encode(v, writer.uint32(74).fork()).ldelim();
9211
9420
  }
9212
9421
  if (message.online !== false) {
9213
- writer.uint32(72).bool(message.online);
9214
- }
9215
- if (message.metadata !== "") {
9216
- writer.uint32(82).string(message.metadata);
9422
+ writer.uint32(80).bool(message.online);
9217
9423
  }
9218
9424
  if (message.is_disabled !== false) {
9219
9425
  writer.uint32(88).bool(message.is_disabled);
@@ -9282,31 +9488,31 @@ export const UserProfileRedis = {
9282
9488
  if (tag !== 50) {
9283
9489
  break;
9284
9490
  }
9285
- message.custom_status = reader.string();
9491
+ message.user_status = reader.string();
9286
9492
  continue;
9287
9493
  case 7:
9288
- if (tag !== 56) {
9494
+ if (tag !== 58) {
9289
9495
  break;
9290
9496
  }
9291
- message.create_time_second = reader.uint32();
9497
+ message.status = reader.string();
9292
9498
  continue;
9293
9499
  case 8:
9294
- if (tag !== 66) {
9500
+ if (tag !== 64) {
9295
9501
  break;
9296
9502
  }
9297
- message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
9503
+ message.create_time_second = reader.uint32();
9298
9504
  continue;
9299
9505
  case 9:
9300
- if (tag !== 72) {
9506
+ if (tag !== 74) {
9301
9507
  break;
9302
9508
  }
9303
- message.online = reader.bool();
9509
+ message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
9304
9510
  continue;
9305
9511
  case 10:
9306
- if (tag !== 82) {
9512
+ if (tag !== 80) {
9307
9513
  break;
9308
9514
  }
9309
- message.metadata = reader.string();
9515
+ message.online = reader.bool();
9310
9516
  continue;
9311
9517
  case 11:
9312
9518
  if (tag !== 88) {
@@ -9371,13 +9577,13 @@ export const UserProfileRedis = {
9371
9577
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
9372
9578
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
9373
9579
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
9374
- custom_status: isSet(object.custom_status) ? globalThis.String(object.custom_status) : "",
9580
+ user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
9581
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
9375
9582
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
9376
9583
  fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens)
9377
9584
  ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e))
9378
9585
  : [],
9379
9586
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
9380
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
9381
9587
  is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
9382
9588
  joined_clans: globalThis.Array.isArray(object?.joined_clans)
9383
9589
  ? object.joined_clans.map((e) => globalThis.String(e))
@@ -9407,8 +9613,11 @@ export const UserProfileRedis = {
9407
9613
  if (message.about_me !== "") {
9408
9614
  obj.about_me = message.about_me;
9409
9615
  }
9410
- if (message.custom_status !== "") {
9411
- obj.custom_status = message.custom_status;
9616
+ if (message.user_status !== "") {
9617
+ obj.user_status = message.user_status;
9618
+ }
9619
+ if (message.status !== "") {
9620
+ obj.status = message.status;
9412
9621
  }
9413
9622
  if (message.create_time_second !== 0) {
9414
9623
  obj.create_time_second = Math.round(message.create_time_second);
@@ -9419,9 +9628,6 @@ export const UserProfileRedis = {
9419
9628
  if (message.online !== false) {
9420
9629
  obj.online = message.online;
9421
9630
  }
9422
- if (message.metadata !== "") {
9423
- obj.metadata = message.metadata;
9424
- }
9425
9631
  if (message.is_disabled !== false) {
9426
9632
  obj.is_disabled = message.is_disabled;
9427
9633
  }
@@ -9458,11 +9664,11 @@ export const UserProfileRedis = {
9458
9664
  message.avatar = object.avatar ?? "";
9459
9665
  message.display_name = object.display_name ?? "";
9460
9666
  message.about_me = object.about_me ?? "";
9461
- message.custom_status = object.custom_status ?? "";
9667
+ message.user_status = object.user_status ?? "";
9668
+ message.status = object.status ?? "";
9462
9669
  message.create_time_second = object.create_time_second ?? 0;
9463
9670
  message.fcm_tokens = object.fcm_tokens?.map((e) => FCMTokens.fromPartial(e)) || [];
9464
9671
  message.online = object.online ?? false;
9465
- message.metadata = object.metadata ?? "";
9466
9672
  message.is_disabled = object.is_disabled ?? false;
9467
9673
  message.joined_clans = object.joined_clans?.map((e) => e) || [];
9468
9674
  message.pubkey = object.pubkey ?? "";
@@ -11050,7 +11256,7 @@ export const UnpinMessageEvent = {
11050
11256
  },
11051
11257
  };
11052
11258
  function createBaseHandleParticipantMeetStateEvent() {
11053
- return { clan_id: "", channel_id: "", display_name: "", state: 0 };
11259
+ return { clan_id: "", channel_id: "", display_name: "", state: 0, room_name: "" };
11054
11260
  }
11055
11261
  export const HandleParticipantMeetStateEvent = {
11056
11262
  encode(message, writer = _m0.Writer.create()) {
@@ -11066,6 +11272,9 @@ export const HandleParticipantMeetStateEvent = {
11066
11272
  if (message.state !== 0) {
11067
11273
  writer.uint32(32).int32(message.state);
11068
11274
  }
11275
+ if (message.room_name !== "") {
11276
+ writer.uint32(42).string(message.room_name);
11277
+ }
11069
11278
  return writer;
11070
11279
  },
11071
11280
  decode(input, length) {
@@ -11099,6 +11308,12 @@ export const HandleParticipantMeetStateEvent = {
11099
11308
  }
11100
11309
  message.state = reader.int32();
11101
11310
  continue;
11311
+ case 5:
11312
+ if (tag !== 42) {
11313
+ break;
11314
+ }
11315
+ message.room_name = reader.string();
11316
+ continue;
11102
11317
  }
11103
11318
  if ((tag & 7) === 4 || tag === 0) {
11104
11319
  break;
@@ -11113,6 +11328,7 @@ export const HandleParticipantMeetStateEvent = {
11113
11328
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
11114
11329
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
11115
11330
  state: isSet(object.state) ? globalThis.Number(object.state) : 0,
11331
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
11116
11332
  };
11117
11333
  },
11118
11334
  toJSON(message) {
@@ -11129,6 +11345,9 @@ export const HandleParticipantMeetStateEvent = {
11129
11345
  if (message.state !== 0) {
11130
11346
  obj.state = Math.round(message.state);
11131
11347
  }
11348
+ if (message.room_name !== "") {
11349
+ obj.room_name = message.room_name;
11350
+ }
11132
11351
  return obj;
11133
11352
  },
11134
11353
  create(base) {
@@ -11140,6 +11359,7 @@ export const HandleParticipantMeetStateEvent = {
11140
11359
  message.channel_id = object.channel_id ?? "";
11141
11360
  message.display_name = object.display_name ?? "";
11142
11361
  message.state = object.state ?? 0;
11362
+ message.room_name = object.room_name ?? "";
11143
11363
  return message;
11144
11364
  },
11145
11365
  };
@@ -11259,6 +11479,8 @@ function createBaseListDataSocket() {
11259
11479
  list_category_req: undefined,
11260
11480
  category_list: undefined,
11261
11481
  stream_user_list: undefined,
11482
+ list_unread_msg_indicator_req: undefined,
11483
+ unread_msg_indicator: undefined,
11262
11484
  };
11263
11485
  }
11264
11486
  export const ListDataSocket = {
@@ -11456,6 +11678,13 @@ export const ListDataSocket = {
11456
11678
  if (message.stream_user_list !== undefined) {
11457
11679
  StreamingChannelUserList.encode(message.stream_user_list, writer.uint32(514).fork()).ldelim();
11458
11680
  }
11681
+ if (message.list_unread_msg_indicator_req !== undefined) {
11682
+ ListClanUnreadMsgIndicatorRequest.encode(message.list_unread_msg_indicator_req, writer.uint32(522).fork())
11683
+ .ldelim();
11684
+ }
11685
+ if (message.unread_msg_indicator !== undefined) {
11686
+ ListClanUnreadMsgIndicatorResponse.encode(message.unread_msg_indicator, writer.uint32(530).fork()).ldelim();
11687
+ }
11459
11688
  return writer;
11460
11689
  },
11461
11690
  decode(input, length) {
@@ -11849,6 +12078,18 @@ export const ListDataSocket = {
11849
12078
  }
11850
12079
  message.stream_user_list = StreamingChannelUserList.decode(reader, reader.uint32());
11851
12080
  continue;
12081
+ case 65:
12082
+ if (tag !== 522) {
12083
+ break;
12084
+ }
12085
+ message.list_unread_msg_indicator_req = ListClanUnreadMsgIndicatorRequest.decode(reader, reader.uint32());
12086
+ continue;
12087
+ case 66:
12088
+ if (tag !== 530) {
12089
+ break;
12090
+ }
12091
+ message.unread_msg_indicator = ListClanUnreadMsgIndicatorResponse.decode(reader, reader.uint32());
12092
+ continue;
11852
12093
  }
11853
12094
  if ((tag & 7) === 4 || tag === 0) {
11854
12095
  break;
@@ -12007,6 +12248,12 @@ export const ListDataSocket = {
12007
12248
  stream_user_list: isSet(object.stream_user_list)
12008
12249
  ? StreamingChannelUserList.fromJSON(object.stream_user_list)
12009
12250
  : undefined,
12251
+ list_unread_msg_indicator_req: isSet(object.list_unread_msg_indicator_req)
12252
+ ? ListClanUnreadMsgIndicatorRequest.fromJSON(object.list_unread_msg_indicator_req)
12253
+ : undefined,
12254
+ unread_msg_indicator: isSet(object.unread_msg_indicator)
12255
+ ? ListClanUnreadMsgIndicatorResponse.fromJSON(object.unread_msg_indicator)
12256
+ : undefined,
12010
12257
  };
12011
12258
  },
12012
12259
  toJSON(message) {
@@ -12203,6 +12450,12 @@ export const ListDataSocket = {
12203
12450
  if (message.stream_user_list !== undefined) {
12204
12451
  obj.stream_user_list = StreamingChannelUserList.toJSON(message.stream_user_list);
12205
12452
  }
12453
+ if (message.list_unread_msg_indicator_req !== undefined) {
12454
+ obj.list_unread_msg_indicator_req = ListClanUnreadMsgIndicatorRequest.toJSON(message.list_unread_msg_indicator_req);
12455
+ }
12456
+ if (message.unread_msg_indicator !== undefined) {
12457
+ obj.unread_msg_indicator = ListClanUnreadMsgIndicatorResponse.toJSON(message.unread_msg_indicator);
12458
+ }
12206
12459
  return obj;
12207
12460
  },
12208
12461
  create(base) {
@@ -12412,6 +12665,13 @@ export const ListDataSocket = {
12412
12665
  message.stream_user_list = (object.stream_user_list !== undefined && object.stream_user_list !== null)
12413
12666
  ? StreamingChannelUserList.fromPartial(object.stream_user_list)
12414
12667
  : undefined;
12668
+ message.list_unread_msg_indicator_req =
12669
+ (object.list_unread_msg_indicator_req !== undefined && object.list_unread_msg_indicator_req !== null)
12670
+ ? ListClanUnreadMsgIndicatorRequest.fromPartial(object.list_unread_msg_indicator_req)
12671
+ : undefined;
12672
+ message.unread_msg_indicator = (object.unread_msg_indicator !== undefined && object.unread_msg_indicator !== null)
12673
+ ? ListClanUnreadMsgIndicatorResponse.fromPartial(object.unread_msg_indicator)
12674
+ : undefined;
12415
12675
  return message;
12416
12676
  },
12417
12677
  };
@@ -12523,6 +12783,86 @@ export const MeetParticipantEvent = {
12523
12783
  return message;
12524
12784
  },
12525
12785
  };
12786
+ function createBaseTransferOwnershipEvent() {
12787
+ return { clan_id: "", prev_owner: "", curr_owner: "" };
12788
+ }
12789
+ export const TransferOwnershipEvent = {
12790
+ encode(message, writer = _m0.Writer.create()) {
12791
+ if (message.clan_id !== "") {
12792
+ writer.uint32(10).string(message.clan_id);
12793
+ }
12794
+ if (message.prev_owner !== "") {
12795
+ writer.uint32(18).string(message.prev_owner);
12796
+ }
12797
+ if (message.curr_owner !== "") {
12798
+ writer.uint32(26).string(message.curr_owner);
12799
+ }
12800
+ return writer;
12801
+ },
12802
+ decode(input, length) {
12803
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
12804
+ let end = length === undefined ? reader.len : reader.pos + length;
12805
+ const message = createBaseTransferOwnershipEvent();
12806
+ while (reader.pos < end) {
12807
+ const tag = reader.uint32();
12808
+ switch (tag >>> 3) {
12809
+ case 1:
12810
+ if (tag !== 10) {
12811
+ break;
12812
+ }
12813
+ message.clan_id = reader.string();
12814
+ continue;
12815
+ case 2:
12816
+ if (tag !== 18) {
12817
+ break;
12818
+ }
12819
+ message.prev_owner = reader.string();
12820
+ continue;
12821
+ case 3:
12822
+ if (tag !== 26) {
12823
+ break;
12824
+ }
12825
+ message.curr_owner = reader.string();
12826
+ continue;
12827
+ }
12828
+ if ((tag & 7) === 4 || tag === 0) {
12829
+ break;
12830
+ }
12831
+ reader.skipType(tag & 7);
12832
+ }
12833
+ return message;
12834
+ },
12835
+ fromJSON(object) {
12836
+ return {
12837
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12838
+ prev_owner: isSet(object.prev_owner) ? globalThis.String(object.prev_owner) : "",
12839
+ curr_owner: isSet(object.curr_owner) ? globalThis.String(object.curr_owner) : "",
12840
+ };
12841
+ },
12842
+ toJSON(message) {
12843
+ const obj = {};
12844
+ if (message.clan_id !== "") {
12845
+ obj.clan_id = message.clan_id;
12846
+ }
12847
+ if (message.prev_owner !== "") {
12848
+ obj.prev_owner = message.prev_owner;
12849
+ }
12850
+ if (message.curr_owner !== "") {
12851
+ obj.curr_owner = message.curr_owner;
12852
+ }
12853
+ return obj;
12854
+ },
12855
+ create(base) {
12856
+ return TransferOwnershipEvent.fromPartial(base ?? {});
12857
+ },
12858
+ fromPartial(object) {
12859
+ const message = createBaseTransferOwnershipEvent();
12860
+ message.clan_id = object.clan_id ?? "";
12861
+ message.prev_owner = object.prev_owner ?? "";
12862
+ message.curr_owner = object.curr_owner ?? "";
12863
+ return message;
12864
+ },
12865
+ };
12526
12866
  function toTimestamp(date) {
12527
12867
  const seconds = Math.trunc(date.getTime() / 1_000);
12528
12868
  const nanos = (date.getTime() % 1_000) * 1_000_000;