@signalwire/js 3.29.2 → 4.0.0-dev-20260220205014

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 (662) hide show
  1. package/dist/base-A5AZTrAd.d.cts +23 -0
  2. package/dist/base-A5AZTrAd.d.cts.map +1 -0
  3. package/dist/base-aVtoG8Wk.d.mts +23 -0
  4. package/dist/base-aVtoG8Wk.d.mts.map +1 -0
  5. package/dist/browser.mjs +16625 -0
  6. package/dist/browser.mjs.map +1 -0
  7. package/dist/browser.umd.js +16646 -0
  8. package/dist/browser.umd.js.map +1 -0
  9. package/dist/index.cjs +6210 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.d.cts +2690 -0
  12. package/dist/index.d.cts.map +1 -0
  13. package/dist/index.d.mts +2690 -0
  14. package/dist/index.d.mts.map +1 -0
  15. package/dist/index.mjs +6194 -0
  16. package/dist/index.mjs.map +1 -0
  17. package/dist/operators/index.cjs +6 -0
  18. package/dist/operators/index.d.cts +109 -0
  19. package/dist/operators/index.d.cts.map +1 -0
  20. package/dist/operators/index.d.mts +109 -0
  21. package/dist/operators/index.d.mts.map +1 -0
  22. package/dist/operators/index.mjs +3 -0
  23. package/dist/operators-BHQMSEzq.mjs +371 -0
  24. package/dist/operators-BHQMSEzq.mjs.map +1 -0
  25. package/dist/operators-DT4UB24-.cjs +596 -0
  26. package/dist/operators-DT4UB24-.cjs.map +1 -0
  27. package/package.json +73 -37
  28. package/README.md +0 -40
  29. package/dist/core/src/BaseClient.d.ts +0 -19
  30. package/dist/core/src/BaseClient.d.ts.map +0 -1
  31. package/dist/core/src/BaseComponent.d.ts +0 -101
  32. package/dist/core/src/BaseComponent.d.ts.map +0 -1
  33. package/dist/core/src/BaseComponent.test.d.ts +0 -2
  34. package/dist/core/src/BaseComponent.test.d.ts.map +0 -1
  35. package/dist/core/src/BaseConsumer.d.ts +0 -18
  36. package/dist/core/src/BaseConsumer.d.ts.map +0 -1
  37. package/dist/core/src/BaseConsumer.test.d.ts +0 -2
  38. package/dist/core/src/BaseConsumer.test.d.ts.map +0 -1
  39. package/dist/core/src/BaseJWTSession.d.ts +0 -47
  40. package/dist/core/src/BaseJWTSession.d.ts.map +0 -1
  41. package/dist/core/src/BaseJWTSession.test.d.ts +0 -2
  42. package/dist/core/src/BaseJWTSession.test.d.ts.map +0 -1
  43. package/dist/core/src/BaseSession.d.ts +0 -117
  44. package/dist/core/src/BaseSession.d.ts.map +0 -1
  45. package/dist/core/src/BaseSession.test.d.ts +0 -2
  46. package/dist/core/src/BaseSession.test.d.ts.map +0 -1
  47. package/dist/core/src/CustomErrors.d.ts +0 -17
  48. package/dist/core/src/CustomErrors.d.ts.map +0 -1
  49. package/dist/core/src/RPCMessages/RPCConnect.d.ts +0 -42
  50. package/dist/core/src/RPCMessages/RPCConnect.d.ts.map +0 -1
  51. package/dist/core/src/RPCMessages/RPCDisconnect.d.ts +0 -8
  52. package/dist/core/src/RPCMessages/RPCDisconnect.d.ts.map +0 -1
  53. package/dist/core/src/RPCMessages/RPCEventAck.d.ts +0 -8
  54. package/dist/core/src/RPCMessages/RPCEventAck.d.ts.map +0 -1
  55. package/dist/core/src/RPCMessages/RPCExecute.d.ts +0 -16
  56. package/dist/core/src/RPCMessages/RPCExecute.d.ts.map +0 -1
  57. package/dist/core/src/RPCMessages/RPCPing.d.ts +0 -16
  58. package/dist/core/src/RPCMessages/RPCPing.d.ts.map +0 -1
  59. package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts +0 -13
  60. package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts.map +0 -1
  61. package/dist/core/src/RPCMessages/VertoMessages.d.ts +0 -84
  62. package/dist/core/src/RPCMessages/VertoMessages.d.ts.map +0 -1
  63. package/dist/core/src/RPCMessages/helpers.d.ts +0 -31
  64. package/dist/core/src/RPCMessages/helpers.d.ts.map +0 -1
  65. package/dist/core/src/RPCMessages/index.d.ts +0 -9
  66. package/dist/core/src/RPCMessages/index.d.ts.map +0 -1
  67. package/dist/core/src/RPCMessages/index.test.d.ts +0 -2
  68. package/dist/core/src/RPCMessages/index.test.d.ts.map +0 -1
  69. package/dist/core/src/chat/BaseChat.d.ts +0 -23
  70. package/dist/core/src/chat/BaseChat.d.ts.map +0 -1
  71. package/dist/core/src/chat/ChatMember.d.ts +0 -15
  72. package/dist/core/src/chat/ChatMember.d.ts.map +0 -1
  73. package/dist/core/src/chat/ChatMessage.d.ts +0 -10
  74. package/dist/core/src/chat/ChatMessage.d.ts.map +0 -1
  75. package/dist/core/src/chat/applyCommonMethods.d.ts +0 -22
  76. package/dist/core/src/chat/applyCommonMethods.d.ts.map +0 -1
  77. package/dist/core/src/chat/index.d.ts +0 -6
  78. package/dist/core/src/chat/index.d.ts.map +0 -1
  79. package/dist/core/src/chat/methods.d.ts +0 -31
  80. package/dist/core/src/chat/methods.d.ts.map +0 -1
  81. package/dist/core/src/chat/utils/index.d.ts +0 -3
  82. package/dist/core/src/chat/utils/index.d.ts.map +0 -1
  83. package/dist/core/src/chat/utils/toInternalChatChannels.d.ts +0 -3
  84. package/dist/core/src/chat/utils/toInternalChatChannels.d.ts.map +0 -1
  85. package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts +0 -2
  86. package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts.map +0 -1
  87. package/dist/core/src/chat/workers/chatWorker.d.ts +0 -4
  88. package/dist/core/src/chat/workers/chatWorker.d.ts.map +0 -1
  89. package/dist/core/src/chat/workers/index.d.ts +0 -2
  90. package/dist/core/src/chat/workers/index.d.ts.map +0 -1
  91. package/dist/core/src/index.d.ts +0 -45
  92. package/dist/core/src/index.d.ts.map +0 -1
  93. package/dist/core/src/index.test.d.ts +0 -1
  94. package/dist/core/src/index.test.d.ts.map +0 -1
  95. package/dist/core/src/memberPosition/index.d.ts +0 -2
  96. package/dist/core/src/memberPosition/index.d.ts.map +0 -1
  97. package/dist/core/src/memberPosition/workers.d.ts +0 -13
  98. package/dist/core/src/memberPosition/workers.d.ts.map +0 -1
  99. package/dist/core/src/memberPosition/workers.test.d.ts +0 -2
  100. package/dist/core/src/memberPosition/workers.test.d.ts.map +0 -1
  101. package/dist/core/src/pubSub/BasePubSub.d.ts +0 -43
  102. package/dist/core/src/pubSub/BasePubSub.d.ts.map +0 -1
  103. package/dist/core/src/pubSub/PubSubMessage.d.ts +0 -19
  104. package/dist/core/src/pubSub/PubSubMessage.d.ts.map +0 -1
  105. package/dist/core/src/pubSub/index.d.ts +0 -3
  106. package/dist/core/src/pubSub/index.d.ts.map +0 -1
  107. package/dist/core/src/pubSub/workers/index.d.ts +0 -2
  108. package/dist/core/src/pubSub/workers/index.d.ts.map +0 -1
  109. package/dist/core/src/pubSub/workers/pubSubWorker.d.ts +0 -4
  110. package/dist/core/src/pubSub/workers/pubSubWorker.d.ts.map +0 -1
  111. package/dist/core/src/redux/actions.d.ts +0 -25
  112. package/dist/core/src/redux/actions.d.ts.map +0 -1
  113. package/dist/core/src/redux/connect.d.ts +0 -23
  114. package/dist/core/src/redux/connect.d.ts.map +0 -1
  115. package/dist/core/src/redux/connect.test.d.ts +0 -2
  116. package/dist/core/src/redux/connect.test.d.ts.map +0 -1
  117. package/dist/core/src/redux/features/component/componentSaga.d.ts +0 -4
  118. package/dist/core/src/redux/features/component/componentSaga.d.ts.map +0 -1
  119. package/dist/core/src/redux/features/component/componentSaga.test.d.ts +0 -2
  120. package/dist/core/src/redux/features/component/componentSaga.test.d.ts.map +0 -1
  121. package/dist/core/src/redux/features/component/componentSelectors.d.ts +0 -7
  122. package/dist/core/src/redux/features/component/componentSelectors.d.ts.map +0 -1
  123. package/dist/core/src/redux/features/component/componentSelectors.test.d.ts +0 -2
  124. package/dist/core/src/redux/features/component/componentSelectors.test.d.ts.map +0 -1
  125. package/dist/core/src/redux/features/component/componentSlice.d.ts +0 -2319
  126. package/dist/core/src/redux/features/component/componentSlice.d.ts.map +0 -1
  127. package/dist/core/src/redux/features/component/componentSlice.test.d.ts +0 -2
  128. package/dist/core/src/redux/features/component/componentSlice.test.d.ts.map +0 -1
  129. package/dist/core/src/redux/features/index.d.ts +0 -3
  130. package/dist/core/src/redux/features/index.d.ts.map +0 -1
  131. package/dist/core/src/redux/features/session/sessionSaga.d.ts +0 -11
  132. package/dist/core/src/redux/features/session/sessionSaga.d.ts.map +0 -1
  133. package/dist/core/src/redux/features/session/sessionSelectors.d.ts +0 -9
  134. package/dist/core/src/redux/features/session/sessionSelectors.d.ts.map +0 -1
  135. package/dist/core/src/redux/features/session/sessionSlice.d.ts +0 -521
  136. package/dist/core/src/redux/features/session/sessionSlice.d.ts.map +0 -1
  137. package/dist/core/src/redux/features/session/sessionSlice.test.d.ts +0 -2
  138. package/dist/core/src/redux/features/session/sessionSlice.test.d.ts.map +0 -1
  139. package/dist/core/src/redux/index.d.ts +0 -31
  140. package/dist/core/src/redux/index.d.ts.map +0 -1
  141. package/dist/core/src/redux/interfaces.d.ts +0 -87
  142. package/dist/core/src/redux/interfaces.d.ts.map +0 -1
  143. package/dist/core/src/redux/rootReducer.d.ts +0 -457
  144. package/dist/core/src/redux/rootReducer.d.ts.map +0 -1
  145. package/dist/core/src/redux/rootSaga.d.ts +0 -40
  146. package/dist/core/src/redux/rootSaga.d.ts.map +0 -1
  147. package/dist/core/src/redux/rootSaga.test.d.ts +0 -2
  148. package/dist/core/src/redux/rootSaga.test.d.ts.map +0 -1
  149. package/dist/core/src/redux/toolkit/configureStore.d.ts +0 -77
  150. package/dist/core/src/redux/toolkit/configureStore.d.ts.map +0 -1
  151. package/dist/core/src/redux/toolkit/createAction.d.ts +0 -180
  152. package/dist/core/src/redux/toolkit/createAction.d.ts.map +0 -1
  153. package/dist/core/src/redux/toolkit/createReducer.d.ts +0 -42
  154. package/dist/core/src/redux/toolkit/createReducer.d.ts.map +0 -1
  155. package/dist/core/src/redux/toolkit/createSlice.d.ts +0 -142
  156. package/dist/core/src/redux/toolkit/createSlice.d.ts.map +0 -1
  157. package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts +0 -185
  158. package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts.map +0 -1
  159. package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts +0 -12
  160. package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts.map +0 -1
  161. package/dist/core/src/redux/toolkit/index.d.ts +0 -13
  162. package/dist/core/src/redux/toolkit/index.d.ts.map +0 -1
  163. package/dist/core/src/redux/toolkit/isPlainObject.d.ts +0 -12
  164. package/dist/core/src/redux/toolkit/isPlainObject.d.ts.map +0 -1
  165. package/dist/core/src/redux/toolkit/mapBuilders.d.ts +0 -38
  166. package/dist/core/src/redux/toolkit/mapBuilders.d.ts.map +0 -1
  167. package/dist/core/src/redux/toolkit/tsHelpers.d.ts +0 -51
  168. package/dist/core/src/redux/toolkit/tsHelpers.d.ts.map +0 -1
  169. package/dist/core/src/redux/toolkit/utils.d.ts +0 -11
  170. package/dist/core/src/redux/toolkit/utils.d.ts.map +0 -1
  171. package/dist/core/src/redux/utils/createDestroyableSlice.d.ts +0 -9
  172. package/dist/core/src/redux/utils/createDestroyableSlice.d.ts.map +0 -1
  173. package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts +0 -2
  174. package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts.map +0 -1
  175. package/dist/core/src/redux/utils/sagaHelpers.d.ts +0 -5
  176. package/dist/core/src/redux/utils/sagaHelpers.d.ts.map +0 -1
  177. package/dist/core/src/redux/utils/useInstanceMap.d.ts +0 -3
  178. package/dist/core/src/redux/utils/useInstanceMap.d.ts.map +0 -1
  179. package/dist/core/src/redux/utils/useSession.d.ts +0 -16
  180. package/dist/core/src/redux/utils/useSession.d.ts.map +0 -1
  181. package/dist/core/src/rooms/RoomSessionPlayback.d.ts +0 -40
  182. package/dist/core/src/rooms/RoomSessionPlayback.d.ts.map +0 -1
  183. package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts +0 -2
  184. package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts.map +0 -1
  185. package/dist/core/src/rooms/RoomSessionRecording.d.ts +0 -30
  186. package/dist/core/src/rooms/RoomSessionRecording.d.ts.map +0 -1
  187. package/dist/core/src/rooms/RoomSessionRecording.test.d.ts +0 -2
  188. package/dist/core/src/rooms/RoomSessionRecording.test.d.ts.map +0 -1
  189. package/dist/core/src/rooms/RoomSessionStream.d.ts +0 -29
  190. package/dist/core/src/rooms/RoomSessionStream.d.ts.map +0 -1
  191. package/dist/core/src/rooms/RoomSessionStream.test.d.ts +0 -2
  192. package/dist/core/src/rooms/RoomSessionStream.test.d.ts.map +0 -1
  193. package/dist/core/src/rooms/index.d.ts +0 -11
  194. package/dist/core/src/rooms/index.d.ts.map +0 -1
  195. package/dist/core/src/rooms/methods.d.ts +0 -179
  196. package/dist/core/src/rooms/methods.d.ts.map +0 -1
  197. package/dist/core/src/rooms/methods.test.d.ts +0 -2
  198. package/dist/core/src/rooms/methods.test.d.ts.map +0 -1
  199. package/dist/core/src/setupTests.d.ts +0 -1
  200. package/dist/core/src/setupTests.d.ts.map +0 -1
  201. package/dist/core/src/testUtils.d.ts +0 -54
  202. package/dist/core/src/testUtils.d.ts.map +0 -1
  203. package/dist/core/src/types/cantina.d.ts +0 -82
  204. package/dist/core/src/types/cantina.d.ts.map +0 -1
  205. package/dist/core/src/types/chat.d.ts +0 -270
  206. package/dist/core/src/types/chat.d.ts.map +0 -1
  207. package/dist/core/src/types/common.d.ts +0 -34
  208. package/dist/core/src/types/common.d.ts.map +0 -1
  209. package/dist/core/src/types/conversation.d.ts +0 -33
  210. package/dist/core/src/types/conversation.d.ts.map +0 -1
  211. package/dist/core/src/types/fabric.d.ts +0 -15
  212. package/dist/core/src/types/fabric.d.ts.map +0 -1
  213. package/dist/core/src/types/fabricLayout.d.ts +0 -25
  214. package/dist/core/src/types/fabricLayout.d.ts.map +0 -1
  215. package/dist/core/src/types/fabricMember.d.ts +0 -148
  216. package/dist/core/src/types/fabricMember.d.ts.map +0 -1
  217. package/dist/core/src/types/fabricRoomSession.d.ts +0 -631
  218. package/dist/core/src/types/fabricRoomSession.d.ts.map +0 -1
  219. package/dist/core/src/types/index.d.ts +0 -276
  220. package/dist/core/src/types/index.d.ts.map +0 -1
  221. package/dist/core/src/types/messaging.d.ts +0 -90
  222. package/dist/core/src/types/messaging.d.ts.map +0 -1
  223. package/dist/core/src/types/pubSub.d.ts +0 -123
  224. package/dist/core/src/types/pubSub.d.ts.map +0 -1
  225. package/dist/core/src/types/task.d.ts +0 -36
  226. package/dist/core/src/types/task.d.ts.map +0 -1
  227. package/dist/core/src/types/utils.d.ts +0 -71
  228. package/dist/core/src/types/utils.d.ts.map +0 -1
  229. package/dist/core/src/types/video.d.ts +0 -62
  230. package/dist/core/src/types/video.d.ts.map +0 -1
  231. package/dist/core/src/types/videoLayout.d.ts +0 -75
  232. package/dist/core/src/types/videoLayout.d.ts.map +0 -1
  233. package/dist/core/src/types/videoMember.d.ts +0 -384
  234. package/dist/core/src/types/videoMember.d.ts.map +0 -1
  235. package/dist/core/src/types/videoPlayback.d.ts +0 -123
  236. package/dist/core/src/types/videoPlayback.d.ts.map +0 -1
  237. package/dist/core/src/types/videoRecording.d.ts +0 -114
  238. package/dist/core/src/types/videoRecording.d.ts.map +0 -1
  239. package/dist/core/src/types/videoRoomDevice.d.ts +0 -23
  240. package/dist/core/src/types/videoRoomDevice.d.ts.map +0 -1
  241. package/dist/core/src/types/videoRoomSession.d.ts +0 -921
  242. package/dist/core/src/types/videoRoomSession.d.ts.map +0 -1
  243. package/dist/core/src/types/videoStream.d.ts +0 -104
  244. package/dist/core/src/types/videoStream.d.ts.map +0 -1
  245. package/dist/core/src/types/voice.d.ts +0 -15
  246. package/dist/core/src/types/voice.d.ts.map +0 -1
  247. package/dist/core/src/types/voiceCall.d.ts +0 -253
  248. package/dist/core/src/types/voiceCall.d.ts.map +0 -1
  249. package/dist/core/src/types/voiceCollect.d.ts +0 -166
  250. package/dist/core/src/types/voiceCollect.d.ts.map +0 -1
  251. package/dist/core/src/types/voiceConnect.d.ts +0 -77
  252. package/dist/core/src/types/voiceConnect.d.ts.map +0 -1
  253. package/dist/core/src/types/voiceDetect.d.ts +0 -127
  254. package/dist/core/src/types/voiceDetect.d.ts.map +0 -1
  255. package/dist/core/src/types/voicePlayback.d.ts +0 -141
  256. package/dist/core/src/types/voicePlayback.d.ts.map +0 -1
  257. package/dist/core/src/types/voicePrompt.d.ts +0 -105
  258. package/dist/core/src/types/voicePrompt.d.ts.map +0 -1
  259. package/dist/core/src/types/voiceRecording.d.ts +0 -107
  260. package/dist/core/src/types/voiceRecording.d.ts.map +0 -1
  261. package/dist/core/src/types/voiceSendDigits.d.ts +0 -21
  262. package/dist/core/src/types/voiceSendDigits.d.ts.map +0 -1
  263. package/dist/core/src/types/voiceTap.d.ts +0 -116
  264. package/dist/core/src/types/voiceTap.d.ts.map +0 -1
  265. package/dist/core/src/utils/EventEmitter.d.ts +0 -9
  266. package/dist/core/src/utils/EventEmitter.d.ts.map +0 -1
  267. package/dist/core/src/utils/EventEmitter.test.d.ts +0 -2
  268. package/dist/core/src/utils/EventEmitter.test.d.ts.map +0 -1
  269. package/dist/core/src/utils/SWCloseEvent.d.ts +0 -18
  270. package/dist/core/src/utils/SWCloseEvent.d.ts.map +0 -1
  271. package/dist/core/src/utils/asyncRetry.d.ts +0 -18
  272. package/dist/core/src/utils/asyncRetry.d.ts.map +0 -1
  273. package/dist/core/src/utils/asyncRetry.test.d.ts +0 -2
  274. package/dist/core/src/utils/asyncRetry.test.d.ts.map +0 -1
  275. package/dist/core/src/utils/common.d.ts +0 -9
  276. package/dist/core/src/utils/common.d.ts.map +0 -1
  277. package/dist/core/src/utils/constants.d.ts +0 -44
  278. package/dist/core/src/utils/constants.d.ts.map +0 -1
  279. package/dist/core/src/utils/debounce.d.ts +0 -8
  280. package/dist/core/src/utils/debounce.d.ts.map +0 -1
  281. package/dist/core/src/utils/eventUtils.d.ts +0 -2
  282. package/dist/core/src/utils/eventUtils.d.ts.map +0 -1
  283. package/dist/core/src/utils/extendComponent.d.ts +0 -4
  284. package/dist/core/src/utils/extendComponent.d.ts.map +0 -1
  285. package/dist/core/src/utils/extendComponent.test.d.ts +0 -2
  286. package/dist/core/src/utils/extendComponent.test.d.ts.map +0 -1
  287. package/dist/core/src/utils/index.d.ts +0 -47
  288. package/dist/core/src/utils/index.d.ts.map +0 -1
  289. package/dist/core/src/utils/index.test.d.ts +0 -2
  290. package/dist/core/src/utils/index.test.d.ts.map +0 -1
  291. package/dist/core/src/utils/interfaces.d.ts +0 -296
  292. package/dist/core/src/utils/interfaces.d.ts.map +0 -1
  293. package/dist/core/src/utils/logger.d.ts +0 -6
  294. package/dist/core/src/utils/logger.d.ts.map +0 -1
  295. package/dist/core/src/utils/logger.test.d.ts +0 -2
  296. package/dist/core/src/utils/logger.test.d.ts.map +0 -1
  297. package/dist/core/src/utils/parseRPCResponse.d.ts +0 -10
  298. package/dist/core/src/utils/parseRPCResponse.d.ts.map +0 -1
  299. package/dist/core/src/utils/parseRPCResponse.test.d.ts +0 -2
  300. package/dist/core/src/utils/parseRPCResponse.test.d.ts.map +0 -1
  301. package/dist/core/src/utils/storage/index.d.ts +0 -11
  302. package/dist/core/src/utils/storage/index.d.ts.map +0 -1
  303. package/dist/core/src/utils/storage/index.native.d.ts +0 -11
  304. package/dist/core/src/utils/storage/index.native.d.ts.map +0 -1
  305. package/dist/core/src/utils/toExternalJSON.d.ts +0 -34
  306. package/dist/core/src/utils/toExternalJSON.d.ts.map +0 -1
  307. package/dist/core/src/utils/toExternalJSON.test.d.ts +0 -2
  308. package/dist/core/src/utils/toExternalJSON.test.d.ts.map +0 -1
  309. package/dist/core/src/utils/toInternalAction.d.ts +0 -7
  310. package/dist/core/src/utils/toInternalAction.d.ts.map +0 -1
  311. package/dist/core/src/utils/toInternalAction.test.d.ts +0 -2
  312. package/dist/core/src/utils/toInternalAction.test.d.ts.map +0 -1
  313. package/dist/core/src/utils/toInternalEventName.d.ts +0 -8
  314. package/dist/core/src/utils/toInternalEventName.d.ts.map +0 -1
  315. package/dist/core/src/utils/toInternalEventName.test.d.ts +0 -2
  316. package/dist/core/src/utils/toInternalEventName.test.d.ts.map +0 -1
  317. package/dist/core/src/utils/toSnakeCaseKeys.d.ts +0 -7
  318. package/dist/core/src/utils/toSnakeCaseKeys.d.ts.map +0 -1
  319. package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts +0 -2
  320. package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts.map +0 -1
  321. package/dist/core/src/workers/executeActionWorker.d.ts +0 -7
  322. package/dist/core/src/workers/executeActionWorker.d.ts.map +0 -1
  323. package/dist/core/src/workers/index.d.ts +0 -2
  324. package/dist/core/src/workers/index.d.ts.map +0 -1
  325. package/dist/index.esm.js +0 -4673
  326. package/dist/index.esm.js.map +0 -7
  327. package/dist/index.js +0 -4655
  328. package/dist/index.js.map +0 -7
  329. package/dist/index.umd.js +0 -31
  330. package/dist/index.umd.js.map +0 -1
  331. package/dist/js/src/BaseRoomSession.d.ts +0 -52
  332. package/dist/js/src/BaseRoomSession.d.ts.map +0 -1
  333. package/dist/js/src/Client.d.ts +0 -38
  334. package/dist/js/src/Client.d.ts.map +0 -1
  335. package/dist/js/src/JWTSession.d.ts +0 -31
  336. package/dist/js/src/JWTSession.d.ts.map +0 -1
  337. package/dist/js/src/RoomSessionDevice.d.ts +0 -30
  338. package/dist/js/src/RoomSessionDevice.d.ts.map +0 -1
  339. package/dist/js/src/RoomSessionScreenShare.d.ts +0 -26
  340. package/dist/js/src/RoomSessionScreenShare.d.ts.map +0 -1
  341. package/dist/js/src/VideoOverlays.d.ts +0 -42
  342. package/dist/js/src/VideoOverlays.d.ts.map +0 -1
  343. package/dist/js/src/buildVideoElement.d.ts +0 -18
  344. package/dist/js/src/buildVideoElement.d.ts.map +0 -1
  345. package/dist/js/src/cantina/VideoManager.d.ts +0 -16
  346. package/dist/js/src/cantina/VideoManager.d.ts.map +0 -1
  347. package/dist/js/src/cantina/index.d.ts +0 -2
  348. package/dist/js/src/cantina/index.d.ts.map +0 -1
  349. package/dist/js/src/cantina/workers/index.d.ts +0 -2
  350. package/dist/js/src/cantina/workers/index.d.ts.map +0 -1
  351. package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts +0 -4
  352. package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts.map +0 -1
  353. package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts +0 -4
  354. package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts.map +0 -1
  355. package/dist/js/src/cantina/workers/videoManagerWorker.d.ts +0 -7
  356. package/dist/js/src/cantina/workers/videoManagerWorker.d.ts.map +0 -1
  357. package/dist/js/src/chat/Client.d.ts +0 -46
  358. package/dist/js/src/chat/Client.d.ts.map +0 -1
  359. package/dist/js/src/chat/index.d.ts +0 -5
  360. package/dist/js/src/chat/index.d.ts.map +0 -1
  361. package/dist/js/src/createClient.d.ts +0 -26
  362. package/dist/js/src/createClient.d.ts.map +0 -1
  363. package/dist/js/src/createRoomObject.d.ts +0 -38
  364. package/dist/js/src/createRoomObject.d.ts.map +0 -1
  365. package/dist/js/src/fabric/FabricRoomSession.d.ts +0 -80
  366. package/dist/js/src/fabric/FabricRoomSession.d.ts.map +0 -1
  367. package/dist/js/src/fabric/FabricRoomSessionMember.d.ts +0 -46
  368. package/dist/js/src/fabric/FabricRoomSessionMember.d.ts.map +0 -1
  369. package/dist/js/src/fabric/HTTPClient.d.ts +0 -16
  370. package/dist/js/src/fabric/HTTPClient.d.ts.map +0 -1
  371. package/dist/js/src/fabric/IncomingCallManager.d.ts +0 -19
  372. package/dist/js/src/fabric/IncomingCallManager.d.ts.map +0 -1
  373. package/dist/js/src/fabric/SATSession.d.ts +0 -25
  374. package/dist/js/src/fabric/SATSession.d.ts.map +0 -1
  375. package/dist/js/src/fabric/SignalWire.d.ts +0 -3
  376. package/dist/js/src/fabric/SignalWire.d.ts.map +0 -1
  377. package/dist/js/src/fabric/WSClient.d.ts +0 -33
  378. package/dist/js/src/fabric/WSClient.d.ts.map +0 -1
  379. package/dist/js/src/fabric/createHttpClient.d.ts +0 -22
  380. package/dist/js/src/fabric/createHttpClient.d.ts.map +0 -1
  381. package/dist/js/src/fabric/createWSClient.d.ts +0 -38
  382. package/dist/js/src/fabric/createWSClient.d.ts.map +0 -1
  383. package/dist/js/src/fabric/index.d.ts +0 -15
  384. package/dist/js/src/fabric/index.d.ts.map +0 -1
  385. package/dist/js/src/fabric/interfaces/address.d.ts +0 -37
  386. package/dist/js/src/fabric/interfaces/address.d.ts.map +0 -1
  387. package/dist/js/src/fabric/interfaces/capabilities.d.ts +0 -29
  388. package/dist/js/src/fabric/interfaces/capabilities.d.ts.map +0 -1
  389. package/dist/js/src/fabric/interfaces/conversation.d.ts +0 -105
  390. package/dist/js/src/fabric/interfaces/conversation.d.ts.map +0 -1
  391. package/dist/js/src/fabric/interfaces/device.d.ts +0 -18
  392. package/dist/js/src/fabric/interfaces/device.d.ts.map +0 -1
  393. package/dist/js/src/fabric/interfaces/httpClient.d.ts +0 -41
  394. package/dist/js/src/fabric/interfaces/httpClient.d.ts.map +0 -1
  395. package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts +0 -30
  396. package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts.map +0 -1
  397. package/dist/js/src/fabric/interfaces/index.d.ts +0 -71
  398. package/dist/js/src/fabric/interfaces/index.d.ts.map +0 -1
  399. package/dist/js/src/fabric/interfaces/wsClient.d.ts +0 -132
  400. package/dist/js/src/fabric/interfaces/wsClient.d.ts.map +0 -1
  401. package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts +0 -28
  402. package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts.map +0 -1
  403. package/dist/js/src/fabric/utils/constants.d.ts +0 -5
  404. package/dist/js/src/fabric/utils/constants.d.ts.map +0 -1
  405. package/dist/js/src/fabric/utils/eventMappers.d.ts +0 -151
  406. package/dist/js/src/fabric/utils/eventMappers.d.ts.map +0 -1
  407. package/dist/js/src/fabric/utils/typeGuard.d.ts +0 -6
  408. package/dist/js/src/fabric/utils/typeGuard.d.ts.map +0 -1
  409. package/dist/js/src/fabric/utils/validationProxy.d.ts +0 -13
  410. package/dist/js/src/fabric/utils/validationProxy.d.ts.map +0 -1
  411. package/dist/js/src/fabric/utils/validators.d.ts +0 -20
  412. package/dist/js/src/fabric/utils/validators.d.ts.map +0 -1
  413. package/dist/js/src/fabric/workers/callJoinWorker.d.ts +0 -4
  414. package/dist/js/src/fabric/workers/callJoinWorker.d.ts.map +0 -1
  415. package/dist/js/src/fabric/workers/callLeftWorker.d.ts +0 -4
  416. package/dist/js/src/fabric/workers/callLeftWorker.d.ts.map +0 -1
  417. package/dist/js/src/fabric/workers/callSegmentWorker.d.ts +0 -4
  418. package/dist/js/src/fabric/workers/callSegmentWorker.d.ts.map +0 -1
  419. package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts +0 -4
  420. package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts.map +0 -1
  421. package/dist/js/src/fabric/workers/fabricWorker.d.ts +0 -7
  422. package/dist/js/src/fabric/workers/fabricWorker.d.ts.map +0 -1
  423. package/dist/js/src/fabric/workers/index.d.ts +0 -3
  424. package/dist/js/src/fabric/workers/index.d.ts.map +0 -1
  425. package/dist/js/src/fabric/workers/wsClientWorker.d.ts +0 -4
  426. package/dist/js/src/fabric/workers/wsClientWorker.d.ts.map +0 -1
  427. package/dist/js/src/features/actions.d.ts +0 -2
  428. package/dist/js/src/features/actions.d.ts.map +0 -1
  429. package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts +0 -7
  430. package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts.map +0 -1
  431. package/dist/js/src/index.d.ts +0 -87
  432. package/dist/js/src/index.d.ts.map +0 -1
  433. package/dist/js/src/joinRoom.d.ts +0 -24
  434. package/dist/js/src/joinRoom.d.ts.map +0 -1
  435. package/dist/js/src/pubSub/Client.d.ts +0 -46
  436. package/dist/js/src/pubSub/Client.d.ts.map +0 -1
  437. package/dist/js/src/pubSub/index.d.ts +0 -6
  438. package/dist/js/src/pubSub/index.d.ts.map +0 -1
  439. package/dist/js/src/setupTests.d.ts +0 -2
  440. package/dist/js/src/setupTests.d.ts.map +0 -1
  441. package/dist/js/src/testUtils.d.ts +0 -77
  442. package/dist/js/src/testUtils.d.ts.map +0 -1
  443. package/dist/js/src/utils/CloseEvent.d.ts +0 -7
  444. package/dist/js/src/utils/CloseEvent.d.ts.map +0 -1
  445. package/dist/js/src/utils/audioElement.d.ts +0 -6
  446. package/dist/js/src/utils/audioElement.d.ts.map +0 -1
  447. package/dist/js/src/utils/constants.d.ts +0 -2
  448. package/dist/js/src/utils/constants.d.ts.map +0 -1
  449. package/dist/js/src/utils/interfaces/base.d.ts +0 -55
  450. package/dist/js/src/utils/interfaces/base.d.ts.map +0 -1
  451. package/dist/js/src/utils/interfaces/fabric.d.ts +0 -71
  452. package/dist/js/src/utils/interfaces/fabric.d.ts.map +0 -1
  453. package/dist/js/src/utils/interfaces/index.d.ts +0 -4
  454. package/dist/js/src/utils/interfaces/index.d.ts.map +0 -1
  455. package/dist/js/src/utils/interfaces/video.d.ts +0 -307
  456. package/dist/js/src/utils/interfaces/video.d.ts.map +0 -1
  457. package/dist/js/src/utils/makeQueryParamsUrl.d.ts +0 -9
  458. package/dist/js/src/utils/makeQueryParamsUrl.d.ts.map +0 -1
  459. package/dist/js/src/utils/paginatedResult.d.ts +0 -12
  460. package/dist/js/src/utils/paginatedResult.d.ts.map +0 -1
  461. package/dist/js/src/utils/roomSession.d.ts +0 -26
  462. package/dist/js/src/utils/roomSession.d.ts.map +0 -1
  463. package/dist/js/src/utils/storage.d.ts +0 -10
  464. package/dist/js/src/utils/storage.d.ts.map +0 -1
  465. package/dist/js/src/utils/videoElement.d.ts +0 -35
  466. package/dist/js/src/utils/videoElement.d.ts.map +0 -1
  467. package/dist/js/src/video/RoomSession.d.ts +0 -38
  468. package/dist/js/src/video/RoomSession.d.ts.map +0 -1
  469. package/dist/js/src/video/VideoRoomSession.d.ts +0 -57
  470. package/dist/js/src/video/VideoRoomSession.d.ts.map +0 -1
  471. package/dist/js/src/video/index.d.ts +0 -16
  472. package/dist/js/src/video/index.d.ts.map +0 -1
  473. package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts +0 -10
  474. package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts.map +0 -1
  475. package/dist/js/src/video/workers/index.d.ts +0 -7
  476. package/dist/js/src/video/workers/index.d.ts.map +0 -1
  477. package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts +0 -14
  478. package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts.map +0 -1
  479. package/dist/js/src/video/workers/videoPlaybackWorker.d.ts +0 -4
  480. package/dist/js/src/video/workers/videoPlaybackWorker.d.ts.map +0 -1
  481. package/dist/js/src/video/workers/videoRecordWorker.d.ts +0 -4
  482. package/dist/js/src/video/workers/videoRecordWorker.d.ts.map +0 -1
  483. package/dist/js/src/video/workers/videoStreamWorker.d.ts +0 -4
  484. package/dist/js/src/video/workers/videoStreamWorker.d.ts.map +0 -1
  485. package/dist/js/src/video/workers/videoWorker.d.ts +0 -7
  486. package/dist/js/src/video/workers/videoWorker.d.ts.map +0 -1
  487. package/dist/js/src/webrtc.d.ts +0 -3
  488. package/dist/js/src/webrtc.d.ts.map +0 -1
  489. package/dist/js/tsconfig.build.tsbuildinfo +0 -1
  490. package/dist/webrtc/src/BaseConnection.d.ts +0 -232
  491. package/dist/webrtc/src/BaseConnection.d.ts.map +0 -1
  492. package/dist/webrtc/src/RTCPeer.d.ts +0 -134
  493. package/dist/webrtc/src/RTCPeer.d.ts.map +0 -1
  494. package/dist/webrtc/src/RTCPeer.test.d.ts +0 -2
  495. package/dist/webrtc/src/RTCPeer.test.d.ts.map +0 -1
  496. package/dist/webrtc/src/RTCPeerConnectionManager.d.ts +0 -63
  497. package/dist/webrtc/src/RTCPeerConnectionManager.d.ts.map +0 -1
  498. package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts +0 -2
  499. package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts.map +0 -1
  500. package/dist/webrtc/src/connectionPoolManager.d.ts +0 -14
  501. package/dist/webrtc/src/connectionPoolManager.d.ts.map +0 -1
  502. package/dist/webrtc/src/index.d.ts +0 -7
  503. package/dist/webrtc/src/index.d.ts.map +0 -1
  504. package/dist/webrtc/src/index.test.d.ts +0 -1
  505. package/dist/webrtc/src/index.test.d.ts.map +0 -1
  506. package/dist/webrtc/src/setupTests.d.ts +0 -2
  507. package/dist/webrtc/src/setupTests.d.ts.map +0 -1
  508. package/dist/webrtc/src/utils/constants.d.ts +0 -7
  509. package/dist/webrtc/src/utils/constants.d.ts.map +0 -1
  510. package/dist/webrtc/src/utils/deviceHelpers.d.ts +0 -319
  511. package/dist/webrtc/src/utils/deviceHelpers.d.ts.map +0 -1
  512. package/dist/webrtc/src/utils/deviceHelpers.test.d.ts +0 -2
  513. package/dist/webrtc/src/utils/deviceHelpers.test.d.ts.map +0 -1
  514. package/dist/webrtc/src/utils/enumerateDevices.d.ts +0 -25
  515. package/dist/webrtc/src/utils/enumerateDevices.d.ts.map +0 -1
  516. package/dist/webrtc/src/utils/getDisplayMedia.d.ts +0 -17
  517. package/dist/webrtc/src/utils/getDisplayMedia.d.ts.map +0 -1
  518. package/dist/webrtc/src/utils/getUserMedia.d.ts +0 -35
  519. package/dist/webrtc/src/utils/getUserMedia.d.ts.map +0 -1
  520. package/dist/webrtc/src/utils/helpers.d.ts +0 -18
  521. package/dist/webrtc/src/utils/helpers.d.ts.map +0 -1
  522. package/dist/webrtc/src/utils/helpers.test.d.ts +0 -2
  523. package/dist/webrtc/src/utils/helpers.test.d.ts.map +0 -1
  524. package/dist/webrtc/src/utils/index.d.ts +0 -8
  525. package/dist/webrtc/src/utils/index.d.ts.map +0 -1
  526. package/dist/webrtc/src/utils/interfaces.d.ts +0 -139
  527. package/dist/webrtc/src/utils/interfaces.d.ts.map +0 -1
  528. package/dist/webrtc/src/utils/mockTracks.d.ts +0 -26
  529. package/dist/webrtc/src/utils/mockTracks.d.ts.map +0 -1
  530. package/dist/webrtc/src/utils/permissions.d.ts +0 -48
  531. package/dist/webrtc/src/utils/permissions.d.ts.map +0 -1
  532. package/dist/webrtc/src/utils/primitives.d.ts +0 -54
  533. package/dist/webrtc/src/utils/primitives.d.ts.map +0 -1
  534. package/dist/webrtc/src/utils/primitives.native.d.ts +0 -36
  535. package/dist/webrtc/src/utils/primitives.native.d.ts.map +0 -1
  536. package/dist/webrtc/src/utils/requestPermissions.d.ts +0 -27
  537. package/dist/webrtc/src/utils/requestPermissions.d.ts.map +0 -1
  538. package/dist/webrtc/src/utils/sdpHelpers.d.ts +0 -61
  539. package/dist/webrtc/src/utils/sdpHelpers.d.ts.map +0 -1
  540. package/dist/webrtc/src/utils/sdpHelpers.test.d.ts +0 -2
  541. package/dist/webrtc/src/utils/sdpHelpers.test.d.ts.map +0 -1
  542. package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts +0 -7
  543. package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts.map +0 -1
  544. package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts +0 -2
  545. package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts.map +0 -1
  546. package/dist/webrtc/src/webrtcMocks.d.ts +0 -110
  547. package/dist/webrtc/src/webrtcMocks.d.ts.map +0 -1
  548. package/dist/webrtc/src/workers/connectionPoolWorker.d.ts +0 -7
  549. package/dist/webrtc/src/workers/connectionPoolWorker.d.ts.map +0 -1
  550. package/dist/webrtc/src/workers/index.d.ts +0 -7
  551. package/dist/webrtc/src/workers/index.d.ts.map +0 -1
  552. package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts +0 -10
  553. package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts.map +0 -1
  554. package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts +0 -10
  555. package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts.map +0 -1
  556. package/dist/webrtc/src/workers/sessionAuthWorker.d.ts +0 -10
  557. package/dist/webrtc/src/workers/sessionAuthWorker.d.ts.map +0 -1
  558. package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts +0 -7
  559. package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts.map +0 -1
  560. package/dist/webrtc/src/workers/vertoEventWorker.d.ts +0 -10
  561. package/dist/webrtc/src/workers/vertoEventWorker.d.ts.map +0 -1
  562. package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts +0 -2
  563. package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts.map +0 -1
  564. package/src/BaseRoomSession.ts +0 -302
  565. package/src/Client.ts +0 -193
  566. package/src/JWTSession.test.ts +0 -60
  567. package/src/JWTSession.ts +0 -146
  568. package/src/RoomSessionDevice.test.ts +0 -25
  569. package/src/RoomSessionDevice.ts +0 -62
  570. package/src/RoomSessionScreenShare.test.ts +0 -25
  571. package/src/RoomSessionScreenShare.ts +0 -58
  572. package/src/VideoOverlays.ts +0 -171
  573. package/src/buildVideoElement.test.ts +0 -933
  574. package/src/buildVideoElement.ts +0 -290
  575. package/src/cantina/VideoManager.test.ts +0 -95
  576. package/src/cantina/VideoManager.ts +0 -72
  577. package/src/cantina/index.ts +0 -1
  578. package/src/cantina/workers/index.ts +0 -1
  579. package/src/cantina/workers/videoManagerRoomWorker.ts +0 -28
  580. package/src/cantina/workers/videoManagerRoomsWorker.ts +0 -34
  581. package/src/cantina/workers/videoManagerWorker.ts +0 -64
  582. package/src/chat/Client.test.ts +0 -688
  583. package/src/chat/Client.ts +0 -94
  584. package/src/chat/index.ts +0 -31
  585. package/src/createClient.test.ts +0 -124
  586. package/src/createClient.ts +0 -48
  587. package/src/createRoomObject.ts +0 -149
  588. package/src/fabric/FabricRoomSession.test.ts +0 -695
  589. package/src/fabric/FabricRoomSession.ts +0 -446
  590. package/src/fabric/FabricRoomSessionMember.ts +0 -188
  591. package/src/fabric/HTTPClient.test.ts +0 -28
  592. package/src/fabric/HTTPClient.ts +0 -154
  593. package/src/fabric/IncomingCallManager.test.ts +0 -295
  594. package/src/fabric/IncomingCallManager.ts +0 -92
  595. package/src/fabric/SATSession.test.ts +0 -65
  596. package/src/fabric/SATSession.ts +0 -102
  597. package/src/fabric/SignalWire.test.ts +0 -115
  598. package/src/fabric/SignalWire.ts +0 -101
  599. package/src/fabric/WSClient.ts +0 -430
  600. package/src/fabric/createHttpClient.ts +0 -188
  601. package/src/fabric/createWSClient.ts +0 -12
  602. package/src/fabric/index.ts +0 -30
  603. package/src/fabric/interfaces/address.ts +0 -46
  604. package/src/fabric/interfaces/capabilities.ts +0 -30
  605. package/src/fabric/interfaces/conversation.ts +0 -145
  606. package/src/fabric/interfaces/device.ts +0 -21
  607. package/src/fabric/interfaces/httpClient.ts +0 -50
  608. package/src/fabric/interfaces/incomingCallManager.ts +0 -36
  609. package/src/fabric/interfaces/index.ts +0 -118
  610. package/src/fabric/interfaces/wsClient.ts +0 -154
  611. package/src/fabric/utils/capabilitiesHelpers.test.ts +0 -201
  612. package/src/fabric/utils/capabilitiesHelpers.ts +0 -208
  613. package/src/fabric/utils/constants.ts +0 -4
  614. package/src/fabric/utils/eventMappers.ts +0 -184
  615. package/src/fabric/utils/typeGuard.ts +0 -31
  616. package/src/fabric/utils/validationProxy.ts +0 -83
  617. package/src/fabric/utils/validators.ts +0 -242
  618. package/src/fabric/workers/callJoinWorker.ts +0 -88
  619. package/src/fabric/workers/callLeftWorker.ts +0 -32
  620. package/src/fabric/workers/callSegmentWorker.ts +0 -154
  621. package/src/fabric/workers/fabricMemberWorker.ts +0 -62
  622. package/src/fabric/workers/fabricWorker.ts +0 -100
  623. package/src/fabric/workers/index.ts +0 -2
  624. package/src/fabric/workers/wsClientWorker.ts +0 -60
  625. package/src/features/actions.ts +0 -5
  626. package/src/features/mediaElements/mediaElementsSagas.ts +0 -129
  627. package/src/index.test.ts +0 -5
  628. package/src/index.ts +0 -153
  629. package/src/joinRoom.ts +0 -29
  630. package/src/pubSub/Client.test.ts +0 -245
  631. package/src/pubSub/Client.ts +0 -90
  632. package/src/pubSub/index.ts +0 -10
  633. package/src/setupTests.ts +0 -122
  634. package/src/testUtils.ts +0 -259
  635. package/src/utils/CloseEvent.ts +0 -6
  636. package/src/utils/audioElement.ts +0 -21
  637. package/src/utils/constants.ts +0 -7
  638. package/src/utils/interfaces/base.ts +0 -55
  639. package/src/utils/interfaces/fabric.ts +0 -156
  640. package/src/utils/interfaces/index.ts +0 -3
  641. package/src/utils/interfaces/video.ts +0 -440
  642. package/src/utils/makeQueryParamsUrl.ts +0 -14
  643. package/src/utils/paginatedResult.ts +0 -35
  644. package/src/utils/roomSession.test.ts +0 -140
  645. package/src/utils/roomSession.ts +0 -85
  646. package/src/utils/storage.test.ts +0 -24
  647. package/src/utils/storage.ts +0 -37
  648. package/src/utils/videoElement.ts +0 -342
  649. package/src/video/RoomSession.test.ts +0 -31
  650. package/src/video/RoomSession.ts +0 -290
  651. package/src/video/VideoRoomSession.test.ts +0 -672
  652. package/src/video/VideoRoomSession.ts +0 -304
  653. package/src/video/index.ts +0 -43
  654. package/src/video/workers/childMemberJoinedWorker.test.ts +0 -99
  655. package/src/video/workers/childMemberJoinedWorker.ts +0 -75
  656. package/src/video/workers/index.ts +0 -6
  657. package/src/video/workers/memberListUpdatedWorker.ts +0 -217
  658. package/src/video/workers/videoPlaybackWorker.ts +0 -54
  659. package/src/video/workers/videoRecordWorker.ts +0 -54
  660. package/src/video/workers/videoStreamWorker.ts +0 -48
  661. package/src/video/workers/videoWorker.ts +0 -113
  662. package/src/webrtc.ts +0 -33
