@flashphoner/sfusdk 2.0.302 → 2.0.308
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.
- package/dist/client.version +1 -1
- package/dist/sdk/constants.d.ts +120 -2
- package/dist/sdk/constants.js +48 -1
- package/dist/sdk/constants.js.map +1 -1
- package/dist/sdk/sfu-extended.d.ts +172 -6
- package/dist/sdk/sfu-extended.js +326 -4
- package/dist/sdk/sfu-extended.js.map +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/sfu_extended.SfuExtended.html +149 -86
- package/docs/enums/constants.AttachmentState.html +2 -2
- package/docs/enums/constants.AuthenticationStatus.html +2 -2
- package/docs/enums/constants.ChannelSendPolicy.html +2 -2
- package/docs/enums/constants.ChatError.html +2 -2
- package/docs/enums/constants.ChatReceivePolicy.html +2 -2
- package/docs/enums/constants.ChatSectionsError.html +2 -2
- package/docs/enums/constants.ChatType.html +2 -2
- package/docs/enums/constants.ConferenceType.html +2 -2
- package/docs/enums/constants.ConnectionError.html +2 -2
- package/docs/enums/constants.ConnectionType.html +2 -2
- package/docs/enums/constants.ContactError.html +2 -2
- package/docs/enums/constants.DeliveryStatus.html +2 -2
- package/docs/enums/constants.ExamplesError.html +2 -2
- package/docs/enums/constants.ExamplesEvent.html +2 -2
- package/docs/enums/constants.InternalApi.html +15 -2
- package/docs/enums/constants.MeetingSyncEvent.html +10 -10
- package/docs/enums/constants.MessageAttachmentMediaType.html +2 -2
- package/docs/enums/constants.MessageAttachmentType.html +2 -2
- package/docs/enums/constants.MessageState.html +2 -2
- package/docs/enums/constants.MessageTargetEntityType.html +2 -2
- package/docs/enums/constants.NotificationMode.html +5 -0
- package/docs/enums/constants.Operations.html +2 -2
- package/docs/enums/constants.ParticipantRole.html +2 -2
- package/docs/enums/constants.PresenceStatus.html +2 -2
- package/docs/enums/constants.RemoteSdpType.html +2 -2
- package/docs/enums/constants.RoomError.html +2 -2
- package/docs/enums/constants.RoomEvent.html +43 -43
- package/docs/enums/constants.RoomState.html +2 -2
- package/docs/enums/constants.SfuEvent.html +49 -41
- package/docs/enums/constants.SortOrder.html +2 -2
- package/docs/enums/constants.SpaceError.html +3 -2
- package/docs/enums/constants.SpaceEvent.html +47 -29
- package/docs/enums/constants.State.html +2 -2
- package/docs/enums/constants.StatsType.html +2 -2
- package/docs/enums/constants.TrackType.html +2 -2
- package/docs/enums/constants.UserInfoError.html +2 -2
- package/docs/enums/constants.UserManagementError.html +2 -2
- package/docs/modules/constants.html +16 -0
- package/docs/types/constants.AddRemoveTracks.html +1 -1
- package/docs/types/constants.AddRemoveTracksSync.html +1 -1
- package/docs/types/constants.AddedMembersToThread.html +1 -1
- package/docs/types/constants.AddedRemovedReactionOnMessage.html +1 -1
- package/docs/types/constants.AddedRoleToMember.html +1 -1
- package/docs/types/constants.Attachment.html +1 -1
- package/docs/types/constants.AttachmentInfo.html +1 -1
- package/docs/types/constants.AttachmentRequest.html +1 -1
- package/docs/types/constants.AttachmentRequestAck.html +1 -1
- package/docs/types/constants.AttachmentStatus.html +1 -1
- package/docs/types/constants.AttachmentStatusEvent.html +1 -1
- package/docs/types/constants.AuthenticationStatusEvent.html +1 -1
- package/docs/types/constants.BannedContact.html +1 -1
- package/docs/types/constants.BitrateTestStatus.html +1 -1
- package/docs/types/constants.BooleanEvent.html +1 -1
- package/docs/types/constants.Calendar.html +1 -1
- package/docs/types/constants.CalendarEvent.html +1 -1
- package/docs/types/constants.CalendarEventEvent.html +1 -1
- package/docs/types/constants.ChannelMuted.html +1 -0
- package/docs/types/constants.ChannelNotificationSettingsUpdated.html +1 -0
- package/docs/types/constants.ChannelUnmuted.html +1 -0
- package/docs/types/constants.Chat.html +1 -1
- package/docs/types/constants.ChatLoadedEvent.html +1 -1
- package/docs/types/constants.ChatMap.html +1 -1
- package/docs/types/constants.ChatMessagesCount.html +1 -1
- package/docs/types/constants.ChatMessagesEvent.html +1 -1
- package/docs/types/constants.ChatMuted.html +1 -0
- package/docs/types/constants.ChatNotificationSettingsUpdated.html +1 -0
- package/docs/types/constants.ChatSearchResultEvent.html +1 -1
- package/docs/types/constants.ChatUnmuted.html +1 -0
- package/docs/types/constants.ChatsEvent.html +1 -1
- package/docs/types/constants.ConnectionDetails.html +1 -1
- package/docs/types/constants.ConnectionFailedEvent.html +1 -1
- package/docs/types/constants.Contact.html +1 -1
- package/docs/types/constants.ContactDeleted.html +1 -1
- package/docs/types/constants.ContactPersonalSettings.html +1 -0
- package/docs/types/constants.ContactPersonalSettingsUpdated.html +1 -0
- package/docs/types/constants.ContactUpdated.html +1 -1
- package/docs/types/constants.ControlMessage.html +1 -1
- package/docs/types/constants.ControlMessageEvent.html +1 -1
- package/docs/types/constants.CreatedRoom.html +1 -1
- package/docs/types/constants.EvictedFromRoom.html +1 -1
- package/docs/types/constants.EvictedSync.html +1 -1
- package/docs/types/constants.ExamplesUser.html +1 -1
- package/docs/types/constants.ExamplesUserEvent.html +1 -1
- package/docs/types/constants.FirstAndLastChatMessage.html +1 -1
- package/docs/types/constants.ForcefullyLeftEvent.html +1 -1
- package/docs/types/constants.FragmentedMessage.html +1 -1
- package/docs/types/constants.FriendInvite.html +1 -1
- package/docs/types/constants.FriendInviteDeleted.html +1 -1
- package/docs/types/constants.InternalMessage.html +1 -1
- package/docs/types/constants.JoinedRoom.html +1 -1
- package/docs/types/constants.JoinedRoomSync.html +1 -1
- package/docs/types/constants.LastReadMessageUpdate.html +1 -1
- package/docs/types/constants.LastReadMessageUpdated.html +1 -1
- package/docs/types/constants.LeftMeetingSync.html +1 -1
- package/docs/types/constants.LeftRoom.html +1 -1
- package/docs/types/constants.LoadMessagesWithMentionsResult.html +1 -1
- package/docs/types/constants.MeetingEndedSync.html +1 -1
- package/docs/types/constants.MeetingNameUpdatedSync.html +1 -1
- package/docs/types/constants.MeetingsPreviewEvent.html +1 -1
- package/docs/types/constants.Message.html +1 -1
- package/docs/types/constants.MessageAttachment.html +1 -1
- package/docs/types/constants.MessageAttachmentData.html +1 -1
- package/docs/types/constants.MessageAttachmentsSearchResult.html +1 -1
- package/docs/types/constants.MessageDeleted.html +1 -1
- package/docs/types/constants.MessageDeliveryStatus.html +1 -1
- package/docs/types/constants.MessageEdited.html +1 -1
- package/docs/types/constants.MessageInfo.html +1 -1
- package/docs/types/constants.MessageReaction.html +1 -1
- package/docs/types/constants.MessageStatus.html +1 -1
- package/docs/types/constants.MessageStatusEvent.html +1 -1
- package/docs/types/constants.MessageStatusUpdate.html +1 -1
- package/docs/types/constants.MessageTargetEntityId.html +1 -1
- package/docs/types/constants.MessageWithUploadingAttachments.html +1 -1
- package/docs/types/constants.MuteSettings.html +1 -0
- package/docs/types/constants.NewChatEvent.html +1 -1
- package/docs/types/constants.NewContact.html +1 -1
- package/docs/types/constants.NewFriendInvite.html +1 -1
- package/docs/types/constants.NewMeeting.html +1 -1
- package/docs/types/constants.NewSpaceCategoryEvent.html +1 -1
- package/docs/types/constants.NewSpaceChannelEvent.html +1 -1
- package/docs/types/constants.NewSpaceEvent.html +1 -1
- package/docs/types/constants.NewSpaceRoleAdded.html +1 -1
- package/docs/types/constants.NewSpaceThreadEvent.html +1 -1
- package/docs/types/constants.OperationFailed.html +1 -1
- package/docs/types/constants.OperationFailedEvent.html +1 -1
- package/docs/types/constants.Participant.html +1 -1
- package/docs/types/constants.ParticipantAVSMutedEvent.html +1 -1
- package/docs/types/constants.ParticipantConfigEvent.html +1 -1
- package/docs/types/constants.ParticipantRenamed.html +1 -1
- package/docs/types/constants.ParticipantsListEvent.html +1 -1
- package/docs/types/constants.ParticipantsListSyncEvent.html +1 -1
- package/docs/types/constants.PlacedInLobbyEvent.html +1 -1
- package/docs/types/constants.PlacedInWaitingRoomEvent.html +1 -1
- package/docs/types/constants.PublicChannelsEvent.html +1 -1
- package/docs/types/constants.Quality.html +1 -1
- package/docs/types/constants.RemoteSdp.html +1 -1
- package/docs/types/constants.RemoteSdpInfo.html +1 -1
- package/docs/types/constants.RemovedChatEvent.html +1 -1
- package/docs/types/constants.RemovedMemberFromThread.html +1 -1
- package/docs/types/constants.RemovedRoleFromMember.html +1 -1
- package/docs/types/constants.ResetPasswordRequestStatus.html +1 -1
- package/docs/types/constants.RoleAssigned.html +1 -1
- package/docs/types/constants.RolePermissionSectionsEvent.html +1 -1
- package/docs/types/constants.RolesListEvent.html +1 -1
- package/docs/types/constants.RoomAvailable.html +1 -1
- package/docs/types/constants.RoomConfigEvent.html +1 -1
- package/docs/types/constants.RoomExtendedConfig.html +1 -1
- package/docs/types/constants.RoomExtendedParticipantConfig.html +1 -1
- package/docs/types/constants.RoomExtendedParticipantsConfig.html +1 -1
- package/docs/types/constants.RoomExtendedScreenSharingConfig.html +1 -1
- package/docs/types/constants.RoomInfo.html +1 -1
- package/docs/types/constants.RoomMessage.html +1 -1
- package/docs/types/constants.RoomNameUpdated.html +1 -1
- package/docs/types/constants.RoomScreenSharingConfigEvent.html +1 -1
- package/docs/types/constants.SFUMeetingParticipantPreview.html +1 -1
- package/docs/types/constants.SFUMeetingPreview.html +1 -1
- package/docs/types/constants.SfuMessageEvent.html +1 -1
- package/docs/types/constants.SfuSpace.html +1 -1
- package/docs/types/constants.SfuSpaceCategory.html +1 -1
- package/docs/types/constants.SfuSpaceChannel.html +1 -1
- package/docs/types/constants.SfuSpaceChannelAccessRights.html +1 -1
- package/docs/types/constants.SfuSpaceInvite.html +1 -1
- package/docs/types/constants.SfuSpaceMember.html +1 -1
- package/docs/types/constants.SfuSpaceRole.html +1 -1
- package/docs/types/constants.SfuSpaceRolePermission.html +1 -1
- package/docs/types/constants.SfuSpaceRolePermissionSection.html +1 -1
- package/docs/types/constants.SfuSpaceThread.html +1 -1
- package/docs/types/constants.SfuSpaceUserBan.html +1 -1
- package/docs/types/constants.SignUpStatus.html +1 -1
- package/docs/types/constants.SpaceCategoryDeleted.html +1 -1
- package/docs/types/constants.SpaceCategoryUpdated.html +1 -1
- package/docs/types/constants.SpaceChannelDeleted.html +1 -1
- package/docs/types/constants.SpaceChannelMoved.html +1 -1
- package/docs/types/constants.SpaceChannelUpdated.html +1 -1
- package/docs/types/constants.SpaceCreatedEvent.html +1 -1
- package/docs/types/constants.SpaceDeletedEvent.html +1 -1
- package/docs/types/constants.SpaceInviteCreated.html +1 -1
- package/docs/types/constants.SpaceInviteRevoked.html +1 -1
- package/docs/types/constants.SpaceMuted.html +1 -0
- package/docs/types/constants.SpaceNotificationSettingsUpdated.html +1 -0
- package/docs/types/constants.SpaceOverviewUpdated.html +1 -1
- package/docs/types/constants.SpaceRoleDeleted.html +1 -1
- package/docs/types/constants.SpaceRoleUpdated.html +1 -1
- package/docs/types/constants.SpaceThreadDeleted.html +1 -1
- package/docs/types/constants.SpaceThreadUpdated.html +1 -1
- package/docs/types/constants.SpaceUnmuted.html +1 -0
- package/docs/types/constants.StopScreenSharingEvent.html +1 -1
- package/docs/types/constants.StopTrackEvent.html +1 -1
- package/docs/types/constants.ThreadMuted.html +1 -0
- package/docs/types/constants.ThreadNotificationSettingsUpdated.html +1 -0
- package/docs/types/constants.ThreadUnmuted.html +1 -0
- package/docs/types/constants.TracksQualityState.html +1 -1
- package/docs/types/constants.UnreadMessagesCountEvent.html +1 -1
- package/docs/types/constants.UnreadMessagesCountUpdate.html +1 -1
- package/docs/types/constants.UpdateChatEvent.html +1 -1
- package/docs/types/constants.UpdateMessagesDeliveryStatusEvent.html +1 -1
- package/docs/types/constants.UploadingAttachmentInfo.html +1 -1
- package/docs/types/constants.UserCalendarEvent.html +1 -1
- package/docs/types/constants.UserChatEncryptedPassword.html +1 -1
- package/docs/types/constants.UserContacts.html +1 -1
- package/docs/types/constants.UserContactsEvent.html +1 -1
- package/docs/types/constants.UserEmail.html +1 -1
- package/docs/types/constants.UserEncryptionInfo.html +1 -1
- package/docs/types/constants.UserEncryptionInfoEvent.html +1 -1
- package/docs/types/constants.UserHostKey.html +1 -1
- package/docs/types/constants.UserHostKeyChangedEvent.html +1 -1
- package/docs/types/constants.UserId.html +1 -1
- package/docs/types/constants.UserInfo.html +1 -1
- package/docs/types/constants.UserInfoChangedEvent.html +1 -1
- package/docs/types/constants.UserInfoEvent.html +1 -1
- package/docs/types/constants.UserJoinedToSpaceEvent.html +1 -1
- package/docs/types/constants.UserLeftSpace.html +1 -1
- package/docs/types/constants.UserNickname.html +1 -1
- package/docs/types/constants.UserNicknameChangedEvent.html +1 -1
- package/docs/types/constants.UserPassword.html +1 -1
- package/docs/types/constants.UserPhoneNumber.html +1 -1
- package/docs/types/constants.UserPhoneNumberChangedEvent.html +1 -1
- package/docs/types/constants.UserPmiSettings.html +1 -1
- package/docs/types/constants.UserPresenceStatusUpdated.html +1 -1
- package/docs/types/constants.UserRoomsEvent.html +1 -1
- package/docs/types/constants.UserSpaceNicknameUpdated.html +1 -1
- package/docs/types/constants.UserSpacesEvent.html +1 -1
- package/docs/types/constants.UserSpecificChatInfo.html +1 -1
- package/docs/types/constants.UserTimezone.html +1 -1
- package/docs/types/constants.UserTimezoneChangedEvent.html +1 -1
- package/docs/types/constants.WaitingListEvent.html +1 -1
- package/docs/types/constants.WaitingParticipant.html +1 -1
- package/docs/types/constants.WaitingRoomUpdate.html +1 -1
- package/docs/types/sfu_extended.EventUnion.html +1 -1
- package/docs/types/sfu_extended.NotifyUnion.html +1 -1
- package/docs/variables/constants.ATTACHMENT_CHUNK_SIZE.html +1 -1
- package/docs/variables/constants.ATTACHMENT_ID_LENGTH.html +1 -1
- package/docs/variables/constants.WS_CONNECTION_TIMEOUT.html +1 -1
- package/docs/variables/constants.WS_PINGS_MISSING_THRESHOLD.html +1 -1
- package/docs/variables/constants.WS_PING_INTERVAL_MS.html +1 -1
- 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, ContactPersonalSettings } from "./constants";
|
|
2
2
|
import { RoomExtended } from "./room-extended";
|
|
3
3
|
import { SendingAttachmentsHandler } from "./sending-attachments-handler";
|
|
4
4
|
import { PrefixFunction, Verbosity } from "./logger";
|
|
@@ -316,6 +316,19 @@ export declare class SfuExtended {
|
|
|
316
316
|
rejectFriendInvite(invite: {
|
|
317
317
|
inviteId: string;
|
|
318
318
|
}): Promise<FriendInviteDeleted>;
|
|
319
|
+
/**
|
|
320
|
+
* Update contact volume
|
|
321
|
+
*
|
|
322
|
+
* Used to change and store the contact's volume in meetings.
|
|
323
|
+
*
|
|
324
|
+
* @param options.value - whole number
|
|
325
|
+
*
|
|
326
|
+
* Returns {@link ContactPersonalSettings}, and other connected devices will receive {@link ContactPersonalSettingsUpdated} for synchronization.
|
|
327
|
+
*/
|
|
328
|
+
updateContactVolume(options: {
|
|
329
|
+
userId: string;
|
|
330
|
+
value: number;
|
|
331
|
+
}): Promise<ContactPersonalSettings>;
|
|
319
332
|
/**
|
|
320
333
|
* Get all user calendar events
|
|
321
334
|
*/
|
|
@@ -559,6 +572,40 @@ export declare class SfuExtended {
|
|
|
559
572
|
id: string;
|
|
560
573
|
name: string;
|
|
561
574
|
}): Promise<void>;
|
|
575
|
+
/**
|
|
576
|
+
* Update chat notification settings
|
|
577
|
+
*
|
|
578
|
+
* Used to modify and store chat notification settings specified in {@link UserSpecificChatInfo.notificationSettings}.
|
|
579
|
+
*
|
|
580
|
+
* Returns {@link ChatNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
581
|
+
*/
|
|
582
|
+
updateChatNotificationSettings(options: {
|
|
583
|
+
id: string;
|
|
584
|
+
value: NotificationMode;
|
|
585
|
+
}): Promise<ChatNotificationSettingsUpdated>;
|
|
586
|
+
/**
|
|
587
|
+
* Mute chat
|
|
588
|
+
*
|
|
589
|
+
* @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.
|
|
590
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
591
|
+
*
|
|
592
|
+
* Returns {@link ChatMuted}, and other connected devices will also receive this event for synchronization.
|
|
593
|
+
*/
|
|
594
|
+
muteChat(options: {
|
|
595
|
+
id: string;
|
|
596
|
+
muteTime?: number;
|
|
597
|
+
mutedIndefinitely?: boolean;
|
|
598
|
+
}): Promise<ChatMuted>;
|
|
599
|
+
/**
|
|
600
|
+
* Unmute chat
|
|
601
|
+
*
|
|
602
|
+
* {@link UserSpecificChatInfo.muteSettings} wil be null - that means the chat is not muted.
|
|
603
|
+
*
|
|
604
|
+
* Returns {@link ChatUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
605
|
+
*/
|
|
606
|
+
unmuteChat(options: {
|
|
607
|
+
id: string;
|
|
608
|
+
}): Promise<ChatUnmuted>;
|
|
562
609
|
/**
|
|
563
610
|
* Add a member to chat
|
|
564
611
|
*
|
|
@@ -767,6 +814,40 @@ export declare class SfuExtended {
|
|
|
767
814
|
leaveSpace(space: {
|
|
768
815
|
id: string;
|
|
769
816
|
}): Promise<void>;
|
|
817
|
+
/**
|
|
818
|
+
* Update space notification settings
|
|
819
|
+
*
|
|
820
|
+
* Used to modify and store space notification settings specified in {@link SfuSpace.notificationSettings}.
|
|
821
|
+
*
|
|
822
|
+
* Returns {@link SpaceNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
823
|
+
*/
|
|
824
|
+
updateSpaceNotificationSettings(options: {
|
|
825
|
+
spaceId: string;
|
|
826
|
+
value: NotificationMode;
|
|
827
|
+
}): Promise<SpaceNotificationSettingsUpdated>;
|
|
828
|
+
/**
|
|
829
|
+
* Mute space
|
|
830
|
+
*
|
|
831
|
+
* @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.
|
|
832
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
833
|
+
*
|
|
834
|
+
* Returns {@link SpaceMuted}, and other connected devices will also receive this event for synchronization.
|
|
835
|
+
*/
|
|
836
|
+
muteSpace(options: {
|
|
837
|
+
spaceId: string;
|
|
838
|
+
muteTime?: number;
|
|
839
|
+
mutedIndefinitely?: boolean;
|
|
840
|
+
}): Promise<SpaceMuted>;
|
|
841
|
+
/**
|
|
842
|
+
* Unmute space
|
|
843
|
+
*
|
|
844
|
+
* {@link SfuSpace.muteSettings} wil be null - that means the space is not muted.
|
|
845
|
+
*
|
|
846
|
+
* Returns {@link SpaceUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
847
|
+
*/
|
|
848
|
+
unmuteSpace(options: {
|
|
849
|
+
spaceId: string;
|
|
850
|
+
}): Promise<SpaceUnmuted>;
|
|
770
851
|
/**
|
|
771
852
|
* Generate space invite
|
|
772
853
|
*
|
|
@@ -892,6 +973,43 @@ export declare class SfuExtended {
|
|
|
892
973
|
spaceId: string;
|
|
893
974
|
channelId: string;
|
|
894
975
|
}): Promise<void>;
|
|
976
|
+
/**
|
|
977
|
+
* Update channel notification settings
|
|
978
|
+
*
|
|
979
|
+
* Used to modify and store channel notification settings specified in {@link SfuSpaceChannel.notificationSettings}.
|
|
980
|
+
*
|
|
981
|
+
* Returns {@link ChannelNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
982
|
+
*/
|
|
983
|
+
updateChannelNotificationSettings(options: {
|
|
984
|
+
spaceId: string;
|
|
985
|
+
channelId: string;
|
|
986
|
+
value: NotificationMode;
|
|
987
|
+
}): Promise<ChannelNotificationSettingsUpdated>;
|
|
988
|
+
/**
|
|
989
|
+
* Mute channel
|
|
990
|
+
*
|
|
991
|
+
* @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.
|
|
992
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
993
|
+
*
|
|
994
|
+
* Returns {@link ChannelMuted}, and other connected devices will also receive this event for synchronization.
|
|
995
|
+
*/
|
|
996
|
+
muteChannel(options: {
|
|
997
|
+
spaceId: string;
|
|
998
|
+
channelId: string;
|
|
999
|
+
muteTime?: number;
|
|
1000
|
+
mutedIndefinitely?: boolean;
|
|
1001
|
+
}): Promise<ChannelMuted>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Unmute channel
|
|
1004
|
+
*
|
|
1005
|
+
* {@link SfuSpaceChannel.muteSettings} wil be null - that means the channel is not muted.
|
|
1006
|
+
*
|
|
1007
|
+
* Returns {@link ChannelUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
1008
|
+
*/
|
|
1009
|
+
unmuteChannel(options: {
|
|
1010
|
+
spaceId: string;
|
|
1011
|
+
channelId: string;
|
|
1012
|
+
}): Promise<ChannelUnmuted>;
|
|
895
1013
|
/**
|
|
896
1014
|
* Create space thread
|
|
897
1015
|
*
|
|
@@ -957,6 +1075,46 @@ export declare class SfuExtended {
|
|
|
957
1075
|
channelId: string;
|
|
958
1076
|
threadId: string;
|
|
959
1077
|
}): Promise<void>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Update thread notification settings
|
|
1080
|
+
*
|
|
1081
|
+
* Used to modify and store thread notification settings specified in {@link SfuSpaceThread.notificationSettings}.
|
|
1082
|
+
*
|
|
1083
|
+
* Returns {@link ThreadNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
1084
|
+
*/
|
|
1085
|
+
updateThreadNotificationSettings(options: {
|
|
1086
|
+
spaceId: string;
|
|
1087
|
+
channelId: string;
|
|
1088
|
+
threadId: string;
|
|
1089
|
+
value: NotificationMode;
|
|
1090
|
+
}): Promise<ThreadNotificationSettingsUpdated>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Mute thread
|
|
1093
|
+
*
|
|
1094
|
+
* @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.
|
|
1095
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
1096
|
+
*
|
|
1097
|
+
* Returns {@link ThreadMuted}, and other connected devices will also receive this event for synchronization.
|
|
1098
|
+
*/
|
|
1099
|
+
muteThread(options: {
|
|
1100
|
+
spaceId: string;
|
|
1101
|
+
channelId: string;
|
|
1102
|
+
threadId: string;
|
|
1103
|
+
muteTime?: number;
|
|
1104
|
+
mutedIndefinitely?: boolean;
|
|
1105
|
+
}): Promise<ThreadMuted>;
|
|
1106
|
+
/**
|
|
1107
|
+
* Unmute thread
|
|
1108
|
+
*
|
|
1109
|
+
* {@link SfuSpaceThread.muteSettings} wil be null - that means the thread is not muted.
|
|
1110
|
+
*
|
|
1111
|
+
* Returns {@link ThreadUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
1112
|
+
*/
|
|
1113
|
+
unmuteThread(options: {
|
|
1114
|
+
spaceId: string;
|
|
1115
|
+
channelId: string;
|
|
1116
|
+
threadId: string;
|
|
1117
|
+
}): Promise<ThreadUnmuted>;
|
|
960
1118
|
/**
|
|
961
1119
|
* Add space role
|
|
962
1120
|
*
|
|
@@ -1043,17 +1201,25 @@ export declare class SfuExtended {
|
|
|
1043
1201
|
getRolePermissions(): Promise<SfuSpaceRolePermissionSection[]>;
|
|
1044
1202
|
/**
|
|
1045
1203
|
* Update nickname in the space
|
|
1204
|
+
* Updates a user's nickname in the space.
|
|
1046
1205
|
*
|
|
1047
|
-
* A custom nickname takes
|
|
1048
|
-
* If
|
|
1049
|
-
* To remove a custom nickname and use the global one, provide an empty string.
|
|
1206
|
+
* A custom nickname, if set, takes precedence over the user's global nickname.
|
|
1207
|
+
* If no custom nickname is provided (or an empty string is passed), the user's global nickname must be displayed.
|
|
1050
1208
|
*
|
|
1051
|
-
*
|
|
1209
|
+
* To remove a previously set the custom nickname and revert to the global one, pass an empty string.
|
|
1210
|
+
*
|
|
1211
|
+
* @param options.userId - Optional. The ID of the user whose nickname is being updated.
|
|
1212
|
+
* If this field is omitted or set to the caller's own ID, the caller's nickname is updated.
|
|
1213
|
+
* The space owner can update anyone's nickname by specifying user ID.
|
|
1214
|
+
* If a non-owner attempts to update another user's nickname, a {@link SpaceError.UPDATE_NICKNAME_ACCESS_RIGHTS_ERROR} is thrown.
|
|
1215
|
+
* All space members receive a {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} event
|
|
1216
|
+
* with a {@link UserSpaceNicknameUpdated} payload when the nickname is updated.
|
|
1052
1217
|
*/
|
|
1053
1218
|
updateSpaceNickname(options: {
|
|
1054
1219
|
spaceId: string;
|
|
1220
|
+
userId?: string;
|
|
1055
1221
|
nickname: string;
|
|
1056
|
-
}): Promise<
|
|
1222
|
+
}): Promise<UserSpaceNicknameUpdated>;
|
|
1057
1223
|
user(): {
|
|
1058
1224
|
username: string;
|
|
1059
1225
|
email: string;
|
package/dist/sdk/sfu-extended.js
CHANGED
|
@@ -958,6 +958,25 @@ class SfuExtended {
|
|
|
958
958
|
}, resolve, reject);
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* Update contact volume
|
|
963
|
+
*
|
|
964
|
+
* Used to change and store the contact's volume in meetings.
|
|
965
|
+
*
|
|
966
|
+
* @param options.value - whole number
|
|
967
|
+
*
|
|
968
|
+
* Returns {@link ContactPersonalSettings}, and other connected devices will receive {@link ContactPersonalSettingsUpdated} for synchronization.
|
|
969
|
+
*/
|
|
970
|
+
updateContactVolume(options) {
|
|
971
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
972
|
+
const self = this;
|
|
973
|
+
return new Promise(function (resolve, reject) {
|
|
974
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_CONTACT_VOLUME, {
|
|
975
|
+
userId: options.userId,
|
|
976
|
+
value: options.value
|
|
977
|
+
}, resolve, reject);
|
|
978
|
+
});
|
|
979
|
+
}
|
|
961
980
|
/**
|
|
962
981
|
* Get all user calendar events
|
|
963
982
|
*/
|
|
@@ -1336,6 +1355,58 @@ class SfuExtended {
|
|
|
1336
1355
|
});
|
|
1337
1356
|
}
|
|
1338
1357
|
;
|
|
1358
|
+
/**
|
|
1359
|
+
* Update chat notification settings
|
|
1360
|
+
*
|
|
1361
|
+
* Used to modify and store chat notification settings specified in {@link UserSpecificChatInfo.notificationSettings}.
|
|
1362
|
+
*
|
|
1363
|
+
* Returns {@link ChatNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
1364
|
+
*/
|
|
1365
|
+
updateChatNotificationSettings(options) {
|
|
1366
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1367
|
+
const self = this;
|
|
1368
|
+
return new Promise(function (resolve, reject) {
|
|
1369
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_CHAT_NOTIFICATION_SETTINGS, {
|
|
1370
|
+
id: options.id,
|
|
1371
|
+
value: options.value
|
|
1372
|
+
}, resolve, reject);
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Mute chat
|
|
1377
|
+
*
|
|
1378
|
+
* @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.
|
|
1379
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
1380
|
+
*
|
|
1381
|
+
* Returns {@link ChatMuted}, and other connected devices will also receive this event for synchronization.
|
|
1382
|
+
*/
|
|
1383
|
+
muteChat(options) {
|
|
1384
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1385
|
+
const self = this;
|
|
1386
|
+
return new Promise(function (resolve, reject) {
|
|
1387
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_CHAT, {
|
|
1388
|
+
id: options.id,
|
|
1389
|
+
muteTime: options.muteTime,
|
|
1390
|
+
mutedIndefinitely: options.mutedIndefinitely
|
|
1391
|
+
}, resolve, reject);
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Unmute chat
|
|
1396
|
+
*
|
|
1397
|
+
* {@link UserSpecificChatInfo.muteSettings} wil be null - that means the chat is not muted.
|
|
1398
|
+
*
|
|
1399
|
+
* Returns {@link ChatUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
1400
|
+
*/
|
|
1401
|
+
unmuteChat(options) {
|
|
1402
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1403
|
+
const self = this;
|
|
1404
|
+
return new Promise(function (resolve, reject) {
|
|
1405
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_CHAT, {
|
|
1406
|
+
id: options.id,
|
|
1407
|
+
}, resolve, reject);
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1339
1410
|
/**
|
|
1340
1411
|
* Add a member to chat
|
|
1341
1412
|
*
|
|
@@ -1657,6 +1728,58 @@ class SfuExtended {
|
|
|
1657
1728
|
}, resolve, reject);
|
|
1658
1729
|
});
|
|
1659
1730
|
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Update space notification settings
|
|
1733
|
+
*
|
|
1734
|
+
* Used to modify and store space notification settings specified in {@link SfuSpace.notificationSettings}.
|
|
1735
|
+
*
|
|
1736
|
+
* Returns {@link SpaceNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
1737
|
+
*/
|
|
1738
|
+
updateSpaceNotificationSettings(options) {
|
|
1739
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1740
|
+
const self = this;
|
|
1741
|
+
return new Promise(function (resolve, reject) {
|
|
1742
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_SPACE_NOTIFICATION_SETTINGS, {
|
|
1743
|
+
spaceId: options.spaceId,
|
|
1744
|
+
value: options.value
|
|
1745
|
+
}, resolve, reject);
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Mute space
|
|
1750
|
+
*
|
|
1751
|
+
* @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.
|
|
1752
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
1753
|
+
*
|
|
1754
|
+
* Returns {@link SpaceMuted}, and other connected devices will also receive this event for synchronization.
|
|
1755
|
+
*/
|
|
1756
|
+
muteSpace(options) {
|
|
1757
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1758
|
+
const self = this;
|
|
1759
|
+
return new Promise(function (resolve, reject) {
|
|
1760
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_SPACE, {
|
|
1761
|
+
spaceId: options.spaceId,
|
|
1762
|
+
muteTime: options.muteTime,
|
|
1763
|
+
mutedIndefinitely: options.mutedIndefinitely
|
|
1764
|
+
}, resolve, reject);
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Unmute space
|
|
1769
|
+
*
|
|
1770
|
+
* {@link SfuSpace.muteSettings} wil be null - that means the space is not muted.
|
|
1771
|
+
*
|
|
1772
|
+
* Returns {@link SpaceUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
1773
|
+
*/
|
|
1774
|
+
unmuteSpace(options) {
|
|
1775
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
1776
|
+
const self = this;
|
|
1777
|
+
return new Promise(function (resolve, reject) {
|
|
1778
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_SPACE, {
|
|
1779
|
+
spaceId: options.spaceId,
|
|
1780
|
+
}, resolve, reject);
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1660
1783
|
/**
|
|
1661
1784
|
* Generate space invite
|
|
1662
1785
|
*
|
|
@@ -1844,6 +1967,61 @@ class SfuExtended {
|
|
|
1844
1967
|
}, resolve, reject);
|
|
1845
1968
|
});
|
|
1846
1969
|
}
|
|
1970
|
+
/**
|
|
1971
|
+
* Update channel notification settings
|
|
1972
|
+
*
|
|
1973
|
+
* Used to modify and store channel notification settings specified in {@link SfuSpaceChannel.notificationSettings}.
|
|
1974
|
+
*
|
|
1975
|
+
* Returns {@link ChannelNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
1976
|
+
*/
|
|
1977
|
+
updateChannelNotificationSettings(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.UPDATE_CHANNEL_NOTIFICATION_SETTINGS, {
|
|
1982
|
+
spaceId: options.spaceId,
|
|
1983
|
+
channelId: options.channelId,
|
|
1984
|
+
value: options.value
|
|
1985
|
+
}, resolve, reject);
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* Mute channel
|
|
1990
|
+
*
|
|
1991
|
+
* @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.
|
|
1992
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
1993
|
+
*
|
|
1994
|
+
* Returns {@link ChannelMuted}, and other connected devices will also receive this event for synchronization.
|
|
1995
|
+
*/
|
|
1996
|
+
muteChannel(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.MUTE_CHANNEL, {
|
|
2001
|
+
spaceId: options.spaceId,
|
|
2002
|
+
channelId: options.channelId,
|
|
2003
|
+
muteTime: options.muteTime,
|
|
2004
|
+
mutedIndefinitely: options.mutedIndefinitely
|
|
2005
|
+
}, resolve, reject);
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Unmute channel
|
|
2010
|
+
*
|
|
2011
|
+
* {@link SfuSpaceChannel.muteSettings} wil be null - that means the channel is not muted.
|
|
2012
|
+
*
|
|
2013
|
+
* Returns {@link ChannelUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
2014
|
+
*/
|
|
2015
|
+
unmuteChannel(options) {
|
|
2016
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
2017
|
+
const self = this;
|
|
2018
|
+
return new Promise(function (resolve, reject) {
|
|
2019
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_CHANNEL, {
|
|
2020
|
+
spaceId: options.spaceId,
|
|
2021
|
+
channelId: options.channelId,
|
|
2022
|
+
}, resolve, reject);
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
1847
2025
|
/**
|
|
1848
2026
|
* Create space thread
|
|
1849
2027
|
*
|
|
@@ -1939,6 +2117,64 @@ class SfuExtended {
|
|
|
1939
2117
|
}, resolve, reject);
|
|
1940
2118
|
});
|
|
1941
2119
|
}
|
|
2120
|
+
/**
|
|
2121
|
+
* Update thread notification settings
|
|
2122
|
+
*
|
|
2123
|
+
* Used to modify and store thread notification settings specified in {@link SfuSpaceThread.notificationSettings}.
|
|
2124
|
+
*
|
|
2125
|
+
* Returns {@link ThreadNotificationSettingsUpdated}, and other connected devices will also receive this event for synchronization.
|
|
2126
|
+
*/
|
|
2127
|
+
updateThreadNotificationSettings(options) {
|
|
2128
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
2129
|
+
const self = this;
|
|
2130
|
+
return new Promise(function (resolve, reject) {
|
|
2131
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_THREAD_NOTIFICATION_SETTINGS, {
|
|
2132
|
+
spaceId: options.spaceId,
|
|
2133
|
+
channelId: options.channelId,
|
|
2134
|
+
threadId: options.threadId,
|
|
2135
|
+
value: options.value
|
|
2136
|
+
}, resolve, reject);
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Mute thread
|
|
2141
|
+
*
|
|
2142
|
+
* @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.
|
|
2143
|
+
* @param options.mutedIndefinitely – indicates whether the sound is muted indefinitely.
|
|
2144
|
+
*
|
|
2145
|
+
* Returns {@link ThreadMuted}, and other connected devices will also receive this event for synchronization.
|
|
2146
|
+
*/
|
|
2147
|
+
muteThread(options) {
|
|
2148
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
2149
|
+
const self = this;
|
|
2150
|
+
return new Promise(function (resolve, reject) {
|
|
2151
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.MUTE_THREAD, {
|
|
2152
|
+
spaceId: options.spaceId,
|
|
2153
|
+
channelId: options.channelId,
|
|
2154
|
+
threadId: options.threadId,
|
|
2155
|
+
muteTime: options.muteTime,
|
|
2156
|
+
mutedIndefinitely: options.mutedIndefinitely
|
|
2157
|
+
}, resolve, reject);
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* Unmute thread
|
|
2162
|
+
*
|
|
2163
|
+
* {@link SfuSpaceThread.muteSettings} wil be null - that means the thread is not muted.
|
|
2164
|
+
*
|
|
2165
|
+
* Returns {@link ThreadUnmuted}, and other connected devices will also receive this event for synchronization.
|
|
2166
|
+
*/
|
|
2167
|
+
unmuteThread(options) {
|
|
2168
|
+
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
2169
|
+
const self = this;
|
|
2170
|
+
return new Promise(function (resolve, reject) {
|
|
2171
|
+
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UNMUTE_THREAD, {
|
|
2172
|
+
spaceId: options.spaceId,
|
|
2173
|
+
channelId: options.channelId,
|
|
2174
|
+
threadId: options.threadId,
|
|
2175
|
+
}, resolve, reject);
|
|
2176
|
+
});
|
|
2177
|
+
}
|
|
1942
2178
|
/**
|
|
1943
2179
|
* Add space role
|
|
1944
2180
|
*
|
|
@@ -2061,12 +2297,19 @@ class SfuExtended {
|
|
|
2061
2297
|
}
|
|
2062
2298
|
/**
|
|
2063
2299
|
* Update nickname in the space
|
|
2300
|
+
* Updates a user's nickname in the space.
|
|
2301
|
+
*
|
|
2302
|
+
* A custom nickname, if set, takes precedence over the user's global nickname.
|
|
2303
|
+
* If no custom nickname is provided (or an empty string is passed), the user's global nickname must be displayed.
|
|
2064
2304
|
*
|
|
2065
|
-
*
|
|
2066
|
-
* 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.
|
|
2067
|
-
* To remove a custom nickname and use the global one, provide an empty string.
|
|
2305
|
+
* To remove a previously set the custom nickname and revert to the global one, pass an empty string.
|
|
2068
2306
|
*
|
|
2069
|
-
*
|
|
2307
|
+
* @param options.userId - Optional. The ID of the user whose nickname is being updated.
|
|
2308
|
+
* If this field is omitted or set to the caller's own ID, the caller's nickname is updated.
|
|
2309
|
+
* The space owner can update anyone's nickname by specifying user ID.
|
|
2310
|
+
* If a non-owner attempts to update another user's nickname, a {@link SpaceError.UPDATE_NICKNAME_ACCESS_RIGHTS_ERROR} is thrown.
|
|
2311
|
+
* All space members receive a {@link SpaceEvent.USER_SPACE_NICKNAME_UPDATED} event
|
|
2312
|
+
* with a {@link UserSpaceNicknameUpdated} payload when the nickname is updated.
|
|
2070
2313
|
*/
|
|
2071
2314
|
updateSpaceNickname(options) {
|
|
2072
2315
|
__classPrivateFieldGet(this, _SfuExtended_instances, "m", _SfuExtended_checkAuthenticated).call(this);
|
|
@@ -2074,6 +2317,7 @@ class SfuExtended {
|
|
|
2074
2317
|
return new Promise(function (resolve, reject) {
|
|
2075
2318
|
__classPrivateFieldGet(self, _SfuExtended_instances, "m", _SfuExtended_emmitAction).call(self, constants_1.InternalApi.UPDATE_SPACE_NICKNAME, {
|
|
2076
2319
|
spaceId: options.spaceId,
|
|
2320
|
+
userId: options.userId,
|
|
2077
2321
|
nickname: options.nickname
|
|
2078
2322
|
}, resolve, reject);
|
|
2079
2323
|
});
|
|
@@ -2302,6 +2546,24 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
|
|
|
2302
2546
|
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_UPDATED, chat.info);
|
|
2303
2547
|
}
|
|
2304
2548
|
}
|
|
2549
|
+
else if (data[0].type === constants_1.SfuEvent.CHAT_NOTIFICATION_SETTINGS_UPDATED) {
|
|
2550
|
+
const event = data[0];
|
|
2551
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2552
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_NOTIFICATION_SETTINGS_UPDATED, event);
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
else if (data[0].type === constants_1.SfuEvent.CHAT_MUTED) {
|
|
2556
|
+
const event = data[0];
|
|
2557
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2558
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_MUTED, event);
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
else if (data[0].type === constants_1.SfuEvent.CHAT_UNMUTED) {
|
|
2562
|
+
const event = data[0];
|
|
2563
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2564
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CHAT_UNMUTED, event);
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2305
2567
|
else if (data[0].type === constants_1.InternalApi.USER_CHATS) {
|
|
2306
2568
|
//TODO: optimize - should use with if (zapp-420)
|
|
2307
2569
|
const chats = data[0];
|
|
@@ -2695,6 +2957,60 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
|
|
|
2695
2957
|
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.USER_SPACE_NICKNAME_UPDATED, event);
|
|
2696
2958
|
}
|
|
2697
2959
|
}
|
|
2960
|
+
else if (data[0].type === constants_1.SpaceEvent.SPACE_NOTIFICATION_SETTINGS_UPDATED) {
|
|
2961
|
+
const event = data[0];
|
|
2962
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2963
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_NOTIFICATION_SETTINGS_UPDATED, event);
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
else if (data[0].type === constants_1.SpaceEvent.CHANNEL_NOTIFICATION_SETTINGS_UPDATED) {
|
|
2967
|
+
const event = data[0];
|
|
2968
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2969
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_NOTIFICATION_SETTINGS_UPDATED, event);
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
else if (data[0].type === constants_1.SpaceEvent.THREAD_NOTIFICATION_SETTINGS_UPDATED) {
|
|
2973
|
+
const event = data[0];
|
|
2974
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2975
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_NOTIFICATION_SETTINGS_UPDATED, event);
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
else if (data[0].type === constants_1.SpaceEvent.SPACE_MUTED) {
|
|
2979
|
+
const event = data[0];
|
|
2980
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2981
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_MUTED, event);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
else if (data[0].type === constants_1.SpaceEvent.SPACE_UNMUTED) {
|
|
2985
|
+
const event = data[0];
|
|
2986
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2987
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.SPACE_UNMUTED, event);
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
else if (data[0].type === constants_1.SpaceEvent.CHANNEL_MUTED) {
|
|
2991
|
+
const event = data[0];
|
|
2992
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2993
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_MUTED, event);
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
else if (data[0].type === constants_1.SpaceEvent.CHANNEL_UNMUTED) {
|
|
2997
|
+
const event = data[0];
|
|
2998
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
2999
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.CHANNEL_UNMUTED, event);
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
else if (data[0].type === constants_1.SpaceEvent.THREAD_MUTED) {
|
|
3003
|
+
const event = data[0];
|
|
3004
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
3005
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_MUTED, event);
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
else if (data[0].type === constants_1.SpaceEvent.THREAD_UNMUTED) {
|
|
3009
|
+
const event = data[0];
|
|
3010
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event)) {
|
|
3011
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SpaceEvent.THREAD_UNMUTED, event);
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
2698
3014
|
else if (data[0].type === constants_1.SfuEvent.USER_MEETINGS) {
|
|
2699
3015
|
const event = data[0];
|
|
2700
3016
|
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.USER_MEETINGS, event);
|
|
@@ -2803,6 +3119,12 @@ _SfuExtended_connection = new WeakMap(), _SfuExtended__user = new WeakMap(), _Sf
|
|
|
2803
3119
|
const event = data[0];
|
|
2804
3120
|
promises_1.default.resolve(data[0].internalMessageId, event.info);
|
|
2805
3121
|
}
|
|
3122
|
+
else if (data[0].type === constants_1.SfuEvent.CONTACT_PERSONAL_SETTINGS_UPDATED) {
|
|
3123
|
+
const event = data[0];
|
|
3124
|
+
if (!promises_1.default.resolve(data[0].internalMessageId, event.personalSettings)) {
|
|
3125
|
+
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(constants_1.SfuEvent.CONTACT_PERSONAL_SETTINGS_UPDATED, event);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
2806
3128
|
else {
|
|
2807
3129
|
__classPrivateFieldGet(this, _SfuExtended_notifier, "f").notify(data[0].type, data[0]);
|
|
2808
3130
|
}
|