mezon-js 2.14.2 → 2.14.3

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