@ale-rainbow/web-sdk 5.1.0
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/README.md +44 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +501 -0
- package/lib/index.js.map +7 -0
- package/lib/libs/index.d.ts +3 -0
- package/lib/libs/index.d.ts.map +1 -0
- package/lib/libs/strophe/strophe-plugin.d.ts +13 -0
- package/lib/libs/strophe/strophe-plugin.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.d.ts +35 -0
- package/lib/libs/strophe/strophe.jingle.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts +44 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts +624 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts +791 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts +9 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.mam.d.ts +11 -0
- package/lib/libs/strophe/strophe.mam.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.ping.d.ts +39 -0
- package/lib/libs/strophe/strophe.ping.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.rsm.d.ts +24 -0
- package/lib/libs/strophe/strophe.rsm.d.ts.map +1 -0
- package/lib/libs/strophe/types.d.ts +23 -0
- package/lib/libs/strophe/types.d.ts.map +1 -0
- package/lib/models/authSettings.model.d.ts +38 -0
- package/lib/models/authSettings.model.d.ts.map +1 -0
- package/lib/models/bubble.model.d.ts +1114 -0
- package/lib/models/bubble.model.d.ts.map +1 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts +532 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts.map +1 -0
- package/lib/models/call.model.d.ts +1271 -0
- package/lib/models/call.model.d.ts.map +1 -0
- package/lib/models/callLog.model.d.ts +361 -0
- package/lib/models/callLog.model.d.ts.map +1 -0
- package/lib/models/channel.model.d.ts +692 -0
- package/lib/models/channel.model.d.ts.map +1 -0
- package/lib/models/channelMessage.model.d.ts +300 -0
- package/lib/models/channelMessage.model.d.ts.map +1 -0
- package/lib/models/cli.model.d.ts +59 -0
- package/lib/models/cli.model.d.ts.map +1 -0
- package/lib/models/common/context.d.ts +37 -0
- package/lib/models/common/context.d.ts.map +1 -0
- package/lib/models/common/error.d.ts +26 -0
- package/lib/models/common/error.d.ts.map +1 -0
- package/lib/models/common/fileDescriptor.d.ts +317 -0
- package/lib/models/common/fileDescriptor.d.ts.map +1 -0
- package/lib/models/common/filePublicDownload.d.ts +26 -0
- package/lib/models/common/filePublicDownload.d.ts.map +1 -0
- package/lib/models/common/fileViewer.d.ts +20 -0
- package/lib/models/common/fileViewer.d.ts.map +1 -0
- package/lib/models/common/index.d.ts +9 -0
- package/lib/models/common/index.d.ts.map +1 -0
- package/lib/models/common/theme.d.ts +185 -0
- package/lib/models/common/theme.d.ts.map +1 -0
- package/lib/models/common/themeColor.d.ts +47 -0
- package/lib/models/common/themeColor.d.ts.map +1 -0
- package/lib/models/common/userTheme.d.ts +42 -0
- package/lib/models/common/userTheme.d.ts.map +1 -0
- package/lib/models/company-invitation.model.d.ts +42 -0
- package/lib/models/company-invitation.model.d.ts.map +1 -0
- package/lib/models/company.model.d.ts +639 -0
- package/lib/models/company.model.d.ts.map +1 -0
- package/lib/models/contact.model.d.ts +1208 -0
- package/lib/models/contact.model.d.ts.map +1 -0
- package/lib/models/conversation.model.d.ts +768 -0
- package/lib/models/conversation.model.d.ts.map +1 -0
- package/lib/models/customManifest.model.d.ts +82 -0
- package/lib/models/customManifest.model.d.ts.map +1 -0
- package/lib/models/dataChannel.model.d.ts +178 -0
- package/lib/models/dataChannel.model.d.ts.map +1 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts +18 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts.map +1 -0
- package/lib/models/directoryContact.model.d.ts +205 -0
- package/lib/models/directoryContact.model.d.ts.map +1 -0
- package/lib/models/event.model.d.ts +14 -0
- package/lib/models/event.model.d.ts.map +1 -0
- package/lib/models/favorite.model.d.ts +94 -0
- package/lib/models/favorite.model.d.ts.map +1 -0
- package/lib/models/fileDocument.model.d.ts +345 -0
- package/lib/models/fileDocument.model.d.ts.map +1 -0
- package/lib/models/geoLoc.model.d.ts +6 -0
- package/lib/models/geoLoc.model.d.ts.map +1 -0
- package/lib/models/index.d.ts +46 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/invitation.model.d.ts +88 -0
- package/lib/models/invitation.model.d.ts.map +1 -0
- package/lib/models/invoices.model.d.ts +76 -0
- package/lib/models/invoices.model.d.ts.map +1 -0
- package/lib/models/logEntry.model.d.ts +23 -0
- package/lib/models/logEntry.model.d.ts.map +1 -0
- package/lib/models/message.model.d.ts +400 -0
- package/lib/models/message.model.d.ts.map +1 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts +32 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts.map +1 -0
- package/lib/models/offer.model.d.ts +16 -0
- package/lib/models/offer.model.d.ts.map +1 -0
- package/lib/models/p2pRecap.model.d.ts +372 -0
- package/lib/models/p2pRecap.model.d.ts.map +1 -0
- package/lib/models/paymentMethods.model.d.ts +98 -0
- package/lib/models/paymentMethods.model.d.ts.map +1 -0
- package/lib/models/personalRoutine.model.d.ts +173 -0
- package/lib/models/personalRoutine.model.d.ts.map +1 -0
- package/lib/models/poll.model.d.ts +139 -0
- package/lib/models/poll.model.d.ts.map +1 -0
- package/lib/models/rainbow-auth.model.d.ts +137 -0
- package/lib/models/rainbow-auth.model.d.ts.map +1 -0
- package/lib/models/searchTextConvResults.model.d.ts +30 -0
- package/lib/models/searchTextConvResults.model.d.ts.map +1 -0
- package/lib/models/site.model.d.ts +165 -0
- package/lib/models/site.model.d.ts.map +1 -0
- package/lib/models/subscription.model.d.ts +592 -0
- package/lib/models/subscription.model.d.ts.map +1 -0
- package/lib/models/telephonyConfig.model.d.ts +144 -0
- package/lib/models/telephonyConfig.model.d.ts.map +1 -0
- package/lib/models/telephonyForward.model.d.ts +47 -0
- package/lib/models/telephonyForward.model.d.ts.map +1 -0
- package/lib/models/todo.model.d.ts +103 -0
- package/lib/models/todo.model.d.ts.map +1 -0
- package/lib/models/transcription.model.d.ts +59 -0
- package/lib/models/transcription.model.d.ts.map +1 -0
- package/lib/models/user.model.d.ts +1008 -0
- package/lib/models/user.model.d.ts.map +1 -0
- package/lib/models/userProfileTemplate.model.d.ts +735 -0
- package/lib/models/userProfileTemplate.model.d.ts.map +1 -0
- package/lib/models/usersList.model.d.ts +117 -0
- package/lib/models/usersList.model.d.ts.map +1 -0
- package/lib/models/webConferenceParticipant.model.d.ts +135 -0
- package/lib/models/webConferenceParticipant.model.d.ts.map +1 -0
- package/lib/models/webConferenceSession.model.d.ts +658 -0
- package/lib/models/webConferenceSession.model.d.ts.map +1 -0
- package/lib/models/webinar.model.d.ts +738 -0
- package/lib/models/webinar.model.d.ts.map +1 -0
- package/lib/models/webinarRecap.model.d.ts +118 -0
- package/lib/models/webinarRecap.model.d.ts.map +1 -0
- package/lib/node.d.ts +3 -0
- package/lib/node.d.ts.map +1 -0
- package/lib/node.js +423 -0
- package/lib/node.js.map +7 -0
- package/lib/node.sdk.d.ts +41 -0
- package/lib/node.sdk.d.ts.map +1 -0
- package/lib/plugins/admin.plugin.d.ts +6 -0
- package/lib/plugins/admin.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleConference.plugin.d.ts +6 -0
- package/lib/plugins/bubbleConference.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleTag.plugin.d.ts +6 -0
- package/lib/plugins/bubbleTag.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbles.plugin.d.ts +6 -0
- package/lib/plugins/bubbles.plugin.d.ts.map +1 -0
- package/lib/plugins/businessDirectory.plugin.d.ts +6 -0
- package/lib/plugins/businessDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/callRecorder.plugin.d.ts +6 -0
- package/lib/plugins/callRecorder.plugin.d.ts.map +1 -0
- package/lib/plugins/calllog.plugin.d.ts +6 -0
- package/lib/plugins/calllog.plugin.d.ts.map +1 -0
- package/lib/plugins/calls.plugin.d.ts +6 -0
- package/lib/plugins/calls.plugin.d.ts.map +1 -0
- package/lib/plugins/channels.plugin.d.ts +6 -0
- package/lib/plugins/channels.plugin.d.ts.map +1 -0
- package/lib/plugins/dataChannel.plugin.d.ts +6 -0
- package/lib/plugins/dataChannel.plugin.d.ts.map +1 -0
- package/lib/plugins/deviceManagement.plugin.d.ts +6 -0
- package/lib/plugins/deviceManagement.plugin.d.ts.map +1 -0
- package/lib/plugins/favorites.plugin.d.ts +6 -0
- package/lib/plugins/favorites.plugin.d.ts.map +1 -0
- package/lib/plugins/fileDocument.plugin.d.ts +6 -0
- package/lib/plugins/fileDocument.plugin.d.ts.map +1 -0
- package/lib/plugins/helpCenter.plugin.d.ts +6 -0
- package/lib/plugins/helpCenter.plugin.d.ts.map +1 -0
- package/lib/plugins/index.d.ts +27 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts +6 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts.map +1 -0
- package/lib/plugins/pbxUsers.plugin.d.ts +6 -0
- package/lib/plugins/pbxUsers.plugin.d.ts.map +1 -0
- package/lib/plugins/personalDirectory.plugin.d.ts +6 -0
- package/lib/plugins/personalDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/plugin.d.ts +8 -0
- package/lib/plugins/plugin.d.ts.map +1 -0
- package/lib/plugins/polls.plugin.d.ts +6 -0
- package/lib/plugins/polls.plugin.d.ts.map +1 -0
- package/lib/plugins/rpc.plugin.d.ts +6 -0
- package/lib/plugins/rpc.plugin.d.ts.map +1 -0
- package/lib/plugins/telemetry.plugin.d.ts +6 -0
- package/lib/plugins/telemetry.plugin.d.ts.map +1 -0
- package/lib/plugins/telephony.plugin.d.ts +6 -0
- package/lib/plugins/telephony.plugin.d.ts.map +1 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts +6 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts.map +1 -0
- package/lib/plugins/transcription.plugin.d.ts +6 -0
- package/lib/plugins/transcription.plugin.d.ts.map +1 -0
- package/lib/plugins/usersList.plugin.d.ts +6 -0
- package/lib/plugins/usersList.plugin.d.ts.map +1 -0
- package/lib/plugins/virtualBackground.plugin.d.ts +6 -0
- package/lib/plugins/virtualBackground.plugin.d.ts.map +1 -0
- package/lib/plugins/webinar.plugin.d.ts +6 -0
- package/lib/plugins/webinar.plugin.d.ts.map +1 -0
- package/lib/rainbow.sdk.d.ts +309 -0
- package/lib/rainbow.sdk.d.ts.map +1 -0
- package/lib/services/admin/admin-alarm.service.d.ts +42 -0
- package/lib/services/admin/admin-alarm.service.d.ts.map +1 -0
- package/lib/services/admin/admin-company.service.d.ts +167 -0
- package/lib/services/admin/admin-company.service.d.ts.map +1 -0
- package/lib/services/admin/admin-department.service.d.ts +39 -0
- package/lib/services/admin/admin-department.service.d.ts.map +1 -0
- package/lib/services/admin/admin-invitation.service.d.ts +114 -0
- package/lib/services/admin/admin-invitation.service.d.ts.map +1 -0
- package/lib/services/admin/admin-management.service.d.ts +100 -0
- package/lib/services/admin/admin-management.service.d.ts.map +1 -0
- package/lib/services/admin/admin-rvcp.service.d.ts +43 -0
- package/lib/services/admin/admin-rvcp.service.d.ts.map +1 -0
- package/lib/services/admin/admin-site.service.d.ts +64 -0
- package/lib/services/admin/admin-site.service.d.ts.map +1 -0
- package/lib/services/admin/admin-subscription.service.d.ts +135 -0
- package/lib/services/admin/admin-subscription.service.d.ts.map +1 -0
- package/lib/services/admin/admin-tag.service.d.ts +79 -0
- package/lib/services/admin/admin-tag.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user-profile.service.d.ts +76 -0
- package/lib/services/admin/admin-user-profile.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user.service.d.ts +338 -0
- package/lib/services/admin/admin-user.service.d.ts.map +1 -0
- package/lib/services/admin/admin.common.d.ts +40 -0
- package/lib/services/admin/admin.common.d.ts.map +1 -0
- package/lib/services/admin/admin.service.d.ts +138 -0
- package/lib/services/admin/admin.service.d.ts.map +1 -0
- package/lib/services/admin/index.d.ts +14 -0
- package/lib/services/admin/index.d.ts.map +1 -0
- package/lib/services/bot/bot.service.d.ts +121 -0
- package/lib/services/bot/bot.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubble.service.d.ts +889 -0
- package/lib/services/bubbles/bubble.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts +132 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts.map +1 -0
- package/lib/services/bubbles/index.d.ts +3 -0
- package/lib/services/bubbles/index.d.ts.map +1 -0
- package/lib/services/call/call.service.d.ts +297 -0
- package/lib/services/call/call.service.d.ts.map +1 -0
- package/lib/services/call/callRecorder.service.d.ts +358 -0
- package/lib/services/call/callRecorder.service.d.ts.map +1 -0
- package/lib/services/call/index.d.ts +3 -0
- package/lib/services/call/index.d.ts.map +1 -0
- package/lib/services/callLog/callLog.service.d.ts +563 -0
- package/lib/services/callLog/callLog.service.d.ts.map +1 -0
- package/lib/services/callLog/index.d.ts +5 -0
- package/lib/services/callLog/index.d.ts.map +1 -0
- package/lib/services/callLog/p2pRecap.service.d.ts +206 -0
- package/lib/services/callLog/p2pRecap.service.d.ts.map +1 -0
- package/lib/services/channels/channel.service.d.ts +626 -0
- package/lib/services/channels/channel.service.d.ts.map +1 -0
- package/lib/services/channels/index.d.ts +3 -0
- package/lib/services/channels/index.d.ts.map +1 -0
- package/lib/services/citrix/citrix.service.d.ts +30 -0
- package/lib/services/citrix/citrix.service.d.ts.map +1 -0
- package/lib/services/citrix/index.d.ts +3 -0
- package/lib/services/citrix/index.d.ts.map +1 -0
- package/lib/services/company/company-directory.service.d.ts +222 -0
- package/lib/services/company/company-directory.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConference.service.d.ts +1237 -0
- package/lib/services/conference/bubbleConference.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts +159 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts.map +1 -0
- package/lib/services/conference/index.d.ts +5 -0
- package/lib/services/conference/index.d.ts.map +1 -0
- package/lib/services/conference/webConferenceHelper.d.ts +25 -0
- package/lib/services/conference/webConferenceHelper.d.ts.map +1 -0
- package/lib/services/conversation/conversation.service.d.ts +723 -0
- package/lib/services/conversation/conversation.service.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts +39 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts +78 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts.map +1 -0
- package/lib/services/conversation/index.d.ts +3 -0
- package/lib/services/conversation/index.d.ts.map +1 -0
- package/lib/services/core/account.service.d.ts +98 -0
- package/lib/services/core/account.service.d.ts.map +1 -0
- package/lib/services/core/auth.service.d.ts +303 -0
- package/lib/services/core/auth.service.d.ts.map +1 -0
- package/lib/services/core/company.service.d.ts +30 -0
- package/lib/services/core/company.service.d.ts.map +1 -0
- package/lib/services/core/connection.service.d.ts +209 -0
- package/lib/services/core/connection.service.d.ts.map +1 -0
- package/lib/services/core/contact.service.d.ts +617 -0
- package/lib/services/core/contact.service.d.ts.map +1 -0
- package/lib/services/core/country.service.d.ts +66 -0
- package/lib/services/core/country.service.d.ts.map +1 -0
- package/lib/services/core/directorySearch.service.d.ts +305 -0
- package/lib/services/core/directorySearch.service.d.ts.map +1 -0
- package/lib/services/core/event.service.d.ts +31 -0
- package/lib/services/core/event.service.d.ts.map +1 -0
- package/lib/services/core/i18n.service.d.ts +19 -0
- package/lib/services/core/i18n.service.d.ts.map +1 -0
- package/lib/services/core/imageUtils.service.d.ts +15 -0
- package/lib/services/core/imageUtils.service.d.ts.map +1 -0
- package/lib/services/core/index.d.ts +19 -0
- package/lib/services/core/index.d.ts.map +1 -0
- package/lib/services/core/logger.service.d.ts +143 -0
- package/lib/services/core/logger.service.d.ts.map +1 -0
- package/lib/services/core/logging.service.d.ts +51 -0
- package/lib/services/core/logging.service.d.ts.map +1 -0
- package/lib/services/core/main.service.d.ts +124 -0
- package/lib/services/core/main.service.d.ts.map +1 -0
- package/lib/services/core/presenceHelper.service.d.ts +73 -0
- package/lib/services/core/presenceHelper.service.d.ts.map +1 -0
- package/lib/services/core/profile.service.d.ts +453 -0
- package/lib/services/core/profile.service.d.ts.map +1 -0
- package/lib/services/core/settings.service.d.ts +82 -0
- package/lib/services/core/settings.service.d.ts.map +1 -0
- package/lib/services/core/userInfo.service.d.ts +25 -0
- package/lib/services/core/userInfo.service.d.ts.map +1 -0
- package/lib/services/core/userNetwork.service.d.ts +171 -0
- package/lib/services/core/userNetwork.service.d.ts.map +1 -0
- package/lib/services/core/xmpp.service.d.ts +99 -0
- package/lib/services/core/xmpp.service.d.ts.map +1 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts +102 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts.map +1 -0
- package/lib/services/dataChannel/index.d.ts +3 -0
- package/lib/services/dataChannel/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts +86 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts +290 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts.map +1 -0
- package/lib/services/deviceManagement/index.d.ts +2 -0
- package/lib/services/deviceManagement/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts +616 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts.map +1 -0
- package/lib/services/directory/directory.service.d.ts +108 -0
- package/lib/services/directory/directory.service.d.ts.map +1 -0
- package/lib/services/directory/index.d.ts +3 -0
- package/lib/services/directory/index.d.ts.map +1 -0
- package/lib/services/directory/office365ad.service.d.ts +74 -0
- package/lib/services/directory/office365ad.service.d.ts.map +1 -0
- package/lib/services/directory/personal-directory.service.d.ts +425 -0
- package/lib/services/directory/personal-directory.service.d.ts.map +1 -0
- package/lib/services/directory/phonebook.service.d.ts +43 -0
- package/lib/services/directory/phonebook.service.d.ts.map +1 -0
- package/lib/services/event-mixin.d.ts +75 -0
- package/lib/services/event-mixin.d.ts.map +1 -0
- package/lib/services/favorites/favorites.service.d.ts +313 -0
- package/lib/services/favorites/favorites.service.d.ts.map +1 -0
- package/lib/services/favorites/index.d.ts +3 -0
- package/lib/services/favorites/index.d.ts.map +1 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts +229 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts.map +1 -0
- package/lib/services/fileDocument/index.d.ts +5 -0
- package/lib/services/fileDocument/index.d.ts.map +1 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts +18 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts.map +1 -0
- package/lib/services/files/fileServer.service.d.ts +268 -0
- package/lib/services/files/fileServer.service.d.ts.map +1 -0
- package/lib/services/files/fileStorage.service.d.ts +426 -0
- package/lib/services/files/fileStorage.service.d.ts.map +1 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts +207 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts.map +1 -0
- package/lib/services/helpcenter/index.d.ts +4 -0
- package/lib/services/helpcenter/index.d.ts.map +1 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts +47 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts.map +1 -0
- package/lib/services/horizon/horizon.service.d.ts +31 -0
- package/lib/services/horizon/horizon.service.d.ts.map +1 -0
- package/lib/services/horizon/index.d.ts +3 -0
- package/lib/services/horizon/index.d.ts.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts +8 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts.map +1 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts +79 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts.map +1 -0
- package/lib/services/localTranslation/index.d.ts +6 -0
- package/lib/services/localTranslation/index.d.ts.map +1 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts +129 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts.map +1 -0
- package/lib/services/localTranslation/translationEngine.d.ts +81 -0
- package/lib/services/localTranslation/translationEngine.d.ts.map +1 -0
- package/lib/services/metrics/analytics.service.d.ts +63 -0
- package/lib/services/metrics/analytics.service.d.ts.map +1 -0
- package/lib/services/metrics/index.d.ts +2 -0
- package/lib/services/metrics/index.d.ts.map +1 -0
- package/lib/services/notifications/index.d.ts +2 -0
- package/lib/services/notifications/index.d.ts.map +1 -0
- package/lib/services/notifications/notificationCenter.service.d.ts +178 -0
- package/lib/services/notifications/notificationCenter.service.d.ts.map +1 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts +46 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts.map +1 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts +159 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts.map +1 -0
- package/lib/services/polls/index.d.ts +2 -0
- package/lib/services/polls/index.d.ts.map +1 -0
- package/lib/services/polls/polls.service.d.ts +139 -0
- package/lib/services/polls/polls.service.d.ts.map +1 -0
- package/lib/services/ringing/index.d.ts +2 -0
- package/lib/services/ringing/index.d.ts.map +1 -0
- package/lib/services/ringing/ringing.service.d.ts +535 -0
- package/lib/services/ringing/ringing.service.d.ts.map +1 -0
- package/lib/services/rpc/index.d.ts +2 -0
- package/lib/services/rpc/index.d.ts.map +1 -0
- package/lib/services/rpc/rpc.service.d.ts +75 -0
- package/lib/services/rpc/rpc.service.d.ts.map +1 -0
- package/lib/services/service.d.ts +9 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts +87 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts.map +1 -0
- package/lib/services/subscription/index.d.ts +4 -0
- package/lib/services/subscription/index.d.ts.map +1 -0
- package/lib/services/subscription/invoices.service.d.ts +78 -0
- package/lib/services/subscription/invoices.service.d.ts.map +1 -0
- package/lib/services/subscription/paymentMethods.service.d.ts +164 -0
- package/lib/services/subscription/paymentMethods.service.d.ts.map +1 -0
- package/lib/services/subscription/subscription.service.d.ts +510 -0
- package/lib/services/subscription/subscription.service.d.ts.map +1 -0
- package/lib/services/support/index.d.ts +2 -0
- package/lib/services/support/index.d.ts.map +1 -0
- package/lib/services/support/support.model.d.ts +143 -0
- package/lib/services/support/support.model.d.ts.map +1 -0
- package/lib/services/support/support.service.d.ts +162 -0
- package/lib/services/support/support.service.d.ts.map +1 -0
- package/lib/services/telemetry/index.d.ts +3 -0
- package/lib/services/telemetry/index.d.ts.map +1 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts +25 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts.map +1 -0
- package/lib/services/telemetry/telemetry.service.d.ts +22 -0
- package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
- package/lib/services/telephony/index.d.ts +4 -0
- package/lib/services/telephony/index.d.ts.map +1 -0
- package/lib/services/telephony/supervision.service.d.ts +277 -0
- package/lib/services/telephony/supervision.service.d.ts.map +1 -0
- package/lib/services/telephony/telephony.service.d.ts +1476 -0
- package/lib/services/telephony/telephony.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts +63 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts +360 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts.map +1 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts +86 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts +543 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts +462 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts.map +1 -0
- package/lib/services/telephonyConfig/index.d.ts +3 -0
- package/lib/services/telephonyConfig/index.d.ts.map +1 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts +150 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts.map +1 -0
- package/lib/services/todo/todo.service.d.ts +358 -0
- package/lib/services/todo/todo.service.d.ts.map +1 -0
- package/lib/services/transcription/index.d.ts +2 -0
- package/lib/services/transcription/index.d.ts.map +1 -0
- package/lib/services/transcription/liveTranscription.service.d.ts +94 -0
- package/lib/services/transcription/liveTranscription.service.d.ts.map +1 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts +51 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts.map +1 -0
- package/lib/services/users/index.d.ts +3 -0
- package/lib/services/users/index.d.ts.map +1 -0
- package/lib/services/users/user.service.d.ts +146 -0
- package/lib/services/users/user.service.d.ts.map +1 -0
- package/lib/services/users/usersLists.service.d.ts +239 -0
- package/lib/services/users/usersLists.service.d.ts.map +1 -0
- package/lib/services/utilities/browserDatabase.service.d.ts +69 -0
- package/lib/services/utilities/browserDatabase.service.d.ts.map +1 -0
- package/lib/services/utilities/errorHelper.service.d.ts +24 -0
- package/lib/services/utilities/errorHelper.service.d.ts.map +1 -0
- package/lib/services/utilities/index.d.ts +4 -0
- package/lib/services/utilities/index.d.ts.map +1 -0
- package/lib/services/utilities/utilities.service.d.ts +74 -0
- package/lib/services/utilities/utilities.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts +228 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/index.d.ts +4 -0
- package/lib/services/virtualBackground/index.d.ts.map +1 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts +190 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts +66 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts +88 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts +69 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts +55 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts +59 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts +34 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts +62 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts +56 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts.map +1 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts +399 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts.map +1 -0
- package/lib/services/webinars/index.d.ts +10 -0
- package/lib/services/webinars/index.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts +71 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts +86 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts +31 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts.map +1 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts +45 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.service.d.ts +323 -0
- package/lib/services/webinars/webinarConference.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.utils.d.ts +24 -0
- package/lib/services/webinars/webinarConference.utils.d.ts.map +1 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts +43 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts +25 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts +117 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts.map +1 -0
- package/lib/services/webinars/webinars.service.d.ts +600 -0
- package/lib/services/webinars/webinars.service.d.ts.map +1 -0
- package/lib/services/webrtc/index.d.ts +5 -0
- package/lib/services/webrtc/index.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts +170 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts +521 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts +55 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts.map +1 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts +605 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts.map +1 -0
- package/lib/strophejs.d.ts +3 -0
- package/lib/strophejs.d.ts.map +1 -0
- package/lib/typings/helpers.d.ts +3 -0
- package/lib/typings/helpers.d.ts.map +1 -0
- package/lib/utils/allSettled.d.ts +2 -0
- package/lib/utils/allSettled.d.ts.map +1 -0
- package/lib/utils/anonymizer.d.ts +28 -0
- package/lib/utils/anonymizer.d.ts.map +1 -0
- package/lib/utils/branded.d.ts +4 -0
- package/lib/utils/branded.d.ts.map +1 -0
- package/lib/utils/browser.d.ts +231 -0
- package/lib/utils/browser.d.ts.map +1 -0
- package/lib/utils/index.d.ts +12 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/mediaPermissionError.d.ts +2 -0
- package/lib/utils/mediaPermissionError.d.ts.map +1 -0
- package/lib/utils/promiseQueue.d.ts +10 -0
- package/lib/utils/promiseQueue.d.ts.map +1 -0
- package/lib/utils/randomString.d.ts +3 -0
- package/lib/utils/randomString.d.ts.map +1 -0
- package/lib/utils/recordingArchiveName.d.ts +13 -0
- package/lib/utils/recordingArchiveName.d.ts.map +1 -0
- package/lib/utils/serverTimestamp.d.ts +15 -0
- package/lib/utils/serverTimestamp.d.ts.map +1 -0
- package/lib/utils/stringifyError.d.ts +2 -0
- package/lib/utils/stringifyError.d.ts.map +1 -0
- package/lib/utils/video.d.ts +27 -0
- package/lib/utils/video.d.ts.map +1 -0
- package/lib/utils/wait.d.ts +2 -0
- package/lib/utils/wait.d.ts.map +1 -0
- package/lib/utils/xmlParser.d.ts +102 -0
- package/lib/utils/xmlParser.d.ts.map +1 -0
- package/lib/utils/xmlValidation.d.ts +119 -0
- package/lib/utils/xmlValidation.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module Conversations
|
|
3
|
+
*/
|
|
4
|
+
import type { Subscription } from "rxjs";
|
|
5
|
+
import { BehaviorSubject } from "rxjs";
|
|
6
|
+
import { CallRB } from "../../models/call.model";
|
|
7
|
+
import { Contact } from "../../models/contact.model";
|
|
8
|
+
import { BubbleRB } from "../../models/bubble.model";
|
|
9
|
+
import type { MessageAdditionalContent, MessageID, Urgency } from "../../models/message.model";
|
|
10
|
+
import { Mention, MentionLegacy, Message, Reaction } from "../../models/message.model";
|
|
11
|
+
import { RBEvent } from "../../models/event.model";
|
|
12
|
+
import type { Conversation, ConversationBookmark } from "../../models/conversation.model";
|
|
13
|
+
import { ConversationMissedInfoCounters, ConversationRB, ConversationStatus } from "../../models/conversation.model";
|
|
14
|
+
import type { FileDescriptor } from "../../models/common/fileDescriptor";
|
|
15
|
+
import { SearchTextConvResults, SearchTextResult } from "../../models/searchTextConvResults.model";
|
|
16
|
+
import type { UrlMetaData } from "../../services/ulrMetadata/urlMetadata.service";
|
|
17
|
+
import { Service } from "../../services/service";
|
|
18
|
+
import { ConversationServiceBulkHistoryHandler } from "../../services/conversation/conversationServiceBulkHistoryHandler";
|
|
19
|
+
import type { Bubble, FileDocument, User } from "../../models";
|
|
20
|
+
import type { XMLElements } from "../../utils/xmlParser";
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const CONVERSATION_SVC = "ConversationService";
|
|
23
|
+
export interface ConversationService {
|
|
24
|
+
/**
|
|
25
|
+
* Subscribe to updates from the service (all events are of RBEvent);
|
|
26
|
+
* @param handler - The call-back function that will be subscribed to the RxJS subject
|
|
27
|
+
* @param eventNames - array of event to listen
|
|
28
|
+
*/
|
|
29
|
+
subscribe: (handler: (event: RBEvent<ConversationServiceEvents>) => any, eventNames?: ConversationServiceEvents | ConversationServiceEvents[]) => Subscription;
|
|
30
|
+
/**
|
|
31
|
+
* Get the array of current conversations
|
|
32
|
+
*/
|
|
33
|
+
getConversations: () => Conversation[];
|
|
34
|
+
/**
|
|
35
|
+
* Get the array of all current call conversations, regardless of type (phone or webrtc)
|
|
36
|
+
*/
|
|
37
|
+
getCallConversations: () => Conversation[];
|
|
38
|
+
/**
|
|
39
|
+
* Async method which get conversation for a bubble, a user or via conversation id.
|
|
40
|
+
* Conversation is first search in service cache then server side.
|
|
41
|
+
* @param convRef - a bubble, a user or a conversation id
|
|
42
|
+
* @param type - the conversation type
|
|
43
|
+
*/
|
|
44
|
+
getConversation: (convRef: string | User | Bubble | undefined, type?: "contact" | "room") => Promise<Conversation | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* This method remove locally and server side a conversation; Should be used on conversations already created on server and not local ones
|
|
47
|
+
* @param conversation - the conversation to remove
|
|
48
|
+
*/
|
|
49
|
+
removeConversation: (conversation: Conversation) => Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* This async method allow to ack all conversation message
|
|
52
|
+
* @param conversation - the conversation
|
|
53
|
+
* @param force - when true force the ack
|
|
54
|
+
*/
|
|
55
|
+
ackAllMessages: (conversation: Conversation, force?: boolean) => Promise<Conversation>;
|
|
56
|
+
/**
|
|
57
|
+
* Method used to search for text in all rooms and conversation. The searched text length should be 3+ characters.
|
|
58
|
+
* This API will return a list of all conversations / rooms with the number of occurances of the searched text in each one.
|
|
59
|
+
* If you need to get the results for a given conversation/room only, then use this API: searchForTextInConversation
|
|
60
|
+
* @param searchedText - the text to be searched in all conversations and rooms
|
|
61
|
+
* @param limit - the maximum number results to take. Default value is 500;
|
|
62
|
+
*/
|
|
63
|
+
globalSearch: (searchedText: string, limit: number) => Promise<SearchTextConvResults>;
|
|
64
|
+
}
|
|
65
|
+
export interface SendMessageData {
|
|
66
|
+
/**
|
|
67
|
+
* Additional contents (like markdown or vcard) to be added to the message
|
|
68
|
+
*/
|
|
69
|
+
additionalContents?: MessageAdditionalContent[];
|
|
70
|
+
/**
|
|
71
|
+
* In case we want to reply to a given message
|
|
72
|
+
*/
|
|
73
|
+
repliedMessage?: Message;
|
|
74
|
+
/**
|
|
75
|
+
* The list of mentions inside the message
|
|
76
|
+
*/
|
|
77
|
+
mentions?: (Mention | MentionLegacy)[];
|
|
78
|
+
/**
|
|
79
|
+
* The urgency of the message; Allowed values are (standard) 'std', (notify) 'low', (warning) 'middle', (emergency) 'high'; Default value is "std"
|
|
80
|
+
*/
|
|
81
|
+
urgency?: Urgency;
|
|
82
|
+
/**
|
|
83
|
+
* In case of urgency ACK message, the type of the ACK to send; Accepted values are "ack" or "ignore"
|
|
84
|
+
*/
|
|
85
|
+
urgencyAckType?: "ack" | "ignore";
|
|
86
|
+
/**
|
|
87
|
+
* URL Meta data in case of sending URL
|
|
88
|
+
*/
|
|
89
|
+
urlMetaData?: UrlMetaData;
|
|
90
|
+
}
|
|
91
|
+
export interface SendFileMessageData {
|
|
92
|
+
/**
|
|
93
|
+
* The file name to be shown in the conversation
|
|
94
|
+
*/
|
|
95
|
+
fileName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The File we want to send (in case of upload from local device)
|
|
98
|
+
*/
|
|
99
|
+
file?: File & {
|
|
100
|
+
preview?: Blob;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* The FileDescriptor (in case of already existing file)
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
existingFile?: FileDescriptor;
|
|
107
|
+
/**
|
|
108
|
+
* The Document to send ( in case of already existing document)
|
|
109
|
+
*/
|
|
110
|
+
document?: FileDocument;
|
|
111
|
+
/**
|
|
112
|
+
* In case of vocal message
|
|
113
|
+
*/
|
|
114
|
+
voiceMessageData?: {
|
|
115
|
+
duration: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* The urgency of the message; Allowed values are (standard) 'std', (notify) 'low', (warning) 'middle', (emergency) 'high'; Default value is "std"
|
|
119
|
+
*/
|
|
120
|
+
urgency?: Urgency;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @eventProperty
|
|
124
|
+
*/
|
|
125
|
+
export declare enum ConversationServiceEvents {
|
|
126
|
+
/**
|
|
127
|
+
* @eventProperty
|
|
128
|
+
* This RBEvent is send when the conversation service is started and ready to be used (also fired after loss of network and reconnection)
|
|
129
|
+
*/
|
|
130
|
+
ON_SERVICE_STARTED = "ON_SERVICE_STARTED",
|
|
131
|
+
/**
|
|
132
|
+
* @eventProperty ON_CONVERSATION_CREATED
|
|
133
|
+
* @param conversation - the new conversation
|
|
134
|
+
* This RBEvent is send when a conversation has been created from the user (or from another client)
|
|
135
|
+
*/
|
|
136
|
+
ON_CONVERSATION_CREATED = "ON_CONVERSATION_CREATED",
|
|
137
|
+
/**
|
|
138
|
+
* @eventProperty ON_CONVERSATION_REMOVED
|
|
139
|
+
* @param conversation - the concerned conversation
|
|
140
|
+
* This RBEvent is send when a conversation has been removed from the user (or from another client)
|
|
141
|
+
*/
|
|
142
|
+
ON_CONVERSATION_REMOVED = "ON_CONVERSATION_REMOVED",
|
|
143
|
+
/**
|
|
144
|
+
* @eventProperty ON_MESSAGE_ADDED_IN_CONVERSATION
|
|
145
|
+
* @param conversation - The conversation where the message is being added
|
|
146
|
+
* This RBEvent is send when a new message is added to a conversation
|
|
147
|
+
*/
|
|
148
|
+
ON_MESSAGE_ADDED_IN_CONVERSATION = "ON_MESSAGE_ADDED_IN_CONVERSATION",
|
|
149
|
+
/**
|
|
150
|
+
* @eventProperty ON_MESSAGE_MODIFIED_IN_CONVERSATION
|
|
151
|
+
* @param conversation - The conversation where the message is being modified
|
|
152
|
+
* This RBEvent is send when a message is being modified (or deleted) in the conversation
|
|
153
|
+
*/
|
|
154
|
+
ON_MESSAGE_MODIFIED_IN_CONVERSATION = "ON_MESSAGE_MODIFIED_IN_CONVERSATION",
|
|
155
|
+
/**
|
|
156
|
+
* @eventProperty ON_NEW_CALL_IN_CONVERSATION
|
|
157
|
+
* @param conversation - The conversation to which the call is attached
|
|
158
|
+
* This RBEvent is send when a new call is added to the conversation; Could be used to manage the list of all conversations with calls
|
|
159
|
+
*/
|
|
160
|
+
ON_NEW_CALL_IN_CONVERSATION = "ON_NEW_CALL_IN_CONVERSATION",
|
|
161
|
+
/**
|
|
162
|
+
* @eventProperty ON_REMOVE_CALL_IN_CONVERSATION
|
|
163
|
+
* @param conversation - The conversation to which the call is removed
|
|
164
|
+
* This RBEvent is send when a new call is removed from the conversation; Could be used to manage the list of all conversations with calls
|
|
165
|
+
*/
|
|
166
|
+
ON_REMOVE_CALL_IN_CONVERSATION = "ON_REMOVE_CALL_IN_CONVERSATION",
|
|
167
|
+
/**
|
|
168
|
+
* @eventProperty ON_CALL_IN_CONVERSATION_UPDATE
|
|
169
|
+
* @param conversation - The conversation related to the call (sometimes the converation will be null, as it has been deleted)
|
|
170
|
+
* @param call - The related call
|
|
171
|
+
* This RBEvent is send when there's updated in the call inside the conversation; For Telephony calls, the conversation could be null;
|
|
172
|
+
*/
|
|
173
|
+
ON_CALL_IN_CONVERSATION_UPDATE = "ON_CALL_IN_CONVERSATION_UPDATE",
|
|
174
|
+
/**
|
|
175
|
+
* @eventProperty ON_ACTIVE_CALL_CHANGE
|
|
176
|
+
* @param conversation - [optional] The conversation where the call is now ACTIVE or RINGING_OUTGOING; COULD BE NULL if no call is active
|
|
177
|
+
* @param call - [optional] The call hat is now ACTIVE or RINGING_OUTGOING; COULD BE NULL if no call is active (the current call is no longer active)
|
|
178
|
+
* This RBEvent is send when there's update on the current active call; If no call is currently active, the event will be send with NO CONVERSATION AND NO CALL
|
|
179
|
+
*/
|
|
180
|
+
ON_ACTIVE_CALL_CHANGE = "ON_ACTIVE_CALL_CHANGE",
|
|
181
|
+
/**
|
|
182
|
+
* @eventProperty ON_MESSAGE_REACTION_REFUSED
|
|
183
|
+
* @param conversation - The conversation holding the message
|
|
184
|
+
* @param message - The message the reaction was aimed at, already reverted to its previous state
|
|
185
|
+
* This RBEvent is send when the server refuses a reaction the user just made; the local state has been
|
|
186
|
+
* rolled back, so the UI only has to tell the user the reaction could not be applied
|
|
187
|
+
*/
|
|
188
|
+
ON_MESSAGE_REACTION_REFUSED = "ON_MESSAGE_REACTION_REFUSED"
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
* Conversation service internal events send to other sevices via sendInnerEvent()
|
|
193
|
+
* Should not be used by SDK user
|
|
194
|
+
*/
|
|
195
|
+
export declare enum ConversationServiceInnerEvents {
|
|
196
|
+
/**
|
|
197
|
+
* @eventProperty RAINBOW_ON_WEBCONF_ADD_HOC_COMPLETED
|
|
198
|
+
* @param bubble - the bubble related to the conference
|
|
199
|
+
* This RBEvent is send when adhoc conference starts in a new conversation; It's used to update the active conversation in the UI
|
|
200
|
+
*/
|
|
201
|
+
RAINBOW_ON_WEBCONF_ADD_HOC_COMPLETED = "RAINBOW_ON_WEBCONF_ADD_HOC_COMPLETED",
|
|
202
|
+
/**
|
|
203
|
+
* @eventProperty RAINBOW_ON_REPLACE_CONVERSATIONS_IN_EXTERNAL_POPOUT
|
|
204
|
+
* @param conversation - the conversation related to the update
|
|
205
|
+
* @param call - the call related to the update
|
|
206
|
+
* This RBEvent is send in case of switch of conversation call (hybrid cases) and the external popup should update the UI accordingly
|
|
207
|
+
*/
|
|
208
|
+
RAINBOW_ON_REPLACE_CONVERSATIONS_IN_EXTERNAL_POPOUT = "RAINBOW_ON_REPLACE_CONVERSATIONS_IN_EXTERNAL_POPOUT",
|
|
209
|
+
/**
|
|
210
|
+
* @eventProperty RAINBOW_CONVERSATION_AUTO_ACK_CHECK
|
|
211
|
+
* @param conversation - the conversation related
|
|
212
|
+
* @param message - the related message
|
|
213
|
+
* @param type - We only manage "IM" in case of IM message as the management is different;
|
|
214
|
+
* @param checkIfChatIsHidden - in case of P2P or CONF cases only
|
|
215
|
+
* This RBEvent is send in case we need if UCAAS should auto ack received message and decrease the missed counter;
|
|
216
|
+
*/
|
|
217
|
+
RAINBOW_CONVERSATION_AUTO_ACK_CHECK = "RAINBOW_CONVERSATION_AUTO_ACK_CHECK",
|
|
218
|
+
/**
|
|
219
|
+
* @eventProperty RAINBOW_CONVERSATION_CAPABILITIES_UPDATE
|
|
220
|
+
* @param conversation - the conversation related
|
|
221
|
+
* This RBEvent is send in case the capabilities for the conversation have changed
|
|
222
|
+
*/
|
|
223
|
+
RAINBOW_CONVERSATION_CAPABILITIES_UPDATE = "RAINBOW_CONVERSATION_CAPABILITIES_UPDATE",
|
|
224
|
+
/**
|
|
225
|
+
* @eventProperty RAINBOW_ORDER_CONVERSATIONS
|
|
226
|
+
* This RBEvent is send in case the an order conversations
|
|
227
|
+
*/
|
|
228
|
+
RAINBOW_ORDER_CONVERSATIONS = "RAINBOW_ORDER_CONVERSATIONS"
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* A reaction of ours applied locally and still revertible, should the server refuse it.
|
|
232
|
+
* @internal
|
|
233
|
+
*/
|
|
234
|
+
export interface PendingReaction {
|
|
235
|
+
conversation: ConversationRB;
|
|
236
|
+
message: Message;
|
|
237
|
+
/** The user's emoji list for that message *before* this reaction -- what a rollback restores. */
|
|
238
|
+
previousEmojis: string;
|
|
239
|
+
expiryTimer: ReturnType<typeof setTimeout>;
|
|
240
|
+
}
|
|
241
|
+
/** @internal */
|
|
242
|
+
export declare class ConversationServiceRB extends Service implements ConversationService {
|
|
243
|
+
searchTextConvResults: SearchTextConvResults;
|
|
244
|
+
conversationServiceBulkHistoryHandler: ConversationServiceBulkHistoryHandler | null;
|
|
245
|
+
readonly missedInfoCounters: BehaviorSubject<ConversationMissedInfoCounters>;
|
|
246
|
+
pendingMessages: any;
|
|
247
|
+
/**
|
|
248
|
+
* Reactions applied locally but not yet confirmed by the server, keyed by the id of the message they
|
|
249
|
+
* target. The server rejects a reaction it cannot match with a 404 error stanza; `previousEmojis` is
|
|
250
|
+
* the state to go back to in that case, so the emoji does not stay on screen for a reaction that does
|
|
251
|
+
* not exist server-side. Entries expire by themselves -- see `registerPendingReaction`.
|
|
252
|
+
*/
|
|
253
|
+
pendingReactions: Record<MessageID, PendingReaction>;
|
|
254
|
+
/** How long a reaction stays revertible. Past this, a late error stanza is ignored. */
|
|
255
|
+
private static readonly pendingReactionTtlMs;
|
|
256
|
+
private conversations;
|
|
257
|
+
private conversationCreationPromise;
|
|
258
|
+
/**
|
|
259
|
+
* True while a `searchForTextInConversation` call is in flight.
|
|
260
|
+
*
|
|
261
|
+
* Deliberately separate from `searchTextConvResults.isSearching`, which means "a *global* search
|
|
262
|
+
* is running" and is rendered as such by the conversations sidebar. The two operations hit
|
|
263
|
+
* different endpoints and own different state, so an in-conversation search must not lock out
|
|
264
|
+
* `globalSearch` (that is what made a reopened search modal come back empty).
|
|
265
|
+
*/
|
|
266
|
+
private convSearchInFlight;
|
|
267
|
+
private readonly rxSubject;
|
|
268
|
+
private readonly innerRxSubject;
|
|
269
|
+
private isBasicCallAllowed;
|
|
270
|
+
private isSecondCallAllowed;
|
|
271
|
+
private isSecondWebrtcCallAllowed;
|
|
272
|
+
private isSecondWebrtcCallAllowedHybrid;
|
|
273
|
+
private manageTwoWebrtcCallsAllowed;
|
|
274
|
+
private activeCall;
|
|
275
|
+
private subscriptions;
|
|
276
|
+
private eventServiceSubscriptionHandlers;
|
|
277
|
+
private xmppSubscriptionHandlers;
|
|
278
|
+
private conversationServiceEventHandler;
|
|
279
|
+
private mainService;
|
|
280
|
+
private eventService;
|
|
281
|
+
private authService;
|
|
282
|
+
private xmppService;
|
|
283
|
+
private i18n;
|
|
284
|
+
private logger;
|
|
285
|
+
private profileService;
|
|
286
|
+
private contactService;
|
|
287
|
+
private readonly userServicec;
|
|
288
|
+
private errorHelperService;
|
|
289
|
+
private settingsService;
|
|
290
|
+
private botService;
|
|
291
|
+
private bubbleService?;
|
|
292
|
+
private fileStorageService?;
|
|
293
|
+
private fileServerService?;
|
|
294
|
+
private webConferenceService?;
|
|
295
|
+
private webrtcP2PService?;
|
|
296
|
+
private webinarService?;
|
|
297
|
+
private telephonyService?;
|
|
298
|
+
private webrtcGatewayService?;
|
|
299
|
+
private notificationCenterService?;
|
|
300
|
+
private reinitTimer;
|
|
301
|
+
private readonly computeMyCapabilitiesSignal$;
|
|
302
|
+
private reinitInProgress;
|
|
303
|
+
private ccdAgentService;
|
|
304
|
+
private horizonService;
|
|
305
|
+
private citrixService;
|
|
306
|
+
/** This static methods returns the conversationService singleton */
|
|
307
|
+
static getInstance(): ConversationServiceRB;
|
|
308
|
+
/** This static factory creates the conversationService singleton */
|
|
309
|
+
static build(): ConversationServiceRB;
|
|
310
|
+
private constructor();
|
|
311
|
+
subscribeToInnerEvents(handler: (event: RBEvent<ConversationServiceInnerEvents>) => any): Subscription;
|
|
312
|
+
sendInnerEvent(name: ConversationServiceInnerEvents, data?: any): void;
|
|
313
|
+
/** This async method has to be call to start the conversation service */
|
|
314
|
+
start(): Promise<void>;
|
|
315
|
+
reconnect(): Promise<void>;
|
|
316
|
+
private removeHandlers;
|
|
317
|
+
attachHandlers(): void;
|
|
318
|
+
/**
|
|
319
|
+
* This async method has to be call to stop the conversation service
|
|
320
|
+
*/
|
|
321
|
+
stop(): Promise<void>;
|
|
322
|
+
subscribe(handler: (event: RBEvent<ConversationServiceEvents>) => any, eventNames?: ConversationServiceEvents | ConversationServiceEvents[]): Subscription;
|
|
323
|
+
/**
|
|
324
|
+
* Contact service events send to other services via sendEvent()
|
|
325
|
+
* Can listen to it via conversationService.subscribe() API
|
|
326
|
+
* @param name - the name of the event
|
|
327
|
+
* @param data -the data to be send (an object)
|
|
328
|
+
*/
|
|
329
|
+
sendEvent(name: ConversationServiceEvents, data?: unknown): void;
|
|
330
|
+
/**
|
|
331
|
+
* Allows to send an event (of type RBEvent) via the RX subject of the instance, and to be captured by subscribe
|
|
332
|
+
* @param rbEvent - event
|
|
333
|
+
*/
|
|
334
|
+
publish(rbEvent: RBEvent<ConversationServiceEvents, unknown>): void;
|
|
335
|
+
private promiseRacer;
|
|
336
|
+
/**
|
|
337
|
+
* This async method get valid conversations from the server and update the current list of conversations accordingly
|
|
338
|
+
*/
|
|
339
|
+
private getServerConversationsAndUpdate;
|
|
340
|
+
/**
|
|
341
|
+
* This async method permits to create a conversation from server data
|
|
342
|
+
* @param conversationData - the conversation identifier
|
|
343
|
+
*/
|
|
344
|
+
private updateConversationFromData;
|
|
345
|
+
private updateOneToOneConversationInternal;
|
|
346
|
+
private updateRoomConversationInternal;
|
|
347
|
+
/**
|
|
348
|
+
* This async method get valid conversations from the server
|
|
349
|
+
*/
|
|
350
|
+
private getServerConversations;
|
|
351
|
+
/**
|
|
352
|
+
* This async method create a conversation server side
|
|
353
|
+
* @param conversation - the conversation to create server side
|
|
354
|
+
*/
|
|
355
|
+
private createServerConversation;
|
|
356
|
+
/**
|
|
357
|
+
* This async method delete a conversation server side
|
|
358
|
+
* @param conversationId - the identifier of the conversation to remove server side
|
|
359
|
+
*/
|
|
360
|
+
private deleteServerConversation;
|
|
361
|
+
/**
|
|
362
|
+
* This async method update a conversation server side
|
|
363
|
+
* @param conversation - the conversation to update server side
|
|
364
|
+
*/
|
|
365
|
+
updateServerConversation(conversation: ConversationRB): Promise<ConversationRB>;
|
|
366
|
+
/**
|
|
367
|
+
* This async method allow to ack all conversation message
|
|
368
|
+
* @param conversation - the conversation
|
|
369
|
+
* @param force - when true force the ack
|
|
370
|
+
*/
|
|
371
|
+
ackAllMessages(conversation: ConversationRB, force?: boolean): Promise<ConversationRB>;
|
|
372
|
+
/**
|
|
373
|
+
* Method to set or replace a conversation bookmark; This API will provoque an update on the conversation object (event of type ConversationEvents.ON_MESSAGE_BOOKMARKED)
|
|
374
|
+
* @param conversation - the conversation
|
|
375
|
+
* @param message - the message to bookmark
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
setConversationBookmark(conversation: ConversationRB, message: Message): Promise<void>;
|
|
379
|
+
/**
|
|
380
|
+
* Method to set or delete a conversation bookmark
|
|
381
|
+
* @param conversation - the conversation
|
|
382
|
+
* @internal
|
|
383
|
+
*/
|
|
384
|
+
deleteConversationBookmark(conversation: ConversationRB): Promise<void>;
|
|
385
|
+
/**
|
|
386
|
+
* This async method permits to get a conversation by conversationId
|
|
387
|
+
* @param jid - the conversation identifier
|
|
388
|
+
* @param type - the conversation type ('contact' or 'room') (optional)
|
|
389
|
+
*/
|
|
390
|
+
getOrCreateConversation(jid: string, type?: string): Promise<ConversationRB>;
|
|
391
|
+
private createConversationFromData;
|
|
392
|
+
/**
|
|
393
|
+
* This method create a local conversation object from a call
|
|
394
|
+
* @param call - the call
|
|
395
|
+
*/
|
|
396
|
+
getOrCreateTelephonyConversation(call: CallRB): ConversationRB;
|
|
397
|
+
/**
|
|
398
|
+
* This method return the pre-existing conversation if any or create a new one
|
|
399
|
+
* @param conversationId - the conversation identifier
|
|
400
|
+
* @param conversationDbId - the conversation dbId
|
|
401
|
+
* @param conversationData - the conversation data received from server
|
|
402
|
+
*/
|
|
403
|
+
getOrCreateOneToOneConversationInternal(conversationId: string, conversationDbId?: string, conversationData?: ConversationServerData): Promise<ConversationRB>;
|
|
404
|
+
/**
|
|
405
|
+
* This method return the new bot conversation
|
|
406
|
+
* @param conversationId - the conversation identifier
|
|
407
|
+
* @param conversationDbId - the conversation dbId
|
|
408
|
+
* @param conversationData - the conversation data received from server
|
|
409
|
+
*/
|
|
410
|
+
getOrCreateBotConversationInternal(conversationId?: string, conversationDbId?: string, conversationData?: ConversationServerData): Promise<ConversationRB>;
|
|
411
|
+
/**
|
|
412
|
+
* This method return the pre existing room converstion if any or create a new one
|
|
413
|
+
* @param bubbleId - the bubble identifier, the id or the jid
|
|
414
|
+
* @param conversationDbId - the conversation dbId
|
|
415
|
+
* @param conversationData - the conversation data received from server
|
|
416
|
+
* @param standard - if we should get all users inside the room, or only the strict minimum. Default value is TRUE
|
|
417
|
+
*/
|
|
418
|
+
getRoomConversationInternal(bubbleId: string, createOnServer?: boolean, conversationDbId?: string, conversationData?: ConversationServerData, standard?: boolean): Promise<ConversationRB | undefined>;
|
|
419
|
+
/**
|
|
420
|
+
* This method remove locally and server side a conversation; Should be used on conversations already created on server and not local ones;
|
|
421
|
+
* @param conversation - the conversation to remove
|
|
422
|
+
*/
|
|
423
|
+
removeConversation(conversation: Conversation): Promise<void>;
|
|
424
|
+
/**
|
|
425
|
+
* This method remove locally a conversation but not from the server
|
|
426
|
+
* @param conversation - the conversation to remove
|
|
427
|
+
*/
|
|
428
|
+
removeLocalConversation(conversation: ConversationRB): void;
|
|
429
|
+
sendMessage(conversation: ConversationRB, messageText?: string, messageData?: SendMessageData): Message | undefined;
|
|
430
|
+
sendFileMessage(conversation: ConversationRB, messageData: SendFileMessageData): Promise<Message>;
|
|
431
|
+
forwardMessage(conversation: ConversationRB, destConv: ConversationRB, forwardedMessage: Message, anonymous?: boolean): Promise<Message | undefined>;
|
|
432
|
+
addReactionToMessage(conversation: ConversationRB, message: Message, emojiReaction?: string): Promise<Message>;
|
|
433
|
+
removeReactionFromMessage(conversation: ConversationRB, message: Message, emojiReaction?: string): Promise<Message>;
|
|
434
|
+
/**
|
|
435
|
+
* Send the reaction stanza carrying the user's full emoji list for that message, and apply it locally.
|
|
436
|
+
*
|
|
437
|
+
* The local update is optimistic: the server answers only when it refuses the reaction. It matches the
|
|
438
|
+
* message on the pair (msg_id, msg_ts), msg_ts being the microsecond timestamp it assigned when it
|
|
439
|
+
* stored the message -- so `serverTimestampMicros` must be used whenever the server has told us its
|
|
440
|
+
* value. Deriving it from `message.date` only works when the local clock agrees with the server's to
|
|
441
|
+
* the millisecond; a skewed browser clock otherwise makes every reaction fail with a 404 item-not-found.
|
|
442
|
+
*/
|
|
443
|
+
private sendReactionStanza;
|
|
444
|
+
/**
|
|
445
|
+
* Remember what to revert to if the server refuses this reaction.
|
|
446
|
+
*
|
|
447
|
+
* The entry has to expire on its own. The server only answers when it *refuses* a reaction, it does
|
|
448
|
+
* not echo an accepted one back in a P2P conversation, and a stanza sent over a dead connection is
|
|
449
|
+
* dropped silently -- so "no answer" is the normal case and the map would otherwise grow for the
|
|
450
|
+
* whole session. The delay matches the server-ack timeout used for messages.
|
|
451
|
+
*/
|
|
452
|
+
private registerPendingReaction;
|
|
453
|
+
/** Forget a pending reaction and stop its expiry timer. Returns the entry, or null if there was none. */
|
|
454
|
+
private clearPendingReaction;
|
|
455
|
+
/**
|
|
456
|
+
* Undo a reaction the server refused, and forget it. Returns the entry that was rolled back, or null
|
|
457
|
+
* when that message has no reaction of ours awaiting confirmation.
|
|
458
|
+
*/
|
|
459
|
+
rollbackPendingReaction(messageId: MessageID): PendingReaction | null;
|
|
460
|
+
/** Forget a reaction of ours the server has echoed back: it is confirmed, there is nothing to undo. */
|
|
461
|
+
confirmPendingReaction(messageId: MessageID): void;
|
|
462
|
+
modifyMessage(conversation: ConversationRB, message: Message, newMessageText?: string, messageData?: SendMessageData): Message;
|
|
463
|
+
deleteMessage(conversation: ConversationRB, message: Message): void;
|
|
464
|
+
resendFSMessage(conversation: Conversation, message: Message): Promise<void>;
|
|
465
|
+
/**
|
|
466
|
+
* This methods shareFileToViewer
|
|
467
|
+
* @param conversation - the conversation
|
|
468
|
+
* @param fileDescriptor - the file descriptor
|
|
469
|
+
*/
|
|
470
|
+
private shareFileToViewer;
|
|
471
|
+
private sendXmppMessage;
|
|
472
|
+
private addXmppForwardMessage;
|
|
473
|
+
sendAckReadOrReceivedMessage(conversation: ConversationRB, id: string, event: string): void;
|
|
474
|
+
sendAckReceivedMessage(conversation: ConversationRB, message: Message): void;
|
|
475
|
+
sendAckReadMessage(conversation: ConversationRB, message: Message): void;
|
|
476
|
+
sendAckReadMessages(conversation: ConversationRB): boolean;
|
|
477
|
+
sendChatStatus(conversation: ConversationRB, status: ConversationStatus): void;
|
|
478
|
+
sendIsTypingState(conversation: ConversationRB, isTypingState: boolean): void;
|
|
479
|
+
sendRecordingMessage(conversation: ConversationRB, data: string): Message;
|
|
480
|
+
/**
|
|
481
|
+
* Notify the remote party of a recording state change (pause/resume) without adding an admin message
|
|
482
|
+
* in the conversation: only the transient state is carried, the chat history keeps the start/stop entries.
|
|
483
|
+
* @param conversation - the conversation
|
|
484
|
+
* @param data - the recording state ("pause" or "resume")
|
|
485
|
+
*/
|
|
486
|
+
sendRecordingStateMessage(conversation: ConversationRB, data: string): void;
|
|
487
|
+
/**
|
|
488
|
+
* removeAllMessages
|
|
489
|
+
* @param conversation - the conversation
|
|
490
|
+
*/
|
|
491
|
+
removeAllMessages(conversation: ConversationRB): Promise<void>;
|
|
492
|
+
/**
|
|
493
|
+
* This Methods allow to send the text content of a converstion to the connectedUser email address
|
|
494
|
+
* @param conversation - the conversation
|
|
495
|
+
*/
|
|
496
|
+
sendConversationByEmail(conversation: ConversationRB): Promise<void>;
|
|
497
|
+
/**
|
|
498
|
+
* This async method is used to retreive messages around a specified date (for search mechanism)
|
|
499
|
+
* @param conversation - the conversation
|
|
500
|
+
* @param msgDate - the centered date
|
|
501
|
+
*/
|
|
502
|
+
retrieveMsgByDate(conversation: ConversationRB, msgDate: any, messageId: MessageID): Promise<void>;
|
|
503
|
+
/**
|
|
504
|
+
* clear Search result
|
|
505
|
+
*/
|
|
506
|
+
clearSearchTextResults(): void;
|
|
507
|
+
globalSearch(searchedText?: string, limit?: number): Promise<SearchTextConvResults>;
|
|
508
|
+
/**
|
|
509
|
+
* Method used to search for text in a given conversation P2P or room. The searched text length should be 3+ characters.
|
|
510
|
+
* This API will return a SearchTextResult that contains the list of IDs of messages to be searched after that
|
|
511
|
+
* @param conversation - the conversation
|
|
512
|
+
* @param searchedText - the text to be searched in the given P2P or room conversation
|
|
513
|
+
* @param limit - number of results to get; Default value is 20;
|
|
514
|
+
*/
|
|
515
|
+
searchForTextInConversation(conversation: Conversation, searchedText?: string, limit?: number): Promise<SearchTextResult>;
|
|
516
|
+
/**
|
|
517
|
+
* Method used to load the messages around a given timestamp. Can be used when we search for a message via API searchForTextInConversation
|
|
518
|
+
* and then we want to load the message (or also the messages around it); This API will load the messages in the conversation list of messages and resolve once it's done;
|
|
519
|
+
* @param conversation - the conversation where we want to load messages
|
|
520
|
+
* @param timestamp - the timestamp of the message to be loaded
|
|
521
|
+
* @param nbMessages - the number of messages to load before and after this one
|
|
522
|
+
*/
|
|
523
|
+
loadHistoryMessagesAroundGivenMessage(conversation: ConversationRB, timestamp: number, nbMessages?: number): Promise<void>;
|
|
524
|
+
getConversation(convRef: string | User | Bubble | undefined, type?: "contact" | "room"): Promise<Conversation | undefined>;
|
|
525
|
+
getConversations(): Conversation[];
|
|
526
|
+
getCallConversations(): Conversation[];
|
|
527
|
+
getConversationFromCache(id: string): ConversationRB | undefined;
|
|
528
|
+
updateMissedCounters(): void;
|
|
529
|
+
existAnotherCallForContact(call: CallRB): boolean;
|
|
530
|
+
isTempTelephonyConversation(call: CallRB): boolean;
|
|
531
|
+
onCallEvent(call: CallRB, fromWebRtcGW?: boolean): Promise<void>;
|
|
532
|
+
allowDesktopSharing(): boolean;
|
|
533
|
+
private areWebrtcCallsWithSameContact;
|
|
534
|
+
updateCallInConversation(call: CallRB): Promise<void>;
|
|
535
|
+
updateAllCallsCapabilities(): void;
|
|
536
|
+
updateCallCapabilities(call: CallRB): Promise<void>;
|
|
537
|
+
private calculateListOfDestinations;
|
|
538
|
+
private updateWebrtcCallCapabilities;
|
|
539
|
+
private updatePhoneCallCapabilities;
|
|
540
|
+
updateConversationCall(conversation: ConversationRB, call: CallRB): void;
|
|
541
|
+
resetAudioCall(conversation: ConversationRB): void;
|
|
542
|
+
computeCapabilitiesForContact(user: User, skipUpdateConversation?: boolean): void;
|
|
543
|
+
computeCapabilitiesForMyContact(): void;
|
|
544
|
+
shallowEqual(object1: any, object2: any): boolean;
|
|
545
|
+
onReloadCapabilitiesForMyContactEvent(): void;
|
|
546
|
+
onContactChangedEvent(contact: Contact): void;
|
|
547
|
+
onTelephonyStateChangeEvent(): void;
|
|
548
|
+
onRoomHistoryChangedEvent(room: BubbleRB): void;
|
|
549
|
+
onRoomAdminMessageEvent(roomJid: string, userJid: string, type: string, msgId: MessageID, extraParameters: any): void;
|
|
550
|
+
onMyContactChangedEvent(): void;
|
|
551
|
+
reinit(): Promise<any>;
|
|
552
|
+
reinitInternal(delay?: number): Promise<void>;
|
|
553
|
+
private linkAllActiveCallsToConversations;
|
|
554
|
+
cleanUnwantedConversations(): void;
|
|
555
|
+
/**
|
|
556
|
+
* AddChatMessage
|
|
557
|
+
* @param conversation - the conversation
|
|
558
|
+
* @param from - the from contact
|
|
559
|
+
* @param date - ???
|
|
560
|
+
* @param data - the message content
|
|
561
|
+
* @param messageID - the message identifier
|
|
562
|
+
* @param isSender - ???
|
|
563
|
+
* @param subject - ???
|
|
564
|
+
* @param answeredMsgId - ???
|
|
565
|
+
* @param answeredMsgDate - ???
|
|
566
|
+
* @param additionalContents - ???
|
|
567
|
+
* @param mentions - ???
|
|
568
|
+
* @param urgency - ???
|
|
569
|
+
* @param isForwarded - ???
|
|
570
|
+
*/
|
|
571
|
+
addChatMessage(conversation: ConversationRB, from: Contact, date: Date, data: string, messageID: MessageID, isSender: boolean, subject: any, answeredMsgId: any, answeredMsgDate: any, additionalContents: MessageAdditionalContent[], mentions: (Mention | MentionLegacy)[], urgency?: any, isForwarded?: any): Message;
|
|
572
|
+
/**
|
|
573
|
+
* addAdminBubbleMessage
|
|
574
|
+
* @param conversation - the conversation
|
|
575
|
+
* @param from - the message from contact
|
|
576
|
+
* @param date - the date of the message
|
|
577
|
+
* @param type - the type of message
|
|
578
|
+
* @param messageId - the message identifier
|
|
579
|
+
* @param translatedMessage -the translatedMessage
|
|
580
|
+
*/
|
|
581
|
+
addAdminBubbleMessage(conversation: ConversationRB, from: Contact, date: any, type: string, messageId: MessageID, translatedMessage?: any): Message;
|
|
582
|
+
private addFSMessage;
|
|
583
|
+
private addForwardChatMessage;
|
|
584
|
+
addRecordingMessage(conversation: ConversationRB, from: Contact, date: Date, data: any, messageId: MessageID): Message;
|
|
585
|
+
addFileMessage(conversation: ConversationRB, from: Contact, date: any, data: any, messageID: any, urgency?: Urgency): Message;
|
|
586
|
+
addFileSharingMessage(conversation: ConversationRB, from: any, date: any, data: any, messageID: any, fileId: any, fileName: any, geoloc: any, urgency: Urgency, isForwarded: boolean): Message;
|
|
587
|
+
addWebRTCMessage(conversation: ConversationRB, from: Contact, date: any, data: any, messageID: any): Message;
|
|
588
|
+
addPinMessage(conversation: ConversationRB, from: Contact, date: any, data: any, messageID: any): Message;
|
|
589
|
+
addShareRecapMessage(conversation: ConversationRB, from: Contact, date: any, data: any, messageID: any, additionalContents?: MessageAdditionalContent[]): Message;
|
|
590
|
+
addPollMessage(conversation: ConversationRB, from: Contact, date: any, data: any, messageID: any, additionalContents?: MessageAdditionalContent[]): Message;
|
|
591
|
+
private addMessage;
|
|
592
|
+
setStatusMessage(conversation: ConversationRB, from: Contact, status: ConversationStatus): void;
|
|
593
|
+
onCallStatusChange(call: CallRB): void;
|
|
594
|
+
/**
|
|
595
|
+
* Process stanza object to extract mentions
|
|
596
|
+
* @param body - message body to process
|
|
597
|
+
* @param mentionElem - mention XMPP XML element containing the mentions
|
|
598
|
+
* @returns
|
|
599
|
+
*/
|
|
600
|
+
processStanzaMentions(body: string, mentionElem: XMLElements): {
|
|
601
|
+
body: string;
|
|
602
|
+
mentions: Mention[];
|
|
603
|
+
};
|
|
604
|
+
processStanzaReaction(reactionsElem: XMLElements): Map<string, Reaction>;
|
|
605
|
+
processStanzaReactionsCount(reactionsCountElem: XMLElements): Map<string, number>;
|
|
606
|
+
/**
|
|
607
|
+
* Transform mention strings back to normal string text
|
|
608
|
+
* @param message - the message object
|
|
609
|
+
* @param body - the message string
|
|
610
|
+
*/
|
|
611
|
+
transformMessageToText(body: string): string;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @internal
|
|
615
|
+
* This interface describes the data received from server when creating / getting conversation
|
|
616
|
+
*/
|
|
617
|
+
export interface ConversationServerData {
|
|
618
|
+
/**
|
|
619
|
+
* The JID IM of the distant party
|
|
620
|
+
*/
|
|
621
|
+
jid_im?: string;
|
|
622
|
+
/**
|
|
623
|
+
* The DB ID of the conversation itself
|
|
624
|
+
*/
|
|
625
|
+
id?: string;
|
|
626
|
+
/**
|
|
627
|
+
*The type of the conversation (user, room, bot)
|
|
628
|
+
*/
|
|
629
|
+
type?: string;
|
|
630
|
+
/**
|
|
631
|
+
* The last message date in string
|
|
632
|
+
*/
|
|
633
|
+
lastMessageDate?: string;
|
|
634
|
+
/**
|
|
635
|
+
* The last msg text in the conversation
|
|
636
|
+
*/
|
|
637
|
+
lastMessageText?: string;
|
|
638
|
+
/**
|
|
639
|
+
* if the conversation is muted
|
|
640
|
+
*/
|
|
641
|
+
mute?: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* The number of not ACK READ read IMs
|
|
644
|
+
*/
|
|
645
|
+
unreadMessageNumber?: string;
|
|
646
|
+
/**
|
|
647
|
+
* The creation date of the conversation in string
|
|
648
|
+
*/
|
|
649
|
+
creationDate?: string;
|
|
650
|
+
/**
|
|
651
|
+
* The JID IM of the user that send the last message
|
|
652
|
+
*/
|
|
653
|
+
lastMessageSender?: string;
|
|
654
|
+
/**
|
|
655
|
+
* In case of call event in the conversation (P2P only)
|
|
656
|
+
*/
|
|
657
|
+
call?: null | object;
|
|
658
|
+
/**
|
|
659
|
+
* If the last message was modified
|
|
660
|
+
*/
|
|
661
|
+
modified?: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* The JID IM of the user that forwarded the messages
|
|
664
|
+
*/
|
|
665
|
+
forwardFrom?: string;
|
|
666
|
+
/**
|
|
667
|
+
* The forwarded message
|
|
668
|
+
*/
|
|
669
|
+
forwardedMessage?: string;
|
|
670
|
+
/**
|
|
671
|
+
* If the user in the conversation has the right to use IM (p2p only)
|
|
672
|
+
*/
|
|
673
|
+
instantMessagesCustomisation?: string;
|
|
674
|
+
/**
|
|
675
|
+
* If the user in the conversation has the right to ACK messages (p2p only)
|
|
676
|
+
*/
|
|
677
|
+
readReceiptsCustomisation?: string;
|
|
678
|
+
/**
|
|
679
|
+
* If the user in the conversation has the right to use screen sharing
|
|
680
|
+
*/
|
|
681
|
+
useScreenSharingCustomisation?: string;
|
|
682
|
+
/**
|
|
683
|
+
* If the user in the conversation has the right to use audio
|
|
684
|
+
*/
|
|
685
|
+
useWebRTCAudioCustomisation?: string;
|
|
686
|
+
/**
|
|
687
|
+
* If the user in the conversation has the right to use video sharing
|
|
688
|
+
*/
|
|
689
|
+
useWebRTCVideoCustomisation?: string;
|
|
690
|
+
/**
|
|
691
|
+
* The filename
|
|
692
|
+
*/
|
|
693
|
+
filename?: string;
|
|
694
|
+
/**
|
|
695
|
+
* If the last messages is geoloc
|
|
696
|
+
*/
|
|
697
|
+
geoloc?: boolean;
|
|
698
|
+
/**
|
|
699
|
+
* The last message content type (for markdown things)
|
|
700
|
+
*/
|
|
701
|
+
contentType?: string;
|
|
702
|
+
/**
|
|
703
|
+
* Bookmark infos for the conversatiokn
|
|
704
|
+
*/
|
|
705
|
+
bookmark?: ConversationBookmark;
|
|
706
|
+
/**
|
|
707
|
+
* The topic (description) of the bubble
|
|
708
|
+
*/
|
|
709
|
+
topic?: string;
|
|
710
|
+
/**
|
|
711
|
+
* The type of the last event (in case of conference started)
|
|
712
|
+
*/
|
|
713
|
+
eventName?: string;
|
|
714
|
+
/**
|
|
715
|
+
* The JID IM of the user related to the event
|
|
716
|
+
*/
|
|
717
|
+
eventJid?: string;
|
|
718
|
+
/**
|
|
719
|
+
* If we can make a call shift for this conversation
|
|
720
|
+
*/
|
|
721
|
+
callShift?: boolean;
|
|
722
|
+
}
|
|
723
|
+
//# sourceMappingURL=conversation.service.d.ts.map
|