@flashphoner/sfusdk 2.0.278 → 2.0.280

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 (264) hide show
  1. package/dist/client.version +1 -1
  2. package/dist/sdk/constants.d.ts +209 -38
  3. package/dist/sdk/constants.js +164 -14
  4. package/dist/sdk/constants.js.map +1 -1
  5. package/dist/sdk/room-extended.d.ts +154 -0
  6. package/dist/sdk/room-extended.js +154 -0
  7. package/dist/sdk/room-extended.js.map +1 -1
  8. package/dist/sdk/room.d.ts +41 -0
  9. package/dist/sdk/room.js +41 -0
  10. package/dist/sdk/room.js.map +1 -1
  11. package/dist/sdk/sfu-extended.d.ts +586 -96
  12. package/dist/sdk/sfu-extended.js +785 -247
  13. package/dist/sdk/sfu-extended.js.map +1 -1
  14. package/docs/.nojekyll +1 -0
  15. package/docs/assets/highlight.css +78 -0
  16. package/docs/assets/icons.js +15 -0
  17. package/docs/assets/icons.svg +1 -0
  18. package/docs/assets/main.js +59 -0
  19. package/docs/assets/navigation.js +1 -0
  20. package/docs/assets/search.js +1 -0
  21. package/docs/assets/style.css +1412 -0
  22. package/docs/classes/BitrateTest.BitrateTest.html +11 -0
  23. package/docs/classes/BitrateTest.PacedSender.html +13 -0
  24. package/docs/classes/connection.Connection.html +15 -0
  25. package/docs/classes/logger.default.html +14 -0
  26. package/docs/classes/notifier.Notifier.html +7 -0
  27. package/docs/classes/reset_password_handler.ResetPasswordHandler.html +4 -0
  28. package/docs/classes/room.Room.html +73 -0
  29. package/docs/classes/room_extended.RoomExtended.html +172 -0
  30. package/docs/classes/sending_attachments_handler.SendingAttachmentsHandler.html +7 -0
  31. package/docs/classes/sfu.Sfu.html +18 -0
  32. package/docs/classes/sfu_extended.SfuExtended.html +335 -0
  33. package/docs/classes/webrtc_stats.WebRTCStats.html +11 -0
  34. package/docs/enums/constants.AttachmentState.html +5 -0
  35. package/docs/enums/constants.AuthenticationStatus.html +2 -0
  36. package/docs/enums/constants.ChannelSendPolicy.html +4 -0
  37. package/docs/enums/constants.ChatError.html +15 -0
  38. package/docs/enums/constants.ChatReceivePolicy.html +4 -0
  39. package/docs/enums/constants.ChatSectionsError.html +2 -0
  40. package/docs/enums/constants.ChatType.html +3 -0
  41. package/docs/enums/constants.ConferenceType.html +4 -0
  42. package/docs/enums/constants.ConnectionType.html +5 -0
  43. package/docs/enums/constants.ContactError.html +2 -0
  44. package/docs/enums/constants.DeliveryStatus.html +4 -0
  45. package/docs/enums/constants.InternalApi.html +150 -0
  46. package/docs/enums/constants.MeetingSyncEvent.html +21 -0
  47. package/docs/enums/constants.MessageAttachmentMediaType.html +3 -0
  48. package/docs/enums/constants.MessageAttachmentType.html +3 -0
  49. package/docs/enums/constants.MessageState.html +10 -0
  50. package/docs/enums/constants.MessageTargetEntityType.html +4 -0
  51. package/docs/enums/constants.Operations.html +79 -0
  52. package/docs/enums/constants.ParticipantRole.html +4 -0
  53. package/docs/enums/constants.PresenceStatus.html +5 -0
  54. package/docs/enums/constants.RemoteSdpType.html +4 -0
  55. package/docs/enums/constants.RoomError.html +14 -0
  56. package/docs/enums/constants.RoomEvent.html +91 -0
  57. package/docs/enums/constants.RoomState.html +6 -0
  58. package/docs/enums/constants.SfuEvent.html +103 -0
  59. package/docs/enums/constants.SortOrder.html +3 -0
  60. package/docs/enums/constants.SpaceError.html +3 -0
  61. package/docs/enums/constants.SpaceEvent.html +53 -0
  62. package/docs/enums/constants.State.html +7 -0
  63. package/docs/enums/constants.StatsType.html +3 -0
  64. package/docs/enums/constants.TrackType.html +3 -0
  65. package/docs/enums/constants.UserInfoError.html +6 -0
  66. package/docs/enums/constants.UserManagementError.html +11 -0
  67. package/docs/enums/logger.Verbosity.html +6 -0
  68. package/docs/functions/promises.add.html +1 -0
  69. package/docs/functions/promises.reject.html +1 -0
  70. package/docs/functions/promises.resolve.html +1 -0
  71. package/docs/hierarchy.html +1 -0
  72. package/docs/index.html +11 -0
  73. package/docs/interfaces/BitrateTest.BitrateComponentEventBus.html +6 -0
  74. package/docs/interfaces/BitrateTest.BitrateTestController.html +4 -0
  75. package/docs/interfaces/BitrateTest.BitrateTestListener.html +2 -0
  76. package/docs/interfaces/BitrateTest.Sink.html +3 -0
  77. package/docs/interfaces/room.RemoteTrack.html +13 -0
  78. package/docs/modules/BitrateTest.html +8 -0
  79. package/docs/modules/connection.html +2 -0
  80. package/docs/modules/constants.html +203 -0
  81. package/docs/modules/logger.html +4 -0
  82. package/docs/modules/notifier.html +3 -0
  83. package/docs/modules/promises.html +5 -0
  84. package/docs/modules/reset_password_handler.html +2 -0
  85. package/docs/modules/room.html +3 -0
  86. package/docs/modules/room_extended.html +2 -0
  87. package/docs/modules/sending_attachments_handler.html +2 -0
  88. package/docs/modules/sfu.html +2 -0
  89. package/docs/modules/sfu_extended.html +2 -0
  90. package/docs/modules/webrtc_stats.html +2 -0
  91. package/docs/types/BitrateTest.DynamicRate.html +1 -0
  92. package/docs/types/constants.AddRemoveTracks.html +1 -0
  93. package/docs/types/constants.AddRemoveTracksSync.html +1 -0
  94. package/docs/types/constants.AddedRoleToMember.html +1 -0
  95. package/docs/types/constants.Attachment.html +1 -0
  96. package/docs/types/constants.AttachmentInfo.html +1 -0
  97. package/docs/types/constants.AttachmentRequest.html +1 -0
  98. package/docs/types/constants.AttachmentRequestAck.html +1 -0
  99. package/docs/types/constants.AttachmentStatus.html +1 -0
  100. package/docs/types/constants.AttachmentStatusEvent.html +1 -0
  101. package/docs/types/constants.AuthenticationStatusEvent.html +1 -0
  102. package/docs/types/constants.BannedContact.html +1 -0
  103. package/docs/types/constants.BitrateTestStatus.html +1 -0
  104. package/docs/types/constants.BooleanEvent.html +1 -0
  105. package/docs/types/constants.Calendar.html +1 -0
  106. package/docs/types/constants.CalendarEvent.html +1 -0
  107. package/docs/types/constants.CalendarEventEvent.html +1 -0
  108. package/docs/types/constants.Chat.html +1 -0
  109. package/docs/types/constants.ChatLoadedEvent.html +1 -0
  110. package/docs/types/constants.ChatMap.html +1 -0
  111. package/docs/types/constants.ChatMessagesCount.html +1 -0
  112. package/docs/types/constants.ChatMessagesEvent.html +1 -0
  113. package/docs/types/constants.ChatSearchResultEvent.html +1 -0
  114. package/docs/types/constants.ChatsEvent.html +1 -0
  115. package/docs/types/constants.ConnectionDetails.html +1 -0
  116. package/docs/types/constants.ConnectionFailedEvent.html +1 -0
  117. package/docs/types/constants.Contact.html +1 -0
  118. package/docs/types/constants.ContactDeleted.html +1 -0
  119. package/docs/types/constants.ContactUpdated.html +1 -0
  120. package/docs/types/constants.ControlMessage.html +1 -0
  121. package/docs/types/constants.ControlMessageEvent.html +1 -0
  122. package/docs/types/constants.CreatedRoom.html +1 -0
  123. package/docs/types/constants.EvictedFromRoom.html +1 -0
  124. package/docs/types/constants.EvictedSync.html +1 -0
  125. package/docs/types/constants.FirstAndLastChatMessage.html +1 -0
  126. package/docs/types/constants.FragmentedMessage.html +1 -0
  127. package/docs/types/constants.FriendInvite.html +1 -0
  128. package/docs/types/constants.FriendInviteDeleted.html +1 -0
  129. package/docs/types/constants.InternalMessage.html +1 -0
  130. package/docs/types/constants.JoinedRoom.html +1 -0
  131. package/docs/types/constants.JoinedRoomSync.html +1 -0
  132. package/docs/types/constants.LastReadMessageUpdate.html +1 -0
  133. package/docs/types/constants.LastReadMessageUpdated.html +1 -0
  134. package/docs/types/constants.LeftMeetingSync.html +1 -0
  135. package/docs/types/constants.LeftRoom.html +1 -0
  136. package/docs/types/constants.LoadMessagesWithMentionsResult.html +1 -0
  137. package/docs/types/constants.MeetingEndedSync.html +1 -0
  138. package/docs/types/constants.MeetingNameUpdatedSync.html +1 -0
  139. package/docs/types/constants.MeetingsPreviewEvent.html +1 -0
  140. package/docs/types/constants.Message.html +1 -0
  141. package/docs/types/constants.MessageAttachment.html +1 -0
  142. package/docs/types/constants.MessageAttachmentData.html +1 -0
  143. package/docs/types/constants.MessageAttachmentsSearchResult.html +1 -0
  144. package/docs/types/constants.MessageDeleted.html +1 -0
  145. package/docs/types/constants.MessageDeliveryStatus.html +1 -0
  146. package/docs/types/constants.MessageEdited.html +1 -0
  147. package/docs/types/constants.MessageInfo.html +1 -0
  148. package/docs/types/constants.MessageStatus.html +1 -0
  149. package/docs/types/constants.MessageStatusEvent.html +1 -0
  150. package/docs/types/constants.MessageStatusUpdate.html +1 -0
  151. package/docs/types/constants.MessageTargetEntityId.html +1 -0
  152. package/docs/types/constants.MessageWithUploadingAttachments.html +1 -0
  153. package/docs/types/constants.NewChatEvent.html +1 -0
  154. package/docs/types/constants.NewContact.html +1 -0
  155. package/docs/types/constants.NewFriendInvite.html +1 -0
  156. package/docs/types/constants.NewMeeting.html +1 -0
  157. package/docs/types/constants.NewSpaceCategoryEvent.html +1 -0
  158. package/docs/types/constants.NewSpaceChannelEvent.html +1 -0
  159. package/docs/types/constants.NewSpaceEvent.html +1 -0
  160. package/docs/types/constants.NewSpaceRoleAdded.html +1 -0
  161. package/docs/types/constants.NewSpaceThreadEvent.html +1 -0
  162. package/docs/types/constants.OperationFailed.html +1 -0
  163. package/docs/types/constants.OperationFailedEvent.html +1 -0
  164. package/docs/types/constants.Participant.html +1 -0
  165. package/docs/types/constants.ParticipantAVSMutedEvent.html +1 -0
  166. package/docs/types/constants.ParticipantConfigEvent.html +1 -0
  167. package/docs/types/constants.ParticipantRenamed.html +1 -0
  168. package/docs/types/constants.ParticipantsListEvent.html +1 -0
  169. package/docs/types/constants.ParticipantsListSyncEvent.html +1 -0
  170. package/docs/types/constants.PlacedInLobbyEvent.html +1 -0
  171. package/docs/types/constants.PlacedInWaitingRoomEvent.html +1 -0
  172. package/docs/types/constants.PublicChannelsEvent.html +1 -0
  173. package/docs/types/constants.Quality.html +1 -0
  174. package/docs/types/constants.RemoteSdp.html +1 -0
  175. package/docs/types/constants.RemoteSdpInfo.html +1 -0
  176. package/docs/types/constants.RemovedChatEvent.html +1 -0
  177. package/docs/types/constants.RemovedRoleFromMember.html +1 -0
  178. package/docs/types/constants.ResetPasswordRequestStatus.html +1 -0
  179. package/docs/types/constants.RoleAssigned.html +1 -0
  180. package/docs/types/constants.RolePermissionSectionsEvent.html +1 -0
  181. package/docs/types/constants.RolesListEvent.html +1 -0
  182. package/docs/types/constants.RoomAvailable.html +1 -0
  183. package/docs/types/constants.RoomConfigEvent.html +1 -0
  184. package/docs/types/constants.RoomExtendedConfig.html +1 -0
  185. package/docs/types/constants.RoomExtendedParticipantConfig.html +1 -0
  186. package/docs/types/constants.RoomExtendedParticipantsConfig.html +1 -0
  187. package/docs/types/constants.RoomExtendedScreenSharingConfig.html +1 -0
  188. package/docs/types/constants.RoomInfo.html +1 -0
  189. package/docs/types/constants.RoomMessage.html +1 -0
  190. package/docs/types/constants.RoomNameUpdated.html +1 -0
  191. package/docs/types/constants.RoomScreenSharingConfigEvent.html +1 -0
  192. package/docs/types/constants.SFUMeetingParticipantPreview.html +1 -0
  193. package/docs/types/constants.SFUMeetingPreview.html +1 -0
  194. package/docs/types/constants.SfuMessageEvent.html +1 -0
  195. package/docs/types/constants.SfuSpace.html +1 -0
  196. package/docs/types/constants.SfuSpaceCategory.html +1 -0
  197. package/docs/types/constants.SfuSpaceChannel.html +1 -0
  198. package/docs/types/constants.SfuSpaceChannelAccessRights.html +1 -0
  199. package/docs/types/constants.SfuSpaceInvite.html +1 -0
  200. package/docs/types/constants.SfuSpaceMember.html +1 -0
  201. package/docs/types/constants.SfuSpaceRole.html +1 -0
  202. package/docs/types/constants.SfuSpaceRolePermission.html +1 -0
  203. package/docs/types/constants.SfuSpaceRolePermissionSection.html +1 -0
  204. package/docs/types/constants.SfuSpaceThread.html +1 -0
  205. package/docs/types/constants.SfuSpaceUserBan.html +1 -0
  206. package/docs/types/constants.SignUpStatus.html +1 -0
  207. package/docs/types/constants.SpaceCategoryDeleted.html +1 -0
  208. package/docs/types/constants.SpaceCategoryUpdated.html +1 -0
  209. package/docs/types/constants.SpaceChannelDeleted.html +1 -0
  210. package/docs/types/constants.SpaceChannelMoved.html +1 -0
  211. package/docs/types/constants.SpaceChannelUpdated.html +1 -0
  212. package/docs/types/constants.SpaceCreatedEvent.html +1 -0
  213. package/docs/types/constants.SpaceDeletedEvent.html +1 -0
  214. package/docs/types/constants.SpaceInviteCreated.html +1 -0
  215. package/docs/types/constants.SpaceInviteRevoked.html +1 -0
  216. package/docs/types/constants.SpaceOverviewUpdated.html +1 -0
  217. package/docs/types/constants.SpaceRoleDeleted.html +1 -0
  218. package/docs/types/constants.SpaceRoleUpdated.html +1 -0
  219. package/docs/types/constants.SpaceThreadDeleted.html +1 -0
  220. package/docs/types/constants.SpaceThreadUpdated.html +1 -0
  221. package/docs/types/constants.StopScreenSharingEvent.html +1 -0
  222. package/docs/types/constants.StopTrackEvent.html +1 -0
  223. package/docs/types/constants.TracksQualityState.html +1 -0
  224. package/docs/types/constants.UnreadMessagesCountEvent.html +1 -0
  225. package/docs/types/constants.UnreadMessagesCountUpdate.html +1 -0
  226. package/docs/types/constants.UpdateChatEvent.html +1 -0
  227. package/docs/types/constants.UpdateMessagesDeliveryStatusEvent.html +1 -0
  228. package/docs/types/constants.UploadingAttachmentInfo.html +1 -0
  229. package/docs/types/constants.UserCalendarEvent.html +1 -0
  230. package/docs/types/constants.UserContacts.html +1 -0
  231. package/docs/types/constants.UserContactsEvent.html +1 -0
  232. package/docs/types/constants.UserEmail.html +1 -0
  233. package/docs/types/constants.UserHostKey.html +1 -0
  234. package/docs/types/constants.UserHostKeyChangedEvent.html +1 -0
  235. package/docs/types/constants.UserId.html +1 -0
  236. package/docs/types/constants.UserInfo.html +1 -0
  237. package/docs/types/constants.UserInfoChangedEvent.html +1 -0
  238. package/docs/types/constants.UserInfoEvent.html +1 -0
  239. package/docs/types/constants.UserJoinedToSpaceEvent.html +1 -0
  240. package/docs/types/constants.UserLeftSpace.html +1 -0
  241. package/docs/types/constants.UserNickname.html +1 -0
  242. package/docs/types/constants.UserNicknameChangedEvent.html +1 -0
  243. package/docs/types/constants.UserPassword.html +1 -0
  244. package/docs/types/constants.UserPhoneNumber.html +1 -0
  245. package/docs/types/constants.UserPhoneNumberChangedEvent.html +1 -0
  246. package/docs/types/constants.UserPmiSettings.html +1 -0
  247. package/docs/types/constants.UserPresenceStatusUpdated.html +1 -0
  248. package/docs/types/constants.UserRoomsEvent.html +1 -0
  249. package/docs/types/constants.UserSpacesEvent.html +1 -0
  250. package/docs/types/constants.UserSpecificChatInfo.html +1 -0
  251. package/docs/types/constants.UserTimezone.html +1 -0
  252. package/docs/types/constants.UserTimezoneChangedEvent.html +1 -0
  253. package/docs/types/constants.WaitingListEvent.html +1 -0
  254. package/docs/types/constants.WaitingParticipant.html +1 -0
  255. package/docs/types/constants.WaitingRoomUpdate.html +1 -0
  256. package/docs/types/logger.PrefixFunction.html +1 -0
  257. package/docs/types/notifier.NotifierHandler.html +1 -0
  258. package/docs/variables/constants.ATTACHMENT_CHUNK_SIZE.html +1 -0
  259. package/docs/variables/constants.ATTACHMENT_ID_LENGTH.html +1 -0
  260. package/docs/variables/constants.WS_CONNECTION_TIMEOUT.html +1 -0
  261. package/docs/variables/constants.WS_PINGS_MISSING_THRESHOLD.html +1 -0
  262. package/docs/variables/constants.WS_PING_INTERVAL_MS.html +1 -0
  263. package/docs/variables/promises.default.html +1 -0
  264. package/package.json +2 -1
