@whereby.com/core 1.5.14 → 1.6.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.mjs CHANGED
@@ -970,7 +970,7 @@ class RoomService {
970
970
  }
971
971
 
972
972
  class RoomParticipant {
973
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }) {
973
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
974
974
  this.isLocalParticipant = false;
975
975
  this.displayName = displayName;
976
976
  this.id = id;
@@ -980,11 +980,22 @@ class RoomParticipant {
980
980
  this.breakoutGroup = breakoutGroup;
981
981
  this.stickyReaction = stickyReaction;
982
982
  this.isDialIn = isDialIn;
983
+ this.isAudioRecorder = isAudioRecorder;
983
984
  }
984
985
  }
985
986
  class LocalParticipant extends RoomParticipant {
986
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }) {
987
- super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn });
987
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
988
+ super({
989
+ breakoutGroup,
990
+ displayName,
991
+ id,
992
+ isAudioEnabled,
993
+ isAudioRecorder,
994
+ isDialIn,
995
+ isVideoEnabled,
996
+ stickyReaction,
997
+ stream,
998
+ });
988
999
  this.isLocalParticipant = true;
989
1000
  }
990
1001
  }
@@ -1145,19 +1156,20 @@ const createReactor = (selectors, callback) => {
1145
1156
  });
1146
1157
  };
1147
1158
 
1148
- const coreVersion = "1.5.14";
1159
+ const coreVersion = "1.6.1";
1149
1160
 
1150
1161
  const initialState$1 = {
1151
- isNodeSdk: false,
1162
+ displayName: null,
1163
+ externalId: null,
1164
+ ignoreBreakoutGroups: false,
1152
1165
  isActive: false,
1153
- isDialIn: false,
1154
1166
  isAssistant: false,
1155
- ignoreBreakoutGroups: false,
1167
+ isAudioRecorder: false,
1168
+ isDialIn: false,
1169
+ isNodeSdk: false,
1156
1170
  roomName: null,
1157
1171
  roomUrl: null,
1158
- displayName: null,
1159
1172
  userAgent: `core:${coreVersion}`,
1160
- externalId: null,
1161
1173
  };
