@signalwire/js 3.29.2 → 4.0.0-beta.1
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 +16628 -0
- package/dist/browser.mjs.map +1 -0
- package/dist/browser.umd.js +16649 -0
- package/dist/browser.umd.js.map +1 -0
- package/dist/index.cjs +6213 -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 +6197 -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,188 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asyncRetry,
|
|
3
|
-
AuthError,
|
|
4
|
-
HttpError,
|
|
5
|
-
increasingDelay,
|
|
6
|
-
} from '@signalwire/core'
|
|
7
|
-
import { ApiRequestRetriesOptions } from './interfaces'
|
|
8
|
-
|
|
9
|
-
interface InternalHttpResponse<T> extends Response {
|
|
10
|
-
parsedBody?: T
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const DEFAULT_MAX_RETRIES = 0
|
|
14
|
-
const DEFAULT_INITIAL_DELAY = 0
|
|
15
|
-
const DEFAULT_DELAY_VARIATION = 0
|
|
16
|
-
const DEFAULT_TIMEOUT = 30000
|
|
17
|
-
|
|
18
|
-
async function http<T>(
|
|
19
|
-
input: string,
|
|
20
|
-
init: RequestInit | undefined,
|
|
21
|
-
maxRetries?: number,
|
|
22
|
-
retriesDelay?: number,
|
|
23
|
-
retriesDelayIncrement?: number
|
|
24
|
-
): Promise<InternalHttpResponse<T>> {
|
|
25
|
-
const response: InternalHttpResponse<T> = await asyncRetry({
|
|
26
|
-
asyncCallable: () => fetch(input, init),
|
|
27
|
-
maxRetries,
|
|
28
|
-
validator: (response) => {
|
|
29
|
-
// whe should retry only error above Http-500
|
|
30
|
-
if (!response.ok && response.status >= 500) {
|
|
31
|
-
throw new HttpError(response.status, response.statusText)
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
delayFn: increasingDelay({
|
|
35
|
-
initialDelay: retriesDelay,
|
|
36
|
-
variation: retriesDelayIncrement,
|
|
37
|
-
}),
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
if (!response.ok) {
|
|
41
|
-
if (response.status === 401) {
|
|
42
|
-
throw new AuthError(response.status, 'Unauthorized')
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
let errorResponse
|
|
46
|
-
try {
|
|
47
|
-
errorResponse = await response.json()
|
|
48
|
-
} catch (e) {}
|
|
49
|
-
|
|
50
|
-
const errorMessage = errorResponse?.errors
|
|
51
|
-
? JSON.stringify(errorResponse.errors)
|
|
52
|
-
: 'Not Found'
|
|
53
|
-
|
|
54
|
-
throw new HttpError(response.status, errorMessage, errorResponse)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
// might throw if body is empty
|
|
59
|
-
response.parsedBody = await response.json()
|
|
60
|
-
} catch (e) {}
|
|
61
|
-
|
|
62
|
-
return response
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type CreateHttpClientOptions = RequestInit &
|
|
66
|
-
Partial<ApiRequestRetriesOptions> & {
|
|
67
|
-
baseUrl: string
|
|
68
|
-
/**
|
|
69
|
-
* Timeout in milliseconds
|
|
70
|
-
*/
|
|
71
|
-
timeout?: number
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface HttpClientRequestInit extends Omit<RequestInit, 'body'> {
|
|
75
|
-
body?: Record<string, unknown>
|
|
76
|
-
searchParams?: Record<string, any>
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type CreateHttpClient = ReturnType<typeof createHttpClient>
|
|
80
|
-
|
|
81
|
-
export const createHttpClient = (
|
|
82
|
-
{
|
|
83
|
-
baseUrl,
|
|
84
|
-
maxApiRequestRetries: retries = DEFAULT_MAX_RETRIES,
|
|
85
|
-
apiRequestRetriesDelay: retriesDelay = DEFAULT_INITIAL_DELAY,
|
|
86
|
-
apiRequestRetriesDelayIncrement:
|
|
87
|
-
retriesDelayIncrement = DEFAULT_DELAY_VARIATION,
|
|
88
|
-
timeout = DEFAULT_TIMEOUT,
|
|
89
|
-
...globalOptions
|
|
90
|
-
}: CreateHttpClientOptions,
|
|
91
|
-
fetcher = http
|
|
92
|
-
) => {
|
|
93
|
-
const apiClient = async <T>(
|
|
94
|
-
path: string,
|
|
95
|
-
options?: HttpClientRequestInit
|
|
96
|
-
): Promise<{ body: T }> => {
|
|
97
|
-
const headers = {
|
|
98
|
-
...(options?.body ? { 'Content-Type': 'application/json' } : {}),
|
|
99
|
-
...globalOptions.headers,
|
|
100
|
-
...options?.headers,
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const reqInit = getRequestInit({
|
|
104
|
-
...globalOptions,
|
|
105
|
-
...options,
|
|
106
|
-
headers,
|
|
107
|
-
})
|
|
108
|
-
// reqInit.mode = 'no-cors'
|
|
109
|
-
// reqInit.credentials = 'include'
|
|
110
|
-
|
|
111
|
-
let timerId
|
|
112
|
-
if (timeout) {
|
|
113
|
-
const controller = new AbortController()
|
|
114
|
-
const signal = controller.signal
|
|
115
|
-
|
|
116
|
-
reqInit.signal = signal
|
|
117
|
-
|
|
118
|
-
timerId = setTimeout(() => {
|
|
119
|
-
controller.abort()
|
|
120
|
-
}, timeout)
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
try {
|
|
124
|
-
const response = await fetcher<T>(
|
|
125
|
-
getUrl({
|
|
126
|
-
path,
|
|
127
|
-
baseUrl,
|
|
128
|
-
searchParams: options?.searchParams,
|
|
129
|
-
}),
|
|
130
|
-
reqInit,
|
|
131
|
-
retries,
|
|
132
|
-
retriesDelay,
|
|
133
|
-
retriesDelayIncrement
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
return { body: response.parsedBody as T }
|
|
137
|
-
} catch (e) {
|
|
138
|
-
throw e
|
|
139
|
-
} finally {
|
|
140
|
-
timerId && clearTimeout(timerId)
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return apiClient
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const getBody = (body: unknown) => {
|
|
148
|
-
return typeof body === 'string' ? body : JSON.stringify(body)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const getRequestInit = (options: any): RequestInit => {
|
|
152
|
-
return Object.entries(options).reduce((reducer, [key, value]) => {
|
|
153
|
-
if (key === 'body') {
|
|
154
|
-
return {
|
|
155
|
-
...reducer,
|
|
156
|
-
body: getBody(value),
|
|
157
|
-
}
|
|
158
|
-
} else if (value != undefined) {
|
|
159
|
-
return {
|
|
160
|
-
...reducer,
|
|
161
|
-
[key]: value,
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return reducer
|
|
166
|
-
}, {} as RequestInit)
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const getUrl = ({
|
|
170
|
-
path,
|
|
171
|
-
baseUrl,
|
|
172
|
-
searchParams,
|
|
173
|
-
}: {
|
|
174
|
-
baseUrl: string
|
|
175
|
-
path: string
|
|
176
|
-
searchParams?: Record<string, any>
|
|
177
|
-
}) => {
|
|
178
|
-
const url = new URL(path, baseUrl)
|
|
179
|
-
|
|
180
|
-
if (searchParams) {
|
|
181
|
-
Object.entries(searchParams).forEach(([key, value]) => {
|
|
182
|
-
if (value != undefined) {
|
|
183
|
-
url.searchParams.append(key, value)
|
|
184
|
-
}
|
|
185
|
-
})
|
|
186
|
-
}
|
|
187
|
-
return url.toString()
|
|
188
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { configureStore } from '@signalwire/core'
|
|
2
|
-
import { SATSession } from './SATSession'
|
|
3
|
-
import { WSClientOptions } from './interfaces'
|
|
4
|
-
|
|
5
|
-
export const createWSClient = (options: WSClientOptions) => {
|
|
6
|
-
const store = configureStore({
|
|
7
|
-
userOptions: options,
|
|
8
|
-
SessionConstructor: SATSession,
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
return { ...options, store }
|
|
12
|
-
}
|
package/src/fabric/index.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ============ CAUTION ============
|
|
3
|
-
*
|
|
4
|
-
* Anything we export from here in available on the Public interface.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export * from './SignalWire'
|
|
8
|
-
export * from './interfaces/address'
|
|
9
|
-
export * from './interfaces/capabilities'
|
|
10
|
-
export * from './interfaces/conversation'
|
|
11
|
-
export * from './interfaces/device'
|
|
12
|
-
export * from './interfaces/incomingCallManager'
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
OnlineParams,
|
|
16
|
-
HandlePushNotificationParams,
|
|
17
|
-
HandlePushNotificationResult,
|
|
18
|
-
DialParams,
|
|
19
|
-
ReattachParams
|
|
20
|
-
} from './interfaces/wsClient'
|
|
21
|
-
export {
|
|
22
|
-
SignalWireClient,
|
|
23
|
-
SignalWireContract,
|
|
24
|
-
SignalWireClientParams,
|
|
25
|
-
GetSubscriberInfoResponse,
|
|
26
|
-
GetSubscriberInfoResult,
|
|
27
|
-
PaginatedResponse,
|
|
28
|
-
PaginatedResult,
|
|
29
|
-
} from './interfaces'
|
|
30
|
-
export { FabricRoomSession, isFabricRoomSession } from './FabricRoomSession'
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { PaginatedResponse, PaginatedResult } from '.'
|
|
2
|
-
|
|
3
|
-
export type ResourceType = 'app' | 'call' | 'room' | 'subscriber'
|
|
4
|
-
|
|
5
|
-
export interface GetAddressResponse {
|
|
6
|
-
id: string
|
|
7
|
-
display_name: string
|
|
8
|
-
name: string
|
|
9
|
-
preview_url?: string
|
|
10
|
-
cover_url?: string
|
|
11
|
-
resource_id: string
|
|
12
|
-
type: ResourceType
|
|
13
|
-
channels: {
|
|
14
|
-
audio?: string
|
|
15
|
-
messaging?: string
|
|
16
|
-
video?: string
|
|
17
|
-
}
|
|
18
|
-
locked: boolean
|
|
19
|
-
created_at: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type Address = GetAddressResponse
|
|
23
|
-
|
|
24
|
-
export interface GetAddressesParams {
|
|
25
|
-
type?: string
|
|
26
|
-
displayName?: string
|
|
27
|
-
pageSize?: number
|
|
28
|
-
sortBy?: 'name' | 'created_at'
|
|
29
|
-
sortOrder?: 'asc' | 'desc'
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface GetAddressByIdParams {
|
|
33
|
-
id: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface GetAddressByNameParams {
|
|
37
|
-
name: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type GetAddressParams = GetAddressByIdParams | GetAddressByNameParams
|
|
41
|
-
|
|
42
|
-
export type GetAddressResult = GetAddressResponse
|
|
43
|
-
|
|
44
|
-
export type GetAddressesResponse = PaginatedResponse<GetAddressResponse>
|
|
45
|
-
|
|
46
|
-
export type GetAddressesResult = PaginatedResult<GetAddressResponse>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface CapabilityOnOffStateContract {
|
|
2
|
-
on: boolean
|
|
3
|
-
off: boolean
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface MemberCapabilityContract {
|
|
7
|
-
muteAudio: CapabilityOnOffStateContract
|
|
8
|
-
muteVideo: CapabilityOnOffStateContract
|
|
9
|
-
microphoneVolume: boolean
|
|
10
|
-
microphoneSensitivity: boolean
|
|
11
|
-
speakerVolume: boolean
|
|
12
|
-
deaf: CapabilityOnOffStateContract
|
|
13
|
-
raisehand: CapabilityOnOffStateContract
|
|
14
|
-
position: boolean
|
|
15
|
-
meta: boolean
|
|
16
|
-
remove: boolean
|
|
17
|
-
audioFlags: boolean
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface CallCapabilitiesContract {
|
|
21
|
-
self: MemberCapabilityContract
|
|
22
|
-
member: MemberCapabilityContract
|
|
23
|
-
end: boolean
|
|
24
|
-
setLayout: boolean
|
|
25
|
-
sendDigit: boolean
|
|
26
|
-
vmutedHide: CapabilityOnOffStateContract
|
|
27
|
-
lock: CapabilityOnOffStateContract
|
|
28
|
-
device: boolean
|
|
29
|
-
screenshare: boolean
|
|
30
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { PaginatedResponse, PaginatedResult } from '.'
|
|
2
|
-
import type { ConversationEventParams } from '@signalwire/core'
|
|
3
|
-
|
|
4
|
-
export interface ConversationContract {
|
|
5
|
-
readonly addressId: string
|
|
6
|
-
readonly createdAt: number
|
|
7
|
-
readonly id: string
|
|
8
|
-
readonly lastMessageAt: number
|
|
9
|
-
readonly metadata: Record<string, any>
|
|
10
|
-
readonly name: string
|
|
11
|
-
sendMessage(
|
|
12
|
-
params: ConversationAPISendMessageParams
|
|
13
|
-
): Promise<SendConversationMessageResult>
|
|
14
|
-
getMessages(
|
|
15
|
-
params?: ConversationAPIGetMessagesParams
|
|
16
|
-
): Promise<GetConversationMessagesResult>
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface SendConversationMessageParams {
|
|
20
|
-
text: string
|
|
21
|
-
addressId: string
|
|
22
|
-
metadata?: Record<string, any>
|
|
23
|
-
details?: Record<string, any>
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface SendConversationMessageResponse {
|
|
27
|
-
table: {
|
|
28
|
-
conversation_id: string
|
|
29
|
-
text: string
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type SendConversationMessageResult = SendConversationMessageResponse
|
|
34
|
-
|
|
35
|
-
export interface GetConversationsParams {
|
|
36
|
-
pageSize?: number
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ConversationResponse {
|
|
40
|
-
address_id: string
|
|
41
|
-
created_at: number
|
|
42
|
-
id: string
|
|
43
|
-
last_message_at: number
|
|
44
|
-
metadata: Record<string, any>
|
|
45
|
-
name: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type GetConversationsResponse = PaginatedResponse<ConversationResponse>
|
|
49
|
-
|
|
50
|
-
export type GetConversationsResult = PaginatedResult<ConversationContract>
|
|
51
|
-
|
|
52
|
-
export type ConversationSubscribeCallback = (
|
|
53
|
-
event: ConversationEventParams
|
|
54
|
-
) => unknown
|
|
55
|
-
|
|
56
|
-
export interface ConversationSubscribeResult {
|
|
57
|
-
unsubscribe: () => void
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ConversationChatMessagesSubscribeParams {
|
|
61
|
-
addressId: string
|
|
62
|
-
onMessage: ConversationSubscribeCallback
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type ConversationChatMessagesSubscribeResult =
|
|
66
|
-
ConversationSubscribeResult
|
|
67
|
-
|
|
68
|
-
export interface JoinConversationParams {
|
|
69
|
-
addressId: string
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface JoinConversationResponse {
|
|
73
|
-
table: {
|
|
74
|
-
conversation_id: string
|
|
75
|
-
text: string
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type JoinConversationResult = JoinConversationResponse
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Conversation Messages
|
|
83
|
-
*/
|
|
84
|
-
export interface GetMessagesParams {
|
|
85
|
-
pageSize?: number
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface ConversationMessage {
|
|
89
|
-
id: string
|
|
90
|
-
address_id: string
|
|
91
|
-
conversation_id: string
|
|
92
|
-
user_id: string
|
|
93
|
-
from_address_id: string
|
|
94
|
-
ts: number
|
|
95
|
-
metadata?: Record<string, any>
|
|
96
|
-
details: Record<string, any>
|
|
97
|
-
type: string
|
|
98
|
-
subtype: string
|
|
99
|
-
kind?: string
|
|
100
|
-
text?: string
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type GetMessagesResult = PaginatedResult<ConversationMessage>
|
|
104
|
-
|
|
105
|
-
export type ConversationChatMessage = Omit<ConversationMessage, 'kind'> & {
|
|
106
|
-
text: string
|
|
107
|
-
user_name: string
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface GetConversationChatMessageParams {
|
|
111
|
-
addressId: string
|
|
112
|
-
pageSize?: number
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type GetConversationChatMessageResult =
|
|
116
|
-
PaginatedResult<ConversationChatMessage>
|
|
117
|
-
|
|
118
|
-
export interface GetConversationMessagesResponse
|
|
119
|
-
extends PaginatedResponse<ConversationMessage> {}
|
|
120
|
-
|
|
121
|
-
export interface GetConversationMessagesParams {
|
|
122
|
-
addressId: string
|
|
123
|
-
pageSize?: number
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type GetConversationMessagesResult = PaginatedResult<ConversationMessage>
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Conversation API
|
|
130
|
-
*/
|
|
131
|
-
export interface ConversationAPISendMessageParams {
|
|
132
|
-
text: string
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface ConversationAPIGetMessagesParams {
|
|
136
|
-
pageSize?: number
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export type {
|
|
140
|
-
ConversationMessageEventName,
|
|
141
|
-
ConversationMessageEventParams,
|
|
142
|
-
ConversationMessageEvent,
|
|
143
|
-
ConversationEvent,
|
|
144
|
-
ConversationEventParams,
|
|
145
|
-
} from '@signalwire/core'
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type RegisterDeviceType = 'iOS' | 'Android' | 'Desktop'
|
|
2
|
-
|
|
3
|
-
export interface RegisterDeviceParams {
|
|
4
|
-
deviceType: RegisterDeviceType
|
|
5
|
-
deviceToken: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface UnregisterDeviceParams {
|
|
9
|
-
id: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface RegisterDeviceResponse {
|
|
13
|
-
date_registered: Date
|
|
14
|
-
device_name?: string
|
|
15
|
-
device_token: string
|
|
16
|
-
device_type: RegisterDeviceType
|
|
17
|
-
id: string
|
|
18
|
-
push_notification_key: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type RegisterDeviceResult = RegisterDeviceResponse
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { GetSubscriberInfoResult } from '.'
|
|
2
|
-
import {
|
|
3
|
-
GetAddressesParams,
|
|
4
|
-
GetAddressesResult,
|
|
5
|
-
GetAddressParams,
|
|
6
|
-
GetAddressResult,
|
|
7
|
-
} from './address'
|
|
8
|
-
import {
|
|
9
|
-
RegisterDeviceParams,
|
|
10
|
-
RegisterDeviceResult,
|
|
11
|
-
UnregisterDeviceParams,
|
|
12
|
-
} from './device'
|
|
13
|
-
|
|
14
|
-
export interface HTTPClientContract {
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a resource by its ID or Name.
|
|
17
|
-
*
|
|
18
|
-
* @param params - The parameters for fetching the resource {@link GetAddressParams}.
|
|
19
|
-
* @returns A promise that resolves to the resource {@link GetAddressResult}.
|
|
20
|
-
*/
|
|
21
|
-
getAddress(params: GetAddressParams): Promise<GetAddressResult>
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve all resources defined in your SignalWire dashboard.
|
|
24
|
-
* Supports optional resource filtering.
|
|
25
|
-
*
|
|
26
|
-
* @param params - The parameters for filtering resources {@link GetAddressesParams}.
|
|
27
|
-
* @returns A promise that resolves to the list of resources {@link GetAddressesResult}.
|
|
28
|
-
*/
|
|
29
|
-
getAddresses(params?: GetAddressesParams): Promise<GetAddressesResult>
|
|
30
|
-
/**
|
|
31
|
-
* Register a device to receive incoming call requests.
|
|
32
|
-
*
|
|
33
|
-
* @param params - The parameters required to register the device {@link RegisterDeviceParams}.
|
|
34
|
-
* @returns A promise that resolves to the registration result {@link RegisterDeviceResult}.
|
|
35
|
-
*/
|
|
36
|
-
registerDevice(params: RegisterDeviceParams): Promise<RegisterDeviceResult>
|
|
37
|
-
/**
|
|
38
|
-
* Unregister a device to stop receiving incoming call requests.
|
|
39
|
-
*
|
|
40
|
-
* @param params - The parameters required to unregister the device {@link UnregisterDeviceParams}.
|
|
41
|
-
* @returns A promise that resolves when the device is successfully unregistered.
|
|
42
|
-
*/
|
|
43
|
-
unregisterDevice(params: UnregisterDeviceParams): Promise<void>
|
|
44
|
-
/**
|
|
45
|
-
* Retrieve information about the current subscriber.
|
|
46
|
-
*
|
|
47
|
-
* @returns A promise that resolves to the subscriber information object {@link GetSubscriberInfoResult}.
|
|
48
|
-
*/
|
|
49
|
-
getSubscriberInfo(): Promise<GetSubscriberInfoResult>
|
|
50
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FabricRoomSession } from '../FabricRoomSession'
|
|
2
|
-
import { CallParams } from './wsClient'
|
|
3
|
-
|
|
4
|
-
export type IncomingInviteSource = 'websocket' | 'pushNotification'
|
|
5
|
-
|
|
6
|
-
export interface IncomingInvite {
|
|
7
|
-
callID: string
|
|
8
|
-
sdp: string
|
|
9
|
-
caller_id_name: string
|
|
10
|
-
caller_id_number: string
|
|
11
|
-
callee_id_name: string
|
|
12
|
-
callee_id_number: string
|
|
13
|
-
display_direction: string
|
|
14
|
-
nodeId: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IncomingInviteWithSource extends IncomingInvite {
|
|
18
|
-
source: IncomingInviteSource
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IncomingCallNotification {
|
|
22
|
-
invite: {
|
|
23
|
-
details: IncomingInvite
|
|
24
|
-
accept: (param: CallParams) => Promise<FabricRoomSession>
|
|
25
|
-
reject: () => Promise<void>
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export type IncomingCallHandler = (
|
|
29
|
-
notification: IncomingCallNotification
|
|
30
|
-
) => void
|
|
31
|
-
|
|
32
|
-
export interface IncomingCallHandlers {
|
|
33
|
-
all?: IncomingCallHandler
|
|
34
|
-
pushNotification?: IncomingCallHandler
|
|
35
|
-
websocket?: IncomingCallHandler
|
|
36
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConversationChatMessagesSubscribeParams,
|
|
3
|
-
ConversationChatMessagesSubscribeResult,
|
|
4
|
-
ConversationSubscribeCallback,
|
|
5
|
-
ConversationSubscribeResult,
|
|
6
|
-
GetConversationChatMessageParams,
|
|
7
|
-
GetConversationChatMessageResult,
|
|
8
|
-
GetConversationMessagesParams,
|
|
9
|
-
GetConversationMessagesResult,
|
|
10
|
-
GetConversationsParams,
|
|
11
|
-
GetConversationsResult,
|
|
12
|
-
GetMessagesParams,
|
|
13
|
-
GetMessagesResult,
|
|
14
|
-
JoinConversationParams,
|
|
15
|
-
JoinConversationResult,
|
|
16
|
-
SendConversationMessageParams,
|
|
17
|
-
SendConversationMessageResult,
|
|
18
|
-
} from './conversation'
|
|
19
|
-
import { Address } from './address'
|
|
20
|
-
import { HTTPClientContract } from './httpClient'
|
|
21
|
-
import { WSClientContract, WSClientOptions } from './wsClient'
|
|
22
|
-
|
|
23
|
-
export interface SignalWireClientParams extends WSClientOptions {}
|
|
24
|
-
|
|
25
|
-
export interface SignalWireContract
|
|
26
|
-
extends WSClientContract,
|
|
27
|
-
Omit<HTTPClientContract, 'getAddresses' | 'getAddress'> {
|
|
28
|
-
address: Pick<HTTPClientContract, 'getAddresses' | 'getAddress'>
|
|
29
|
-
/** @deprecated */
|
|
30
|
-
conversation: {
|
|
31
|
-
getConversations: (
|
|
32
|
-
_params?: GetConversationsParams
|
|
33
|
-
) => Promise<GetConversationsResult>
|
|
34
|
-
getMessages: (_params?: GetMessagesParams) => Promise<GetMessagesResult>
|
|
35
|
-
getConversationMessages: (
|
|
36
|
-
_params: GetConversationMessagesParams
|
|
37
|
-
) => Promise<GetConversationMessagesResult>
|
|
38
|
-
subscribe: (
|
|
39
|
-
_callback: ConversationSubscribeCallback
|
|
40
|
-
) => Promise<ConversationSubscribeResult>
|
|
41
|
-
sendMessage: (
|
|
42
|
-
params: SendConversationMessageParams
|
|
43
|
-
) => Promise<SendConversationMessageResult>
|
|
44
|
-
join: (_params: JoinConversationParams) => Promise<JoinConversationResult>
|
|
45
|
-
}
|
|
46
|
-
/** @deprecated */
|
|
47
|
-
chat: {
|
|
48
|
-
getMessages: (
|
|
49
|
-
_params: GetConversationChatMessageParams
|
|
50
|
-
) => Promise<GetConversationChatMessageResult>
|
|
51
|
-
subscribe: (
|
|
52
|
-
_params: ConversationChatMessagesSubscribeParams
|
|
53
|
-
) => Promise<ConversationChatMessagesSubscribeResult>
|
|
54
|
-
sendMessage: (
|
|
55
|
-
params: SendConversationMessageParams
|
|
56
|
-
) => Promise<SendConversationMessageResult>
|
|
57
|
-
join: (_params: JoinConversationParams) => Promise<JoinConversationResult>
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type SignalWireClient = SignalWireContract
|
|
62
|
-
|
|
63
|
-
// #region Paginated response and result
|
|
64
|
-
|
|
65
|
-
export interface PaginatedResponse<T> {
|
|
66
|
-
data: Array<T>
|
|
67
|
-
links: {
|
|
68
|
-
first?: string
|
|
69
|
-
self?: string
|
|
70
|
-
next?: string
|
|
71
|
-
prev?: string
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface PaginatedResult<T> {
|
|
76
|
-
data: Array<T>
|
|
77
|
-
self(): Promise<PaginatedResult<T> | undefined>
|
|
78
|
-
nextPage(): Promise<PaginatedResult<T> | undefined>
|
|
79
|
-
prevPage(): Promise<PaginatedResult<T> | undefined>
|
|
80
|
-
firstPage(): Promise<PaginatedResult<T> | undefined>
|
|
81
|
-
hasNext: boolean
|
|
82
|
-
hasPrev: boolean
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// #endregion Paginated response and result
|
|
86
|
-
|
|
87
|
-
// #region Subscriber info
|
|
88
|
-
|
|
89
|
-
export interface GetSubscriberInfoResponse {
|
|
90
|
-
id: string
|
|
91
|
-
email: string
|
|
92
|
-
first_name?: string
|
|
93
|
-
last_name?: string
|
|
94
|
-
display_name?: string
|
|
95
|
-
job_title?: string
|
|
96
|
-
time_zone?: number
|
|
97
|
-
country?: string
|
|
98
|
-
region?: string
|
|
99
|
-
company_name?: string
|
|
100
|
-
push_notification_key: string
|
|
101
|
-
app_settings?: {
|
|
102
|
-
display_name: string
|
|
103
|
-
scopes: string[]
|
|
104
|
-
}
|
|
105
|
-
fabric_addresses: Address[]
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export type GetSubscriberInfoResult = GetSubscriberInfoResponse
|
|
109
|
-
|
|
110
|
-
// #endregion Subscriber info
|
|
111
|
-
|
|
112
|
-
export * from './capabilities'
|
|
113
|
-
export * from './address'
|
|
114
|
-
export * from './conversation'
|
|
115
|
-
export * from './device'
|
|
116
|
-
export * from './httpClient'
|
|
117
|
-
export * from './incomingCallManager'
|
|
118
|
-
export * from './wsClient'
|