@@ -1 +1 @@
1
- 2.0.278-ab4087db5377341f639e9a8e5f280c37a81adfdb
1
+ 2.0.280-29bdbc4bdea5d85ba36649ef7dfdb31a02b89e28
@@ -1,137 +1,282 @@
1
+ /**
2
+ * SfuEvent
3
+ * Used to receive events from the server with SfuExtended.on()
4
+ */
1
5
  export declare enum SfuEvent {
6
+ /** Used without callback event */
2
7
  CONNECTED = "CONNECTED",
8
+ /** Used to receive {@link OperationFailed} */
3
9
  FAILED = "FAILED",
10
+ /** Used to receive {@link ConnectionFailedEvent} */
4
11
  CONNECTION_FAILED = "CONNECTION_FAILED",
12
+ /** Used without callback event */
5
13
  DISCONNECTED = "DISCONNECTED",
14
+ /** Used to receive {@link Message} */
6
15
  MESSAGE = "MESSAGE",
7
- USER_LIST = "USER_LIST",
16
+ /** Used to receive {@link ChatsEvent} */
8
17
  USER_CHATS = "USER_CHATS",
18
+ /** Used to receive {@link Chat} */
9
19
  CHAT_LOADED = "CHAT_LOADED",
20
+ /** Used to receive {@link ChatMessagesEvent} */
10
21
  CHAT_MESSAGES = "CHAT_MESSAGES",
22
+ /** Used to receive {@link ChatSearchResultEvent} */
11
23
  CHAT_SEARCH_RESULT = "CHAT_SEARCH_RESULT",
24
+ /** Used to receive {@link UserSpecificChatInfo} */
12
25
  NEW_CHAT = "NEW_CHAT",
26
+ /** Used to receive {@link UserSpecificChatInfo} */
13
27
  CHAT_DELETED = "CHAT_DELETED",
28
+ /** Used to receive {@link UserSpecificChatInfo} */
14
29
  CHAT_UPDATED = "CHAT_UPDATED",
30
+ /** Used to receive {@link MessageStatus} */
15
31
  MESSAGE_STATE = "MESSAGE_STATE",
32
+ /** Used to receive {@link AttachmentStatus} */
16
33
  MESSAGE_ATTACHMENT_STATE = "MESSAGE_ATTACHMENT_STATE",
34
+ /** Used to receive {@link LastReadMessageUpdated} */
17
35
  LAST_READ_MESSAGE_UPDATED = "LAST_READ_MESSAGE_UPDATED",
36
+ /** Used to receive {@link UpdateMessagesDeliveryStatusEvent} */
18
37
  UPDATE_MESSAGES_DELIVERY_STATUS = "UPDATE_MESSAGES_DELIVERY_STATUS",
19
- CONTACT_UPDATE = "CONTACT_UPDATE",
20
- CONTACT_REMOVED = "CONTACT_REMOVED",
21
- CONTACT_INVITE = "CONTACT_INVITE",
38
+ /** @deprecated */
22
39
  PUBLIC_CHANNELS = "PUBLIC_CHANNELS",
40
+ /** Used to receive {@link Calendar} */
23
41
  USER_CALENDAR = "USER_CALENDAR",
42
+ /** Used to receive {@link CalendarEvent} */
24
43
  NEW_CALENDAR_ENTRY = "NEW_CALENDAR_ENTRY",
44
+ /** Used to receive {@link CalendarEvent} */
25
45
  REMOVE_CALENDAR_ENTRY = "REMOVE_CALENDAR_ENTRY",
46
+ /** Used to receive {@link CalendarEvent} */
26
47
  UPDATE_CALENDAR_EVENT = "UPDATE_CALENDAR_EVENT",
48
+ /** Used without callback event */
27
49
  ACK = "ACK",
28
50
  ATTACHMENT_DATA = "ATTACHMENT_DATA",
29
51
  USER_ROOMS = "USER_ROOMS",
30
52
  ATTACHMENT = "ATTACHMENT",
53
+ /** Used to receive {@link UserPmiSettings} */
31
54
  SFU_USER_PMI_SETTINGS = "SFU_USER_PMI_SETTINGS",
55
+ /** Used to receive {@link UserPmiSettings} */
32
56
  UPDATE_USER_PMI_SETTINGS = "UPDATE_USER_PMI_SETTINGS",
57
+ /** Used to receive {@link UserInfo} */
33
58
  USER_INFO = "USER_INFO",
59
+ /** Used to receive {@link UserInfoChangedEvent} */
34
60
  USER_INFO_CHANGED = "USER_INFO_CHANGED",
61
+ /** Used to receive {@link MessageEdited} */
35
62
  CHAT_MESSAGE_EDITED = "CHAT_MESSAGE_EDITED",
63
+ /** Used to receive {@link MessageDeleted} */
36
64
  CHAT_MESSAGE_DELETED = "CHAT_MESSAGE_DELETED",
65
+ /** Used to receive {@link SignUpStatus} */
37
66
  SIGN_UP_STATUS = "SIGN_UP_STATUS",
67
+ /** Used to receive {@link ResetPasswordRequestStatus} */
38
68
  RESET_PASSWORD_REQUEST_STATUS = "RESET_PASSWORD_REQUEST_STATUS",
69
+ /** Used to receive {@link ChatMessagesCount} */
39
70
  CHAT_MESSAGES_COUNT = "CHAT_MESSAGES_COUNT",
71
+ /** Used to receive {@link FirstAndLastChatMessage} */
40
72
  FIRST_AND_LAST_CHAT_MESSAGE = "FIRST_AND_LAST_CHAT_MESSAGE",
73
+ /** Used to receive {@link UnreadMessagesCountEvent} */
41
74
  UNREAD_MESSAGES_COUNT = "UNREAD_MESSAGES_COUNT",
75
+ /** Used to receive {@link UnreadMessagesCountUpdate} */
42
76
  UNREAD_MESSAGES_COUNT_UPDATE = "UNREAD_MESSAGES_COUNT_UPDATE",
77
+ /** Used to receive {@link MessageAttachmentsSearchResult} */
43
78
  MESSAGE_ATTACHMENTS_SEARCH_RESULT = "MESSAGE_ATTACHMENTS_SEARCH_RESULT",
79
+ /** Used to receive {@link LoadMessagesWithMentionsResult} */
44
80
  LOAD_MESSAGES_WITH_MENTIONS_RESULT = "LOAD_MESSAGES_WITH_MENTIONS_RESULT",
81
+ /** Used to receive {@link Message} */
45
82
  SEND_MESSAGE_SYNC = "SEND_MESSAGE_SYNC",
83
+ /** Used to receive {@link AuthenticationStatusEvent} */
46
84
  AUTHENTICATION_STATUS = "AUTHENTICATION_STATUS",
85
+ /** Used to receive {@link NewMeeting} */
47
86
  NEW_MEETING = "NEW_MEETING",
48
- USER_MEETINGS = "USER_MEETINGS"
87
+ /** Used to receive {@link MeetingsPreviewEvent} */
88
+ USER_MEETINGS = "USER_MEETINGS",
89
+ /** Used to receive {@link UserContacts} */
90
+ USER_CONTACTS = "USER_CONTACTS",
91
+ /** Used to receive {@link NewFriendInvite} */
92
+ NEW_INCOMING_FRIEND_INVITE = "NEW_INCOMING_FRIEND_INVITE",
93
+ /** Used to receive {@link NewFriendInvite} */
94
+ NEW_OUTGOING_FRIEND_INVITE = "NEW_OUTGOING_FRIEND_INVITE",
95
+ /** Used to receive {@link FriendInviteDeleted} */
96
+ INCOMING_FRIEND_INVITE_DELETED = "INCOMING_FRIEND_INVITE_DELETED",
97
+ /** Used to receive {@link FriendInviteDeleted} */
98
+ OUTGOING_FRIEND_INVITE_DELETED = "OUTGOING_FRIEND_INVITE_DELETED",
99
+ /** Used to receive {@link UserPresenceStatusUpdated} */
100
+ USER_PRESENCE_STATUS_UPDATED = "USER_PRESENCE_STATUS_UPDATED",
101
+ /** Used to receive {@link NewContact} */
102
+ NEW_CONTACT = "NEW_CONTACT",
103
+ /** Used to receive {@link ContactUpdated} */
104
+ CONTACT_UPDATED = "CONTACT_UPDATED",
105
+ /** Used to receive {@link ContactDeleted} */
106
+ CONTACT_DELETED = "CONTACT_DELETED"
49
107
  }
