@whereby.com/core 1.9.17 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1158,7 +1158,7 @@ const createReactor = (selectors, callback) => {
1158
1158
  });
1159
1159
  };
1160
1160
 
1161
- const coreVersion = "1.9.17";
1161
+ const coreVersion = "1.10.1";
1162
1162
 
1163
1163
  const initialState$1 = {
1164
1164
  displayName: null,
@@ -4652,11 +4652,14 @@ const CHAT_NEW_MESSAGE = "chat:new-message";
4652
4652
  const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
4653
4653
  const CONNECTION_STATUS_CHANGED = "connection:status-changed";
4654
4654
  const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
4655
+ const CONNECTION_ERROR_CHANGED = "connection:error-changed";
4655
4656
  const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
4656
4657
  const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
4657
4658
  const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
4658
4659
  const SCREENSHARE_STARTED = "screenshare:started";
4659
4660
  const SCREENSHARE_STOPPED = "screenshare:stopped";
4661
+ const CAMERA_STATE_CHANGED = "camera:state-changed";
4662
+ const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
4660
4663
  const STREAMING_STARTED = "streaming:started";
4661
4664
  const STREAMING_STOPPED = "streaming:stopped";
4662
4665
  const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -4666,7 +4669,7 @@ const SPOTLIGHT_PARTICIPANT_REMOVED = "spotlight:participant-removed";
4666
4669
  const ROOM_JOINED = "room:joined";
4667
4670
  const ROOM_JOINED_ERROR = "room:joined:error";
4668
4671
 
4669
- const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
4672
+ const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectRoomConnectionError, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, selectIsCameraEnabled, selectIsMicrophoneEnabled, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, connectionError, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews, isCameraEnabled, isMicrophoneEnabled) => {
4670
4673
  const state = {
4671
4674
  chatMessages,
4672
4675
  cloudRecording: cloudRecording.status
@@ -4683,7 +4686,10 @@ const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, sel
4683
4686
  participantsInCurrentGroup: clientViewsInCurrentGroup,
4684
4687
  },
4685
4688
  connectionStatus,
4689
+ connectionError,
4686
4690
  events: notificationsEmitter,
4691
+ isCameraEnabled,
4692
+ isMicrophoneEnabled,
4687
4693
  liveStream: streaming.isStreaming
4688
4694
  ? {
4689
4695
  status: "streaming",
@@ -4711,18 +4717,21 @@ class RoomConnectionClient extends BaseClient {
4711
4717
  constructor(store) {
4712
4718
  super(store);
4713
4719
  this.selfId = null;
4720
+ this.breakoutSubscribers = new Set();
4721
+ this.cameraStateSubscribers = new Set();
4714
4722
  this.chatMessageSubscribers = new Set();
4715
4723
  this.cloudRecordingSubscribers = new Set();
4716
- this.liveTranscriptionSubscribers = new Set();
4717
- this.breakoutSubscribers = new Set();
4724
+ this.connectionErrorSubscribers = new Set();
4718
4725
  this.connectionStatusSubscribers = new Set();
4719
4726
  this.liveStreamSubscribers = new Set();
4720
- this.localScreenshareStatusSubscribers = new Set();
4727
+ this.liveTranscriptionSubscribers = new Set();
4721
4728
  this.localParticipantSubscribers = new Set();
4729
+ this.localScreenshareStatusSubscribers = new Set();
4730
+ this.microphoneStateSubscribers = new Set();
4722
4731
  this.remoteParticipantsSubscribers = new Set();
4723
4732
  this.screenshareSubscribers = new Set();
4724
- this.waitingParticipantsSubscribers = new Set();
4725
4733
  this.spotlightedParticipantsSubscribers = new Set();
4734
+ this.waitingParticipantsSubscribers = new Set();
4726
4735
  this.options = {};
4727
4736
  this.registerAppListeners();
4728
4737
  }
@@ -4747,6 +4756,18 @@ class RoomConnectionClient extends BaseClient {
4747
4756
  this.connectionStatusSubscribers.forEach((cb) => cb(state.connectionStatus));
4748
4757
  this.emit(CONNECTION_STATUS_CHANGED, state.connectionStatus);
4749
4758
  }
4759
+ if (state.connectionError !== previousState.connectionError) {
4760
+ this.connectionErrorSubscribers.forEach((cb) => cb(state.connectionError));
4761
+ this.emit(CONNECTION_ERROR_CHANGED, state.connectionError);
4762
+ }
4763
+ if (state.isCameraEnabled !== previousState.isCameraEnabled) {
4764
+ this.cameraStateSubscribers.forEach((cb) => cb(state.isCameraEnabled));
4765
+ this.emit(CAMERA_STATE_CHANGED, state.isCameraEnabled);
4766
+ }
4767
+ if (state.isMicrophoneEnabled !== previousState.isMicrophoneEnabled) {
4768
+ this.microphoneStateSubscribers.forEach((cb) => cb(state.isMicrophoneEnabled));
4769
+ this.emit(MICROPHONE_STATE_CHANGED, state.isMicrophoneEnabled);
4770
+ }
4750
4771
  if (state.liveStream !== previousState.liveStream) {
4751
4772
  this.liveStreamSubscribers.forEach((cb) => cb(state.liveStream));
4752
4773
  if (((_a = state.liveStream) === null || _a === void 0 ? void 0 : _a.status) === "streaming") {
@@ -4845,6 +4866,10 @@ class RoomConnectionClient extends BaseClient {
4845
4866
  this.connectionStatusSubscribers.add(callback);
4846
4867
  return () => this.connectionStatusSubscribers.delete(callback);
4847
4868
  }
4869
+ subscribeToConnectionError(callback) {
4870
+ this.connectionErrorSubscribers.add(callback);
4871
+ return () => this.connectionErrorSubscribers.delete(callback);
4872
+ }
4848
4873
  subscribeToLiveStream(callback) {
4849
4874
  this.liveStreamSubscribers.add(callback);
4850
4875
  return () => this.liveStreamSubscribers.delete(callback);
@@ -4873,6 +4898,14 @@ class RoomConnectionClient extends BaseClient {
4873
4898
  this.spotlightedParticipantsSubscribers.add(callback);
4874
4899
  return () => this.spotlightedParticipantsSubscribers.delete(callback);
4875
4900
  }
4901
+ subscribeToMicrophoneState(callback) {
4902
+ this.microphoneStateSubscribers.add(callback);
4903
+ return () => this.microphoneStateSubscribers.delete(callback);
4904
+ }
4905
+ subscribeToCameraState(callback) {
4906
+ this.cameraStateSubscribers.add(callback);
4907
+ return () => this.cameraStateSubscribers.delete(callback);
4908
+ }
4876
4909
  getState() {
4877
4910
  return selectRoomConnectionState(this.store.getState());
4878
4911
  }
@@ -4884,7 +4917,7 @@ class RoomConnectionClient extends BaseClient {
4884
4917
  }
4885
4918
  joinRoom() {
4886
4919
  return __awaiter(this, void 0, void 0, function* () {
4887
- var _a;
4920
+ var _a, _b;
4888
4921
  const { roomUrl } = this.options;
4889
4922
  if (!roomUrl) {
4890
4923
  throw new Error("Room URL is required to join a room.");
@@ -4894,11 +4927,11 @@ class RoomConnectionClient extends BaseClient {
4894
4927
  displayName: this.options.displayName || "Guest",
4895
4928
  roomKey: this.options.roomKey || null,
4896
4929
  externalId: this.options.externalId || null,
4897
- sdkVersion: `core:${coreVersion}`,
4898
4930
  roomUrl,
4899
4931
  assistantKey: this.options.assistantKey || null,
4900
4932
  isNodeSdk: this.options.isNodeSdk || false,
4901
4933
  isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
4934
+ isDialIn: (_b = this.options.isDialIn) !== null && _b !== void 0 ? _b : false,
4902
4935
  };
4903
4936
  this.store.dispatch(doAppStart(roomConfig));
4904
4937
  let resolve;
@@ -5050,17 +5083,20 @@ class RoomConnectionClient extends BaseClient {
5050
5083
  this.store.dispatch(doAppStop());
5051
5084
  this.removeAllListeners();
5052
5085
  this.selfId = null;
5086
+ this.breakoutSubscribers.clear();
5087
+ this.cameraStateSubscribers.clear();
5053
5088
  this.chatMessageSubscribers.clear();
5054
5089
  this.cloudRecordingSubscribers.clear();
5055
- this.breakoutSubscribers.clear();
5090
+ this.connectionErrorSubscribers.clear();
5056
5091
  this.connectionStatusSubscribers.clear();
5057
5092
  this.liveStreamSubscribers.clear();
5058
- this.localScreenshareStatusSubscribers.clear();
5059
5093
  this.localParticipantSubscribers.clear();
5094
+ this.localScreenshareStatusSubscribers.clear();
5095
+ this.microphoneStateSubscribers.clear();
5060
5096
  this.remoteParticipantsSubscribers.clear();
5061
5097
  this.screenshareSubscribers.clear();
5062
- this.waitingParticipantsSubscribers.clear();
5063
5098
  this.spotlightedParticipantsSubscribers.clear();
5099
+ this.waitingParticipantsSubscribers.clear();
5064
5100
  }
5065
5101
  }
5066
5102
 
@@ -5095,10 +5131,12 @@ exports.ApiClient = ApiClient;
5095
5131
  exports.BREAKOUT_CONFIG_CHANGED = BREAKOUT_CONFIG_CHANGED;
5096
5132
  exports.CAMERA_DEVICES_CHANGED = CAMERA_DEVICES_CHANGED;
5097
5133
  exports.CAMERA_DEVICE_ERROR_CHANGED = CAMERA_DEVICE_ERROR_CHANGED;
5134
+ exports.CAMERA_STATE_CHANGED = CAMERA_STATE_CHANGED;
5098
5135
  exports.CHAT_NEW_MESSAGE = CHAT_NEW_MESSAGE;
5099
5136
  exports.CLIENT_VIEW_CHANGED = CLIENT_VIEW_CHANGED;
5100
5137
  exports.CLIENT_VIEW_SPOTLIGHTS_CHANGED = CLIENT_VIEW_SPOTLIGHTS_CHANGED;
5101
5138
  exports.CLOUD_RECORDING_STATUS_CHANGED = CLOUD_RECORDING_STATUS_CHANGED;
5139
+ exports.CONNECTION_ERROR_CHANGED = CONNECTION_ERROR_CHANGED;
5102
5140
  exports.CONNECTION_STATUS_CHANGED = CONNECTION_STATUS_CHANGED;
5103
5141
  exports.CURRENT_CAMERA_CHANGED = CURRENT_CAMERA_CHANGED;
5104
5142
  exports.CURRENT_MICROPHONE_CHANGED = CURRENT_MICROPHONE_CHANGED;
@@ -5118,6 +5156,7 @@ exports.LocalMediaClient = LocalMediaClient;
5118
5156
  exports.LocalParticipant = LocalParticipant;
5119
5157
  exports.MICROPHONE_DEVICES_CHANGED = MICROPHONE_DEVICES_CHANGED;
5120
5158
  exports.MICROPHONE_DEVICE_ERROR_CHANGED = MICROPHONE_DEVICE_ERROR_CHANGED;
5159
+ exports.MICROPHONE_STATE_CHANGED = MICROPHONE_STATE_CHANGED;
5121
5160
  exports.NUMBER_OF_CLIENT_VIEWS_CHANGED = NUMBER_OF_CLIENT_VIEWS_CHANGED;
5122
5161
  exports.OrganizationApiClient = OrganizationApiClient;
5123
5162
  exports.OrganizationService = OrganizationService;
package/dist/index.d.cts CHANGED
@@ -1090,10 +1090,13 @@ type BreakoutState = {
1090
1090
  };
1091
1091
  interface RoomConnectionState {
1092
1092
  connectionStatus: ConnectionStatus;
1093
+ connectionError: string | null;
1093
1094
  chatMessages: ChatMessage[];
1094
1095
  cloudRecording?: CloudRecordingState;
1095
1096
  breakout: BreakoutState;
1096
1097
  events?: NotificationsEventEmitter;
1098
+ isCameraEnabled: boolean;
1099
+ isMicrophoneEnabled: boolean;
1097
1100
  liveStream?: LiveStreamState;
1098
1101
  liveTranscription?: LiveTranscriptionState;
1099
1102
  localScreenshareStatus?: LocalScreenshareStatus;
@@ -1109,11 +1112,14 @@ declare const CHAT_NEW_MESSAGE = "chat:new-message";
1109
1112
  declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
1110
1113
  declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
1111
1114
  declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
1115
+ declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
1112
1116
  declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
1113
1117
  declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
1114
1118
  declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
1115
1119
  declare const SCREENSHARE_STARTED = "screenshare:started";
1116
1120
  declare const SCREENSHARE_STOPPED = "screenshare:stopped";
1121
+ declare const CAMERA_STATE_CHANGED = "camera:state-changed";
1122
+ declare const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
1117
1123
  declare const STREAMING_STARTED = "streaming:started";
1118
1124
  declare const STREAMING_STOPPED = "streaming:stopped";
1119
1125
  declare const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -1128,12 +1134,15 @@ type RoomJoinedEvent = {
1128
1134
  };
1129
1135
  type RoomConnectionEvents = {
1130
1136
  [BREAKOUT_CONFIG_CHANGED]: [config: BreakoutState];
1137
+ [CAMERA_STATE_CHANGED]: [isCameraEnabled: boolean];
1131
1138
  [CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
1132
1139
  [CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
1133
1140
  [CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
1134
1141
  [LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
1142
+ [CONNECTION_ERROR_CHANGED]: [error: string | null];
1135
1143
  [LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
1136
1144
  [LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
1145
+ [MICROPHONE_STATE_CHANGED]: [isMicrophoneEnabled: boolean];
1137
1146
  [REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
1138
1147
  [SCREENSHARE_STARTED]: [screenshare: Screenshare];
1139
1148
  [SCREENSHARE_STOPPED]: [screenshareId: string];
@@ -1150,18 +1159,21 @@ type RoomConnectionEvents = {
1150
1159
  declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
1151
1160
  protected options: Partial<AppConfig>;
1152
1161
  private selfId;
1162
+ private breakoutSubscribers;
1163
+ private cameraStateSubscribers;
1153
1164
  private chatMessageSubscribers;
1154
1165
  private cloudRecordingSubscribers;
1155
- private liveTranscriptionSubscribers;
1156
- private breakoutSubscribers;
1166
+ private connectionErrorSubscribers;
1157
1167
  private connectionStatusSubscribers;
1158
1168
  private liveStreamSubscribers;
1159
- private localScreenshareStatusSubscribers;
1169
+ private liveTranscriptionSubscribers;
1160
1170
  private localParticipantSubscribers;
1171
+ private localScreenshareStatusSubscribers;
1172
+ private microphoneStateSubscribers;
1161
1173
  private remoteParticipantsSubscribers;
1162
1174
  private screenshareSubscribers;
1163
- private waitingParticipantsSubscribers;
1164
1175
  private spotlightedParticipantsSubscribers;
1176
+ private waitingParticipantsSubscribers;
1165
1177
  constructor(store: Store);
1166
1178
  protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
1167
1179
  private registerAppListeners;
@@ -1170,6 +1182,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1170
1182
  subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
1171
1183
  subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
1172
1184
  subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
1185
+ subscribeToConnectionError(callback: (error: string | null) => void): () => void;
1173
1186
  subscribeToLiveStream(callback: (status: {
1174
1187
  status: "streaming";
1175
1188
  } | undefined) => void): () => void;
@@ -1179,6 +1192,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1179
1192
  subscribeToScreenshares(callback: (screenshares: ScreenshareState[]) => void): () => void;
1180
1193
  subscribeToWaitingParticipants(callback: (participants: WaitingParticipantState[]) => void): () => void;
1181
1194
  subscribeToSpotlightedParticipants(callback: (participants: ClientView[]) => void): () => void;
1195
+ subscribeToMicrophoneState(callback: (isMicrophoneEnabled: boolean) => void): () => void;
1196
+ subscribeToCameraState(callback: (isCameraEnabled: boolean) => void): () => void;
1182
1197
  getState(): RoomConnectionState;
1183
1198
  getNotificationsEventEmitter(): NotificationsEventEmitter;
1184
1199
  initialize(options: WherebyClientOptions): void;
@@ -1232,5 +1247,5 @@ declare class WherebyClient {
1232
1247
  destroy(): void;
1233
1248
  }
1234
1249
 
1235
- export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1250
+ export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1236
1251
  export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, Screenshare, ScreenshareState, SignalClientEvent, SignalStatusEvent, StickyReaction, StickyReactionEvent, StreamState, WaitingParticipant, WaitingParticipantState, WherebyClientOptions };
package/dist/index.d.mts CHANGED
@@ -1090,10 +1090,13 @@ type BreakoutState = {
1090
1090
  };
1091
1091
  interface RoomConnectionState {
1092
1092
  connectionStatus: ConnectionStatus;
1093
+ connectionError: string | null;
1093
1094
  chatMessages: ChatMessage[];
1094
1095
  cloudRecording?: CloudRecordingState;
1095
1096
  breakout: BreakoutState;
1096
1097
  events?: NotificationsEventEmitter;
1098
+ isCameraEnabled: boolean;
1099
+ isMicrophoneEnabled: boolean;
1097
1100
  liveStream?: LiveStreamState;
1098
1101
  liveTranscription?: LiveTranscriptionState;
1099
1102
  localScreenshareStatus?: LocalScreenshareStatus;
@@ -1109,11 +1112,14 @@ declare const CHAT_NEW_MESSAGE = "chat:new-message";
1109
1112
  declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
1110
1113
  declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
1111
1114
  declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
1115
+ declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
1112
1116
  declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
1113
1117
  declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
1114
1118
  declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
1115
1119
  declare const SCREENSHARE_STARTED = "screenshare:started";
1116
1120
  declare const SCREENSHARE_STOPPED = "screenshare:stopped";
1121
+ declare const CAMERA_STATE_CHANGED = "camera:state-changed";
1122
+ declare const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
1117
1123
  declare const STREAMING_STARTED = "streaming:started";
1118
1124
  declare const STREAMING_STOPPED = "streaming:stopped";
1119
1125
  declare const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -1128,12 +1134,15 @@ type RoomJoinedEvent = {
1128
1134
  };
1129
1135
  type RoomConnectionEvents = {
1130
1136
  [BREAKOUT_CONFIG_CHANGED]: [config: BreakoutState];
1137
+ [CAMERA_STATE_CHANGED]: [isCameraEnabled: boolean];
1131
1138
  [CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
1132
1139
  [CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
1133
1140
  [CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
1134
1141
  [LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
1142
+ [CONNECTION_ERROR_CHANGED]: [error: string | null];
1135
1143
  [LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
1136
1144
  [LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
1145
+ [MICROPHONE_STATE_CHANGED]: [isMicrophoneEnabled: boolean];
1137
1146
  [REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
1138
1147
  [SCREENSHARE_STARTED]: [screenshare: Screenshare];
1139
1148
  [SCREENSHARE_STOPPED]: [screenshareId: string];
@@ -1150,18 +1159,21 @@ type RoomConnectionEvents = {
1150
1159
  declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
1151
1160
  protected options: Partial<AppConfig>;
1152
1161
  private selfId;
1162
+ private breakoutSubscribers;
1163
+ private cameraStateSubscribers;
1153
1164
  private chatMessageSubscribers;
1154
1165
  private cloudRecordingSubscribers;
1155
- private liveTranscriptionSubscribers;
1156
- private breakoutSubscribers;
1166
+ private connectionErrorSubscribers;
1157
1167
  private connectionStatusSubscribers;
1158
1168
  private liveStreamSubscribers;
1159
- private localScreenshareStatusSubscribers;
1169
+ private liveTranscriptionSubscribers;
1160
1170
  private localParticipantSubscribers;
1171
+ private localScreenshareStatusSubscribers;
1172
+ private microphoneStateSubscribers;
1161
1173
  private remoteParticipantsSubscribers;
1162
1174
  private screenshareSubscribers;
1163
- private waitingParticipantsSubscribers;
1164
1175
  private spotlightedParticipantsSubscribers;
1176
+ private waitingParticipantsSubscribers;
1165
1177
  constructor(store: Store);
1166
1178
  protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
1167
1179
  private registerAppListeners;
@@ -1170,6 +1182,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1170
1182
  subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
1171
1183
  subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
1172
1184
  subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
1185
+ subscribeToConnectionError(callback: (error: string | null) => void): () => void;
1173
1186
  subscribeToLiveStream(callback: (status: {
1174
1187
  status: "streaming";
1175
1188
  } | undefined) => void): () => void;
@@ -1179,6 +1192,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1179
1192
  subscribeToScreenshares(callback: (screenshares: ScreenshareState[]) => void): () => void;
1180
1193
  subscribeToWaitingParticipants(callback: (participants: WaitingParticipantState[]) => void): () => void;
1181
1194
  subscribeToSpotlightedParticipants(callback: (participants: ClientView[]) => void): () => void;
1195
+ subscribeToMicrophoneState(callback: (isMicrophoneEnabled: boolean) => void): () => void;
1196
+ subscribeToCameraState(callback: (isCameraEnabled: boolean) => void): () => void;
1182
1197
  getState(): RoomConnectionState;
1183
1198
  getNotificationsEventEmitter(): NotificationsEventEmitter;
1184
1199
  initialize(options: WherebyClientOptions): void;
@@ -1232,5 +1247,5 @@ declare class WherebyClient {
1232
1247
  destroy(): void;
1233
1248
  }
1234
1249
 
1235
- export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1250
+ export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1236
1251
  export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, Screenshare, ScreenshareState, SignalClientEvent, SignalStatusEvent, StickyReaction, StickyReactionEvent, StreamState, WaitingParticipant, WaitingParticipantState, WherebyClientOptions };
package/dist/index.d.ts CHANGED
@@ -1090,10 +1090,13 @@ type BreakoutState = {
1090
1090
  };
1091
1091
  interface RoomConnectionState {
1092
1092
  connectionStatus: ConnectionStatus;
1093
+ connectionError: string | null;
1093
1094
  chatMessages: ChatMessage[];
1094
1095
  cloudRecording?: CloudRecordingState;
1095
1096
  breakout: BreakoutState;
1096
1097
  events?: NotificationsEventEmitter;
1098
+ isCameraEnabled: boolean;
1099
+ isMicrophoneEnabled: boolean;
1097
1100
  liveStream?: LiveStreamState;
1098
1101
  liveTranscription?: LiveTranscriptionState;
1099
1102
  localScreenshareStatus?: LocalScreenshareStatus;
@@ -1109,11 +1112,14 @@ declare const CHAT_NEW_MESSAGE = "chat:new-message";
1109
1112
  declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
1110
1113
  declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
1111
1114
  declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
1115
+ declare const CONNECTION_ERROR_CHANGED = "connection:error-changed";
1112
1116
  declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
1113
1117
  declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
1114
1118
  declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
1115
1119
  declare const SCREENSHARE_STARTED = "screenshare:started";
1116
1120
  declare const SCREENSHARE_STOPPED = "screenshare:stopped";
1121
+ declare const CAMERA_STATE_CHANGED = "camera:state-changed";
1122
+ declare const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
1117
1123
  declare const STREAMING_STARTED = "streaming:started";
1118
1124
  declare const STREAMING_STOPPED = "streaming:stopped";
1119
1125
  declare const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -1128,12 +1134,15 @@ type RoomJoinedEvent = {
1128
1134
  };
1129
1135
  type RoomConnectionEvents = {
1130
1136
  [BREAKOUT_CONFIG_CHANGED]: [config: BreakoutState];
1137
+ [CAMERA_STATE_CHANGED]: [isCameraEnabled: boolean];
1131
1138
  [CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
1132
1139
  [CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
1133
1140
  [CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
1134
1141
  [LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
1142
+ [CONNECTION_ERROR_CHANGED]: [error: string | null];
1135
1143
  [LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
1136
1144
  [LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
1145
+ [MICROPHONE_STATE_CHANGED]: [isMicrophoneEnabled: boolean];
1137
1146
  [REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
1138
1147
  [SCREENSHARE_STARTED]: [screenshare: Screenshare];
1139
1148
  [SCREENSHARE_STOPPED]: [screenshareId: string];
@@ -1150,18 +1159,21 @@ type RoomConnectionEvents = {
1150
1159
  declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
1151
1160
  protected options: Partial<AppConfig>;
1152
1161
  private selfId;
1162
+ private breakoutSubscribers;
1163
+ private cameraStateSubscribers;
1153
1164
  private chatMessageSubscribers;
1154
1165
  private cloudRecordingSubscribers;
1155
- private liveTranscriptionSubscribers;
1156
- private breakoutSubscribers;
1166
+ private connectionErrorSubscribers;
1157
1167
  private connectionStatusSubscribers;
1158
1168
  private liveStreamSubscribers;
1159
- private localScreenshareStatusSubscribers;
1169
+ private liveTranscriptionSubscribers;
1160
1170
  private localParticipantSubscribers;
1171
+ private localScreenshareStatusSubscribers;
1172
+ private microphoneStateSubscribers;
1161
1173
  private remoteParticipantsSubscribers;
1162
1174
  private screenshareSubscribers;
1163
- private waitingParticipantsSubscribers;
1164
1175
  private spotlightedParticipantsSubscribers;
1176
+ private waitingParticipantsSubscribers;
1165
1177
  constructor(store: Store);
1166
1178
  protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
1167
1179
  private registerAppListeners;
@@ -1170,6 +1182,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1170
1182
  subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
1171
1183
  subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
1172
1184
  subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
1185
+ subscribeToConnectionError(callback: (error: string | null) => void): () => void;
1173
1186
  subscribeToLiveStream(callback: (status: {
1174
1187
  status: "streaming";
1175
1188
  } | undefined) => void): () => void;
@@ -1179,6 +1192,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
1179
1192
  subscribeToScreenshares(callback: (screenshares: ScreenshareState[]) => void): () => void;
1180
1193
  subscribeToWaitingParticipants(callback: (participants: WaitingParticipantState[]) => void): () => void;
1181
1194
  subscribeToSpotlightedParticipants(callback: (participants: ClientView[]) => void): () => void;
1195
+ subscribeToMicrophoneState(callback: (isMicrophoneEnabled: boolean) => void): () => void;
1196
+ subscribeToCameraState(callback: (isCameraEnabled: boolean) => void): () => void;
1182
1197
  getState(): RoomConnectionState;
1183
1198
  getNotificationsEventEmitter(): NotificationsEventEmitter;
1184
1199
  initialize(options: WherebyClientOptions): void;
@@ -1232,5 +1247,5 @@ declare class WherebyClient {
1232
1247
  destroy(): void;
1233
1248
  }
1234
1249
 
1235
- export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1250
+ export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
1236
1251
  export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, LiveTranscriptionState, LocalMediaEvents, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareStatus, NotificationEvents, NotificationsEventEmitter, OrganizationLimits, OrganizationOnboardingSurvey, OrganizationPermissionAction, OrganizationPermissions, OrganizationPreferences, RemoteParticipant, RemoteParticipantData, RemoteParticipantState, RequestAudioEvent, RequestVideoEvent, RoomConnectionEvents, RoomConnectionState, Screenshare, ScreenshareState, SignalClientEvent, SignalStatusEvent, StickyReaction, StickyReactionEvent, StreamState, WaitingParticipant, WaitingParticipantState, WherebyClientOptions };
package/dist/index.mjs CHANGED
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.9.17";
1159
+ const coreVersion = "1.10.1";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -4650,11 +4650,14 @@ const CHAT_NEW_MESSAGE = "chat:new-message";
4650
4650
  const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
4651
4651
  const CONNECTION_STATUS_CHANGED = "connection:status-changed";
4652
4652
  const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
4653
+ const CONNECTION_ERROR_CHANGED = "connection:error-changed";
4653
4654
  const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
4654
4655
  const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
4655
4656
  const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
4656
4657
  const SCREENSHARE_STARTED = "screenshare:started";
4657
4658
  const SCREENSHARE_STOPPED = "screenshare:stopped";
4659
+ const CAMERA_STATE_CHANGED = "camera:state-changed";
4660
+ const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
4658
4661
  const STREAMING_STARTED = "streaming:started";
4659
4662
  const STREAMING_STOPPED = "streaming:stopped";
4660
4663
  const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -4664,7 +4667,7 @@ const SPOTLIGHT_PARTICIPANT_REMOVED = "spotlight:participant-removed";
4664
4667
  const ROOM_JOINED = "room:joined";
4665
4668
  const ROOM_JOINED_ERROR = "room:joined:error";
4666
4669
 
4667
- const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
4670
+ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectRoomConnectionError, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, selectIsCameraEnabled, selectIsMicrophoneEnabled, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, connectionError, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews, isCameraEnabled, isMicrophoneEnabled) => {
4668
4671
  const state = {
4669
4672
  chatMessages,
4670
4673
  cloudRecording: cloudRecording.status
@@ -4681,7 +4684,10 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
4681
4684
  participantsInCurrentGroup: clientViewsInCurrentGroup,
4682
4685
  },
4683
4686
  connectionStatus,
4687
+ connectionError,
4684
4688
  events: notificationsEmitter,
4689
+ isCameraEnabled,
4690
+ isMicrophoneEnabled,
4685
4691
  liveStream: streaming.isStreaming
4686
4692
  ? {
4687
4693
  status: "streaming",
@@ -4709,18 +4715,21 @@ class RoomConnectionClient extends BaseClient {
4709
4715
  constructor(store) {
4710
4716
  super(store);
4711
4717
  this.selfId = null;
4718
+ this.breakoutSubscribers = new Set();
4719
+ this.cameraStateSubscribers = new Set();
4712
4720
  this.chatMessageSubscribers = new Set();
4713
4721
  this.cloudRecordingSubscribers = new Set();
4714
- this.liveTranscriptionSubscribers = new Set();
4715
- this.breakoutSubscribers = new Set();
4722
+ this.connectionErrorSubscribers = new Set();
4716
4723
  this.connectionStatusSubscribers = new Set();
4717
4724
  this.liveStreamSubscribers = new Set();
4718
- this.localScreenshareStatusSubscribers = new Set();
4725
+ this.liveTranscriptionSubscribers = new Set();
4719
4726
  this.localParticipantSubscribers = new Set();
4727
+ this.localScreenshareStatusSubscribers = new Set();
4728
+ this.microphoneStateSubscribers = new Set();
4720
4729
  this.remoteParticipantsSubscribers = new Set();
4721
4730
  this.screenshareSubscribers = new Set();
4722
- this.waitingParticipantsSubscribers = new Set();
4723
4731
  this.spotlightedParticipantsSubscribers = new Set();
4732
+ this.waitingParticipantsSubscribers = new Set();
4724
4733
  this.options = {};
4725
4734
  this.registerAppListeners();
4726
4735
  }
@@ -4745,6 +4754,18 @@ class RoomConnectionClient extends BaseClient {
4745
4754
  this.connectionStatusSubscribers.forEach((cb) => cb(state.connectionStatus));
4746
4755
  this.emit(CONNECTION_STATUS_CHANGED, state.connectionStatus);
4747
4756
  }
4757
+ if (state.connectionError !== previousState.connectionError) {
4758
+ this.connectionErrorSubscribers.forEach((cb) => cb(state.connectionError));
4759
+ this.emit(CONNECTION_ERROR_CHANGED, state.connectionError);
4760
+ }
4761
+ if (state.isCameraEnabled !== previousState.isCameraEnabled) {
4762
+ this.cameraStateSubscribers.forEach((cb) => cb(state.isCameraEnabled));
4763
+ this.emit(CAMERA_STATE_CHANGED, state.isCameraEnabled);
4764
+ }
4765
+ if (state.isMicrophoneEnabled !== previousState.isMicrophoneEnabled) {
4766
+ this.microphoneStateSubscribers.forEach((cb) => cb(state.isMicrophoneEnabled));
4767
+ this.emit(MICROPHONE_STATE_CHANGED, state.isMicrophoneEnabled);
4768
+ }
4748
4769
  if (state.liveStream !== previousState.liveStream) {
4749
4770
  this.liveStreamSubscribers.forEach((cb) => cb(state.liveStream));
4750
4771
  if (((_a = state.liveStream) === null || _a === void 0 ? void 0 : _a.status) === "streaming") {
@@ -4843,6 +4864,10 @@ class RoomConnectionClient extends BaseClient {
4843
4864
  this.connectionStatusSubscribers.add(callback);
4844
4865
  return () => this.connectionStatusSubscribers.delete(callback);
4845
4866
  }
4867
+ subscribeToConnectionError(callback) {
4868
+ this.connectionErrorSubscribers.add(callback);
4869
+ return () => this.connectionErrorSubscribers.delete(callback);
4870
+ }
4846
4871
  subscribeToLiveStream(callback) {
4847
4872
  this.liveStreamSubscribers.add(callback);
4848
4873
  return () => this.liveStreamSubscribers.delete(callback);
@@ -4871,6 +4896,14 @@ class RoomConnectionClient extends BaseClient {
4871
4896
  this.spotlightedParticipantsSubscribers.add(callback);
4872
4897
  return () => this.spotlightedParticipantsSubscribers.delete(callback);
4873
4898
  }
4899
+ subscribeToMicrophoneState(callback) {
4900
+ this.microphoneStateSubscribers.add(callback);
4901
+ return () => this.microphoneStateSubscribers.delete(callback);
4902
+ }
4903
+ subscribeToCameraState(callback) {
4904
+ this.cameraStateSubscribers.add(callback);
4905
+ return () => this.cameraStateSubscribers.delete(callback);
4906
+ }
4874
4907
  getState() {
4875
4908
  return selectRoomConnectionState(this.store.getState());
4876
4909
  }
@@ -4882,7 +4915,7 @@ class RoomConnectionClient extends BaseClient {
4882
4915
  }
4883
4916
  joinRoom() {
4884
4917
  return __awaiter(this, void 0, void 0, function* () {
4885
- var _a;
4918
+ var _a, _b;
4886
4919
  const { roomUrl } = this.options;
4887
4920
  if (!roomUrl) {
4888
4921
  throw new Error("Room URL is required to join a room.");
@@ -4892,11 +4925,11 @@ class RoomConnectionClient extends BaseClient {
4892
4925
  displayName: this.options.displayName || "Guest",
4893
4926
  roomKey: this.options.roomKey || null,
4894
4927
  externalId: this.options.externalId || null,
4895
- sdkVersion: `core:${coreVersion}`,
4896
4928
  roomUrl,
4897
4929
  assistantKey: this.options.assistantKey || null,
4898
4930
  isNodeSdk: this.options.isNodeSdk || false,
4899
4931
  isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
4932
+ isDialIn: (_b = this.options.isDialIn) !== null && _b !== void 0 ? _b : false,
4900
4933
  };
4901
4934
  this.store.dispatch(doAppStart(roomConfig));
4902
4935
  let resolve;
@@ -5048,17 +5081,20 @@ class RoomConnectionClient extends BaseClient {
5048
5081
  this.store.dispatch(doAppStop());
5049
5082
  this.removeAllListeners();
5050
5083
  this.selfId = null;
5084
+ this.breakoutSubscribers.clear();
5085
+ this.cameraStateSubscribers.clear();
5051
5086
  this.chatMessageSubscribers.clear();
5052
5087
  this.cloudRecordingSubscribers.clear();
5053
- this.breakoutSubscribers.clear();
5088
+ this.connectionErrorSubscribers.clear();
5054
5089
  this.connectionStatusSubscribers.clear();
5055
5090
  this.liveStreamSubscribers.clear();
5056
- this.localScreenshareStatusSubscribers.clear();
5057
5091
  this.localParticipantSubscribers.clear();
5092
+ this.localScreenshareStatusSubscribers.clear();
5093
+ this.microphoneStateSubscribers.clear();
5058
5094
  this.remoteParticipantsSubscribers.clear();
5059
5095
  this.screenshareSubscribers.clear();
5060
- this.waitingParticipantsSubscribers.clear();
5061
5096
  this.spotlightedParticipantsSubscribers.clear();
5097
+ this.waitingParticipantsSubscribers.clear();
5062
5098
  }
5063
5099
  }
5064
5100
 
@@ -5089,4 +5125,4 @@ class WherebyClient {
5089
5125
  }
5090
5126
  }
5091
5127
 
5092
- export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
5128
+ export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
@@ -1156,7 +1156,7 @@ const createReactor = (selectors, callback) => {
1156
1156
  });
1157
1157
  };
1158
1158
 
1159
- const coreVersion = "1.9.17";
1159
+ const coreVersion = "1.10.1";
1160
1160
 
1161
1161
  const initialState$1 = {
1162
1162
  displayName: null,
@@ -4650,11 +4650,14 @@ const CHAT_NEW_MESSAGE = "chat:new-message";
4650
4650
  const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
4651
4651
  const CONNECTION_STATUS_CHANGED = "connection:status-changed";
4652
4652
  const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
4653
+ const CONNECTION_ERROR_CHANGED = "connection:error-changed";
4653
4654
  const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
4654
4655
  const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
4655
4656
  const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
4656
4657
  const SCREENSHARE_STARTED = "screenshare:started";
4657
4658
  const SCREENSHARE_STOPPED = "screenshare:stopped";
4659
+ const CAMERA_STATE_CHANGED = "camera:state-changed";
4660
+ const MICROPHONE_STATE_CHANGED = "microphone:state-changed";
4658
4661
  const STREAMING_STARTED = "streaming:started";
4659
4662
  const STREAMING_STOPPED = "streaming:stopped";
4660
4663
  const WAITING_PARTICIPANT_JOINED = "waiting-participant:joined";
@@ -4664,7 +4667,7 @@ const SPOTLIGHT_PARTICIPANT_REMOVED = "spotlight:participant-removed";
4664
4667
  const ROOM_JOINED = "room:joined";
4665
4668
  const ROOM_JOINED_ERROR = "room:joined:error";
4666
4669
 
4667
- const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
4670
+ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLiveTranscriptionRaw, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectRoomConnectionError, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, selectIsCameraEnabled, selectIsMicrophoneEnabled, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, liveTranscription, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, connectionError, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews, isCameraEnabled, isMicrophoneEnabled) => {
4668
4671
  const state = {
4669
4672
  chatMessages,
4670
4673
  cloudRecording: cloudRecording.status
@@ -4681,7 +4684,10 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
4681
4684
  participantsInCurrentGroup: clientViewsInCurrentGroup,
4682
4685
  },
4683
4686
  connectionStatus,
4687
+ connectionError,
4684
4688
  events: notificationsEmitter,
4689
+ isCameraEnabled,
4690
+ isMicrophoneEnabled,
4685
4691
  liveStream: streaming.isStreaming
4686
4692
  ? {
4687
4693
  status: "streaming",
@@ -4709,18 +4715,21 @@ class RoomConnectionClient extends BaseClient {
4709
4715
  constructor(store) {
4710
4716
  super(store);
4711
4717
  this.selfId = null;
4718
+ this.breakoutSubscribers = new Set();
4719
+ this.cameraStateSubscribers = new Set();
4712
4720
  this.chatMessageSubscribers = new Set();
4713
4721
  this.cloudRecordingSubscribers = new Set();
4714
- this.liveTranscriptionSubscribers = new Set();
4715
- this.breakoutSubscribers = new Set();
4722
+ this.connectionErrorSubscribers = new Set();
4716
4723
  this.connectionStatusSubscribers = new Set();
4717
4724
  this.liveStreamSubscribers = new Set();
4718
- this.localScreenshareStatusSubscribers = new Set();
4725
+ this.liveTranscriptionSubscribers = new Set();
4719
4726
  this.localParticipantSubscribers = new Set();
4727
+ this.localScreenshareStatusSubscribers = new Set();
4728
+ this.microphoneStateSubscribers = new Set();
4720
4729
  this.remoteParticipantsSubscribers = new Set();
4721
4730
  this.screenshareSubscribers = new Set();
4722
- this.waitingParticipantsSubscribers = new Set();
4723
4731
  this.spotlightedParticipantsSubscribers = new Set();
4732
+ this.waitingParticipantsSubscribers = new Set();
4724
4733
  this.options = {};
4725
4734
  this.registerAppListeners();
4726
4735
  }
@@ -4745,6 +4754,18 @@ class RoomConnectionClient extends BaseClient {
4745
4754
  this.connectionStatusSubscribers.forEach((cb) => cb(state.connectionStatus));
4746
4755
  this.emit(CONNECTION_STATUS_CHANGED, state.connectionStatus);
4747
4756
  }
4757
+ if (state.connectionError !== previousState.connectionError) {
4758
+ this.connectionErrorSubscribers.forEach((cb) => cb(state.connectionError));
4759
+ this.emit(CONNECTION_ERROR_CHANGED, state.connectionError);
4760
+ }
4761
+ if (state.isCameraEnabled !== previousState.isCameraEnabled) {
4762
+ this.cameraStateSubscribers.forEach((cb) => cb(state.isCameraEnabled));
4763
+ this.emit(CAMERA_STATE_CHANGED, state.isCameraEnabled);
4764
+ }
4765
+ if (state.isMicrophoneEnabled !== previousState.isMicrophoneEnabled) {
4766
+ this.microphoneStateSubscribers.forEach((cb) => cb(state.isMicrophoneEnabled));
4767
+ this.emit(MICROPHONE_STATE_CHANGED, state.isMicrophoneEnabled);
4768
+ }
4748
4769
  if (state.liveStream !== previousState.liveStream) {
4749
4770
  this.liveStreamSubscribers.forEach((cb) => cb(state.liveStream));
4750
4771
  if (((_a = state.liveStream) === null || _a === void 0 ? void 0 : _a.status) === "streaming") {
@@ -4843,6 +4864,10 @@ class RoomConnectionClient extends BaseClient {
4843
4864
  this.connectionStatusSubscribers.add(callback);
4844
4865
  return () => this.connectionStatusSubscribers.delete(callback);
4845
4866
  }
4867
+ subscribeToConnectionError(callback) {
4868
+ this.connectionErrorSubscribers.add(callback);
4869
+ return () => this.connectionErrorSubscribers.delete(callback);
4870
+ }
4846
4871
  subscribeToLiveStream(callback) {
4847
4872
  this.liveStreamSubscribers.add(callback);
4848
4873
  return () => this.liveStreamSubscribers.delete(callback);
@@ -4871,6 +4896,14 @@ class RoomConnectionClient extends BaseClient {
4871
4896
  this.spotlightedParticipantsSubscribers.add(callback);
4872
4897
  return () => this.spotlightedParticipantsSubscribers.delete(callback);
4873
4898
  }
4899
+ subscribeToMicrophoneState(callback) {
4900
+ this.microphoneStateSubscribers.add(callback);
4901
+ return () => this.microphoneStateSubscribers.delete(callback);
4902
+ }
4903
+ subscribeToCameraState(callback) {
4904
+ this.cameraStateSubscribers.add(callback);
4905
+ return () => this.cameraStateSubscribers.delete(callback);
4906
+ }
4874
4907
  getState() {
4875
4908
  return selectRoomConnectionState(this.store.getState());
4876
4909
  }
@@ -4882,7 +4915,7 @@ class RoomConnectionClient extends BaseClient {
4882
4915
  }
4883
4916
  joinRoom() {
4884
4917
  return __awaiter(this, void 0, void 0, function* () {
4885
- var _a;
4918
+ var _a, _b;
4886
4919
  const { roomUrl } = this.options;
4887
4920
  if (!roomUrl) {
4888
4921
  throw new Error("Room URL is required to join a room.");
@@ -4892,11 +4925,11 @@ class RoomConnectionClient extends BaseClient {
4892
4925
  displayName: this.options.displayName || "Guest",
4893
4926
  roomKey: this.options.roomKey || null,
4894
4927
  externalId: this.options.externalId || null,
4895
- sdkVersion: `core:${coreVersion}`,
4896
4928
  roomUrl,
4897
4929
  assistantKey: this.options.assistantKey || null,
4898
4930
  isNodeSdk: this.options.isNodeSdk || false,
4899
4931
  isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
4932
+ isDialIn: (_b = this.options.isDialIn) !== null && _b !== void 0 ? _b : false,
4900
4933
  };
4901
4934
  this.store.dispatch(doAppStart(roomConfig));
4902
4935
  let resolve;
@@ -5048,17 +5081,20 @@ class RoomConnectionClient extends BaseClient {
5048
5081
  this.store.dispatch(doAppStop());
5049
5082
  this.removeAllListeners();
5050
5083
  this.selfId = null;
5084
+ this.breakoutSubscribers.clear();
5085
+ this.cameraStateSubscribers.clear();
5051
5086
  this.chatMessageSubscribers.clear();
5052
5087
  this.cloudRecordingSubscribers.clear();
5053
- this.breakoutSubscribers.clear();
5088
+ this.connectionErrorSubscribers.clear();
5054
5089
  this.connectionStatusSubscribers.clear();
5055
5090
  this.liveStreamSubscribers.clear();
5056
- this.localScreenshareStatusSubscribers.clear();
5057
5091
  this.localParticipantSubscribers.clear();
5092
+ this.localScreenshareStatusSubscribers.clear();
5093
+ this.microphoneStateSubscribers.clear();
5058
5094
  this.remoteParticipantsSubscribers.clear();
5059
5095
  this.screenshareSubscribers.clear();
5060
- this.waitingParticipantsSubscribers.clear();
5061
5096
  this.spotlightedParticipantsSubscribers.clear();
5097
+ this.waitingParticipantsSubscribers.clear();
5062
5098
  }
5063
5099
  }
5064
5100
 
@@ -5089,4 +5125,4 @@ class WherebyClient {
5089
5125
  }
5090
5126
  }
5091
5127
 
5092
- export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
5128
+ export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
@@ -75,7 +75,7 @@ const createReactor = (selectors, callback) => {
75
75
  });
76
76
  };
77
77
 
78
- const coreVersion = "1.9.17";
78
+ const coreVersion = "1.10.1";
79
79
 
80
80
  const initialState$1 = {
81
81
  displayName: null,
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.9.17";
76
+ const coreVersion = "1.10.1";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
@@ -73,7 +73,7 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "1.9.17";
76
+ const coreVersion = "1.10.1";
77
77
 
78
78
  const initialState$1 = {
79
79
  displayName: null,
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": "1.9.17",
5
+ "version": "1.10.1",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@reduxjs/toolkit": "^2.2.3",
69
- "@whereby.com/media": "8.0.11",
69
+ "@whereby.com/media": "8.2.0",
70
70
  "axios": "^1.11.0",
71
71
  "btoa": "^1.2.1",
72
72
  "events": "^3.3.0"