@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,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module UserNetwork
|
|
3
|
+
*/
|
|
4
|
+
import type { Subscription } from "rxjs";
|
|
5
|
+
import type { ContactService } from "../../services/core/contact.service";
|
|
6
|
+
import { NetworkInvitation } from "../../models/invitation.model";
|
|
7
|
+
import { RBEvent } from "../../models/event.model";
|
|
8
|
+
import type { Contact } from "../../models/contact.model";
|
|
9
|
+
import { Service } from "../../services/service";
|
|
10
|
+
import type { User } from "../../models";
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const USER_NETWORK_SVC = "UserNetworkService";
|
|
13
|
+
/** @eventProperty */
|
|
14
|
+
export declare enum UserNetworkServiceEvents {
|
|
15
|
+
/**
|
|
16
|
+
* @eventProperty
|
|
17
|
+
* This RBEvent is send when a new network invitation is received from another Rainbow user
|
|
18
|
+
* with data {invitation:Invitation, user:User}
|
|
19
|
+
*/
|
|
20
|
+
RAINBOW_ON_INVITATION_RECEIVED = "RAINBOW_ON_INVITATION_RECEIVED",
|
|
21
|
+
/**
|
|
22
|
+
* @eventProperty
|
|
23
|
+
* This RBEvent is send when the invitation (from / to) contact is accepted
|
|
24
|
+
* with data {invitation:Invitation, user:User}
|
|
25
|
+
*/
|
|
26
|
+
RAINBOW_ON_INVITATION_ACCEPTED = "RAINBOW_ON_INVITATION_ACCEPTED",
|
|
27
|
+
/**
|
|
28
|
+
* @eventProperty
|
|
29
|
+
* This RBEvent is send when the invitation list (received/send) is updated
|
|
30
|
+
*/
|
|
31
|
+
RAINBOW_ON_INVITATIONS_LIST_UPDATED = "RAINBOW_ON_INVITATIONS_LIST_UPDATED"
|
|
32
|
+
}
|
|
33
|
+
export interface UserNetworkService {
|
|
34
|
+
/**
|
|
35
|
+
* Subscribe to the invitations updates; All events send to the callback are of type RB Event
|
|
36
|
+
* Events that will be received in the subscribe :
|
|
37
|
+
* - 'RAINBOW_ON_INVITATION_RECEIVED' with data {invitation:Invitation, contact:Contact}: A new invitation from 'contact' is received
|
|
38
|
+
* - 'RAINBOW_ON_INVITATION_ACCEPTED' with data {invitation:Invitation, contact:Contact}: The invitation (from / to) contact is accepted
|
|
39
|
+
* - 'RAINBOW_ON_INVITATIONS_LIST_UPDATED' with no data: The invitation list (received/send) is updated
|
|
40
|
+
* @param handler - The callback function that will be called when events are received
|
|
41
|
+
* @param eventNames - EventName, or list of EventName to subscribe to
|
|
42
|
+
*/
|
|
43
|
+
subscribe: (handler: (event: RBEvent<UserNetworkServiceEvents>) => any, eventNames?: UserNetworkServiceEvents | UserNetworkServiceEvents[]) => Subscription;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a list of users that are in the network of the connected user
|
|
46
|
+
* @param includePersonnalDirectoryUsers - f true, the API will return all users in the user's network including all his personnal directory contacts
|
|
47
|
+
* @returns an array of users found or an empty array if no user has been found
|
|
48
|
+
*/
|
|
49
|
+
getUsers: (includePersonnalDirectoryUsers?: boolean) => User[];
|
|
50
|
+
/**
|
|
51
|
+
* Remove given user from our network. This means that the user will no longer receive any presence updates for this user etc.
|
|
52
|
+
* @param user - the contact to be removed from our network
|
|
53
|
+
*/
|
|
54
|
+
removeUser: (user: User) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the list of received invitations for this user
|
|
57
|
+
*/
|
|
58
|
+
getReceivedInvitations: () => NetworkInvitation[];
|
|
59
|
+
/**
|
|
60
|
+
* Returns the list of send invitations
|
|
61
|
+
*/
|
|
62
|
+
getSentInvitations: () => NetworkInvitation[];
|
|
63
|
+
/**
|
|
64
|
+
* API used to invite a Rainbow user to join our network. In the case of same company, the invitation will be auto-accepted by the distant;
|
|
65
|
+
* In case of different companies, this will send an invitation and email to the distant user;
|
|
66
|
+
* This API will send an 'update' event on the contact object
|
|
67
|
+
* @param user - The rainbow user to invite
|
|
68
|
+
* @param customMessage - A custom message that will be send to the distant user via email
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
sendInvitation: (user: User, customMessage?: string) => Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* API used to send invitation to join rainbow to an email.
|
|
74
|
+
* @param email - The email to send the invitation
|
|
75
|
+
* @param customMessage - A custom message that will be send to the distant user via email
|
|
76
|
+
*/
|
|
77
|
+
sendInvitationByEmail: (email: string, customMessage?: string) => Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* API used to send invitations to list of emails; Limit is 100 emails
|
|
80
|
+
* @param emails - The list of emails to send the invitations; Limit is 100 emails
|
|
81
|
+
*/
|
|
82
|
+
sendBulkInvitations: (emails: string[]) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* API used to resend an invitations
|
|
85
|
+
* @param invitation - The invitation to resend
|
|
86
|
+
*/
|
|
87
|
+
reSendInvitation: (invitation: NetworkInvitation) => Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* API used to cancel a send invitation (which is not accepted yet)
|
|
90
|
+
* @param invitation - The invitation that we want to cancel
|
|
91
|
+
*/
|
|
92
|
+
cancelInvitation: (invitation: NetworkInvitation) => Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* API used to accept a received invitation (which is not accepted or rejected yet)
|
|
95
|
+
* @param invitation - The received invitation that we want to accept
|
|
96
|
+
*/
|
|
97
|
+
acceptInvitation: (invitation: NetworkInvitation) => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* API used to decline a received invitation (which is not accepted or rejected yet)
|
|
100
|
+
* @param invitation - The received invitation that we want to decline
|
|
101
|
+
*/
|
|
102
|
+
declineInvitation: (invitation: NetworkInvitation) => Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
/** @internal */
|
|
105
|
+
export declare class UserNetworkServiceRB extends Service implements UserNetworkService {
|
|
106
|
+
static getInstance(): UserNetworkServiceRB;
|
|
107
|
+
static build(): UserNetworkServiceRB;
|
|
108
|
+
private logger;
|
|
109
|
+
private authService;
|
|
110
|
+
private xmppService;
|
|
111
|
+
private contactService;
|
|
112
|
+
private settingsService;
|
|
113
|
+
private errorHelperService;
|
|
114
|
+
private subscription;
|
|
115
|
+
private xmppHandler;
|
|
116
|
+
private rxSubject;
|
|
117
|
+
private portalURL;
|
|
118
|
+
private receivedInvitations;
|
|
119
|
+
private sentInvitations;
|
|
120
|
+
private acceptedInvitationsArray;
|
|
121
|
+
private sentInvitationsArray;
|
|
122
|
+
private receivedInvitationsArray;
|
|
123
|
+
private invitationsToUpdate;
|
|
124
|
+
private constructor();
|
|
125
|
+
/** **********************************************************/
|
|
126
|
+
/** LIFECYCLE STUFF */
|
|
127
|
+
/** **********************************************************/
|
|
128
|
+
start(contactService: ContactService): void;
|
|
129
|
+
stop(): void;
|
|
130
|
+
reconnect(): Promise<void>;
|
|
131
|
+
private updateInvitationsFromServer;
|
|
132
|
+
subscribe(handler: (event: RBEvent<UserNetworkServiceEvents>) => any, eventNames?: UserNetworkServiceEvents | UserNetworkServiceEvents[]): Subscription;
|
|
133
|
+
sendEvent(name: UserNetworkServiceEvents, data?: any): void;
|
|
134
|
+
attachHandlers(): void;
|
|
135
|
+
private onInvitationsUpdate;
|
|
136
|
+
private handleReceivedInvitation;
|
|
137
|
+
private handleSentInvitation;
|
|
138
|
+
private updateReceivedInvitationsArray;
|
|
139
|
+
private updateSentInvitationsArray;
|
|
140
|
+
private getServerInvitation;
|
|
141
|
+
private updateContactInvitationStatus;
|
|
142
|
+
private sortInvitationArray;
|
|
143
|
+
private getAllReceivedInvitations;
|
|
144
|
+
private getAllSentInvitations;
|
|
145
|
+
/**
|
|
146
|
+
* Returns a list of users that are in the network of the connected user
|
|
147
|
+
* @param includePersonalDirectoryUsers - If true, the API will return all users in the user's network including all his personnal directory contacts
|
|
148
|
+
* @returns an array of users found or an empty array if no user has been found
|
|
149
|
+
*/
|
|
150
|
+
getUsers(includePersonalDirectoryUsers?: boolean): User[];
|
|
151
|
+
/**
|
|
152
|
+
* Remove given user from our network. This means that the user will no longer receive any presence updates for this user etc.
|
|
153
|
+
* @param user - the contact to be removed from our network
|
|
154
|
+
* @returns Resolve if success
|
|
155
|
+
*/
|
|
156
|
+
removeUser(user: User): Promise<void>;
|
|
157
|
+
getReceivedInvitations(): NetworkInvitation[];
|
|
158
|
+
getSentInvitations(): NetworkInvitation[];
|
|
159
|
+
sendInvitation(contact: Contact, customMessage?: string): Promise<void>;
|
|
160
|
+
sendInvitationByEmail(email: string, customMessage?: string): Promise<void>;
|
|
161
|
+
cancelInvitation(invitation: NetworkInvitation): Promise<void>;
|
|
162
|
+
sendBulkInvitations(emails: any[]): Promise<void>;
|
|
163
|
+
acceptInvitation(invitation: NetworkInvitation): Promise<void>;
|
|
164
|
+
declineInvitation(invitation: NetworkInvitation): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* API used to resend an invitations
|
|
167
|
+
* @param invitation - The invitation to resend
|
|
168
|
+
*/
|
|
169
|
+
reSendInvitation(invitation: NetworkInvitation): Promise<void>;
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=userNetwork.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userNetwork.service.d.ts","sourceRoot":"","sources":["../../../src/services/core/userNetwork.service.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAMzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAIzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,qBAAqB;AACrB,oBAAY,wBAAwB;IAEhC;;;;OAIG;IACH,8BAA8B,mCAAmC;IAEjE;;;;OAIG;IACH,8BAA8B,mCAAmC;IAEjE;;;OAGG;IACH,mCAAmC,wCAAwC;CAC9E;AAED,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;MAQE;IACF,SAAS,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,GAAG,EAAE,UAAU,CAAC,EAAE,wBAAwB,GAAG,wBAAwB,EAAE,KAAK,YAAY,CAAC;IAE5J;;;;OAIG;IACH,QAAQ,E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E,aAAa,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC3E,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,GAAE,MAAW;IA4B/D,gBAAgB,CAAC,UAAU,EAAE,iBAAiB;IAoB9C,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE;IAuBjC,gBAAgB,CAAC,UAAU,EAAE,iBAAiB;IA6B9C,iBAAiB,CAAC,UAAU,EAAE,iBAAiB;IAmB5D;;;OAGG;IACU,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAc9E"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Subscription } from "rxjs";
|
|
2
|
+
import { Service } from "../../services/service";
|
|
3
|
+
import type { Builder } from "strophe.js";
|
|
4
|
+
import type { MaybeArray } from "date-fns";
|
|
5
|
+
import type { StropheConnection, StropheHandler, StropheHandlerFn } from "../../libs/strophe/types";
|
|
6
|
+
export declare const XMPP_SVC = "XmppService";
|
|
7
|
+
export declare class XmppService extends Service {
|
|
8
|
+
private static REQUEST_TIMEOUT;
|
|
9
|
+
private logger;
|
|
10
|
+
private authService;
|
|
11
|
+
private settingsService;
|
|
12
|
+
private mainService;
|
|
13
|
+
private eventService;
|
|
14
|
+
private rxConnectionSubject;
|
|
15
|
+
private rxContactSubject;
|
|
16
|
+
private showBodyMessage;
|
|
17
|
+
private presenceWaitingList;
|
|
18
|
+
private xmppServerURL;
|
|
19
|
+
private stropheStatus;
|
|
20
|
+
private presenceStatus;
|
|
21
|
+
private pingTimeout;
|
|
22
|
+
private connecting;
|
|
23
|
+
private disconnectInfo;
|
|
24
|
+
private connectionWatcherTimout;
|
|
25
|
+
private isInitialPresenceSent;
|
|
26
|
+
private retrieveMessageHandler;
|
|
27
|
+
private bulkHistoryHandler;
|
|
28
|
+
private reconnectInProgress;
|
|
29
|
+
private reconnectionDelay;
|
|
30
|
+
private reconnectTimeout;
|
|
31
|
+
private connectivityEventSubscription;
|
|
32
|
+
private lastPingDate;
|
|
33
|
+
started: boolean;
|
|
34
|
+
connection: StropheConnection;
|
|
35
|
+
jid: string;
|
|
36
|
+
fullJid: string;
|
|
37
|
+
changePasswordInfo: any;
|
|
38
|
+
contactServiceReady: boolean;
|
|
39
|
+
connected: boolean;
|
|
40
|
+
reconnectionMode: boolean;
|
|
41
|
+
static getInstance(): XmppService;
|
|
42
|
+
static build(): XmppService;
|
|
43
|
+
protected constructor();
|
|
44
|
+
private onHandleConnectivity;
|
|
45
|
+
start(): Promise<void>;
|
|
46
|
+
stop(): Promise<void>;
|
|
47
|
+
resetAllObjects(): void;
|
|
48
|
+
connect(): Promise<void>;
|
|
49
|
+
private saveLastPingDate;
|
|
50
|
+
waitForGuestXmppReconnection(): Promise<void>;
|
|
51
|
+
disconnect(reason: string): Promise<any>;
|
|
52
|
+
private stropheConnect;
|
|
53
|
+
private connectionWatcher;
|
|
54
|
+
private maskSentence;
|
|
55
|
+
private maskSensitiveValues;
|
|
56
|
+
private maskTagContent;
|
|
57
|
+
private maskChannelEntryMessage;
|
|
58
|
+
private maskSpecificTags;
|
|
59
|
+
private maskIpAddresses;
|
|
60
|
+
private maskAllSensitiveData;
|
|
61
|
+
private handleRawXmppMessage;
|
|
62
|
+
private messageBodyDiscretion;
|
|
63
|
+
private messageTagDiscretion;
|
|
64
|
+
private onDisconnectEvent;
|
|
65
|
+
private interruptAutoReconnect;
|
|
66
|
+
autoReconnect(): Promise<void>;
|
|
67
|
+
subscribeToContactEvents(observer: (value: any) => void): Subscription;
|
|
68
|
+
subscribeToConnectionEvents(observer: (value: any) => void): Subscription;
|
|
69
|
+
publishContactEvent(name: string, params: any): void;
|
|
70
|
+
publishConnectionEvent(name: string, data?: any): void;
|
|
71
|
+
private onRosterChangedMessageReceived;
|
|
72
|
+
sendPresence(show: string, message?: string, auth?: boolean, userOptions?: {
|
|
73
|
+
im: boolean;
|
|
74
|
+
alert: boolean;
|
|
75
|
+
companyid: string;
|
|
76
|
+
ringingOnDnd: boolean;
|
|
77
|
+
rejectOnBusy: boolean;
|
|
78
|
+
}): void;
|
|
79
|
+
resetPresence(status: {
|
|
80
|
+
show: string;
|
|
81
|
+
status: string;
|
|
82
|
+
}): void;
|
|
83
|
+
private onPresenceMessageReceived;
|
|
84
|
+
getPresenceWaitingList(): any[];
|
|
85
|
+
resetPresenceWaitingList(): void;
|
|
86
|
+
addRetrieveMessageHandler(handler: StropheHandlerFn): void;
|
|
87
|
+
addBulkHistoryHandler(handler: StropheHandlerFn): void;
|
|
88
|
+
onMamBulkMessageReceived(stanza: Element): boolean;
|
|
89
|
+
private onMamMessageReceived;
|
|
90
|
+
getBareJidFromJid(jid: string): string;
|
|
91
|
+
getResourceFromJid(jid: string): string;
|
|
92
|
+
isMobileResource(jid: string): boolean;
|
|
93
|
+
addHandler(handler: StropheHandlerFn, ns: string, name?: string, type?: string | string[]): StropheHandler;
|
|
94
|
+
deleteHandler(handRef: StropheHandler): void;
|
|
95
|
+
isConnectedJid(jid: string): boolean;
|
|
96
|
+
send(stanza: MaybeArray<Builder> | MaybeArray<Element>): Promise<void>;
|
|
97
|
+
sendIQ(iq: Builder | Element, timeout?: number): Promise<any>;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=xmpp.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xmpp.service.d.ts","sourceRoot":"","sources":["../../../src/services/core/xmpp.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AASzC,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGpG,eAAO,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,CAAC;KAAE;IAK9D,OAAO,CAAC,yBAAyB;IA2F1B,sBAAsB;IACtB,wBAAwB;IAKxB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB;IACnD,qBAAqB,CAAC,OAAO,EAAE,gBAAgB;IAE/C,wBAAwB,CAAC,MAAM,EAAE,OAAO;IAK/C,OAAO,CAAC,oBAAoB;IAmBrB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IACtC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IACvC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IACtC,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,MAAa,EAAE,IAAI,GAAE,MAAM,GAAG,MAAM,EAAS,GAAG,cAAc;IACtH,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAC5C,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAEpC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAatE,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,EAAE,OAAO,GAAE,MAAa,GAAG,OAAO,CAAC,GAAG,CAAC;CAmB7E"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module DataChannels
|
|
3
|
+
*/
|
|
4
|
+
import type { EventableService } from "../../services/service";
|
|
5
|
+
import type { Subscription } from "rxjs";
|
|
6
|
+
import type { RBEvent } from "../../models/event.model";
|
|
7
|
+
import type { DataChannel } from "../../models/dataChannel.model";
|
|
8
|
+
import type { Bubble, User } from "../../models";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const DATA_CHANNEL_SVC = "DataChannelService";
|
|
11
|
+
/**
|
|
12
|
+
* @eventProperty
|
|
13
|
+
*/
|
|
14
|
+
export interface IDataChannelServiceEvents {
|
|
15
|
+
/**
|
|
16
|
+
* This RB even is send when a datachannel is available in a conversation
|
|
17
|
+
*/
|
|
18
|
+
ON_DATACHANNEL_AVAILABLE: DataChannel;
|
|
19
|
+
/**
|
|
20
|
+
* This RB event is send when datachannel is deleted in a conversation
|
|
21
|
+
*/
|
|
22
|
+
ON_DATACHANNEL_CLOSED: DataChannel;
|
|
23
|
+
}
|
|
24
|
+
export interface DataChannelService extends EventableService<IDataChannelServiceEvents> {
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to updates from the service
|
|
27
|
+
* @param handler - The callback function that will be subscribed to the RxJS subject
|
|
28
|
+
* @param eventNames - array of event to listen
|
|
29
|
+
* @returns Returns RxJS Subscription
|
|
30
|
+
*/
|
|
31
|
+
subscribe: (handler: (event: RBEvent<DataChannelServiceEvents>) => any, eventNames?: string | string[]) => Subscription;
|
|
32
|
+
/**
|
|
33
|
+
* @param peer - a contact or a bubble
|
|
34
|
+
* @param id - the dataChannel identifier
|
|
35
|
+
* @param description - dataChannel description
|
|
36
|
+
* @returns a promise which is resolved when the dataChannel is created
|
|
37
|
+
*/
|
|
38
|
+
createDataChannel: (peer: User | Bubble, id: string, description?: string) => Promise<DataChannel>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @eventProperty
|
|
42
|
+
* `DataChannelService` specific events
|
|
43
|
+
*/
|
|
44
|
+
export declare enum DataChannelServiceEvents {
|
|
45
|
+
/**
|
|
46
|
+
* @eventProperty ON_DATACHANNEL_AVAILABLE
|
|
47
|
+
* This RB event is send when a datachannel is available in a conversation
|
|
48
|
+
*/
|
|
49
|
+
ON_DATACHANNEL_AVAILABLE = "ON_DATACHANNEL_AVAILABLE",
|
|
50
|
+
/**
|
|
51
|
+
* @eventProperty ON_DATACHANNEL_CLOSED
|
|
52
|
+
* This RB event is send when a datachannel is deleted in a conversation
|
|
53
|
+
*/
|
|
54
|
+
ON_DATACHANNEL_CLOSED = "ON_DATACHANNEL_CLOSED"
|
|
55
|
+
}
|
|
56
|
+
declare const DataChannelService_RB_base: object & (abstract new (...args: any[]) => import("../../services/service").EventsMixinTemplate<IDataChannelServiceEvents>);
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare class DataChannelService_RB extends DataChannelService_RB_base implements DataChannelService {
|
|
59
|
+
private mainService;
|
|
60
|
+
private xmppService;
|
|
61
|
+
private loggerService;
|
|
62
|
+
private authService;
|
|
63
|
+
private contactService;
|
|
64
|
+
private webConferenceService?;
|
|
65
|
+
private bubbleService?;
|
|
66
|
+
private subscriptions;
|
|
67
|
+
private jingleSubscription?;
|
|
68
|
+
private conferenceEventListener?;
|
|
69
|
+
private dataChannelEventListener?;
|
|
70
|
+
private promiseQueue;
|
|
71
|
+
private readonly dataChannels;
|
|
72
|
+
private readonly pendingReconnectChannels;
|
|
73
|
+
static getInstance(): DataChannelService;
|
|
74
|
+
static build(): DataChannelService;
|
|
75
|
+
private constructor();
|
|
76
|
+
start(): Promise<void>;
|
|
77
|
+
stop(): Promise<void>;
|
|
78
|
+
subscribe(handler: (event: RBEvent<DataChannelServiceEvents>) => any, eventNames?: string | string[]): Subscription;
|
|
79
|
+
createDataChannel(peer: User | Bubble, id: string, description?: string, affiliation?: string): Promise<DataChannel>;
|
|
80
|
+
deleteDataChannel(dataChannel: DataChannel): Promise<void>;
|
|
81
|
+
leaveDataChannel(dataChannel: DataChannel): Promise<void>;
|
|
82
|
+
acceptDataChannel(dataChannel: DataChannel): Promise<DataChannel>;
|
|
83
|
+
refuseDataChannel(dataChannel: DataChannel): Promise<DataChannel>;
|
|
84
|
+
private acceptDataChannelInternal;
|
|
85
|
+
private subscribeToEvents;
|
|
86
|
+
private onP2PDataChannelMessageReceived;
|
|
87
|
+
private onConferenceInfo;
|
|
88
|
+
private jingleEventHandler;
|
|
89
|
+
private onJingleSessionInitiate;
|
|
90
|
+
private onJingleSessionReconnect;
|
|
91
|
+
private onJingleSessionEstablished;
|
|
92
|
+
private onJingleConnectionStateChange;
|
|
93
|
+
private onJingleError;
|
|
94
|
+
private onDataChannelFailed;
|
|
95
|
+
private retryPendingDataChannels;
|
|
96
|
+
private cleanDataChannel;
|
|
97
|
+
private attachStatusListeners;
|
|
98
|
+
private onDataChannelStatusChange;
|
|
99
|
+
private getApplicationSession;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=dataChannel.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataChannel.service.d.ts","sourceRoot":"","sources":["../../../src/services/dataChannel/dataChannel.service.ts"],"names":[],"mappings":"AAEA;;GAEG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,+CAA+C,CAAC;AAYhG,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAOhE,gBAAgB;AAChB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,wBAAwB,EAAE,WAAW,CAAC;IAEtC;;OAEG;IACH,qBAAqB,EAAE,WAAW,CAAC;CACtC;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,CAAC,yBAAyB,CAAC;IACnF;;;;;OAKG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,YAAY,CAAC;IAExH;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAA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AAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAY1D,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAYzD,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAIjE,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;YAIhE,yBAAyB;IAwDvC,OAAO,CAAC,iBAAiB;YAaX,+BAA+B;YA0D/B,gBAAgB;YAgJhB,kBAAkB;IAkBhC,OAAO,CAAC,uBAAuB;IA+B/B,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,6BAA6B;IA+BrC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,qBAAqB;CAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/dataChannel/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tells a device acknowledgement apart from a user gesture.
|
|
3
|
+
*
|
|
4
|
+
* Neither WebHID nor the desktop 3rd-party SDK bridge ever reports device *state*: the only thing
|
|
5
|
+
* this client knows is **what it last told the device, and when**. Every headset in this codebase
|
|
6
|
+
* answers an output report with an input report, and until this filter existed those answers were
|
|
7
|
+
* indistinguishable from a button press — which is the root cause behind CRRAINB-51521, 53408,
|
|
8
|
+
* 53757, 53828, 54338, 54420, 54424, 54488, 54489, 54490, 54986 and 54991. Each of those was
|
|
9
|
+
* previously patched with its own private time window at the call site; this class replaces all of
|
|
10
|
+
* them with the two rules above.
|
|
11
|
+
*
|
|
12
|
+
* Deliberately has no device, Angular or logging dependency so it can be driven identically from
|
|
13
|
+
* the WebHID layer (which sees raw output reports) and from `HeadsetManagementService` (which only
|
|
14
|
+
* sees the four semantic outgoing APIs of the desktop bridge).
|
|
15
|
+
*
|
|
16
|
+
* ### Hook writes vs. other writes
|
|
17
|
+
* A write that moves the hook (`OFF_HOOK`) can be answered with *any* hook value — the Konftel Ego
|
|
18
|
+
* flaps `false`/`true` within milliseconds of an `OFF_HOOK=true` (CRRAINB-51521). A write that does
|
|
19
|
+
* not (`RING`, `MUTE`, `MICROPHONE`) can at most make the device *restate* the hook state it is
|
|
20
|
+
* already in: no capture has a device answering a ring or a mute LED with a hook transition. So
|
|
21
|
+
* after a non-hook write, a hook report that contradicts the state we last commanded is a press.
|
|
22
|
+
* Treating it as an acknowledgement ate the user's answer press 223 ms after a Konftel `RING`
|
|
23
|
+
* (CRRAINB-54986, 2026-09-29 13:44:01.808), and on the desktop bridge — where a whole native
|
|
24
|
+
* `addCall` of 1.5 s counts as one write — the first AT10 answer press of every incoming call
|
|
25
|
+
* (CRRAINB-55023, 11:46:54.832).
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeviceEchoFilter {
|
|
28
|
+
/** Output reports issued but not yet resolved. A device can answer before `sendReport` settles. */
|
|
29
|
+
private writesInFlight;
|
|
30
|
+
/** When the last output report resolved. `0` when nothing has been written yet. */
|
|
31
|
+
private lastWriteAt;
|
|
32
|
+
/** Hook-moving output reports issued but not yet resolved. Subset of {@link writesInFlight}. */
|
|
33
|
+
private hookWritesInFlight;
|
|
34
|
+
/** When the last hook-moving output report resolved. `0` when none has been written yet. */
|
|
35
|
+
private lastHookWriteAt;
|
|
36
|
+
/**
|
|
37
|
+
* The hook state we last asked the device for, kept for as long as it stands — unlike
|
|
38
|
+
* {@link pendingHookAck}, which is consumed. `null` until the first command since a reset: the
|
|
39
|
+
* device's state is then unknown and nothing can be said to contradict it.
|
|
40
|
+
*/
|
|
41
|
+
private lastHookCommand;
|
|
42
|
+
/** The off-hook state we last asked the device for, awaiting its confirmation. */
|
|
43
|
+
private pendingHookAck;
|
|
44
|
+
/**
|
|
45
|
+
* Call before issuing an output report.
|
|
46
|
+
* @param affectsHook - `false` for a report that cannot move the hook (ring, mute LED). See the
|
|
47
|
+
* class doc for what that changes.
|
|
48
|
+
*/
|
|
49
|
+
noteWriteStarted(affectsHook?: boolean): void;
|
|
50
|
+
/**
|
|
51
|
+
* Call once an output report has resolved (or failed — the device still saw it), with the same
|
|
52
|
+
* `affectsHook` as the matching {@link noteWriteStarted}.
|
|
53
|
+
*/
|
|
54
|
+
noteWriteFinished(affectsHook?: boolean): void;
|
|
55
|
+
/**
|
|
56
|
+
* Call when the device is asked to go off-hook (`true`) or on-hook (`false`), arming the
|
|
57
|
+
* one-shot slow-confirmation slot. Any slot still pending is replaced: only the most recent
|
|
58
|
+
* command can still be confirmed.
|
|
59
|
+
*/
|
|
60
|
+
noteHookCommand(value: boolean): void;
|
|
61
|
+
/** Forgets everything — for a device disconnect or a service restart. */
|
|
62
|
+
reset(): void;
|
|
63
|
+
/**
|
|
64
|
+
* `true` while one of our own output reports is still settling. Any input report arriving now is
|
|
65
|
+
* an acknowledgement whatever it carries.
|
|
66
|
+
*/
|
|
67
|
+
isWriteSettling(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* `true` when an inbound hook gesture is an acknowledgement of something we sent rather than a
|
|
70
|
+
* button press. `reported` is the hook state the device announced: `true` = off-hook/answer,
|
|
71
|
+
* `false` = on-hook/release.
|
|
72
|
+
*
|
|
73
|
+
* Consumes the slow-confirmation slot when that is what matched, so the same command can never
|
|
74
|
+
* swallow two reports.
|
|
75
|
+
*/
|
|
76
|
+
isHookAcknowledgement(reported: boolean): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* `true` when an inbound mute gesture is an acknowledgement of one of our own mute reports.
|
|
79
|
+
*
|
|
80
|
+
* Mute has no equivalent of the slow hook confirmation — every mute acknowledgement in the logs
|
|
81
|
+
* lands inside {@link DEVICE_WRITE_SETTLE_MS} (359 of 828 within 50 ms) — so only the settle
|
|
82
|
+
* rule applies.
|
|
83
|
+
*/
|
|
84
|
+
isMuteAcknowledgement(): boolean;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=deviceEchoFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceEchoFilter.d.ts","sourceRoot":"","sources":["../../../src/services/deviceManagement/deviceEchoFilter.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,gBAAgB;IACzB,mGAAmG;IACnG,OAAO,CAAC,cAAc,CAAK;IAE3B,mFAAmF;IACnF,OAAO,CAAC,WAAW,CAAK;IAExB,gGAAgG;IAChG,OAAO,CAAC,kBAAkB,CAAK;IAE/B,4FAA4F;IAC5F,OAAO,CAAC,eAAe,CAAK;IAE5B;;;;OAIG;IACH,OAAO,CAAC,eAAe,CAAwB;IAE/C,kFAAkF;IAClF,OAAO,CAAC,cAAc,CAAgD;IAEtE;;;;OAIG;IACI,gBAAgB,CAAC,WAAW,UAAO,GAAG,IAAI;IAKjD;;;OAGG;IACI,iBAAiB,CAAC,WAAW,UAAO,GAAG,IAAI;IAUlD;;;;OAIG;IACI,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK5C,yEAAyE;IAClE,KAAK,IAAI,IAAI;IASpB;;;OAGG;IACI,eAAe,IAAI,OAAO;IAIjC;;;;;;;OAOG;IACI,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAcxD;;;;;;OAMG;IACI,qBAAqB,IAAI,OAAO;CAG1C"}
|