108
+ /**
109
+ * RoomEvent
110
+ * Used to receive events from the server with room.on()
111
+ */
50
112
  export declare enum RoomEvent {
51
113
  CREATED = "CREATED",
52
114
  ENDED = "ENDED",
53
115
  AVAILABLE = "AVAILABLE",
54
116
  FAILED = "FAILED",
117
+ /** Used to receive {@link AddRemoveTracks} */
55
118
  ADD_TRACKS = "ADD_TRACKS",
119
+ /** Used to receive {@link AddRemoveTracks} */
56
120
  REMOVE_TRACKS = "REMOVE_TRACKS",
57
121
  MESSAGE = "MESSAGE",
122
+ /** Used to receive {@link ControlMessageEvent} */
58
123
  CONTROL_MESSAGE = "CONTROL_MESSAGE",
124
+ /** Used to receive {@link JoinedRoom} */
59
125
  JOINED = "JOINED",
126
+ /** Used to receive {@link LeftRoom} */
60
127
  LEFT = "LEFT",
128
+ /** Used to receive {@link PlacedInLobbyEvent} */
61
129
  PLACED_IN_LOBBY = "PLACED_IN_LOBBY",
130
+ /** Used without callback event */
62
131
  PLACED_IN_WAITING_ROOM = "PLACED_IN_WAITING_ROOM",
132
+ /** Used without callback event */
63
133
  DETACHED = "DETACHED",
134
+ /** Used to receive {@link EvictedFromRoom} */
64
135
  EVICTED = "EVICTED",
136
+ /** Used without callback event */
65
137
  DROPPED = "DROPPED",
66
138
  REMOTE_SDP = "REMOTE_SDP",
139
+ /** Used to receive {@link TracksQualityState} */
67
140
  TRACK_QUALITY_STATE = "TRACK_QUALITY_STATE",
141
+ /** Used to receive {@link OperationFailedEvent} */
68
142
  OPERATION_FAILED = "OPERATION_FAILED",
143
+ /** Used to receive {@link WaitingListEvent} */
69
144
  WAITING_LIST = "SFU_WAITING_LIST",
145
+ /** Used to receive {@link WaitingRoomUpdate} */
70
146
  WAITING_ROOM_UPDATE = "SFU_WAITING_ROOM_UPDATE",
147
+ /** Used to receive {@link AddRemoveTracks} */
71
148
  MUTE_TRACKS = "MUTE_TRACKS",
149
+ /** Used to receive {@link ParticipantsListEvent} */
72
150
  PARTICIPANT_LIST = "PARTICIPANT_LIST",
151
+ /** Used to receive {@link RoleAssigned} */
73
152
  ROLE_ASSIGNED = "ROLE_ASSIGNED",
153
+ /** Used to receive {@link RolesListEvent} */
74
154
  ROLES_LIST = "ROLES_LIST",
155
+ /** Used to receive {@link RoomConfigEvent} */
75
156
  ROOM_CONFIG = "ROOM_CONFIG",
157
+ /** Used to receive {@link BooleanEvent} */
76
158
  ROOM_LOCKED = "ROOM_LOCKED",
159
+ /** Used to receive {@link BooleanEvent} */
77
160
  ROOM_INITIAL_AUDIO_MUTED = "ROOM_INITIAL_AUDIO_MUTED",
161
+ /** Used to receive {@link BooleanEvent} */
78
162
  ROOM_INITIAL_VIDEO_MUTED = "ROOM_INITIAL_VIDEO_MUTED",
163
+ /** Used to receive {@link BooleanEvent} */
79
164
  ROOM_INITIAL_SCREEN_SHARING_MUTED = "ROOM_INITIAL_SCREEN_SHARING_MUTED",
165
+ /** Used to receive {@link BooleanEvent} */
80
166
  ROOM_AUDIO_MUTED = "ROOM_AUDIO_MUTED",
167
+ /** Used to receive {@link BooleanEvent} */
81
168
  ROOM_VIDEO_MUTED = "ROOM_VIDEO_MUTED",
169
+ /** Used to receive {@link BooleanEvent} */
82
170
  ROOM_SCREEN_SHARING_MUTED = "ROOM_SCREEN_SHARING_MUTED",
171
+ /** Used to receive {@link BooleanEvent} */
83
172
  ROOM_CHAT_MUTED = "ROOM_CHAT_MUTED",
173
+ /** Used to receive {@link BooleanEvent} */
84
174
  ROOM_CAN_CHANGE_NICKNAME = "ROOM_CAN_CHANGE_NICKNAME",
175
+ /** Used to receive {@link BooleanEvent} */
85
176
  ROOM_SCREEN_SHARING_MULTIPLE_SHARES = "ROOM_SCREEN_SHARING_MULTIPLE_SHARES",
177
+ /** Used to receive {@link BooleanEvent} */
86
178
  ROOM_SCREEN_SHARING_EVERYONE_CAN_SHARE = "ROOM_SCREEN_SHARING_EVERYONE_CAN_SHARE",
179
+ /** Used to receive {@link BooleanEvent} */
87
180
  ROOM_SCREEN_SHARING_EVERYONE_CAN_DO_SUBSEQUENT_SHARE = "ROOM_SCREEN_SHARING_EVERYONE_CAN_DO_SUBSEQUENT_SHARE",
181
+ /** Used to receive {@link ParticipantConfigEvent} */
88
182
  PARTICIPANT_CONFIG = "PARTICIPANT_CONFIG",
183
+ /** Used to receive {@link RoomScreenSharingConfigEvent} */
89
184
  SCREEN_SHARING_CONFIG = "SCREEN_SHARING_CONFIG",
185
+ /** Used to receive {@link ParticipantAVSMutedEvent} */
90
186
  PARTICIPANT_AUDIO_MUTED = "PARTICIPANT_AUDIO_MUTED",
187
+ /** Used to receive {@link ParticipantAVSMutedEvent} */
91
188
  PARTICIPANT_VIDEO_MUTED = "PARTICIPANT_VIDEO_MUTED",
189
+ /** Used to receive {@link ParticipantAVSMutedEvent} */
92
190
  PARTICIPANT_SCREEN_SHARING_MUTED = "PARTICIPANT_SCREEN_SHARING_MUTED",
191
+ /** Used to receive {@link ParticipantRenamed} */
93
192
  PARTICIPANT_RENAMED = "PARTICIPANT_RENAMED",
193
+ /** Used to receive {@link StopScreenSharingEvent} */
94
194
  STOP_SCREEN_SHARING = "STOP_SCREEN_SHARING",
195
+ /** Used to receive {@link StopTrackEvent} */
95
196
  STOP_TRACK = "STOP_TRACK",
197
+ /** Used to receive {@link BitrateTestStatus} */
96
198
  BITRATE_TEST_STATUS = "BITRATE_TEST_STATUS",
199
+ /** Used to receive {@link RoomNameUpdated} */
97
200
  ROOM_NAME_UPDATED = "ROOM_NAME_UPDATED"
98
201
  }
