mezon-sdk 2.8.12 → 2.8.14

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 (68) hide show
  1. package/README.md +96 -23
  2. package/dist/cjs/api/api.d.ts +263 -67
  3. package/dist/cjs/api/api.js +528 -84
  4. package/dist/cjs/api/api.js.map +1 -1
  5. package/dist/cjs/index.d.ts +2 -0
  6. package/dist/cjs/index.js +2 -0
  7. package/dist/cjs/index.js.map +1 -1
  8. package/dist/cjs/interfaces/client.d.ts +56 -3
  9. package/dist/cjs/interfaces/client.js +1 -0
  10. package/dist/cjs/interfaces/client.js.map +1 -1
  11. package/dist/cjs/mezon-client/client/MezonClient.d.ts +11 -3
  12. package/dist/cjs/mezon-client/client/MezonClient.js +63 -5
  13. package/dist/cjs/mezon-client/client/MezonClient.js.map +1 -1
  14. package/dist/cjs/mezon-client/structures/ButtonBuilder.d.ts +6 -0
  15. package/dist/cjs/mezon-client/structures/ButtonBuilder.js +22 -0
  16. package/dist/cjs/mezon-client/structures/ButtonBuilder.js.map +1 -0
  17. package/dist/cjs/mezon-client/structures/Clan.d.ts +4 -1
  18. package/dist/cjs/mezon-client/structures/Clan.js +12 -1
  19. package/dist/cjs/mezon-client/structures/Clan.js.map +1 -1
  20. package/dist/cjs/mezon-client/structures/InteractiveMessage.d.ts +16 -0
  21. package/dist/cjs/mezon-client/structures/InteractiveMessage.js +120 -0
  22. package/dist/cjs/mezon-client/structures/InteractiveMessage.js.map +1 -0
  23. package/dist/cjs/mezon-client/structures/TextChannel.js +2 -1
  24. package/dist/cjs/mezon-client/structures/TextChannel.js.map +1 -1
  25. package/dist/cjs/mezon-client/structures/User.d.ts +6 -2
  26. package/dist/cjs/mezon-client/structures/User.js +46 -8
  27. package/dist/cjs/mezon-client/structures/User.js.map +1 -1
  28. package/dist/cjs/mezon-client/utils/helper.d.ts +1 -0
  29. package/dist/cjs/mezon-client/utils/helper.js +29 -0
  30. package/dist/cjs/mezon-client/utils/helper.js.map +1 -0
  31. package/dist/cjs/rtapi/realtime.d.ts +898 -635
  32. package/dist/cjs/rtapi/realtime.js +278 -5
  33. package/dist/cjs/rtapi/realtime.js.map +1 -1
  34. package/dist/esm/api/api.d.ts +263 -67
  35. package/dist/esm/api/api.js +518 -78
  36. package/dist/esm/api/api.js.map +1 -1
  37. package/dist/esm/index.d.ts +2 -0
  38. package/dist/esm/index.js +2 -0
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/interfaces/client.d.ts +56 -3
  41. package/dist/esm/interfaces/client.js +1 -0
  42. package/dist/esm/interfaces/client.js.map +1 -1
  43. package/dist/esm/mezon-client/client/MezonClient.d.ts +11 -3
  44. package/dist/esm/mezon-client/client/MezonClient.js +67 -5
  45. package/dist/esm/mezon-client/client/MezonClient.js.map +1 -1
  46. package/dist/esm/mezon-client/structures/ButtonBuilder.d.ts +6 -0
  47. package/dist/esm/mezon-client/structures/ButtonBuilder.js +16 -0
  48. package/dist/esm/mezon-client/structures/ButtonBuilder.js.map +1 -0
  49. package/dist/esm/mezon-client/structures/Clan.d.ts +4 -1
  50. package/dist/esm/mezon-client/structures/Clan.js +14 -1
  51. package/dist/esm/mezon-client/structures/Clan.js.map +1 -1
  52. package/dist/esm/mezon-client/structures/InteractiveMessage.d.ts +16 -0
  53. package/dist/esm/mezon-client/structures/InteractiveMessage.js +116 -0
  54. package/dist/esm/mezon-client/structures/InteractiveMessage.js.map +1 -0
  55. package/dist/esm/mezon-client/structures/TextChannel.js +2 -1
  56. package/dist/esm/mezon-client/structures/TextChannel.js.map +1 -1
  57. package/dist/esm/mezon-client/structures/User.d.ts +6 -2
  58. package/dist/esm/mezon-client/structures/User.js +46 -7
  59. package/dist/esm/mezon-client/structures/User.js.map +1 -1
  60. package/dist/esm/mezon-client/utils/helper.d.ts +1 -0
  61. package/dist/esm/mezon-client/utils/helper.js +25 -0
  62. package/dist/esm/mezon-client/utils/helper.js.map +1 -0
  63. package/dist/esm/rtapi/realtime.d.ts +898 -635
  64. package/dist/esm/rtapi/realtime.js +270 -0
  65. package/dist/esm/rtapi/realtime.js.map +1 -1
  66. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  67. package/dist/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +4 -3
