@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.cjs +36 -16
- package/dist/index.d.cts +36 -31
- package/dist/index.d.mts +36 -31
- package/dist/index.d.ts +36 -31
- package/dist/index.mjs +36 -16
- package/dist/legacy-esm.js +36 -16
- package/dist/redux/index.cjs +21 -13
- package/dist/redux/index.d.cts +57 -46
- package/dist/redux/index.d.mts +57 -46
- package/dist/redux/index.d.ts +57 -46
- package/dist/redux/index.js +21 -14
- package/dist/redux/index.mjs +21 -14
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -972,7 +972,7 @@ class RoomService {
|
|
|
972
972
|
}
|
|
973
973
|
|
|
974
974
|
class RoomParticipant {
|
|
975
|
-
constructor({ displayName, id,
|
|
975
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
|
|
976
976
|
this.isLocalParticipant = false;
|
|
977
977
|
this.displayName = displayName;
|
|
978
978
|
this.id = id;
|
|
@@ -982,11 +982,22 @@ class RoomParticipant {
|
|
|
982
982
|
this.breakoutGroup = breakoutGroup;
|
|
983
983
|
this.stickyReaction = stickyReaction;
|
|
984
984
|
this.isDialIn = isDialIn;
|
|
985
|
+
this.isAudioRecorder = isAudioRecorder;
|
|
985
986
|
}
|
|
986
987
|
}
|
|
987
988
|
class LocalParticipant extends RoomParticipant {
|
|
988
|
-
constructor({ displayName, id,
|
|
989
|
-
super({
|
|
989
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }) {
|
|
990
|
+
super({
|
|
991
|
+
breakoutGroup,
|
|
992
|
+
displayName,
|
|
993
|
+
id,
|
|
994
|
+
isAudioEnabled,
|
|
995
|
+
isAudioRecorder,
|
|
996
|
+
isDialIn,
|
|
997
|
+
isVideoEnabled,
|
|
998
|
+
stickyReaction,
|
|
999
|
+
stream,
|
|
1000
|
+
});
|
|
990
1001
|
this.isLocalParticipant = true;
|
|
991
1002
|
}
|
|
992
1003
|
}
|
|
@@ -1147,19 +1158,20 @@ const createReactor = (selectors, callback) => {
|
|
|
1147
1158
|
});
|
|
1148
1159
|
};
|
|
1149
1160
|
|
|
1150
|
-
const coreVersion = "1.
|
|
1161
|
+
const coreVersion = "1.6.1";
|
|
1151
1162
|
|
|
1152
1163
|
const initialState$1 = {
|
|
1153
|
-
|
|
1164
|
+
displayName: null,
|
|
1165
|
+
externalId: null,
|
|
1166
|
+
ignoreBreakoutGroups: false,
|
|
1154
1167
|
isActive: false,
|
|
1155
|
-
isDialIn: false,
|
|
1156
1168
|
isAssistant: false,
|
|
1157
|
-
|
|
1169
|
+
isAudioRecorder: false,
|
|
1170
|
+
isDialIn: false,
|
|
1171
|
+
isNodeSdk: false,
|
|
1158
1172
|
roomName: null,
|
|
1159
1173
|
roomUrl: null,
|
|
1160
|
-
displayName: null,
|
|
1161
1174
|
userAgent: `core:${coreVersion}`,
|
|
1162
|
-
externalId: null,
|
|
1163
1175
|
};
|
|
1164
1176
|
const appSlice = toolkit.createSlice({
|
|
1165
1177
|
name: "app",
|
|
@@ -1177,6 +1189,7 @@ const appSlice = toolkit.createSlice({
|
|
|
1177
1189
|
const { doAppStop, doAppStart } = appSlice.actions;
|
|
1178
1190
|
const selectAppIsActive = (state) => state.app.isActive;
|
|
1179
1191
|
const selectAppIsDialIn = (state) => state.app.isDialIn;
|
|
1192
|
+
const selectAppIsAudioRecorder = (state) => state.app.isAudioRecorder;
|
|
1180
1193
|
const selectAppIsAssistant = (state) => state.app.isAssistant;
|
|
1181
1194
|
const selectAppRoomName = (state) => state.app.roomName;
|
|
1182
1195
|
const selectAppRoomUrl = (state) => state.app.roomUrl;
|
|
@@ -3325,19 +3338,20 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
|
|
|
3325
3338
|
});
|
|
3326
3339
|
|
|
3327
3340
|
const localParticipantSliceInitialState = {
|
|
3328
|
-
displayName: "",
|
|
3329
|
-
id: "",
|
|
3330
3341
|
breakoutGroup: null,
|
|
3331
3342
|
breakoutGroupAssigned: "",
|
|
3343
|
+
clientClaim: undefined,
|
|
3344
|
+
displayName: "",
|
|
3345
|
+
id: "",
|
|
3332
3346
|
isAudioEnabled: true,
|
|
3333
|
-
|
|
3347
|
+
isAudioRecorder: false,
|
|
3348
|
+
isDialIn: false,
|
|
3334
3349
|
isLocalParticipant: true,
|
|
3335
|
-
stream: undefined,
|
|
3336
3350
|
isScreenSharing: false,
|
|
3351
|
+
isVideoEnabled: true,
|
|
3337
3352
|
roleName: "none",
|
|
3338
|
-
clientClaim: undefined,
|
|
3339
3353
|
stickyReaction: undefined,
|
|
3340
|
-
|
|
3354
|
+
stream: undefined,
|
|
3341
3355
|
};
|
|
3342
3356
|
const localParticipantSlice = toolkit.createSlice({
|
|
3343
3357
|
name: "localParticipant",
|
|
@@ -3749,6 +3763,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3749
3763
|
const roomKey = selectRoomKey(state);
|
|
3750
3764
|
const displayName = selectAppDisplayName(state);
|
|
3751
3765
|
const isDialIn = selectAppIsDialIn(state);
|
|
3766
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3752
3767
|
const userAgent = selectAppUserAgent(state);
|
|
3753
3768
|
const externalId = selectAppExternalId(state);
|
|
3754
3769
|
const organizationId = selectOrganizationId(state);
|
|
@@ -3767,6 +3782,7 @@ const doKnockRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3767
3782
|
displayName,
|
|
3768
3783
|
isCoLocated: false,
|
|
3769
3784
|
isDialIn,
|
|
3785
|
+
isAudioRecorder,
|
|
3770
3786
|
isDevicePermissionDenied: false,
|
|
3771
3787
|
kickFromOtherRooms: false,
|
|
3772
3788
|
organizationId,
|
|
@@ -3798,6 +3814,7 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3798
3814
|
const userAgent = selectAppUserAgent(state);
|
|
3799
3815
|
const externalId = selectAppExternalId(state);
|
|
3800
3816
|
const isDialIn = selectAppIsDialIn(state);
|
|
3817
|
+
const isAudioRecorder = selectAppIsAudioRecorder(state);
|
|
3801
3818
|
const organizationId = selectOrganizationId(state);
|
|
3802
3819
|
const isCameraEnabled = selectIsCameraEnabled(getState());
|
|
3803
3820
|
const isMicrophoneEnabled = selectIsMicrophoneEnabled(getState());
|
|
@@ -3805,7 +3822,8 @@ const doConnectRoom = createAppThunk(() => (dispatch, getState) => {
|
|
|
3805
3822
|
socket === null || socket === void 0 ? void 0 : socket.emit("join_room", Object.assign({ avatarUrl: null, config: {
|
|
3806
3823
|
isAudioEnabled: isMicrophoneEnabled,
|
|
3807
3824
|
isVideoEnabled: isCameraEnabled,
|
|
3808
|
-
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3825
|
+
}, deviceCapabilities: { canScreenshare: true }, displayName, isCoLocated: false, isDialIn,
|
|
3826
|
+
isAudioRecorder, isDevicePermissionDenied: false, kickFromOtherRooms: false, organizationId,
|
|
3809
3827
|
roomKey,
|
|
3810
3828
|
assistantKey,
|
|
3811
3829
|
roomName,
|
|
@@ -4785,6 +4803,7 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4785
4803
|
}
|
|
4786
4804
|
joinRoom() {
|
|
4787
4805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4806
|
+
var _a;
|
|
4788
4807
|
const { roomUrl } = this.options;
|
|
4789
4808
|
if (!roomUrl) {
|
|
4790
4809
|
throw new Error("Room URL is required to join a room.");
|
|
@@ -4798,6 +4817,7 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4798
4817
|
roomUrl,
|
|
4799
4818
|
assistantKey: this.options.assistantKey || null,
|
|
4800
4819
|
isNodeSdk: this.options.isNodeSdk || false,
|
|
4820
|
+
isAudioRecorder: (_a = this.options.isAudioRecorder) !== null && _a !== void 0 ? _a : false,
|
|
4801
4821
|
};
|
|
4802
4822
|
this.store.dispatch(doAppStart(roomConfig));
|
|
4803
4823
|
let resolve;
|
package/dist/index.d.cts
CHANGED
|
@@ -390,14 +390,15 @@ interface StickyReaction {
|
|
|
390
390
|
timestamp: string;
|
|
391
391
|
}
|
|
392
392
|
interface RoomParticipantData {
|
|
393
|
+
breakoutGroup: string | null;
|
|
393
394
|
displayName: string;
|
|
394
395
|
id: string;
|
|
395
|
-
stream?: MediaStream;
|
|
396
396
|
isAudioEnabled: boolean;
|
|
397
|
+
isAudioRecorder: boolean;
|
|
398
|
+
isDialIn: boolean;
|
|
397
399
|
isVideoEnabled: boolean;
|
|
398
|
-
breakoutGroup: string | null;
|
|
399
400
|
stickyReaction?: StickyReaction | null;
|
|
400
|
-
|
|
401
|
+
stream?: MediaStream;
|
|
401
402
|
}
|
|
402
403
|
declare class RoomParticipant {
|
|
403
404
|
readonly displayName: string;
|
|
@@ -409,7 +410,8 @@ declare class RoomParticipant {
|
|
|
409
410
|
readonly breakoutGroup: string | null;
|
|
410
411
|
readonly stickyReaction?: StickyReaction | null;
|
|
411
412
|
readonly isDialIn: boolean;
|
|
412
|
-
|
|
413
|
+
readonly isAudioRecorder: boolean;
|
|
414
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
413
415
|
}
|
|
414
416
|
interface RemoteParticipantData {
|
|
415
417
|
newJoiner: boolean;
|
|
@@ -421,29 +423,30 @@ interface Stream {
|
|
|
421
423
|
state: StreamState;
|
|
422
424
|
}
|
|
423
425
|
interface RemoteParticipant {
|
|
424
|
-
|
|
425
|
-
displayName: string;
|
|
426
|
+
breakoutGroup: string | null;
|
|
426
427
|
deviceId: string;
|
|
427
|
-
|
|
428
|
+
displayName: string;
|
|
429
|
+
externalId: string | null;
|
|
430
|
+
id: string;
|
|
428
431
|
isAudioEnabled: boolean;
|
|
429
|
-
|
|
432
|
+
isAudioRecorder: boolean;
|
|
433
|
+
isDialIn: boolean;
|
|
430
434
|
isLocalParticipant: boolean;
|
|
431
|
-
|
|
432
|
-
stream: (MediaStream & {
|
|
433
|
-
inboundId?: string;
|
|
434
|
-
}) | null;
|
|
435
|
-
streams: Stream[];
|
|
435
|
+
isVideoEnabled: boolean;
|
|
436
436
|
newJoiner: boolean;
|
|
437
437
|
presentationStream: (MediaStream & {
|
|
438
438
|
inboundId?: string;
|
|
439
439
|
}) | null;
|
|
440
|
-
|
|
440
|
+
roleName: RoleName;
|
|
441
441
|
stickyReaction?: StickyReaction | null;
|
|
442
|
-
|
|
442
|
+
stream: (MediaStream & {
|
|
443
|
+
inboundId?: string;
|
|
444
|
+
}) | null;
|
|
445
|
+
streams: Stream[];
|
|
443
446
|
}
|
|
444
447
|
declare class LocalParticipant extends RoomParticipant {
|
|
445
448
|
readonly isLocalParticipant = true;
|
|
446
|
-
constructor({ displayName, id,
|
|
449
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
447
450
|
}
|
|
448
451
|
interface WaitingParticipant {
|
|
449
452
|
id: string;
|
|
@@ -686,29 +689,31 @@ interface LocalMediaState$1 {
|
|
|
686
689
|
}
|
|
687
690
|
|
|
688
691
|
interface AppConfig {
|
|
689
|
-
|
|
690
|
-
isDialIn?: boolean;
|
|
691
|
-
ignoreBreakoutGroups?: boolean;
|
|
692
|
+
assistantKey?: string | null;
|
|
692
693
|
displayName: string;
|
|
694
|
+
externalId: string | null;
|
|
695
|
+
ignoreBreakoutGroups?: boolean;
|
|
696
|
+
isAudioRecorder?: boolean;
|
|
697
|
+
isDialIn?: boolean;
|
|
698
|
+
isNodeSdk?: boolean;
|
|
693
699
|
localMediaOptions?: LocalMediaOptions$1;
|
|
694
700
|
roomKey: string | null;
|
|
695
|
-
assistantKey?: string | null;
|
|
696
701
|
roomUrl: string;
|
|
697
702
|
userAgent?: string;
|
|
698
|
-
externalId: string | null;
|
|
699
703
|
}
|
|
700
704
|
interface AppState {
|
|
701
|
-
|
|
705
|
+
displayName: string | null;
|
|
706
|
+
externalId: string | null;
|
|
707
|
+
ignoreBreakoutGroups: boolean;
|
|
708
|
+
initialConfig?: AppConfig;
|
|
702
709
|
isActive: boolean;
|
|
703
|
-
isDialIn: boolean;
|
|
704
710
|
isAssistant: boolean;
|
|
705
|
-
|
|
706
|
-
|
|
711
|
+
isAudioRecorder: boolean;
|
|
712
|
+
isDialIn: boolean;
|
|
713
|
+
isNodeSdk: boolean;
|
|
707
714
|
roomName: string | null;
|
|
708
|
-
|
|
715
|
+
roomUrl: string | null;
|
|
709
716
|
userAgent: string | null;
|
|
710
|
-
externalId: string | null;
|
|
711
|
-
initialConfig?: AppConfig;
|
|
712
717
|
}
|
|
713
718
|
|
|
714
719
|
type ConnectionStatus = "ready" | "connecting" | "connected" | "room_locked" | "knocking" | "knock_rejected" | "kicked" | "leaving" | "left" | "disconnected" | "reconnecting";
|
|
@@ -1123,7 +1128,7 @@ type RoomConnectionEvents = {
|
|
|
1123
1128
|
};
|
|
1124
1129
|
|
|
1125
1130
|
declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
|
|
1126
|
-
|
|
1131
|
+
protected options: Partial<AppConfig>;
|
|
1127
1132
|
private selfId;
|
|
1128
1133
|
private chatMessageSubscribers;
|
|
1129
1134
|
private cloudRecordingSubscribers;
|
|
@@ -1192,10 +1197,10 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1192
1197
|
}
|
|
1193
1198
|
|
|
1194
1199
|
declare class WherebyClient {
|
|
1195
|
-
|
|
1200
|
+
protected store: Store;
|
|
1196
1201
|
private services;
|
|
1197
1202
|
private localMediaClient;
|
|
1198
|
-
|
|
1203
|
+
protected roomConnectionClient: RoomConnectionClient;
|
|
1199
1204
|
private gridClient;
|
|
1200
1205
|
constructor();
|
|
1201
1206
|
getLocalMedia(): LocalMediaClient;
|
package/dist/index.d.mts
CHANGED
|
@@ -390,14 +390,15 @@ interface StickyReaction {
|
|
|
390
390
|
timestamp: string;
|
|
391
391
|
}
|
|
392
392
|
interface RoomParticipantData {
|
|
393
|
+
breakoutGroup: string | null;
|
|
393
394
|
displayName: string;
|
|
394
395
|
id: string;
|
|
395
|
-
stream?: MediaStream;
|
|
396
396
|
isAudioEnabled: boolean;
|
|
397
|
+
isAudioRecorder: boolean;
|
|
398
|
+
isDialIn: boolean;
|
|
397
399
|
isVideoEnabled: boolean;
|
|
398
|
-
breakoutGroup: string | null;
|
|
399
400
|
stickyReaction?: StickyReaction | null;
|
|
400
|
-
|
|
401
|
+
stream?: MediaStream;
|
|
401
402
|
}
|
|
402
403
|
declare class RoomParticipant {
|
|
403
404
|
readonly displayName: string;
|
|
@@ -409,7 +410,8 @@ declare class RoomParticipant {
|
|
|
409
410
|
readonly breakoutGroup: string | null;
|
|
410
411
|
readonly stickyReaction?: StickyReaction | null;
|
|
411
412
|
readonly isDialIn: boolean;
|
|
412
|
-
|
|
413
|
+
readonly isAudioRecorder: boolean;
|
|
414
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
413
415
|
}
|
|
414
416
|
interface RemoteParticipantData {
|
|
415
417
|
newJoiner: boolean;
|
|
@@ -421,29 +423,30 @@ interface Stream {
|
|
|
421
423
|
state: StreamState;
|
|
422
424
|
}
|
|
423
425
|
interface RemoteParticipant {
|
|
424
|
-
|
|
425
|
-
displayName: string;
|
|
426
|
+
breakoutGroup: string | null;
|
|
426
427
|
deviceId: string;
|
|
427
|
-
|
|
428
|
+
displayName: string;
|
|
429
|
+
externalId: string | null;
|
|
430
|
+
id: string;
|
|
428
431
|
isAudioEnabled: boolean;
|
|
429
|
-
|
|
432
|
+
isAudioRecorder: boolean;
|
|
433
|
+
isDialIn: boolean;
|
|
430
434
|
isLocalParticipant: boolean;
|
|
431
|
-
|
|
432
|
-
stream: (MediaStream & {
|
|
433
|
-
inboundId?: string;
|
|
434
|
-
}) | null;
|
|
435
|
-
streams: Stream[];
|
|
435
|
+
isVideoEnabled: boolean;
|
|
436
436
|
newJoiner: boolean;
|
|
437
437
|
presentationStream: (MediaStream & {
|
|
438
438
|
inboundId?: string;
|
|
439
439
|
}) | null;
|
|
440
|
-
|
|
440
|
+
roleName: RoleName;
|
|
441
441
|
stickyReaction?: StickyReaction | null;
|
|
442
|
-
|
|
442
|
+
stream: (MediaStream & {
|
|
443
|
+
inboundId?: string;
|
|
444
|
+
}) | null;
|
|
445
|
+
streams: Stream[];
|
|
443
446
|
}
|
|
444
447
|
declare class LocalParticipant extends RoomParticipant {
|
|
445
448
|
readonly isLocalParticipant = true;
|
|
446
|
-
constructor({ displayName, id,
|
|
449
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
447
450
|
}
|
|
448
451
|
interface WaitingParticipant {
|
|
449
452
|
id: string;
|
|
@@ -686,29 +689,31 @@ interface LocalMediaState$1 {
|
|
|
686
689
|
}
|
|
687
690
|
|
|
688
691
|
interface AppConfig {
|
|
689
|
-
|
|
690
|
-
isDialIn?: boolean;
|
|
691
|
-
ignoreBreakoutGroups?: boolean;
|
|
692
|
+
assistantKey?: string | null;
|
|
692
693
|
displayName: string;
|
|
694
|
+
externalId: string | null;
|
|
695
|
+
ignoreBreakoutGroups?: boolean;
|
|
696
|
+
isAudioRecorder?: boolean;
|
|
697
|
+
isDialIn?: boolean;
|
|
698
|
+
isNodeSdk?: boolean;
|
|
693
699
|
localMediaOptions?: LocalMediaOptions$1;
|
|
694
700
|
roomKey: string | null;
|
|
695
|
-
assistantKey?: string | null;
|
|
696
701
|
roomUrl: string;
|
|
697
702
|
userAgent?: string;
|
|
698
|
-
externalId: string | null;
|
|
699
703
|
}
|
|
700
704
|
interface AppState {
|
|
701
|
-
|
|
705
|
+
displayName: string | null;
|
|
706
|
+
externalId: string | null;
|
|
707
|
+
ignoreBreakoutGroups: boolean;
|
|
708
|
+
initialConfig?: AppConfig;
|
|
702
709
|
isActive: boolean;
|
|
703
|
-
isDialIn: boolean;
|
|
704
710
|
isAssistant: boolean;
|
|
705
|
-
|
|
706
|
-
|
|
711
|
+
isAudioRecorder: boolean;
|
|
712
|
+
isDialIn: boolean;
|
|
713
|
+
isNodeSdk: boolean;
|
|
707
714
|
roomName: string | null;
|
|
708
|
-
|
|
715
|
+
roomUrl: string | null;
|
|
709
716
|
userAgent: string | null;
|
|
710
|
-
externalId: string | null;
|
|
711
|
-
initialConfig?: AppConfig;
|
|
712
717
|
}
|
|
713
718
|
|
|
714
719
|
type ConnectionStatus = "ready" | "connecting" | "connected" | "room_locked" | "knocking" | "knock_rejected" | "kicked" | "leaving" | "left" | "disconnected" | "reconnecting";
|
|
@@ -1123,7 +1128,7 @@ type RoomConnectionEvents = {
|
|
|
1123
1128
|
};
|
|
1124
1129
|
|
|
1125
1130
|
declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
|
|
1126
|
-
|
|
1131
|
+
protected options: Partial<AppConfig>;
|
|
1127
1132
|
private selfId;
|
|
1128
1133
|
private chatMessageSubscribers;
|
|
1129
1134
|
private cloudRecordingSubscribers;
|
|
@@ -1192,10 +1197,10 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1192
1197
|
}
|
|
1193
1198
|
|
|
1194
1199
|
declare class WherebyClient {
|
|
1195
|
-
|
|
1200
|
+
protected store: Store;
|
|
1196
1201
|
private services;
|
|
1197
1202
|
private localMediaClient;
|
|
1198
|
-
|
|
1203
|
+
protected roomConnectionClient: RoomConnectionClient;
|
|
1199
1204
|
private gridClient;
|
|
1200
1205
|
constructor();
|
|
1201
1206
|
getLocalMedia(): LocalMediaClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -390,14 +390,15 @@ interface StickyReaction {
|
|
|
390
390
|
timestamp: string;
|
|
391
391
|
}
|
|
392
392
|
interface RoomParticipantData {
|
|
393
|
+
breakoutGroup: string | null;
|
|
393
394
|
displayName: string;
|
|
394
395
|
id: string;
|
|
395
|
-
stream?: MediaStream;
|
|
396
396
|
isAudioEnabled: boolean;
|
|
397
|
+
isAudioRecorder: boolean;
|
|
398
|
+
isDialIn: boolean;
|
|
397
399
|
isVideoEnabled: boolean;
|
|
398
|
-
breakoutGroup: string | null;
|
|
399
400
|
stickyReaction?: StickyReaction | null;
|
|
400
|
-
|
|
401
|
+
stream?: MediaStream;
|
|
401
402
|
}
|
|
402
403
|
declare class RoomParticipant {
|
|
403
404
|
readonly displayName: string;
|
|
@@ -409,7 +410,8 @@ declare class RoomParticipant {
|
|
|
409
410
|
readonly breakoutGroup: string | null;
|
|
410
411
|
readonly stickyReaction?: StickyReaction | null;
|
|
411
412
|
readonly isDialIn: boolean;
|
|
412
|
-
|
|
413
|
+
readonly isAudioRecorder: boolean;
|
|
414
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
413
415
|
}
|
|
414
416
|
interface RemoteParticipantData {
|
|
415
417
|
newJoiner: boolean;
|
|
@@ -421,29 +423,30 @@ interface Stream {
|
|
|
421
423
|
state: StreamState;
|
|
422
424
|
}
|
|
423
425
|
interface RemoteParticipant {
|
|
424
|
-
|
|
425
|
-
displayName: string;
|
|
426
|
+
breakoutGroup: string | null;
|
|
426
427
|
deviceId: string;
|
|
427
|
-
|
|
428
|
+
displayName: string;
|
|
429
|
+
externalId: string | null;
|
|
430
|
+
id: string;
|
|
428
431
|
isAudioEnabled: boolean;
|
|
429
|
-
|
|
432
|
+
isAudioRecorder: boolean;
|
|
433
|
+
isDialIn: boolean;
|
|
430
434
|
isLocalParticipant: boolean;
|
|
431
|
-
|
|
432
|
-
stream: (MediaStream & {
|
|
433
|
-
inboundId?: string;
|
|
434
|
-
}) | null;
|
|
435
|
-
streams: Stream[];
|
|
435
|
+
isVideoEnabled: boolean;
|
|
436
436
|
newJoiner: boolean;
|
|
437
437
|
presentationStream: (MediaStream & {
|
|
438
438
|
inboundId?: string;
|
|
439
439
|
}) | null;
|
|
440
|
-
|
|
440
|
+
roleName: RoleName;
|
|
441
441
|
stickyReaction?: StickyReaction | null;
|
|
442
|
-
|
|
442
|
+
stream: (MediaStream & {
|
|
443
|
+
inboundId?: string;
|
|
444
|
+
}) | null;
|
|
445
|
+
streams: Stream[];
|
|
443
446
|
}
|
|
444
447
|
declare class LocalParticipant extends RoomParticipant {
|
|
445
448
|
readonly isLocalParticipant = true;
|
|
446
|
-
constructor({ displayName, id,
|
|
449
|
+
constructor({ breakoutGroup, displayName, id, isAudioEnabled, isAudioRecorder, isDialIn, isVideoEnabled, stickyReaction, stream, }: RoomParticipantData);
|
|
447
450
|
}
|
|
448
451
|
interface WaitingParticipant {
|
|
449
452
|
id: string;
|
|
@@ -686,29 +689,31 @@ interface LocalMediaState$1 {
|
|
|
686
689
|
}
|
|
687
690
|
|
|
688
691
|
interface AppConfig {
|
|
689
|
-
|
|
690
|
-
isDialIn?: boolean;
|
|
691
|
-
ignoreBreakoutGroups?: boolean;
|
|
692
|
+
assistantKey?: string | null;
|
|
692
693
|
displayName: string;
|
|
694
|
+
externalId: string | null;
|
|
695
|
+
ignoreBreakoutGroups?: boolean;
|
|
696
|
+
isAudioRecorder?: boolean;
|
|
697
|
+
isDialIn?: boolean;
|
|
698
|
+
isNodeSdk?: boolean;
|
|
693
699
|
localMediaOptions?: LocalMediaOptions$1;
|
|
694
700
|
roomKey: string | null;
|
|
695
|
-
assistantKey?: string | null;
|
|
696
701
|
roomUrl: string;
|
|
697
702
|
userAgent?: string;
|
|
698
|
-
externalId: string | null;
|
|
699
703
|
}
|
|
700
704
|
interface AppState {
|
|
701
|
-
|
|
705
|
+
displayName: string | null;
|
|
706
|
+
externalId: string | null;
|
|
707
|
+
ignoreBreakoutGroups: boolean;
|
|
708
|
+
initialConfig?: AppConfig;
|
|
702
709
|
isActive: boolean;
|
|
703
|
-
isDialIn: boolean;
|
|
704
710
|
isAssistant: boolean;
|
|
705
|
-
|
|
706
|
-
|
|
711
|
+
isAudioRecorder: boolean;
|
|
712
|
+
isDialIn: boolean;
|
|
713
|
+
isNodeSdk: boolean;
|
|
707
714
|
roomName: string | null;
|
|
708
|
-
|
|
715
|
+
roomUrl: string | null;
|
|
709
716
|
userAgent: string | null;
|
|
710
|
-
externalId: string | null;
|
|
711
|
-
initialConfig?: AppConfig;
|
|
712
717
|
}
|
|
713
718
|
|
|
714
719
|
type ConnectionStatus = "ready" | "connecting" | "connected" | "room_locked" | "knocking" | "knock_rejected" | "kicked" | "leaving" | "left" | "disconnected" | "reconnecting";
|
|
@@ -1123,7 +1128,7 @@ type RoomConnectionEvents = {
|
|
|
1123
1128
|
};
|
|
1124
1129
|
|
|
1125
1130
|
declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomConnectionEvents> {
|
|
1126
|
-
|
|
1131
|
+
protected options: Partial<AppConfig>;
|
|
1127
1132
|
private selfId;
|
|
1128
1133
|
private chatMessageSubscribers;
|
|
1129
1134
|
private cloudRecordingSubscribers;
|
|
@@ -1192,10 +1197,10 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1192
1197
|
}
|
|
1193
1198
|
|
|
1194
1199
|
declare class WherebyClient {
|
|
1195
|
-
|
|
1200
|
+
protected store: Store;
|
|
1196
1201
|
private services;
|
|
1197
1202
|
private localMediaClient;
|
|
1198
|
-
|
|
1203
|
+
protected roomConnectionClient: RoomConnectionClient;
|
|
1199
1204
|
private gridClient;
|
|
1200
1205
|
constructor();
|
|
1201
1206
|
getLocalMedia(): LocalMediaClient;
|