202
+ /**
203
+ * SpaceEvent
204
+ * Used to receive events from the server with SfuExtended.on()
205
+ */
99
206
  export declare enum SpaceEvent {
207
+ /** Used to receive {@link SfuSpace[]} */
100
208
  USER_SPACES = "USER_SPACES",
209
+ /** Used to receive {@link SpaceCreatedEvent} */
101
210
  SPACE_CREATED = "SPACE_CREATED",
211
+ /** Used to receive {@link NewSpaceEvent} */
102
212
  NEW_SPACE = "NEW_SPACE",
213
+ /** Used to receive {@link SpaceDeletedEvent} */
103
214
  SPACE_DELETED = "SPACE_DELETED",
215
+ /** Used to receive {@link SpaceOverviewUpdated} */
104
216
  SPACE_OVERVIEW_UPDATED = "SPACE_OVERVIEW_UPDATED",
217
+ /** Used to receive {@link NewSpaceCategoryEvent} */
105
218
  NEW_SPACE_CATEGORY = "NEW_SPACE_CATEGORY",
219
+ /** Used to receive {@link SpaceCategoryDeleted} */
106
220
  SPACE_CATEGORY_DELETED = "SPACE_CATEGORY_DELETED",
221
+ /** Used to receive {@link SpaceCategoryUpdated} */
107
222
  SPACE_CATEGORY_UPDATED = "SPACE_CATEGORY_UPDATED",
223
+ /** Used to receive {@link NewSpaceChannelEvent} */
108
224
  NEW_SPACE_CHANNEL = "NEW_SPACE_CHANNEL",
225
+ /** Used to receive {@link SpaceChannelUpdated} */
109
226
  SPACE_CHANNEL_UPDATED = "SPACE_CHANNEL_UPDATED",
227
+ /** Used to receive {@link SpaceChannelDeleted} */
110
228
  SPACE_CHANNEL_DELETED = "SPACE_CHANNEL_DELETED",
229
+ /** Used to receive {@link SpaceChannelMoved} */
111
230
  SPACE_CHANNEL_MOVED = "SPACE_CHANNEL_MOVED",
231
+ /** Used to receive {@link NewSpaceThreadEvent} */
112
232
  NEW_SPACE_THREAD = "NEW_SPACE_THREAD",
233
+ /** Used to receive {@link SpaceThreadDeleted} */
113
234
  SPACE_THREAD_DELETED = "SPACE_THREAD_DELETED",
235
+ /** Used to receive {@link SpaceThreadUpdated} */
114
236
  SPACE_THREAD_UPDATED = "SPACE_THREAD_UPDATED",
237
+ /** Used to receive {@link SpaceInviteCreated} */
115
238
  SPACE_INVITE_CREATED = "SPACE_INVITE_CREATED",
239
+ /** Used to receive {@link SpaceInviteRevoked} */
116
240
  SPACE_INVITE_REVOKED = "SPACE_INVITE_REVOKED",
241
+ /** Used to receive {@link NewSpaceRoleAdded} */
117
242
  NEW_SPACE_ROLE = "NEW_SPACE_ROLE",
243
+ /** Used to receive {@link SpaceRoleUpdated} */
118
244
  SPACE_ROLE_UPDATED = "SPACE_ROLE_UPDATED",
245
+ /** Used to receive {@link SpaceRoleDeleted} */
119
246
  SPACE_ROLE_DELETED = "SPACE_ROLE_DELETED",
247
+ /** Used to receive {@link UserJoinedToSpaceEvent} */
120
248
  USER_JOINED_TO_SPACE = "USER_JOINED_TO_SPACE",
249
+ /** Used to receive {@link UserLeftSpace} */
121
250
  USER_LEFT_SPACE = "USER_LEFT_SPACE",
251
+ /** Used to receive {@link AddedRoleToMember} */
122
252
  ADDED_ROLE_TO_MEMBER = "ADDED_ROLE_TO_MEMBER",
253
+ /** Used to receive {@link RemovedRoleFromMember} */
123
254
  REMOVED_ROLE_FROM_MEMBER = "REMOVED_ROLE_FROM_MEMBER",
255
+ /** Used to receive {@link RolePermissionSectionsEvent} */
124
256
  ROLE_PERMISSION_SECTIONS = "ROLE_PERMISSION_SECTIONS"
125
257
  }