1162
1174
  const appSlice = createSlice({
1163
1175
  name: "app",
@@ -1175,6 +1187,7 @@ const appSlice = createSlice({
1175
1187
  const { doAppStop, doAppStart } = appSlice.actions;
1176
1188
  const selectAppIsActive = (state) => state.app.isActive;
1177
1189
  const selectAppIsDialIn = (state) => state.app.isDialIn;
1190
+ const selectAppIsAudioRecorder = (state) => state.app.isAudioRecorder;
1178
1191
  const selectAppIsAssistant = (state) => state.app.isAssistant;
1179
1192
  const selectAppRoomName = (state) => state.app.roomName;
1180
1193
  const selectAppRoomUrl = (state) => state.app.roomUrl;
@@ -3323,19 +3336,20 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
3323
3336
  });
3324
3337
 
3325
3338
  const localParticipantSliceInitialState = {
3326
- displayName: "",
3327
- id: "",
3328
3339
  breakoutGroup: null,
3329
3340
  breakoutGroupAssigned: "",
3341
+ clientClaim: undefined,
3342
+ displayName: "",
3343
+ id: "",
3330
3344
  isAudioEnabled: true,
3331
- isVideoEnabled: true,
3345
+ isAudioRecorder: false,
3346
+ isDialIn: false,
3332
3347
  isLocalParticipant: true,
3333
- stream: undefined,
3334
3348
  isScreenSharing: false,
3349
+ isVideoEnabled: true,
3335
3350
  roleName: "none",
3336
- clientClaim: undefined,
3337
3351
  stickyReaction: undefined,
3338
- isDialIn: false,
3352
+ stream: undefined,
3339
3353
  };
3340
3354
  const localParticipantSlice = createSlice({
3341
3355
  name: "localParticipant",
@@ -3747,6 +3761,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3747
3761
  const roomKey = selectRoomKey(state);
3748
3762
  const displayName = selectAppDisplayName(state);
3749
3763
  const isDialIn = selectAppIsDialIn(state);
3764
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
3750
3765
  const userAgent = selectAppUserAgent(state);
3751
3766
  const externalId = selectAppExternalId(state);
3752
3767
  const organizationId = selectOrganizationId(state);
@@ -3765,6 +3780,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3765
3780
  displayName,
3766
3781
  isCoLocated: false,
3767
3782
  isDialIn,
3783
+ isAudioRecorder,
3768
3784
  isDevicePermissionDenied: false,
3769
3785
  kickFromOtherRooms: false,
3770
3786
  organizationId,
@@ -3796,6 +3812,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
3796
3812
  const userAgent = selectAppUserAgent(state);
3797
3813
  const externalId = selectAppExternalId(state);
3798
3814
  const isDialIn = selectAppIsDialIn(state);
3815
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
3799
3816
  const organizationId = selectOrganizationId(state);
3800
3817
  const isCameraEnabled = selectIsCameraEnabled(getState());
3801
3818
  const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
@@ -3803,7 +3820,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
3803
3820
  socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
3804
3821
  isAudioEnabled: isMicrophoneEnabled,
3805
3822
  isVideoEnabled: isCameraEnabled,
3806
- }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3823
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
3824
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3807
3825
  roomKey,
3808
3826
  assistantKey,
3809
3827
  roomName,
@@ -4783,6 +4801,7 @@ class RoomConnectionClient extends BaseClient {
4783
4801
  }
4784
4802
  joinRoom() {
4785
4803
  return __awaiter(this, void 0, void 0, function* () {
4804
+ var _a;
4786
4805
  const { roomUrl } = this.options;
4787
4806
  if (!roomUrl) {
4788
4807
  throw new Error("Room URL is required to join a room.");
@@ -4796,6 +4815,7 @@ class RoomConnectionClient extends BaseClient {
4796
4815
  roomUrl,
4797
4816
  assistantKey: this.options.assistantKey || null,
4798
4817
  isNodeSdk: this.options.isNodeSdk || false,
4818
+ isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
4799
4819
  };
4800
4820
  this.store.dispatch(doAppStart(roomConfig));
4801
4821
  let resolve;
@@ -970,7 +970,7 @@ class RoomService {
970
970
  }
971
971
 
972
972
  class RoomParticipant {
973
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }) {
973
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
974
974
  this.isLocalParticipant = false;
975
975
  this.displayName = displayName;
976
976
  this.id = id;
@@ -980,11 +980,22 @@ class RoomParticipant {
980
980
  this.breakoutGroup = breakoutGroup;
981
981
  this.stickyReaction = stickyReaction;
982
982
  this.isDialIn = isDialIn;
983
+ this.isAudioRecorder = isAudioRecorder;
983
984
  }
984
985
  }
985
986
  class LocalParticipant extends RoomParticipant {
986
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }) {
987
- super({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn });
987
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
988
+ super({
989
+ breakoutGroup,
990
+ displayName,
991
+ id,
992
+ isAudioEnabled,
993
+ isAudioRecorder,
994
+ isDialIn,
995
+ isVideoEnabled,
996
+ stickyReaction,
997
+ stream,
998
+ });
988
999
  this.isLocalParticipant = true;
989
1000
  }
990
1001
  }
@@ -1145,19 +1156,20 @@ const createReactor = (selectors, callback) => {
1145
1156
  });
1146
1157
  };
1147
1158
 
1148
- const coreVersion = "1.5.14";
1159
+ const coreVersion = "1.6.1";
1149
1160
 
1150
1161
  const initialState$1 = {
1151
- isNodeSdk: false,
1162
+ displayName: null,
1163
+ externalId: null,
1164
+ ignoreBreakoutGroups: false,
1152
1165
  isActive: false,
1153
- isDialIn: false,
1154
1166
  isAssistant: false,
1155
- ignoreBreakoutGroups: false,
1167
+ isAudioRecorder: false,
1168
+ isDialIn: false,
1169
+ isNodeSdk: false,
1156
1170
  roomName: null,
1157
1171
  roomUrl: null,
1158
- displayName: null,
1159
1172
  userAgent: `core:${coreVersion}`,
1160
- externalId: null,
1161
1173
  };
1162
1174
  const appSlice = createSlice({
1163
1175
  name: "app",
@@ -1175,6 +1187,7 @@ const appSlice = createSlice({
1175
1187
  const { doAppStop, doAppStart } = appSlice.actions;
1176
1188
  const selectAppIsActive = (state) => state.app.isActive;
1177
1189
  const selectAppIsDialIn = (state) => state.app.isDialIn;
1190
+ const selectAppIsAudioRecorder = (state) => state.app.isAudioRecorder;
1178
1191
  const selectAppIsAssistant = (state) => state.app.isAssistant;
1179
1192
  const selectAppRoomName = (state) => state.app.roomName;
1180
1193
  const selectAppRoomUrl = (state) => state.app.roomUrl;
@@ -3323,19 +3336,20 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
3323
3336
  });
3324
3337
 
3325
3338
  const localParticipantSliceInitialState = {
3326
- displayName: "",
3327
- id: "",
3328
3339
  breakoutGroup: null,
3329
3340
  breakoutGroupAssigned: "",
3341
+ clientClaim: undefined,
3342
+ displayName: "",
3343
+ id: "",
3330
3344
  isAudioEnabled: true,
3331
- isVideoEnabled: true,
3345
+ isAudioRecorder: false,
3346
+ isDialIn: false,
3332
3347
  isLocalParticipant: true,
3333
- stream: undefined,
3334
3348
  isScreenSharing: false,
3349
+ isVideoEnabled: true,
3335
3350
  roleName: "none",
3336
- clientClaim: undefined,
3337
3351
  stickyReaction: undefined,
3338
- isDialIn: false,
3352
+ stream: undefined,
3339
3353
  };
3340
3354
  const localParticipantSlice = createSlice({
3341
3355
  name: "localParticipant",
@@ -3747,6 +3761,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3747
3761
  const roomKey = selectRoomKey(state);
3748
3762
  const displayName = selectAppDisplayName(state);
3749
3763
  const isDialIn = selectAppIsDialIn(state);
3764
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
3750
3765
  const userAgent = selectAppUserAgent(state);
3751
3766
  const externalId = selectAppExternalId(state);
3752
3767
  const organizationId = selectOrganizationId(state);
@@ -3765,6 +3780,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
3765
3780
  displayName,
3766
3781
  isCoLocated: false,
3767
3782
  isDialIn,
3783
+ isAudioRecorder,
3768
3784
  isDevicePermissionDenied: false,
3769
3785
  kickFromOtherRooms: false,
3770
3786
  organizationId,
@@ -3796,6 +3812,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
3796
3812
  const userAgent = selectAppUserAgent(state);
3797
3813
  const externalId = selectAppExternalId(state);
3798
3814
  const isDialIn = selectAppIsDialIn(state);
3815
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
3799
3816
  const organizationId = selectOrganizationId(state);
3800
3817
  const isCameraEnabled = selectIsCameraEnabled(getState());
3801
3818
  const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
@@ -3803,7 +3820,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
3803
3820
  socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
3804
3821
  isAudioEnabled: isMicrophoneEnabled,
3805
3822
  isVideoEnabled: isCameraEnabled,
3806
- }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3823
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
3824
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
3807
3825
  roomKey,
3808
3826
  assistantKey,
3809
3827
  roomName,
@@ -4783,6 +4801,7 @@ class RoomConnectionClient extends BaseClient {
4783
4801
  }
4784
4802
  joinRoom() {
4785
4803
  return __awaiter(this, void 0, void 0, function* () {
4804
+ var _a;
4786
4805
  const { roomUrl } = this.options;
4787
4806
  if (!roomUrl) {
4788
4807
  throw new Error("Room URL is required to join a room.");
@@ -4796,6 +4815,7 @@ class RoomConnectionClient extends BaseClient {
4796
4815
  roomUrl,
4797
4816
  assistantKey: this.options.assistantKey || null,
4798
4817
  isNodeSdk: this.options.isNodeSdk || false,
4818
+ isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
4799
4819
  };
4800
4820
  this.store.dispatch(doAppStart(roomConfig));
4801
4821
  let resolve;
@@ -75,19 +75,20 @@ const createReactor = (selectors, callback) => {
75
75
  });
76
76
  };
77
77
 
78
- const coreVersion = "1.5.14";
78
+ const coreVersion = "1.6.1";
79
79
 
80
80
  const initialState$1 = {
81
- isNodeSdk: false,
81
+ displayName: null,
82
+ externalId: null,
83
+ ignoreBreakoutGroups: false,
82
84
  isActive: false,
83
- isDialIn: false,
84
85
  isAssistant: false,
85
- ignoreBreakoutGroups: false,
86
+ isAudioRecorder: false,
87
+ isDialIn: false,
88
+ isNodeSdk: false,
86
89
  roomName: null,
87
90
  roomUrl: null,
88
- displayName: null,
89
91
  userAgent: `core:${coreVersion}`,
90
- externalId: null,
91
92
  };
92
93
  const appSlice = toolkit.createSlice({
93
94
  name: "app",
@@ -106,6 +107,7 @@ const { doAppStop, doAppStart } = appSlice.actions;
106
107
  const selectAppRaw = (state) => state.app;
107
108
  const selectAppIsActive = (state) => state.app.isActive;
108
109
  const selectAppIsDialIn = (state) => state.app.isDialIn;
110
+ const selectAppIsAudioRecorder = (state) => state.app.isAudioRecorder;
109
111
  const selectAppIsAssistant = (state) => state.app.isAssistant;
110
112
  const selectAppRoomName = (state) => state.app.roomName;
111
113
  const selectAppRoomUrl = (state) => state.app.roomUrl;
@@ -2240,19 +2242,20 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
2240
2242
  });
2241
2243
 
2242
2244
  const localParticipantSliceInitialState = {
2243
- displayName: "",
2244
- id: "",
2245
2245
  breakoutGroup: null,
2246
2246
  breakoutGroupAssigned: "",
2247
+ clientClaim: undefined,
2248
+ displayName: "",
2249
+ id: "",
2247
2250
  isAudioEnabled: true,
2248
- isVideoEnabled: true,
2251
+ isAudioRecorder: false,
2252
+ isDialIn: false,
2249
2253
  isLocalParticipant: true,
2250
- stream: undefined,
2251
2254
  isScreenSharing: false,
2255
+ isVideoEnabled: true,
2252
2256
  roleName: "none",
2253
- clientClaim: undefined,
2254
2257
  stickyReaction: undefined,
2255
- isDialIn: false,
2258
+ stream: undefined,
2256
2259
  };
2257
2260
  const localParticipantSlice = toolkit.createSlice({
2258
2261
  name: "localParticipant",
@@ -2675,6 +2678,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
2675
2678
  const roomKey = selectRoomKey(state);
2676
2679
  const displayName = selectAppDisplayName(state);
2677
2680
  const isDialIn = selectAppIsDialIn(state);
2681
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
2678
2682
  const userAgent = selectAppUserAgent(state);
2679
2683
  const externalId = selectAppExternalId(state);
2680
2684
  const organizationId = selectOrganizationId(state);
@@ -2693,6 +2697,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
2693
2697
  displayName,
2694
2698
  isCoLocated: false,
2695
2699
  isDialIn,
2700
+ isAudioRecorder,
2696
2701
  isDevicePermissionDenied: false,
2697
2702
  kickFromOtherRooms: false,
2698
2703
  organizationId,
@@ -2724,6 +2729,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
2724
2729
  const userAgent = selectAppUserAgent(state);
2725
2730
  const externalId = selectAppExternalId(state);
2726
2731
  const isDialIn = selectAppIsDialIn(state);
2732
+ const isAudioRecorder = selectAppIsAudioRecorder(state);
2727
2733
  const organizationId = selectOrganizationId(state);
2728
2734
  const isCameraEnabled = selectIsCameraEnabled(getState());
2729
2735
  const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
@@ -2731,7 +2737,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
2731
2737
  socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
2732
2738
  isAudioEnabled: isMicrophoneEnabled,
2733
2739
  isVideoEnabled: isCameraEnabled,
2734
- }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
2740
+ }, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
2741
+ isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
2735
2742
  roomKey,
2736
2743
  assistantKey,
2737
2744
  roomName,
@@ -4065,6 +4072,7 @@ exports.selectAppIgnoreBreakoutGroups = selectAppIgnoreBreakoutGroups;
4065
4072
  exports.selectAppInitialConfig = selectAppInitialConfig;
4066
4073
  exports.selectAppIsActive = selectAppIsActive;
4067
4074
  exports.selectAppIsAssistant = selectAppIsAssistant;
4075
+ exports.selectAppIsAudioRecorder = selectAppIsAudioRecorder;
4068
4076
  exports.selectAppIsDialIn = selectAppIsDialIn;
4069
4077
  exports.selectAppIsNodeSdk = selectAppIsNodeSdk;
4070
4078
  exports.selectAppRaw = selectAppRaw;
@@ -311,14 +311,15 @@ interface StickyReaction {
311
311
  timestamp: string;
312
312
  }
313
313
  interface RoomParticipantData {
314
+ breakoutGroup: string | null;
314
315
  displayName: string;
315
316
  id: string;
316
- stream?: MediaStream;
317
317
  isAudioEnabled: boolean;
318
+ isAudioRecorder: boolean;
319
+ isDialIn: boolean;
318
320
  isVideoEnabled: boolean;
319
- breakoutGroup: string | null;
320
321
  stickyReaction?: StickyReaction | null;
321
- isDialIn: boolean;
322
+ stream?: MediaStream;
322
323
  }
323
324
  declare class RoomParticipant {
324
325
  readonly displayName: string;
@@ -330,7 +331,8 @@ declare class RoomParticipant {
330
331
  readonly breakoutGroup: string | null;
331
332
  readonly stickyReaction?: StickyReaction | null;
332
333
  readonly isDialIn: boolean;
333
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }: RoomParticipantData);
334
+ readonly isAudioRecorder: boolean;
335
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
334
336
  }
335
337
  type StreamState = "new_accept" | "to_accept" | "old_accept" | "done_accept" | "to_unaccept" | "done_unaccept" | "auto";
336
338
  interface Stream {
@@ -338,29 +340,30 @@ interface Stream {
338
340
  state: StreamState;
339
341
  }
340
342
  interface RemoteParticipant {
341
- id: string;
342
- displayName: string;
343
+ breakoutGroup: string | null;
343
344
  deviceId: string;
344
- roleName: RoleName;
345
+ displayName: string;
346
+ externalId: string | null;
347
+ id: string;
345
348
  isAudioEnabled: boolean;
346
- isVideoEnabled: boolean;
349
+ isAudioRecorder: boolean;
350
+ isDialIn: boolean;
347
351
  isLocalParticipant: boolean;
348
- breakoutGroup: string | null;
349
- stream: (MediaStream & {
350
- inboundId?: string;
351
- }) | null;
352
- streams: Stream[];
352
+ isVideoEnabled: boolean;
353
353
  newJoiner: boolean;
354
354
  presentationStream: (MediaStream & {
355
355
  inboundId?: string;
356
356
  }) | null;
357
- externalId: string | null;
357
+ roleName: RoleName;
358
358
  stickyReaction?: StickyReaction | null;
359
- isDialIn: boolean;
359
+ stream: (MediaStream & {
360
+ inboundId?: string;
361
+ }) | null;
362
+ streams: Stream[];
360
363
  }
361
364
  declare class LocalParticipant extends RoomParticipant {
362
365
  readonly isLocalParticipant = true;
363
- constructor({ displayName, id, stream, isAudioEnabled, isVideoEnabled, breakoutGroup, stickyReaction, isDialIn, }: RoomParticipantData);
366
+ constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
364
367
  }
365
368
  interface WaitingParticipant {
366
369
  id: string;
@@ -582,6 +585,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
582
585
  breakoutGroup: string | null;
583
586
  stickyReaction?: immer.WritableDraft<StickyReaction> | null | undefined;
584
587
  isDialIn: boolean;
588
+ isAudioRecorder: boolean;
585
589
  };
586
590
  setBreakoutGroupAssigned: (state: immer.WritableDraft<LocalParticipantState>, action: PayloadAction<{
587
591
  breakoutGroupAssigned: string;
@@ -599,6 +603,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
599
603
  breakoutGroup: string | null;
600
604
  stickyReaction?: immer.WritableDraft<StickyReaction> | null | undefined;
601
605
  isDialIn: boolean;
606
+ isAudioRecorder: boolean;
602
607
  };
603
608
  }, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
604
609
  declare const setDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
@@ -667,71 +672,76 @@ interface CameraEffectsState {
667
672
  }
668
673
 
669
674
  interface AppConfig {
670
- isNodeSdk?: boolean;
671
- isDialIn?: boolean;
672
- ignoreBreakoutGroups?: boolean;
675
+ assistantKey?: string | null;
673
676
  displayName: string;
677
+ externalId: string | null;
678
+ ignoreBreakoutGroups?: boolean;
679
+ isAudioRecorder?: boolean;
680
+ isDialIn?: boolean;
681
+ isNodeSdk?: boolean;
674
682
  localMediaOptions?: LocalMediaOptions;
675
683
  roomKey: string | null;
676
- assistantKey?: string | null;
677
684
  roomUrl: string;
678
685
  userAgent?: string;
679
- externalId: string | null;
680
686
  }
681
687
  interface AppState {
682
- isNodeSdk: boolean;
688
+ displayName: string | null;
689
+ externalId: string | null;
690
+ ignoreBreakoutGroups: boolean;
691
+ initialConfig?: AppConfig;
683
692
  isActive: boolean;
684
- isDialIn: boolean;
685
693
  isAssistant: boolean;
686
- ignoreBreakoutGroups: boolean;
687
- roomUrl: string | null;
694
+ isAudioRecorder: boolean;
695
+ isDialIn: boolean;
696
+ isNodeSdk: boolean;
688
697
  roomName: string | null;
689
- displayName: string | null;
698
+ roomUrl: string | null;
690
699
  userAgent: string | null;
691
- externalId: string | null;
692
- initialConfig?: AppConfig;
693
700
  }
694
701
  declare const initialState: AppState;
695
702
  declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
696
703
  doAppStart: (state: immer.WritableDraft<AppState>, action: PayloadAction<AppConfig>) => {
697
704
  roomName: string;
698
705
  initialConfig: {
699
- isNodeSdk?: boolean;
700
- isDialIn?: boolean;
701
- ignoreBreakoutGroups?: boolean;
706
+ assistantKey?: string | null;
702
707
  displayName: string;
708
+ externalId: string | null;
709
+ ignoreBreakoutGroups?: boolean;
710
+ isAudioRecorder?: boolean;
711
+ isDialIn?: boolean;
712
+ isNodeSdk?: boolean;
703
713
  localMediaOptions?: LocalMediaOptions;
704
714
  roomKey: string | null;
705
- assistantKey?: string | null;
706
715
  roomUrl: string;
707
716
  userAgent?: string;
708
- externalId: string | null;
709
717
  };
710
718
  isActive: true;
711
719
  isAssistant: boolean;
712
- isNodeSdk: boolean;
713
- isDialIn: boolean;
714
- ignoreBreakoutGroups: boolean;
720
+ assistantKey?: string | null;
715
721
  displayName: string;
722
+ externalId: string | null;
723
+ ignoreBreakoutGroups: boolean;
724
+ isAudioRecorder: boolean;
725
+ isDialIn: boolean;
726
+ isNodeSdk: boolean;
716
727
  localMediaOptions?: LocalMediaOptions;
717
728
  roomKey: string | null;
718
- assistantKey?: string | null;
719
729
  roomUrl: string;
720
730
  userAgent: string | null;
721
- externalId: string | null;
722
731
  };
723
732
  doAppStop: (state: immer.WritableDraft<AppState>) => {
724
733
  isActive: false;
725
- isNodeSdk: boolean;
726
- isDialIn: boolean;
727
- isAssistant: boolean;
728
- ignoreBreakoutGroups: boolean;
729
- roomUrl: string | null;
730
- roomName: string | null;
731
734
  displayName: string | null;
732
- userAgent: string | null;
733
735
  externalId: string | null;
736
+ ignoreBreakoutGroups: boolean;
734
737
  initialConfig?: immer.WritableDraft<AppConfig> | undefined;
738
+ isAssistant: boolean;
739
+ isAudioRecorder: boolean;
740
+ isDialIn: boolean;
741
+ isNodeSdk: boolean;
742
+ roomName: string | null;
743
+ roomUrl: string | null;
744
+ userAgent: string | null;
735
745
  };
736
746
  }, "app", "app", _reduxjs_toolkit.SliceSelectors<AppState>>;
737
747
  declare const doAppStop: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/doAppStop">;
@@ -739,6 +749,7 @@ declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "
739
749
  declare const selectAppRaw: (state: RootState) => AppState;
740
750
  declare const selectAppIsActive: (state: RootState) => boolean;
741
751
  declare const selectAppIsDialIn: (state: RootState) => boolean;
752
+ declare const selectAppIsAudioRecorder: (state: RootState) => boolean;
742
753
  declare const selectAppIsAssistant: (state: RootState) => boolean;
743
754
  declare const selectAppRoomName: (state: RootState) => string | null;
744
755
  declare const selectAppRoomUrl: (state: RootState) => string | null;
@@ -4859,5 +4870,5 @@ declare const selectRoomConnectionSessionId: (state: RootState) => string | unde
4859
4870
  declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus;
4860
4871
  declare const selectRoomConnectionError: (state: RootState) => string | null;
4861
4872
 
4862
- export { addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsAssistant, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, 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, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
4873
+ export { addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, 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, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
4863
4874
  export type { AppConfig, AppDispatch, AppReducer, AppStartListening, AppState, AppThunk, AuthorizationState, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageEventProps, ChatState, ClientView, CloudRecordingState, ConnectionMonitorStart, ConnectionMonitorState, ConnectionStatus, DeviceCredentialsState, LocalMediaOptions, LocalMediaState, LocalParticipantState, LocalScreenshareState, Notification, NotificationEvent, NotificationEventMap, NotificationEvents, NotificationsEventEmitter, NotificationsState, OrganizationState, RemoteParticipantSliceState, RequestAudioEvent, RequestAudioEventProps, RequestVideoEvent, RequestVideoEventProps, RoomConnectionState, RoomState, RootState, RtcConnectionState, SignalClientEvent, SignalClientEventProps, SignalConnectionState, SignalStatusEvent, SignalStatusEventProps, SpotlightsState, StickyReactionEvent, StickyReactionEventProps, Store, StreamingState, ThunkConfig, WaitingParticipantsState, rtcAnalyticsState };