@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.
- package/dist/base-A5AZTrAd.d.cts +23 -0
- package/dist/base-A5AZTrAd.d.cts.map +1 -0
- package/dist/base-aVtoG8Wk.d.mts +23 -0
- package/dist/base-aVtoG8Wk.d.mts.map +1 -0
- package/dist/browser.mjs +16625 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/browser.umd.js +16646 -0
- package/dist/browser.umd.js.map +1 -0
- package/dist/index.cjs +6210 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2690 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2690 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6194 -0
- package/dist/index.mjs.map +1 -0
- package/dist/operators/index.cjs +6 -0
- package/dist/operators/index.d.cts +109 -0
- package/dist/operators/index.d.cts.map +1 -0
- package/dist/operators/index.d.mts +109 -0
- package/dist/operators/index.d.mts.map +1 -0
- package/dist/operators/index.mjs +3 -0
- package/dist/operators-BHQMSEzq.mjs +371 -0
- package/dist/operators-BHQMSEzq.mjs.map +1 -0
- package/dist/operators-DT4UB24-.cjs +596 -0
- package/dist/operators-DT4UB24-.cjs.map +1 -0
- package/package.json +73 -37
- package/README.md +0 -40
- package/dist/core/src/BaseClient.d.ts +0 -19
- package/dist/core/src/BaseClient.d.ts.map +0 -1
- package/dist/core/src/BaseComponent.d.ts +0 -101
- package/dist/core/src/BaseComponent.d.ts.map +0 -1
- package/dist/core/src/BaseComponent.test.d.ts +0 -2
- package/dist/core/src/BaseComponent.test.d.ts.map +0 -1
- package/dist/core/src/BaseConsumer.d.ts +0 -18
- package/dist/core/src/BaseConsumer.d.ts.map +0 -1
- package/dist/core/src/BaseConsumer.test.d.ts +0 -2
- package/dist/core/src/BaseConsumer.test.d.ts.map +0 -1
- package/dist/core/src/BaseJWTSession.d.ts +0 -47
- package/dist/core/src/BaseJWTSession.d.ts.map +0 -1
- package/dist/core/src/BaseJWTSession.test.d.ts +0 -2
- package/dist/core/src/BaseJWTSession.test.d.ts.map +0 -1
- package/dist/core/src/BaseSession.d.ts +0 -117
- package/dist/core/src/BaseSession.d.ts.map +0 -1
- package/dist/core/src/BaseSession.test.d.ts +0 -2
- package/dist/core/src/BaseSession.test.d.ts.map +0 -1
- package/dist/core/src/CustomErrors.d.ts +0 -17
- package/dist/core/src/CustomErrors.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCConnect.d.ts +0 -42
- package/dist/core/src/RPCMessages/RPCConnect.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCDisconnect.d.ts +0 -8
- package/dist/core/src/RPCMessages/RPCDisconnect.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCEventAck.d.ts +0 -8
- package/dist/core/src/RPCMessages/RPCEventAck.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCExecute.d.ts +0 -16
- package/dist/core/src/RPCMessages/RPCExecute.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCPing.d.ts +0 -16
- package/dist/core/src/RPCMessages/RPCPing.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts +0 -13
- package/dist/core/src/RPCMessages/RPCReauthenticate.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/VertoMessages.d.ts +0 -84
- package/dist/core/src/RPCMessages/VertoMessages.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/helpers.d.ts +0 -31
- package/dist/core/src/RPCMessages/helpers.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/index.d.ts +0 -9
- package/dist/core/src/RPCMessages/index.d.ts.map +0 -1
- package/dist/core/src/RPCMessages/index.test.d.ts +0 -2
- package/dist/core/src/RPCMessages/index.test.d.ts.map +0 -1
- package/dist/core/src/chat/BaseChat.d.ts +0 -23
- package/dist/core/src/chat/BaseChat.d.ts.map +0 -1
- package/dist/core/src/chat/ChatMember.d.ts +0 -15
- package/dist/core/src/chat/ChatMember.d.ts.map +0 -1
- package/dist/core/src/chat/ChatMessage.d.ts +0 -10
- package/dist/core/src/chat/ChatMessage.d.ts.map +0 -1
- package/dist/core/src/chat/applyCommonMethods.d.ts +0 -22
- package/dist/core/src/chat/applyCommonMethods.d.ts.map +0 -1
- package/dist/core/src/chat/index.d.ts +0 -6
- package/dist/core/src/chat/index.d.ts.map +0 -1
- package/dist/core/src/chat/methods.d.ts +0 -31
- package/dist/core/src/chat/methods.d.ts.map +0 -1
- package/dist/core/src/chat/utils/index.d.ts +0 -3
- package/dist/core/src/chat/utils/index.d.ts.map +0 -1
- package/dist/core/src/chat/utils/toInternalChatChannels.d.ts +0 -3
- package/dist/core/src/chat/utils/toInternalChatChannels.d.ts.map +0 -1
- package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts +0 -2
- package/dist/core/src/chat/utils/toInternalChatChannels.test.d.ts.map +0 -1
- package/dist/core/src/chat/workers/chatWorker.d.ts +0 -4
- package/dist/core/src/chat/workers/chatWorker.d.ts.map +0 -1
- package/dist/core/src/chat/workers/index.d.ts +0 -2
- package/dist/core/src/chat/workers/index.d.ts.map +0 -1
- package/dist/core/src/index.d.ts +0 -45
- package/dist/core/src/index.d.ts.map +0 -1
- package/dist/core/src/index.test.d.ts +0 -1
- package/dist/core/src/index.test.d.ts.map +0 -1
- package/dist/core/src/memberPosition/index.d.ts +0 -2
- package/dist/core/src/memberPosition/index.d.ts.map +0 -1
- package/dist/core/src/memberPosition/workers.d.ts +0 -13
- package/dist/core/src/memberPosition/workers.d.ts.map +0 -1
- package/dist/core/src/memberPosition/workers.test.d.ts +0 -2
- package/dist/core/src/memberPosition/workers.test.d.ts.map +0 -1
- package/dist/core/src/pubSub/BasePubSub.d.ts +0 -43
- package/dist/core/src/pubSub/BasePubSub.d.ts.map +0 -1
- package/dist/core/src/pubSub/PubSubMessage.d.ts +0 -19
- package/dist/core/src/pubSub/PubSubMessage.d.ts.map +0 -1
- package/dist/core/src/pubSub/index.d.ts +0 -3
- package/dist/core/src/pubSub/index.d.ts.map +0 -1
- package/dist/core/src/pubSub/workers/index.d.ts +0 -2
- package/dist/core/src/pubSub/workers/index.d.ts.map +0 -1
- package/dist/core/src/pubSub/workers/pubSubWorker.d.ts +0 -4
- package/dist/core/src/pubSub/workers/pubSubWorker.d.ts.map +0 -1
- package/dist/core/src/redux/actions.d.ts +0 -25
- package/dist/core/src/redux/actions.d.ts.map +0 -1
- package/dist/core/src/redux/connect.d.ts +0 -23
- package/dist/core/src/redux/connect.d.ts.map +0 -1
- package/dist/core/src/redux/connect.test.d.ts +0 -2
- package/dist/core/src/redux/connect.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSaga.d.ts +0 -4
- package/dist/core/src/redux/features/component/componentSaga.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSaga.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSaga.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSelectors.d.ts +0 -7
- package/dist/core/src/redux/features/component/componentSelectors.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSelectors.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSelectors.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSlice.d.ts +0 -2319
- package/dist/core/src/redux/features/component/componentSlice.d.ts.map +0 -1
- package/dist/core/src/redux/features/component/componentSlice.test.d.ts +0 -2
- package/dist/core/src/redux/features/component/componentSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/features/index.d.ts +0 -3
- package/dist/core/src/redux/features/index.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSaga.d.ts +0 -11
- package/dist/core/src/redux/features/session/sessionSaga.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSelectors.d.ts +0 -9
- package/dist/core/src/redux/features/session/sessionSelectors.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSlice.d.ts +0 -521
- package/dist/core/src/redux/features/session/sessionSlice.d.ts.map +0 -1
- package/dist/core/src/redux/features/session/sessionSlice.test.d.ts +0 -2
- package/dist/core/src/redux/features/session/sessionSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/index.d.ts +0 -31
- package/dist/core/src/redux/index.d.ts.map +0 -1
- package/dist/core/src/redux/interfaces.d.ts +0 -87
- package/dist/core/src/redux/interfaces.d.ts.map +0 -1
- package/dist/core/src/redux/rootReducer.d.ts +0 -457
- package/dist/core/src/redux/rootReducer.d.ts.map +0 -1
- package/dist/core/src/redux/rootSaga.d.ts +0 -40
- package/dist/core/src/redux/rootSaga.d.ts.map +0 -1
- package/dist/core/src/redux/rootSaga.test.d.ts +0 -2
- package/dist/core/src/redux/rootSaga.test.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/configureStore.d.ts +0 -77
- package/dist/core/src/redux/toolkit/configureStore.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createAction.d.ts +0 -180
- package/dist/core/src/redux/toolkit/createAction.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createReducer.d.ts +0 -42
- package/dist/core/src/redux/toolkit/createReducer.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/createSlice.d.ts +0 -142
- package/dist/core/src/redux/toolkit/createSlice.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts +0 -185
- package/dist/core/src/redux/toolkit/devtoolsExtension.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts +0 -12
- package/dist/core/src/redux/toolkit/getDefaultMiddleware.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/index.d.ts +0 -13
- package/dist/core/src/redux/toolkit/index.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts +0 -12
- package/dist/core/src/redux/toolkit/isPlainObject.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts +0 -38
- package/dist/core/src/redux/toolkit/mapBuilders.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts +0 -51
- package/dist/core/src/redux/toolkit/tsHelpers.d.ts.map +0 -1
- package/dist/core/src/redux/toolkit/utils.d.ts +0 -11
- package/dist/core/src/redux/toolkit/utils.d.ts.map +0 -1
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts +0 -9
- package/dist/core/src/redux/utils/createDestroyableSlice.d.ts.map +0 -1
- package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts +0 -2
- package/dist/core/src/redux/utils/createDestroyableSlice.test.d.ts.map +0 -1
- package/dist/core/src/redux/utils/sagaHelpers.d.ts +0 -5
- package/dist/core/src/redux/utils/sagaHelpers.d.ts.map +0 -1
- package/dist/core/src/redux/utils/useInstanceMap.d.ts +0 -3
- package/dist/core/src/redux/utils/useInstanceMap.d.ts.map +0 -1
- package/dist/core/src/redux/utils/useSession.d.ts +0 -16
- package/dist/core/src/redux/utils/useSession.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionPlayback.d.ts +0 -40
- package/dist/core/src/rooms/RoomSessionPlayback.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionPlayback.test.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionRecording.d.ts +0 -30
- package/dist/core/src/rooms/RoomSessionRecording.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionRecording.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionRecording.test.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionStream.d.ts +0 -29
- package/dist/core/src/rooms/RoomSessionStream.d.ts.map +0 -1
- package/dist/core/src/rooms/RoomSessionStream.test.d.ts +0 -2
- package/dist/core/src/rooms/RoomSessionStream.test.d.ts.map +0 -1
- package/dist/core/src/rooms/index.d.ts +0 -11
- package/dist/core/src/rooms/index.d.ts.map +0 -1
- package/dist/core/src/rooms/methods.d.ts +0 -179
- package/dist/core/src/rooms/methods.d.ts.map +0 -1
- package/dist/core/src/rooms/methods.test.d.ts +0 -2
- package/dist/core/src/rooms/methods.test.d.ts.map +0 -1
- package/dist/core/src/setupTests.d.ts +0 -1
- package/dist/core/src/setupTests.d.ts.map +0 -1
- package/dist/core/src/testUtils.d.ts +0 -54
- package/dist/core/src/testUtils.d.ts.map +0 -1
- package/dist/core/src/types/cantina.d.ts +0 -82
- package/dist/core/src/types/cantina.d.ts.map +0 -1
- package/dist/core/src/types/chat.d.ts +0 -270
- package/dist/core/src/types/chat.d.ts.map +0 -1
- package/dist/core/src/types/common.d.ts +0 -34
- package/dist/core/src/types/common.d.ts.map +0 -1
- package/dist/core/src/types/conversation.d.ts +0 -33
- package/dist/core/src/types/conversation.d.ts.map +0 -1
- package/dist/core/src/types/fabric.d.ts +0 -15
- package/dist/core/src/types/fabric.d.ts.map +0 -1
- package/dist/core/src/types/fabricLayout.d.ts +0 -25
- package/dist/core/src/types/fabricLayout.d.ts.map +0 -1
- package/dist/core/src/types/fabricMember.d.ts +0 -148
- package/dist/core/src/types/fabricMember.d.ts.map +0 -1
- package/dist/core/src/types/fabricRoomSession.d.ts +0 -631
- package/dist/core/src/types/fabricRoomSession.d.ts.map +0 -1
- package/dist/core/src/types/index.d.ts +0 -276
- package/dist/core/src/types/index.d.ts.map +0 -1
- package/dist/core/src/types/messaging.d.ts +0 -90
- package/dist/core/src/types/messaging.d.ts.map +0 -1
- package/dist/core/src/types/pubSub.d.ts +0 -123
- package/dist/core/src/types/pubSub.d.ts.map +0 -1
- package/dist/core/src/types/task.d.ts +0 -36
- package/dist/core/src/types/task.d.ts.map +0 -1
- package/dist/core/src/types/utils.d.ts +0 -71
- package/dist/core/src/types/utils.d.ts.map +0 -1
- package/dist/core/src/types/video.d.ts +0 -62
- package/dist/core/src/types/video.d.ts.map +0 -1
- package/dist/core/src/types/videoLayout.d.ts +0 -75
- package/dist/core/src/types/videoLayout.d.ts.map +0 -1
- package/dist/core/src/types/videoMember.d.ts +0 -384
- package/dist/core/src/types/videoMember.d.ts.map +0 -1
- package/dist/core/src/types/videoPlayback.d.ts +0 -123
- package/dist/core/src/types/videoPlayback.d.ts.map +0 -1
- package/dist/core/src/types/videoRecording.d.ts +0 -114
- package/dist/core/src/types/videoRecording.d.ts.map +0 -1
- package/dist/core/src/types/videoRoomDevice.d.ts +0 -23
- package/dist/core/src/types/videoRoomDevice.d.ts.map +0 -1
- package/dist/core/src/types/videoRoomSession.d.ts +0 -921
- package/dist/core/src/types/videoRoomSession.d.ts.map +0 -1
- package/dist/core/src/types/videoStream.d.ts +0 -104
- package/dist/core/src/types/videoStream.d.ts.map +0 -1
- package/dist/core/src/types/voice.d.ts +0 -15
- package/dist/core/src/types/voice.d.ts.map +0 -1
- package/dist/core/src/types/voiceCall.d.ts +0 -253
- package/dist/core/src/types/voiceCall.d.ts.map +0 -1
- package/dist/core/src/types/voiceCollect.d.ts +0 -166
- package/dist/core/src/types/voiceCollect.d.ts.map +0 -1
- package/dist/core/src/types/voiceConnect.d.ts +0 -77
- package/dist/core/src/types/voiceConnect.d.ts.map +0 -1
- package/dist/core/src/types/voiceDetect.d.ts +0 -127
- package/dist/core/src/types/voiceDetect.d.ts.map +0 -1
- package/dist/core/src/types/voicePlayback.d.ts +0 -141
- package/dist/core/src/types/voicePlayback.d.ts.map +0 -1
- package/dist/core/src/types/voicePrompt.d.ts +0 -105
- package/dist/core/src/types/voicePrompt.d.ts.map +0 -1
- package/dist/core/src/types/voiceRecording.d.ts +0 -107
- package/dist/core/src/types/voiceRecording.d.ts.map +0 -1
- package/dist/core/src/types/voiceSendDigits.d.ts +0 -21
- package/dist/core/src/types/voiceSendDigits.d.ts.map +0 -1
- package/dist/core/src/types/voiceTap.d.ts +0 -116
- package/dist/core/src/types/voiceTap.d.ts.map +0 -1
- package/dist/core/src/utils/EventEmitter.d.ts +0 -9
- package/dist/core/src/utils/EventEmitter.d.ts.map +0 -1
- package/dist/core/src/utils/EventEmitter.test.d.ts +0 -2
- package/dist/core/src/utils/EventEmitter.test.d.ts.map +0 -1
- package/dist/core/src/utils/SWCloseEvent.d.ts +0 -18
- package/dist/core/src/utils/SWCloseEvent.d.ts.map +0 -1
- package/dist/core/src/utils/asyncRetry.d.ts +0 -18
- package/dist/core/src/utils/asyncRetry.d.ts.map +0 -1
- package/dist/core/src/utils/asyncRetry.test.d.ts +0 -2
- package/dist/core/src/utils/asyncRetry.test.d.ts.map +0 -1
- package/dist/core/src/utils/common.d.ts +0 -9
- package/dist/core/src/utils/common.d.ts.map +0 -1
- package/dist/core/src/utils/constants.d.ts +0 -44
- package/dist/core/src/utils/constants.d.ts.map +0 -1
- package/dist/core/src/utils/debounce.d.ts +0 -8
- package/dist/core/src/utils/debounce.d.ts.map +0 -1
- package/dist/core/src/utils/eventUtils.d.ts +0 -2
- package/dist/core/src/utils/eventUtils.d.ts.map +0 -1
- package/dist/core/src/utils/extendComponent.d.ts +0 -4
- package/dist/core/src/utils/extendComponent.d.ts.map +0 -1
- package/dist/core/src/utils/extendComponent.test.d.ts +0 -2
- package/dist/core/src/utils/extendComponent.test.d.ts.map +0 -1
- package/dist/core/src/utils/index.d.ts +0 -47
- package/dist/core/src/utils/index.d.ts.map +0 -1
- package/dist/core/src/utils/index.test.d.ts +0 -2
- package/dist/core/src/utils/index.test.d.ts.map +0 -1
- package/dist/core/src/utils/interfaces.d.ts +0 -296
- package/dist/core/src/utils/interfaces.d.ts.map +0 -1
- package/dist/core/src/utils/logger.d.ts +0 -6
- package/dist/core/src/utils/logger.d.ts.map +0 -1
- package/dist/core/src/utils/logger.test.d.ts +0 -2
- package/dist/core/src/utils/logger.test.d.ts.map +0 -1
- package/dist/core/src/utils/parseRPCResponse.d.ts +0 -10
- package/dist/core/src/utils/parseRPCResponse.d.ts.map +0 -1
- package/dist/core/src/utils/parseRPCResponse.test.d.ts +0 -2
- package/dist/core/src/utils/parseRPCResponse.test.d.ts.map +0 -1
- package/dist/core/src/utils/storage/index.d.ts +0 -11
- package/dist/core/src/utils/storage/index.d.ts.map +0 -1
- package/dist/core/src/utils/storage/index.native.d.ts +0 -11
- package/dist/core/src/utils/storage/index.native.d.ts.map +0 -1
- package/dist/core/src/utils/toExternalJSON.d.ts +0 -34
- package/dist/core/src/utils/toExternalJSON.d.ts.map +0 -1
- package/dist/core/src/utils/toExternalJSON.test.d.ts +0 -2
- package/dist/core/src/utils/toExternalJSON.test.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalAction.d.ts +0 -7
- package/dist/core/src/utils/toInternalAction.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalAction.test.d.ts +0 -2
- package/dist/core/src/utils/toInternalAction.test.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalEventName.d.ts +0 -8
- package/dist/core/src/utils/toInternalEventName.d.ts.map +0 -1
- package/dist/core/src/utils/toInternalEventName.test.d.ts +0 -2
- package/dist/core/src/utils/toInternalEventName.test.d.ts.map +0 -1
- package/dist/core/src/utils/toSnakeCaseKeys.d.ts +0 -7
- package/dist/core/src/utils/toSnakeCaseKeys.d.ts.map +0 -1
- package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts +0 -2
- package/dist/core/src/utils/toSnakeCaseKeys.test.d.ts.map +0 -1
- package/dist/core/src/workers/executeActionWorker.d.ts +0 -7
- package/dist/core/src/workers/executeActionWorker.d.ts.map +0 -1
- package/dist/core/src/workers/index.d.ts +0 -2
- package/dist/core/src/workers/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -4673
- package/dist/index.esm.js.map +0 -7
- package/dist/index.js +0 -4655
- package/dist/index.js.map +0 -7
- package/dist/index.umd.js +0 -31
- package/dist/index.umd.js.map +0 -1
- package/dist/js/src/BaseRoomSession.d.ts +0 -52
- package/dist/js/src/BaseRoomSession.d.ts.map +0 -1
- package/dist/js/src/Client.d.ts +0 -38
- package/dist/js/src/Client.d.ts.map +0 -1
- package/dist/js/src/JWTSession.d.ts +0 -31
- package/dist/js/src/JWTSession.d.ts.map +0 -1
- package/dist/js/src/RoomSessionDevice.d.ts +0 -30
- package/dist/js/src/RoomSessionDevice.d.ts.map +0 -1
- package/dist/js/src/RoomSessionScreenShare.d.ts +0 -26
- package/dist/js/src/RoomSessionScreenShare.d.ts.map +0 -1
- package/dist/js/src/VideoOverlays.d.ts +0 -42
- package/dist/js/src/VideoOverlays.d.ts.map +0 -1
- package/dist/js/src/buildVideoElement.d.ts +0 -18
- package/dist/js/src/buildVideoElement.d.ts.map +0 -1
- package/dist/js/src/cantina/VideoManager.d.ts +0 -16
- package/dist/js/src/cantina/VideoManager.d.ts.map +0 -1
- package/dist/js/src/cantina/index.d.ts +0 -2
- package/dist/js/src/cantina/index.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/index.d.ts +0 -2
- package/dist/js/src/cantina/workers/index.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts +0 -4
- package/dist/js/src/cantina/workers/videoManagerRoomWorker.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts +0 -4
- package/dist/js/src/cantina/workers/videoManagerRoomsWorker.d.ts.map +0 -1
- package/dist/js/src/cantina/workers/videoManagerWorker.d.ts +0 -7
- package/dist/js/src/cantina/workers/videoManagerWorker.d.ts.map +0 -1
- package/dist/js/src/chat/Client.d.ts +0 -46
- package/dist/js/src/chat/Client.d.ts.map +0 -1
- package/dist/js/src/chat/index.d.ts +0 -5
- package/dist/js/src/chat/index.d.ts.map +0 -1
- package/dist/js/src/createClient.d.ts +0 -26
- package/dist/js/src/createClient.d.ts.map +0 -1
- package/dist/js/src/createRoomObject.d.ts +0 -38
- package/dist/js/src/createRoomObject.d.ts.map +0 -1
- package/dist/js/src/fabric/FabricRoomSession.d.ts +0 -80
- package/dist/js/src/fabric/FabricRoomSession.d.ts.map +0 -1
- package/dist/js/src/fabric/FabricRoomSessionMember.d.ts +0 -46
- package/dist/js/src/fabric/FabricRoomSessionMember.d.ts.map +0 -1
- package/dist/js/src/fabric/HTTPClient.d.ts +0 -16
- package/dist/js/src/fabric/HTTPClient.d.ts.map +0 -1
- package/dist/js/src/fabric/IncomingCallManager.d.ts +0 -19
- package/dist/js/src/fabric/IncomingCallManager.d.ts.map +0 -1
- package/dist/js/src/fabric/SATSession.d.ts +0 -25
- package/dist/js/src/fabric/SATSession.d.ts.map +0 -1
- package/dist/js/src/fabric/SignalWire.d.ts +0 -3
- package/dist/js/src/fabric/SignalWire.d.ts.map +0 -1
- package/dist/js/src/fabric/WSClient.d.ts +0 -33
- package/dist/js/src/fabric/WSClient.d.ts.map +0 -1
- package/dist/js/src/fabric/createHttpClient.d.ts +0 -22
- package/dist/js/src/fabric/createHttpClient.d.ts.map +0 -1
- package/dist/js/src/fabric/createWSClient.d.ts +0 -38
- package/dist/js/src/fabric/createWSClient.d.ts.map +0 -1
- package/dist/js/src/fabric/index.d.ts +0 -15
- package/dist/js/src/fabric/index.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/address.d.ts +0 -37
- package/dist/js/src/fabric/interfaces/address.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/capabilities.d.ts +0 -29
- package/dist/js/src/fabric/interfaces/capabilities.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/conversation.d.ts +0 -105
- package/dist/js/src/fabric/interfaces/conversation.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/device.d.ts +0 -18
- package/dist/js/src/fabric/interfaces/device.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/httpClient.d.ts +0 -41
- package/dist/js/src/fabric/interfaces/httpClient.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts +0 -30
- package/dist/js/src/fabric/interfaces/incomingCallManager.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/index.d.ts +0 -71
- package/dist/js/src/fabric/interfaces/index.d.ts.map +0 -1
- package/dist/js/src/fabric/interfaces/wsClient.d.ts +0 -132
- package/dist/js/src/fabric/interfaces/wsClient.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts +0 -28
- package/dist/js/src/fabric/utils/capabilitiesHelpers.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/constants.d.ts +0 -5
- package/dist/js/src/fabric/utils/constants.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/eventMappers.d.ts +0 -151
- package/dist/js/src/fabric/utils/eventMappers.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/typeGuard.d.ts +0 -6
- package/dist/js/src/fabric/utils/typeGuard.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/validationProxy.d.ts +0 -13
- package/dist/js/src/fabric/utils/validationProxy.d.ts.map +0 -1
- package/dist/js/src/fabric/utils/validators.d.ts +0 -20
- package/dist/js/src/fabric/utils/validators.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callJoinWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callJoinWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callLeftWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callLeftWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/callSegmentWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/callSegmentWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/fabricMemberWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/fabricWorker.d.ts +0 -7
- package/dist/js/src/fabric/workers/fabricWorker.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/index.d.ts +0 -3
- package/dist/js/src/fabric/workers/index.d.ts.map +0 -1
- package/dist/js/src/fabric/workers/wsClientWorker.d.ts +0 -4
- package/dist/js/src/fabric/workers/wsClientWorker.d.ts.map +0 -1
- package/dist/js/src/features/actions.d.ts +0 -2
- package/dist/js/src/features/actions.d.ts.map +0 -1
- package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts +0 -7
- package/dist/js/src/features/mediaElements/mediaElementsSagas.d.ts.map +0 -1
- package/dist/js/src/index.d.ts +0 -87
- package/dist/js/src/index.d.ts.map +0 -1
- package/dist/js/src/joinRoom.d.ts +0 -24
- package/dist/js/src/joinRoom.d.ts.map +0 -1
- package/dist/js/src/pubSub/Client.d.ts +0 -46
- package/dist/js/src/pubSub/Client.d.ts.map +0 -1
- package/dist/js/src/pubSub/index.d.ts +0 -6
- package/dist/js/src/pubSub/index.d.ts.map +0 -1
- package/dist/js/src/setupTests.d.ts +0 -2
- package/dist/js/src/setupTests.d.ts.map +0 -1
- package/dist/js/src/testUtils.d.ts +0 -77
- package/dist/js/src/testUtils.d.ts.map +0 -1
- package/dist/js/src/utils/CloseEvent.d.ts +0 -7
- package/dist/js/src/utils/CloseEvent.d.ts.map +0 -1
- package/dist/js/src/utils/audioElement.d.ts +0 -6
- package/dist/js/src/utils/audioElement.d.ts.map +0 -1
- package/dist/js/src/utils/constants.d.ts +0 -2
- package/dist/js/src/utils/constants.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/base.d.ts +0 -55
- package/dist/js/src/utils/interfaces/base.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/fabric.d.ts +0 -71
- package/dist/js/src/utils/interfaces/fabric.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/index.d.ts +0 -4
- package/dist/js/src/utils/interfaces/index.d.ts.map +0 -1
- package/dist/js/src/utils/interfaces/video.d.ts +0 -307
- package/dist/js/src/utils/interfaces/video.d.ts.map +0 -1
- package/dist/js/src/utils/makeQueryParamsUrl.d.ts +0 -9
- package/dist/js/src/utils/makeQueryParamsUrl.d.ts.map +0 -1
- package/dist/js/src/utils/paginatedResult.d.ts +0 -12
- package/dist/js/src/utils/paginatedResult.d.ts.map +0 -1
- package/dist/js/src/utils/roomSession.d.ts +0 -26
- package/dist/js/src/utils/roomSession.d.ts.map +0 -1
- package/dist/js/src/utils/storage.d.ts +0 -10
- package/dist/js/src/utils/storage.d.ts.map +0 -1
- package/dist/js/src/utils/videoElement.d.ts +0 -35
- package/dist/js/src/utils/videoElement.d.ts.map +0 -1
- package/dist/js/src/video/RoomSession.d.ts +0 -38
- package/dist/js/src/video/RoomSession.d.ts.map +0 -1
- package/dist/js/src/video/VideoRoomSession.d.ts +0 -57
- package/dist/js/src/video/VideoRoomSession.d.ts.map +0 -1
- package/dist/js/src/video/index.d.ts +0 -16
- package/dist/js/src/video/index.d.ts.map +0 -1
- package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts +0 -10
- package/dist/js/src/video/workers/childMemberJoinedWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/index.d.ts +0 -7
- package/dist/js/src/video/workers/index.d.ts.map +0 -1
- package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts +0 -14
- package/dist/js/src/video/workers/memberListUpdatedWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoPlaybackWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoPlaybackWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoRecordWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoRecordWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoStreamWorker.d.ts +0 -4
- package/dist/js/src/video/workers/videoStreamWorker.d.ts.map +0 -1
- package/dist/js/src/video/workers/videoWorker.d.ts +0 -7
- package/dist/js/src/video/workers/videoWorker.d.ts.map +0 -1
- package/dist/js/src/webrtc.d.ts +0 -3
- package/dist/js/src/webrtc.d.ts.map +0 -1
- package/dist/js/tsconfig.build.tsbuildinfo +0 -1
- package/dist/webrtc/src/BaseConnection.d.ts +0 -232
- package/dist/webrtc/src/BaseConnection.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeer.d.ts +0 -134
- package/dist/webrtc/src/RTCPeer.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeer.test.d.ts +0 -2
- package/dist/webrtc/src/RTCPeer.test.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeerConnectionManager.d.ts +0 -63
- package/dist/webrtc/src/RTCPeerConnectionManager.d.ts.map +0 -1
- package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts +0 -2
- package/dist/webrtc/src/RTCPeerConnectionManager.test.d.ts.map +0 -1
- package/dist/webrtc/src/connectionPoolManager.d.ts +0 -14
- package/dist/webrtc/src/connectionPoolManager.d.ts.map +0 -1
- package/dist/webrtc/src/index.d.ts +0 -7
- package/dist/webrtc/src/index.d.ts.map +0 -1
- package/dist/webrtc/src/index.test.d.ts +0 -1
- package/dist/webrtc/src/index.test.d.ts.map +0 -1
- package/dist/webrtc/src/setupTests.d.ts +0 -2
- package/dist/webrtc/src/setupTests.d.ts.map +0 -1
- package/dist/webrtc/src/utils/constants.d.ts +0 -7
- package/dist/webrtc/src/utils/constants.d.ts.map +0 -1
- package/dist/webrtc/src/utils/deviceHelpers.d.ts +0 -319
- package/dist/webrtc/src/utils/deviceHelpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/deviceHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/deviceHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/enumerateDevices.d.ts +0 -25
- package/dist/webrtc/src/utils/enumerateDevices.d.ts.map +0 -1
- package/dist/webrtc/src/utils/getDisplayMedia.d.ts +0 -17
- package/dist/webrtc/src/utils/getDisplayMedia.d.ts.map +0 -1
- package/dist/webrtc/src/utils/getUserMedia.d.ts +0 -35
- package/dist/webrtc/src/utils/getUserMedia.d.ts.map +0 -1
- package/dist/webrtc/src/utils/helpers.d.ts +0 -18
- package/dist/webrtc/src/utils/helpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/helpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/helpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/index.d.ts +0 -8
- package/dist/webrtc/src/utils/index.d.ts.map +0 -1
- package/dist/webrtc/src/utils/interfaces.d.ts +0 -139
- package/dist/webrtc/src/utils/interfaces.d.ts.map +0 -1
- package/dist/webrtc/src/utils/mockTracks.d.ts +0 -26
- package/dist/webrtc/src/utils/mockTracks.d.ts.map +0 -1
- package/dist/webrtc/src/utils/permissions.d.ts +0 -48
- package/dist/webrtc/src/utils/permissions.d.ts.map +0 -1
- package/dist/webrtc/src/utils/primitives.d.ts +0 -54
- package/dist/webrtc/src/utils/primitives.d.ts.map +0 -1
- package/dist/webrtc/src/utils/primitives.native.d.ts +0 -36
- package/dist/webrtc/src/utils/primitives.native.d.ts.map +0 -1
- package/dist/webrtc/src/utils/requestPermissions.d.ts +0 -27
- package/dist/webrtc/src/utils/requestPermissions.d.ts.map +0 -1
- package/dist/webrtc/src/utils/sdpHelpers.d.ts +0 -61
- package/dist/webrtc/src/utils/sdpHelpers.d.ts.map +0 -1
- package/dist/webrtc/src/utils/sdpHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/sdpHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts +0 -7
- package/dist/webrtc/src/utils/watchRTCPeerMediaPackets.d.ts.map +0 -1
- package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts +0 -2
- package/dist/webrtc/src/utils/webrtcHelpers.test.d.ts.map +0 -1
- package/dist/webrtc/src/webrtcMocks.d.ts +0 -110
- package/dist/webrtc/src/webrtcMocks.d.ts.map +0 -1
- package/dist/webrtc/src/workers/connectionPoolWorker.d.ts +0 -7
- package/dist/webrtc/src/workers/connectionPoolWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/index.d.ts +0 -7
- package/dist/webrtc/src/workers/index.d.ts.map +0 -1
- package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/promoteDemoteWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/roomSubscribedWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/sessionAuthWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/sessionAuthWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts +0 -7
- package/dist/webrtc/src/workers/sessionConnectionPoolWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/vertoEventWorker.d.ts +0 -10
- package/dist/webrtc/src/workers/vertoEventWorker.d.ts.map +0 -1
- package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts +0 -2
- package/dist/webrtc/src/workers/vertoEventWorker.test.d.ts.map +0 -1
- package/src/BaseRoomSession.ts +0 -302
- package/src/Client.ts +0 -193
- package/src/JWTSession.test.ts +0 -60
- package/src/JWTSession.ts +0 -146
- package/src/RoomSessionDevice.test.ts +0 -25
- package/src/RoomSessionDevice.ts +0 -62
- package/src/RoomSessionScreenShare.test.ts +0 -25
- package/src/RoomSessionScreenShare.ts +0 -58
- package/src/VideoOverlays.ts +0 -171
- package/src/buildVideoElement.test.ts +0 -933
- package/src/buildVideoElement.ts +0 -290
- package/src/cantina/VideoManager.test.ts +0 -95
- package/src/cantina/VideoManager.ts +0 -72
- package/src/cantina/index.ts +0 -1
- package/src/cantina/workers/index.ts +0 -1
- package/src/cantina/workers/videoManagerRoomWorker.ts +0 -28
- package/src/cantina/workers/videoManagerRoomsWorker.ts +0 -34
- package/src/cantina/workers/videoManagerWorker.ts +0 -64
- package/src/chat/Client.test.ts +0 -688
- package/src/chat/Client.ts +0 -94
- package/src/chat/index.ts +0 -31
- package/src/createClient.test.ts +0 -124
- package/src/createClient.ts +0 -48
- package/src/createRoomObject.ts +0 -149
- package/src/fabric/FabricRoomSession.test.ts +0 -695
- package/src/fabric/FabricRoomSession.ts +0 -446
- package/src/fabric/FabricRoomSessionMember.ts +0 -188
- package/src/fabric/HTTPClient.test.ts +0 -28
- package/src/fabric/HTTPClient.ts +0 -154
- package/src/fabric/IncomingCallManager.test.ts +0 -295
- package/src/fabric/IncomingCallManager.ts +0 -92
- package/src/fabric/SATSession.test.ts +0 -65
- package/src/fabric/SATSession.ts +0 -102
- package/src/fabric/SignalWire.test.ts +0 -115
- package/src/fabric/SignalWire.ts +0 -101
- package/src/fabric/WSClient.ts +0 -430
- package/src/fabric/createHttpClient.ts +0 -188
- package/src/fabric/createWSClient.ts +0 -12
- package/src/fabric/index.ts +0 -30
- package/src/fabric/interfaces/address.ts +0 -46
- package/src/fabric/interfaces/capabilities.ts +0 -30
- package/src/fabric/interfaces/conversation.ts +0 -145
- package/src/fabric/interfaces/device.ts +0 -21
- package/src/fabric/interfaces/httpClient.ts +0 -50
- package/src/fabric/interfaces/incomingCallManager.ts +0 -36
- package/src/fabric/interfaces/index.ts +0 -118
- package/src/fabric/interfaces/wsClient.ts +0 -154
- package/src/fabric/utils/capabilitiesHelpers.test.ts +0 -201
- package/src/fabric/utils/capabilitiesHelpers.ts +0 -208
- package/src/fabric/utils/constants.ts +0 -4
- package/src/fabric/utils/eventMappers.ts +0 -184
- package/src/fabric/utils/typeGuard.ts +0 -31
- package/src/fabric/utils/validationProxy.ts +0 -83
- package/src/fabric/utils/validators.ts +0 -242
- package/src/fabric/workers/callJoinWorker.ts +0 -88
- package/src/fabric/workers/callLeftWorker.ts +0 -32
- package/src/fabric/workers/callSegmentWorker.ts +0 -154
- package/src/fabric/workers/fabricMemberWorker.ts +0 -62
- package/src/fabric/workers/fabricWorker.ts +0 -100
- package/src/fabric/workers/index.ts +0 -2
- package/src/fabric/workers/wsClientWorker.ts +0 -60
- package/src/features/actions.ts +0 -5
- package/src/features/mediaElements/mediaElementsSagas.ts +0 -129
- package/src/index.test.ts +0 -5
- package/src/index.ts +0 -153
- package/src/joinRoom.ts +0 -29
- package/src/pubSub/Client.test.ts +0 -245
- package/src/pubSub/Client.ts +0 -90
- package/src/pubSub/index.ts +0 -10
- package/src/setupTests.ts +0 -122
- package/src/testUtils.ts +0 -259
- package/src/utils/CloseEvent.ts +0 -6
- package/src/utils/audioElement.ts +0 -21
- package/src/utils/constants.ts +0 -7
- package/src/utils/interfaces/base.ts +0 -55
- package/src/utils/interfaces/fabric.ts +0 -156
- package/src/utils/interfaces/index.ts +0 -3
- package/src/utils/interfaces/video.ts +0 -440
- package/src/utils/makeQueryParamsUrl.ts +0 -14
- package/src/utils/paginatedResult.ts +0 -35
- package/src/utils/roomSession.test.ts +0 -140
- package/src/utils/roomSession.ts +0 -85
- package/src/utils/storage.test.ts +0 -24
- package/src/utils/storage.ts +0 -37
- package/src/utils/videoElement.ts +0 -342
- package/src/video/RoomSession.test.ts +0 -31
- package/src/video/RoomSession.ts +0 -290
- package/src/video/VideoRoomSession.test.ts +0 -672
- package/src/video/VideoRoomSession.ts +0 -304
- package/src/video/index.ts +0 -43
- package/src/video/workers/childMemberJoinedWorker.test.ts +0 -99
- package/src/video/workers/childMemberJoinedWorker.ts +0 -75
- package/src/video/workers/index.ts +0 -6
- package/src/video/workers/memberListUpdatedWorker.ts +0 -217
- package/src/video/workers/videoPlaybackWorker.ts +0 -54
- package/src/video/workers/videoRecordWorker.ts +0 -54
- package/src/video/workers/videoStreamWorker.ts +0 -48
- package/src/video/workers/videoWorker.ts +0 -113
- package/src/webrtc.ts +0 -33
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Rooms,
|
|
3
|
-
VideoLayoutEventNames,
|
|
4
|
-
VideoRoomSessionEventNames,
|
|
5
|
-
VideoRoomEventParams,
|
|
6
|
-
InternalVideoMemberEntity,
|
|
7
|
-
InternalVideoMemberEntityUpdated,
|
|
8
|
-
VideoMemberEventNames,
|
|
9
|
-
MemberUpdated,
|
|
10
|
-
MemberUpdatedEventNames,
|
|
11
|
-
MemberTalkingEventNames,
|
|
12
|
-
VideoMemberTalkingEventParams,
|
|
13
|
-
RTCTrackEventName,
|
|
14
|
-
InternalVideoMemberUpdatableProps,
|
|
15
|
-
VideoRecordingEventNames,
|
|
16
|
-
VideoPlaybackEventNames,
|
|
17
|
-
RoomSessionRecording,
|
|
18
|
-
RoomSessionPlayback,
|
|
19
|
-
VideoRoomSessionContract as CoreVideoRoomSessionContract,
|
|
20
|
-
OnlyFunctionProperties,
|
|
21
|
-
MemberListUpdated,
|
|
22
|
-
VideoPositions,
|
|
23
|
-
RoomAudienceCount,
|
|
24
|
-
VideoRoomAudienceCountEventParams,
|
|
25
|
-
RoomLeft,
|
|
26
|
-
RoomLeftEventParams,
|
|
27
|
-
VideoStreamEventNames,
|
|
28
|
-
RoomSessionStream,
|
|
29
|
-
RoomJoined,
|
|
30
|
-
RoomSubscribed,
|
|
31
|
-
VideoRoomSubscribedEventParams,
|
|
32
|
-
VideoAuthorization,
|
|
33
|
-
VideoRoomDeviceUpdatedEventNames,
|
|
34
|
-
DeviceUpdatedEventParams,
|
|
35
|
-
VideoRoomDeviceDisconnectedEventNames,
|
|
36
|
-
DeviceDisconnectedEventParams,
|
|
37
|
-
VideoRoomDeviceEventNames,
|
|
38
|
-
VideoLayoutChangedEventParams,
|
|
39
|
-
VideoPosition,
|
|
40
|
-
BaseConnectionState,
|
|
41
|
-
} from '@signalwire/core'
|
|
42
|
-
import { INTERNAL_MEMBER_UPDATABLE_PROPS } from '@signalwire/core'
|
|
43
|
-
import type { MediaEventNames } from '@signalwire/webrtc'
|
|
44
|
-
import type { RoomSessionDevice } from '../../RoomSessionDevice'
|
|
45
|
-
import type { RoomSessionScreenShare } from '../../RoomSessionScreenShare'
|
|
46
|
-
import { RoomSession } from '../../video/RoomSession'
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @privateRemarks
|
|
50
|
-
* Every other package exposing a `VideoMemberEntity` is
|
|
51
|
-
* transforming the server payload into something else, with
|
|
52
|
-
* the most significant change being converting properties
|
|
53
|
-
* from snake to camel case. The `js` package, on the other
|
|
54
|
-
* hand, exposes the server payload pretty much as is (as of
|
|
55
|
-
* v3) so what we consider internal (sdk and server) in
|
|
56
|
-
* other packages is external (user facing) for `js`. Same
|
|
57
|
-
* applies to `VideoMemberEntityUpdated` since it's just a
|
|
58
|
-
* derived type.
|
|
59
|
-
*/
|
|
60
|
-
type VideoMemberEntity = InternalVideoMemberEntity
|
|
61
|
-
type VideoMemberEntityUpdated = InternalVideoMemberEntityUpdated
|
|
62
|
-
|
|
63
|
-
const INTERNAL_MEMBER_UPDATED_EVENTS = Object.keys(
|
|
64
|
-
INTERNAL_MEMBER_UPDATABLE_PROPS
|
|
65
|
-
).map((key) => {
|
|
66
|
-
return `member.updated.${
|
|
67
|
-
key as keyof InternalVideoMemberUpdatableProps
|
|
68
|
-
}` as const
|
|
69
|
-
})
|
|
70
|
-
/** @deprecated */
|
|
71
|
-
export type DeprecatedMemberUpdatableProps =
|
|
72
|
-
(typeof INTERNAL_MEMBER_UPDATED_EVENTS)[number]
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
export type DeprecatedVideoMemberHandlerParams = {
|
|
75
|
-
member: InternalVideoMemberEntity
|
|
76
|
-
}
|
|
77
|
-
export type VideoMemberHandlerParams = { member: VideoMemberEntity }
|
|
78
|
-
export type VideoMemberUpdatedHandlerParams = {
|
|
79
|
-
member: VideoMemberEntityUpdated
|
|
80
|
-
room_id?: string
|
|
81
|
-
room_session_id?: string
|
|
82
|
-
}
|
|
83
|
-
export type VideoMemberListUpdatedParams = { members: VideoMemberEntity[] }
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* List of all the events a RoomObject can listen to
|
|
87
|
-
*/
|
|
88
|
-
export type RoomEventNames =
|
|
89
|
-
| VideoRoomSessionEventNames
|
|
90
|
-
| VideoMemberEventNames
|
|
91
|
-
| VideoLayoutEventNames
|
|
92
|
-
| VideoRecordingEventNames
|
|
93
|
-
| VideoPlaybackEventNames
|
|
94
|
-
| VideoStreamEventNames
|
|
95
|
-
| RTCTrackEventName
|
|
96
|
-
|
|
97
|
-
export type RoomSessionObjectEventsHandlerMap = Record<
|
|
98
|
-
VideoRoomDeviceEventNames,
|
|
99
|
-
(params: DeviceUpdatedEventParams) => void
|
|
100
|
-
> &
|
|
101
|
-
Record<
|
|
102
|
-
VideoLayoutEventNames,
|
|
103
|
-
(params: VideoLayoutChangedEventParams) => void
|
|
104
|
-
> &
|
|
105
|
-
Record<
|
|
106
|
-
Exclude<
|
|
107
|
-
VideoMemberEventNames,
|
|
108
|
-
MemberUpdated | MemberUpdatedEventNames | MemberListUpdated
|
|
109
|
-
>,
|
|
110
|
-
(params: VideoMemberHandlerParams) => void
|
|
111
|
-
> &
|
|
112
|
-
Record<
|
|
113
|
-
Extract<VideoMemberEventNames, MemberUpdated | MemberUpdatedEventNames>,
|
|
114
|
-
(params: VideoMemberUpdatedHandlerParams) => void
|
|
115
|
-
> &
|
|
116
|
-
Record<
|
|
117
|
-
Extract<VideoMemberEventNames, MemberListUpdated>,
|
|
118
|
-
(params: VideoMemberListUpdatedParams) => void
|
|
119
|
-
> &
|
|
120
|
-
Record<
|
|
121
|
-
DeprecatedMemberUpdatableProps,
|
|
122
|
-
(params: DeprecatedVideoMemberHandlerParams) => void
|
|
123
|
-
> &
|
|
124
|
-
Record<
|
|
125
|
-
MemberTalkingEventNames,
|
|
126
|
-
(params: VideoMemberTalkingEventParams) => void
|
|
127
|
-
> &
|
|
128
|
-
Record<
|
|
129
|
-
Exclude<VideoRoomSessionEventNames, RoomLeft | RoomJoined | RoomSubscribed>,
|
|
130
|
-
(params: VideoRoomEventParams) => void
|
|
131
|
-
> &
|
|
132
|
-
Record<
|
|
133
|
-
RoomJoined | RoomSubscribed,
|
|
134
|
-
(params: VideoRoomSubscribedEventParams) => void
|
|
135
|
-
> &
|
|
136
|
-
Record<RoomLeft, (params?: RoomLeftEventParams) => void> &
|
|
137
|
-
Record<MediaEventNames, () => void> &
|
|
138
|
-
Record<
|
|
139
|
-
VideoRoomDeviceUpdatedEventNames,
|
|
140
|
-
(params: DeviceUpdatedEventParams) => void
|
|
141
|
-
> &
|
|
142
|
-
Record<
|
|
143
|
-
VideoRoomDeviceDisconnectedEventNames,
|
|
144
|
-
(params: DeviceDisconnectedEventParams) => void
|
|
145
|
-
> &
|
|
146
|
-
Record<
|
|
147
|
-
RoomAudienceCount,
|
|
148
|
-
(params: VideoRoomAudienceCountEventParams) => void
|
|
149
|
-
> &
|
|
150
|
-
Record<RTCTrackEventName, (event: RTCTrackEvent) => void> &
|
|
151
|
-
Record<VideoRecordingEventNames, (recording: RoomSessionRecording) => void> &
|
|
152
|
-
Record<VideoPlaybackEventNames, (recording: RoomSessionPlayback) => void> &
|
|
153
|
-
Record<BaseConnectionState, (params: RoomSession) => void> &
|
|
154
|
-
Record<VideoStreamEventNames, (stream: RoomSessionStream) => void>
|
|
155
|
-
|
|
156
|
-
// @deprecated Please use {@link VideoRoomSessionEvents}
|
|
157
|
-
export type RoomSessionObjectEvents = {
|
|
158
|
-
[k in keyof RoomSessionObjectEventsHandlerMap]: RoomSessionObjectEventsHandlerMap[k]
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export type VideoRoomSessionEvents = {
|
|
162
|
-
[k in keyof RoomSessionObjectEventsHandlerMap]: RoomSessionObjectEventsHandlerMap[k]
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export type StartScreenShareOptions = {
|
|
166
|
-
/** Whether the screen share object should automatically join the room */
|
|
167
|
-
autoJoin?: boolean
|
|
168
|
-
/** Audio constraints to use when joining the room. Default: `true`. */
|
|
169
|
-
audio?: MediaStreamConstraints['audio']
|
|
170
|
-
/** Video constraints to use when joining the room. Default: `true`. */
|
|
171
|
-
video?: MediaStreamConstraints['video']
|
|
172
|
-
layout?: string
|
|
173
|
-
positions?: VideoPositions
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @deprecated Use {@link StartScreenShareOptions} instead.
|
|
178
|
-
*/
|
|
179
|
-
export interface CreateScreenShareObjectOptions
|
|
180
|
-
extends StartScreenShareOptions {}
|
|
181
|
-
|
|
182
|
-
export type AddDeviceOptions = {
|
|
183
|
-
autoJoin?: boolean
|
|
184
|
-
audio?: MediaStreamConstraints['audio']
|
|
185
|
-
video?: MediaStreamConstraints['video']
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export type AddCameraOptions = MediaTrackConstraints & {
|
|
189
|
-
autoJoin?: boolean
|
|
190
|
-
}
|
|
191
|
-
export type AddMicrophoneOptions = MediaTrackConstraints & {
|
|
192
|
-
autoJoin?: boolean
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface BaseRoomInterface {
|
|
196
|
-
join(): Promise<unknown>
|
|
197
|
-
leave(): Promise<unknown>
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface RoomMemberSelfMethodsInterface {
|
|
201
|
-
/**
|
|
202
|
-
* Puts the microphone on mute. The other participants will not hear audio
|
|
203
|
-
* from the muted device anymore.
|
|
204
|
-
*
|
|
205
|
-
* @permissions
|
|
206
|
-
* - `room.self.audio_mute`
|
|
207
|
-
*
|
|
208
|
-
* You need to specify the permissions when [creating the Video Room
|
|
209
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
210
|
-
* on the server side.
|
|
211
|
-
*
|
|
212
|
-
* @example Muting the microphone:
|
|
213
|
-
* ```typescript
|
|
214
|
-
* await roomdevice.audioMute()
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
audioMute(): Rooms.AudioMuteMember
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Unmutes the microphone if it had been previously muted.
|
|
221
|
-
*
|
|
222
|
-
* @permissions
|
|
223
|
-
* - `room.self.audio_unmute`
|
|
224
|
-
*
|
|
225
|
-
* You need to specify the permissions when [creating the Video Room
|
|
226
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
227
|
-
* on the server side.
|
|
228
|
-
*
|
|
229
|
-
* @example Unmuting the microphone:
|
|
230
|
-
* ```typescript
|
|
231
|
-
* await roomdevice.audioUnmute()
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
audioUnmute(): Rooms.AudioUnmuteMember
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Puts the video on mute. Participants will see a mute image instead of the
|
|
238
|
-
* video stream.
|
|
239
|
-
*
|
|
240
|
-
* @permissions
|
|
241
|
-
* - `room.self.video_mute`
|
|
242
|
-
*
|
|
243
|
-
* You need to specify the permissions when [creating the Video Room
|
|
244
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
245
|
-
* on the server side.
|
|
246
|
-
*
|
|
247
|
-
* @example Muting the camera:
|
|
248
|
-
* ```typescript
|
|
249
|
-
* await roomdevice.videoMute()
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
videoMute(): Rooms.VideoMuteMember
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Unmutes the video if it had been previously muted. Participants will start
|
|
256
|
-
* seeing the video stream again.
|
|
257
|
-
*
|
|
258
|
-
* @permissions
|
|
259
|
-
* - `room.self.video_unmute`
|
|
260
|
-
*
|
|
261
|
-
* You need to specify the permissions when [creating the Video Room
|
|
262
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
263
|
-
* on the server side.
|
|
264
|
-
*
|
|
265
|
-
* @example Unmuting the camera:
|
|
266
|
-
* ```typescript
|
|
267
|
-
* await roomdevice.videoUnmute()
|
|
268
|
-
* ```
|
|
269
|
-
*/
|
|
270
|
-
videoUnmute(): Rooms.VideoUnmuteMember
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @deprecated Use {@link setInputVolume} instead.
|
|
274
|
-
*/
|
|
275
|
-
setMicrophoneVolume(params: { volume: number }): Rooms.SetInputVolumeMember
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Sets the input volume level (e.g. for the microphone).
|
|
279
|
-
* @param params
|
|
280
|
-
* @param params.volume desired volume. Values range from -50 to 50, with a
|
|
281
|
-
* default of 0.
|
|
282
|
-
*
|
|
283
|
-
* @permissions
|
|
284
|
-
* - `room.self.set_input_volume`
|
|
285
|
-
*
|
|
286
|
-
* You need to specify the permissions when [creating the Video Room
|
|
287
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
288
|
-
* on the server side.
|
|
289
|
-
*
|
|
290
|
-
* @example
|
|
291
|
-
* ```typescript
|
|
292
|
-
* await roomdevice.setMicrophoneVolume({volume: -10})
|
|
293
|
-
* ```
|
|
294
|
-
*/
|
|
295
|
-
setInputVolume(params: { volume: number }): Rooms.SetInputVolumeMember
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Sets the input level at which the participant is identified as currently
|
|
299
|
-
* speaking.
|
|
300
|
-
* @param params
|
|
301
|
-
* @param params.value desired sensitivity. The default value is 30 and the
|
|
302
|
-
* scale goes from 0 (lowest sensitivity, essentially muted) to 100 (highest
|
|
303
|
-
* sensitivity).
|
|
304
|
-
*
|
|
305
|
-
* @permissions
|
|
306
|
-
* - `room.self.set_input_sensitivity`
|
|
307
|
-
*
|
|
308
|
-
* You need to specify the permissions when [creating the Video Room
|
|
309
|
-
* Token](https://developer.signalwire.com/apis/reference/create_room_token)
|
|
310
|
-
* on the server side.
|
|
311
|
-
*
|
|
312
|
-
* @example
|
|
313
|
-
* ```typescript
|
|
314
|
-
* await roomdevice.setInputSensitivity({value: 80})
|
|
315
|
-
* ```
|
|
316
|
-
*/
|
|
317
|
-
setInputSensitivity(params: {
|
|
318
|
-
value: number
|
|
319
|
-
}): Rooms.SetInputSensitivityMember
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* We are using these interfaces in combination of
|
|
324
|
-
* Object.defineProperties() to avoid code duplication and
|
|
325
|
-
* expose a nice documentation via TypeDoc. The interface
|
|
326
|
-
* forces TS checking while Object.defineProperties allow us
|
|
327
|
-
* flexibility across different objects.
|
|
328
|
-
*/
|
|
329
|
-
export interface VideoRoomSessionMethods
|
|
330
|
-
extends OnlyFunctionProperties<CoreVideoRoomSessionContract> {
|
|
331
|
-
/** @deprecated Use {@link setVideoMuted} instead */
|
|
332
|
-
hideVideoMuted(): Rooms.HideVideoMuted
|
|
333
|
-
/** @deprecated Use {@link setVideoMuted} instead */
|
|
334
|
-
showVideoMuted(): Rooms.ShowVideoMuted
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export interface VideoRoomSessionContract {
|
|
338
|
-
deviceList: RoomSessionDevice[]
|
|
339
|
-
interactivityMode: VideoAuthorization['join_as']
|
|
340
|
-
permissions: VideoAuthorization['scopes']
|
|
341
|
-
/** The `layout.changed` event based on the current room layout */
|
|
342
|
-
currentLayoutEvent: VideoLayoutChangedEventParams
|
|
343
|
-
/** The layout returned from the `layout.changed` event based on the current room layout */
|
|
344
|
-
currentLayout: VideoLayoutChangedEventParams['layout']
|
|
345
|
-
/** The current position of the member returned from the `layout.changed` event */
|
|
346
|
-
currentPosition: VideoPosition | undefined
|
|
347
|
-
/**
|
|
348
|
-
* Joins the room session.
|
|
349
|
-
*/
|
|
350
|
-
join(options?: BaseRoomSessionJoinParams): Promise<VideoRoomSessionContract>
|
|
351
|
-
/**
|
|
352
|
-
* Adds a screen sharing instance to the room. You can create multiple screen
|
|
353
|
-
* sharing instances and add all of them to the room.
|
|
354
|
-
* @param opts - {@link CreateScreenShareObjectOptions}
|
|
355
|
-
* @returns - {@link RoomSessionScreenShare}
|
|
356
|
-
*
|
|
357
|
-
* @deprecated Use {@link startScreenShare} instead.
|
|
358
|
-
*/
|
|
359
|
-
createScreenShareObject(
|
|
360
|
-
opts?: CreateScreenShareObjectOptions
|
|
361
|
-
): Promise<RoomSessionScreenShare>
|
|
362
|
-
/**
|
|
363
|
-
* Adds a camera device to the room. Using this method, a user can stream
|
|
364
|
-
* multiple video sources at the same time.
|
|
365
|
-
*
|
|
366
|
-
* @param opts - Specify the constraints for the device. In addition, you can
|
|
367
|
-
* add the `autoJoin` key to specify whether the device should immediately
|
|
368
|
-
* join the room or joining will be performed manually later. {@link AddCameraOptions}
|
|
369
|
-
* @returns - {@link RoomSessionDevice}
|
|
370
|
-
*
|
|
371
|
-
* @example Adding a specific camera:
|
|
372
|
-
* ```typescript
|
|
373
|
-
* await roomSession.addCamera({deviceId: "gOtMHwZdoA6wMlAnhbfTmeRgPAsqa7iw1OwgKYtbTLA="})
|
|
374
|
-
* ```
|
|
375
|
-
*/
|
|
376
|
-
addCamera(opts: AddCameraOptions): Promise<RoomSessionDevice>
|
|
377
|
-
/**
|
|
378
|
-
* Adds a microphone device to the room. Using this method, a user can stream
|
|
379
|
-
* multiple video sources at the same time.
|
|
380
|
-
*
|
|
381
|
-
* @param opts Specify the constraints for the device. In addition, you can
|
|
382
|
-
* add the `autoJoin` key to specify whether the device should immediately
|
|
383
|
-
* join the room or joining will be performed manually later. {@link AddMicrophoneOptions}
|
|
384
|
-
* @returns - {@link RoomSessionDevice}
|
|
385
|
-
*
|
|
386
|
-
* @example Adding a specific microphone:
|
|
387
|
-
* ```typescript
|
|
388
|
-
* await roomSession.addMicrophone({deviceId: "PIn/IIDDgBUHzJkhRncv1m85hX1gC67xYIgJvvThB3Q="})
|
|
389
|
-
* ```
|
|
390
|
-
*/
|
|
391
|
-
addMicrophone(opts: AddMicrophoneOptions): Promise<RoomSessionDevice>
|
|
392
|
-
/**
|
|
393
|
-
* Adds a device to the room. Using this method, a user can stream multiple
|
|
394
|
-
* sources at the same time. If you need to add a camera device or a
|
|
395
|
-
* microphone device, you can alternatively use the more specific methods
|
|
396
|
-
* {@link addCamera} and {@link addMicrophone}.
|
|
397
|
-
*
|
|
398
|
-
* @param opts Specify the constraints for the device. In addition, you can
|
|
399
|
-
* add the `autoJoin` key to specify whether the device should immediately
|
|
400
|
-
* join the room or joining will be performed manually later. {@link AddDeviceOptions}
|
|
401
|
-
* @returns - {@link RoomSessionDevice}
|
|
402
|
-
*
|
|
403
|
-
* @example Adding any of the microphone devices to the room (duplicate
|
|
404
|
-
* streams are possible):
|
|
405
|
-
* ```typescript
|
|
406
|
-
* await roomSession.addDevice({audio: true})
|
|
407
|
-
* ```
|
|
408
|
-
*/
|
|
409
|
-
addDevice(opts: AddDeviceOptions): Promise<RoomSessionDevice>
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export interface RoomSessionDeviceMethods
|
|
413
|
-
extends RoomMemberSelfMethodsInterface {}
|
|
414
|
-
|
|
415
|
-
export interface RoomScreenShareMethods
|
|
416
|
-
extends RoomMemberSelfMethodsInterface {}
|
|
417
|
-
|
|
418
|
-
export interface BaseRoomSessionJoinParams {
|
|
419
|
-
audio?: MediaStreamConstraints['audio']
|
|
420
|
-
video?: MediaStreamConstraints['video']
|
|
421
|
-
receiveAudio?: boolean
|
|
422
|
-
receiveVideo?: boolean
|
|
423
|
-
sendAudio?: boolean
|
|
424
|
-
sendVideo?: boolean
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
export type PagingCursor =
|
|
428
|
-
| {
|
|
429
|
-
before: string
|
|
430
|
-
after?: never
|
|
431
|
-
}
|
|
432
|
-
| {
|
|
433
|
-
before?: never
|
|
434
|
-
after: string
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export type AudioElement = HTMLAudioElement & {
|
|
438
|
-
sinkId?: string
|
|
439
|
-
setSinkId?: (id: string) => Promise<void>
|
|
440
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constructs a URL with query parameters.
|
|
3
|
-
*
|
|
4
|
-
* @param path The base path of the URL.
|
|
5
|
-
* @param queryParams An instance of URLSearchParams containing all query parameters.
|
|
6
|
-
* @returns The constructed URL with query parameters.
|
|
7
|
-
*/
|
|
8
|
-
export function makeQueryParamsUrls(
|
|
9
|
-
path: string,
|
|
10
|
-
queryParams: URLSearchParams
|
|
11
|
-
): string {
|
|
12
|
-
const queryString = queryParams.toString()
|
|
13
|
-
return queryString ? `${path}?${queryString}` : path
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PaginatedResponse } from '../fabric/interfaces'
|
|
2
|
-
import { CreateHttpClient } from '../fabric/createHttpClient'
|
|
3
|
-
|
|
4
|
-
export function buildPaginatedResult<T>(
|
|
5
|
-
body: PaginatedResponse<T>,
|
|
6
|
-
client: CreateHttpClient
|
|
7
|
-
) {
|
|
8
|
-
const anotherPage = async (url?: string) => {
|
|
9
|
-
if (!url) return Promise.resolve(undefined)
|
|
10
|
-
const { body } = await client<PaginatedResponse<T>>(url)
|
|
11
|
-
return buildPaginatedResult<T>(body, client)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return {
|
|
15
|
-
data: body.data,
|
|
16
|
-
self: async () => {
|
|
17
|
-
const { self } = body.links
|
|
18
|
-
return anotherPage(self)
|
|
19
|
-
},
|
|
20
|
-
nextPage: async () => {
|
|
21
|
-
const { next } = body.links
|
|
22
|
-
return anotherPage(next)
|
|
23
|
-
},
|
|
24
|
-
prevPage: async () => {
|
|
25
|
-
const { prev } = body.links
|
|
26
|
-
return anotherPage(prev)
|
|
27
|
-
},
|
|
28
|
-
firstPage: async () => {
|
|
29
|
-
const { first } = body.links
|
|
30
|
-
return anotherPage(first)
|
|
31
|
-
},
|
|
32
|
-
hasNext: Boolean(body.links.next),
|
|
33
|
-
hasPrev: Boolean(body.links.prev),
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import type { VideoAuthorization } from '@signalwire/core'
|
|
2
|
-
import { BaseRoomSessionJoinParams } from './interfaces'
|
|
3
|
-
import { getJoinMediaParams } from './roomSession'
|
|
4
|
-
|
|
5
|
-
describe('getJoinMediaParams', () => {
|
|
6
|
-
const authorization: VideoAuthorization = {
|
|
7
|
-
type: 'video',
|
|
8
|
-
project: 'project_id',
|
|
9
|
-
scopes: ['video'],
|
|
10
|
-
scope_id: 'scope_id',
|
|
11
|
-
resource: 'resource',
|
|
12
|
-
join_as: 'member',
|
|
13
|
-
user_name: 'memberName',
|
|
14
|
-
meta: {},
|
|
15
|
-
audio_allowed: 'both',
|
|
16
|
-
video_allowed: 'both',
|
|
17
|
-
room: {
|
|
18
|
-
name: 'jest',
|
|
19
|
-
display_name: 'Jest',
|
|
20
|
-
scopes: [],
|
|
21
|
-
meta: {},
|
|
22
|
-
},
|
|
23
|
-
signature: 'signature',
|
|
24
|
-
project_id: '',
|
|
25
|
-
}
|
|
26
|
-
const authStateMap = new Map<string, VideoAuthorization>()
|
|
27
|
-
authStateMap.set('member-all', authorization)
|
|
28
|
-
authStateMap.set('member-audio-only', {
|
|
29
|
-
...authorization,
|
|
30
|
-
video_allowed: 'none',
|
|
31
|
-
})
|
|
32
|
-
authStateMap.set('member-video-only', {
|
|
33
|
-
...authorization,
|
|
34
|
-
audio_allowed: 'none',
|
|
35
|
-
})
|
|
36
|
-
authStateMap.set('audience-all', {
|
|
37
|
-
...authorization,
|
|
38
|
-
join_as: 'audience',
|
|
39
|
-
})
|
|
40
|
-
authStateMap.set('audience-audio-only', {
|
|
41
|
-
...authorization,
|
|
42
|
-
join_as: 'audience',
|
|
43
|
-
video_allowed: 'none',
|
|
44
|
-
})
|
|
45
|
-
authStateMap.set('audience-video-only', {
|
|
46
|
-
...authorization,
|
|
47
|
-
join_as: 'audience',
|
|
48
|
-
audio_allowed: 'none',
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Build all the combinations of arguments that `getJoinMediaParams()`
|
|
53
|
-
* could receive.
|
|
54
|
-
*/
|
|
55
|
-
const keys: (keyof BaseRoomSessionJoinParams)[] = [
|
|
56
|
-
'sendAudio',
|
|
57
|
-
'receiveAudio',
|
|
58
|
-
'sendVideo',
|
|
59
|
-
'receiveVideo',
|
|
60
|
-
'audio',
|
|
61
|
-
'video',
|
|
62
|
-
]
|
|
63
|
-
const cases: BaseRoomSessionJoinParams[] = []
|
|
64
|
-
const booleans = [true, false]
|
|
65
|
-
keys.forEach((key, index) => {
|
|
66
|
-
booleans.forEach((bool) => {
|
|
67
|
-
const tmp: BaseRoomSessionJoinParams = {}
|
|
68
|
-
for (let i = index; i < keys.length; i++) {
|
|
69
|
-
tmp[keys[i]] = bool
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
tmp[key] = bool
|
|
73
|
-
cases.push(tmp)
|
|
74
|
-
|
|
75
|
-
if (Object.keys(tmp).length > 1) {
|
|
76
|
-
cases.push({ ...tmp, [key]: !bool })
|
|
77
|
-
cases.push({ [key]: bool })
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Build describe/test blocks dynamically for
|
|
84
|
-
* JoinAs types: member / audience
|
|
85
|
-
* Media Allowed: 'all', 'audio-only', 'video-only'
|
|
86
|
-
*
|
|
87
|
-
* For each pair, do a test with all the possible
|
|
88
|
-
* combinations built above to make sure the correct
|
|
89
|
-
* values are returned by `getJoinMediaParams()`
|
|
90
|
-
*
|
|
91
|
-
* The logic used in here is different from the implementation
|
|
92
|
-
* of `getJoinMediaParams` to prove the correct values.
|
|
93
|
-
*/
|
|
94
|
-
const joinAs = ['member', 'audience']
|
|
95
|
-
const mediaDirectionAllowed = ['all', 'audio-only', 'video-only']
|
|
96
|
-
joinAs.forEach((joinType) => {
|
|
97
|
-
describe(`as ${joinType}`, () => {
|
|
98
|
-
mediaDirectionAllowed.forEach((direction) => {
|
|
99
|
-
describe(`with media_allowed: '${direction}'`, () => {
|
|
100
|
-
cases.forEach((params) => {
|
|
101
|
-
const {
|
|
102
|
-
audio = true, // true if undefined
|
|
103
|
-
video = true, // true if undefined
|
|
104
|
-
sendAudio,
|
|
105
|
-
receiveAudio,
|
|
106
|
-
sendVideo,
|
|
107
|
-
receiveVideo,
|
|
108
|
-
} = params
|
|
109
|
-
|
|
110
|
-
// prettier-ignore
|
|
111
|
-
const reqToSendAudio = typeof sendAudio !== 'undefined' ? sendAudio : Boolean(audio)
|
|
112
|
-
// prettier-ignore
|
|
113
|
-
const reqToSendVideo = typeof sendVideo !== 'undefined' ? sendVideo : Boolean(video)
|
|
114
|
-
// prettier-ignore
|
|
115
|
-
const reqToRecvAudio = typeof receiveAudio !== 'undefined' ? receiveAudio : Boolean(audio)
|
|
116
|
-
// prettier-ignore
|
|
117
|
-
const reqToRecvVideo = typeof receiveVideo !== 'undefined' ? receiveVideo : Boolean(video)
|
|
118
|
-
|
|
119
|
-
it(`should handle params: ${JSON.stringify(params)}`, () => {
|
|
120
|
-
const authorization = authStateMap.get(`${joinType}-${direction}`)
|
|
121
|
-
if (!authorization) {
|
|
122
|
-
throw 'Invalid Authorization'
|
|
123
|
-
}
|
|
124
|
-
const result = getJoinMediaParams({ ...params, authorization })
|
|
125
|
-
|
|
126
|
-
expect(result).toStrictEqual({
|
|
127
|
-
// prettier-ignore
|
|
128
|
-
mustSendAudio: joinType === 'member' && direction !== 'video-only' && reqToSendAudio,
|
|
129
|
-
// prettier-ignore
|
|
130
|
-
mustSendVideo: joinType === 'member' && direction !== 'audio-only' && reqToSendVideo,
|
|
131
|
-
mustRecvAudio: direction !== 'video-only' && reqToRecvAudio,
|
|
132
|
-
mustRecvVideo: direction !== 'audio-only' && reqToRecvVideo,
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
})
|
|
139
|
-
})
|
|
140
|
-
})
|