@@ -8,8 +8,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.StreamingEndedEvent = exports.StreamingStartedEvent = exports.StreamingJoinedEvent = exports.StreamingLeavedEvent = exports.VoiceEndedEvent = exports.VoiceStartedEvent = exports.VoiceJoinedEvent = exports.VoiceLeavedEvent = exports.MessageTypingEvent = exports.LastSeenMessageEvent = exports.LastPinMessageEvent = exports.StatusPresenceEvent = exports.StatusFollow = exports.Status = exports.Pong = exports.Ping = exports.BlockFriend = exports.RemoveFriend = exports.Notifications = exports.Error_ContextEntry = exports.Error = exports.ChannelPresenceEvent = exports.ChannelMessageRemove = exports.ChannelMessageUpdate = exports.ChannelMessageSend = exports.MarkAsRead = exports.VoiceReactionSend = exports.QuickMenuDataEvent = exports.EphemeralMessageSend = exports.ChannelMessageAck = exports.ChannelLeave = exports.ChannelJoin = exports.ClanJoin = exports.Channel = exports.ClanEmoji = exports.ChannelDescription = exports.HashtagDm = exports.PermissionRoleChannel = exports.RoleAssignedEvent = exports.AddClanUserEvent = exports.SFUSignalingFwd = exports.WebrtcSignalingFwd = exports.IncomingCallPush = exports.ChannelCanvas = exports.FollowEvent = exports.Envelope = exports.error_CodeToJSON = exports.error_CodeFromJSON = exports.Error_Code = exports.protobufPackage = void 0;
12
- exports.ListDataSocket = exports.DeleteAccountEvent = exports.HandleParticipantMeetStateEvent = exports.UnpinMessageEvent = exports.JoinChannelAppData = exports.UserStatusEvent = exports.ChannelAppEvent = exports.SdTopicEvent = exports.DropdownBoxSelected = exports.ListActivity = exports.UnmuteEvent = exports.MessageButtonClicked = exports.PermissionChangedEvent = exports.PermissionSetEvent = exports.EventEmoji = exports.NotificationChannelCategorySetting = exports.CheckNameExistedEvent = exports.FCMTokens = exports.UserProfileRedis = exports.UserProfileUpdatedEvent = exports.ClanProfileUpdatedEvent = exports.ClanUpdatedEvent = exports.UserClanRemoved = exports.UserChannelRemoved = exports.UserChannelAdded = exports.CustomStatusEvent = exports.UserPresence = exports.StreamPresenceEvent = exports.StreamData = exports.Stream = exports.StatusUpdate = exports.StatusUnfollow = exports.ChannelUpdatedEvent = exports.StickerDeleteEvent = exports.StickerUpdateEvent = exports.StickerCreateEvent = exports.ClanDeletedEvent = exports.ChannelDeletedEvent = exports.RoleEvent = exports.CategoryEvent = exports.ChannelCreatedEvent = void 0;
11
+ exports.StreamingStartedEvent = exports.StreamingJoinedEvent = exports.StreamingLeavedEvent = exports.VoiceEndedEvent = exports.VoiceStartedEvent = exports.VoiceJoinedEvent = exports.VoiceLeavedEvent = exports.MessageTypingEvent = exports.LastSeenMessageEvent = exports.LastPinMessageEvent = exports.StatusPresenceEvent = exports.StatusFollow = exports.Status = exports.Pong = exports.Ping = exports.UnblockFriend = exports.BlockFriend = exports.RemoveFriend = exports.Notifications = exports.Error_ContextEntry = exports.Error = exports.ChannelPresenceEvent = exports.ChannelMessageRemove = exports.ChannelMessageUpdate = exports.ChannelMessageSend = exports.MarkAsRead = exports.VoiceReactionSend = exports.QuickMenuDataEvent = exports.EphemeralMessageSend = exports.ChannelMessageAck = exports.ChannelLeave = exports.ChannelJoin = exports.ClanJoin = exports.Channel = exports.ClanEmoji = exports.ChannelDescription = exports.HashtagDm = exports.PermissionRoleChannel = exports.RoleAssignedEvent = exports.AddClanUserEvent = exports.SFUSignalingFwd = exports.WebrtcSignalingFwd = exports.IncomingCallPush = exports.ChannelCanvas = exports.FollowEvent = exports.Envelope = exports.error_CodeToJSON = exports.error_CodeFromJSON = exports.Error_Code = exports.protobufPackage = void 0;
12
+ exports.MeetParticipantEvent = exports.ListDataSocket = exports.DeleteAccountEvent = exports.HandleParticipantMeetStateEvent = exports.UnpinMessageEvent = exports.JoinChannelAppData = exports.UserStatusEvent = exports.ChannelAppEvent = exports.SdTopicEvent = exports.DropdownBoxSelected = exports.ListActivity = exports.UnmuteEvent = exports.MessageButtonClicked = exports.PermissionChangedEvent = exports.PermissionSetEvent = exports.EventEmoji = exports.NotificationChannelCategorySetting = exports.CheckNameExistedEvent = exports.FCMTokens = exports.UserProfileRedis = exports.UserProfileUpdatedEvent = exports.ClanProfileUpdatedEvent = exports.ClanUpdatedEvent = exports.UserClanRemoved = exports.UserChannelRemoved = exports.UserChannelAdded = exports.CustomStatusEvent = exports.UserPresence = exports.StreamPresenceEvent = exports.StreamData = exports.Stream = exports.StatusUpdate = exports.StatusUnfollow = exports.ChannelUpdatedEvent = exports.StickerDeleteEvent = exports.StickerUpdateEvent = exports.StickerCreateEvent = exports.ClanDeletedEvent = exports.ChannelDeletedEvent = exports.RoleEvent = exports.CategoryEvent = exports.ChannelCreatedEvent = exports.StreamingEndedEvent = void 0;
13
13
  /* eslint-disable */
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  const api_1 = require("../api/api");
@@ -180,6 +180,8 @@ function createBaseEnvelope() {
180
180
  mark_as_read: undefined,
181
181
  list_data_socket: undefined,
182
182
  quick_menu_event: undefined,
183
+ un_block_friend: undefined,
184
+ meet_participant_event: undefined,
183
185
  };
