@flashphoner/sfusdk 2.0.299 → 2.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/client.version +1 -1
  2. package/dist/sdk/constants.d.ts +134 -2
  3. package/dist/sdk/constants.js +48 -1
  4. package/dist/sdk/constants.js.map +1 -1
  5. package/dist/sdk/room.js +4 -0
  6. package/dist/sdk/room.js.map +1 -1
  7. package/dist/sdk/sfu-extended.d.ts +166 -6
  8. package/dist/sdk/sfu-extended.js +326 -4
  9. package/dist/sdk/sfu-extended.js.map +1 -1
  10. package/docs/assets/navigation.js +1 -1
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/room.Room.html +10 -10
  13. package/docs/classes/room_extended.RoomExtended.html +13 -13
  14. package/docs/classes/sfu_extended.SfuExtended.html +145 -85
  15. package/docs/enums/constants.AttachmentState.html +2 -2
  16. package/docs/enums/constants.AuthenticationStatus.html +2 -2
  17. package/docs/enums/constants.ChannelSendPolicy.html +2 -2
  18. package/docs/enums/constants.ChatError.html +2 -2
  19. package/docs/enums/constants.ChatReceivePolicy.html +2 -2
  20. package/docs/enums/constants.ChatSectionsError.html +2 -2
  21. package/docs/enums/constants.ChatType.html +2 -2
  22. package/docs/enums/constants.ConferenceType.html +2 -2
  23. package/docs/enums/constants.ConnectionError.html +2 -2
  24. package/docs/enums/constants.ConnectionType.html +2 -2
  25. package/docs/enums/constants.ContactError.html +2 -2
  26. package/docs/enums/constants.DeliveryStatus.html +2 -2
  27. package/docs/enums/constants.ExamplesError.html +2 -2
  28. package/docs/enums/constants.ExamplesEvent.html +2 -2
  29. package/docs/enums/constants.InternalApi.html +15 -2
  30. package/docs/enums/constants.MeetingSyncEvent.html +10 -10
  31. package/docs/enums/constants.MessageAttachmentMediaType.html +2 -2
  32. package/docs/enums/constants.MessageAttachmentType.html +2 -2
  33. package/docs/enums/constants.MessageState.html +2 -2
  34. package/docs/enums/constants.MessageTargetEntityType.html +2 -2
  35. package/docs/enums/constants.NotificationMode.html +5 -0
  36. package/docs/enums/constants.Operations.html +2 -2
  37. package/docs/enums/constants.ParticipantRole.html +2 -2
  38. package/docs/enums/constants.PresenceStatus.html +2 -2
  39. package/docs/enums/constants.RemoteSdpType.html +2 -2
  40. package/docs/enums/constants.RoomError.html +2 -2
  41. package/docs/enums/constants.RoomEvent.html +44 -42
  42. package/docs/enums/constants.RoomState.html +2 -2
  43. package/docs/enums/constants.SfuEvent.html +47 -41
  44. package/docs/enums/constants.SortOrder.html +2 -2
  45. package/docs/enums/constants.SpaceError.html +3 -2
  46. package/docs/enums/constants.SpaceEvent.html +47 -29
  47. package/docs/enums/constants.State.html +2 -2
  48. package/docs/enums/constants.StatsType.html +2 -2
  49. package/docs/enums/constants.TrackType.html +2 -2
  50. package/docs/enums/constants.UserInfoError.html +2 -2
  51. package/docs/enums/constants.UserManagementError.html +2 -2
  52. package/docs/interfaces/room.RemoteTrack.html +2 -2
  53. package/docs/modules/constants.html +15 -0
  54. package/docs/types/constants.AddRemoveTracks.html +1 -1
  55. package/docs/types/constants.AddRemoveTracksSync.html +1 -1
  56. package/docs/types/constants.AddedMembersToThread.html +1 -1
  57. package/docs/types/constants.AddedRemovedReactionOnMessage.html +1 -1
  58. package/docs/types/constants.AddedRoleToMember.html +1 -1
  59. package/docs/types/constants.Attachment.html +1 -1
  60. package/docs/types/constants.AttachmentInfo.html +1 -1
  61. package/docs/types/constants.AttachmentRequest.html +1 -1
  62. package/docs/types/constants.AttachmentRequestAck.html +1 -1
  63. package/docs/types/constants.AttachmentStatus.html +1 -1
  64. package/docs/types/constants.AttachmentStatusEvent.html +1 -1
  65. package/docs/types/constants.AuthenticationStatusEvent.html +1 -1
  66. package/docs/types/constants.BannedContact.html +1 -1
  67. package/docs/types/constants.BitrateTestStatus.html +1 -1
  68. package/docs/types/constants.BooleanEvent.html +1 -1
  69. package/docs/types/constants.Calendar.html +1 -1
  70. package/docs/types/constants.CalendarEvent.html +1 -1
  71. package/docs/types/constants.CalendarEventEvent.html +1 -1
  72. package/docs/types/constants.ChannelMuted.html +1 -0
  73. package/docs/types/constants.ChannelNotificationSettingsUpdated.html +1 -0
  74. package/docs/types/constants.ChannelUnmuted.html +1 -0
  75. package/docs/types/constants.Chat.html +1 -1
  76. package/docs/types/constants.ChatLoadedEvent.html +1 -1
  77. package/docs/types/constants.ChatMap.html +1 -1
  78. package/docs/types/constants.ChatMessagesCount.html +1 -1
  79. package/docs/types/constants.ChatMessagesEvent.html +1 -1
  80. package/docs/types/constants.ChatMuted.html +1 -0
  81. package/docs/types/constants.ChatNotificationSettingsUpdated.html +1 -0
  82. package/docs/types/constants.ChatSearchResultEvent.html +1 -1
  83. package/docs/types/constants.ChatUnmuted.html +1 -0
  84. package/docs/types/constants.ChatsEvent.html +1 -1
  85. package/docs/types/constants.ConnectionDetails.html +1 -1
  86. package/docs/types/constants.ConnectionFailedEvent.html +1 -1
  87. package/docs/types/constants.Contact.html +1 -1
  88. package/docs/types/constants.ContactDeleted.html +1 -1
  89. package/docs/types/constants.ContactUpdated.html +1 -1
  90. package/docs/types/constants.ControlMessage.html +1 -1
  91. package/docs/types/constants.ControlMessageEvent.html +1 -1
  92. package/docs/types/constants.CreatedRoom.html +1 -1
  93. package/docs/types/constants.EvictedFromRoom.html +1 -1
  94. package/docs/types/constants.EvictedSync.html +1 -1
  95. package/docs/types/constants.ExamplesUser.html +1 -1
  96. package/docs/types/constants.ExamplesUserEvent.html +1 -1
  97. package/docs/types/constants.FirstAndLastChatMessage.html +1 -1
  98. package/docs/types/constants.ForcefullyLeftEvent.html +1 -0
  99. package/docs/types/constants.FragmentedMessage.html +1 -1
  100. package/docs/types/constants.FriendInvite.html +1 -1
  101. package/docs/types/constants.FriendInviteDeleted.html +1 -1
  102. package/docs/types/constants.InternalMessage.html +1 -1
  103. package/docs/types/constants.JoinedRoom.html +1 -1
  104. package/docs/types/constants.JoinedRoomSync.html +1 -1
  105. package/docs/types/constants.LastReadMessageUpdate.html +1 -1
  106. package/docs/types/constants.LastReadMessageUpdated.html +1 -1
  107. package/docs/types/constants.LeftMeetingSync.html +1 -1
  108. package/docs/types/constants.LeftRoom.html +1 -1
  109. package/docs/types/constants.LoadMessagesWithMentionsResult.html +1 -1
  110. package/docs/types/constants.MeetingEndedSync.html +1 -1
  111. package/docs/types/constants.MeetingNameUpdatedSync.html +1 -1
  112. package/docs/types/constants.MeetingsPreviewEvent.html +1 -1
  113. package/docs/types/constants.Message.html +1 -1
  114. package/docs/types/constants.MessageAttachment.html +1 -1
  115. package/docs/types/constants.MessageAttachmentData.html +1 -1
  116. package/docs/types/constants.MessageAttachmentsSearchResult.html +1 -1
  117. package/docs/types/constants.MessageDeleted.html +1 -1
  118. package/docs/types/constants.MessageDeliveryStatus.html +1 -1
  119. package/docs/types/constants.MessageEdited.html +1 -1
  120. package/docs/types/constants.MessageInfo.html +1 -1
  121. package/docs/types/constants.MessageReaction.html +1 -1
  122. package/docs/types/constants.MessageStatus.html +1 -1
  123. package/docs/types/constants.MessageStatusEvent.html +1 -1
  124. package/docs/types/constants.MessageStatusUpdate.html +1 -1
  125. package/docs/types/constants.MessageTargetEntityId.html +1 -1
  126. package/docs/types/constants.MessageWithUploadingAttachments.html +1 -1
  127. package/docs/types/constants.MuteSettings.html +1 -0
  128. package/docs/types/constants.NewChatEvent.html +1 -1
  129. package/docs/types/constants.NewContact.html +1 -1
  130. package/docs/types/constants.NewFriendInvite.html +1 -1
  131. package/docs/types/constants.NewMeeting.html +1 -1
  132. package/docs/types/constants.NewSpaceCategoryEvent.html +1 -1
  133. package/docs/types/constants.NewSpaceChannelEvent.html +1 -1
  134. package/docs/types/constants.NewSpaceEvent.html +1 -1
  135. package/docs/types/constants.NewSpaceRoleAdded.html +1 -1
  136. package/docs/types/constants.NewSpaceThreadEvent.html +1 -1
  137. package/docs/types/constants.OperationFailed.html +1 -1
  138. package/docs/types/constants.OperationFailedEvent.html +1 -1
  139. package/docs/types/constants.Participant.html +1 -1
  140. package/docs/types/constants.ParticipantAVSMutedEvent.html +1 -1
  141. package/docs/types/constants.ParticipantConfigEvent.html +1 -1
  142. package/docs/types/constants.ParticipantRenamed.html +1 -1
  143. package/docs/types/constants.ParticipantsListEvent.html +1 -1
  144. package/docs/types/constants.ParticipantsListSyncEvent.html +1 -1
  145. package/docs/types/constants.PlacedInLobbyEvent.html +1 -1
  146. package/docs/types/constants.PlacedInWaitingRoomEvent.html +1 -1
  147. package/docs/types/constants.PublicChannelsEvent.html +1 -1
  148. package/docs/types/constants.Quality.html +1 -1
  149. package/docs/types/constants.RemoteSdp.html +1 -1
  150. package/docs/types/constants.RemoteSdpInfo.html +1 -1
  151. package/docs/types/constants.RemovedChatEvent.html +1 -1
  152. package/docs/types/constants.RemovedMemberFromThread.html +1 -1
  153. package/docs/types/constants.RemovedRoleFromMember.html +1 -1
  154. package/docs/types/constants.ResetPasswordRequestStatus.html +1 -1
  155. package/docs/types/constants.RoleAssigned.html +1 -1
  156. package/docs/types/constants.RolePermissionSectionsEvent.html +1 -1
  157. package/docs/types/constants.RolesListEvent.html +1 -1
  158. package/docs/types/constants.RoomAvailable.html +1 -1
  159. package/docs/types/constants.RoomConfigEvent.html +1 -1
  160. package/docs/types/constants.RoomExtendedConfig.html +1 -1
  161. package/docs/types/constants.RoomExtendedParticipantConfig.html +1 -1
  162. package/docs/types/constants.RoomExtendedParticipantsConfig.html +1 -1
  163. package/docs/types/constants.RoomExtendedScreenSharingConfig.html +1 -1
  164. package/docs/types/constants.RoomInfo.html +1 -1
  165. package/docs/types/constants.RoomMessage.html +1 -1
  166. package/docs/types/constants.RoomNameUpdated.html +1 -1
  167. package/docs/types/constants.RoomScreenSharingConfigEvent.html +1 -1
  168. package/docs/types/constants.SFUMeetingParticipantPreview.html +1 -1
  169. package/docs/types/constants.SFUMeetingPreview.html +1 -1
  170. package/docs/types/constants.SfuMessageEvent.html +1 -1
  171. package/docs/types/constants.SfuSpace.html +1 -1
  172. package/docs/types/constants.SfuSpaceCategory.html +1 -1
  173. package/docs/types/constants.SfuSpaceChannel.html +1 -1
  174. package/docs/types/constants.SfuSpaceChannelAccessRights.html +1 -1
  175. package/docs/types/constants.SfuSpaceInvite.html +1 -1
  176. package/docs/types/constants.SfuSpaceMember.html +1 -1
  177. package/docs/types/constants.SfuSpaceRole.html +1 -1
  178. package/docs/types/constants.SfuSpaceRolePermission.html +1 -1
  179. package/docs/types/constants.SfuSpaceRolePermissionSection.html +1 -1
  180. package/docs/types/constants.SfuSpaceThread.html +1 -1
  181. package/docs/types/constants.SfuSpaceUserBan.html +1 -1
  182. package/docs/types/constants.SignUpStatus.html +1 -1
  183. package/docs/types/constants.SpaceCategoryDeleted.html +1 -1
  184. package/docs/types/constants.SpaceCategoryUpdated.html +1 -1
  185. package/docs/types/constants.SpaceChannelDeleted.html +1 -1
  186. package/docs/types/constants.SpaceChannelMoved.html +1 -1
  187. package/docs/types/constants.SpaceChannelUpdated.html +1 -1
  188. package/docs/types/constants.SpaceCreatedEvent.html +1 -1
  189. package/docs/types/constants.SpaceDeletedEvent.html +1 -1
  190. package/docs/types/constants.SpaceInviteCreated.html +1 -1
  191. package/docs/types/constants.SpaceInviteRevoked.html +1 -1
  192. package/docs/types/constants.SpaceMuted.html +1 -0
  193. package/docs/types/constants.SpaceNotificationSettingsUpdated.html +1 -0
  194. package/docs/types/constants.SpaceOverviewUpdated.html +1 -1
  195. package/docs/types/constants.SpaceRoleDeleted.html +1 -1
  196. package/docs/types/constants.SpaceRoleUpdated.html +1 -1
  197. package/docs/types/constants.SpaceThreadDeleted.html +1 -1
  198. package/docs/types/constants.SpaceThreadUpdated.html +1 -1
  199. package/docs/types/constants.SpaceUnmuted.html +1 -0
  200. package/docs/types/constants.StopScreenSharingEvent.html +1 -1
  201. package/docs/types/constants.StopTrackEvent.html +1 -1
  202. package/docs/types/constants.ThreadMuted.html +1 -0
  203. package/docs/types/constants.ThreadNotificationSettingsUpdated.html +1 -0
  204. package/docs/types/constants.ThreadUnmuted.html +1 -0
  205. package/docs/types/constants.TracksQualityState.html +1 -1
  206. package/docs/types/constants.UnreadMessagesCountEvent.html +1 -1
  207. package/docs/types/constants.UnreadMessagesCountUpdate.html +1 -1
  208. package/docs/types/constants.UpdateChatEvent.html +1 -1
  209. package/docs/types/constants.UpdateMessagesDeliveryStatusEvent.html +1 -1
  210. package/docs/types/constants.UploadingAttachmentInfo.html +1 -1
  211. package/docs/types/constants.UserCalendarEvent.html +1 -1
  212. package/docs/types/constants.UserChatEncryptedPassword.html +1 -1
  213. package/docs/types/constants.UserContacts.html +1 -1
  214. package/docs/types/constants.UserContactsEvent.html +1 -1
  215. package/docs/types/constants.UserEmail.html +1 -1
  216. package/docs/types/constants.UserEncryptionInfo.html +1 -1
  217. package/docs/types/constants.UserEncryptionInfoEvent.html +1 -1
  218. package/docs/types/constants.UserHostKey.html +1 -1
  219. package/docs/types/constants.UserHostKeyChangedEvent.html +1 -1
  220. package/docs/types/constants.UserId.html +1 -1
  221. package/docs/types/constants.UserInfo.html +1 -1
  222. package/docs/types/constants.UserInfoChangedEvent.html +1 -1
  223. package/docs/types/constants.UserInfoEvent.html +1 -1
  224. package/docs/types/constants.UserJoinedToSpaceEvent.html +1 -1
  225. package/docs/types/constants.UserLeftSpace.html +1 -1
  226. package/docs/types/constants.UserNickname.html +1 -1
  227. package/docs/types/constants.UserNicknameChangedEvent.html +1 -1
  228. package/docs/types/constants.UserPassword.html +1 -1
  229. package/docs/types/constants.UserPhoneNumber.html +1 -1
  230. package/docs/types/constants.UserPhoneNumberChangedEvent.html +1 -1
  231. package/docs/types/constants.UserPmiSettings.html +1 -1
  232. package/docs/types/constants.UserPresenceStatusUpdated.html +1 -1
  233. package/docs/types/constants.UserRoomsEvent.html +1 -1
  234. package/docs/types/constants.UserSpaceNicknameUpdated.html +1 -1
  235. package/docs/types/constants.UserSpacesEvent.html +1 -1
  236. package/docs/types/constants.UserSpecificChatInfo.html +1 -1
  237. package/docs/types/constants.UserTimezone.html +1 -1
  238. package/docs/types/constants.UserTimezoneChangedEvent.html +1 -1
  239. package/docs/types/constants.WaitingListEvent.html +1 -1
  240. package/docs/types/constants.WaitingParticipant.html +1 -1
  241. package/docs/types/constants.WaitingRoomUpdate.html +1 -1
  242. package/docs/types/sfu_extended.EventUnion.html +1 -1
  243. package/docs/types/sfu_extended.NotifyUnion.html +1 -1
  244. package/docs/variables/constants.ATTACHMENT_CHUNK_SIZE.html +1 -1
  245. package/docs/variables/constants.ATTACHMENT_ID_LENGTH.html +1 -1
  246. package/docs/variables/constants.WS_CONNECTION_TIMEOUT.html +1 -1
  247. package/docs/variables/constants.WS_PINGS_MISSING_THRESHOLD.html +1 -1
  248. package/docs/variables/constants.WS_PING_INTERVAL_MS.html +1 -1
  249. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { AddedRoleToMember, Attachment, AttachmentRequest, AttachmentStatus, Calendar, CalendarEvent, SfuSpaceCategory, ChannelSendPolicy, Chat, ChatMap, ChatMessagesCount, ChatReceivePolicy, ChatType, ConnectionDetails, FirstAndLastChatMessage, InternalMessage, LastReadMessageUpdated, LoadMessagesWithMentionsResult, Message, MessageAttachment, MessageAttachmentData, MessageAttachmentMediaType, MessageAttachmentsSearchResult, MessageStatus, RoomInfo, SfuEvent, SignUpStatus, SortOrder, SfuSpace, SfuSpaceRole, State, UserEmail, UserHostKey, UserId, UserInfo, UserNickname, UserPassword, UserPhoneNumber, UserPmiSettings, UserSpecificChatInfo, UserTimezone, SfuSpaceInvite, SfuSpaceChannel, SpaceRoleDeleted, RemovedRoleFromMember, SfuSpaceThread, SpaceChannelUpdated, SfuSpaceRolePermissionSection, SpaceRoleUpdated, SpaceChannelMoved, SpaceEvent, MessageTargetEntityType, MessageTargetEntityId, MeetingSyncEvent, UnreadMessagesCountEvent, FriendInviteDeleted, UserContacts, PresenceStatus, Contact, ExamplesUser, UserEncryptionInfo, UserChatEncryptedPassword, AddedRemovedReactionOnMessage, AddedMembersToThread, RemovedMemberFromThread } from "./constants";