258
+ /**
259
+ * MeetingSyncEvent
260
+ * Used to receive meeting sync events from the server with SfuExtended.on()
261
+ */
126
262
  export declare enum MeetingSyncEvent {
263
+ /** Used to receive {@link MeetingEndedSync} */
127
264
  MEETING_ENDED_SYNC = "MEETING_ENDED_SYNC",
265
+ /** Used to receive {@link JoinedRoomSync} */
128
266
  JOINED_MEETING_SYNC = "JOINED_MEETING_SYNC",
267
+ /** Used to receive {@link LeftMeetingSync} */
129
268
  LEFT_MEETING_SYNC = "LEFT_MEETING_SYNC",
269
+ /** Used to receive {@link EvictedSync} */
130
270
  EVICTED_SYNC = "EVICTED_SYNC",
271
+ /** Used to receive {@link AddRemoveTracksSync} */
131
272
  ADD_TRACKS_SYNC = "ADD_TRACKS_SYNC",
273
+ /** Used to receive {@link AddRemoveTracksSync} */
132
274
  REMOVE_TRACKS_SYNC = "REMOVE_TRACKS_SYNC",
275
+ /** Used to receive {@link AddRemoveTracksSync} */
133
276
  MUTE_TRACKS_SYNC = "MUTE_TRACKS_SYNC",
277
+ /** Used to receive {@link ParticipantsListSyncEvent} */
134
278
  PARTICIPANT_LIST_SYNC = "PARTICIPANT_LIST_SYNC",
279
+ /** Used to receive {@link MeetingNameUpdatedSync} */
135
280
  MEETING_NAME_UPDATED_SYNC = "MEETING_NAME_UPDATED_SYNC"
136
281
  }
