@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.
Files changed (556) hide show
  1. package/README.md +44 -0
  2. package/lib/index.d.ts +8 -0
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +501 -0
  5. package/lib/index.js.map +7 -0
  6. package/lib/libs/index.d.ts +3 -0
  7. package/lib/libs/index.d.ts.map +1 -0
  8. package/lib/libs/strophe/strophe-plugin.d.ts +13 -0
  9. package/lib/libs/strophe/strophe-plugin.d.ts.map +1 -0
  10. package/lib/libs/strophe/strophe.jingle.d.ts +35 -0
  11. package/lib/libs/strophe/strophe.jingle.d.ts.map +1 -0
  12. package/lib/libs/strophe/strophe.jingle.sdp.d.ts +44 -0
  13. package/lib/libs/strophe/strophe.jingle.sdp.d.ts.map +1 -0
  14. package/lib/libs/strophe/strophe.jingle.session.d.ts +624 -0
  15. package/lib/libs/strophe/strophe.jingle.session.d.ts.map +1 -0
  16. package/lib/libs/strophe/strophe.jingle.session.stats.d.ts +791 -0
  17. package/lib/libs/strophe/strophe.jingle.session.stats.d.ts.map +1 -0
  18. package/lib/libs/strophe/strophe.lastactivity.d.ts +9 -0
  19. package/lib/libs/strophe/strophe.lastactivity.d.ts.map +1 -0
  20. package/lib/libs/strophe/strophe.mam.d.ts +11 -0
  21. package/lib/libs/strophe/strophe.mam.d.ts.map +1 -0
  22. package/lib/libs/strophe/strophe.ping.d.ts +39 -0
  23. package/lib/libs/strophe/strophe.ping.d.ts.map +1 -0
  24. package/lib/libs/strophe/strophe.rsm.d.ts +24 -0
  25. package/lib/libs/strophe/strophe.rsm.d.ts.map +1 -0
  26. package/lib/libs/strophe/types.d.ts +23 -0
  27. package/lib/libs/strophe/types.d.ts.map +1 -0
  28. package/lib/models/authSettings.model.d.ts +38 -0
  29. package/lib/models/authSettings.model.d.ts.map +1 -0
  30. package/lib/models/bubble.model.d.ts +1114 -0
  31. package/lib/models/bubble.model.d.ts.map +1 -0
  32. package/lib/models/bubbleConferenceRecap.model.d.ts +532 -0
  33. package/lib/models/bubbleConferenceRecap.model.d.ts.map +1 -0
  34. package/lib/models/call.model.d.ts +1271 -0
  35. package/lib/models/call.model.d.ts.map +1 -0
  36. package/lib/models/callLog.model.d.ts +361 -0
  37. package/lib/models/callLog.model.d.ts.map +1 -0
  38. package/lib/models/channel.model.d.ts +692 -0
  39. package/lib/models/channel.model.d.ts.map +1 -0
  40. package/lib/models/channelMessage.model.d.ts +300 -0
  41. package/lib/models/channelMessage.model.d.ts.map +1 -0
  42. package/lib/models/cli.model.d.ts +59 -0
  43. package/lib/models/cli.model.d.ts.map +1 -0
  44. package/lib/models/common/context.d.ts +37 -0
  45. package/lib/models/common/context.d.ts.map +1 -0
  46. package/lib/models/common/error.d.ts +26 -0
  47. package/lib/models/common/error.d.ts.map +1 -0
  48. package/lib/models/common/fileDescriptor.d.ts +317 -0
  49. package/lib/models/common/fileDescriptor.d.ts.map +1 -0
  50. package/lib/models/common/filePublicDownload.d.ts +26 -0
  51. package/lib/models/common/filePublicDownload.d.ts.map +1 -0
  52. package/lib/models/common/fileViewer.d.ts +20 -0
  53. package/lib/models/common/fileViewer.d.ts.map +1 -0
  54. package/lib/models/common/index.d.ts +9 -0
  55. package/lib/models/common/index.d.ts.map +1 -0
  56. package/lib/models/common/theme.d.ts +185 -0
  57. package/lib/models/common/theme.d.ts.map +1 -0
  58. package/lib/models/common/themeColor.d.ts +47 -0
  59. package/lib/models/common/themeColor.d.ts.map +1 -0
  60. package/lib/models/common/userTheme.d.ts +42 -0
  61. package/lib/models/common/userTheme.d.ts.map +1 -0
  62. package/lib/models/company-invitation.model.d.ts +42 -0
  63. package/lib/models/company-invitation.model.d.ts.map +1 -0
  64. package/lib/models/company.model.d.ts +639 -0
  65. package/lib/models/company.model.d.ts.map +1 -0
  66. package/lib/models/contact.model.d.ts +1208 -0
  67. package/lib/models/contact.model.d.ts.map +1 -0
  68. package/lib/models/conversation.model.d.ts +768 -0
  69. package/lib/models/conversation.model.d.ts.map +1 -0
  70. package/lib/models/customManifest.model.d.ts +82 -0
  71. package/lib/models/customManifest.model.d.ts.map +1 -0
  72. package/lib/models/dataChannel.model.d.ts +178 -0
  73. package/lib/models/dataChannel.model.d.ts.map +1 -0
  74. package/lib/models/dial-in-phone-numbers.model.d.ts +18 -0
  75. package/lib/models/dial-in-phone-numbers.model.d.ts.map +1 -0
  76. package/lib/models/directoryContact.model.d.ts +205 -0
  77. package/lib/models/directoryContact.model.d.ts.map +1 -0
  78. package/lib/models/event.model.d.ts +14 -0
  79. package/lib/models/event.model.d.ts.map +1 -0
  80. package/lib/models/favorite.model.d.ts +94 -0
  81. package/lib/models/favorite.model.d.ts.map +1 -0
  82. package/lib/models/fileDocument.model.d.ts +345 -0
  83. package/lib/models/fileDocument.model.d.ts.map +1 -0
  84. package/lib/models/geoLoc.model.d.ts +6 -0
  85. package/lib/models/geoLoc.model.d.ts.map +1 -0
  86. package/lib/models/index.d.ts +46 -0
  87. package/lib/models/index.d.ts.map +1 -0
  88. package/lib/models/invitation.model.d.ts +88 -0
  89. package/lib/models/invitation.model.d.ts.map +1 -0
  90. package/lib/models/invoices.model.d.ts +76 -0
  91. package/lib/models/invoices.model.d.ts.map +1 -0
  92. package/lib/models/logEntry.model.d.ts +23 -0
  93. package/lib/models/logEntry.model.d.ts.map +1 -0
  94. package/lib/models/message.model.d.ts +400 -0
  95. package/lib/models/message.model.d.ts.map +1 -0
  96. package/lib/models/messageAdditionalContent.parsers.d.ts +32 -0
  97. package/lib/models/messageAdditionalContent.parsers.d.ts.map +1 -0
  98. package/lib/models/offer.model.d.ts +16 -0
  99. package/lib/models/offer.model.d.ts.map +1 -0
  100. package/lib/models/p2pRecap.model.d.ts +372 -0
  101. package/lib/models/p2pRecap.model.d.ts.map +1 -0
  102. package/lib/models/paymentMethods.model.d.ts +98 -0
  103. package/lib/models/paymentMethods.model.d.ts.map +1 -0
  104. package/lib/models/personalRoutine.model.d.ts +173 -0
  105. package/lib/models/personalRoutine.model.d.ts.map +1 -0
  106. package/lib/models/poll.model.d.ts +139 -0
  107. package/lib/models/poll.model.d.ts.map +1 -0
  108. package/lib/models/rainbow-auth.model.d.ts +137 -0
  109. package/lib/models/rainbow-auth.model.d.ts.map +1 -0
  110. package/lib/models/searchTextConvResults.model.d.ts +30 -0
  111. package/lib/models/searchTextConvResults.model.d.ts.map +1 -0
  112. package/lib/models/site.model.d.ts +165 -0
  113. package/lib/models/site.model.d.ts.map +1 -0
  114. package/lib/models/subscription.model.d.ts +592 -0
  115. package/lib/models/subscription.model.d.ts.map +1 -0
  116. package/lib/models/telephonyConfig.model.d.ts +144 -0
  117. package/lib/models/telephonyConfig.model.d.ts.map +1 -0
  118. package/lib/models/telephonyForward.model.d.ts +47 -0
  119. package/lib/models/telephonyForward.model.d.ts.map +1 -0
  120. package/lib/models/todo.model.d.ts +103 -0
  121. package/lib/models/todo.model.d.ts.map +1 -0
  122. package/lib/models/transcription.model.d.ts +59 -0
  123. package/lib/models/transcription.model.d.ts.map +1 -0
  124. package/lib/models/user.model.d.ts +1008 -0
  125. package/lib/models/user.model.d.ts.map +1 -0
  126. package/lib/models/userProfileTemplate.model.d.ts +735 -0
  127. package/lib/models/userProfileTemplate.model.d.ts.map +1 -0
  128. package/lib/models/usersList.model.d.ts +117 -0
  129. package/lib/models/usersList.model.d.ts.map +1 -0
  130. package/lib/models/webConferenceParticipant.model.d.ts +135 -0
  131. package/lib/models/webConferenceParticipant.model.d.ts.map +1 -0
  132. package/lib/models/webConferenceSession.model.d.ts +658 -0
  133. package/lib/models/webConferenceSession.model.d.ts.map +1 -0
  134. package/lib/models/webinar.model.d.ts +738 -0
  135. package/lib/models/webinar.model.d.ts.map +1 -0
  136. package/lib/models/webinarRecap.model.d.ts +118 -0
  137. package/lib/models/webinarRecap.model.d.ts.map +1 -0
  138. package/lib/node.d.ts +3 -0
  139. package/lib/node.d.ts.map +1 -0
  140. package/lib/node.js +423 -0
  141. package/lib/node.js.map +7 -0
  142. package/lib/node.sdk.d.ts +41 -0
  143. package/lib/node.sdk.d.ts.map +1 -0
  144. package/lib/plugins/admin.plugin.d.ts +6 -0
  145. package/lib/plugins/admin.plugin.d.ts.map +1 -0
  146. package/lib/plugins/bubbleConference.plugin.d.ts +6 -0
  147. package/lib/plugins/bubbleConference.plugin.d.ts.map +1 -0
  148. package/lib/plugins/bubbleTag.plugin.d.ts +6 -0
  149. package/lib/plugins/bubbleTag.plugin.d.ts.map +1 -0
  150. package/lib/plugins/bubbles.plugin.d.ts +6 -0
  151. package/lib/plugins/bubbles.plugin.d.ts.map +1 -0
  152. package/lib/plugins/businessDirectory.plugin.d.ts +6 -0
  153. package/lib/plugins/businessDirectory.plugin.d.ts.map +1 -0
  154. package/lib/plugins/callRecorder.plugin.d.ts +6 -0
  155. package/lib/plugins/callRecorder.plugin.d.ts.map +1 -0
  156. package/lib/plugins/calllog.plugin.d.ts +6 -0
  157. package/lib/plugins/calllog.plugin.d.ts.map +1 -0
  158. package/lib/plugins/calls.plugin.d.ts +6 -0
  159. package/lib/plugins/calls.plugin.d.ts.map +1 -0
  160. package/lib/plugins/channels.plugin.d.ts +6 -0
  161. package/lib/plugins/channels.plugin.d.ts.map +1 -0
  162. package/lib/plugins/dataChannel.plugin.d.ts +6 -0
  163. package/lib/plugins/dataChannel.plugin.d.ts.map +1 -0
  164. package/lib/plugins/deviceManagement.plugin.d.ts +6 -0
  165. package/lib/plugins/deviceManagement.plugin.d.ts.map +1 -0
  166. package/lib/plugins/favorites.plugin.d.ts +6 -0
  167. package/lib/plugins/favorites.plugin.d.ts.map +1 -0
  168. package/lib/plugins/fileDocument.plugin.d.ts +6 -0
  169. package/lib/plugins/fileDocument.plugin.d.ts.map +1 -0
  170. package/lib/plugins/helpCenter.plugin.d.ts +6 -0
  171. package/lib/plugins/helpCenter.plugin.d.ts.map +1 -0
  172. package/lib/plugins/index.d.ts +27 -0
  173. package/lib/plugins/index.d.ts.map +1 -0
  174. package/lib/plugins/microsoft0365Ad.plugin.d.ts +6 -0
  175. package/lib/plugins/microsoft0365Ad.plugin.d.ts.map +1 -0
  176. package/lib/plugins/pbxUsers.plugin.d.ts +6 -0
  177. package/lib/plugins/pbxUsers.plugin.d.ts.map +1 -0
  178. package/lib/plugins/personalDirectory.plugin.d.ts +6 -0
  179. package/lib/plugins/personalDirectory.plugin.d.ts.map +1 -0
  180. package/lib/plugins/plugin.d.ts +8 -0
  181. package/lib/plugins/plugin.d.ts.map +1 -0
  182. package/lib/plugins/polls.plugin.d.ts +6 -0
  183. package/lib/plugins/polls.plugin.d.ts.map +1 -0
  184. package/lib/plugins/rpc.plugin.d.ts +6 -0
  185. package/lib/plugins/rpc.plugin.d.ts.map +1 -0
  186. package/lib/plugins/telemetry.plugin.d.ts +6 -0
  187. package/lib/plugins/telemetry.plugin.d.ts.map +1 -0
  188. package/lib/plugins/telephony.plugin.d.ts +6 -0
  189. package/lib/plugins/telephony.plugin.d.ts.map +1 -0
  190. package/lib/plugins/telephonyConfig.plugin.d.ts +6 -0
  191. package/lib/plugins/telephonyConfig.plugin.d.ts.map +1 -0
  192. package/lib/plugins/transcription.plugin.d.ts +6 -0
  193. package/lib/plugins/transcription.plugin.d.ts.map +1 -0
  194. package/lib/plugins/usersList.plugin.d.ts +6 -0
  195. package/lib/plugins/usersList.plugin.d.ts.map +1 -0
  196. package/lib/plugins/virtualBackground.plugin.d.ts +6 -0
  197. package/lib/plugins/virtualBackground.plugin.d.ts.map +1 -0
  198. package/lib/plugins/webinar.plugin.d.ts +6 -0
  199. package/lib/plugins/webinar.plugin.d.ts.map +1 -0
  200. package/lib/rainbow.sdk.d.ts +309 -0
  201. package/lib/rainbow.sdk.d.ts.map +1 -0
  202. package/lib/services/admin/admin-alarm.service.d.ts +42 -0
  203. package/lib/services/admin/admin-alarm.service.d.ts.map +1 -0
  204. package/lib/services/admin/admin-company.service.d.ts +167 -0
  205. package/lib/services/admin/admin-company.service.d.ts.map +1 -0
  206. package/lib/services/admin/admin-department.service.d.ts +39 -0
  207. package/lib/services/admin/admin-department.service.d.ts.map +1 -0
  208. package/lib/services/admin/admin-invitation.service.d.ts +114 -0
  209. package/lib/services/admin/admin-invitation.service.d.ts.map +1 -0
  210. package/lib/services/admin/admin-management.service.d.ts +100 -0
  211. package/lib/services/admin/admin-management.service.d.ts.map +1 -0
  212. package/lib/services/admin/admin-rvcp.service.d.ts +43 -0
  213. package/lib/services/admin/admin-rvcp.service.d.ts.map +1 -0
  214. package/lib/services/admin/admin-site.service.d.ts +64 -0
  215. package/lib/services/admin/admin-site.service.d.ts.map +1 -0
  216. package/lib/services/admin/admin-subscription.service.d.ts +135 -0
  217. package/lib/services/admin/admin-subscription.service.d.ts.map +1 -0
  218. package/lib/services/admin/admin-tag.service.d.ts +79 -0
  219. package/lib/services/admin/admin-tag.service.d.ts.map +1 -0
  220. package/lib/services/admin/admin-user-profile.service.d.ts +76 -0
  221. package/lib/services/admin/admin-user-profile.service.d.ts.map +1 -0
  222. package/lib/services/admin/admin-user.service.d.ts +338 -0
  223. package/lib/services/admin/admin-user.service.d.ts.map +1 -0
  224. package/lib/services/admin/admin.common.d.ts +40 -0
  225. package/lib/services/admin/admin.common.d.ts.map +1 -0
  226. package/lib/services/admin/admin.service.d.ts +138 -0
  227. package/lib/services/admin/admin.service.d.ts.map +1 -0
  228. package/lib/services/admin/index.d.ts +14 -0
  229. package/lib/services/admin/index.d.ts.map +1 -0
  230. package/lib/services/bot/bot.service.d.ts +121 -0
  231. package/lib/services/bot/bot.service.d.ts.map +1 -0
  232. package/lib/services/bubbles/bubble.service.d.ts +889 -0
  233. package/lib/services/bubbles/bubble.service.d.ts.map +1 -0
  234. package/lib/services/bubbles/bubbleTag.service.d.ts +132 -0
  235. package/lib/services/bubbles/bubbleTag.service.d.ts.map +1 -0
  236. package/lib/services/bubbles/index.d.ts +3 -0
  237. package/lib/services/bubbles/index.d.ts.map +1 -0
  238. package/lib/services/call/call.service.d.ts +297 -0
  239. package/lib/services/call/call.service.d.ts.map +1 -0
  240. package/lib/services/call/callRecorder.service.d.ts +358 -0
  241. package/lib/services/call/callRecorder.service.d.ts.map +1 -0
  242. package/lib/services/call/index.d.ts +3 -0
  243. package/lib/services/call/index.d.ts.map +1 -0
  244. package/lib/services/callLog/callLog.service.d.ts +563 -0
  245. package/lib/services/callLog/callLog.service.d.ts.map +1 -0
  246. package/lib/services/callLog/index.d.ts +5 -0
  247. package/lib/services/callLog/index.d.ts.map +1 -0
  248. package/lib/services/callLog/p2pRecap.service.d.ts +206 -0
  249. package/lib/services/callLog/p2pRecap.service.d.ts.map +1 -0
  250. package/lib/services/channels/channel.service.d.ts +626 -0
  251. package/lib/services/channels/channel.service.d.ts.map +1 -0
  252. package/lib/services/channels/index.d.ts +3 -0
  253. package/lib/services/channels/index.d.ts.map +1 -0
  254. package/lib/services/citrix/citrix.service.d.ts +30 -0
  255. package/lib/services/citrix/citrix.service.d.ts.map +1 -0
  256. package/lib/services/citrix/index.d.ts +3 -0
  257. package/lib/services/citrix/index.d.ts.map +1 -0
  258. package/lib/services/company/company-directory.service.d.ts +222 -0
  259. package/lib/services/company/company-directory.service.d.ts.map +1 -0
  260. package/lib/services/conference/bubbleConference.service.d.ts +1237 -0
  261. package/lib/services/conference/bubbleConference.service.d.ts.map +1 -0
  262. package/lib/services/conference/bubbleConferenceRecap.service.d.ts +159 -0
  263. package/lib/services/conference/bubbleConferenceRecap.service.d.ts.map +1 -0
  264. package/lib/services/conference/index.d.ts +5 -0
  265. package/lib/services/conference/index.d.ts.map +1 -0
  266. package/lib/services/conference/webConferenceHelper.d.ts +25 -0
  267. package/lib/services/conference/webConferenceHelper.d.ts.map +1 -0
  268. package/lib/services/conversation/conversation.service.d.ts +723 -0
  269. package/lib/services/conversation/conversation.service.d.ts.map +1 -0
  270. package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts +39 -0
  271. package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts.map +1 -0
  272. package/lib/services/conversation/conversationServiceEventHandler.d.ts +78 -0
  273. package/lib/services/conversation/conversationServiceEventHandler.d.ts.map +1 -0
  274. package/lib/services/conversation/index.d.ts +3 -0
  275. package/lib/services/conversation/index.d.ts.map +1 -0
  276. package/lib/services/core/account.service.d.ts +98 -0
  277. package/lib/services/core/account.service.d.ts.map +1 -0
  278. package/lib/services/core/auth.service.d.ts +303 -0
  279. package/lib/services/core/auth.service.d.ts.map +1 -0
  280. package/lib/services/core/company.service.d.ts +30 -0
  281. package/lib/services/core/company.service.d.ts.map +1 -0
  282. package/lib/services/core/connection.service.d.ts +209 -0
  283. package/lib/services/core/connection.service.d.ts.map +1 -0
  284. package/lib/services/core/contact.service.d.ts +617 -0
  285. package/lib/services/core/contact.service.d.ts.map +1 -0
  286. package/lib/services/core/country.service.d.ts +66 -0
  287. package/lib/services/core/country.service.d.ts.map +1 -0
  288. package/lib/services/core/directorySearch.service.d.ts +305 -0
  289. package/lib/services/core/directorySearch.service.d.ts.map +1 -0
  290. package/lib/services/core/event.service.d.ts +31 -0
  291. package/lib/services/core/event.service.d.ts.map +1 -0
  292. package/lib/services/core/i18n.service.d.ts +19 -0
  293. package/lib/services/core/i18n.service.d.ts.map +1 -0
  294. package/lib/services/core/imageUtils.service.d.ts +15 -0
  295. package/lib/services/core/imageUtils.service.d.ts.map +1 -0
  296. package/lib/services/core/index.d.ts +19 -0
  297. package/lib/services/core/index.d.ts.map +1 -0
  298. package/lib/services/core/logger.service.d.ts +143 -0
  299. package/lib/services/core/logger.service.d.ts.map +1 -0
  300. package/lib/services/core/logging.service.d.ts +51 -0
  301. package/lib/services/core/logging.service.d.ts.map +1 -0
  302. package/lib/services/core/main.service.d.ts +124 -0
  303. package/lib/services/core/main.service.d.ts.map +1 -0
  304. package/lib/services/core/presenceHelper.service.d.ts +73 -0
  305. package/lib/services/core/presenceHelper.service.d.ts.map +1 -0
  306. package/lib/services/core/profile.service.d.ts +453 -0
  307. package/lib/services/core/profile.service.d.ts.map +1 -0
  308. package/lib/services/core/settings.service.d.ts +82 -0
  309. package/lib/services/core/settings.service.d.ts.map +1 -0
  310. package/lib/services/core/userInfo.service.d.ts +25 -0
  311. package/lib/services/core/userInfo.service.d.ts.map +1 -0
  312. package/lib/services/core/userNetwork.service.d.ts +171 -0
  313. package/lib/services/core/userNetwork.service.d.ts.map +1 -0
  314. package/lib/services/core/xmpp.service.d.ts +99 -0
  315. package/lib/services/core/xmpp.service.d.ts.map +1 -0
  316. package/lib/services/dataChannel/dataChannel.service.d.ts +102 -0
  317. package/lib/services/dataChannel/dataChannel.service.d.ts.map +1 -0
  318. package/lib/services/dataChannel/index.d.ts +3 -0
  319. package/lib/services/dataChannel/index.d.ts.map +1 -0
  320. package/lib/services/deviceManagement/deviceEchoFilter.d.ts +86 -0
  321. package/lib/services/deviceManagement/deviceEchoFilter.d.ts.map +1 -0
  322. package/lib/services/deviceManagement/deviceManagement.service.d.ts +290 -0
  323. package/lib/services/deviceManagement/deviceManagement.service.d.ts.map +1 -0
  324. package/lib/services/deviceManagement/index.d.ts +2 -0
  325. package/lib/services/deviceManagement/index.d.ts.map +1 -0
  326. package/lib/services/deviceManagement/webHidManager.service.d.ts +616 -0
  327. package/lib/services/deviceManagement/webHidManager.service.d.ts.map +1 -0
  328. package/lib/services/directory/directory.service.d.ts +108 -0
  329. package/lib/services/directory/directory.service.d.ts.map +1 -0
  330. package/lib/services/directory/index.d.ts +3 -0
  331. package/lib/services/directory/index.d.ts.map +1 -0
  332. package/lib/services/directory/office365ad.service.d.ts +74 -0
  333. package/lib/services/directory/office365ad.service.d.ts.map +1 -0
  334. package/lib/services/directory/personal-directory.service.d.ts +425 -0
  335. package/lib/services/directory/personal-directory.service.d.ts.map +1 -0
  336. package/lib/services/directory/phonebook.service.d.ts +43 -0
  337. package/lib/services/directory/phonebook.service.d.ts.map +1 -0
  338. package/lib/services/event-mixin.d.ts +75 -0
  339. package/lib/services/event-mixin.d.ts.map +1 -0
  340. package/lib/services/favorites/favorites.service.d.ts +313 -0
  341. package/lib/services/favorites/favorites.service.d.ts.map +1 -0
  342. package/lib/services/favorites/index.d.ts +3 -0
  343. package/lib/services/favorites/index.d.ts.map +1 -0
  344. package/lib/services/fileDocument/fileDocument.service.d.ts +229 -0
  345. package/lib/services/fileDocument/fileDocument.service.d.ts.map +1 -0
  346. package/lib/services/fileDocument/index.d.ts +5 -0
  347. package/lib/services/fileDocument/index.d.ts.map +1 -0
  348. package/lib/services/files/fileDescriptorEventHandler.service.d.ts +18 -0
  349. package/lib/services/files/fileDescriptorEventHandler.service.d.ts.map +1 -0
  350. package/lib/services/files/fileServer.service.d.ts +268 -0
  351. package/lib/services/files/fileServer.service.d.ts.map +1 -0
  352. package/lib/services/files/fileStorage.service.d.ts +426 -0
  353. package/lib/services/files/fileStorage.service.d.ts.map +1 -0
  354. package/lib/services/helpcenter/helpCenter.service.d.ts +207 -0
  355. package/lib/services/helpcenter/helpCenter.service.d.ts.map +1 -0
  356. package/lib/services/helpcenter/index.d.ts +4 -0
  357. package/lib/services/helpcenter/index.d.ts.map +1 -0
  358. package/lib/services/helpcenter/whatsNew.service.d.ts +47 -0
  359. package/lib/services/helpcenter/whatsNew.service.d.ts.map +1 -0
  360. package/lib/services/horizon/horizon.service.d.ts +31 -0
  361. package/lib/services/horizon/horizon.service.d.ts.map +1 -0
  362. package/lib/services/horizon/index.d.ts +3 -0
  363. package/lib/services/horizon/index.d.ts.map +1 -0
  364. package/lib/services/index.d.ts +35 -0
  365. package/lib/services/index.d.ts.map +1 -0
  366. package/lib/services/launcher/config/sdkLaunchConfig.d.ts +8 -0
  367. package/lib/services/launcher/config/sdkLaunchConfig.d.ts.map +1 -0
  368. package/lib/services/localTranslation/chromeTranslation.engine.d.ts +79 -0
  369. package/lib/services/localTranslation/chromeTranslation.engine.d.ts.map +1 -0
  370. package/lib/services/localTranslation/index.d.ts +6 -0
  371. package/lib/services/localTranslation/index.d.ts.map +1 -0
  372. package/lib/services/localTranslation/localTranslation.service.d.ts +129 -0
  373. package/lib/services/localTranslation/localTranslation.service.d.ts.map +1 -0
  374. package/lib/services/localTranslation/translationEngine.d.ts +81 -0
  375. package/lib/services/localTranslation/translationEngine.d.ts.map +1 -0
  376. package/lib/services/metrics/analytics.service.d.ts +63 -0
  377. package/lib/services/metrics/analytics.service.d.ts.map +1 -0
  378. package/lib/services/metrics/index.d.ts +2 -0
  379. package/lib/services/metrics/index.d.ts.map +1 -0
  380. package/lib/services/notifications/index.d.ts +2 -0
  381. package/lib/services/notifications/index.d.ts.map +1 -0
  382. package/lib/services/notifications/notificationCenter.service.d.ts +178 -0
  383. package/lib/services/notifications/notificationCenter.service.d.ts.map +1 -0
  384. package/lib/services/notifications/notificationsViewer.service.d.ts +46 -0
  385. package/lib/services/notifications/notificationsViewer.service.d.ts.map +1 -0
  386. package/lib/services/personalRoutines/personal-routines.service.d.ts +159 -0
  387. package/lib/services/personalRoutines/personal-routines.service.d.ts.map +1 -0
  388. package/lib/services/polls/index.d.ts +2 -0
  389. package/lib/services/polls/index.d.ts.map +1 -0
  390. package/lib/services/polls/polls.service.d.ts +139 -0
  391. package/lib/services/polls/polls.service.d.ts.map +1 -0
  392. package/lib/services/ringing/index.d.ts +2 -0
  393. package/lib/services/ringing/index.d.ts.map +1 -0
  394. package/lib/services/ringing/ringing.service.d.ts +535 -0
  395. package/lib/services/ringing/ringing.service.d.ts.map +1 -0
  396. package/lib/services/rpc/index.d.ts +2 -0
  397. package/lib/services/rpc/index.d.ts.map +1 -0
  398. package/lib/services/rpc/rpc.service.d.ts +75 -0
  399. package/lib/services/rpc/rpc.service.d.ts.map +1 -0
  400. package/lib/services/service.d.ts +9 -0
  401. package/lib/services/service.d.ts.map +1 -0
  402. package/lib/services/speechRecognitionService/speechRecognition.service.d.ts +87 -0
  403. package/lib/services/speechRecognitionService/speechRecognition.service.d.ts.map +1 -0
  404. package/lib/services/subscription/index.d.ts +4 -0
  405. package/lib/services/subscription/index.d.ts.map +1 -0
  406. package/lib/services/subscription/invoices.service.d.ts +78 -0
  407. package/lib/services/subscription/invoices.service.d.ts.map +1 -0
  408. package/lib/services/subscription/paymentMethods.service.d.ts +164 -0
  409. package/lib/services/subscription/paymentMethods.service.d.ts.map +1 -0
  410. package/lib/services/subscription/subscription.service.d.ts +510 -0
  411. package/lib/services/subscription/subscription.service.d.ts.map +1 -0
  412. package/lib/services/support/index.d.ts +2 -0
  413. package/lib/services/support/index.d.ts.map +1 -0
  414. package/lib/services/support/support.model.d.ts +143 -0
  415. package/lib/services/support/support.model.d.ts.map +1 -0
  416. package/lib/services/support/support.service.d.ts +162 -0
  417. package/lib/services/support/support.service.d.ts.map +1 -0
  418. package/lib/services/telemetry/index.d.ts +3 -0
  419. package/lib/services/telemetry/index.d.ts.map +1 -0
  420. package/lib/services/telemetry/jsonRPC.service.d.ts +25 -0
  421. package/lib/services/telemetry/jsonRPC.service.d.ts.map +1 -0
  422. package/lib/services/telemetry/telemetry.service.d.ts +22 -0
  423. package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
  424. package/lib/services/telephony/index.d.ts +4 -0
  425. package/lib/services/telephony/index.d.ts.map +1 -0
  426. package/lib/services/telephony/supervision.service.d.ts +277 -0
  427. package/lib/services/telephony/supervision.service.d.ts.map +1 -0
  428. package/lib/services/telephony/telephony.service.d.ts +1476 -0
  429. package/lib/services/telephony/telephony.service.d.ts.map +1 -0
  430. package/lib/services/telephony/telephonyCcdAgent.service.d.ts +63 -0
  431. package/lib/services/telephony/telephonyCcdAgent.service.d.ts.map +1 -0
  432. package/lib/services/telephony/telephonyHybridEventHandler.d.ts +360 -0
  433. package/lib/services/telephony/telephonyHybridEventHandler.d.ts.map +1 -0
  434. package/lib/services/telephony/telephonyKeys.service.d.ts +86 -0
  435. package/lib/services/telephony/telephonyKeys.service.d.ts.map +1 -0
  436. package/lib/services/telephony/telephonySipWise.service.d.ts +543 -0
  437. package/lib/services/telephony/telephonySipWise.service.d.ts.map +1 -0
  438. package/lib/services/telephony/telephonySipWiseEventHandler.d.ts +462 -0
  439. package/lib/services/telephony/telephonySipWiseEventHandler.d.ts.map +1 -0
  440. package/lib/services/telephonyConfig/index.d.ts +3 -0
  441. package/lib/services/telephonyConfig/index.d.ts.map +1 -0
  442. package/lib/services/telephonyConfig/telephonyConfig.service.d.ts +150 -0
  443. package/lib/services/telephonyConfig/telephonyConfig.service.d.ts.map +1 -0
  444. package/lib/services/todo/todo.service.d.ts +358 -0
  445. package/lib/services/todo/todo.service.d.ts.map +1 -0
  446. package/lib/services/transcription/index.d.ts +2 -0
  447. package/lib/services/transcription/index.d.ts.map +1 -0
  448. package/lib/services/transcription/liveTranscription.service.d.ts +94 -0
  449. package/lib/services/transcription/liveTranscription.service.d.ts.map +1 -0
  450. package/lib/services/ulrMetadata/urlMetadata.service.d.ts +51 -0
  451. package/lib/services/ulrMetadata/urlMetadata.service.d.ts.map +1 -0
  452. package/lib/services/users/index.d.ts +3 -0
  453. package/lib/services/users/index.d.ts.map +1 -0
  454. package/lib/services/users/user.service.d.ts +146 -0
  455. package/lib/services/users/user.service.d.ts.map +1 -0
  456. package/lib/services/users/usersLists.service.d.ts +239 -0
  457. package/lib/services/users/usersLists.service.d.ts.map +1 -0
  458. package/lib/services/utilities/browserDatabase.service.d.ts +69 -0
  459. package/lib/services/utilities/browserDatabase.service.d.ts.map +1 -0
  460. package/lib/services/utilities/errorHelper.service.d.ts +24 -0
  461. package/lib/services/utilities/errorHelper.service.d.ts.map +1 -0
  462. package/lib/services/utilities/index.d.ts +4 -0
  463. package/lib/services/utilities/index.d.ts.map +1 -0
  464. package/lib/services/utilities/utilities.service.d.ts +74 -0
  465. package/lib/services/utilities/utilities.service.d.ts.map +1 -0
  466. package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts +228 -0
  467. package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts.map +1 -0
  468. package/lib/services/virtualBackground/index.d.ts +4 -0
  469. package/lib/services/virtualBackground/index.d.ts.map +1 -0
  470. package/lib/services/virtualBackground/personalVideoBackground.d.ts +190 -0
  471. package/lib/services/virtualBackground/personalVideoBackground.d.ts.map +1 -0
  472. package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts +66 -0
  473. package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts.map +1 -0
  474. package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts +88 -0
  475. package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts.map +1 -0
  476. package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts +69 -0
  477. package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts.map +1 -0
  478. package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts +55 -0
  479. package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts.map +1 -0
  480. package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts +59 -0
  481. package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts.map +1 -0
  482. package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts +34 -0
  483. package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts.map +1 -0
  484. package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts +62 -0
  485. package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts.map +1 -0
  486. package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts +56 -0
  487. package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts.map +1 -0
  488. package/lib/services/virtualBackground/virtualBackground.service.d.ts +399 -0
  489. package/lib/services/virtualBackground/virtualBackground.service.d.ts.map +1 -0
  490. package/lib/services/webinars/index.d.ts +10 -0
  491. package/lib/services/webinars/index.d.ts.map +1 -0
  492. package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts +71 -0
  493. package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts.map +1 -0
  494. package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts +86 -0
  495. package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts.map +1 -0
  496. package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts +31 -0
  497. package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts.map +1 -0
  498. package/lib/services/webinars/webinarAudioMixer.d.ts +45 -0
  499. package/lib/services/webinars/webinarAudioMixer.d.ts.map +1 -0
  500. package/lib/services/webinars/webinarConference.service.d.ts +323 -0
  501. package/lib/services/webinars/webinarConference.service.d.ts.map +1 -0
  502. package/lib/services/webinars/webinarConference.utils.d.ts +24 -0
  503. package/lib/services/webinars/webinarConference.utils.d.ts.map +1 -0
  504. package/lib/services/webinars/webinarParticipants.service.d.ts +43 -0
  505. package/lib/services/webinars/webinarParticipants.service.d.ts.map +1 -0
  506. package/lib/services/webinars/webinarSpeakers.service.d.ts +25 -0
  507. package/lib/services/webinars/webinarSpeakers.service.d.ts.map +1 -0
  508. package/lib/services/webinars/webinarStoryLine.service.d.ts +117 -0
  509. package/lib/services/webinars/webinarStoryLine.service.d.ts.map +1 -0
  510. package/lib/services/webinars/webinars.service.d.ts +600 -0
  511. package/lib/services/webinars/webinars.service.d.ts.map +1 -0
  512. package/lib/services/webrtc/index.d.ts +5 -0
  513. package/lib/services/webrtc/index.d.ts.map +1 -0
  514. package/lib/services/webrtc/webrtcConfigAndUtils.d.ts +170 -0
  515. package/lib/services/webrtc/webrtcConfigAndUtils.d.ts.map +1 -0
  516. package/lib/services/webrtc/webrtcP2P.service.d.ts +521 -0
  517. package/lib/services/webrtc/webrtcP2P.service.d.ts.map +1 -0
  518. package/lib/services/webrtc/webrtcP2PEventHandler.d.ts +55 -0
  519. package/lib/services/webrtc/webrtcP2PEventHandler.d.ts.map +1 -0
  520. package/lib/services/webrtcGateway/webrtcGateway.service.d.ts +605 -0
  521. package/lib/services/webrtcGateway/webrtcGateway.service.d.ts.map +1 -0
  522. package/lib/strophejs.d.ts +3 -0
  523. package/lib/strophejs.d.ts.map +1 -0
  524. package/lib/typings/helpers.d.ts +3 -0
  525. package/lib/typings/helpers.d.ts.map +1 -0
  526. package/lib/utils/allSettled.d.ts +2 -0
  527. package/lib/utils/allSettled.d.ts.map +1 -0
  528. package/lib/utils/anonymizer.d.ts +28 -0
  529. package/lib/utils/anonymizer.d.ts.map +1 -0
  530. package/lib/utils/branded.d.ts +4 -0
  531. package/lib/utils/branded.d.ts.map +1 -0
  532. package/lib/utils/browser.d.ts +231 -0
  533. package/lib/utils/browser.d.ts.map +1 -0
  534. package/lib/utils/index.d.ts +12 -0
  535. package/lib/utils/index.d.ts.map +1 -0
  536. package/lib/utils/mediaPermissionError.d.ts +2 -0
  537. package/lib/utils/mediaPermissionError.d.ts.map +1 -0
  538. package/lib/utils/promiseQueue.d.ts +10 -0
  539. package/lib/utils/promiseQueue.d.ts.map +1 -0
  540. package/lib/utils/randomString.d.ts +3 -0
  541. package/lib/utils/randomString.d.ts.map +1 -0
  542. package/lib/utils/recordingArchiveName.d.ts +13 -0
  543. package/lib/utils/recordingArchiveName.d.ts.map +1 -0
  544. package/lib/utils/serverTimestamp.d.ts +15 -0
  545. package/lib/utils/serverTimestamp.d.ts.map +1 -0
  546. package/lib/utils/stringifyError.d.ts +2 -0
  547. package/lib/utils/stringifyError.d.ts.map +1 -0
  548. package/lib/utils/video.d.ts +27 -0
  549. package/lib/utils/video.d.ts.map +1 -0
  550. package/lib/utils/wait.d.ts +2 -0
  551. package/lib/utils/wait.d.ts.map +1 -0
  552. package/lib/utils/xmlParser.d.ts +102 -0
  553. package/lib/utils/xmlParser.d.ts.map +1 -0
  554. package/lib/utils/xmlValidation.d.ts +119 -0
  555. package/lib/utils/xmlValidation.d.ts.map +1 -0
  556. package/package.json +58 -0
