mezon-js 2.14.2 → 2.14.4

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.
@@ -35041,30 +35041,30 @@ function createChannelMessageFromEvent(message) {
35041
35041
  var channelMessage = {
35042
35042
  id: message.id || message.channel_message.message_id,
35043
35043
  avatar: message.channel_message.avatar,
35044
- channelId: message.channel_message.channel_id,
35044
+ channel_id: message.channel_message.channel_id,
35045
35045
  mode: message.channel_message.mode,
35046
- channelLabel: message.channel_message.channel_label,
35047
- clanId: message.channel_message.clan_id,
35046
+ channel_label: message.channel_message.channel_label,
35047
+ clan_id: message.channel_message.clan_id,
35048
35048
  code: message.channel_message.code,
35049
- messageId: message.channel_message.message_id,
35050
- senderId: message.channel_message.sender_id,
35051
- clanLogo: message.channel_message.clan_logo,
35052
- categoryName: message.channel_message.category_name,
35049
+ message_id: message.channel_message.message_id,
35050
+ sender_id: message.channel_message.sender_id,
35051
+ clan_logo: message.channel_message.clan_logo,
35052
+ category_name: message.channel_message.category_name,
35053
35053
  username: message.channel_message.username,
35054
- clanNick: message.channel_message.clan_nick,
35055
- clanAvatar: message.channel_message.clan_avatar,
35056
- displayName: message.channel_message.display_name,
35054
+ clan_nick: message.channel_message.clan_nick,
35055
+ clan_avatar: message.channel_message.clan_avatar,
35056
+ display_name: message.channel_message.display_name,
35057
35057
  content,
35058
35058
  reactions,
35059
35059
  mentions,
35060
35060
  attachments,
35061
- referencedMessage: [],
35061
+ referenced_message: [],
35062
35062
  references,
35063
- hideEditted: message.channel_message.hide_editted,
35064
- isPublic: message.channel_message.is_public,
35065
- createTimeSeconds: message.channel_message.create_time_seconds,
35066
- updateTimeSeconds: message.channel_message.update_time_seconds,
35067
- topicId: message.channel_message.topic_id
35063
+ hide_editted: message.channel_message.hide_editted,
35064
+ is_public: message.channel_message.is_public,
35065
+ create_time_seconds: message.channel_message.create_time_seconds,
35066
+ update_time_seconds: message.channel_message.update_time_seconds,
35067
+ topic_id: message.channel_message.topic_id
35068
35068
  };
35069
35069
  return channelMessage;
35070
35070
  }
@@ -35126,11 +35126,12 @@ var _DefaultSocket = class _DefaultSocket {
35126
35126
  }