package/src/Client.ts DELETED
@@ -1,193 +0,0 @@
1
- import {
2
- BaseClient,
3
- ClientEvents,
4
- ClientContract,
5
- actions,
6
- Chat as ChatNamespace,
7
- PubSub as PubSubNamespace,
8
- } from '@signalwire/core'
9
- import type { CustomSaga } from '@signalwire/core'
10
- import { ConnectionOptions } from '@signalwire/webrtc'
11
- import { makeAudioElementSaga } from './features/mediaElements/mediaElementsSagas'
12
- import { VideoManager, createVideoManagerObject } from './cantina'
13
- import type { Client as ChatClient } from './chat/Client'
14
- import type { Client as PubSubClient } from './pubSub/Client'
15
- import type { RoomSession } from './video/RoomSession'
16
- import { buildVideoElement } from './buildVideoElement'
17
- import {
18
- createVideoRoomSessionObject,
19
- VideoRoomSessionConnection,
20
- } from './video/VideoRoomSession'
21
- import { CallParams } from './fabric/interfaces'
22
-
23
- export interface Client<RoomSessionType = RoomSession>
24
- extends ClientContract<Client<RoomSessionType>, ClientEvents> {
25
- rooms: ClientAPI['rooms']
26
- chat: ClientAPI['chat']
27
- pubSub: ClientAPI['pubSub']
28
- }
29
-
30
- export interface MakeRoomOptions extends CallParams, ConnectionOptions {
31
- /** Local media stream to override the local video and audio stream tracks */
32
- localStream?: MediaStream
33
- }
34
-
35
- export class ClientAPI extends BaseClient<ClientEvents> {
36
- private _videoManager: VideoManager
37
- private _chat: ChatClient
38
- private _pubSub: PubSubClient
39
-
40
- get rooms() {
41
- return {
42
- makeRoomObject: (makeRoomOptions: MakeRoomOptions) => {
43
- const {
44
- rootElement,
45
- applyLocalVideoOverlay = true,
46
- applyMemberOverlay = true,
47
- mirrorLocalVideoOverlay = true,
48
- stopCameraWhileMuted = true,
49
- stopMicrophoneWhileMuted = true,
50
- ...options
51
- } = makeRoomOptions
52
-
53
- // TODO: This might not be needed here. We can initiate these sagas in the BaseRoomSession constructor.
54
- const customSagas: Array<CustomSaga<VideoRoomSessionConnection>> = []
55
-
56
- /**
57
- * By default the SDK will attach the audio to
58
- * an Audio element (regardless of "rootElement")
59
- */
60
- customSagas.push(
61
- makeAudioElementSaga({
62
- speakerId: options.speakerId,
63
- })
64
- )
65
-
66
- const room = createVideoRoomSessionObject({
67
- ...options,
68
- store: this.store,
69
- customSagas,
70
- })
71
-
72
- /**
73
- * If the user provides a `rootElement` we'll
74
- * automatically handle the Video element for them
75
- */
76
- if (rootElement) {
77
- try {
78
- buildVideoElement({
79
- applyLocalVideoOverlay,
80
- applyMemberOverlay,
81
- mirrorLocalVideoOverlay,
82
- room,
83
- rootElement,
84
- })
85
- } catch (error) {
86
- this.logger.error('Unable to build the video element automatically')
87
- }
88
- }
89
-
90
- /**
91
- * If the user joins with `join_video_muted: true` or
92
- * `join_audio_muted: true` we'll stop the streams
93
- * right away.
94
- */
95
- room.on('room.subscribed', (params) => {
96
- const member = params.room_session.members?.find(
97
- (m) => m.id === room.memberId
98
- )
99
-
100
- if (member?.audio_muted) {
101
- try {
102
- room.stopOutboundAudio()
103
- } catch (error) {
104
- this.logger.error('Error handling audio_muted', error)
105
- }
106
- }
107
-
108
- if (member?.video_muted) {
109
- try {
110
- room.stopOutboundVideo()
111
- } catch (error) {
112
- this.logger.error('Error handling video_muted', error)
113
- }
114
- }
115
- })
116
-
117
- /**
118
- * Stop and Restore outbound audio on audio_muted event
119
- */
120
- if (stopMicrophoneWhileMuted) {
121
- room.on('member.updated.audio_muted', ({ member }) => {
122
- try {
123
- if (member.id === room.memberId && 'audio_muted' in member) {
124
- member.audio_muted
125
- ? room.stopOutboundAudio()
126
- : room.restoreOutboundAudio()
127
- }
128
- } catch (error) {
129
- this.logger.error('Error handling audio_muted', error)
130
- }
131
- })
132
- }
133
-
134
- /**
135
- * Stop and Restore outbound video on video_muted event
136
- */
137
- if (stopCameraWhileMuted) {
138
- room.on('member.updated.video_muted', ({ member }) => {
139
- try {
140
- if (member.id === room.memberId && 'video_muted' in member) {
141
- member.video_muted
142
- ? room.stopOutboundVideo()
143
- : room.restoreOutboundVideo()
144
- }
145
- } catch (error) {
146
- this.logger.error('Error handling video_muted', error)
147
- }
148
- })
149
- }
150
-
151
- return room
152
- },
153
- }
154
- }
155
-
156
- get chat() {
157
- if (!this._chat) {
158
- this._chat = ChatNamespace.createBaseChatObject<ChatClient>({
159
- store: this.store,
160
- })
161
- }
162
- return this._chat
163
- }
164
-
165
- get pubSub() {
166
- if (!this._pubSub) {
167
- this._pubSub = PubSubNamespace.createBasePubSubObject<PubSubClient>({
168
- store: this.store,
169
- })
170
- }
171
- return this._pubSub
172
- }
173
-
174
- /** @internal */
175
- get videoManager() {
176
- if (!this._videoManager) {
177
- this._videoManager = createVideoManagerObject(this.options)
178
- }
179
- return this._videoManager
180
- }
181
-
182
- /**
183
- * Reauthenticate with the SignalWire network using a new token
184
- * For now it returns void since with an invalid token the server
185
- * will close the connection right away so we can hook on the session
186
- * events in case. Need to improve it.
187
- *
188
- * @internal
189
- */
190
- reauthenticate(token: string) {
191
- this.store.dispatch(actions.reauthAction({ token }))
192
- }
193
- }
@@ -1,60 +0,0 @@
1
- /**
2
- * @jest-environment jsdom
3
- */
4
-
5
- import { JWTSession } from './JWTSession'
6
-
7
- describe('JWTSession', () => {
8
- it('should give priority to the host coming from the JWT (if present)', () => {
9
- const tokenWithCH =
10
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImNoIjoiZXhhbXBsZS5ob3N0LmRvbWFpbi5jb20ifQ.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.G7CvxKKQV44kk3wdiKaq2VYOb2UayJBpKKPXn_84j9E'
11
- const session = new JWTSession({
12
- token: tokenWithCH,
13
- })
14
-
15
- expect(session.host).toBe('wss://example.host.domain.com')
16
-
17
- const tokenWithoutCH =
18
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
19
- const sessionTwo = new JWTSession({
20
- token: tokenWithoutCH,
21
- })
22
-
23
- expect(sessionTwo.host).toBe('wss://relay.signalwire.com')
24
- })
25
-
26
- it('should override the host option with the connection host header from the token)', () => {
27
- const session = new JWTSession({
28
- host: 'ws://localhost:8080',
29
- token:
30
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImNoIjoiZXhhbXBsZS5ob3N0LmRvbWFpbi5jb20ifQ.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.G7CvxKKQV44kk3wdiKaq2VYOb2UayJBpKKPXn_84j9E',
31
- })
32
-
33
- expect(session.host).toBe('wss://example.host.domain.com')
34
- })
35
-
36
- it('should fallback to `host` if the `cf` header coming on the JWT is not there or invalid', () => {
37
- const sessionOne = new JWTSession({
38
- host: 'ws://localhost:8080',
39
- token:
40
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c',
41
- })
42
-
43
- const sessionTwo = new JWTSession({
44
- host: 'ws://localhost:8080',
45
- token: '<invalid-jwt>',
46
- })
47
-
48
- expect(sessionOne.host).toBe('ws://localhost:8080')
49
- expect(sessionTwo.host).toBe('ws://localhost:8080')
50
- })
51
-
52
- it('should fallback to the default host if either `host` or `jwt.header.cf` are not defined', () => {
53
- const session = new JWTSession({
54
- token:
55
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c',
56
- })
57
-
58
- expect(session.host).toBe('wss://relay.signalwire.com')
59
- })
60
- })
package/src/JWTSession.ts DELETED
@@ -1,146 +0,0 @@
1
- import jwtDecode from 'jwt-decode'
2
- import {
3
- BaseJWTSession,
4
- getLogger,
5
- SessionOptions,
6
- SwAuthorizationState,
7
- type SWCloseEvent,
8
- } from '@signalwire/core'
9
- import { getStorage, sessionStorageManager } from './utils/storage'
10
- import { SwCloseEvent } from './utils/CloseEvent'
11
-
12
- type JWTHeader = { ch?: string; typ?: string }
13
-
14
- export class JWTSession extends BaseJWTSession {
15
- public WebSocketConstructor = WebSocket
16
- public CloseEventConstructor = SwCloseEvent
17
- public agent = process.env.SDK_PKG_AGENT!
18
-
19
- private tokenTyp: string
20
-
21
- constructor(public options: SessionOptions) {
22
- let decodedJwt: JWTHeader = {}
23
- try {
24
- decodedJwt = jwtDecode(options.token, {
25
- header: true,
26
- })
27
- } catch (e) {
28
- if (process.env.NODE_ENV !== 'production') {
29
- getLogger().debug('[JWTSession] error decoding the JWT')
30
- }
31
- }
32
-
33
- super({
34
- ...options,
35
- host: decodedJwt?.ch || options.host,
36
- })
37
- this.tokenTyp = decodedJwt.typ ?? 'VRT'
38
- }
39
-
40
- get allowReattach() {
41
- // @ts-expect-error
42
- return this.options?.reattach !== false && (this.isVRT() || this.isSAT())
43
- }
44
-
45
- override async retrieveRelayProtocol() {
46
- if (!this.allowReattach) {
47
- return ''
48
- }
49
-
50
- const { protocolKey } = sessionStorageManager(this.options.token)
51
- if (protocolKey) {
52
- this.logger.trace('Search protocol for', protocolKey)
53
- return getStorage()?.getItem(protocolKey) ?? ''
54
- }
55
- return ''
56
- }
57
-
58
- override async persistRelayProtocol() {
59
- if (!this.allowReattach) {
60
- return
61
- }
62
-
63
- const { protocolKey } = sessionStorageManager(this.options.token)
64
- if (protocolKey) {
65
- this.logger.trace('Persist protocol', protocolKey, this.relayProtocol)
66
- getStorage()?.setItem(protocolKey, this.relayProtocol)
67
- }
68
- }
69
-
70
- override removeRelayProtocol() {
71
- const { protocolKey } = sessionStorageManager(this.options.token)
72
- if (protocolKey) {
73
- this.logger.debug('Remove protocol', protocolKey, this.relayProtocol)
74
- getStorage()?.removeItem(protocolKey)
75
- }
76
- }
77
-
78
- override removePrevCallId() {
79
- const { callIdKey } = sessionStorageManager(this.options.token)
80
- if (callIdKey) {
81
- this.logger.debug('Remove Call', callIdKey)
82
- getStorage()?.removeItem(callIdKey)
83
- }
84
- }
85
-
86
- protected override async retrieveSwAuthorizationState() {
87
- const { authStateKey } = sessionStorageManager(this.options.token)
88
- if (authStateKey) {
89
- return getStorage()?.getItem(authStateKey) ?? ''
90
- }
91
- return ''
92
- }
93
-
94
- protected override async persistSwAuthorizationState(
95
- state: SwAuthorizationState
96
- ) {
97
- if (!this.allowReattach) {
98
- return
99
- }
100
-
101
- const { authStateKey } = sessionStorageManager(this.options.token)
102
- if (authStateKey) {
103
- this.logger.trace('Persist auth state', authStateKey, state)
104
- getStorage()?.setItem(authStateKey, state)
105
- }
106
- }
107
-
108
- override removeSwAuthorizationState() {
109
- const { authStateKey } = sessionStorageManager(this.options.token)
110
- if (authStateKey) {
111
- this.logger.trace('Remove auth state', authStateKey)
112
- getStorage()?.removeItem(authStateKey)
113
- }
114
- }
115
-
116
- protected override _onSocketClose(event: SWCloseEvent) {
117
- if (this.status === 'disconnected') {
118
- const { protocolKey, authStateKey, callIdKey } = sessionStorageManager(
119
- this.options.token
120
- )
121
- this.logger.debug('Cleaning up storage')
122
- if (protocolKey) {
123
- this.logger.debug('Remove protocolKey', protocolKey)
124
- getStorage()?.removeItem(protocolKey)
125
- }
126
- if (authStateKey) {
127
- this.logger.debug('Remove authStateKey', authStateKey)
128
- getStorage()?.removeItem(authStateKey)
129
- }
130
- if (callIdKey) {
131
- this.logger.debug('Remove callIdKey', callIdKey)
132
- getStorage()?.removeItem(callIdKey)
133
- }
134
- }
135
-
136
- super._onSocketClose(event)
137
- }
138
-
139
- private isVRT() {
140
- return this.tokenTyp === 'VRT'
141
- }
142
-
143
- private isSAT() {
144
- return this.tokenTyp === 'SAT'
145
- }
146
- }
@@ -1,25 +0,0 @@
1
- import { RoomSessionDeviceAPI } from './RoomSessionDevice'
2
- import type { RoomSessionDevice } from './RoomSessionDevice'
3
- import { configureJestStore } from './testUtils'
4
-
5
- describe('RoomDevice Object', () => {
6
- let roomDevice: RoomSessionDevice
7
-
8
- beforeEach(() => {
9
- roomDevice = new RoomSessionDeviceAPI({
10
- store: configureJestStore(),
11
- }) as any as RoomSessionDevice
12
- // @ts-expect-error
13
- roomDevice.execute = jest.fn()
14
- })
15
-
16
- it('should have all the custom methods defined', () => {
17
- expect(roomDevice.audioMute).toBeDefined()
18
- expect(roomDevice.audioUnmute).toBeDefined()
19
- expect(roomDevice.videoMute).toBeDefined()
20
- expect(roomDevice.videoUnmute).toBeDefined()
21
- expect(roomDevice.setMicrophoneVolume).toBeDefined()
22
- expect(roomDevice.setInputVolume).toBeDefined()
23
- expect(roomDevice.setInputSensitivity).toBeDefined()
24
- })
25
- })
@@ -1,62 +0,0 @@
1
- import {
2
- Rooms,
3
- extendComponent,
4
- BaseConnectionContract,
5
- RoomLeft,
6
- RoomLeftEventParams,
7
- BaseConnectionState,
8
- } from '@signalwire/core'
9
- import { BaseConnection, MediaEventNames } from '@signalwire/webrtc'
10
- import { RoomSessionDeviceMethods } from './utils/interfaces'
11
-
12
- type RoomSessionDeviceEventsHandlerMap = Record<
13
- BaseConnectionState,
14
- (params: RoomSessionDevice) => void
15
- > &
16
- Record<RoomLeft, (params?: RoomLeftEventParams) => void> &
17
- Record<MediaEventNames, () => void>
18
-
19
- export type RoomSessionDeviceEvents = {
20
- [k in keyof RoomSessionDeviceEventsHandlerMap]: RoomSessionDeviceEventsHandlerMap[k]
21
- }
22
-
23
- /** @deprecated Use {@link RoomSessionDevice} instead */
24
- export interface RoomDevice extends RoomSessionDevice {}
25
- export interface RoomSessionDevice
26
- extends RoomSessionDeviceMethods,
27
- BaseConnectionContract<RoomSessionDeviceEvents> {
28
- join(): Promise<void>
29
- leave(): Promise<void>
30
- /** @internal */
31
- runWorker: BaseConnection<RoomSessionDeviceEvents>['runWorker']
32
- }
33
-
34
- export class RoomSessionDeviceConnection extends BaseConnection<RoomSessionDeviceEvents> {
35
- join() {
36
- return super.invite()
37
- }
38
-
39
- leave() {
40
- return super.hangup()
41
- }
42
- }
43
-
44
- /**
45
- * A RoomSessionDevice represents a device (such as a microphone or a camera)
46
- * that is at some point in its lifetime part of a {@link RoomSession}. You can
47
- * obtain a RoomSessionDevice from the {@link RoomSession} methods
48
- * {@link RoomSession.addCamera}, {@link RoomSession.addMicrophone}, and
49
- * {@link RoomSession.addDevice}.
50
- */
51
- export const RoomSessionDeviceAPI = extendComponent<
52
- RoomSessionDeviceConnection,
53
- RoomSessionDeviceMethods
54
- >(RoomSessionDeviceConnection, {
55
- audioMute: Rooms.audioMuteMember,
56
- audioUnmute: Rooms.audioUnmuteMember,
57
- videoMute: Rooms.videoMuteMember,
58
- videoUnmute: Rooms.videoUnmuteMember,
59
- setInputVolume: Rooms.setInputVolumeMember,
60
- setMicrophoneVolume: Rooms.setInputVolumeMember,
61
- setInputSensitivity: Rooms.setInputSensitivityMember,
62
- })
@@ -1,25 +0,0 @@
1
- import { RoomSessionScreenShareAPI } from './RoomSessionScreenShare'
2
- import type { RoomSessionScreenShare } from './RoomSessionScreenShare'
3
- import { configureJestStore } from './testUtils'
4
-
5
- describe('RoomScreenShare Object', () => {
6
- let roomScreenShare: RoomSessionScreenShare
7
-
8
- beforeEach(() => {
9
- roomScreenShare = new RoomSessionScreenShareAPI({
10
- store: configureJestStore(),
11
- }) as any as RoomSessionScreenShare
12
- // @ts-expect-error
13
- roomScreenShare.execute = jest.fn()
14
- })
15
-
16
- it('should have all the custom methods defined', () => {
17
- expect(roomScreenShare.audioMute).toBeDefined()
18
- expect(roomScreenShare.audioUnmute).toBeDefined()
19
- expect(roomScreenShare.videoMute).toBeDefined()
20
- expect(roomScreenShare.videoUnmute).toBeDefined()
21
- expect(roomScreenShare.setMicrophoneVolume).toBeDefined()
22
- expect(roomScreenShare.setInputVolume).toBeDefined()
23
- expect(roomScreenShare.setInputSensitivity).toBeDefined()
24
- })
25
- })
@@ -1,58 +0,0 @@
1
- import {
2
- Rooms,
3
- extendComponent,
4
- BaseConnectionContract,
5
- RoomLeft,
6
- RoomLeftEventParams,
7
- BaseConnectionState,
8
- } from '@signalwire/core'
9
- import { BaseConnection, MediaEventNames } from '@signalwire/webrtc'
10
- import { RoomScreenShareMethods } from './utils/interfaces'
11
-
12
- type RoomSessionScreenShareEventsHandlerMap = Record<
13
- BaseConnectionState,
14
- (params: RoomSessionScreenShare) => void
15
- > &
16
- Record<RoomLeft, (params?: RoomLeftEventParams) => void> &
17
- Record<MediaEventNames, () => void>
18
-
19
- export type RoomSessionScreenShareEvents = {
20
- [k in keyof RoomSessionScreenShareEventsHandlerMap]: RoomSessionScreenShareEventsHandlerMap[k]
21
- }
22
-
23
- /** @deprecated Use {@link RoomSessionScreenShare} instead */
24
- export interface RoomScreenShare extends RoomSessionScreenShare {}
25
- export interface RoomSessionScreenShare
26
- extends RoomScreenShareMethods,
27
- BaseConnectionContract<RoomSessionScreenShareEvents> {
28
- join(): Promise<void>
29
- leave(): Promise<void>
30
- /** @internal */
31
- runWorker: BaseConnection<RoomSessionScreenShareEvents>['runWorker']
32
- }
33
-
34
- export class RoomSessionScreenShareConnection extends BaseConnection<RoomSessionScreenShareEvents> {
35
- join() {
36
- return super.invite()
37
- }
38
-
39
- leave() {
40
- return super.hangup()
41
- }
42
- }
43
-
44
- /**
45
- * Represents a screen sharing.
46
- */
47
- export const RoomSessionScreenShareAPI = extendComponent<
48
- RoomSessionScreenShareConnection,
49
- RoomScreenShareMethods
50
- >(RoomSessionScreenShareConnection, {
51
- audioMute: Rooms.audioMuteMember,
52
- audioUnmute: Rooms.audioUnmuteMember,
53
- videoMute: Rooms.videoMuteMember,
54
- videoUnmute: Rooms.videoUnmuteMember,
55
- setMicrophoneVolume: Rooms.setInputVolumeMember,
56
- setInputVolume: Rooms.setInputVolumeMember,
57
- setInputSensitivity: Rooms.setInputSensitivityMember,
58
- })