@@ -0,0 +1,521 @@
1
+ /**
2
+ * @module Webrtc
3
+ */
4
+ import type { Subscription } from "rxjs";
5
+ import type { Call } from "../../models/call.model";
6
+ import { CallRB, CallStatus } from "../../models/call.model";
7
+ import type { VirtualBackgroundService } from "../../services/virtualBackground/virtualBackground.service";
8
+ import { WebrtcP2PEventHandler } from "../../services/webrtc/webrtcP2PEventHandler";
9
+ import type { Contact } from "../../models/contact.model";
10
+ import { Service } from "../../services/service";
11
+ import type { JingleSession } from "../../libs/strophe/strophe.jingle.session";
12
+ import type { ConversationRB } from "../../models/conversation.model";
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare const WEBRTC_P2P_SVC = "WebrtcP2PService";
17
+ /**
18
+ * @eventProperty
19
+ * WebrtcP2PService Events.
20
+ */
21
+ export declare enum WebrtcP2PServiceEvents {
22
+ /**
23
+ * @eventProperty
24
+ * This RB event is send when P2P called is busy (in order to manage a busy tone).
25
+ */
26
+ RAINBOW_ON_WEBRTC_BUSY = "RAINBOW_ON_WEBRTC_BUSY",
27
+ /**
28
+ * @eventProperty
29
+ * This RB event is send when we need to ask for snapshot from other ressources to update the list of calls
30
+ */
31
+ RAINBOW_SUPERVISION_SNAPSHOT_NEEDED = "RAINBOW_SUPERVISION_SNAPSHOT_NEEDED",
32
+ /**
33
+ * @eventProperty
34
+ * This RB event is send when a call is updated; This event can be used to manage all calls in single place;
35
+ */
36
+ RAINBOW_ON_CALL_UPDATED_EVENT = "RAINBOW_ON_CALL_UPDATED_EVENT",
37
+ /**
38
+ * @eventProperty
39
+ * This RB event is send when a MP call is updated
40
+ */
41
+ RAINBOW_ON_MEDIA_PILLAR_CALL_UPDATED_EVENT = "RAINBOW_ON_MEDIA_PILLAR_CALL_UPDATED_EVENT"
42
+ }
43
+ /**
44
+ * @public
45
+ * Webrtc P2P Service interface
46
+ */
47
+ export interface IWebrtcP2PService {
48
+ /**
49
+ * Make a standard P2P call toward a contact
50
+ * @param contact - The Call object that we want to remove
51
+ * @param mediaType - The media type of call (could be 'audio', 'video' (i.e audio and video), 'videoOnly' (no audio, only video), 'sharing' (audio and sharing) and 'sharingOnly' (only sharing, no audio))
52
+ * @param message - [optional] additional message send to the distant party for the reason of the call
53
+ * @returns Returns the call
54
+ */
55
+ makeCall: (contact: Contact, mediaType: "audio" | "video" | "videoOnly" | "sharing" | "sharingOnly", message?: string) => Promise<Call | undefined>;
56
+ /**
57
+ * Answer an incoming webrtc call
58
+ * @param call - The Call object that we want to remove
59
+ * @param mediaType - (optional) The media type to answer the call (by default, it's only audio anwser). In case of audio and video incoming call
60
+ * the user can use type = "video" to answer the call with audio and video;
61
+ */
62
+ answerCall: (call: CallRB, mediaType: string) => void;
63
+ /**
64
+ *Terminate a webrtc call
65
+ * @param call - The Call object that we want to remove
66
+ * @param cause - (optional) cause to reject the call
67
+ * @param notifyOtherParticipant -(optional) Indicates wether the other participant should be notified by a xmpp message or not
68
+ */
69
+ terminateCall: (call: CallRB, cause: string, notifyOtherParticipant: boolean) => void;
70
+ /**
71
+ * Allow to mute / unmute a call
72
+ * @param call - The call
73
+ * @param state - if true, the audio in the call will be muted
74
+ * @returns The updated call object
75
+ */
76
+ muteCall: (call: CallRB, state: boolean) => CallRB;
77
+ /**
78
+ * Put the call on Hold
79
+ * @param call - The call to be put on hold
80
+ * @param hold - When true the call is hold
81
+ * @returns the updated call object
82
+ */
83
+ holdCall: (call: CallRB, state: boolean) => CallRB;
84
+ /**
85
+ * Remove a media from call
86
+ * @param call - The call object
87
+ * @param mediaType - the mediaType to remove from the call
88
+ * @returns Resolved when the action is taken into accout
89
+ */
90
+ removeMediaFromCall: (call: CallRB, mediaType: "video" | "sharing") => Promise<CallRB>;
91
+ /**
92
+ *Allow to send DTMF
93
+ * @param call - if true, the audio in the call will be muted
94
+ * @param dialString - The conversation that is related to the call
95
+ * @param skipHandle - [optional] Should skip the ontonechange event -- false by default
96
+ */
97
+ sendDTMF: (call: CallRB, dialString: string, skipHandle?: boolean) => Promise<void>;
98
+ /**
99
+ * Get a call by it's ID
100
+ * @param callId - The id of the call to find
101
+ * @returns The call
102
+ */
103
+ getCallById: (callId: string) => CallRB;
104
+ /**
105
+ * Find and return the current active call (the last one found), or null otherwise
106
+ * @returns Return the current active call (the last one found), or null otherwise
107
+ */
108
+ getCurrentActiveCall: () => CallRB | null;
109
+ /**
110
+ * If the current user has any kind of webrtc call (could also be with WebRTC GW / Media Pillar)
111
+ * @returns True if user has a call
112
+ */
113
+ isUserContactInCall: () => boolean;
114
+ /**
115
+ * Subscribe to updates on the current calls sessions (all events are of RBEvent type `{ name: string, data:any }`);
116
+ * All public events that are fired by this service are described in the documentation.
117
+ * NB There might be some events that are not documented here, they should be ignored
118
+ * @param handler - The call-back function that will be subscribed to the RxJS subject
119
+ * @param eventName - The name of the event to filter
120
+ * @returns Returns RxJS Subscription
121
+ */
122
+ subscribe: (handler: any, eventName?: string) => Subscription;
123
+ }
124
+ /**
125
+ * @internal
126
+ */
127
+ export declare class WebrtcP2PService extends Service implements IWebrtcP2PService {
128
+ started: boolean;
129
+ connected: boolean;
130
+ RTC: any;
131
+ calls: Record<string, CallRB>;
132
+ autoreleaseTimeout: any;
133
+ makingCall: boolean;
134
+ reconnectCall: boolean;
135
+ alreadyAttaching: boolean;
136
+ firefoxPreferedSharing: string;
137
+ webrtcP2PEventHandler: WebrtcP2PEventHandler;
138
+ private isMixPstnWebRtcAllowed;
139
+ private audioProfileChanging;
140
+ private subscriptions;
141
+ private xmppConnectionSubscription;
142
+ private replaceBackgroundSubscription;
143
+ private deviceManagementSubscription;
144
+ private listeners;
145
+ virtualBackgroundService?: VirtualBackgroundService;
146
+ private logger;
147
+ private mainService;
148
+ private rxSubject;
149
+ private eventService;
150
+ private webrtcConfigAndUtils;
151
+ private contactService;
152
+ private xmppService;
153
+ private profileService;
154
+ private deviceManagementService;
155
+ private settingsService;
156
+ private conversationService;
157
+ getDesktopSharingSource(): any;
158
+ askToAddSharing(__conversationId: any, __shouldAskForAudio?: boolean): boolean;
159
+ askToStartSharing(__contactId: any, __media: any, __shouldAskForAudio?: boolean): boolean;
160
+ isNativeApplication(): boolean;
161
+ static getInstance(): WebrtcP2PService;
162
+ static build(): WebrtcP2PService;
163
+ private constructor();
164
+ start(): void;
165
+ stop(): void;
166
+ reconnect(): void;
167
+ private attachHandlers;
168
+ private removeHandlers;
169
+ private reconnectSessionsIfNeeded;
170
+ private webrtcConfigAndUtilsEvent;
171
+ /**
172
+ * Send an event to the RX Subject (sends always a RBEvent type)
173
+ * @param name - The name of the event
174
+ * @param data - The data of the event
175
+ */
176
+ sendEvent(name: string, data?: any): void;
177
+ /**
178
+ * Subscribe to updates on the current calls sessions (all events are of RBEvent type {name: string, data:any});
179
+ * All public events that are fired by this service are described in the documentation.
180
+ * NB There might be some events that are not documented here, they should be ignored
181
+ * @param handler - The call-back function that will be subscribed to the RxJS subject
182
+ * @param eventName - The name of the event to filter
183
+ * @returns Returns RxJS Subscription
184
+ */
185
+ subscribe(handler: any, eventName?: string): Subscription;
186
+ /**
187
+ * Make a standard P2P call toward a contact
188
+ * @param contact - The Call object that we want to remove
189
+ * @param mediaType - The media type of call (could be 'audio', 'video' (i.e audio and video), 'videoOnly' (no audio, only video), 'sharing' (audio and sharing) and 'sharingOnly' (only sharing, no audio))
190
+ * @param message - [optional] additional message send to the distant party for the reason of the call
191
+ * @param message - [optional] TRUE in case we want to propose add System audio on top of sharing
192
+ * @returns Returns the call
193
+ */
194
+ makeCall(contact: Contact, mediaType: string, message?: string, addAudioToSharingCall?: boolean): Promise<CallRB>;
195
+ /**
196
+ * Answer an incoming webrtc call
197
+ * @param call - The Call object that we want to remove
198
+ * @param mediaType - (optional) The media type to answer the call (by default, it's only audio anwser). In case of audio and video incoming call
199
+ * the user can use type = "video" to answer the call with audio and video;
200
+ */
201
+ answerCall(call: CallRB, mediaType?: string): void;
202
+ /**
203
+ * Terminate a webrtc call
204
+ * @param call - The Call object that we want to remove
205
+ * @param cause - (optional) cause to reject the call
206
+ * @param notifyOtherParticipant - (optional) Indicates wether the other participant should be notified by a xmpp message or not
207
+ */
208
+ terminateCall(call: CallRB, cause?: string, notifyOtherParticipant?: boolean): void;
209
+ /**
210
+ * Allow to mute / unmute acall
211
+ * @param call - The call
212
+ * @param state - if true, the audio in the call will be muted
213
+ * @returns The updated call object
214
+ */
215
+ muteCall(call: CallRB, state: boolean): CallRB;
216
+ /**
217
+ * Put the call on Hold
218
+ * @param call - The call to be put on hold
219
+ * @param hold - When true the call is hold
220
+ * @returns the updated call object
221
+ */
222
+ holdCall(call: CallRB, hold: boolean): CallRB;
223
+ /**
224
+ * Remove a media from call
225
+ * @param call - The call object
226
+ * @param mediaType - the mediaType to remove from the call
227
+ */
228
+ removeMediaFromCall(call: CallRB, mediaType: "video" | "sharing"): Promise<CallRB>;
229
+ /**
230
+ * Allow to send DTMF
231
+ * @param call - if true, the audio in the call will be muted
232
+ * @param dialString - The conversation that is related to the call
233
+ * @param skipHandle - [optional] Should skip the ontonechange event -- false by default
234
+ */
235
+ sendDTMF(call: CallRB, dialString: string, skipHandle?: boolean): Promise<void>;
236
+ /**
237
+ * Remove The Call object and terminates the webrtc session related to this call.
238
+ * @param call - The Call object that we want to remove
239
+ * @param reason - The reason to end the call that is send to the distant
240
+ * @param text - Additional text send to the distant when the webrtc session is released
241
+ */
242
+ removeCallObject(call: CallRB, reason?: string, text?: string): void;
243
+ private onReplaceBackgroundChangeEvent;
244
+ private putActiveWebrtcCallOnHold;
245
+ private onConnectionStateChangeEvent;
246
+ isUserContactInCall(): boolean;
247
+ isUserContactInOtherCall(call: CallRB): boolean;
248
+ /**
249
+ * Find and return the current active call (the last one found), or null otherwise
250
+ * @returns Return the current active call (the last one found), or null otherwise
251
+ */
252
+ getCurrentActiveCall(): CallRB | null;
253
+ /**
254
+ * Retrieve the list of calls with a status equal to a given status (or a list of given status) (if some exist)
255
+ * @public
256
+ * @param {any} [searchedCallStatus] Status (or array of status) of calls to search. If not passed, it returns all calls except incoming/queued ringing calls
257
+ * @returns {CallRB[]} List of calls matching the searched status (or empty array if no calls found)
258
+ * @instance
259
+ * @function
260
+ */
261
+ getCalls(searchedCallStatus?: CallStatus[] | CallStatus): CallRB[];
262
+ /**
263
+ * Return an array with all the WebRTC Jingle active sessions
264
+ * @returns Return an array with all the WebRTC Jingle active sessions
265
+ */
266
+ getCurrentActiveSessions(): any[];
267
+ /**
268
+ * Return an array with all the Call objects that are not ended and not related to MP
269
+ * @returns Return an array with all the Call objects that are not ended and not related to MP
270
+ */
271
+ getCurrentCallsNotMediaPillar(): CallRB[];
272
+ /**
273
+ * Return an array with all the Call objects that are not ended and not related to MP
274
+ * @returns Return an array with all the Call objects that are not ended and not related to MP
275
+ */
276
+ getCurrentIncomingCallsNotMediaPillar(): CallRB[];
277
+ /**
278
+ * Check if the user has an active webrtc session that is not related to Media Pillar / WebRTC GW
279
+ * @returns Return true if the user has an active webrtc session that is not related to Media Pillar / WebRTC GW
280
+ */
281
+ existWebrtcActiveSessionNotMP(): boolean;
282
+ /**
283
+ * Check if the user has an active webrtc session that is related to Media Pillar / WebRTC GW
284
+ * @returns Return true if the user has an active webrtc session that is related to Media Pillar / WebRTC GW
285
+ */
286
+ existMediaPillarAudioCall(): boolean;
287
+ /**
288
+ * Check if the user has an answering webrtc session that is related to Media Pillar / WebRTC GW
289
+ * @returns Return true if the user has an answering webrtc session that is related to Media Pillar / WebRTC GW
290
+ */
291
+ existMediaPillarAnsweringCall(isSipWise?: boolean): boolean;
292
+ /**
293
+ * Return an array of Call that are related to Media Pillar / Webrtc GW
294
+ * @returns Return an array of Call that are related to Media Pillar / Webrtc GW
295
+ */
296
+ getMediaPillarAudioCalls(): CallRB[];
297
+ /**
298
+ * Return an array of Call that are related to Media Pillar / Webrtc GW
299
+ * @returns Return an array of Call that are related to Media Pillar / Webrtc GW
300
+ */
301
+ getActiveMediaPillarAudioCall(): CallRB;
302
+ isInMediaPillarAudioCallWithContactJid(jid: any): boolean;
303
+ hasMediaPillarCallWithContactJid(jid: string): boolean;
304
+ hasOtherWebrtcCallWithContactJid(callId: string, contactJid: string): boolean;
305
+ hasIncomingWebrtcCallWithContactJid(contactJid: string): boolean;
306
+ /**
307
+ * Return the Call that is on hold (put on hold by the user)
308
+ * @returns Return the Call that is on hold (put on hold by the user)
309
+ */
310
+ getCallOnHold(): CallRB;
311
+ /**
312
+ * Return the Call that is on hold (put on hold by the distant party)
313
+ * @returns Return the Call that is put on hold
314
+ */
315
+ getCallPutOnHold(): CallRB;
316
+ /**
317
+ * getWebrtcAudioCall
318
+ * @returns the audio webrtc call
319
+ */
320
+ getWebrtcAudioCall(): CallRB;
321
+ getWebrtcAudioCalls(): CallRB[];
322
+ getSecondSharingCallForPbxCall(pbxCall: CallRB): CallRB;
323
+ /**
324
+ * getActiveWebrtcAudioCall
325
+ * @returns the audio webrtc call that is in ACTIVE STATE
326
+ */
327
+ getActiveWebrtcAudioCall(): CallRB;
328
+ /**
329
+ * GetWebrtcCallsOnHold
330
+ * @returns the audio webrtc call that is in HOLD STATE
331
+ */
332
+ getWebrtcCallsOnHold(): CallRB[];
333
+ getMPWebrtcAudioCallByState(soughtCallState: any): CallRB;
334
+ getCurrentSharingCall(): CallRB;
335
+ /**
336
+ * Ends all sharing calls related to a given contact
337
+ * @param contact - The contact related to all calls
338
+ */
339
+ endAllCallsForContact(contact: Contact): void;
340
+ private onAudioVideoInputDeviceChange;
341
+ getCallById(callId: string): CallRB;
342
+ /**
343
+ * Find and return a call by the distant contact's jid or full jid
344
+ * @param contactJid - The jid of the contact that we want to find
345
+ * @param fullJid - [optional] The full JID of the contact related to the call
346
+ * @returns The call
347
+ */
348
+ getCallByJid(contactJid: string, fullJid?: string): CallRB;
349
+ /**
350
+ * Send to remote (others clients) a dummy reject for an incoming webrtc call
351
+ * then the others remote ressources manage this call as rejected even if locally it isn't
352
+ * (mainly for RQRAINB-9057)
353
+ * @param callId - The tel Call id that we want to remotly manage as rejected
354
+ */
355
+ dummyRejectCallForRemote(callId: string): void;
356
+ /**
357
+ * Release a standard call
358
+ * @param call - The Call object that we want to release
359
+ * @param reason - (optional) reason to release the call
360
+ * @param text - (optional) additional text
361
+ */
362
+ releaseCall(call: CallRB, reason?: string, text?: string): void;
363
+ callShiftPBX(cstaCallId: string, mpJid: string, otherSid: string): Promise<CallRB>;
364
+ callShift(otherSid: string, referTo: string, media?: string): Promise<void>;
365
+ /**
366
+ * Make a Jingle call toward the destionation (could be a MP call)
367
+ * @param call - The Call object
368
+ * @param mediaPillarJid - (optional) the media Pillar Jid only in case of webrtc gateway media Pillar
369
+ * @param phoneNumber - (optional) the number to join by mediaPillar
370
+ * @param otherSid - parameter only used in case of transfer webrtc to webrtc call
371
+ * @param callShift - in case of call shift
372
+ */
373
+ makeJingleCall(call: CallRB, mediaPillarJid?: string, phoneNumber?: string, otherSid?: string, callShift?: boolean): Promise<void>;
374
+ /**
375
+ * Make the jingle webtc call with sharing and audio towards the destination in the call
376
+ * @param call - The Call object
377
+ */
378
+ makeJingleSharingCall(call: CallRB): Promise<void>;
379
+ /**
380
+ * UCAAS Method -- to be used to start the desktop sharing in case of Desktop App
381
+ * @param contact - The Call object that we want to remove
382
+ * @param media - The media type of call (could be 'sharing' (audio and sharing) and 'sharingOnly' (only sharing, no audio))
383
+ */
384
+ startDesktopSharing(contact: Contact, media: string): void;
385
+ /**
386
+ * UCAAS Method -- Desktop app has annulated start of sharing
387
+ */
388
+ startSharingCancelled(): void;
389
+ sendUpdateCallEvent(call: CallRB): void;
390
+ /**
391
+ * Answer an incoming jingle call
392
+ * @param call - the call
393
+ */
394
+ answerJingleCall(call: CallRB): Promise<void>;
395
+ /**
396
+ * UCAAS Method -- P2P call is transferred to a SFU conference
397
+ * @param call - The P2P call that should be removed
398
+ */
399
+ onCallTransferred(call: CallRB): void;
400
+ /**
401
+ * UCAAS Method -- Desktop app to add a sharing to conversation
402
+ * @param conversation - The conversation related
403
+ */
404
+ askToAddDesktopSharing(conversation: ConversationRB): void;
405
+ /**
406
+ * Add audio to call (or change the current audio input device)
407
+ * @param call - The call object
408
+ * @param mediaModify - if True, the action is to "change" the current input audio device,
409
+ * and not add audio to the current call
410
+ * @returns Resolved when the action is taken into accout
411
+ */
412
+ addAudioToCall(call: CallRB, mediaModify?: boolean): Promise<CallRB>;
413
+ /**
414
+ * Add Sharing to a existing active call
415
+ * @param call - The call object
416
+ * @returns Resolved when the action is taken into accout
417
+ */
418
+ addSharingToCall(call: CallRB, withAudio?: boolean): Promise<CallRB>;
419
+ /**
420
+ * Add video to active call (or modify the video input)
421
+ * @param call - The call object
422
+ * @param mediaModify - if True, the action is to "change" the current video audio device, and not add video to the current call
423
+ * @returns Resolved when the action is taken into accout
424
+ */
425
+ addVideoToCall(call: CallRB, mediaModify?: boolean): Promise<CallRB>;
426
+ private changeBackgroundForCall;
427
+ /**
428
+ * Remove the sharing from the call
429
+ * @param call - The call object
430
+ */
431
+ removeSharingFromCall(call: CallRB): Promise<CallRB>;
432
+ /**
433
+ * Remove the sharing and video from the call
434
+ * @param call - The call object
435
+ * @returns Resolves when the action is taken into account
436
+ */
437
+ private removeVideoAndSharingFromCall;
438
+ /**
439
+ * Remove video from the current call
440
+ * @param call - The call object
441
+ * @returns Resolved when the action is taken into account
442
+ */
443
+ removeVideoFromCall(call: CallRB): Promise<CallRB>;
444
+ /** ***********************************************************/
445
+ /** ***********************************************************/
446
+ /**
447
+ * Allow to mute / unmute the current call UCAAS ONLY FONCTION
448
+ * @param conversation - The conversation that is related to the call
449
+ * @param state - if true, the audio in the call will be muted
450
+ * @returns The updated call object
451
+ */
452
+ muteAudio(conversation: ConversationRB, state: boolean): CallRB;
453
+ /**
454
+ * Put the call on Hold
455
+ * NB this will stop all video and sharing coming from this user before the hold action
456
+ * @param call - The call to be put on hold
457
+ * @returns the updated call object
458
+ */
459
+ private putCallOnHold;
460
+ /**
461
+ * Retrieve the call on Hold
462
+ * @param call - The call to be put on hold
463
+ * @returns the updated call object
464
+ */
465
+ private retrieveCallOnHold;
466
+ /**
467
+ * Functions related to the refer action - update from P2P call to Conference call
468
+ * @returns the updated call object
469
+ */
470
+ referTo(session: any, confEndpointId: string, referTo: string): void;
471
+ /**
472
+ * Transfer a webrtc call on hold to another active call (only works for 2 webrtc P2P calls)
473
+ * @param session - The session related to the call on hold
474
+ * @param otherSession - The active call session, to whom we want to transfer the call
475
+ */
476
+ transferCall(session: JingleSession, otherSession: JingleSession): void;
477
+ sendReferStatus(callId: string, status: string): void;
478
+ sendReferTransfer(callId: string, method: string, referTo: string): void;
479
+ /**
480
+ * Stops and removes all Tracks from the Media Stream array
481
+ * @param streams - Array of Media Streams
482
+ */
483
+ disableStreams(streams: MediaStream[]): void;
484
+ pushInLocalStreams(stream: MediaStream, callId: string): void;
485
+ openErrorPopup(msg?: string): void;
486
+ private removeSharingStreamFromCall;
487
+ private removeAudioVideoStreamFromCall;
488
+ private removeAllStreamsFromCall;
489
+ resetToSafeState(call?: CallRB): void;
490
+ dropAudio(): Promise<void>;
491
+ /** ***********************************************************/
492
+ /**
493
+ * Method calculatePresenceMessage
494
+ * @private
495
+ * @memberof WebrtcP2PService
496
+ * UCAAS Method -- Calculate the call message to be shown on the UI
497
+ * @param {Call} call call object
498
+ * @returns {string} The new message to be shown for our current presence
499
+ */
500
+ calculatePresenceMessage(call: CallRB): string;
501
+ /**
502
+ * Method updateRemoteTypeMedia
503
+ * @private
504
+ * @memberof WebrtcP2PService
505
+ * UCAAS Method -- Calculate the remoteMedia object value
506
+ * @param {string} remoteType The new remote type string
507
+ * @param {Call} call call object
508
+ */
509
+ updateRemoteTypeMedia(remoteType: string, call: CallRB): void;
510
+ private updateLocalAudioStreamForCall;
511
+ private updateLocalMediaType;
512
+ updateCurrentCall(call: CallRB, session: JingleSession, type: any, action: any): Promise<void>;
513
+ private handleToneChangeEvent;
514
+ private silentToneChangeEventHandle;
515
+ clearSrcObjectsFromElements(): void;
516
+ attachDistantMediaStreamsUnifiedPlan(call: any): void;
517
+ attachDistantMediaStreams(attach: any, call: any): void;
518
+ attachLocalVideoOnlyStreamToElement(call: any, attach: any, element: any): void;
519
+ playStartRecordSoundInCall(): Promise<void>;
520
+ }
521
+ //# sourceMappingURL=webrtcP2P.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webrtcP2P.service.d.ts","sourceRoot":"","sources":["../../../src/services/webrtc/webrtcP2P.service.ts"],"names":[],"mappings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BAAqB;IAO7B,OAAO,CAAC,2BAA2B;IAQ5B,2BAA2B;IAW3B,oCAAoC,CAAC,IAAI,KAAA;IAuDzC,yBAAyB,CAAC,MAAM,KAAA,EAAE,IAAI,KAAA;IAkBtC,mCAAmC,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,EAAE,OAAO,KAAA;IAyBnD,0BAA0B;CAiD1C"}
@@ -0,0 +1,55 @@
1
+ import { CallRB } from "../../models/call.model";
2
+ import type { WebrtcP2PService } from "../../services/webrtc/webrtcP2P.service";
3
+ import type { Contact } from "../../models/contact.model";
4
+ import type { JingleSession } from "../../libs/strophe/strophe.jingle.session";
5
+ export declare class WebrtcP2PEventHandler {
6
+ private webrtcP2PService;
7
+ private xmppService;
8
+ private logger;
9
+ private contactService;
10
+ private eventService;
11
+ private webrtcConfigAndUtils;
12
+ private settingsService;
13
+ private conversationService;
14
+ private nameSpace;
15
+ private messageHandlerRef;
16
+ private xmppServiceSubscription;
17
+ constructor(webrtcP2PService: WebrtcP2PService);
18
+ destroy(): void;
19
+ private onJingleMessage;
20
+ private onJingleSessionInitiate;
21
+ private onJingleTransportReplace;
22
+ private onJingleWebrtcStatsEvent;
23
+ private onJingleHoldEvent;
24
+ private onJingleUnholdEvent;
25
+ private onJingleCallAccepted;
26
+ setRemoteTypeMedia(remoteType: string[], call: CallRB): void;
27
+ setLocalTypeMedia(localType: string[], call: CallRB): void;
28
+ sendProposition(contact: Contact, media: string, message?: string, addAudioToSharingCall?: boolean): Promise<CallRB>;
29
+ retractProposition(call: any): void;
30
+ acceptProposition(call: any, type: any): void;
31
+ rejectProposition(call: CallRB, __cause?: string, notifyOtherParticipant?: boolean): void;
32
+ notifyRemoteOfDummyRejectProposition(callId: string, __cause?: string): void;
33
+ onMessageReceived(stanza: any): boolean;
34
+ private onMessageReceivedError;
35
+ private getOrCreateContact;
36
+ private onPropositionReceived;
37
+ private onRetractReceived;
38
+ private onRejectReceived;
39
+ private onAcceptReceived;
40
+ private onProceedReceived;
41
+ /** ***********************************************************/
42
+ /** ***********************************************************/
43
+ incomingCall(callId: string): Promise<void>;
44
+ activeCall(callId: any): void;
45
+ terminatedCall(callId: any, callReason?: string, doNotUpdatePresence?: boolean): void;
46
+ onJingleError(sid: any, error: any): void;
47
+ onSessionConnectionStateUpdate(sid: string, sess: JingleSession): void;
48
+ onReconnectNeeded(session: JingleSession, reason: string): void;
49
+ onCallConnected(session: JingleSession): void;
50
+ mediaModified(sid: any): void;
51
+ onTrasferCallEvent(referTo: string, otherSid: string): Promise<void>;
52
+ onIncomingTrasferredCall(sid: string): Promise<void>;
53
+ onIncomingShiftCall(oldCallId: string, newCallId: string): Promise<void>;
54
+ }
55
+ //# sourceMappingURL=webrtcP2PEventHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webrtcP2PEventHandler.d.ts","sourceRoot":"","sources":["../../../src/services/webrtc/webrtcP2PEventHandler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAyB,MAAM,EAAwB,MAAM,wCAAwC,CAAC;AAG7G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAI/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAMzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAK/E,qBAAa,qBAAqB;IAYlB,OAAO,CAAC,gBAAgB;IAXpC,OAAO,CAAC,WAAW,CAA0C;IAC7D,OAAO,CAAC,MAAM,CAA8C;IAC5D,OAAO,CAAC,cAAc,CAAgD;IACtE,OAAO,CAAC,YAAY,CAA4C;IAChE,OAAO,CAAC,oBAAoB,CAA4D;IACxF,OAAO,CAAC,eAAe,CAAkD;IACzE,OAAO,CAAC,mBAAmB,CAA8D;IACzF,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,iBAAiB,CAAC;IAC1B,OAAO,CAAC,uBAAuB,CAAe;gBAE1B,gBAAgB,EAAE,gBAAgB;IAa/C,OAAO;IA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