@whereby.com/core 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +49 -7
- package/dist/index.js +1181 -1145
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -501,6 +501,7 @@ declare const selectChatMessages: (state: RootState) => ChatMessage[];
|
|
|
501
501
|
* Reducer
|
|
502
502
|
*/
|
|
503
503
|
interface AppState {
|
|
504
|
+
isNodeSdk: boolean;
|
|
504
505
|
wantsToJoin: boolean;
|
|
505
506
|
roomUrl: string | null;
|
|
506
507
|
roomName: string | null;
|
|
@@ -511,6 +512,7 @@ interface AppState {
|
|
|
511
512
|
}
|
|
512
513
|
declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
513
514
|
doAppJoin: (state: {
|
|
515
|
+
isNodeSdk: boolean;
|
|
514
516
|
wantsToJoin: boolean;
|
|
515
517
|
roomUrl: string | null;
|
|
516
518
|
roomName: string | null;
|
|
@@ -519,6 +521,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
519
521
|
sdkVersion: string | null;
|
|
520
522
|
externalId: string | null;
|
|
521
523
|
}, action: PayloadAction<{
|
|
524
|
+
isNodeSdk?: boolean;
|
|
522
525
|
displayName: string;
|
|
523
526
|
localMediaOptions?: LocalMediaOptions;
|
|
524
527
|
roomKey: string | null;
|
|
@@ -528,6 +531,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
528
531
|
}>) => {
|
|
529
532
|
roomName: string;
|
|
530
533
|
wantsToJoin: true;
|
|
534
|
+
isNodeSdk: boolean;
|
|
531
535
|
displayName: string;
|
|
532
536
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
533
537
|
roomKey: string | null;
|
|
@@ -536,6 +540,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
536
540
|
externalId: string | null;
|
|
537
541
|
};
|
|
538
542
|
appLeft: (state: {
|
|
543
|
+
isNodeSdk: boolean;
|
|
539
544
|
wantsToJoin: boolean;
|
|
540
545
|
roomUrl: string | null;
|
|
541
546
|
roomName: string | null;
|
|
@@ -545,6 +550,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
545
550
|
externalId: string | null;
|
|
546
551
|
}) => {
|
|
547
552
|
wantsToJoin: false;
|
|
553
|
+
isNodeSdk: boolean;
|
|
548
554
|
roomUrl: string | null;
|
|
549
555
|
roomName: string | null;
|
|
550
556
|
roomKey: string | null;
|
|
@@ -553,6 +559,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
553
559
|
externalId: string | null;
|
|
554
560
|
};
|
|
555
561
|
setRoomKey: (state: {
|
|
562
|
+
isNodeSdk: boolean;
|
|
556
563
|
wantsToJoin: boolean;
|
|
557
564
|
roomUrl: string | null;
|
|
558
565
|
roomName: string | null;
|
|
@@ -562,6 +569,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
562
569
|
externalId: string | null;
|
|
563
570
|
}, action: PayloadAction<string>) => {
|
|
564
571
|
roomKey: string;
|
|
572
|
+
isNodeSdk: boolean;
|
|
565
573
|
wantsToJoin: boolean;
|
|
566
574
|
roomUrl: string | null;
|
|
567
575
|
roomName: string | null;
|
|
@@ -574,6 +582,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
574
582
|
* Action creators
|
|
575
583
|
*/
|
|
576
584
|
declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
585
|
+
isNodeSdk?: boolean | undefined;
|
|
577
586
|
displayName: string;
|
|
578
587
|
localMediaOptions?: LocalMediaOptions | undefined;
|
|
579
588
|
roomKey: string | null;
|
|
@@ -594,6 +603,7 @@ declare const selectAppRoomKey: (state: RootState) => string | null;
|
|
|
594
603
|
declare const selectAppDisplayName: (state: RootState) => string | null;
|
|
595
604
|
declare const selectAppSdkVersion: (state: RootState) => string | null;
|
|
596
605
|
declare const selectAppExternalId: (state: RootState) => string | null;
|
|
606
|
+
declare const selectAppIsNodeSdk: (state: RootState) => boolean;
|
|
597
607
|
|
|
598
608
|
type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
599
609
|
[key: string]: unknown;
|
|
@@ -2464,8 +2474,8 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
|
2464
2474
|
resultsCount: () => number;
|
|
2465
2475
|
resetResultsCount: () => void;
|
|
2466
2476
|
} & {
|
|
2467
|
-
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_2: LocalMediaOptions | undefined) => LocalMediaOptions | undefined;
|
|
2468
|
-
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_2: LocalMediaOptions | undefined) => LocalMediaOptions | undefined) & {
|
|
2477
|
+
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_2: LocalMediaOptions | undefined, resultFuncArgs_3: boolean) => LocalMediaOptions | undefined;
|
|
2478
|
+
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_2: LocalMediaOptions | undefined, resultFuncArgs_3: boolean) => LocalMediaOptions | undefined) & {
|
|
2469
2479
|
clearCache: () => void;
|
|
2470
2480
|
resultsCount: () => number;
|
|
2471
2481
|
resetResultsCount: () => void;
|
|
@@ -2487,7 +2497,23 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
|
2487
2497
|
signalConnection: SignalConnectionState;
|
|
2488
2498
|
streaming: StreamingState;
|
|
2489
2499
|
waitingParticipants: WaitingParticipantsState;
|
|
2490
|
-
}) => boolean, (state: RootState) => "" | "error" | "stopped" | "starting" | "started", (state: RootState) => LocalMediaOptions | undefined
|
|
2500
|
+
}) => boolean, (state: RootState) => "" | "error" | "stopped" | "starting" | "started", (state: RootState) => LocalMediaOptions | undefined, (state: {
|
|
2501
|
+
app: AppState;
|
|
2502
|
+
chat: ChatState;
|
|
2503
|
+
cloudRecording: CloudRecordingState;
|
|
2504
|
+
deviceCredentials: DeviceCredentialsState;
|
|
2505
|
+
localMedia: LocalMediaState;
|
|
2506
|
+
localParticipant: LocalParticipantState;
|
|
2507
|
+
localScreenshare: LocalScreenshareState;
|
|
2508
|
+
organization: OrganizationState;
|
|
2509
|
+
remoteParticipants: RemoteParticipantState;
|
|
2510
|
+
roomConnection: RoomConnectionState;
|
|
2511
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
2512
|
+
rtcConnection: RtcConnectionState;
|
|
2513
|
+
signalConnection: SignalConnectionState;
|
|
2514
|
+
streaming: StreamingState;
|
|
2515
|
+
waitingParticipants: WaitingParticipantsState;
|
|
2516
|
+
}) => boolean];
|
|
2491
2517
|
recomputations: () => number;
|
|
2492
2518
|
resetRecomputations: () => void;
|
|
2493
2519
|
dependencyRecomputations: () => number;
|
|
@@ -3030,8 +3056,8 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
3030
3056
|
resultsCount: () => number;
|
|
3031
3057
|
resetResultsCount: () => void;
|
|
3032
3058
|
} & {
|
|
3033
|
-
resultFunc: (resultFuncArgs_0: string | undefined, resultFuncArgs_1: ConnectionStatus, resultFuncArgs_2: boolean, resultFuncArgs_3: "" | "error" | "stopped" | "starting" | "started") => boolean;
|
|
3034
|
-
memoizedResultFunc: ((resultFuncArgs_0: string | undefined, resultFuncArgs_1: ConnectionStatus, resultFuncArgs_2: boolean, resultFuncArgs_3: "" | "error" | "stopped" | "starting" | "started") => boolean) & {
|
|
3059
|
+
resultFunc: (resultFuncArgs_0: string | undefined, resultFuncArgs_1: ConnectionStatus, resultFuncArgs_2: boolean, resultFuncArgs_3: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_4: boolean) => boolean;
|
|
3060
|
+
memoizedResultFunc: ((resultFuncArgs_0: string | undefined, resultFuncArgs_1: ConnectionStatus, resultFuncArgs_2: boolean, resultFuncArgs_3: "" | "error" | "stopped" | "starting" | "started", resultFuncArgs_4: boolean) => boolean) & {
|
|
3035
3061
|
clearCache: () => void;
|
|
3036
3062
|
resultsCount: () => number;
|
|
3037
3063
|
resetResultsCount: () => void;
|
|
@@ -3085,7 +3111,23 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
3085
3111
|
signalConnection: SignalConnectionState;
|
|
3086
3112
|
streaming: StreamingState;
|
|
3087
3113
|
waitingParticipants: WaitingParticipantsState;
|
|
3088
|
-
}) => "" | "error" | "stopped" | "starting" | "started"
|
|
3114
|
+
}) => "" | "error" | "stopped" | "starting" | "started", (state: {
|
|
3115
|
+
app: AppState;
|
|
3116
|
+
chat: ChatState;
|
|
3117
|
+
cloudRecording: CloudRecordingState;
|
|
3118
|
+
deviceCredentials: DeviceCredentialsState;
|
|
3119
|
+
localMedia: LocalMediaState;
|
|
3120
|
+
localParticipant: LocalParticipantState;
|
|
3121
|
+
localScreenshare: LocalScreenshareState;
|
|
3122
|
+
organization: OrganizationState;
|
|
3123
|
+
remoteParticipants: RemoteParticipantState;
|
|
3124
|
+
roomConnection: RoomConnectionState;
|
|
3125
|
+
rtcAnalytics: rtcAnalyticsState;
|
|
3126
|
+
rtcConnection: RtcConnectionState;
|
|
3127
|
+
signalConnection: SignalConnectionState;
|
|
3128
|
+
streaming: StreamingState;
|
|
3129
|
+
waitingParticipants: WaitingParticipantsState;
|
|
3130
|
+
}) => boolean];
|
|
3089
3131
|
recomputations: () => number;
|
|
3090
3132
|
resetRecomputations: () => void;
|
|
3091
3133
|
dependencyRecomputations: () => number;
|
|
@@ -4249,4 +4291,4 @@ declare const createReactor: <Selectors extends Selector<{
|
|
|
4249
4291
|
|
|
4250
4292
|
declare const sdkVersion = "__SDK_VERSION__";
|
|
4251
4293
|
|
|
4252
|
-
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, sdkVersion, selectAppDisplayName, selectAppExternalId, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppSdkVersion, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|
|
4294
|
+
export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, sdkVersion, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppSdkVersion, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
|