184
186
  }
185
187
  exports.Envelope = {
@@ -437,6 +439,12 @@ exports.Envelope = {
437
439
  if (message.quick_menu_event !== undefined) {
438
440
  exports.QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
439
441
  }
442
+ if (message.un_block_friend !== undefined) {
443
+ exports.UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
444
+ }
445
+ if (message.meet_participant_event !== undefined) {
446
+ exports.MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
447
+ }
440
448
  return writer;
441
449
  },
442
450
  decode(input, length) {
@@ -950,6 +958,18 @@ exports.Envelope = {
950
958
  }
951
959
  message.quick_menu_event = exports.QuickMenuDataEvent.decode(reader, reader.uint32());
952
960
  continue;
961
+ case 85:
962
+ if (tag !== 682) {
963
+ break;
964
+ }
965
+ message.un_block_friend = exports.UnblockFriend.decode(reader, reader.uint32());
966
+ continue;
967
+ case 86:
968
+ if (tag !== 690) {
969
+ break;
970
+ }
971
+ message.meet_participant_event = exports.MeetParticipantEvent.decode(reader, reader.uint32());
972
+ continue;
953
973
  }
954
974
  if ((tag & 7) === 4 || tag === 0) {
955
975
  break;
@@ -1152,6 +1172,10 @@ exports.Envelope = {
1152
1172
  quick_menu_event: isSet(object.quick_menu_event)
1153
1173
  ? exports.QuickMenuDataEvent.fromJSON(object.quick_menu_event)
1154
1174
  : undefined,
1175
+ un_block_friend: isSet(object.un_block_friend) ? exports.UnblockFriend.fromJSON(object.un_block_friend) : undefined,
1176
+ meet_participant_event: isSet(object.meet_participant_event)
1177
+ ? exports.MeetParticipantEvent.fromJSON(object.meet_participant_event)
1178
+ : undefined,
1155
1179
  };
1156
1180
  },
1157
1181
  toJSON(message) {
@@ -1408,6 +1432,12 @@ exports.Envelope = {
1408
1432
  if (message.quick_menu_event !== undefined) {
1409
1433
  obj.quick_menu_event = exports.QuickMenuDataEvent.toJSON(message.quick_menu_event);
1410
1434
  }
1435
+ if (message.un_block_friend !== undefined) {
1436
+ obj.un_block_friend = exports.UnblockFriend.toJSON(message.un_block_friend);
1437
+ }
1438
+ if (message.meet_participant_event !== undefined) {
1439
+ obj.meet_participant_event = exports.MeetParticipantEvent.toJSON(message.meet_participant_event);
1440
+ }
1411
1441
  return obj;
1412
1442
  },
1413
1443
  create(base) {
@@ -1685,6 +1715,13 @@ exports.Envelope = {
1685
1715
  message.quick_menu_event = (object.quick_menu_event !== undefined && object.quick_menu_event !== null)
1686
1716
  ? exports.QuickMenuDataEvent.fromPartial(object.quick_menu_event)
1687
1717
  : undefined;
1718
+ message.un_block_friend = (object.un_block_friend !== undefined && object.un_block_friend !== null)
1719
+ ? exports.UnblockFriend.fromPartial(object.un_block_friend)
1720
+ : undefined;
1721
+ message.meet_participant_event =
1722
+ (object.meet_participant_event !== undefined && object.meet_participant_event !== null)
1723
+ ? exports.MeetParticipantEvent.fromPartial(object.meet_participant_event)
1724
+ : undefined;
1688
1725
  return message;
1689
1726
  },
1690
1727
  };
@@ -4052,6 +4089,7 @@ function createBaseChannelMessageUpdate() {
4052
4089
  hide_editted: false,
4053
4090
  topic_id: "",
4054
4091
  is_update_msg_topic: false,
4092
+ old_mentions: "",
4055
4093
  };
4056
4094
  }
4057
4095
  exports.ChannelMessageUpdate = {
@@ -4089,6 +4127,9 @@ exports.ChannelMessageUpdate = {
4089
4127
  if (message.is_update_msg_topic !== false) {
4090
4128
  writer.uint32(88).bool(message.is_update_msg_topic);
4091
4129
  }
4130
+ if (message.old_mentions !== "") {
4131
+ writer.uint32(98).string(message.old_mentions);
4132
+ }
4092
4133
  return writer;
4093
4134
  },
4094
4135
  decode(input, length) {
@@ -4164,6 +4205,12 @@ exports.ChannelMessageUpdate = {
4164
4205
  }
4165
4206
  message.is_update_msg_topic = reader.bool();
4166
4207
  continue;
4208
+ case 12:
4209
+ if (tag !== 98) {
4210
+ break;
4211
+ }
4212
+ message.old_mentions = reader.string();
4213
+ continue;
4167
4214
  }
4168
4215
  if ((tag & 7) === 4 || tag === 0) {
4169
4216
  break;
@@ -4189,6 +4236,7 @@ exports.ChannelMessageUpdate = {
4189
4236
  hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
4190
4237
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
4191
4238
  is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
4239
+ old_mentions: isSet(object.old_mentions) ? globalThis.String(object.old_mentions) : "",
4192
4240
  };
4193
4241
  },
4194
4242
  toJSON(message) {
@@ -4227,13 +4275,16 @@ exports.ChannelMessageUpdate = {
4227
4275
  if (message.is_update_msg_topic !== false) {
4228
4276
  obj.is_update_msg_topic = message.is_update_msg_topic;
4229
4277
  }
4278
+ if (message.old_mentions !== "") {
4279
+ obj.old_mentions = message.old_mentions;
4280
+ }
4230
4281
  return obj;
4231
4282
  },
4232
4283
  create(base) {
4233
4284
  return exports.ChannelMessageUpdate.fromPartial(base !== null && base !== void 0 ? base : {});
4234
4285
  },
4235
4286
  fromPartial(object) {
4236
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4287
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
4237
4288
  const message = createBaseChannelMessageUpdate();
4238
4289
  message.clan_id = (_a = object.clan_id) !== null && _a !== void 0 ? _a : "";
4239
4290
  message.channel_id = (_b = object.channel_id) !== null && _b !== void 0 ? _b : "";
@@ -4246,6 +4297,7 @@ exports.ChannelMessageUpdate = {
4246
4297
  message.hide_editted = (_j = object.hide_editted) !== null && _j !== void 0 ? _j : false;
4247
4298
  message.topic_id = (_k = object.topic_id) !== null && _k !== void 0 ? _k : "";
4248
4299
  message.is_update_msg_topic = (_l = object.is_update_msg_topic) !== null && _l !== void 0 ? _l : false;
4300
+ message.old_mentions = (_m = object.old_mentions) !== null && _m !== void 0 ? _m : "";
4249
4301
  return message;
4250
4302
  },
4251
4303
  };
@@ -4258,6 +4310,8 @@ function createBaseChannelMessageRemove() {
4258
4310
  is_public: false,
4259
4311
  has_attachment: false,
4260
4312
  topic_id: "",
4313
+ mentions: "",
4314
+ references: "",
4261
4315
  };
4262
4316
  }
4263
4317
  exports.ChannelMessageRemove = {
@@ -4283,6 +4337,12 @@ exports.ChannelMessageRemove = {
4283
4337
  if (message.topic_id !== "") {
4284
4338
  writer.uint32(58).string(message.topic_id);
4285
4339
  }
4340
+ if (message.mentions !== "") {
4341
+ writer.uint32(66).string(message.mentions);
4342
+ }
4343
+ if (message.references !== "") {
4344
+ writer.uint32(74).string(message.references);
4345
+ }
4286
4346
  return writer;
4287
4347
  },
4288
4348
  decode(input, length) {
@@ -4334,6 +4394,18 @@ exports.ChannelMessageRemove = {
4334
4394
  }
4335
4395
  message.topic_id = reader.string();
4336
4396
  continue;
4397
+ case 8:
4398
+ if (tag !== 66) {
4399
+ break;
4400
+ }
4401
+ message.mentions = reader.string();
4402
+ continue;
4403
+ case 9:
4404
+ if (tag !== 74) {
4405
+ break;
4406
+ }
4407
+ message.references = reader.string();
4408
+ continue;
4337
4409
  }
4338
4410
  if ((tag & 7) === 4 || tag === 0) {
4339
4411
  break;
@@ -4351,6 +4423,8 @@ exports.ChannelMessageRemove = {
4351
4423
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
4352
4424
  has_attachment: isSet(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
4353
4425
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
4426
+ mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
4427
+ references: isSet(object.references) ? globalThis.String(object.references) : "",
4354
4428
  };
4355
4429
  },
4356
4430
  toJSON(message) {
@@ -4376,13 +4450,19 @@ exports.ChannelMessageRemove = {
4376
4450
  if (message.topic_id !== "") {
4377
4451
  obj.topic_id = message.topic_id;
4378
4452
  }
4453
+ if (message.mentions !== "") {
4454
+ obj.mentions = message.mentions;
4455
+ }
4456
+ if (message.references !== "") {
4457
+ obj.references = message.references;
4458
+ }
4379
4459
  return obj;
4380
4460
  },
4381
4461
  create(base) {
4382
4462
  return exports.ChannelMessageRemove.fromPartial(base !== null && base !== void 0 ? base : {});
4383
4463
  },
4384
4464
  fromPartial(object) {
4385
- var _a, _b, _c, _d, _e, _f, _g;
4465
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4386
4466
  const message = createBaseChannelMessageRemove();
4387
4467
  message.clan_id = (_a = object.clan_id) !== null && _a !== void 0 ? _a : "";
4388
4468
  message.channel_id = (_b = object.channel_id) !== null && _b !== void 0 ? _b : "";
@@ -4391,6 +4471,8 @@ exports.ChannelMessageRemove = {
4391
4471
  message.is_public = (_e = object.is_public) !== null && _e !== void 0 ? _e : false;
4392
4472
  message.has_attachment = (_f = object.has_attachment) !== null && _f !== void 0 ? _f : false;
4393
4473
  message.topic_id = (_g = object.topic_id) !== null && _g !== void 0 ? _g : "";
4474
+ message.mentions = (_h = object.mentions) !== null && _h !== void 0 ? _h : "";
4475
+ message.references = (_j = object.references) !== null && _j !== void 0 ? _j : "";
4394
4476
  return message;
4395
4477
  },
4396
4478
  };
@@ -4843,6 +4925,57 @@ exports.BlockFriend = {
4843
4925
  return message;
4844
4926
  },
4845
4927
  };
4928
+ function createBaseUnblockFriend() {
4929
+ return { user_id: "" };
4930
+ }
4931
+ exports.UnblockFriend = {
4932
+ encode(message, writer = minimal_1.default.Writer.create()) {
4933
+ if (message.user_id !== "") {
4934
+ writer.uint32(10).string(message.user_id);
4935
+ }
4936
+ return writer;
4937
+ },
4938
+ decode(input, length) {
4939
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
4940
+ let end = length === undefined ? reader.len : reader.pos + length;
4941
+ const message = createBaseUnblockFriend();
4942
+ while (reader.pos < end) {
4943
+ const tag = reader.uint32();
4944
+ switch (tag >>> 3) {
4945
+ case 1:
4946
+ if (tag !== 10) {
4947
+ break;
4948
+ }
4949
+ message.user_id = reader.string();
4950
+ continue;
4951
+ }
4952
+ if ((tag & 7) === 4 || tag === 0) {
4953
+ break;
4954
+ }
4955
+ reader.skipType(tag & 7);
4956
+ }
4957
+ return message;
4958
+ },
4959
+ fromJSON(object) {
4960
+ return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
4961
+ },
4962
+ toJSON(message) {
4963
+ const obj = {};
4964
+ if (message.user_id !== "") {
4965
+ obj.user_id = message.user_id;
4966
+ }
4967
+ return obj;
4968
+ },
4969
+ create(base) {
4970
+ return exports.UnblockFriend.fromPartial(base !== null && base !== void 0 ? base : {});
4971
+ },
4972
+ fromPartial(object) {
4973
+ var _a;
4974
+ const message = createBaseUnblockFriend();
4975
+ message.user_id = (_a = object.user_id) !== null && _a !== void 0 ? _a : "";
4976
+ return message;
4977
+ },
4978
+ };
4846
4979
  function createBasePing() {
4847
4980
  return {};
4848
4981
  }
@@ -7423,6 +7556,8 @@ function createBaseChannelUpdatedEvent() {
7423
7556
  age_restricted: 0,
7424
7557
  active: 0,
7425
7558
  count_mess_unread: 0,
7559
+ user_ids: [],
7560
+ role_ids: [],
7426
7561
  };
7427
7562
  }
7428
7563
  exports.ChannelUpdatedEvent = {
@@ -7478,6 +7613,12 @@ exports.ChannelUpdatedEvent = {
7478
7613
  if (message.count_mess_unread !== 0) {
7479
7614
  writer.uint32(136).int32(message.count_mess_unread);
7480
7615
  }
7616
+ for (const v of message.user_ids) {
7617
+ writer.uint32(146).string(v);
7618
+ }
7619
+ for (const v of message.role_ids) {
7620
+ writer.uint32(154).string(v);
7621
+ }
7481
7622
  return writer;
7482
7623
  },
7483
7624
  decode(input, length) {
@@ -7589,6 +7730,18 @@ exports.ChannelUpdatedEvent = {
7589
7730
  }
7590
7731
  message.count_mess_unread = reader.int32();
7591
7732
  continue;
7733
+ case 18:
7734
+ if (tag !== 146) {
7735
+ break;
7736
+ }
7737
+ message.user_ids.push(reader.string());
7738
+ continue;
7739
+ case 19:
7740
+ if (tag !== 154) {
7741
+ break;
7742
+ }
7743
+ message.role_ids.push(reader.string());
7744
+ continue;
7592
7745
  }
7593
7746
  if ((tag & 7) === 4 || tag === 0) {
7594
7747
  break;
@@ -7616,9 +7769,12 @@ exports.ChannelUpdatedEvent = {
7616
7769
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7617
7770
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
7618
7771
  count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
7772
+ user_ids: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
7773
+ role_ids: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
7619
7774
  };
7620
7775
  },
7621
7776
  toJSON(message) {
7777
+ var _a, _b;
7622
7778
  const obj = {};
7623
7779
  if (message.clan_id !== "") {
7624
7780
  obj.clan_id = message.clan_id;
@@ -7671,13 +7827,19 @@ exports.ChannelUpdatedEvent = {
7671
7827
  if (message.count_mess_unread !== 0) {
7672
7828
  obj.count_mess_unread = Math.round(message.count_mess_unread);
7673
7829
  }
7830
+ if ((_a = message.user_ids) === null || _a === void 0 ? void 0 : _a.length) {
7831
+ obj.user_ids = message.user_ids;
7832
+ }
7833
+ if ((_b = message.role_ids) === null || _b === void 0 ? void 0 : _b.length) {
7834
+ obj.role_ids = message.role_ids;
7835
+ }
7674
7836
  return obj;
7675
7837
  },
7676
7838
  create(base) {
7677
7839
  return exports.ChannelUpdatedEvent.fromPartial(base !== null && base !== void 0 ? base : {});
7678
7840
  },
7679
7841
  fromPartial(object) {
7680
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
7842
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7681
7843
  const message = createBaseChannelUpdatedEvent();
7682
7844
  message.clan_id = (_a = object.clan_id) !== null && _a !== void 0 ? _a : "";
7683
7845
  message.category_id = (_b = object.category_id) !== null && _b !== void 0 ? _b : "";
@@ -7696,6 +7858,8 @@ exports.ChannelUpdatedEvent = {
7696
7858
  message.age_restricted = (_q = object.age_restricted) !== null && _q !== void 0 ? _q : 0;
7697
7859
  message.active = (_r = object.active) !== null && _r !== void 0 ? _r : 0;
7698
7860
  message.count_mess_unread = (_s = object.count_mess_unread) !== null && _s !== void 0 ? _s : 0;
7861
+ message.user_ids = ((_t = object.user_ids) === null || _t === void 0 ? void 0 : _t.map((e) => e)) || [];
7862
+ message.role_ids = ((_u = object.role_ids) === null || _u === void 0 ? void 0 : _u.map((e) => e)) || [];
7699
7863
  return message;
7700
7864
  },
7701
7865
  };
@@ -12367,6 +12531,115 @@ exports.ListDataSocket = {
12367
12531
  return message;
12368
12532
  },
12369
12533
  };
12534
+ function createBaseMeetParticipantEvent() {
12535
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
12536
+ }
12537
+ exports.MeetParticipantEvent = {
12538
+ encode(message, writer = minimal_1.default.Writer.create()) {
12539
+ if (message.username !== "") {
12540
+ writer.uint32(10).string(message.username);
12541
+ }
12542
+ if (message.room_name !== "") {
12543
+ writer.uint32(18).string(message.room_name);
12544
+ }
12545
+ if (message.channel_id !== "") {
12546
+ writer.uint32(26).string(message.channel_id);
12547
+ }
12548
+ if (message.clan_id !== "") {
12549
+ writer.uint32(34).string(message.clan_id);
12550
+ }
12551
+ if (message.action !== 0) {
12552
+ writer.uint32(40).int32(message.action);
12553
+ }
12554
+ return writer;
12555
+ },
12556
+ decode(input, length) {
12557
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
12558
+ let end = length === undefined ? reader.len : reader.pos + length;
12559
+ const message = createBaseMeetParticipantEvent();
12560
+ while (reader.pos < end) {
12561
+ const tag = reader.uint32();
12562
+ switch (tag >>> 3) {
12563
+ case 1:
12564
+ if (tag !== 10) {
12565
+ break;
12566
+ }
12567
+ message.username = reader.string();
12568
+ continue;
12569
+ case 2:
12570
+ if (tag !== 18) {
12571
+ break;
12572
+ }
12573
+ message.room_name = reader.string();
12574
+ continue;
12575
+ case 3:
12576
+ if (tag !== 26) {
12577
+ break;
12578
+ }
12579
+ message.channel_id = reader.string();
12580
+ continue;
12581
+ case 4:
12582
+ if (tag !== 34) {
12583
+ break;
12584
+ }
12585
+ message.clan_id = reader.string();
12586
+ continue;
12587
+ case 5:
12588
+ if (tag !== 40) {
12589
+ break;
12590
+ }
12591
+ message.action = reader.int32();
12592
+ continue;
12593
+ }
12594
+ if ((tag & 7) === 4 || tag === 0) {
12595
+ break;
12596
+ }
12597
+ reader.skipType(tag & 7);
12598
+ }
12599
+ return message;
12600
+ },
12601
+ fromJSON(object) {
12602
+ return {
12603
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
12604
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
12605
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
12606
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12607
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
12608
+ };
12609
+ },
12610
+ toJSON(message) {
12611
+ const obj = {};
12612
+ if (message.username !== "") {
12613
+ obj.username = message.username;
12614
+ }
12615
+ if (message.room_name !== "") {
12616
+ obj.room_name = message.room_name;
12617
+ }
12618
+ if (message.channel_id !== "") {
12619
+ obj.channel_id = message.channel_id;
12620
+ }
12621
+ if (message.clan_id !== "") {
12622
+ obj.clan_id = message.clan_id;
12623
+ }
12624
+ if (message.action !== 0) {
12625
+ obj.action = Math.round(message.action);
12626
+ }
12627
+ return obj;
12628
+ },
12629
+ create(base) {
12630
+ return exports.MeetParticipantEvent.fromPartial(base !== null && base !== void 0 ? base : {});
12631
+ },
12632
+ fromPartial(object) {
12633
+ var _a, _b, _c, _d, _e;
12634
+ const message = createBaseMeetParticipantEvent();
12635
+ message.username = (_a = object.username) !== null && _a !== void 0 ? _a : "";
12636
+ message.room_name = (_b = object.room_name) !== null && _b !== void 0 ? _b : "";
12637
+ message.channel_id = (_c = object.channel_id) !== null && _c !== void 0 ? _c : "";
12638
+ message.clan_id = (_d = object.clan_id) !== null && _d !== void 0 ? _d : "";
12639
+ message.action = (_e = object.action) !== null && _e !== void 0 ? _e : 0;
12640
+ return message;
12641
+ },
12642
+ };
12370
12643
  function toTimestamp(date) {
12371
12644
  const seconds = Math.trunc(date.getTime() / 1000);
12372
12645
  const nanos = (date.getTime() % 1000) * 1000000;