1
+ import { AddedRoleToMember, Attachment, AttachmentRequest, AttachmentStatus, Calendar, CalendarEvent, SfuSpaceCategory, ChannelSendPolicy, Chat, ChatMap, ChatMessagesCount, ChatReceivePolicy, ChatType, ConnectionDetails, FirstAndLastChatMessage, InternalMessage, LastReadMessageUpdated, LoadMessagesWithMentionsResult, Message, MessageAttachment, MessageAttachmentData, MessageAttachmentMediaType, MessageAttachmentsSearchResult, MessageStatus, RoomInfo, SfuEvent, SignUpStatus, SortOrder, SfuSpace, SfuSpaceRole, State, UserEmail, UserHostKey, UserId, UserInfo, UserNickname, UserPassword, UserPhoneNumber, UserPmiSettings, UserSpecificChatInfo, UserTimezone, SfuSpaceInvite, SfuSpaceChannel, SpaceRoleDeleted, RemovedRoleFromMember, SfuSpaceThread, SpaceChannelUpdated, SfuSpaceRolePermissionSection, SpaceRoleUpdated, SpaceChannelMoved, SpaceEvent, MessageTargetEntityType, MessageTargetEntityId, MeetingSyncEvent, UnreadMessagesCountEvent, FriendInviteDeleted, UserContacts, PresenceStatus, Contact, ExamplesUser, UserEncryptionInfo, UserChatEncryptedPassword, AddedRemovedReactionOnMessage, AddedMembersToThread, RemovedMemberFromThread, UserSpaceNicknameUpdated, SpaceNotificationSettingsUpdated, ChannelNotificationSettingsUpdated, ThreadNotificationSettingsUpdated, NotificationMode, ChatNotificationSettingsUpdated, ChatMuted, SpaceMuted, ChannelMuted, ThreadMuted, SpaceUnmuted, ChannelUnmuted, ThreadUnmuted, ChatUnmuted } from "./constants";
2
2
  import { RoomExtended } from "./room-extended";
