mezon-sdk 2.7.99 → 2.8.0

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.
@@ -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.ChannelCreatedEvent = 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.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.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 = void 0;
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;
13
13
  /* eslint-disable */
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  const api_1 = require("../api/api");
@@ -178,6 +178,8 @@ function createBaseEnvelope() {
178
178
  block_friend: undefined,
179
179
  voice_reaction_send: undefined,
180
180
  mark_as_read: undefined,
181
+ list_data_socket: undefined,
182
+ quick_menu_event: undefined,
181
183
  };
182
184
  }
183
185
  exports.Envelope = {
@@ -429,6 +431,12 @@ exports.Envelope = {
429
431
  if (message.mark_as_read !== undefined) {
430
432
  exports.MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
431
433
  }
434
+ if (message.list_data_socket !== undefined) {
435
+ exports.ListDataSocket.encode(message.list_data_socket, writer.uint32(666).fork()).ldelim();
436
+ }
437
+ if (message.quick_menu_event !== undefined) {
438
+ exports.QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
439
+ }
432
440
  return writer;
433
441
  },
434
442
  decode(input, length) {
@@ -930,6 +938,18 @@ exports.Envelope = {
930
938
  }
931
939
  message.mark_as_read = exports.MarkAsRead.decode(reader, reader.uint32());
932
940
  continue;
941
+ case 83:
942
+ if (tag !== 666) {
943
+ break;
944
+ }
945
+ message.list_data_socket = exports.ListDataSocket.decode(reader, reader.uint32());
946
+ continue;
947
+ case 84:
948
+ if (tag !== 674) {
949
+ break;
950
+ }
951
+ message.quick_menu_event = exports.QuickMenuDataEvent.decode(reader, reader.uint32());
952
+ continue;
933
953
  }
934
954
  if ((tag & 7) === 4 || tag === 0) {
935
955
  break;
@@ -1128,6 +1148,10 @@ exports.Envelope = {
1128
1148
  ? exports.VoiceReactionSend.fromJSON(object.voice_reaction_send)
1129
1149
  : undefined,
1130
1150
  mark_as_read: isSet(object.mark_as_read) ? exports.MarkAsRead.fromJSON(object.mark_as_read) : undefined,
1151
+ list_data_socket: isSet(object.list_data_socket) ? exports.ListDataSocket.fromJSON(object.list_data_socket) : undefined,
1152
+ quick_menu_event: isSet(object.quick_menu_event)
1153
+ ? exports.QuickMenuDataEvent.fromJSON(object.quick_menu_event)
1154
+ : undefined,
1131
1155
  };
1132
1156
  },
1133
1157
  toJSON(message) {
@@ -1378,6 +1402,12 @@ exports.Envelope = {
1378
1402
  if (message.mark_as_read !== undefined) {
1379
1403
  obj.mark_as_read = exports.MarkAsRead.toJSON(message.mark_as_read);
1380
1404
  }
1405
+ if (message.list_data_socket !== undefined) {
1406
+ obj.list_data_socket = exports.ListDataSocket.toJSON(message.list_data_socket);
1407
+ }
1408
+ if (message.quick_menu_event !== undefined) {
1409
+ obj.quick_menu_event = exports.QuickMenuDataEvent.toJSON(message.quick_menu_event);
1410
+ }
1381
1411
  return obj;
1382
1412
  },
1383
1413
  create(base) {
@@ -1649,6 +1679,12 @@ exports.Envelope = {
1649
1679
  message.mark_as_read = (object.mark_as_read !== undefined && object.mark_as_read !== null)
1650
1680
  ? exports.MarkAsRead.fromPartial(object.mark_as_read)
1651
1681
  : undefined;
1682
+ message.list_data_socket = (object.list_data_socket !== undefined && object.list_data_socket !== null)
1683
+ ? exports.ListDataSocket.fromPartial(object.list_data_socket)
1684
+ : undefined;
1685
+ message.quick_menu_event = (object.quick_menu_event !== undefined && object.quick_menu_event !== null)
1686
+ ? exports.QuickMenuDataEvent.fromPartial(object.quick_menu_event)
1687
+ : undefined;
1652
1688
  return message;
1653
1689
  },
1654
1690
  };
@@ -3515,8 +3551,77 @@ exports.EphemeralMessageSend = {
3515
3551
  return message;
3516
3552
  },
3517
3553
  };
3554
+ function createBaseQuickMenuDataEvent() {
3555
+ return { menu_name: "", message: undefined };
3556
+ }
3557
+ exports.QuickMenuDataEvent = {
3558
+ encode(message, writer = minimal_1.default.Writer.create()) {
3559
+ if (message.menu_name !== "") {
3560
+ writer.uint32(10).string(message.menu_name);
3561
+ }
3562
+ if (message.message !== undefined) {
3563
+ exports.ChannelMessageSend.encode(message.message, writer.uint32(18).fork()).ldelim();
3564
+ }
3565
+ return writer;
3566
+ },
3567
+ decode(input, length) {
3568
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
3569
+ let end = length === undefined ? reader.len : reader.pos + length;
3570
+ const message = createBaseQuickMenuDataEvent();
3571
+ while (reader.pos < end) {
3572
+ const tag = reader.uint32();
3573
+ switch (tag >>> 3) {
3574
+ case 1:
3575
+ if (tag !== 10) {
3576
+ break;
3577
+ }
3578
+ message.menu_name = reader.string();
3579
+ continue;
3580
+ case 2:
3581
+ if (tag !== 18) {
3582
+ break;
3583
+ }
3584
+ message.message = exports.ChannelMessageSend.decode(reader, reader.uint32());
3585
+ continue;
3586
+ }
3587
+ if ((tag & 7) === 4 || tag === 0) {
3588
+ break;
3589
+ }
3590
+ reader.skipType(tag & 7);
3591
+ }
3592
+ return message;
3593
+ },
3594
+ fromJSON(object) {
3595
+ return {
3596
+ menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
3597
+ message: isSet(object.message) ? exports.ChannelMessageSend.fromJSON(object.message) : undefined,
3598
+ };
3599
+ },
3600
+ toJSON(message) {
3601
+ const obj = {};
3602
+ if (message.menu_name !== "") {
3603
+ obj.menu_name = message.menu_name;
3604
+ }
3605
+ if (message.message !== undefined) {
3606
+ obj.message = exports.ChannelMessageSend.toJSON(message.message);
3607
+ }
3608
+ return obj;
3609
+ },
3610
+ create(base) {
3611
+ return exports.QuickMenuDataEvent.fromPartial(base !== null && base !== void 0 ? base : {});
3612
+ },
3613
+ fromPartial(object) {
3614
+ var _a;
3615
+ const message = createBaseQuickMenuDataEvent();
3616
+ message.menu_name = (_a = object.menu_name) !== null && _a !== void 0 ? _a : "";
3617
+ message.message = (object.message !== undefined && object.message !== null)
3618
+ ? exports.ChannelMessageSend.fromPartial(object.message)
3619
+ : undefined;
3620
+ return message;
3621
+ },
3622
+ };
3518
3623
  function createBaseVoiceReactionSend() {
3519
- return { emojis: [], channel_id: "", sender_id: "" };
3624
+ return { emojis: [], channel_id: "", sender_id: "", media_type: 0 };
3520
3625
  }
3521
3626
  exports.VoiceReactionSend = {
3522
3627
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -3529,6 +3634,9 @@ exports.VoiceReactionSend = {
3529
3634
  if (message.sender_id !== "") {
3530
3635
  writer.uint32(26).string(message.sender_id);
3531
3636
  }
3637
+ if (message.media_type !== 0) {
3638
+ writer.uint32(32).int32(message.media_type);
3639
+ }
3532
3640
  return writer;
3533
3641
  },
3534
3642
  decode(input, length) {
@@ -3556,6 +3664,12 @@ exports.VoiceReactionSend = {
3556
3664
  }
3557
3665
  message.sender_id = reader.string();
3558
3666
  continue;
3667
+ case 4:
3668
+ if (tag !== 32) {
3669
+ break;
3670
+ }
3671
+ message.media_type = reader.int32();
3672
+ continue;
3559
3673
  }
3560
3674
  if ((tag & 7) === 4 || tag === 0) {
3561
3675
  break;
@@ -3569,6 +3683,7 @@ exports.VoiceReactionSend = {
3569
3683
  emojis: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
3570
3684
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
3571
3685
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
3686
+ media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
3572
3687
  };
3573
3688
  },
3574
3689
  toJSON(message) {
@@ -3583,17 +3698,21 @@ exports.VoiceReactionSend = {
3583
3698
  if (message.sender_id !== "") {
3584
3699
  obj.sender_id = message.sender_id;
3585
3700
  }
3701
+ if (message.media_type !== 0) {
3702
+ obj.media_type = Math.round(message.media_type);
3703
+ }
3586
3704
  return obj;
3587
3705
  },
3588
3706
  create(base) {
3589
3707
  return exports.VoiceReactionSend.fromPartial(base !== null && base !== void 0 ? base : {});
3590
3708
  },
3591
3709
  fromPartial(object) {
3592
- var _a, _b, _c;
3710
+ var _a, _b, _c, _d;
3593
3711
  const message = createBaseVoiceReactionSend();
3594
3712
  message.emojis = ((_a = object.emojis) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
3595
3713
  message.channel_id = (_b = object.channel_id) !== null && _b !== void 0 ? _b : "";
3596
3714
  message.sender_id = (_c = object.sender_id) !== null && _c !== void 0 ? _c : "";
3715
+ message.media_type = (_d = object.media_type) !== null && _d !== void 0 ? _d : 0;
3597
3716
  return message;
3598
3717
  },
3599
3718
  };
@@ -5002,6 +5121,12 @@ function createBaseLastPinMessageEvent() {
5002
5121
  timestamp_seconds: 0,
5003
5122
  operation: 0,
5004
5123
  is_public: false,
5124
+ message_sender_avatar: "",
5125
+ message_sender_id: "",
5126
+ message_sender_username: "",
5127
+ message_content: "",
5128
+ message_attachment: "",
5129
+ message_created_time: "",
5005
5130
  };
5006
5131
  }
5007
5132
  exports.LastPinMessageEvent = {
@@ -5030,6 +5155,24 @@ exports.LastPinMessageEvent = {
5030
5155
  if (message.is_public !== false) {
5031
5156
  writer.uint32(64).bool(message.is_public);
5032
5157
  }
5158
+ if (message.message_sender_avatar !== "") {
5159
+ writer.uint32(74).string(message.message_sender_avatar);
5160
+ }
5161
+ if (message.message_sender_id !== "") {
5162
+ writer.uint32(82).string(message.message_sender_id);
5163
+ }
5164
+ if (message.message_sender_username !== "") {
5165
+ writer.uint32(90).string(message.message_sender_username);
5166
+ }
5167
+ if (message.message_content !== "") {
5168
+ writer.uint32(98).string(message.message_content);
5169
+ }
5170
+ if (message.message_attachment !== "") {
5171
+ writer.uint32(106).string(message.message_attachment);
5172
+ }
5173
+ if (message.message_created_time !== "") {
5174
+ writer.uint32(114).string(message.message_created_time);
5175
+ }
5033
5176
  return writer;
5034
5177
  },
5035
5178
  decode(input, length) {
@@ -5087,6 +5230,42 @@ exports.LastPinMessageEvent = {
5087
5230
  }
5088
5231
  message.is_public = reader.bool();
5089
5232
  continue;
5233
+ case 9:
5234
+ if (tag !== 74) {
5235
+ break;
5236
+ }
5237
+ message.message_sender_avatar = reader.string();
5238
+ continue;
5239
+ case 10:
5240
+ if (tag !== 82) {
5241
+ break;
5242
+ }
5243
+ message.message_sender_id = reader.string();
5244
+ continue;
5245
+ case 11:
5246
+ if (tag !== 90) {
5247
+ break;
5248
+ }
5249
+ message.message_sender_username = reader.string();
5250
+ continue;
5251
+ case 12:
5252
+ if (tag !== 98) {
5253
+ break;
5254
+ }
5255
+ message.message_content = reader.string();
5256
+ continue;
5257
+ case 13:
5258
+ if (tag !== 106) {
5259
+ break;
5260
+ }
5261
+ message.message_attachment = reader.string();
5262
+ continue;
5263
+ case 14:
5264
+ if (tag !== 114) {
5265
+ break;
5266
+ }
5267
+ message.message_created_time = reader.string();
5268
+ continue;
5090
5269
  }
5091
5270
  if ((tag & 7) === 4 || tag === 0) {
5092
5271
  break;
@@ -5105,6 +5284,14 @@ exports.LastPinMessageEvent = {
5105
5284
  timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
5106
5285
  operation: isSet(object.operation) ? globalThis.Number(object.operation) : 0,
5107
5286
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
5287
+ message_sender_avatar: isSet(object.message_sender_avatar) ? globalThis.String(object.message_sender_avatar) : "",
5288
+ message_sender_id: isSet(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
5289
+ message_sender_username: isSet(object.message_sender_username)
5290
+ ? globalThis.String(object.message_sender_username)
5291
+ : "",
5292
+ message_content: isSet(object.message_content) ? globalThis.String(object.message_content) : "",
5293
+ message_attachment: isSet(object.message_attachment) ? globalThis.String(object.message_attachment) : "",
5294
+ message_created_time: isSet(object.message_created_time) ? globalThis.String(object.message_created_time) : "",
5108
5295
  };
5109
5296
  },
5110
5297
  toJSON(message) {
@@ -5133,13 +5320,31 @@ exports.LastPinMessageEvent = {
5133
5320
  if (message.is_public !== false) {
5134
5321
  obj.is_public = message.is_public;
5135
5322
  }
5323
+ if (message.message_sender_avatar !== "") {
5324
+ obj.message_sender_avatar = message.message_sender_avatar;
5325
+ }
5326
+ if (message.message_sender_id !== "") {
5327
+ obj.message_sender_id = message.message_sender_id;
5328
+ }
5329
+ if (message.message_sender_username !== "") {
5330
+ obj.message_sender_username = message.message_sender_username;
5331
+ }
5332
+ if (message.message_content !== "") {
5333
+ obj.message_content = message.message_content;
5334
+ }
5335
+ if (message.message_attachment !== "") {
5336
+ obj.message_attachment = message.message_attachment;
5337
+ }
5338
+ if (message.message_created_time !== "") {
5339
+ obj.message_created_time = message.message_created_time;
5340
+ }
5136
5341
  return obj;
5137
5342
  },
5138
5343
  create(base) {
5139
5344
  return exports.LastPinMessageEvent.fromPartial(base !== null && base !== void 0 ? base : {});
5140
5345
  },
5141
5346
  fromPartial(object) {
5142
- var _a, _b, _c, _d, _e, _f, _g, _h;
5347
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
5143
5348
  const message = createBaseLastPinMessageEvent();
5144
5349
  message.clan_id = (_a = object.clan_id) !== null && _a !== void 0 ? _a : "";
5145
5350
  message.channel_id = (_b = object.channel_id) !== null && _b !== void 0 ? _b : "";
@@ -5149,6 +5354,12 @@ exports.LastPinMessageEvent = {
5149
5354
  message.timestamp_seconds = (_f = object.timestamp_seconds) !== null && _f !== void 0 ? _f : 0;
5150
5355
  message.operation = (_g = object.operation) !== null && _g !== void 0 ? _g : 0;
5151
5356
  message.is_public = (_h = object.is_public) !== null && _h !== void 0 ? _h : false;
5357
+ message.message_sender_avatar = (_j = object.message_sender_avatar) !== null && _j !== void 0 ? _j : "";
5358
+ message.message_sender_id = (_k = object.message_sender_id) !== null && _k !== void 0 ? _k : "";
5359
+ message.message_sender_username = (_l = object.message_sender_username) !== null && _l !== void 0 ? _l : "";
5360
+ message.message_content = (_m = object.message_content) !== null && _m !== void 0 ? _m : "";
5361
+ message.message_attachment = (_o = object.message_attachment) !== null && _o !== void 0 ? _o : "";
5362
+ message.message_created_time = (_p = object.message_created_time) !== null && _p !== void 0 ? _p : "";
5152
5363
  return message;
5153
5364
  },
5154
5365
  };
@@ -7211,6 +7422,7 @@ function createBaseChannelUpdatedEvent() {
7211
7422
  topic: "",
7212
7423
  age_restricted: 0,
7213
7424
  active: 0,
7425
+ count_mess_unread: 0,
7214
7426
  };
7215
7427
  }
7216
7428
  exports.ChannelUpdatedEvent = {
@@ -7263,6 +7475,9 @@ exports.ChannelUpdatedEvent = {
7263
7475
  if (message.active !== 0) {
7264
7476
  writer.uint32(128).int32(message.active);
7265
7477
  }
7478
+ if (message.count_mess_unread !== 0) {
7479
+ writer.uint32(136).int32(message.count_mess_unread);
7480
+ }
7266
7481
  return writer;
7267
7482
  },
7268
7483
  decode(input, length) {
@@ -7368,6 +7583,12 @@ exports.ChannelUpdatedEvent = {
7368
7583
  }
7369
7584
  message.active = reader.int32();
7370
7585
  continue;
7586
+ case 17:
7587
+ if (tag !== 136) {
7588
+ break;
7589
+ }
7590
+ message.count_mess_unread = reader.int32();
7591
+ continue;
7371
7592
  }
7372
7593
  if ((tag & 7) === 4 || tag === 0) {
7373
7594
  break;
@@ -7394,6 +7615,7 @@ exports.ChannelUpdatedEvent = {
7394
7615
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
7395
7616
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7396
7617
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
7618
+ count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
7397
7619
  };
7398
7620
  },
7399
7621
  toJSON(message) {
@@ -7446,13 +7668,16 @@ exports.ChannelUpdatedEvent = {
7446
7668
  if (message.active !== 0) {
7447
7669
  obj.active = Math.round(message.active);
7448
7670
  }
7671
+ if (message.count_mess_unread !== 0) {
7672
+ obj.count_mess_unread = Math.round(message.count_mess_unread);
7673
+ }
7449
7674
  return obj;
7450
7675
  },
7451
7676
  create(base) {
7452
7677
  return exports.ChannelUpdatedEvent.fromPartial(base !== null && base !== void 0 ? base : {});
7453
7678
  },
7454
7679
  fromPartial(object) {
7455
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
7680
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
7456
7681
  const message = createBaseChannelUpdatedEvent();
7457
7682
  message.clan_id = (_a = object.clan_id) !== null && _a !== void 0 ? _a : "";
7458
7683
  message.category_id = (_b = object.category_id) !== null && _b !== void 0 ? _b : "";
@@ -7470,6 +7695,7 @@ exports.ChannelUpdatedEvent = {
7470
7695
  message.topic = (_p = object.topic) !== null && _p !== void 0 ? _p : "";
7471
7696
  message.age_restricted = (_q = object.age_restricted) !== null && _q !== void 0 ? _q : 0;
7472
7697
  message.active = (_r = object.active) !== null && _r !== void 0 ? _r : 0;
7698
+ message.count_mess_unread = (_s = object.count_mess_unread) !== null && _s !== void 0 ? _s : 0;
7473
7699
  return message;
7474
7700
  },
7475
7701
  };
@@ -9480,6 +9706,7 @@ function createBaseEventEmoji() {
9480
9706
  user_id: "",
9481
9707
  logo: "",
9482
9708
  clan_name: "",
9709
+ is_for_sale: false,
9483
9710
  };
9484
9711
  }
9485
9712
  exports.EventEmoji = {
@@ -9511,6 +9738,9 @@ exports.EventEmoji = {
9511
9738
  if (message.clan_name !== "") {
9512
9739
  writer.uint32(74).string(message.clan_name);
9513
9740
  }
9741
+ if (message.is_for_sale !== false) {
9742
+ writer.uint32(80).bool(message.is_for_sale);
9743
+ }
9514
9744
  return writer;
9515
9745
  },
9516
9746
  decode(input, length) {
@@ -9574,6 +9804,12 @@ exports.EventEmoji = {
9574
9804
  }
9575
9805
  message.clan_name = reader.string();
9576
9806
  continue;
9807
+ case 10:
9808
+ if (tag !== 80) {
9809
+ break;
9810
+ }
9811
+ message.is_for_sale = reader.bool();
9812
+ continue;
9577
9813
  }
9578
9814
  if ((tag & 7) === 4 || tag === 0) {
9579
9815
  break;
@@ -9593,6 +9829,7 @@ exports.EventEmoji = {
9593
9829
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
9594
9830
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
9595
9831
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
9832
+ is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
9596
9833
  };
9597
9834
  },
9598
9835
  toJSON(message) {
@@ -9624,13 +9861,16 @@ exports.EventEmoji = {
9624
9861
  if (message.clan_name !== "") {
9625
9862
  obj.clan_name = message.clan_name;
9626
9863
  }
9864
+ if (message.is_for_sale !== false) {
9865
+ obj.is_for_sale = message.is_for_sale;
9866
+ }
9627
9867
  return obj;
9628
9868
  },
9629
9869
  create(base) {
9630
9870
  return exports.EventEmoji.fromPartial(base !== null && base !== void 0 ? base : {});
9631
9871
  },
9632
9872
  fromPartial(object) {
9633
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
9873
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
9634
9874
  const message = createBaseEventEmoji();
9635
9875
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
9636
9876
  message.clan_id = (_b = object.clan_id) !== null && _b !== void 0 ? _b : "";
@@ -9641,6 +9881,7 @@ exports.EventEmoji = {
9641
9881
  message.user_id = (_g = object.user_id) !== null && _g !== void 0 ? _g : "";
9642
9882
  message.logo = (_h = object.logo) !== null && _h !== void 0 ? _h : "";
9643
9883
  message.clan_name = (_j = object.clan_name) !== null && _j !== void 0 ? _j : "";
9884
+ message.is_for_sale = (_k = object.is_for_sale) !== null && _k !== void 0 ? _k : false;
9644
9885
  return message;
9645
9886
  },
9646
9887
  };
@@ -10903,6 +11144,1229 @@ exports.DeleteAccountEvent = {
10903
11144
  return message;
10904
11145
  },
10905
11146
  };
11147
+ function createBaseListDataSocket() {
11148
+ return {
11149
+ api_name: "",
11150
+ list_clan_req: undefined,
11151
+ clan_desc_list: undefined,
11152
+ list_thread_req: undefined,
11153
+ channel_desc_list: undefined,
11154
+ list_channel_users_uc_req: undefined,
11155
+ channel_users_uc_list: undefined,
11156
+ list_channel_detail_req: undefined,
11157
+ channel_desc: undefined,
11158
+ list_channel_req: undefined,
11159
+ list_channel_message_req: undefined,
11160
+ channel_message_list: undefined,
11161
+ list_channel_users_req: undefined,
11162
+ voice_user_list: undefined,
11163
+ channel_user_list: undefined,
11164
+ list_channel_attachment_req: undefined,
11165
+ channel_attachment_list: undefined,
11166
+ hashtag_dm_req: undefined,
11167
+ hashtag_dm_list: undefined,
11168
+ channel_setting_req: undefined,
11169
+ channel_setting_list: undefined,
11170
+ favorite_channel_req: undefined,
11171
+ favorite_channel_list: undefined,
11172
+ search_thread_req: undefined,
11173
+ notification_channel: undefined,
11174
+ notificaion_user_channel: undefined,
11175
+ notification_category: undefined,
11176
+ notification_clan: undefined,
11177
+ notification_setting: undefined,
11178
+ notification_message: undefined,
11179
+ noti_channel_cat_setting_list: undefined,
11180
+ list_notification_req: undefined,
11181
+ notification_list: undefined,
11182
+ sticker_list: undefined,
11183
+ emoji_recent_list: undefined,
11184
+ clan_webhook_req: undefined,
11185
+ clan_webhook_list: undefined,
11186
+ webhook_list_req: undefined,
11187
+ webhook_list: undefined,
11188
+ permission_list_req: undefined,
11189
+ permission_list: undefined,
11190
+ role_user_req: undefined,
11191
+ role_user_list: undefined,
11192
+ permission_user_req: undefined,
11193
+ role_list: undefined,
11194
+ role_list_event_req: undefined,
11195
+ role_event_list: undefined,
11196
+ user_permission_req: undefined,
11197
+ user_permission_list: undefined,
11198
+ permission_role_req: undefined,
11199
+ permission_role_list: undefined,
11200
+ emoji_list: undefined,
11201
+ list_friend_req: undefined,
11202
+ friend_list: undefined,
11203
+ list_apps_req: undefined,
11204
+ channel_apps_list: undefined,
11205
+ user_activity_list: undefined,
11206
+ list_clan_user_req: undefined,
11207
+ clan_user_list: undefined,
11208
+ list_event_req: undefined,
11209
+ event_list: undefined,
11210
+ list_category_req: undefined,
11211
+ category_list: undefined,
11212
+ stream_user_list: undefined,
11213
+ };
11214
+ }
11215
+ exports.ListDataSocket = {
11216
+ encode(message, writer = minimal_1.default.Writer.create()) {
11217
+ if (message.api_name !== "") {
11218
+ writer.uint32(10).string(message.api_name);
11219
+ }
11220
+ if (message.list_clan_req !== undefined) {
11221
+ api_1.ListClanDescRequest.encode(message.list_clan_req, writer.uint32(18).fork()).ldelim();
11222
+ }
11223
+ if (message.clan_desc_list !== undefined) {
11224
+ api_1.ClanDescList.encode(message.clan_desc_list, writer.uint32(26).fork()).ldelim();
11225
+ }
11226
+ if (message.list_thread_req !== undefined) {
11227
+ api_1.ListThreadRequest.encode(message.list_thread_req, writer.uint32(34).fork()).ldelim();
11228
+ }
11229
+ if (message.channel_desc_list !== undefined) {
11230
+ api_1.ChannelDescList.encode(message.channel_desc_list, writer.uint32(42).fork()).ldelim();
11231
+ }
11232
+ if (message.list_channel_users_uc_req !== undefined) {
11233
+ api_1.AllUsersAddChannelRequest.encode(message.list_channel_users_uc_req, writer.uint32(50).fork()).ldelim();
11234
+ }
11235
+ if (message.channel_users_uc_list !== undefined) {
11236
+ api_1.AllUsersAddChannelResponse.encode(message.channel_users_uc_list, writer.uint32(58).fork()).ldelim();
11237
+ }
11238
+ if (message.list_channel_detail_req !== undefined) {
11239
+ api_1.ListChannelDetailRequest.encode(message.list_channel_detail_req, writer.uint32(66).fork()).ldelim();
11240
+ }
11241
+ if (message.channel_desc !== undefined) {
11242
+ api_1.ChannelDescription.encode(message.channel_desc, writer.uint32(74).fork()).ldelim();
11243
+ }
11244
+ if (message.list_channel_req !== undefined) {
11245
+ api_1.ListChannelDescsRequest.encode(message.list_channel_req, writer.uint32(82).fork()).ldelim();
11246
+ }
11247
+ if (message.list_channel_message_req !== undefined) {
11248
+ api_1.ListChannelMessagesRequest.encode(message.list_channel_message_req, writer.uint32(90).fork()).ldelim();
11249
+ }
11250
+ if (message.channel_message_list !== undefined) {
11251
+ api_1.ChannelMessageList.encode(message.channel_message_list, writer.uint32(98).fork()).ldelim();
11252
+ }
11253
+ if (message.list_channel_users_req !== undefined) {
11254
+ api_1.ListChannelUsersRequest.encode(message.list_channel_users_req, writer.uint32(106).fork()).ldelim();
11255
+ }
11256
+ if (message.voice_user_list !== undefined) {
11257
+ api_1.VoiceChannelUserList.encode(message.voice_user_list, writer.uint32(114).fork()).ldelim();
11258
+ }
11259
+ if (message.channel_user_list !== undefined) {
11260
+ api_1.ChannelUserList.encode(message.channel_user_list, writer.uint32(122).fork()).ldelim();
11261
+ }
11262
+ if (message.list_channel_attachment_req !== undefined) {
11263
+ api_1.ListChannelAttachmentRequest.encode(message.list_channel_attachment_req, writer.uint32(130).fork()).ldelim();
11264
+ }
11265
+ if (message.channel_attachment_list !== undefined) {
11266
+ api_1.ChannelAttachmentList.encode(message.channel_attachment_list, writer.uint32(138).fork()).ldelim();
11267
+ }
11268
+ if (message.hashtag_dm_req !== undefined) {
11269
+ api_1.HashtagDmListRequest.encode(message.hashtag_dm_req, writer.uint32(146).fork()).ldelim();
11270
+ }
11271
+ if (message.hashtag_dm_list !== undefined) {
11272
+ api_1.HashtagDmList.encode(message.hashtag_dm_list, writer.uint32(154).fork()).ldelim();
11273
+ }
11274
+ if (message.channel_setting_req !== undefined) {
11275
+ api_1.ChannelSettingListRequest.encode(message.channel_setting_req, writer.uint32(162).fork()).ldelim();
11276
+ }
11277
+ if (message.channel_setting_list !== undefined) {
11278
+ api_1.ChannelSettingListResponse.encode(message.channel_setting_list, writer.uint32(170).fork()).ldelim();
11279
+ }
11280
+ if (message.favorite_channel_req !== undefined) {
11281
+ api_1.ListFavoriteChannelRequest.encode(message.favorite_channel_req, writer.uint32(178).fork()).ldelim();
11282
+ }
11283
+ if (message.favorite_channel_list !== undefined) {
11284
+ api_1.ListFavoriteChannelResponse.encode(message.favorite_channel_list, writer.uint32(186).fork()).ldelim();
11285
+ }
11286
+ if (message.search_thread_req !== undefined) {
11287
+ api_1.SearchThreadRequest.encode(message.search_thread_req, writer.uint32(194).fork()).ldelim();
11288
+ }
11289
+ if (message.notification_channel !== undefined) {
11290
+ api_1.NotificationChannel.encode(message.notification_channel, writer.uint32(202).fork()).ldelim();
11291
+ }
11292
+ if (message.notificaion_user_channel !== undefined) {
11293
+ api_1.NotificationUserChannel.encode(message.notificaion_user_channel, writer.uint32(210).fork()).ldelim();
11294
+ }
11295
+ if (message.notification_category !== undefined) {
11296
+ api_1.DefaultNotificationCategory.encode(message.notification_category, writer.uint32(218).fork()).ldelim();
11297
+ }
11298
+ if (message.notification_clan !== undefined) {
11299
+ api_1.NotificationClan.encode(message.notification_clan, writer.uint32(226).fork()).ldelim();
11300
+ }
11301
+ if (message.notification_setting !== undefined) {
11302
+ api_1.NotificationSetting.encode(message.notification_setting, writer.uint32(234).fork()).ldelim();
11303
+ }
11304
+ if (message.notification_message !== undefined) {
11305
+ api_1.NotifiReactMessage.encode(message.notification_message, writer.uint32(242).fork()).ldelim();
11306
+ }
11307
+ if (message.noti_channel_cat_setting_list !== undefined) {
11308
+ api_1.NotificationChannelCategorySettingList.encode(message.noti_channel_cat_setting_list, writer.uint32(250).fork())
11309
+ .ldelim();
11310
+ }
11311
+ if (message.list_notification_req !== undefined) {
11312
+ api_1.ListNotificationsRequest.encode(message.list_notification_req, writer.uint32(258).fork()).ldelim();
11313
+ }
11314
+ if (message.notification_list !== undefined) {
11315
+ api_1.NotificationList.encode(message.notification_list, writer.uint32(266).fork()).ldelim();
11316
+ }
11317
+ if (message.sticker_list !== undefined) {
11318
+ api_1.StickerListedResponse.encode(message.sticker_list, writer.uint32(274).fork()).ldelim();
11319
+ }
11320
+ if (message.emoji_recent_list !== undefined) {
11321
+ api_1.EmojiRecentList.encode(message.emoji_recent_list, writer.uint32(282).fork()).ldelim();
11322
+ }
11323
+ if (message.clan_webhook_req !== undefined) {
11324
+ api_1.ListClanWebhookRequest.encode(message.clan_webhook_req, writer.uint32(290).fork()).ldelim();
11325
+ }
11326
+ if (message.clan_webhook_list !== undefined) {
11327
+ api_1.ListClanWebhookResponse.encode(message.clan_webhook_list, writer.uint32(298).fork()).ldelim();
11328
+ }
11329
+ if (message.webhook_list_req !== undefined) {
11330
+ api_1.WebhookListRequest.encode(message.webhook_list_req, writer.uint32(306).fork()).ldelim();
11331
+ }
11332
+ if (message.webhook_list !== undefined) {
11333
+ api_1.WebhookListResponse.encode(message.webhook_list, writer.uint32(314).fork()).ldelim();
11334
+ }
11335
+ if (message.permission_list_req !== undefined) {
11336
+ api_1.ListPermissionsRequest.encode(message.permission_list_req, writer.uint32(322).fork()).ldelim();
11337
+ }
11338
+ if (message.permission_list !== undefined) {
11339
+ api_1.PermissionList.encode(message.permission_list, writer.uint32(330).fork()).ldelim();
11340
+ }
11341
+ if (message.role_user_req !== undefined) {
11342
+ api_1.ListRoleUsersRequest.encode(message.role_user_req, writer.uint32(338).fork()).ldelim();
11343
+ }
11344
+ if (message.role_user_list !== undefined) {
11345
+ api_1.RoleUserList.encode(message.role_user_list, writer.uint32(346).fork()).ldelim();
11346
+ }
11347
+ if (message.permission_user_req !== undefined) {
11348
+ api_1.ListPermissionOfUsersRequest.encode(message.permission_user_req, writer.uint32(354).fork()).ldelim();
11349
+ }
11350
+ if (message.role_list !== undefined) {
11351
+ api_1.RoleList.encode(message.role_list, writer.uint32(362).fork()).ldelim();
11352
+ }
11353
+ if (message.role_list_event_req !== undefined) {
11354
+ api_1.RoleListEventRequest.encode(message.role_list_event_req, writer.uint32(370).fork()).ldelim();
11355
+ }
11356
+ if (message.role_event_list !== undefined) {
11357
+ api_1.RoleListEventResponse.encode(message.role_event_list, writer.uint32(378).fork()).ldelim();
11358
+ }
11359
+ if (message.user_permission_req !== undefined) {
11360
+ api_1.UserPermissionInChannelListRequest.encode(message.user_permission_req, writer.uint32(386).fork()).ldelim();
11361
+ }
11362
+ if (message.user_permission_list !== undefined) {
11363
+ api_1.UserPermissionInChannelListResponse.encode(message.user_permission_list, writer.uint32(394).fork()).ldelim();
11364
+ }
11365
+ if (message.permission_role_req !== undefined) {
11366
+ api_1.PermissionRoleChannelListEventRequest.encode(message.permission_role_req, writer.uint32(402).fork()).ldelim();
11367
+ }
11368
+ if (message.permission_role_list !== undefined) {
11369
+ api_1.PermissionRoleChannelListEventResponse.encode(message.permission_role_list, writer.uint32(410).fork()).ldelim();
11370
+ }
11371
+ if (message.emoji_list !== undefined) {
11372
+ api_1.EmojiListedResponse.encode(message.emoji_list, writer.uint32(418).fork()).ldelim();
11373
+ }
11374
+ if (message.list_friend_req !== undefined) {
11375
+ api_1.ListFriendsRequest.encode(message.list_friend_req, writer.uint32(426).fork()).ldelim();
11376
+ }
11377
+ if (message.friend_list !== undefined) {
11378
+ api_1.FriendList.encode(message.friend_list, writer.uint32(434).fork()).ldelim();
11379
+ }
11380
+ if (message.list_apps_req !== undefined) {
11381
+ api_1.ListChannelAppsRequest.encode(message.list_apps_req, writer.uint32(442).fork()).ldelim();
11382
+ }
11383
+ if (message.channel_apps_list !== undefined) {
11384
+ api_1.ListChannelAppsResponse.encode(message.channel_apps_list, writer.uint32(450).fork()).ldelim();
11385
+ }
11386
+ if (message.user_activity_list !== undefined) {
11387
+ api_1.ListUserActivity.encode(message.user_activity_list, writer.uint32(458).fork()).ldelim();
11388
+ }
11389
+ if (message.list_clan_user_req !== undefined) {
11390
+ api_1.ListClanUsersRequest.encode(message.list_clan_user_req, writer.uint32(466).fork()).ldelim();
11391
+ }
11392
+ if (message.clan_user_list !== undefined) {
11393
+ api_1.ClanUserList.encode(message.clan_user_list, writer.uint32(474).fork()).ldelim();
11394
+ }
11395
+ if (message.list_event_req !== undefined) {
11396
+ api_1.ListEventsRequest.encode(message.list_event_req, writer.uint32(482).fork()).ldelim();
11397
+ }
11398
+ if (message.event_list !== undefined) {
11399
+ api_1.EventList.encode(message.event_list, writer.uint32(490).fork()).ldelim();
11400
+ }
11401
+ if (message.list_category_req !== undefined) {
11402
+ api_1.CategoryDesc.encode(message.list_category_req, writer.uint32(498).fork()).ldelim();
11403
+ }
11404
+ if (message.category_list !== undefined) {
11405
+ api_1.CategoryDescList.encode(message.category_list, writer.uint32(506).fork()).ldelim();
11406
+ }
11407
+ if (message.stream_user_list !== undefined) {
11408
+ api_1.StreamingChannelUserList.encode(message.stream_user_list, writer.uint32(514).fork()).ldelim();
11409
+ }
11410
+ return writer;
11411
+ },
11412
+ decode(input, length) {
11413
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
11414
+ let end = length === undefined ? reader.len : reader.pos + length;
11415
+ const message = createBaseListDataSocket();
11416
+ while (reader.pos < end) {
11417
+ const tag = reader.uint32();
11418
+ switch (tag >>> 3) {
11419
+ case 1:
11420
+ if (tag !== 10) {
11421
+ break;
11422
+ }
11423
+ message.api_name = reader.string();
11424
+ continue;
11425
+ case 2:
11426
+ if (tag !== 18) {
11427
+ break;
11428
+ }
11429
+ message.list_clan_req = api_1.ListClanDescRequest.decode(reader, reader.uint32());
11430
+ continue;
11431
+ case 3:
11432
+ if (tag !== 26) {
11433
+ break;
11434
+ }
11435
+ message.clan_desc_list = api_1.ClanDescList.decode(reader, reader.uint32());
11436
+ continue;
11437
+ case 4:
11438
+ if (tag !== 34) {
11439
+ break;
11440
+ }
11441
+ message.list_thread_req = api_1.ListThreadRequest.decode(reader, reader.uint32());
11442
+ continue;
11443
+ case 5:
11444
+ if (tag !== 42) {
11445
+ break;
11446
+ }
11447
+ message.channel_desc_list = api_1.ChannelDescList.decode(reader, reader.uint32());
11448
+ continue;
11449
+ case 6:
11450
+ if (tag !== 50) {
11451
+ break;
11452
+ }
11453
+ message.list_channel_users_uc_req = api_1.AllUsersAddChannelRequest.decode(reader, reader.uint32());
11454
+ continue;
11455
+ case 7:
11456
+ if (tag !== 58) {
11457
+ break;
11458
+ }
11459
+ message.channel_users_uc_list = api_1.AllUsersAddChannelResponse.decode(reader, reader.uint32());
11460
+ continue;
11461
+ case 8:
11462
+ if (tag !== 66) {
11463
+ break;
11464
+ }
11465
+ message.list_channel_detail_req = api_1.ListChannelDetailRequest.decode(reader, reader.uint32());
11466
+ continue;
11467
+ case 9:
11468
+ if (tag !== 74) {
11469
+ break;
11470
+ }
11471
+ message.channel_desc = api_1.ChannelDescription.decode(reader, reader.uint32());
11472
+ continue;
11473
+ case 10:
11474
+ if (tag !== 82) {
11475
+ break;
11476
+ }
11477
+ message.list_channel_req = api_1.ListChannelDescsRequest.decode(reader, reader.uint32());
11478
+ continue;
11479
+ case 11:
11480
+ if (tag !== 90) {
11481
+ break;
11482
+ }
11483
+ message.list_channel_message_req = api_1.ListChannelMessagesRequest.decode(reader, reader.uint32());
11484
+ continue;
11485
+ case 12:
11486
+ if (tag !== 98) {
11487
+ break;
11488
+ }
11489
+ message.channel_message_list = api_1.ChannelMessageList.decode(reader, reader.uint32());
11490
+ continue;
11491
+ case 13:
11492
+ if (tag !== 106) {
11493
+ break;
11494
+ }
11495
+ message.list_channel_users_req = api_1.ListChannelUsersRequest.decode(reader, reader.uint32());
11496
+ continue;
11497
+ case 14:
11498
+ if (tag !== 114) {
11499
+ break;
11500
+ }
11501
+ message.voice_user_list = api_1.VoiceChannelUserList.decode(reader, reader.uint32());
11502
+ continue;
11503
+ case 15:
11504
+ if (tag !== 122) {
11505
+ break;
11506
+ }
11507
+ message.channel_user_list = api_1.ChannelUserList.decode(reader, reader.uint32());
11508
+ continue;
11509
+ case 16:
11510
+ if (tag !== 130) {
11511
+ break;
11512
+ }
11513
+ message.list_channel_attachment_req = api_1.ListChannelAttachmentRequest.decode(reader, reader.uint32());
11514
+ continue;
11515
+ case 17:
11516
+ if (tag !== 138) {
11517
+ break;
11518
+ }
11519
+ message.channel_attachment_list = api_1.ChannelAttachmentList.decode(reader, reader.uint32());
11520
+ continue;
11521
+ case 18:
11522
+ if (tag !== 146) {
11523
+ break;
11524
+ }
11525
+ message.hashtag_dm_req = api_1.HashtagDmListRequest.decode(reader, reader.uint32());
11526
+ continue;
11527
+ case 19:
11528
+ if (tag !== 154) {
11529
+ break;
11530
+ }
11531
+ message.hashtag_dm_list = api_1.HashtagDmList.decode(reader, reader.uint32());
11532
+ continue;
11533
+ case 20:
11534
+ if (tag !== 162) {
11535
+ break;
11536
+ }
11537
+ message.channel_setting_req = api_1.ChannelSettingListRequest.decode(reader, reader.uint32());
11538
+ continue;
11539
+ case 21:
11540
+ if (tag !== 170) {
11541
+ break;
11542
+ }
11543
+ message.channel_setting_list = api_1.ChannelSettingListResponse.decode(reader, reader.uint32());
11544
+ continue;
11545
+ case 22:
11546
+ if (tag !== 178) {
11547
+ break;
11548
+ }
11549
+ message.favorite_channel_req = api_1.ListFavoriteChannelRequest.decode(reader, reader.uint32());
11550
+ continue;
11551
+ case 23:
11552
+ if (tag !== 186) {
11553
+ break;
11554
+ }
11555
+ message.favorite_channel_list = api_1.ListFavoriteChannelResponse.decode(reader, reader.uint32());
11556
+ continue;
11557
+ case 24:
11558
+ if (tag !== 194) {
11559
+ break;
11560
+ }
11561
+ message.search_thread_req = api_1.SearchThreadRequest.decode(reader, reader.uint32());
11562
+ continue;
11563
+ case 25:
11564
+ if (tag !== 202) {
11565
+ break;
11566
+ }
11567
+ message.notification_channel = api_1.NotificationChannel.decode(reader, reader.uint32());
11568
+ continue;
11569
+ case 26:
11570
+ if (tag !== 210) {
11571
+ break;
11572
+ }
11573
+ message.notificaion_user_channel = api_1.NotificationUserChannel.decode(reader, reader.uint32());
11574
+ continue;
11575
+ case 27:
11576
+ if (tag !== 218) {
11577
+ break;
11578
+ }
11579
+ message.notification_category = api_1.DefaultNotificationCategory.decode(reader, reader.uint32());
11580
+ continue;
11581
+ case 28:
11582
+ if (tag !== 226) {
11583
+ break;
11584
+ }
11585
+ message.notification_clan = api_1.NotificationClan.decode(reader, reader.uint32());
11586
+ continue;
11587
+ case 29:
11588
+ if (tag !== 234) {
11589
+ break;
11590
+ }
11591
+ message.notification_setting = api_1.NotificationSetting.decode(reader, reader.uint32());
11592
+ continue;
11593
+ case 30:
11594
+ if (tag !== 242) {
11595
+ break;
11596
+ }
11597
+ message.notification_message = api_1.NotifiReactMessage.decode(reader, reader.uint32());
11598
+ continue;
11599
+ case 31:
11600
+ if (tag !== 250) {
11601
+ break;
11602
+ }
11603
+ message.noti_channel_cat_setting_list = api_1.NotificationChannelCategorySettingList.decode(reader, reader.uint32());
11604
+ continue;
11605
+ case 32:
11606
+ if (tag !== 258) {
11607
+ break;
11608
+ }
11609
+ message.list_notification_req = api_1.ListNotificationsRequest.decode(reader, reader.uint32());
11610
+ continue;
11611
+ case 33:
11612
+ if (tag !== 266) {
11613
+ break;
11614
+ }
11615
+ message.notification_list = api_1.NotificationList.decode(reader, reader.uint32());
11616
+ continue;
11617
+ case 34:
11618
+ if (tag !== 274) {
11619
+ break;
11620
+ }
11621
+ message.sticker_list = api_1.StickerListedResponse.decode(reader, reader.uint32());
11622
+ continue;
11623
+ case 35:
11624
+ if (tag !== 282) {
11625
+ break;
11626
+ }
11627
+ message.emoji_recent_list = api_1.EmojiRecentList.decode(reader, reader.uint32());
11628
+ continue;
11629
+ case 36:
11630
+ if (tag !== 290) {
11631
+ break;
11632
+ }
11633
+ message.clan_webhook_req = api_1.ListClanWebhookRequest.decode(reader, reader.uint32());
11634
+ continue;
11635
+ case 37:
11636
+ if (tag !== 298) {
11637
+ break;
11638
+ }
11639
+ message.clan_webhook_list = api_1.ListClanWebhookResponse.decode(reader, reader.uint32());
11640
+ continue;
11641
+ case 38:
11642
+ if (tag !== 306) {
11643
+ break;
11644
+ }
11645
+ message.webhook_list_req = api_1.WebhookListRequest.decode(reader, reader.uint32());
11646
+ continue;
11647
+ case 39:
11648
+ if (tag !== 314) {
11649
+ break;
11650
+ }
11651
+ message.webhook_list = api_1.WebhookListResponse.decode(reader, reader.uint32());
11652
+ continue;
11653
+ case 40:
11654
+ if (tag !== 322) {
11655
+ break;
11656
+ }
11657
+ message.permission_list_req = api_1.ListPermissionsRequest.decode(reader, reader.uint32());
11658
+ continue;
11659
+ case 41:
11660
+ if (tag !== 330) {
11661
+ break;
11662
+ }
11663
+ message.permission_list = api_1.PermissionList.decode(reader, reader.uint32());
11664
+ continue;
11665
+ case 42:
11666
+ if (tag !== 338) {
11667
+ break;
11668
+ }
11669
+ message.role_user_req = api_1.ListRoleUsersRequest.decode(reader, reader.uint32());
11670
+ continue;
11671
+ case 43:
11672
+ if (tag !== 346) {
11673
+ break;
11674
+ }
11675
+ message.role_user_list = api_1.RoleUserList.decode(reader, reader.uint32());
11676
+ continue;
11677
+ case 44:
11678
+ if (tag !== 354) {
11679
+ break;
11680
+ }
11681
+ message.permission_user_req = api_1.ListPermissionOfUsersRequest.decode(reader, reader.uint32());
11682
+ continue;
11683
+ case 45:
11684
+ if (tag !== 362) {
11685
+ break;
11686
+ }
11687
+ message.role_list = api_1.RoleList.decode(reader, reader.uint32());
11688
+ continue;
11689
+ case 46:
11690
+ if (tag !== 370) {
11691
+ break;
11692
+ }
11693
+ message.role_list_event_req = api_1.RoleListEventRequest.decode(reader, reader.uint32());
11694
+ continue;
11695
+ case 47:
11696
+ if (tag !== 378) {
11697
+ break;
11698
+ }
11699
+ message.role_event_list = api_1.RoleListEventResponse.decode(reader, reader.uint32());
11700
+ continue;
11701
+ case 48:
11702
+ if (tag !== 386) {
11703
+ break;
11704
+ }
11705
+ message.user_permission_req = api_1.UserPermissionInChannelListRequest.decode(reader, reader.uint32());
11706
+ continue;
11707
+ case 49:
11708
+ if (tag !== 394) {
11709
+ break;
11710
+ }
11711
+ message.user_permission_list = api_1.UserPermissionInChannelListResponse.decode(reader, reader.uint32());
11712
+ continue;
11713
+ case 50:
11714
+ if (tag !== 402) {
11715
+ break;
11716
+ }
11717
+ message.permission_role_req = api_1.PermissionRoleChannelListEventRequest.decode(reader, reader.uint32());
11718
+ continue;
11719
+ case 51:
11720
+ if (tag !== 410) {
11721
+ break;
11722
+ }
11723
+ message.permission_role_list = api_1.PermissionRoleChannelListEventResponse.decode(reader, reader.uint32());
11724
+ continue;
11725
+ case 52:
11726
+ if (tag !== 418) {
11727
+ break;
11728
+ }
11729
+ message.emoji_list = api_1.EmojiListedResponse.decode(reader, reader.uint32());
11730
+ continue;
11731
+ case 53:
11732
+ if (tag !== 426) {
11733
+ break;
11734
+ }
11735
+ message.list_friend_req = api_1.ListFriendsRequest.decode(reader, reader.uint32());
11736
+ continue;
11737
+ case 54:
11738
+ if (tag !== 434) {
11739
+ break;
11740
+ }
11741
+ message.friend_list = api_1.FriendList.decode(reader, reader.uint32());
11742
+ continue;
11743
+ case 55:
11744
+ if (tag !== 442) {
11745
+ break;
11746
+ }
11747
+ message.list_apps_req = api_1.ListChannelAppsRequest.decode(reader, reader.uint32());
11748
+ continue;
11749
+ case 56:
11750
+ if (tag !== 450) {
11751
+ break;
11752
+ }
11753
+ message.channel_apps_list = api_1.ListChannelAppsResponse.decode(reader, reader.uint32());
11754
+ continue;
11755
+ case 57:
11756
+ if (tag !== 458) {
11757
+ break;
11758
+ }
11759
+ message.user_activity_list = api_1.ListUserActivity.decode(reader, reader.uint32());
11760
+ continue;
11761
+ case 58:
11762
+ if (tag !== 466) {
11763
+ break;
11764
+ }
11765
+ message.list_clan_user_req = api_1.ListClanUsersRequest.decode(reader, reader.uint32());
11766
+ continue;
11767
+ case 59:
11768
+ if (tag !== 474) {
11769
+ break;
11770
+ }
11771
+ message.clan_user_list = api_1.ClanUserList.decode(reader, reader.uint32());
11772
+ continue;
11773
+ case 60:
11774
+ if (tag !== 482) {
11775
+ break;
11776
+ }
11777
+ message.list_event_req = api_1.ListEventsRequest.decode(reader, reader.uint32());
11778
+ continue;
11779
+ case 61:
11780
+ if (tag !== 490) {
11781
+ break;
11782
+ }
11783
+ message.event_list = api_1.EventList.decode(reader, reader.uint32());
11784
+ continue;
11785
+ case 62:
11786
+ if (tag !== 498) {
11787
+ break;
11788
+ }
11789
+ message.list_category_req = api_1.CategoryDesc.decode(reader, reader.uint32());
11790
+ continue;
11791
+ case 63:
11792
+ if (tag !== 506) {
11793
+ break;
11794
+ }
11795
+ message.category_list = api_1.CategoryDescList.decode(reader, reader.uint32());
11796
+ continue;
11797
+ case 64:
11798
+ if (tag !== 514) {
11799
+ break;
11800
+ }
11801
+ message.stream_user_list = api_1.StreamingChannelUserList.decode(reader, reader.uint32());
11802
+ continue;
11803
+ }
11804
+ if ((tag & 7) === 4 || tag === 0) {
11805
+ break;
11806
+ }
11807
+ reader.skipType(tag & 7);
11808
+ }
11809
+ return message;
11810
+ },
11811
+ fromJSON(object) {
11812
+ return {
11813
+ api_name: isSet(object.api_name) ? globalThis.String(object.api_name) : "",
11814
+ list_clan_req: isSet(object.list_clan_req) ? api_1.ListClanDescRequest.fromJSON(object.list_clan_req) : undefined,
11815
+ clan_desc_list: isSet(object.clan_desc_list) ? api_1.ClanDescList.fromJSON(object.clan_desc_list) : undefined,
11816
+ list_thread_req: isSet(object.list_thread_req) ? api_1.ListThreadRequest.fromJSON(object.list_thread_req) : undefined,
11817
+ channel_desc_list: isSet(object.channel_desc_list)
11818
+ ? api_1.ChannelDescList.fromJSON(object.channel_desc_list)
11819
+ : undefined,
11820
+ list_channel_users_uc_req: isSet(object.list_channel_users_uc_req)
11821
+ ? api_1.AllUsersAddChannelRequest.fromJSON(object.list_channel_users_uc_req)
11822
+ : undefined,
11823
+ channel_users_uc_list: isSet(object.channel_users_uc_list)
11824
+ ? api_1.AllUsersAddChannelResponse.fromJSON(object.channel_users_uc_list)
11825
+ : undefined,
11826
+ list_channel_detail_req: isSet(object.list_channel_detail_req)
11827
+ ? api_1.ListChannelDetailRequest.fromJSON(object.list_channel_detail_req)
11828
+ : undefined,
11829
+ channel_desc: isSet(object.channel_desc) ? api_1.ChannelDescription.fromJSON(object.channel_desc) : undefined,
11830
+ list_channel_req: isSet(object.list_channel_req)
11831
+ ? api_1.ListChannelDescsRequest.fromJSON(object.list_channel_req)
11832
+ : undefined,
11833
+ list_channel_message_req: isSet(object.list_channel_message_req)
11834
+ ? api_1.ListChannelMessagesRequest.fromJSON(object.list_channel_message_req)
11835
+ : undefined,
11836
+ channel_message_list: isSet(object.channel_message_list)
11837
+ ? api_1.ChannelMessageList.fromJSON(object.channel_message_list)
11838
+ : undefined,
11839
+ list_channel_users_req: isSet(object.list_channel_users_req)
11840
+ ? api_1.ListChannelUsersRequest.fromJSON(object.list_channel_users_req)
11841
+ : undefined,
11842
+ voice_user_list: isSet(object.voice_user_list)
11843
+ ? api_1.VoiceChannelUserList.fromJSON(object.voice_user_list)
11844
+ : undefined,
11845
+ channel_user_list: isSet(object.channel_user_list)
11846
+ ? api_1.ChannelUserList.fromJSON(object.channel_user_list)
11847
+ : undefined,
11848
+ list_channel_attachment_req: isSet(object.list_channel_attachment_req)
11849
+ ? api_1.ListChannelAttachmentRequest.fromJSON(object.list_channel_attachment_req)
11850
+ : undefined,
11851
+ channel_attachment_list: isSet(object.channel_attachment_list)
11852
+ ? api_1.ChannelAttachmentList.fromJSON(object.channel_attachment_list)
11853
+ : undefined,
11854
+ hashtag_dm_req: isSet(object.hashtag_dm_req) ? api_1.HashtagDmListRequest.fromJSON(object.hashtag_dm_req) : undefined,
11855
+ hashtag_dm_list: isSet(object.hashtag_dm_list) ? api_1.HashtagDmList.fromJSON(object.hashtag_dm_list) : undefined,
11856
+ channel_setting_req: isSet(object.channel_setting_req)
11857
+ ? api_1.ChannelSettingListRequest.fromJSON(object.channel_setting_req)
11858
+ : undefined,
11859
+ channel_setting_list: isSet(object.channel_setting_list)
11860
+ ? api_1.ChannelSettingListResponse.fromJSON(object.channel_setting_list)
11861
+ : undefined,
11862
+ favorite_channel_req: isSet(object.favorite_channel_req)
11863
+ ? api_1.ListFavoriteChannelRequest.fromJSON(object.favorite_channel_req)
11864
+ : undefined,
11865
+ favorite_channel_list: isSet(object.favorite_channel_list)
11866
+ ? api_1.ListFavoriteChannelResponse.fromJSON(object.favorite_channel_list)
11867
+ : undefined,
11868
+ search_thread_req: isSet(object.search_thread_req)
11869
+ ? api_1.SearchThreadRequest.fromJSON(object.search_thread_req)
11870
+ : undefined,
11871
+ notification_channel: isSet(object.notification_channel)
11872
+ ? api_1.NotificationChannel.fromJSON(object.notification_channel)
11873
+ : undefined,
11874
+ notificaion_user_channel: isSet(object.notificaion_user_channel)
11875
+ ? api_1.NotificationUserChannel.fromJSON(object.notificaion_user_channel)
11876
+ : undefined,
11877
+ notification_category: isSet(object.notification_category)
11878
+ ? api_1.DefaultNotificationCategory.fromJSON(object.notification_category)
11879
+ : undefined,
11880
+ notification_clan: isSet(object.notification_clan)
11881
+ ? api_1.NotificationClan.fromJSON(object.notification_clan)
11882
+ : undefined,
11883
+ notification_setting: isSet(object.notification_setting)
11884
+ ? api_1.NotificationSetting.fromJSON(object.notification_setting)
11885
+ : undefined,
11886
+ notification_message: isSet(object.notification_message)
11887
+ ? api_1.NotifiReactMessage.fromJSON(object.notification_message)
11888
+ : undefined,
11889
+ noti_channel_cat_setting_list: isSet(object.noti_channel_cat_setting_list)
11890
+ ? api_1.NotificationChannelCategorySettingList.fromJSON(object.noti_channel_cat_setting_list)
11891
+ : undefined,
11892
+ list_notification_req: isSet(object.list_notification_req)
11893
+ ? api_1.ListNotificationsRequest.fromJSON(object.list_notification_req)
11894
+ : undefined,
11895
+ notification_list: isSet(object.notification_list)
11896
+ ? api_1.NotificationList.fromJSON(object.notification_list)
11897
+ : undefined,
11898
+ sticker_list: isSet(object.sticker_list) ? api_1.StickerListedResponse.fromJSON(object.sticker_list) : undefined,
11899
+ emoji_recent_list: isSet(object.emoji_recent_list)
11900
+ ? api_1.EmojiRecentList.fromJSON(object.emoji_recent_list)
11901
+ : undefined,
11902
+ clan_webhook_req: isSet(object.clan_webhook_req)
11903
+ ? api_1.ListClanWebhookRequest.fromJSON(object.clan_webhook_req)
11904
+ : undefined,
11905
+ clan_webhook_list: isSet(object.clan_webhook_list)
11906
+ ? api_1.ListClanWebhookResponse.fromJSON(object.clan_webhook_list)
11907
+ : undefined,
11908
+ webhook_list_req: isSet(object.webhook_list_req)
11909
+ ? api_1.WebhookListRequest.fromJSON(object.webhook_list_req)
11910
+ : undefined,
11911
+ webhook_list: isSet(object.webhook_list) ? api_1.WebhookListResponse.fromJSON(object.webhook_list) : undefined,
11912
+ permission_list_req: isSet(object.permission_list_req)
11913
+ ? api_1.ListPermissionsRequest.fromJSON(object.permission_list_req)
11914
+ : undefined,
11915
+ permission_list: isSet(object.permission_list) ? api_1.PermissionList.fromJSON(object.permission_list) : undefined,
11916
+ role_user_req: isSet(object.role_user_req) ? api_1.ListRoleUsersRequest.fromJSON(object.role_user_req) : undefined,
11917
+ role_user_list: isSet(object.role_user_list) ? api_1.RoleUserList.fromJSON(object.role_user_list) : undefined,
11918
+ permission_user_req: isSet(object.permission_user_req)
11919
+ ? api_1.ListPermissionOfUsersRequest.fromJSON(object.permission_user_req)
11920
+ : undefined,
11921
+ role_list: isSet(object.role_list) ? api_1.RoleList.fromJSON(object.role_list) : undefined,
11922
+ role_list_event_req: isSet(object.role_list_event_req)
11923
+ ? api_1.RoleListEventRequest.fromJSON(object.role_list_event_req)
11924
+ : undefined,
11925
+ role_event_list: isSet(object.role_event_list)
11926
+ ? api_1.RoleListEventResponse.fromJSON(object.role_event_list)
11927
+ : undefined,
11928
+ user_permission_req: isSet(object.user_permission_req)
11929
+ ? api_1.UserPermissionInChannelListRequest.fromJSON(object.user_permission_req)
11930
+ : undefined,
11931
+ user_permission_list: isSet(object.user_permission_list)
11932
+ ? api_1.UserPermissionInChannelListResponse.fromJSON(object.user_permission_list)
11933
+ : undefined,
11934
+ permission_role_req: isSet(object.permission_role_req)
11935
+ ? api_1.PermissionRoleChannelListEventRequest.fromJSON(object.permission_role_req)
11936
+ : undefined,
11937
+ permission_role_list: isSet(object.permission_role_list)
11938
+ ? api_1.PermissionRoleChannelListEventResponse.fromJSON(object.permission_role_list)
11939
+ : undefined,
11940
+ emoji_list: isSet(object.emoji_list) ? api_1.EmojiListedResponse.fromJSON(object.emoji_list) : undefined,
11941
+ list_friend_req: isSet(object.list_friend_req) ? api_1.ListFriendsRequest.fromJSON(object.list_friend_req) : undefined,
11942
+ friend_list: isSet(object.friend_list) ? api_1.FriendList.fromJSON(object.friend_list) : undefined,
11943
+ list_apps_req: isSet(object.list_apps_req) ? api_1.ListChannelAppsRequest.fromJSON(object.list_apps_req) : undefined,
11944
+ channel_apps_list: isSet(object.channel_apps_list)
11945
+ ? api_1.ListChannelAppsResponse.fromJSON(object.channel_apps_list)
11946
+ : undefined,
11947
+ user_activity_list: isSet(object.user_activity_list)
11948
+ ? api_1.ListUserActivity.fromJSON(object.user_activity_list)
11949
+ : undefined,
11950
+ list_clan_user_req: isSet(object.list_clan_user_req)
11951
+ ? api_1.ListClanUsersRequest.fromJSON(object.list_clan_user_req)
11952
+ : undefined,
11953
+ clan_user_list: isSet(object.clan_user_list) ? api_1.ClanUserList.fromJSON(object.clan_user_list) : undefined,
11954
+ list_event_req: isSet(object.list_event_req) ? api_1.ListEventsRequest.fromJSON(object.list_event_req) : undefined,
11955
+ event_list: isSet(object.event_list) ? api_1.EventList.fromJSON(object.event_list) : undefined,
11956
+ list_category_req: isSet(object.list_category_req) ? api_1.CategoryDesc.fromJSON(object.list_category_req) : undefined,
11957
+ category_list: isSet(object.category_list) ? api_1.CategoryDescList.fromJSON(object.category_list) : undefined,
11958
+ stream_user_list: isSet(object.stream_user_list)
11959
+ ? api_1.StreamingChannelUserList.fromJSON(object.stream_user_list)
11960
+ : undefined,
11961
+ };
11962
+ },
11963
+ toJSON(message) {
11964
+ const obj = {};
11965
+ if (message.api_name !== "") {
11966
+ obj.api_name = message.api_name;
11967
+ }
11968
+ if (message.list_clan_req !== undefined) {
11969
+ obj.list_clan_req = api_1.ListClanDescRequest.toJSON(message.list_clan_req);
11970
+ }
11971
+ if (message.clan_desc_list !== undefined) {
11972
+ obj.clan_desc_list = api_1.ClanDescList.toJSON(message.clan_desc_list);
11973
+ }
11974
+ if (message.list_thread_req !== undefined) {
11975
+ obj.list_thread_req = api_1.ListThreadRequest.toJSON(message.list_thread_req);
11976
+ }
11977
+ if (message.channel_desc_list !== undefined) {
11978
+ obj.channel_desc_list = api_1.ChannelDescList.toJSON(message.channel_desc_list);
11979
+ }
11980
+ if (message.list_channel_users_uc_req !== undefined) {
11981
+ obj.list_channel_users_uc_req = api_1.AllUsersAddChannelRequest.toJSON(message.list_channel_users_uc_req);
11982
+ }
11983
+ if (message.channel_users_uc_list !== undefined) {
11984
+ obj.channel_users_uc_list = api_1.AllUsersAddChannelResponse.toJSON(message.channel_users_uc_list);
11985
+ }
11986
+ if (message.list_channel_detail_req !== undefined) {
11987
+ obj.list_channel_detail_req = api_1.ListChannelDetailRequest.toJSON(message.list_channel_detail_req);
11988
+ }
11989
+ if (message.channel_desc !== undefined) {
11990
+ obj.channel_desc = api_1.ChannelDescription.toJSON(message.channel_desc);
11991
+ }
11992
+ if (message.list_channel_req !== undefined) {
11993
+ obj.list_channel_req = api_1.ListChannelDescsRequest.toJSON(message.list_channel_req);
11994
+ }
11995
+ if (message.list_channel_message_req !== undefined) {
11996
+ obj.list_channel_message_req = api_1.ListChannelMessagesRequest.toJSON(message.list_channel_message_req);
11997
+ }
11998
+ if (message.channel_message_list !== undefined) {
11999
+ obj.channel_message_list = api_1.ChannelMessageList.toJSON(message.channel_message_list);
12000
+ }
12001
+ if (message.list_channel_users_req !== undefined) {
12002
+ obj.list_channel_users_req = api_1.ListChannelUsersRequest.toJSON(message.list_channel_users_req);
12003
+ }
12004
+ if (message.voice_user_list !== undefined) {
12005
+ obj.voice_user_list = api_1.VoiceChannelUserList.toJSON(message.voice_user_list);
12006
+ }
12007
+ if (message.channel_user_list !== undefined) {
12008
+ obj.channel_user_list = api_1.ChannelUserList.toJSON(message.channel_user_list);
12009
+ }
12010
+ if (message.list_channel_attachment_req !== undefined) {
12011
+ obj.list_channel_attachment_req = api_1.ListChannelAttachmentRequest.toJSON(message.list_channel_attachment_req);
12012
+ }
12013
+ if (message.channel_attachment_list !== undefined) {
12014
+ obj.channel_attachment_list = api_1.ChannelAttachmentList.toJSON(message.channel_attachment_list);
12015
+ }
12016
+ if (message.hashtag_dm_req !== undefined) {
12017
+ obj.hashtag_dm_req = api_1.HashtagDmListRequest.toJSON(message.hashtag_dm_req);
12018
+ }
12019
+ if (message.hashtag_dm_list !== undefined) {
12020
+ obj.hashtag_dm_list = api_1.HashtagDmList.toJSON(message.hashtag_dm_list);
12021
+ }
12022
+ if (message.channel_setting_req !== undefined) {
12023
+ obj.channel_setting_req = api_1.ChannelSettingListRequest.toJSON(message.channel_setting_req);
12024
+ }
12025
+ if (message.channel_setting_list !== undefined) {
12026
+ obj.channel_setting_list = api_1.ChannelSettingListResponse.toJSON(message.channel_setting_list);
12027
+ }
12028
+ if (message.favorite_channel_req !== undefined) {
12029
+ obj.favorite_channel_req = api_1.ListFavoriteChannelRequest.toJSON(message.favorite_channel_req);
12030
+ }
12031
+ if (message.favorite_channel_list !== undefined) {
12032
+ obj.favorite_channel_list = api_1.ListFavoriteChannelResponse.toJSON(message.favorite_channel_list);
12033
+ }
12034
+ if (message.search_thread_req !== undefined) {
12035
+ obj.search_thread_req = api_1.SearchThreadRequest.toJSON(message.search_thread_req);
12036
+ }
12037
+ if (message.notification_channel !== undefined) {
12038
+ obj.notification_channel = api_1.NotificationChannel.toJSON(message.notification_channel);
12039
+ }
12040
+ if (message.notificaion_user_channel !== undefined) {
12041
+ obj.notificaion_user_channel = api_1.NotificationUserChannel.toJSON(message.notificaion_user_channel);
12042
+ }
12043
+ if (message.notification_category !== undefined) {
12044
+ obj.notification_category = api_1.DefaultNotificationCategory.toJSON(message.notification_category);
12045
+ }
12046
+ if (message.notification_clan !== undefined) {
12047
+ obj.notification_clan = api_1.NotificationClan.toJSON(message.notification_clan);
12048
+ }
12049
+ if (message.notification_setting !== undefined) {
12050
+ obj.notification_setting = api_1.NotificationSetting.toJSON(message.notification_setting);
12051
+ }
12052
+ if (message.notification_message !== undefined) {
12053
+ obj.notification_message = api_1.NotifiReactMessage.toJSON(message.notification_message);
12054
+ }
12055
+ if (message.noti_channel_cat_setting_list !== undefined) {
12056
+ obj.noti_channel_cat_setting_list = api_1.NotificationChannelCategorySettingList.toJSON(message.noti_channel_cat_setting_list);
12057
+ }
12058
+ if (message.list_notification_req !== undefined) {
12059
+ obj.list_notification_req = api_1.ListNotificationsRequest.toJSON(message.list_notification_req);
12060
+ }
12061
+ if (message.notification_list !== undefined) {
12062
+ obj.notification_list = api_1.NotificationList.toJSON(message.notification_list);
12063
+ }
12064
+ if (message.sticker_list !== undefined) {
12065
+ obj.sticker_list = api_1.StickerListedResponse.toJSON(message.sticker_list);
12066
+ }
12067
+ if (message.emoji_recent_list !== undefined) {
12068
+ obj.emoji_recent_list = api_1.EmojiRecentList.toJSON(message.emoji_recent_list);
12069
+ }
12070
+ if (message.clan_webhook_req !== undefined) {
12071
+ obj.clan_webhook_req = api_1.ListClanWebhookRequest.toJSON(message.clan_webhook_req);
12072
+ }
12073
+ if (message.clan_webhook_list !== undefined) {
12074
+ obj.clan_webhook_list = api_1.ListClanWebhookResponse.toJSON(message.clan_webhook_list);
12075
+ }
12076
+ if (message.webhook_list_req !== undefined) {
12077
+ obj.webhook_list_req = api_1.WebhookListRequest.toJSON(message.webhook_list_req);
12078
+ }
12079
+ if (message.webhook_list !== undefined) {
12080
+ obj.webhook_list = api_1.WebhookListResponse.toJSON(message.webhook_list);
12081
+ }
12082
+ if (message.permission_list_req !== undefined) {
12083
+ obj.permission_list_req = api_1.ListPermissionsRequest.toJSON(message.permission_list_req);
12084
+ }
12085
+ if (message.permission_list !== undefined) {
12086
+ obj.permission_list = api_1.PermissionList.toJSON(message.permission_list);
12087
+ }
12088
+ if (message.role_user_req !== undefined) {
12089
+ obj.role_user_req = api_1.ListRoleUsersRequest.toJSON(message.role_user_req);
12090
+ }
12091
+ if (message.role_user_list !== undefined) {
12092
+ obj.role_user_list = api_1.RoleUserList.toJSON(message.role_user_list);
12093
+ }
12094
+ if (message.permission_user_req !== undefined) {
12095
+ obj.permission_user_req = api_1.ListPermissionOfUsersRequest.toJSON(message.permission_user_req);
12096
+ }
12097
+ if (message.role_list !== undefined) {
12098
+ obj.role_list = api_1.RoleList.toJSON(message.role_list);
12099
+ }
12100
+ if (message.role_list_event_req !== undefined) {
12101
+ obj.role_list_event_req = api_1.RoleListEventRequest.toJSON(message.role_list_event_req);
12102
+ }
12103
+ if (message.role_event_list !== undefined) {
12104
+ obj.role_event_list = api_1.RoleListEventResponse.toJSON(message.role_event_list);
12105
+ }
12106
+ if (message.user_permission_req !== undefined) {
12107
+ obj.user_permission_req = api_1.UserPermissionInChannelListRequest.toJSON(message.user_permission_req);
12108
+ }
12109
+ if (message.user_permission_list !== undefined) {
12110
+ obj.user_permission_list = api_1.UserPermissionInChannelListResponse.toJSON(message.user_permission_list);
12111
+ }
12112
+ if (message.permission_role_req !== undefined) {
12113
+ obj.permission_role_req = api_1.PermissionRoleChannelListEventRequest.toJSON(message.permission_role_req);
12114
+ }
12115
+ if (message.permission_role_list !== undefined) {
12116
+ obj.permission_role_list = api_1.PermissionRoleChannelListEventResponse.toJSON(message.permission_role_list);
12117
+ }
12118
+ if (message.emoji_list !== undefined) {
12119
+ obj.emoji_list = api_1.EmojiListedResponse.toJSON(message.emoji_list);
12120
+ }
12121
+ if (message.list_friend_req !== undefined) {
12122
+ obj.list_friend_req = api_1.ListFriendsRequest.toJSON(message.list_friend_req);
12123
+ }
12124
+ if (message.friend_list !== undefined) {
12125
+ obj.friend_list = api_1.FriendList.toJSON(message.friend_list);
12126
+ }
12127
+ if (message.list_apps_req !== undefined) {
12128
+ obj.list_apps_req = api_1.ListChannelAppsRequest.toJSON(message.list_apps_req);
12129
+ }
12130
+ if (message.channel_apps_list !== undefined) {
12131
+ obj.channel_apps_list = api_1.ListChannelAppsResponse.toJSON(message.channel_apps_list);
12132
+ }
12133
+ if (message.user_activity_list !== undefined) {
12134
+ obj.user_activity_list = api_1.ListUserActivity.toJSON(message.user_activity_list);
12135
+ }
12136
+ if (message.list_clan_user_req !== undefined) {
12137
+ obj.list_clan_user_req = api_1.ListClanUsersRequest.toJSON(message.list_clan_user_req);
12138
+ }
12139
+ if (message.clan_user_list !== undefined) {
12140
+ obj.clan_user_list = api_1.ClanUserList.toJSON(message.clan_user_list);
12141
+ }
12142
+ if (message.list_event_req !== undefined) {
12143
+ obj.list_event_req = api_1.ListEventsRequest.toJSON(message.list_event_req);
12144
+ }
12145
+ if (message.event_list !== undefined) {
12146
+ obj.event_list = api_1.EventList.toJSON(message.event_list);
12147
+ }
12148
+ if (message.list_category_req !== undefined) {
12149
+ obj.list_category_req = api_1.CategoryDesc.toJSON(message.list_category_req);
12150
+ }
12151
+ if (message.category_list !== undefined) {
12152
+ obj.category_list = api_1.CategoryDescList.toJSON(message.category_list);
12153
+ }
12154
+ if (message.stream_user_list !== undefined) {
12155
+ obj.stream_user_list = api_1.StreamingChannelUserList.toJSON(message.stream_user_list);
12156
+ }
12157
+ return obj;
12158
+ },
12159
+ create(base) {
12160
+ return exports.ListDataSocket.fromPartial(base !== null && base !== void 0 ? base : {});
12161
+ },
12162
+ fromPartial(object) {
12163
+ var _a;
12164
+ const message = createBaseListDataSocket();
12165
+ message.api_name = (_a = object.api_name) !== null && _a !== void 0 ? _a : "";
12166
+ message.list_clan_req = (object.list_clan_req !== undefined && object.list_clan_req !== null)
12167
+ ? api_1.ListClanDescRequest.fromPartial(object.list_clan_req)
12168
+ : undefined;
12169
+ message.clan_desc_list = (object.clan_desc_list !== undefined && object.clan_desc_list !== null)
12170
+ ? api_1.ClanDescList.fromPartial(object.clan_desc_list)
12171
+ : undefined;
12172
+ message.list_thread_req = (object.list_thread_req !== undefined && object.list_thread_req !== null)
12173
+ ? api_1.ListThreadRequest.fromPartial(object.list_thread_req)
12174
+ : undefined;
12175
+ message.channel_desc_list = (object.channel_desc_list !== undefined && object.channel_desc_list !== null)
12176
+ ? api_1.ChannelDescList.fromPartial(object.channel_desc_list)
12177
+ : undefined;
12178
+ message.list_channel_users_uc_req =
12179
+ (object.list_channel_users_uc_req !== undefined && object.list_channel_users_uc_req !== null)
12180
+ ? api_1.AllUsersAddChannelRequest.fromPartial(object.list_channel_users_uc_req)
12181
+ : undefined;
12182
+ message.channel_users_uc_list =
12183
+ (object.channel_users_uc_list !== undefined && object.channel_users_uc_list !== null)
12184
+ ? api_1.AllUsersAddChannelResponse.fromPartial(object.channel_users_uc_list)
12185
+ : undefined;
12186
+ message.list_channel_detail_req =
12187
+ (object.list_channel_detail_req !== undefined && object.list_channel_detail_req !== null)
12188
+ ? api_1.ListChannelDetailRequest.fromPartial(object.list_channel_detail_req)
12189
+ : undefined;
12190
+ message.channel_desc = (object.channel_desc !== undefined && object.channel_desc !== null)
12191
+ ? api_1.ChannelDescription.fromPartial(object.channel_desc)
12192
+ : undefined;
12193
+ message.list_channel_req = (object.list_channel_req !== undefined && object.list_channel_req !== null)
12194
+ ? api_1.ListChannelDescsRequest.fromPartial(object.list_channel_req)
12195
+ : undefined;
12196
+ message.list_channel_message_req =
12197
+ (object.list_channel_message_req !== undefined && object.list_channel_message_req !== null)
12198
+ ? api_1.ListChannelMessagesRequest.fromPartial(object.list_channel_message_req)
12199
+ : undefined;
12200
+ message.channel_message_list = (object.channel_message_list !== undefined && object.channel_message_list !== null)
12201
+ ? api_1.ChannelMessageList.fromPartial(object.channel_message_list)
12202
+ : undefined;
12203
+ message.list_channel_users_req =
12204
+ (object.list_channel_users_req !== undefined && object.list_channel_users_req !== null)
12205
+ ? api_1.ListChannelUsersRequest.fromPartial(object.list_channel_users_req)
12206
+ : undefined;
12207
+ message.voice_user_list = (object.voice_user_list !== undefined && object.voice_user_list !== null)
12208
+ ? api_1.VoiceChannelUserList.fromPartial(object.voice_user_list)
12209
+ : undefined;
12210
+ message.channel_user_list = (object.channel_user_list !== undefined && object.channel_user_list !== null)
12211
+ ? api_1.ChannelUserList.fromPartial(object.channel_user_list)
12212
+ : undefined;
12213
+ message.list_channel_attachment_req =
12214
+ (object.list_channel_attachment_req !== undefined && object.list_channel_attachment_req !== null)
12215
+ ? api_1.ListChannelAttachmentRequest.fromPartial(object.list_channel_attachment_req)
12216
+ : undefined;
12217
+ message.channel_attachment_list =
12218
+ (object.channel_attachment_list !== undefined && object.channel_attachment_list !== null)
12219
+ ? api_1.ChannelAttachmentList.fromPartial(object.channel_attachment_list)
12220
+ : undefined;
12221
+ message.hashtag_dm_req = (object.hashtag_dm_req !== undefined && object.hashtag_dm_req !== null)
12222
+ ? api_1.HashtagDmListRequest.fromPartial(object.hashtag_dm_req)
12223
+ : undefined;
12224
+ message.hashtag_dm_list = (object.hashtag_dm_list !== undefined && object.hashtag_dm_list !== null)
12225
+ ? api_1.HashtagDmList.fromPartial(object.hashtag_dm_list)
12226
+ : undefined;
12227
+ message.channel_setting_req = (object.channel_setting_req !== undefined && object.channel_setting_req !== null)
12228
+ ? api_1.ChannelSettingListRequest.fromPartial(object.channel_setting_req)
12229
+ : undefined;
12230
+ message.channel_setting_list = (object.channel_setting_list !== undefined && object.channel_setting_list !== null)
12231
+ ? api_1.ChannelSettingListResponse.fromPartial(object.channel_setting_list)
12232
+ : undefined;
12233
+ message.favorite_channel_req = (object.favorite_channel_req !== undefined && object.favorite_channel_req !== null)
12234
+ ? api_1.ListFavoriteChannelRequest.fromPartial(object.favorite_channel_req)
12235
+ : undefined;
12236
+ message.favorite_channel_list =
12237
+ (object.favorite_channel_list !== undefined && object.favorite_channel_list !== null)
12238
+ ? api_1.ListFavoriteChannelResponse.fromPartial(object.favorite_channel_list)
12239
+ : undefined;
12240
+ message.search_thread_req = (object.search_thread_req !== undefined && object.search_thread_req !== null)
12241
+ ? api_1.SearchThreadRequest.fromPartial(object.search_thread_req)
12242
+ : undefined;
12243
+ message.notification_channel = (object.notification_channel !== undefined && object.notification_channel !== null)
12244
+ ? api_1.NotificationChannel.fromPartial(object.notification_channel)
12245
+ : undefined;
12246
+ message.notificaion_user_channel =
12247
+ (object.notificaion_user_channel !== undefined && object.notificaion_user_channel !== null)
12248
+ ? api_1.NotificationUserChannel.fromPartial(object.notificaion_user_channel)
12249
+ : undefined;
12250
+ message.notification_category =
12251
+ (object.notification_category !== undefined && object.notification_category !== null)
12252
+ ? api_1.DefaultNotificationCategory.fromPartial(object.notification_category)
12253
+ : undefined;
12254
+ message.notification_clan = (object.notification_clan !== undefined && object.notification_clan !== null)
12255
+ ? api_1.NotificationClan.fromPartial(object.notification_clan)
12256
+ : undefined;
12257
+ message.notification_setting = (object.notification_setting !== undefined && object.notification_setting !== null)
12258
+ ? api_1.NotificationSetting.fromPartial(object.notification_setting)
12259
+ : undefined;
12260
+ message.notification_message = (object.notification_message !== undefined && object.notification_message !== null)
12261
+ ? api_1.NotifiReactMessage.fromPartial(object.notification_message)
12262
+ : undefined;
12263
+ message.noti_channel_cat_setting_list =
12264
+ (object.noti_channel_cat_setting_list !== undefined && object.noti_channel_cat_setting_list !== null)
12265
+ ? api_1.NotificationChannelCategorySettingList.fromPartial(object.noti_channel_cat_setting_list)
12266
+ : undefined;
12267
+ message.list_notification_req =
12268
+ (object.list_notification_req !== undefined && object.list_notification_req !== null)
12269
+ ? api_1.ListNotificationsRequest.fromPartial(object.list_notification_req)
12270
+ : undefined;
12271
+ message.notification_list = (object.notification_list !== undefined && object.notification_list !== null)
12272
+ ? api_1.NotificationList.fromPartial(object.notification_list)
12273
+ : undefined;
12274
+ message.sticker_list = (object.sticker_list !== undefined && object.sticker_list !== null)
12275
+ ? api_1.StickerListedResponse.fromPartial(object.sticker_list)
12276
+ : undefined;
12277
+ message.emoji_recent_list = (object.emoji_recent_list !== undefined && object.emoji_recent_list !== null)
12278
+ ? api_1.EmojiRecentList.fromPartial(object.emoji_recent_list)
12279
+ : undefined;
12280
+ message.clan_webhook_req = (object.clan_webhook_req !== undefined && object.clan_webhook_req !== null)
12281
+ ? api_1.ListClanWebhookRequest.fromPartial(object.clan_webhook_req)
12282
+ : undefined;
12283
+ message.clan_webhook_list = (object.clan_webhook_list !== undefined && object.clan_webhook_list !== null)
12284
+ ? api_1.ListClanWebhookResponse.fromPartial(object.clan_webhook_list)
12285
+ : undefined;
12286
+ message.webhook_list_req = (object.webhook_list_req !== undefined && object.webhook_list_req !== null)
12287
+ ? api_1.WebhookListRequest.fromPartial(object.webhook_list_req)
12288
+ : undefined;
12289
+ message.webhook_list = (object.webhook_list !== undefined && object.webhook_list !== null)
12290
+ ? api_1.WebhookListResponse.fromPartial(object.webhook_list)
12291
+ : undefined;
12292
+ message.permission_list_req = (object.permission_list_req !== undefined && object.permission_list_req !== null)
12293
+ ? api_1.ListPermissionsRequest.fromPartial(object.permission_list_req)
12294
+ : undefined;
12295
+ message.permission_list = (object.permission_list !== undefined && object.permission_list !== null)
12296
+ ? api_1.PermissionList.fromPartial(object.permission_list)
12297
+ : undefined;
12298
+ message.role_user_req = (object.role_user_req !== undefined && object.role_user_req !== null)
12299
+ ? api_1.ListRoleUsersRequest.fromPartial(object.role_user_req)
12300
+ : undefined;
12301
+ message.role_user_list = (object.role_user_list !== undefined && object.role_user_list !== null)
12302
+ ? api_1.RoleUserList.fromPartial(object.role_user_list)
12303
+ : undefined;
12304
+ message.permission_user_req = (object.permission_user_req !== undefined && object.permission_user_req !== null)
12305
+ ? api_1.ListPermissionOfUsersRequest.fromPartial(object.permission_user_req)
12306
+ : undefined;
12307
+ message.role_list = (object.role_list !== undefined && object.role_list !== null)
12308
+ ? api_1.RoleList.fromPartial(object.role_list)
12309
+ : undefined;
12310
+ message.role_list_event_req = (object.role_list_event_req !== undefined && object.role_list_event_req !== null)
12311
+ ? api_1.RoleListEventRequest.fromPartial(object.role_list_event_req)
12312
+ : undefined;
12313
+ message.role_event_list = (object.role_event_list !== undefined && object.role_event_list !== null)
12314
+ ? api_1.RoleListEventResponse.fromPartial(object.role_event_list)
12315
+ : undefined;
12316
+ message.user_permission_req = (object.user_permission_req !== undefined && object.user_permission_req !== null)
12317
+ ? api_1.UserPermissionInChannelListRequest.fromPartial(object.user_permission_req)
12318
+ : undefined;
12319
+ message.user_permission_list = (object.user_permission_list !== undefined && object.user_permission_list !== null)
12320
+ ? api_1.UserPermissionInChannelListResponse.fromPartial(object.user_permission_list)
12321
+ : undefined;
12322
+ message.permission_role_req = (object.permission_role_req !== undefined && object.permission_role_req !== null)
12323
+ ? api_1.PermissionRoleChannelListEventRequest.fromPartial(object.permission_role_req)
12324
+ : undefined;
12325
+ message.permission_role_list = (object.permission_role_list !== undefined && object.permission_role_list !== null)
12326
+ ? api_1.PermissionRoleChannelListEventResponse.fromPartial(object.permission_role_list)
12327
+ : undefined;
12328
+ message.emoji_list = (object.emoji_list !== undefined && object.emoji_list !== null)
12329
+ ? api_1.EmojiListedResponse.fromPartial(object.emoji_list)
12330
+ : undefined;
12331
+ message.list_friend_req = (object.list_friend_req !== undefined && object.list_friend_req !== null)
12332
+ ? api_1.ListFriendsRequest.fromPartial(object.list_friend_req)
12333
+ : undefined;
12334
+ message.friend_list = (object.friend_list !== undefined && object.friend_list !== null)
12335
+ ? api_1.FriendList.fromPartial(object.friend_list)
12336
+ : undefined;
12337
+ message.list_apps_req = (object.list_apps_req !== undefined && object.list_apps_req !== null)
12338
+ ? api_1.ListChannelAppsRequest.fromPartial(object.list_apps_req)
12339
+ : undefined;
12340
+ message.channel_apps_list = (object.channel_apps_list !== undefined && object.channel_apps_list !== null)
12341
+ ? api_1.ListChannelAppsResponse.fromPartial(object.channel_apps_list)
12342
+ : undefined;
12343
+ message.user_activity_list = (object.user_activity_list !== undefined && object.user_activity_list !== null)
12344
+ ? api_1.ListUserActivity.fromPartial(object.user_activity_list)
12345
+ : undefined;
12346
+ message.list_clan_user_req = (object.list_clan_user_req !== undefined && object.list_clan_user_req !== null)
12347
+ ? api_1.ListClanUsersRequest.fromPartial(object.list_clan_user_req)
12348
+ : undefined;
12349
+ message.clan_user_list = (object.clan_user_list !== undefined && object.clan_user_list !== null)
12350
+ ? api_1.ClanUserList.fromPartial(object.clan_user_list)
12351
+ : undefined;
12352
+ message.list_event_req = (object.list_event_req !== undefined && object.list_event_req !== null)
12353
+ ? api_1.ListEventsRequest.fromPartial(object.list_event_req)
12354
+ : undefined;
12355
+ message.event_list = (object.event_list !== undefined && object.event_list !== null)
12356
+ ? api_1.EventList.fromPartial(object.event_list)
12357
+ : undefined;
12358
+ message.list_category_req = (object.list_category_req !== undefined && object.list_category_req !== null)
12359
+ ? api_1.CategoryDesc.fromPartial(object.list_category_req)
12360
+ : undefined;
12361
+ message.category_list = (object.category_list !== undefined && object.category_list !== null)
12362
+ ? api_1.CategoryDescList.fromPartial(object.category_list)
12363
+ : undefined;
12364
+ message.stream_user_list = (object.stream_user_list !== undefined && object.stream_user_list !== null)
12365
+ ? api_1.StreamingChannelUserList.fromPartial(object.stream_user_list)
12366
+ : undefined;
12367
+ return message;
12368
+ },
12369
+ };
10906
12370
  function toTimestamp(date) {
10907
12371
  const seconds = Math.trunc(date.getTime() / 1000);
10908
12372
  const nanos = (date.getTime() % 1000) * 1000000;