137
282
  export declare enum State {
@@ -287,9 +432,6 @@ export declare enum InternalApi {
287
432
  SEND_CONTROL_MESSAGE = "sendControlMessage",
288
433
  MARK_MESSAGE_READ = "markMessageRead",
289
434
  MARK_MESSAGE_UNREAD = "markMessageUnread",
290
- INVITE_CONTACT = "inviteContact",
291
- REMOVE_CONTACT = "removeContact",
292
- CONFIRM_CONTACT = "confirmContact",
293
435
  ASSIGN_ROLE = "assignRole",
294
436
  SUBSCRIBE_TO_WAITING_PARTICIPANT = "subscribeToWaitingParticipant",
295
437
  UNSUBSCRIBE_FROM_WAITING_PARTICIPANT = "unsubscribeFromWaitingParticipant",
@@ -383,7 +525,14 @@ export declare enum InternalApi {
383
525
  REMOVE_ROLE_FROM_MEMBER = "removeRoleFromMember",
384
526
  GET_ROLE_PERMISSIONS = "getRolePermissions",
385
527
  CREATE_CHANNEL_MEETING = "createChannelMeeting",
386
- CREATE_DIRECT_MEETING = "createDirectMeeting"
528
+ CREATE_DIRECT_MEETING = "createDirectMeeting",
529
+ GET_CONTACTS = "getContacts",
530
+ ADD_FRIEND = "addFriend",
531
+ REMOVE_FRIEND = "removeFriend",
532
+ REVOKE_FRIEND_INVITE = "revokeFriendInvite",
533
+ ACCEPT_FRIEND_INVITE = "acceptFriendInvite",
534
+ REJECT_FRIEND_INVITE = "rejectFriendInvite",
535
+ UPDATE_PRESENCE_STATUS = "updatePresenceStatus"
387
536
  }
388
537
  export declare enum ContactError {
389
538
  USER_CAN_NOT_SEND_INVITE_TO_HIMSELF = "User can not send invite to himself"
@@ -894,25 +1043,12 @@ export declare type ControlMessage = {
894
1043
  export declare type ControlMessageEvent = InternalMessage & {
895
1044
  message: ControlMessage;
896
1045
  };
897
- export declare enum UserState {
898
- OFFLINE = "OFFLINE",
1046
+ export declare enum PresenceStatus {
899
1047
  ONLINE = "ONLINE",
900
- PENDING_REGISTRATION = "PENDING_REGISTRATION"
1048
+ IDLE = "IDLE",
1049
+ DO_NOT_DISTURB = "DO_NOT_DISTURB",
1050
+ OFFLINE = "OFFLINE"
901
1051
  }
902
- export declare type Invite = InternalMessage & {
903
- id: string;
904
- from: UserId;
905
- to: UserId | UserEmail;
906
- };
907
- export declare type User = {
908
- state: UserState;
909
- id: UserId;
910
- email: UserEmail;
911
- nickname: UserNickname;
912
- confirmed: boolean;
913
- favourite: boolean;
914
- invite: Invite;
915
- };
916
1052
  export declare type UserInfo = {
917
1053
  id: UserId;
918
1054
  email: UserEmail;
@@ -920,18 +1056,7 @@ export declare type UserInfo = {
920
1056
  phoneNumber: UserPhoneNumber;
921
1057
  hostKey: UserHostKey;
922
1058
  timezone: UserTimezone;
923
- };
924
- export declare type UserListEvent = InternalMessage & {
925
- list: Array<User>;
926
- };
927
- export declare type ContactInviteEvent = InternalMessage & {
928
- invite: Invite;
929
- };
930
- export declare type ContactUpdateEvent = InternalMessage & {
931
- contact: User;
932
- };
933
- export declare type ContactRemovedEvent = InternalMessage & {
934
- contact: User;
1059
+ status: PresenceStatus;
935
1060
  };
936
1061
  export declare type CalendarEvent = {
937
1062
  id: string;
@@ -1352,6 +1477,52 @@ export declare type RemovedRoleFromMember = InternalMessage & {
1352
1477
  export declare type RolePermissionSectionsEvent = InternalMessage & {
1353
1478
  permissionSections: Array<SfuSpaceRolePermissionSection>;
1354
1479
  };
1480
+ export declare type FriendInvite = {
1481
+ userId: string;
1482
+ nickname: string;
1483
+ inviteId: string;
1484
+ };
1485
+ export declare type BannedContact = {
1486
+ userId: string;
1487
+ nickname: string;
1488
+ bannedAt: number;
1489
+ };
1490
+ export declare type Contact = {
1491
+ userId: string;
1492
+ nickname: string;
1493
+ friend: boolean;
1494
+ status: PresenceStatus;
1495
+ };
1496
+ export declare type UserContacts = {
1497
+ contacts: Array<Contact>;
1498
+ incomingFriendInvites: Array<FriendInvite>;
1499
+ outgoingFriendInvites: Array<FriendInvite>;
1500
+ bans: Array<BannedContact>;
1501
+ };
1502
+ export declare type UserContactsEvent = InternalMessage & {
1503
+ contacts: UserContacts;
1504
+ };
1505
+ export declare type NewFriendInvite = InternalMessage & {
1506
+ userId: string;
1507
+ nickname: string;
1508
+ inviteId: string;
1509
+ };
1510
+ export declare type FriendInviteDeleted = InternalMessage & {
1511
+ inviteId: string;
1512
+ };
1513
+ export declare type UserPresenceStatusUpdated = InternalMessage & {
1514
+ userId: string;
1515
+ status: PresenceStatus;
1516
+ };
1517
+ export declare type NewContact = InternalMessage & {
1518
+ contact: Contact;
1519
+ };
1520
+ export declare type ContactUpdated = InternalMessage & {
1521
+ contact: Contact;
1522
+ };
1523
+ export declare type ContactDeleted = InternalMessage & {
1524
+ userId: string;
1525
+ };
1355
1526
  export declare enum SortOrder {
1356
1527
  ASC = 0,
1357
1528
  DESC = 1