3
3
  import { SendingAttachmentsHandler } from "./sending-attachments-handler";
4
4
  import { PrefixFunction, Verbosity } from "./logger";
@@ -559,6 +559,40 @@ export declare class SfuExtended {
559
559
  id: string;
560
560
  name: string;
561
561
  }): Promise<void>;
562
+ /**
563
+ * Update chat notification settings
564
+ *
565
+ * Used to modify and store chat notification settings specified in {@link UserSpecificChatInfo.notificationSettings}.
566
+ *
567
+ * Returns {@link ChatNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
568
+ */
569
+ updateChatNotificationSettings(options: {
570
+ id: string;
571
+ value: NotificationMode;
572
+ }): Promise<ChatNotificationSettingsUpdated>;
573
+ /**
574
+ * Mute chat
575
+ *
576
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
577
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
578
+ *
579
+ * Returns {@link ChatMuted}, and other connected devices will also receive this event for synchronization.
580
+ */
581
+ muteChat(options: {
582
+ id: string;
583
+ muteTime?: number;
584
+ mutedIndefinitely?: boolean;
585
+ }): Promise<ChatMuted>;
586
+ /**
587
+ * Unmute chat
588
+ *
589
+ * {@link UserSpecificChatInfo.muteSettings} wil be null - that means the chat is not muted.
590
+ *
591
+ * Returns {@link ChatUnmuted}, and other connected devices will also receive this event for synchronization.
592
+ */
593
+ unmuteChat(options: {
594
+ id: string;
595
+ }): Promise<ChatUnmuted>;
562
596
  /**
563
597
  * Add a member to chat
564
598
  *
@@ -636,6 +670,13 @@ export declare class SfuExtended {
636
670
  removeChatFromFavourites(chat: {
637
671
  id: string;
638
672
  }): Promise<UserSpecificChatInfo>;
673
+ /**
674
+ * Used to change {@link UserSpecificChatInfo.hidden}
675
+ */
676
+ updateChatHiding(chat: {
677
+ id: string;
678
+ hidden: boolean;
679
+ }): Promise<UserSpecificChatInfo>;
639
680
  /**
640
681
  * Create room
641
682
  *
@@ -760,6 +801,40 @@ export declare class SfuExtended {
760
801
  leaveSpace(space: {
761
802
  id: string;
762
803
  }): Promise<void>;
804
+ /**
805
+ * Update space notification settings
806
+ *
807
+ * Used to modify and store space notification settings specified in {@link SfuSpace.notificationSettings}.
808
+ *
809
+ * Returns {@link SpaceNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
810
+ */
811
+ updateSpaceNotificationSettings(options: {
812
+ spaceId: string;
813
+ value: NotificationMode;
814
+ }): Promise<SpaceNotificationSettingsUpdated>;
815
+ /**
816
+ * Mute space
817
+ *
818
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
819
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
820
+ *
821
+ * Returns {@link SpaceMuted}, and other connected devices will also receive this event for synchronization.
822
+ */
823
+ muteSpace(options: {
824
+ spaceId: string;
825
+ muteTime?: number;
826
+ mutedIndefinitely?: boolean;
827
+ }): Promise<SpaceMuted>;
828
+ /**
829
+ * Unmute space
830
+ *
831
+ * {@link SfuSpace.muteSettings} wil be null - that means the space is not muted.
832
+ *
833
+ * Returns {@link SpaceUnmuted}, and other connected devices will also receive this event for synchronization.
834
+ */
835
+ unmuteSpace(options: {
836
+ spaceId: string;
837
+ }): Promise<SpaceUnmuted>;
763
838
  /**
764
839
  * Generate space invite
765
840
  *
@@ -885,6 +960,43 @@ export declare class SfuExtended {
885
960
  spaceId: string;
886
961
  channelId: string;
887
962
  }): Promise<void>;
963
+ /**
964
+ * Update channel notification settings
965
+ *
966
+ * Used to modify and store channel notification settings specified in {@link SfuSpaceChannel.notificationSettings}.
967
+ *
968
+ * Returns {@link ChannelNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
969
+ */
970
+ updateChannelNotificationSettings(options: {
971
+ spaceId: string;
972
+ channelId: string;
973
+ value: NotificationMode;
974
+ }): Promise<ChannelNotificationSettingsUpdated>;
975
+ /**
976
+ * Mute channel
977
+ *
978
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
979
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
980
+ *
981
+ * Returns {@link ChannelMuted}, and other connected devices will also receive this event for synchronization.
982
+ */
983
+ muteChannel(options: {
984
+ spaceId: string;
985
+ channelId: string;
986
+ muteTime?: number;
987
+ mutedIndefinitely?: boolean;
988
+ }): Promise<ChannelMuted>;
989
+ /**
990
+ * Unmute channel
991
+ *
992
+ * {@link SfuSpaceChannel.muteSettings} wil be null - that means the channel is not muted.
993
+ *
994
+ * Returns {@link ChannelUnmuted}, and other connected devices will also receive this event for synchronization.
995
+ */
996
+ unmuteChannel(options: {
997
+ spaceId: string;
998
+ channelId: string;
999
+ }): Promise<ChannelUnmuted>;
888
1000
  /**
889
1001
  * Create space thread
890
1002
  *
@@ -950,6 +1062,46 @@ export declare class SfuExtended {
950
1062
  channelId: string;
951
1063
  threadId: string;
952
1064
  }): Promise<void>;
1065
+ /**
1066
+ * Update thread notification settings
1067
+ *
1068
+ * Used to modify and store thread notification settings specified in {@link SfuSpaceThread.notificationSettings}.
1069
+ *
1070
+ * Returns {@link ThreadNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
1071
+ */
1072
+ updateThreadNotificationSettings(options: {
1073
+ spaceId: string;
1074
+ channelId: string;
1075
+ threadId: string;
1076
+ value: NotificationMode;
1077
+ }): Promise<ThreadNotificationSettingsUpdated>;
1078
+ /**
1079
+ * Mute thread
1080
+ *
1081
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
1082
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
1083
+ *
1084
+ * Returns {@link ThreadMuted}, and other connected devices will also receive this event for synchronization.
1085
+ */
1086
+ muteThread(options: {
1087
+ spaceId: string;
1088
+ channelId: string;
1089
+ threadId: string;
1090
+ muteTime?: number;
1091
+ mutedIndefinitely?: boolean;
1092
+ }): Promise<ThreadMuted>;
1093
+ /**
1094
+ * Unmute thread
1095
+ *
1096
+ * {@link SfuSpaceThread.muteSettings} wil be null - that means the thread is not muted.
1097
+ *
1098
+ * Returns {@link ThreadUnmuted}, and other connected devices will also receive this event for synchronization.
1099
+ */
1100
+ unmuteThread(options: {
1101
+ spaceId: string;
1102
+ channelId: string;
1103
+ threadId: string;
1104
+ }): Promise<ThreadUnmuted>;
953
1105
  /**
954
1106
  * Add space role
955
1107
  *
@@ -1036,17 +1188,25 @@ export declare class SfuExtended {
1036
1188
  getRolePermissions(): Promise<SfuSpaceRolePermissionSection[]>;
1037
1189
  /**
1038
1190
  * Update nickname in the space
1191
+ * Updates a user's nickname in the space.
1039
1192
  *
1040
- * A custom nickname takes higher priority over the global one in a space. The nickname is updated for the {@link SfuSpaceMember}.
1041
- * If a custom nickname is not set, it will be an empty string, and in this case, the display global nickname will be taken from the contacts.
1042
- * To remove a custom nickname and use the global one, provide an empty string.
1193
+ * A custom nickname, if set, takes precedence over the user's global nickname.
1194
+ * If no custom nickname is provided (or an empty string is passed), the user's global nickname must be displayed.
1043
1195
  *
1044
- * Space members will receive {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} with {@link UserSpaceNicknameUpdated}
1196
+ * To remove a previously set the custom nickname and revert to the global one, pass an empty string.
1197
+ *
1198
+ * @param options.userId - Optional. The ID of the user whose nickname is being updated.
1199
+ * If this field is omitted or set to the caller's own ID, the caller's nickname is updated.
1200
+ * The space owner can update anyone's nickname by specifying user ID.
1201
+ * If a non-owner attempts to update another user's nickname, a {@link SpaceError.UPDATE_NICKNAME_ACCESS_RIGHTS_ERROR} is thrown.
1202
+ * All space members receive a {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} event
1203
+ * with a {@link UserSpaceNicknameUpdated} payload when the nickname is updated.
1045
1204
  */
