@whereby.com/core 0.19.5 → 0.21.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.cjs CHANGED
@@ -45,11 +45,12 @@ const createReactor = (selectors, callback) => {
45
45
  });
46
46
  };
47
47
 
48
- const coreVersion = "0.19.5";
48
+ const coreVersion = "0.21.0";
49
49
 
50
50
  const initialState$f = {
51
51
  isNodeSdk: false,
52
52
  isActive: false,
53
+ isDialIn: false,
53
54
  roomName: null,
54
55
  roomUrl: null,
55
56
  displayName: null,
@@ -72,6 +73,7 @@ const appSlice = toolkit.createSlice({
72
73
  const { doAppStop, doAppStart } = appSlice.actions;
73
74
  const selectAppRaw = (state) => state.app;
74
75
  const selectAppIsActive = (state) => state.app.isActive;
76
+ const selectAppIsDialIn = (state) => state.app.isDialIn;
75
77
  const selectAppRoomName = (state) => state.app.roomName;
76
78
  const selectAppRoomUrl = (state) => state.app.roomUrl;
77
79
  const selectAppDisplayName = (state) => state.app.displayName;
@@ -107,6 +109,8 @@ const signalEvents = {
107
109
  spotlightRemoved: createSignalEventAction("spotlightRemoved"),
108
110
  streamingStopped: createSignalEventAction("streamingStopped"),
109
111
  videoEnabled: createSignalEventAction("videoEnabled"),
112
+ liveTranscriptionStarted: createSignalEventAction("liveTranscriptionStarted"),
113
+ liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
110
114
  };
111
115
 
112
116
  const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
@@ -262,6 +266,8 @@ function forwardSocketEvents(socket, dispatch) {
262
266
  socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
263
267
  socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
264
268
  socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
269
+ socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
270
+ socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
265
271
  }
266
272
  const SIGNAL_BASE_URL = "wss://signal.appearin.net" ;
267
273
  function createSocket() {
@@ -1570,6 +1576,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
1570
1576
  const roomName = selectAppRoomName(state);
1571
1577
  const roomKey = selectRoomKey(state);
1572
1578
  const displayName = selectAppDisplayName(state);
1579
+ const isDialIn = selectAppIsDialIn(state);
1573
1580
  const userAgent = selectAppUserAgent(state);
1574
1581
  const externalId = selectAppExternalId(state);
1575
1582
  const organizationId = selectOrganizationId(state);
@@ -1582,6 +1589,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
1582
1589
  deviceCapabilities: { canScreenshare: true },
1583
1590
  displayName,
1584
1591
  isCoLocated: false,
1592
+ isDialIn,
1585
1593
  isDevicePermissionDenied: false,
1586
1594
  kickFromOtherRooms: false,
1587
1595
  organizationId,
@@ -1600,6 +1608,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
1600
1608
  const displayName = selectAppDisplayName(state);
1601
1609
  const userAgent = selectAppUserAgent(state);
1602
1610
  const externalId = selectAppExternalId(state);
1611
+ const isDialIn = selectAppIsDialIn(state);
1603
1612
  const organizationId = selectOrganizationId(state);
1604
1613
  const isCameraEnabled = selectIsCameraEnabled(getState());
1605
1614
  const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
@@ -1607,7 +1616,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
1607
1616
  socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
1608
1617
  isAudioEnabled: isMicrophoneEnabled,
1609
1618
  isVideoEnabled: isCameraEnabled,
1610
- }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
1619
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
1611
1620
  roomKey,
1612
1621
  roomName,
1613
1622
  userAgent,
@@ -3761,6 +3770,7 @@ exports.selectAppDisplayName = selectAppDisplayName;
3761
3770
  exports.selectAppExternalId = selectAppExternalId;
3762
3771
  exports.selectAppInitialConfig = selectAppInitialConfig;
3763
3772
  exports.selectAppIsActive = selectAppIsActive;
3773
+ exports.selectAppIsDialIn = selectAppIsDialIn;
3764
3774
  exports.selectAppIsNodeSdk = selectAppIsNodeSdk;
3765
3775
  exports.selectAppRaw = selectAppRaw;
3766
3776
  exports.selectAppRoomName = selectAppRoomName;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
3
3
  import * as redux_thunk from 'redux-thunk';
4
4
  import * as redux from 'redux';
5
5
  import * as _whereby_com_media from '@whereby.com/media';
6
- import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
6
+ import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
7
7
  import * as reselect from 'reselect';
8
8
  import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
9
9
  import { EventEmitter as EventEmitter$1 } from 'events';
@@ -1317,6 +1317,7 @@ declare const selectIsCloudRecording: (state: RootState) => boolean;
1317
1317
 
1318
1318
  interface AppConfig {
1319
1319
  isNodeSdk?: boolean;
1320
+ isDialIn?: boolean;
1320
1321
  displayName: string;
1321
1322
  localMediaOptions?: LocalMediaOptions;
1322
1323
  roomKey: string | null;
@@ -1327,6 +1328,7 @@ interface AppConfig {
1327
1328
  interface AppState {
1328
1329
  isNodeSdk: boolean;
1329
1330
  isActive: boolean;
1331
+ isDialIn: boolean;
1330
1332
  roomUrl: string | null;
1331
1333
  roomName: string | null;
1332
1334
  displayName: string | null;
@@ -1339,6 +1341,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1339
1341
  doAppStart: (state: {
1340
1342
  isNodeSdk: boolean;
1341
1343
  isActive: boolean;
1344
+ isDialIn: boolean;
1342
1345
  roomUrl: string | null;
1343
1346
  roomName: string | null;
1344
1347
  displayName: string | null;
@@ -1346,6 +1349,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1346
1349
  externalId: string | null;
1347
1350
  initialConfig?: {
1348
1351
  isNodeSdk?: boolean | undefined;
1352
+ isDialIn?: boolean | undefined;
1349
1353
  displayName: string;
1350
1354
  localMediaOptions?: {
1351
1355
  audio: boolean;
@@ -1360,6 +1364,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1360
1364
  roomName: string;
1361
1365
  initialConfig: {
1362
1366
  isNodeSdk?: boolean | undefined;
1367
+ isDialIn?: boolean | undefined;
1363
1368
  displayName: string;
1364
1369
  localMediaOptions?: LocalMediaOptions | undefined;
1365
1370
  roomKey: string | null;
@@ -1369,6 +1374,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1369
1374
  };
1370
1375
  isActive: true;
1371
1376
  isNodeSdk: boolean;
1377
+ isDialIn: boolean;
1372
1378
  displayName: string;
1373
1379
  localMediaOptions?: LocalMediaOptions | undefined;
1374
1380
  roomKey: string | null;
@@ -1379,6 +1385,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1379
1385
  doAppStop: (state: {
1380
1386
  isNodeSdk: boolean;
1381
1387
  isActive: boolean;
1388
+ isDialIn: boolean;
1382
1389
  roomUrl: string | null;
1383
1390
  roomName: string | null;
1384
1391
  displayName: string | null;
@@ -1386,6 +1393,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1386
1393
  externalId: string | null;
1387
1394
  initialConfig?: {
1388
1395
  isNodeSdk?: boolean | undefined;
1396
+ isDialIn?: boolean | undefined;
1389
1397
  displayName: string;
1390
1398
  localMediaOptions?: {
1391
1399
  audio: boolean;
@@ -1399,6 +1407,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1399
1407
  }) => {
1400
1408
  isActive: false;
1401
1409
  isNodeSdk: boolean;
1410
+ isDialIn: boolean;
1402
1411
  roomUrl: string | null;
1403
1412
  roomName: string | null;
1404
1413
  displayName: string | null;
@@ -1406,6 +1415,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1406
1415
  externalId: string | null;
1407
1416
  initialConfig?: {
1408
1417
  isNodeSdk?: boolean | undefined;
1418
+ isDialIn?: boolean | undefined;
1409
1419
  displayName: string;
1410
1420
  localMediaOptions?: {
1411
1421
  audio: boolean;
@@ -1422,6 +1432,7 @@ declare const doAppStop: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/doApp
1422
1432
  declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "app/doAppStart">;
1423
1433
  declare const selectAppRaw: (state: RootState) => AppState;
1424
1434
  declare const selectAppIsActive: (state: RootState) => boolean;
1435
+ declare const selectAppIsDialIn: (state: RootState) => boolean;
1425
1436
  declare const selectAppRoomName: (state: RootState) => string | null;
1426
1437
  declare const selectAppRoomUrl: (state: RootState) => string | null;
1427
1438
  declare const selectAppDisplayName: (state: RootState) => string | null;
@@ -6309,6 +6320,8 @@ declare const signalEvents: {
6309
6320
  spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
6310
6321
  streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
6311
6322
  videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
6323
+ liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
6324
+ liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
6312
6325
  };
6313
6326
 
6314
6327
  interface SignalConnectionState {
@@ -8273,4 +8286,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
8273
8286
 
8274
8287
  declare function parseUnverifiedRoomKeyData(roomKey: string): any;
8275
8288
 
8276
- export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
8289
+ export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
3
3
  import * as redux_thunk from 'redux-thunk';
4
4
  import * as redux from 'redux';
5
5
  import * as _whereby_com_media from '@whereby.com/media';
6
- import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
6
+ import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
7
7
  import * as reselect from 'reselect';
8
8
  import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
9
9
  import { EventEmitter as EventEmitter$1 } from 'events';
@@ -1317,6 +1317,7 @@ declare const selectIsCloudRecording: (state: RootState) => boolean;
1317
1317
 
1318
1318
  interface AppConfig {
1319
1319
  isNodeSdk?: boolean;
1320
+ isDialIn?: boolean;
1320
1321
  displayName: string;
1321
1322
  localMediaOptions?: LocalMediaOptions;
1322
1323
  roomKey: string | null;
@@ -1327,6 +1328,7 @@ interface AppConfig {
1327
1328
  interface AppState {
1328
1329
  isNodeSdk: boolean;
1329
1330
  isActive: boolean;
1331
+ isDialIn: boolean;
1330
1332
  roomUrl: string | null;
1331
1333
  roomName: string | null;
1332
1334
  displayName: string | null;
@@ -1339,6 +1341,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1339
1341
  doAppStart: (state: {
1340
1342
  isNodeSdk: boolean;
1341
1343
  isActive: boolean;
1344
+ isDialIn: boolean;
1342
1345
  roomUrl: string | null;
1343
1346
  roomName: string | null;
1344
1347
  displayName: string | null;
@@ -1346,6 +1349,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1346
1349
  externalId: string | null;
1347
1350
  initialConfig?: {
1348
1351
  isNodeSdk?: boolean | undefined;
1352
+ isDialIn?: boolean | undefined;
1349
1353
  displayName: string;
1350
1354
  localMediaOptions?: {
1351
1355
  audio: boolean;
@@ -1360,6 +1364,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1360
1364
  roomName: string;
1361
1365
  initialConfig: {
1362
1366
  isNodeSdk?: boolean | undefined;
1367
+ isDialIn?: boolean | undefined;
1363
1368
  displayName: string;
1364
1369
  localMediaOptions?: LocalMediaOptions | undefined;
1365
1370
  roomKey: string | null;
@@ -1369,6 +1374,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1369
1374
  };
1370
1375
  isActive: true;
1371
1376
  isNodeSdk: boolean;
1377
+ isDialIn: boolean;
1372
1378
  displayName: string;
1373
1379
  localMediaOptions?: LocalMediaOptions | undefined;
1374
1380
  roomKey: string | null;
@@ -1379,6 +1385,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1379
1385
  doAppStop: (state: {
1380
1386
  isNodeSdk: boolean;
1381
1387
  isActive: boolean;
1388
+ isDialIn: boolean;
1382
1389
  roomUrl: string | null;
1383
1390
  roomName: string | null;
1384
1391
  displayName: string | null;
@@ -1386,6 +1393,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1386
1393
  externalId: string | null;
1387
1394
  initialConfig?: {
1388
1395
  isNodeSdk?: boolean | undefined;
1396
+ isDialIn?: boolean | undefined;
1389
1397
  displayName: string;
1390
1398
  localMediaOptions?: {
1391
1399
  audio: boolean;
@@ -1399,6 +1407,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1399
1407
  }) => {
1400
1408
  isActive: false;
1401
1409
  isNodeSdk: boolean;
1410
+ isDialIn: boolean;
1402
1411
  roomUrl: string | null;
1403
1412
  roomName: string | null;
1404
1413
  displayName: string | null;
@@ -1406,6 +1415,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1406
1415
  externalId: string | null;
1407
1416
  initialConfig?: {
1408
1417
  isNodeSdk?: boolean | undefined;
1418
+ isDialIn?: boolean | undefined;
1409
1419
  displayName: string;
1410
1420
  localMediaOptions?: {
1411
1421
  audio: boolean;
@@ -1422,6 +1432,7 @@ declare const doAppStop: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/doApp
1422
1432
  declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "app/doAppStart">;
1423
1433
  declare const selectAppRaw: (state: RootState) => AppState;
1424
1434
  declare const selectAppIsActive: (state: RootState) => boolean;
1435
+ declare const selectAppIsDialIn: (state: RootState) => boolean;
1425
1436
  declare const selectAppRoomName: (state: RootState) => string | null;
1426
1437
  declare const selectAppRoomUrl: (state: RootState) => string | null;
1427
1438
  declare const selectAppDisplayName: (state: RootState) => string | null;
@@ -6309,6 +6320,8 @@ declare const signalEvents: {
6309
6320
  spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
6310
6321
  streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
6311
6322
  videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
6323
+ liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
6324
+ liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
6312
6325
  };
6313
6326
 
6314
6327
  interface SignalConnectionState {
@@ -8273,4 +8286,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
8273
8286
 
8274
8287
  declare function parseUnverifiedRoomKeyData(roomKey: string): any;
8275
8288
 
8276
- export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
8289
+ export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
3
3
  import * as redux_thunk from 'redux-thunk';
4
4
  import * as redux from 'redux';
5
5
  import * as _whereby_com_media from '@whereby.com/media';
6
- import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, ServerSocket, Spotlight } from '@whereby.com/media';
6
+ import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, AudioEnabledEvent, AudioEnableRequestedEvent, ClientLeftEvent, ClientKickedEvent, ClientMetadataReceivedEvent, CloudRecordingStartedEvent, KnockerLeftEvent, KnockAcceptedEvent, KnockRejectedEvent, NewClientEvent, RoomJoinedEvent, RoomKnockedEvent, RoomLockedEvent, RoomSessionEndedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SpotlightAddedEvent, SpotlightRemovedEvent, VideoEnabledEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, ServerSocket, Spotlight } from '@whereby.com/media';
7
7
  import * as reselect from 'reselect';
8
8
  import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
9
9
  import { EventEmitter as EventEmitter$1 } from 'events';
@@ -1317,6 +1317,7 @@ declare const selectIsCloudRecording: (state: RootState) => boolean;
1317
1317
 
1318
1318
  interface AppConfig {
1319
1319
  isNodeSdk?: boolean;
1320
+ isDialIn?: boolean;
1320
1321
  displayName: string;
1321
1322
  localMediaOptions?: LocalMediaOptions;
1322
1323
  roomKey: string | null;
@@ -1327,6 +1328,7 @@ interface AppConfig {
1327
1328
  interface AppState {
1328
1329
  isNodeSdk: boolean;
1329
1330
  isActive: boolean;
1331
+ isDialIn: boolean;
1330
1332
  roomUrl: string | null;
1331
1333
  roomName: string | null;
1332
1334
  displayName: string | null;
@@ -1339,6 +1341,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1339
1341
  doAppStart: (state: {
1340
1342
  isNodeSdk: boolean;
1341
1343
  isActive: boolean;
1344
+ isDialIn: boolean;
1342
1345
  roomUrl: string | null;
1343
1346
  roomName: string | null;
1344
1347
  displayName: string | null;
@@ -1346,6 +1349,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1346
1349
  externalId: string | null;
1347
1350
  initialConfig?: {
1348
1351
  isNodeSdk?: boolean | undefined;
1352
+ isDialIn?: boolean | undefined;
1349
1353
  displayName: string;
1350
1354
  localMediaOptions?: {
1351
1355
  audio: boolean;
@@ -1360,6 +1364,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1360
1364
  roomName: string;
1361
1365
  initialConfig: {
1362
1366
  isNodeSdk?: boolean | undefined;
1367
+ isDialIn?: boolean | undefined;
1363
1368
  displayName: string;
1364
1369
  localMediaOptions?: LocalMediaOptions | undefined;
1365
1370
  roomKey: string | null;
@@ -1369,6 +1374,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1369
1374
  };
1370
1375
  isActive: true;
1371
1376
  isNodeSdk: boolean;
1377
+ isDialIn: boolean;
1372
1378
  displayName: string;
1373
1379
  localMediaOptions?: LocalMediaOptions | undefined;
1374
1380
  roomKey: string | null;
@@ -1379,6 +1385,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1379
1385
  doAppStop: (state: {
1380
1386
  isNodeSdk: boolean;
1381
1387
  isActive: boolean;
1388
+ isDialIn: boolean;
1382
1389
  roomUrl: string | null;
1383
1390
  roomName: string | null;
1384
1391
  displayName: string | null;
@@ -1386,6 +1393,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1386
1393
  externalId: string | null;
1387
1394
  initialConfig?: {
1388
1395
  isNodeSdk?: boolean | undefined;
1396
+ isDialIn?: boolean | undefined;
1389
1397
  displayName: string;
1390
1398
  localMediaOptions?: {
1391
1399
  audio: boolean;
@@ -1399,6 +1407,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1399
1407
  }) => {
1400
1408
  isActive: false;
1401
1409
  isNodeSdk: boolean;
1410
+ isDialIn: boolean;
1402
1411
  roomUrl: string | null;
1403
1412
  roomName: string | null;
1404
1413
  displayName: string | null;
@@ -1406,6 +1415,7 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
1406
1415
  externalId: string | null;
1407
1416
  initialConfig?: {
1408
1417
  isNodeSdk?: boolean | undefined;
1418
+ isDialIn?: boolean | undefined;
1409
1419
  displayName: string;
1410
1420
  localMediaOptions?: {
1411
1421
  audio: boolean;
@@ -1422,6 +1432,7 @@ declare const doAppStop: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/doApp
1422
1432
  declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "app/doAppStart">;
1423
1433
  declare const selectAppRaw: (state: RootState) => AppState;
1424
1434
  declare const selectAppIsActive: (state: RootState) => boolean;
1435
+ declare const selectAppIsDialIn: (state: RootState) => boolean;
1425
1436
  declare const selectAppRoomName: (state: RootState) => string | null;
1426
1437
  declare const selectAppRoomUrl: (state: RootState) => string | null;
1427
1438
  declare const selectAppDisplayName: (state: RootState) => string | null;
@@ -6309,6 +6320,8 @@ declare const signalEvents: {
6309
6320
  spotlightRemoved: _reduxjs_toolkit.ActionCreatorWithPayload<SpotlightRemovedEvent, string>;
6310
6321
  streamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<string>;
6311
6322
  videoEnabled: _reduxjs_toolkit.ActionCreatorWithPayload<VideoEnabledEvent, string>;
6323
+ liveTranscriptionStarted: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStartedEvent, string>;
6324
+ liveTranscriptionStopped: _reduxjs_toolkit.ActionCreatorWithPayload<LiveTranscriptionStoppedEvent, string>;
6312
6325
  };
6313
6326
 
6314
6327
  interface SignalConnectionState {
@@ -8273,4 +8286,4 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
8273
8286
 
8274
8287
  declare function parseUnverifiedRoomKeyData(roomKey: string): any;
8275
8288
 
8276
- export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
8289
+ export { ApiClient, type AppConfig, type AppDispatch, type AppReducer, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatMessageEvent, type ChatMessageEventProps, type ChatState, type ClientView, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type FullOrganizationPermissions, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, type Notification, type NotificationEvent, type NotificationEventMap, type NotificationEvents, type NotificationsEventEmitter, type NotificationsState, OrganizationApiClient, type OrganizationLimits, type OrganizationOnboardingSurvey, type OrganizationPermissionAction, type OrganizationPermissions, type OrganizationPreferences, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RequestAudioEvent, type RequestAudioEventProps, type RoomConnectionState, RoomService, type RoomState, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type SignalStatusEvent, type SignalStatusEventProps, type SpotlightsState, type StickyReaction, type StickyReactionEvent, type StickyReactionEventProps, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
package/dist/index.mjs CHANGED
@@ -43,11 +43,12 @@ const createReactor = (selectors, callback) => {
43
43
  });
44
44
  };
45
45
 
46
- const coreVersion = "0.19.5";
46
+ const coreVersion = "0.21.0";
47
47
 
48
48
  const initialState$f = {
49
49
  isNodeSdk: false,
50
50
  isActive: false,
51
+ isDialIn: false,
51
52
  roomName: null,
52
53
  roomUrl: null,
53
54
  displayName: null,
@@ -70,6 +71,7 @@ const appSlice = createSlice({
70
71
  const { doAppStop, doAppStart } = appSlice.actions;
71
72
  const selectAppRaw = (state) => state.app;
72
73
  const selectAppIsActive = (state) => state.app.isActive;
74
+ const selectAppIsDialIn = (state) => state.app.isDialIn;
73
75
  const selectAppRoomName = (state) => state.app.roomName;
74
76
  const selectAppRoomUrl = (state) => state.app.roomUrl;
75
77
  const selectAppDisplayName = (state) => state.app.displayName;
@@ -105,6 +107,8 @@ const signalEvents = {
105
107
  spotlightRemoved: createSignalEventAction("spotlightRemoved"),
106
108
  streamingStopped: createSignalEventAction("streamingStopped"),
107
109
  videoEnabled: createSignalEventAction("videoEnabled"),
110
+ liveTranscriptionStarted: createSignalEventAction("liveTranscriptionStarted"),
111
+ liveTranscriptionStopped: createSignalEventAction("liveTranscriptionStopped"),
108
112
  };
109
113
 
110
114
  const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
@@ -260,6 +264,8 @@ function forwardSocketEvents(socket, dispatch) {
260
264
  socket.on("streaming_stopped", () => dispatch(signalEvents.streamingStopped()));
261
265
  socket.on("spotlight_added", (payload) => dispatch(signalEvents.spotlightAdded(payload)));
262
266
  socket.on("spotlight_removed", (payload) => dispatch(signalEvents.spotlightRemoved(payload)));
267
+ socket.on("live_transcription_started", (payload) => dispatch(signalEvents.liveTranscriptionStarted(payload)));
268
+ socket.on("live_transcription_stopped", (payload) => dispatch(signalEvents.liveTranscriptionStopped(payload)));
263
269
  }
264
270
  const SIGNAL_BASE_URL = "wss://signal.appearin.net" ;
265
271
  function createSocket() {
@@ -1568,6 +1574,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
1568
1574
  const roomName = selectAppRoomName(state);
1569
1575
  const roomKey = selectRoomKey(state);
1570
1576
  const displayName = selectAppDisplayName(state);
1577
+ const isDialIn = selectAppIsDialIn(state);
1571
1578
  const userAgent = selectAppUserAgent(state);
1572
1579
  const externalId = selectAppExternalId(state);
1573
1580
  const organizationId = selectOrganizationId(state);
@@ -1580,6 +1587,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
1580
1587
  deviceCapabilities: { canScreenshare: true },
1581
1588
  displayName,
1582
1589
  isCoLocated: false,
1590
+ isDialIn,
1583
1591
  isDevicePermissionDenied: false,
1584
1592
  kickFromOtherRooms: false,
1585
1593
  organizationId,
@@ -1598,6 +1606,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
1598
1606
  const displayName = selectAppDisplayName(state);
1599
1607
  const userAgent = selectAppUserAgent(state);
1600
1608
  const externalId = selectAppExternalId(state);
1609
+ const isDialIn = selectAppIsDialIn(state);
1601
1610
  const organizationId = selectOrganizationId(state);
1602
1611
  const isCameraEnabled = selectIsCameraEnabled(getState());
1603
1612
  const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
@@ -1605,7 +1614,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
1605
1614
  socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
1606
1615
  isAudioEnabled: isMicrophoneEnabled,
1607
1616
  isVideoEnabled: isCameraEnabled,
1608
- }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
1617
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
1609
1618
  roomKey,
1610
1619
  roomName,
1611
1620
  userAgent,
@@ -3645,4 +3654,4 @@ function createServices() {
3645
3654
  };
3646
3655
  }
3647
3656
 
3648
- export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState$f as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
3657
+ export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState$f as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAppDisplayName, selectAppExternalId, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "0.19.5",
5
+ "version": "0.21.0",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
8
  "build": "rimraf dist && rollup -c rollup.config.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@reduxjs/toolkit": "^2.2.3",
50
- "@whereby.com/media": "1.6.5",
50
+ "@whereby.com/media": "1.7.0",
51
51
  "axios": "^1.2.3",
52
52
  "btoa": "^1.2.1",
53
53
  "events": "^3.3.0"