35127
35127
  if (!message.cid) {
35128
35128
  if (message.notifications) {
35129
- console.log("Received notifications: %o", message.notifications);
35130
- message.notifications.notifications.forEach((n) => {
35131
- n.content = n.content ? safeJSONParse(n.content) : void 0;
35132
- this.onnotification(n);
35133
- });
35129
+ message.notifications.notifications.forEach(
35130
+ (n) => {
35131
+ n.content = n.content ? safeJSONParse(n.content) : void 0;
35132
+ this.onnotification(n);
35133
+ }
35134
+ );
35134
35135
  } else if (message.voice_started_event) {
35135
35136
  this.onvoicestarted(message.voice_started_event);
35136
35137
  } else if (message.voice_ended_event) {
@@ -35148,9 +35149,7 @@ var _DefaultSocket = class _DefaultSocket {
35148
35149
  } else if (message.event_emoji) {
35149
35150
  this.oneventemoji(message.event_emoji);
35150
35151
  } else if (message.noti_user_channel) {
35151
- this.oneventnotiuserchannel(
35152
- message.noti_user_channel
35153
- );
35152
+ this.oneventnotiuserchannel(message.noti_user_channel);
35154
35153
  } else if (message.webhook_event) {
35155
35154
  this.oneventwebhook(message.webhook_event);
35156
35155
  } else if (message.channel_deleted_event) {
@@ -35168,44 +35167,58 @@ var _DefaultSocket = class _DefaultSocket {
35168
35167
  } else if (message.delete_account_event) {
35169
35168
  this.ondeleteaccount(message.delete_account_event);
35170
35169
  } else if (message.clan_profile_updated_event) {
35171
- this.onclanprofileupdated(
35172
- message.clan_profile_updated_event
35173
- );
35170
+ this.onclanprofileupdated(message.clan_profile_updated_event);
35174
35171
  } else if (message.clan_updated_event) {
35175
35172
  this.onclanupdated(message.clan_updated_event);
35176
35173
  } else if (message.last_seen_message_event) {
35177
- this.onlastseenupdated(
35178
- message.last_seen_message_event
35179
- );
35174
+ this.onlastseenupdated(message.last_seen_message_event);
35180
35175
  } else if (message.status_presence_event) {
35181
- this.onstatuspresence(message.status_presence_event);
35176
+ this.onstatuspresence(
35177
+ message.status_presence_event
35178
+ );
35182
35179
  } else if (message.stream_presence_event) {
35183
- this.onstreampresence(message.stream_presence_event);
35180
+ this.onstreampresence(
35181
+ message.stream_presence_event
35182
+ );
35184
35183
  } else if (message.stream_data) {
35185
35184
  this.onstreamdata(message.stream_data);
35186
35185
  } else if (message.channel_message) {
35187
35186
  const channelMessage = createChannelMessageFromEvent(message);
35188
35187
  this.onchannelmessage(channelMessage);
35189
35188
  } else if (message.message_typing_event) {
35190
- this.onmessagetyping(message.message_typing_event);
35189
+ this.onmessagetyping(
35190
+ message.message_typing_event
35191
+ );
35191
35192
  } else if (message.message_reaction_event) {
35192
- this.onmessagereaction(message.message_reaction_event);
35193
+ this.onmessagereaction(
35194
+ message.message_reaction_event
35195
+ );
35193
35196
  } else if (message.channel_presence_event) {
35194
- this.onchannelpresence(message.channel_presence_event);
35197
+ this.onchannelpresence(
35198
+ message.channel_presence_event
35199
+ );
35195
35200
  } else if (message.last_pin_message_event) {
35196
- this.onpinmessage(message.last_pin_message_event);
35201
+ this.onpinmessage(
35202
+ message.last_pin_message_event
35203
+ );
35197
35204
  } else if (message.custom_status_event) {
35198
35205
  this.oncustomstatus(message.custom_status_event);
35199
35206
  } else if (message.canvas_event) {
35200
35207
  this.oncanvasevent(message.canvas_event);
35201
35208
  } else if (message.user_channel_added_event) {
35202
- this.onuserchanneladded(message.user_channel_added_event);
35209
+ this.onuserchanneladded(
35210
+ message.user_channel_added_event
35211
+ );
35203
35212
  } else if (message.add_clan_user_event) {
35204
35213
  this.onuserclanadded(message.add_clan_user_event);
35205
35214
  } else if (message.user_profile_updated_event) {
35206
- this.onuserprofileupdate(message.user_profile_updated_event);
35215
+ this.onuserprofileupdate(
35216
+ message.user_profile_updated_event
35217
+ );
35207
35218
  } else if (message.user_channel_removed_event) {
35208
- this.onuserchannelremoved(message.user_channel_removed_event);
35219
+ this.onuserchannelremoved(
35220
+ message.user_channel_removed_event
35221
+ );
35209
35222
  } else if (message.block_friend) {
35210
35223
  this.onblockfriend(message.block_friend);
35211
35224
  } else if (message.un_block_friend) {
@@ -35215,7 +35228,9 @@ var _DefaultSocket = class _DefaultSocket {
35215
35228
  } else if (message.remove_friend) {
35216
35229
  this.onremovefriend(message.remove_friend);
35217
35230
  } else if (message.user_clan_removed_event) {
35218
- this.onuserclanremoved(message.user_clan_removed_event);
35231
+ this.onuserclanremoved(
35232
+ message.user_clan_removed_event
35233
+ );
35219
35234
  } else if (message.clan_event_created) {
35220
35235
  this.oneventcreated(message.clan_event_created);
35221
35236
  } else if (message.give_coffee_event) {
@@ -35223,31 +35238,49 @@ var _DefaultSocket = class _DefaultSocket {
35223
35238
  } else if (message.role_assign_event) {
35224
35239
  this.onroleassign(message.role_assign_event);
35225
35240
  } else if (message.streaming_started_event) {
35226
- this.onstreamingchannelstarted(message.streaming_started_event);
35241
+ this.onstreamingchannelstarted(
35242
+ message.streaming_started_event
35243
+ );
35227
35244
  } else if (message.streaming_ended_event) {
35228
- this.onstreamingchannelended(message.streaming_ended_event);
35245
+ this.onstreamingchannelended(
35246
+ message.streaming_ended_event
35247
+ );
35229
35248
  } else if (message.streaming_joined_event) {
35230
- this.onstreamingchanneljoined(message.streaming_joined_event);
35249
+ this.onstreamingchanneljoined(
35250
+ message.streaming_joined_event
35251
+ );
35231
35252
  } else if (message.streaming_leaved_event) {
35232
- this.onstreamingchannelleaved(message.streaming_leaved_event);
35253
+ this.onstreamingchannelleaved(
35254
+ message.streaming_leaved_event
35255
+ );
35233
35256
  } else if (message.permission_set_event) {
35234
35257
  this.onpermissionset(message.permission_set_event);
35235
35258
  } else if (message.permission_changed_event) {
35236
- this.onpermissionchanged(message.permission_changed_event);
35259
+ this.onpermissionchanged(
35260
+ message.permission_changed_event
35261
+ );
35237
35262
  } else if (message.unmute_event) {
35238
35263
  this.onunmuteevent(message.unmute_event);
35239
35264
  } else if (message.token_sent_event) {
35240
35265
  this.ontokensent(message.token_sent_event);
35241
35266
  } else if (message.message_button_clicked) {
35242
- this.onmessagebuttonclicked(message.message_button_clicked);
35267
+ this.onmessagebuttonclicked(
35268
+ message.message_button_clicked
35269
+ );
35243
35270
  } else if (message.dropdown_box_selected) {
35244
- this.onmessagedropdownboxselected(message.dropdown_box_selected);
35271
+ this.onmessagedropdownboxselected(
35272
+ message.dropdown_box_selected
35273
+ );
35245
35274
  } else if (message.mark_as_read) {
35246
35275
  this.onmarkasread(message.mark_as_read);
35247
35276
  } else if (message.voice_reaction_send) {
35248
- this.onvoicereactionmessage(message.voice_reaction_send);
35277
+ this.onvoicereactionmessage(
35278
+ message.voice_reaction_send
35279
+ );
35249
35280
  } else if (message.webrtc_signaling_fwd) {
35250
- this.onwebrtcsignalingfwd(message.webrtc_signaling_fwd);
35281
+ this.onwebrtcsignalingfwd(
35282
+ message.webrtc_signaling_fwd
35283
+ );
35251
35284
  } else if (message.list_activity) {
35252
35285
  this.onactivityupdated(message.list_activity);
35253
35286
  } else if (message.sd_topic_event) {
@@ -35257,19 +35290,29 @@ var _DefaultSocket = class _DefaultSocket {
35257
35290
  } else if (message.user_status_event) {
35258
35291
  this.onuserstatusevent(message.user_status_event);
35259
35292
  } else if (message.join_channel_app_data) {
35260
- this.onjoinchannelappevent(message.join_channel_app_data);
35293
+ this.onjoinchannelappevent(
35294
+ message.join_channel_app_data
35295
+ );
35261
35296
  } else if (message.unpin_message_event) {
35262
- this.onunpinmessageevent(message.unpin_message_event);
35297
+ this.onunpinmessageevent(
35298
+ message.unpin_message_event
35299
+ );
35263
35300
  } else if (message.quick_menu_event) {
35264
35301
  this.onquickmenuevent(message.quick_menu_event);
35265
35302
  } else if (message.meet_participant_event) {
35266
- this.onmeetparticipantevent(message.meet_participant_event);
35303
+ this.onmeetparticipantevent(
35304
+ message.meet_participant_event
35305
+ );
35267
35306
  } else if (message.transfer_ownership_event) {
35268
- this.ontransferownership(message.transfer_ownership_event);
35307
+ this.ontransferownership(
35308
+ message.transfer_ownership_event
35309
+ );
35269
35310
  } else if (message.ban_user_event) {
35270
35311
  this.onbanneduser(message.ban_user_event);
35271
35312
  } else if (message.allow_anonymous_event) {
35272
- this.onallowanonymousevent(message.allow_anonymous_event);
35313
+ this.onallowanonymousevent(
35314
+ message.allow_anonymous_event
35315
+ );
35273
35316
  } else {
35274
35317
  if (this.verbose && window && window.console) {
35275
35318
  console.log("Unrecognized message received: %o", message);
@@ -35743,14 +35786,14 @@ var _DefaultSocket = class _DefaultSocket {
35743
35786
  return response.status;
35744
35787
  });
35745
35788
  }
35746
- joinClanChat(clanId) {
35789
+ joinClanChat(clan_id) {
35747
35790
  return __async(this, null, function* () {
35748
35791
  const response = yield this.send({
35749
35792
  clan_join: {
35750
- clan_id: clanId
35793
+ clan_id
35751
35794
  }
35752
35795
  });
35753
- return response.clanJoin;
35796
+ return response.clan_join;
35754
35797
  });
35755
35798
  }
35756
35799
  follower() {
@@ -35758,57 +35801,57 @@ var _DefaultSocket = class _DefaultSocket {
35758
35801
  const response = yield this.send({
35759
35802
  follow_event: {}
35760
35803
  });
35761
- return response.followEvent;
35804
+ return response.follow_event;
35762
35805
  });
35763
35806
  }
35764
- joinChat(clanId, channelId, channelType, isPublic) {
35807
+ joinChat(clan_id, channel_id, channel_type, is_public) {
35765
35808
  return __async(this, null, function* () {
35766
35809
  const response = yield this.send({
35767
35810
  channel_join: {
35768
- clan_id: clanId,
35769
- channel_id: channelId,
35770
- channel_type: channelType,
35771
- is_public: isPublic
35811
+ clan_id,
35812
+ channel_id,
35813
+ channel_type,
35814
+ is_public
35772
35815
  }
35773
35816
  });
35774
35817
  return response.channel;
35775
35818
  });
35776
35819
  }
35777
- handleParticipantMeetState(clanId, channelId, displayName, state, roomName) {
35820
+ handleParticipantMeetState(clan_id, channel_id, display_name, state, room_name) {
35778
35821
  return __async(this, null, function* () {
35779
35822
  const response = yield this.send({
35780
35823
  handle_participant_meet_state_event: {
35781
- clan_id: clanId,
35782
- channel_id: channelId,
35783
- display_name: displayName,
35824
+ clan_id,
35825
+ channel_id,
35826
+ display_name,
35784
35827
  state,
35785
- room_name: roomName
35828
+ room_name
35786
35829
  }
35787
35830
  });
35788
- return response.handleParticipantMeetStateEvent;
35831
+ return response.handle_participant_meet_state_event;
35789
35832
  });
35790
35833
  }
35791
- leaveChat(clanId, channelId, channelType, isPublic) {
35834
+ leaveChat(clan_id, channel_id, channel_type, is_public) {
35792
35835
  return this.send({
35793
35836
  channel_leave: {
35794
- clan_id: clanId,
35795
- channel_id: channelId,
35796
- channel_type: channelType,
35797
- is_public: isPublic
35837
+ clan_id,
35838
+ channel_id,
35839
+ channel_type,
35840
+ is_public
35798
35841
  }
35799
35842
  });
35800
35843
  }
35801
- removeChatMessage(clanId, channelId, mode, isPublic, messageId, hasAttachment, topicId, mentions, references) {
35844
+ removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id, mentions, references) {
35802
35845
  return __async(this, null, function* () {
35803
35846
  const response = yield this.send({
35804
35847
  channel_message_remove: {
35805
- clan_id: clanId,
35806
- channel_id: channelId,
35848
+ clan_id,
35849
+ channel_id,
35807
35850
  mode,
35808
- message_id: messageId,
35809
- is_public: isPublic,
35810
- has_attachment: hasAttachment,
35811
- topic_id: topicId,
35851
+ message_id,
35852
+ is_public,
35853
+ has_attachment,
35854
+ topic_id,
35812
35855
  mentions,
35813
35856
  references
35814
35857
  }
@@ -35816,37 +35859,37 @@ var _DefaultSocket = class _DefaultSocket {
35816
35859
  return response.channel_message_ack;
35817
35860
  });
35818
35861
  }
35819
- rpc(id, payload, httpKey) {
35862
+ rpc(id, payload, http_key) {
35820
35863
  return __async(this, null, function* () {
35821
35864
  const response = yield this.send({
35822
35865
  rpc: {
35823
35866
  id,
35824
35867
  payload,
35825
- http_key: httpKey
35868
+ http_key
35826
35869
  }
35827
35870
  });
35828
35871
  return response.rpc;
35829
35872
  });
35830
35873
  }
35831
- unfollowUsers(userIds) {
35832
- return this.send({ status_unfollow: { user_ids: userIds } });
35874
+ unfollowUsers(user_ids) {
35875
+ return this.send({ status_unfollow: { user_ids } });
35833
35876
  }
35834
- updateChatMessage(clanId, channelId, mode, isPublic, messageId, content, mentions, attachments, hideEditted, topicId, isUpdateMsgTopic, oldMentions) {
35877
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hide_editted, topic_id, is_update_msg_topic, old_mentions) {
35835
35878
  return __async(this, null, function* () {
35836
35879
  const response = yield this.send({
35837
35880
  channel_message_update: {
35838
- clan_id: clanId,
35839
- channel_id: channelId,
35840
- message_id: messageId,
35881
+ clan_id,
35882
+ channel_id,
35883
+ message_id,
35841
35884
  content,
35842
35885
  mentions,
35843
35886
  attachments,
35844
35887
  mode,
35845
- is_public: isPublic,
35846
- hide_editted: hideEditted,
35847
- topic_id: topicId,
35848
- is_update_msg_topic: isUpdateMsgTopic,
35849
- old_mentions: oldMentions
35888
+ is_public,
35889
+ hide_editted,
35890
+ topic_id,
35891
+ is_update_msg_topic,
35892
+ old_mentions
35850
35893
  }
35851
35894
  });
35852
35895
  return response.channel_message_ack;
@@ -35855,50 +35898,50 @@ var _DefaultSocket = class _DefaultSocket {
35855
35898
  updateStatus(status) {
35856
35899
  return this.send({ status_update: { status } });
35857
35900
  }
35858
- writeQuickMenuEvent(menuName, clanId, channelId, mode, isPublic, content, mentions, attachments, references, anonymousMessage, mentionEveryone, avatar, code, topicId) {
35901
+ writeQuickMenuEvent(menu_name, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
35859
35902
  return __async(this, null, function* () {
35860
35903
  const response = yield this.send({
35861
35904
  quick_menu_event: {
35862
- menuName,
35905
+ menu_name,
35863
35906
  message: {
35864
- clan_id: clanId,
35865
- channel_id: channelId,
35907
+ clan_id,
35908
+ channel_id,
35866
35909
  mode,
35867
- is_public: isPublic,
35910
+ is_public,
35868
35911
  content,
35869
35912
  mentions,
35870
35913
  attachments,
35871
35914
  references,
35872
- anonymous_message: anonymousMessage,
35873
- mention_everyone: mentionEveryone,
35915
+ anonymous_message,
35916
+ mention_everyone,
35874
35917
  avatar,
35875
35918
  code,
35876
- topic_id: topicId
35919
+ topic_id
35877
35920
  }
35878
35921
  }
35879
35922
  });
35880
- return response.quick_menu_event;
35923
+ return response.ephemeral_message_send;
35881
35924
  });
35882
35925
  }
35883
- writeEphemeralMessage(receiverId, clanId, channelId, mode, isPublic, content, mentions, attachments, references, anonymousMessage, mentionEveryone, avatar, code, topicId, id) {
35926
+ writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
35884
35927
  return __async(this, null, function* () {
35885
35928
  const response = yield this.send({
35886
35929
  ephemeral_message_send: {
35887
- receiver_id: receiverId,
35930
+ receiver_id,
35888
35931
  message: {
35889
- clan_id: clanId,
35890
- channel_id: channelId,
35932
+ clan_id,
35933
+ channel_id,
35891
35934
  mode,
35892
- is_public: isPublic,
35935
+ is_public,
35893
35936
  content,
35894
35937
  mentions,
35895
35938
  attachments,
35896
35939
  references,
35897
- anonymous_message: anonymousMessage,
35898
- mention_everyone: mentionEveryone,
35940
+ anonymous_message,
35941
+ mention_everyone,
35899
35942
  avatar,
35900
35943
  code,
35901
- topic_id: topicId,
35944
+ topic_id,
35902
35945
  id
35903
35946
  }
35904
35947
  }
@@ -35906,24 +35949,24 @@ var _DefaultSocket = class _DefaultSocket {
35906
35949
  return response.ephemeral_message_send;
35907
35950
  });
35908
35951
  }
35909
- writeChatMessage(clanId, channelId, mode, isPublic, content, mentions, attachments, references, anonymousMessage, mentionEveryone, avatar, code, topicId) {
35952
+ writeChatMessage(clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
35910
35953
  return __async(this, null, function* () {
35911
35954
  const response = yield this.send(
35912
35955
  {
35913
35956
  channel_message_send: {
35914
- clan_id: clanId,
35915
- channel_id: channelId,
35957
+ clan_id,
35958
+ channel_id,
35916
35959
  mode,
35917
- is_public: isPublic,
35960
+ is_public,
35918
35961
  content,
35919
35962
  mentions,
35920
35963
  attachments,
35921
35964
  references,
35922
- anonymous_message: anonymousMessage,
35923
- mention_everyone: mentionEveryone,
35965
+ anonymous_message,
35966
+ mention_everyone,
35924
35967
  avatar,
35925
35968
  code,
35926
- topic_id: topicId
35969
+ topic_id
35927
35970
  }
35928
35971
  },
35929
35972
  Infinity
@@ -35931,192 +35974,192 @@ var _DefaultSocket = class _DefaultSocket {
35931
35974
  return response.channel_message_ack;
35932
35975
  });
35933
35976
  }
35934
- writeMessageReaction(id, clanId, channelId, mode, isPublic, messageId, emojiId, emoji, count, messageSenderId, action_delete, topicId, emojiRecentId, senderName) {
35977
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id, sender_name) {
35935
35978
  return __async(this, null, function* () {
35936
35979
  const response = yield this.send({
35937
35980
  message_reaction_event: {
35938
35981
  id,
35939
- clan_id: clanId,
35940
- channel_id: channelId,
35982
+ clan_id,
35983
+ channel_id,
35941
35984
  mode,
35942
- is_public: isPublic,
35943
- message_id: messageId,
35944
- emoji_id: emojiId,
35985
+ is_public,
35986
+ message_id,
35987
+ emoji_id,
35945
35988
  emoji,
35946
35989
  count,
35947
- message_sender_id: messageSenderId,
35990
+ message_sender_id,
35948
35991
  action: action_delete,
35949
- topic_id: topicId,
35950
- emoji_recent_id: emojiRecentId,
35951
- sender_name: senderName
35992
+ topic_id,
35993
+ emoji_recent_id,
35994
+ sender_name
35952
35995
  }
35953
35996
  });
35954
35997
  return response.message_reaction_event;
35955
35998
  });
35956
35999
  }
35957
- writeMessageTyping(clanId, channelId, mode, isPublic, senderDisplayName, topicId) {
36000
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name, topic_id) {
35958
36001
  return __async(this, null, function* () {
35959
36002
  const response = yield this.send({
35960
36003
  message_typing_event: {
35961
- clan_id: clanId,
35962
- channel_id: channelId,
36004
+ clan_id,
36005
+ channel_id,
35963
36006
  mode,
35964
- is_public: isPublic,
35965
- sender_display_name: senderDisplayName,
35966
- topic_id: topicId
36007
+ is_public,
36008
+ sender_display_name,
36009
+ topic_id
35967
36010
  }
35968
36011
  });
35969
36012
  return response.message_typing_event;
35970
36013
  });
35971
36014
  }
35972
- writeLastSeenMessage(clanId, channelId, mode, messageId, timestampSeconds, badgeCount) {
36015
+ writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds, badge_count) {
35973
36016
  return __async(this, null, function* () {
35974
36017
  const response = yield this.send({
35975
36018
  last_seen_message_event: {
35976
- clan_id: clanId,
35977
- channel_id: channelId,
36019
+ clan_id,
36020
+ channel_id,
35978
36021
  mode,
35979
- message_id: messageId,
35980
- timestamp_seconds: timestampSeconds,
35981
- badge_count: badgeCount
36022
+ message_id,
36023
+ timestamp_seconds,
36024
+ badge_count
35982
36025
  }
35983
36026
  });
35984
36027
  return response.last_seen_message_event;
35985
36028
  });
35986
36029
  }
35987
- writeLastPinMessage(clanId, channelId, mode, isPublic, messageId, timestampSeconds, operation, messageSenderAvatar, messageSenderId, messageSenderUsername, messageContent, messageAttachment, messageCreatedTime) {
36030
+ writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
35988
36031
  return __async(this, null, function* () {
35989
36032
  const response = yield this.send({
35990
36033
  last_pin_message_event: {
35991
- clan_id: clanId,
35992
- channel_id: channelId,
36034
+ clan_id,
36035
+ channel_id,
35993
36036
  mode,
35994
- is_public: isPublic,
35995
- message_id: messageId,
35996
- timestamp_seconds: timestampSeconds,
36037
+ is_public,
36038
+ message_id,
36039
+ timestamp_seconds,
35997
36040
  operation,
35998
- message_sender_avatar: messageSenderAvatar,
35999
- message_sender_id: messageSenderId,
36000
- message_sender_username: messageSenderUsername,
36001
- message_content: messageContent,
36002
- message_attachment: messageAttachment,
36003
- message_created_time: messageCreatedTime
36041
+ message_sender_avatar,
36042
+ message_sender_id,
36043
+ message_sender_username,
36044
+ message_content,
36045
+ message_attachment,
36046
+ message_created_time
36004
36047
  }
36005
36048
  });
36006
36049
  return response.last_pin_message_event;
36007
36050
  });
36008
36051
  }
36009
- writeCustomStatus(clanId, status, timeReset, noClear) {
36052
+ writeCustomStatus(clan_id, status, time_reset, no_clear) {
36010
36053
  return __async(this, null, function* () {
36011
36054
  const response = yield this.send({
36012
36055
  custom_status_event: {
36013
- clan_id: clanId,
36056
+ clan_id,
36014
36057
  status,
36015
- time_reset: timeReset,
36016
- no_clear: noClear
36058
+ time_reset,
36059
+ no_clear
36017
36060
  }
36018
36061
  });
36019
36062
  return response.custom_status_event;
36020
36063
  });
36021
36064
  }
36022
- writeActiveArchivedThread(clanId, channelId) {
36065
+ writeActiveArchivedThread(clan_id, channel_id) {
36023
36066
  return __async(this, null, function* () {
36024
36067
  const response = yield this.send({
36025
36068
  active_archived_thread: {
36026
- clan_id: clanId,
36027
- channel_id: channelId
36069
+ clan_id,
36070
+ channel_id
36028
36071
  }
36029
36072
  });
36030
36073
  return response.active_archived_thread;
36031
36074
  });
36032
36075
  }
36033
- checkDuplicateName(name, condition_id, type, clanId) {
36076
+ checkDuplicateName(name, condition_id, type, clan_id) {
36034
36077
  return __async(this, null, function* () {
36035
36078
  const response = yield this.send({
36036
36079
  check_name_existed_event: {
36037
36080
  name,
36038
36081
  condition_id,
36039
36082
  type,
36040
- clan_id: clanId
36083
+ clan_id
36041
36084
  }
36042
36085
  });
36043
36086
  return response.check_name_existed_event;
36044
36087
  });
36045
36088
  }
36046
- writeVoiceReaction(emojis, channelId) {
36089
+ writeVoiceReaction(emojis, channel_id) {
36047
36090
  return __async(this, null, function* () {
36048
36091
  const response = yield this.send({
36049
36092
  voice_reaction_send: {
36050
36093
  emojis,
36051
- channel_id: channelId
36094
+ channel_id
36052
36095
  }
36053
36096
  });
36054
36097
  return response.voice_reaction_send;
36055
36098
  });
36056
36099
  }
36057
- forwardWebrtcSignaling(receiverId, dataType, jsonData, channelId, callerId) {
36100
+ forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id, caller_id) {
36058
36101
  return __async(this, null, function* () {
36059
36102
  const response = yield this.send({
36060
36103
  webrtc_signaling_fwd: {
36061
- receiver_id: receiverId,
36062
- data_type: dataType,
36063
- json_data: jsonData,
36064
- channel_id: channelId,
36065
- caller_id: callerId
36104
+ receiver_id,
36105
+ data_type,
36106
+ json_data,
36107
+ channel_id,
36108
+ caller_id
36066
36109
  }
36067
36110
  });
36068
36111
  return response.webrtc_signaling_fwd;
36069
36112
  });
36070
36113
  }
36071
- makeCallPush(receiverId, jsonData, channelId, callerId) {
36114
+ makeCallPush(receiver_id, json_data, channel_id, caller_id) {
36072
36115
  return __async(this, null, function* () {
36073
36116
  const response = yield this.send({
36074
36117
  incoming_call_push: {
36075
- receiver_id: receiverId,
36076
- json_data: jsonData,
36077
- channel_id: channelId,
36078
- caller_id: callerId
36118
+ receiver_id,
36119
+ json_data,
36120
+ channel_id,
36121
+ caller_id
36079
36122
  }
36080
36123
  });
36081
36124
  return response.incoming_call_push;
36082
36125
  });
36083
36126
  }
36084
- handleDropdownBoxSelected(messageId, channelId, selectboxId, senderId, userId, value) {
36127
+ handleDropdownBoxSelected(message_id, channel_id, selectbox_id, sender_id, user_id, value) {
36085
36128
  return __async(this, null, function* () {
36086
36129
  const response = yield this.send({
36087
36130
  dropdown_box_selected: {
36088
- message_id: messageId,
36089
- channel_id: channelId,
36090
- selectbox_id: selectboxId,
36091
- sender_id: senderId,
36092
- user_id: userId,
36131
+ message_id,
36132
+ channel_id,
36133
+ selectbox_id,
36134
+ sender_id,
36135
+ user_id,
36093
36136
  value
36094
36137
  }
36095
36138
  });
36096
36139
  return response.dropdown_box_selected;
36097
36140
  });
36098
36141
  }
36099
- handleMessageButtonClick(messageId, channelId, buttonId, senderId, userId, extraData) {
36142
+ handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id, extra_data) {
36100
36143
  return __async(this, null, function* () {
36101
36144
  const response = yield this.send({
36102
36145
  message_button_clicked: {
36103
- message_id: messageId,
36104
- channel_id: channelId,
36105
- button_id: buttonId,
36106
- sender_id: senderId,
36107
- user_id: userId,
36108
- extra_data: extraData
36146
+ message_id,
36147
+ channel_id,
36148
+ button_id,
36149
+ sender_id,
36150
+ user_id,
36151
+ extra_data
36109
36152
  }
36110
36153
  });
36111
36154
  return response.webrtc_signaling_fwd;
36112
36155
  });
36113
36156
  }
36114
- writeChannelAppEvent(clanId, channelId, action) {
36157
+ writeChannelAppEvent(clan_id, channel_id, action) {
36115
36158
  return __async(this, null, function* () {
36116
36159
  const response = yield this.send({
36117
36160
  channel_app_event: {
36118
- clan_id: clanId,
36119
- channel_id: channelId,
36161
+ clan_id,
36162
+ channel_id,
36120
36163
  action
36121
36164
  }
36122
36165
  });