1046
1205
  updateSpaceNickname(options: {
1047
1206
  spaceId: string;
1207
+ userId?: string;
1048
1208
  nickname: string;
1049
- }): Promise<void>;
1209
+ }): Promise<UserSpaceNicknameUpdated>;
1050
1210
  user(): {
1051
1211
  username: string;
1052
1212
  email: string;
@@ -1336,6 +1336,58 @@ class SfuExtended {
1336
1336
  });
1337
1337
  }
1338
1338
  ;
1339
+ /**
1340
+ * Update chat notification settings
1341
+ *
1342
+ * Used to modify and store chat notification settings specified in {@link UserSpecificChatInfo.notificationSettings}.
1343
+ *
1344
+ * Returns {@link ChatNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
1345
+ */
1346
+ updateChatNotificationSettings(options) {
1347
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1348
+ const self = this;
1349
+ return new Promise(function (resolve, reject) {
1350
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_CHAT_NOTIFICATION_SETTINGS, {
1351
+ id: options.id,
1352
+ value: options.value
1353
+ }, resolve, reject);
1354
+ });
1355
+ }
1356
+ /**
1357
+ * Mute chat
1358
+ *
1359
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
1360
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
1361
+ *
1362
+ * Returns {@link ChatMuted}, and other connected devices will also receive this event for synchronization.
1363
+ */
1364
+ muteChat(options) {
1365
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1366
+ const self = this;
1367
+ return new Promise(function (resolve, reject) {
1368
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_CHAT, {
1369
+ id: options.id,
1370
+ muteTime: options.muteTime,
1371
+ mutedIndefinitely: options.mutedIndefinitely
1372
+ }, resolve, reject);
1373
+ });
1374
+ }
1375
+ /**
1376
+ * Unmute chat
1377
+ *
1378
+ * {@link UserSpecificChatInfo.muteSettings} wil be null - that means the chat is not muted.
1379
+ *
1380
+ * Returns {@link ChatUnmuted}, and other connected devices will also receive this event for synchronization.
1381
+ */
1382
+ unmuteChat(options) {
1383
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1384
+ const self = this;
1385
+ return new Promise(function (resolve, reject) {
1386
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_CHAT, {
1387
+ id: options.id,
1388
+ }, resolve, reject);
1389
+ });
1390
+ }
1339
1391
  /**
1340
1392
  * Add a member to chat
1341
1393
  *
@@ -1456,6 +1508,19 @@ class SfuExtended {
1456
1508
  __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.REMOVE_CHAT_FROM_FAVOURITES, { id: chat.id }, resolve, reject);
1457
1509
  });
1458
1510
  }
1511
+ /**
1512
+ * Used to change {@link UserSpecificChatInfo.hidden}
1513
+ */
1514
+ updateChatHiding(chat) {
1515
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1516
+ const self = this;
1517
+ return new Promise(function (resolve, reject) {
1518
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_CHAT_HIDING, {
1519
+ id: chat.id,
1520
+ value: chat.hidden
1521
+ }, resolve, reject);
1522
+ });
1523
+ }
1459
1524
  /**
1460
1525
  * Create room
1461
1526
  *
@@ -1644,6 +1709,58 @@ class SfuExtended {
1644
1709
  }, resolve, reject);
1645
1710
  });
1646
1711
  }
1712
+ /**
1713
+ * Update space notification settings
1714
+ *
1715
+ * Used to modify and store space notification settings specified in {@link SfuSpace.notificationSettings}.
1716
+ *
1717
+ * Returns {@link SpaceNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
1718
+ */
1719
+ updateSpaceNotificationSettings(options) {
1720
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1721
+ const self = this;
1722
+ return new Promise(function (resolve, reject) {
1723
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_SPACE_NOTIFICATION_SETTINGS, {
1724
+ spaceId: options.spaceId,
1725
+ value: options.value
1726
+ }, resolve, reject);
1727
+ });
1728
+ }
1729
+ /**
1730
+ * Mute space
1731
+ *
1732
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
1733
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
1734
+ *
1735
+ * Returns {@link SpaceMuted}, and other connected devices will also receive this event for synchronization.
1736
+ */
1737
+ muteSpace(options) {
1738
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1739
+ const self = this;
1740
+ return new Promise(function (resolve, reject) {
1741
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_SPACE, {
1742
+ spaceId: options.spaceId,
1743
+ muteTime: options.muteTime,
1744
+ mutedIndefinitely: options.mutedIndefinitely
1745
+ }, resolve, reject);
1746
+ });
1747
+ }
1748
+ /**
1749
+ * Unmute space
1750
+ *
1751
+ * {@link SfuSpace.muteSettings} wil be null - that means the space is not muted.
1752
+ *
1753
+ * Returns {@link SpaceUnmuted}, and other connected devices will also receive this event for synchronization.
1754
+ */
1755
+ unmuteSpace(options) {
1756
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1757
+ const self = this;
1758
+ return new Promise(function (resolve, reject) {
1759
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_SPACE, {
1760
+ spaceId: options.spaceId,
1761
+ }, resolve, reject);
1762
+ });
1763
+ }
1647
1764
  /**
1648
1765
  * Generate space invite
1649
1766
  *
@@ -1831,6 +1948,61 @@ class SfuExtended {
1831
1948
  }, resolve, reject);
1832
1949
  });
1833
1950
  }
1951
+ /**
1952
+ * Update channel notification settings
1953
+ *
1954
+ * Used to modify and store channel notification settings specified in {@link SfuSpaceChannel.notificationSettings}.
1955
+ *
1956
+ * Returns {@link ChannelNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
1957
+ */
1958
+ updateChannelNotificationSettings(options) {
1959
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1960
+ const self = this;
1961
+ return new Promise(function (resolve, reject) {
1962
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_CHANNEL_NOTIFICATION_SETTINGS, {
1963
+ spaceId: options.spaceId,
1964
+ channelId: options.channelId,
1965
+ value: options.value
1966
+ }, resolve, reject);
1967
+ });
1968
+ }
1969
+ /**
1970
+ * Mute channel
1971
+ *
1972
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
1973
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
1974
+ *
1975
+ * Returns {@link ChannelMuted}, and other connected devices will also receive this event for synchronization.
1976
+ */
1977
+ muteChannel(options) {
1978
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1979
+ const self = this;
1980
+ return new Promise(function (resolve, reject) {
1981
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_CHANNEL, {
1982
+ spaceId: options.spaceId,
1983
+ channelId: options.channelId,
1984
+ muteTime: options.muteTime,
1985
+ mutedIndefinitely: options.mutedIndefinitely
1986
+ }, resolve, reject);
1987
+ });
1988
+ }
1989
+ /**
1990
+ * Unmute channel
1991
+ *
1992
+ * {@link SfuSpaceChannel.muteSettings} wil be null - that means the channel is not muted.
1993
+ *
1994
+ * Returns {@link ChannelUnmuted}, and other connected devices will also receive this event for synchronization.
1995
+ */
1996
+ unmuteChannel(options) {
1997
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
1998
+ const self = this;
1999
+ return new Promise(function (resolve, reject) {
2000
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_CHANNEL, {
2001
+ spaceId: options.spaceId,
2002
+ channelId: options.channelId,
2003
+ }, resolve, reject);
2004
+ });
2005
+ }
1834
2006
  /**
1835
2007
  * Create space thread
1836
2008
  *
@@ -1926,6 +2098,64 @@ class SfuExtended {
1926
2098
  }, resolve, reject);
1927
2099
  });
1928
2100
  }
2101
+ /**
2102
+ * Update thread notification settings
2103
+ *
2104
+ * Used to modify and store thread notification settings specified in {@link SfuSpaceThread.notificationSettings}.
2105
+ *
2106
+ * Returns {@link ThreadNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
2107
+ */
2108
+ updateThreadNotificationSettings(options) {
2109
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
2110
+ const self = this;
2111
+ return new Promise(function (resolve, reject) {
2112
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_THREAD_NOTIFICATION_SETTINGS, {
2113
+ spaceId: options.spaceId,
2114
+ channelId: options.channelId,
2115
+ threadId: options.threadId,
2116
+ value: options.value
2117
+ }, resolve, reject);
2118
+ });
2119
+ }
2120
+ /**
2121
+ * Mute thread
2122
+ *
2123
+ * @param options.muteTime – the duration for which the sound is muted. The final event will contain {@link MuteSettings.mutedUntil}, which is the current time plus the specified duration.
2124
+ * @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
2125
+ *
2126
+ * Returns {@link ThreadMuted}, and other connected devices will also receive this event for synchronization.
2127
+ */
2128
+ muteThread(options) {
2129
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
2130
+ const self = this;
2131
+ return new Promise(function (resolve, reject) {
2132
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_THREAD, {
2133
+ spaceId: options.spaceId,
2134
+ channelId: options.channelId,
2135
+ threadId: options.threadId,
2136
+ muteTime: options.muteTime,
2137
+ mutedIndefinitely: options.mutedIndefinitely
2138
+ }, resolve, reject);
2139
+ });
2140
+ }
2141
+ /**
2142
+ * Unmute thread
2143
+ *
2144
+ * {@link SfuSpaceThread.muteSettings} wil be null - that means the thread is not muted.
2145
+ *
2146
+ * Returns {@link ThreadUnmuted}, and other connected devices will also receive this event for synchronization.
2147
+ */
2148
+ unmuteThread(options) {
2149
+ __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
2150
+ const self = this;
2151
+ return new Promise(function (resolve, reject) {
2152
+ __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_THREAD, {
2153
+ spaceId: options.spaceId,
2154
+ channelId: options.channelId,
2155
+ threadId: options.threadId,
2156
+ }, resolve, reject);
2157
+ });
2158
+ }
1929
2159
  /**
1930
2160
  * Add space role
1931
2161
  *
@@ -2048,12 +2278,19 @@ class SfuExtended {
2048
2278
  }
2049
2279
  /**
2050
2280
  * Update nickname in the space
2281
+ * Updates a user's nickname in the space.
2282
+ *
2283
+ * A custom nickname, if set, takes precedence over the user's global nickname.
2284
+ * If no custom nickname is provided (or an empty string is passed), the user's global nickname must be displayed.
2051
2285
  *
2052
- * A custom nickname takes higher priority over the global one in a space. The nickname is updated for the {@link SfuSpaceMember}.
2053
- * If a custom nickname is not set, it will be an empty string, and in this case, the display global nickname will be taken from the contacts.
2054
- * To remove a custom nickname and use the global one, provide an empty string.
2286
+ * To remove a previously set the custom nickname and revert to the global one, pass an empty string.
2055
2287
  *
2056
- * Space members will receive {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} with {@link UserSpaceNicknameUpdated}
2288
+ * @param options.userId - Optional. The ID of the user whose nickname is being updated.
2289
+ * If this field is omitted or set to the caller's own ID, the caller's nickname is updated.
2290
+ * The space owner can update anyone's nickname by specifying user ID.
2291
+ * If a non-owner attempts to update another user's nickname, a {@link SpaceError.UPDATE_NICKNAME_ACCESS_RIGHTS_ERROR} is thrown.
2292
+ * All space members receive a {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} event
2293
+ * with a {@link UserSpaceNicknameUpdated} payload when the nickname is updated.
2057
2294
  */
2058
2295
  updateSpaceNickname(options) {
2059
2296
  __classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
@@ -2061,6 +2298,7 @@ class SfuExtended {
2061
2298
  return new Promise(function (resolve, reject) {
2062
2299
  __classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_SPACE_NICKNAME, {
2063
2300
  spaceId: options.spaceId,
2301
+ userId: options.userId,
2064
2302
  nickname: options.nickname
2065
2303
  }, resolve, reject);
2066
2304
  });
@@ -2289,6 +2527,24 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
2289
2527
  __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_UPDATED, chat.info);
2290
2528
  }
2291
2529
  }
2530
+ else if (data[0].type === constants_1.SfuEvent.CHAT_NOTIFICATION_SETTINGS_UPDATED) {
2531
+ const event = data[0];
2532
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2533
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_NOTIFICATION_SETTINGS_UPDATED, event);
2534
+ }
2535
+ }
2536
+ else if (data[0].type === constants_1.SfuEvent.CHAT_MUTED) {
2537
+ const event = data[0];
2538
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2539
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_MUTED, event);
2540
+ }
2541
+ }
2542
+ else if (data[0].type === constants_1.SfuEvent.CHAT_UNMUTED) {
2543
+ const event = data[0];
2544
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2545
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_UNMUTED, event);
2546
+ }
2547
+ }
2292
2548
  else if (data[0].type === constants_1.InternalApi.USER_CHATS) {
2293
2549
  //TODO: optimize - should use with if (zapp-420)
2294
2550
  const chats = data[0];
@@ -2328,6 +2584,10 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
2328
2584
  if (participant.userId === room.userId()) {
2329
2585
  cleanup();
2330
2586
  }
2587
+ }).on(constants_1.RoomEvent.FORCEFULLY_LEFT, function (event) {
2588
+ if (event.userId === room.userId()) {
2589
+ cleanup();
2590
+ }
2331
2591
  }).on(constants_1.RoomEvent.EVICTED, function (participant) {
2332
2592
  if (participant.userId === room.userId()) {
2333
2593
  cleanup();
@@ -2360,6 +2620,10 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
2360
2620
  if (participant.userId === room.userId()) {
2361
2621
  cleanup();
2362
2622
  }
2623
+ }).on(constants_1.RoomEvent.FORCEFULLY_LEFT, function (event) {
2624
+ if (event.userId === room.userId()) {
2625
+ cleanup();
2626
+ }
2363
2627
  }).on(constants_1.RoomEvent.DROPPED, function (participant) {
2364
2628
  if (participant.userId === room.userId()) {
2365
2629
  cleanup();
@@ -2389,6 +2653,10 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
2389
2653
  if (participant.userId === room.userId()) {
2390
2654
  cleanup();
2391
2655
  }
2656
+ }).on(constants_1.RoomEvent.FORCEFULLY_LEFT, function (event) {
2657
+ if (event.userId === room.userId()) {
2658
+ cleanup();
2659
+ }
2392
2660
  }).on(constants_1.RoomEvent.DROPPED, function (participant) {
2393
2661
  if (participant.userId === room.userId()) {
2394
2662
  cleanup();
@@ -2670,6 +2938,60 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
2670
2938
  __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.USER_SPACE_NICKNAME_UPDATED, event);
2671
2939
  }
2672
2940
  }
2941
+ else if (data[0].type === constants_1.SpaceEvent.SPACE_NOTIFICATION_SETTINGS_UPDATED) {
2942
+ const event = data[0];
2943
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2944
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_NOTIFICATION_SETTINGS_UPDATED, event);
2945
+ }
2946
+ }
2947
+ else if (data[0].type === constants_1.SpaceEvent.CHANNEL_NOTIFICATION_SETTINGS_UPDATED) {
2948
+ const event = data[0];
2949
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2950
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_NOTIFICATION_SETTINGS_UPDATED, event);
2951
+ }
2952
+ }
2953
+ else if (data[0].type === constants_1.SpaceEvent.THREAD_NOTIFICATION_SETTINGS_UPDATED) {
2954
+ const event = data[0];
2955
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2956
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_NOTIFICATION_SETTINGS_UPDATED, event);
2957
+ }
2958
+ }
2959
+ else if (data[0].type === constants_1.SpaceEvent.SPACE_MUTED) {
2960
+ const event = data[0];
2961
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2962
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_MUTED, event);
2963
+ }
2964
+ }
2965
+ else if (data[0].type === constants_1.SpaceEvent.SPACE_UNMUTED) {
2966
+ const event = data[0];
2967
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2968
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_UNMUTED, event);
2969
+ }
2970
+ }
2971
+ else if (data[0].type === constants_1.SpaceEvent.CHANNEL_MUTED) {
2972
+ const event = data[0];
2973
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2974
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_MUTED, event);
2975
+ }
2976
+ }
2977
+ else if (data[0].type === constants_1.SpaceEvent.CHANNEL_UNMUTED) {
2978
+ const event = data[0];
2979
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2980
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_UNMUTED, event);
2981
+ }
2982
+ }
2983
+ else if (data[0].type === constants_1.SpaceEvent.THREAD_MUTED) {
2984
+ const event = data[0];
2985
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2986
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_MUTED, event);
2987
+ }
2988
+ }
2989
+ else if (data[0].type === constants_1.SpaceEvent.THREAD_UNMUTED) {
2990
+ const event = data[0];
2991
+ if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
2992
+ __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_UNMUTED, event);
2993
+ }
2994
+ }
2673
2995
  else if (data[0].type === constants_1.SfuEvent.USER_MEETINGS) {
2674
2996
  const event = data[0];
2675
2997
  __classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.USER_MEETINGS, event);