@whereby.com/core 1.8.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +103 -7
- package/dist/index.d.cts +28 -6
- package/dist/index.d.mts +28 -6
- package/dist/index.d.ts +28 -6
- package/dist/index.mjs +103 -8
- package/dist/legacy-esm.js +103 -8
- package/dist/redux/index.cjs +82 -3
- package/dist/redux/index.d.cts +101 -5
- package/dist/redux/index.d.mts +101 -5
- package/dist/redux/index.d.ts +101 -5
- package/dist/redux/index.js +72 -4
- package/dist/redux/index.mjs +72 -4
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1158,7 +1158,7 @@ const createReactor = (selectors, callback) => {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
};
|
|
1160
1160
|
|
|
1161
|
-
const coreVersion = "1.
|
|
1161
|
+
const coreVersion = "1.9.0";
|
|
1162
1162
|
|
|
1163
1163
|
const initialState$1 = {
|
|
1164
1164
|
displayName: null,
|
|
@@ -2111,7 +2111,7 @@ startAppListening({
|
|
|
2111
2111
|
},
|
|
2112
2112
|
});
|
|
2113
2113
|
|
|
2114
|
-
const NON_PERSON_ROLES = ["recorder", "streamer"];
|
|
2114
|
+
const NON_PERSON_ROLES = ["recorder", "streamer", "captioner", "assistant"];
|
|
2115
2115
|
|
|
2116
2116
|
const selectLocalParticipantRaw = (state) => state.localParticipant;
|
|
2117
2117
|
const selectSelfId = (state) => state.localParticipant.id;
|
|
@@ -2261,7 +2261,6 @@ const selectChatMessages = (state) => state.chat.chatMessages;
|
|
|
2261
2261
|
const initialCloudRecordingState = {
|
|
2262
2262
|
isInitiator: false,
|
|
2263
2263
|
isRecording: false,
|
|
2264
|
-
error: null,
|
|
2265
2264
|
startedAt: undefined,
|
|
2266
2265
|
};
|
|
2267
2266
|
const cloudRecordingSlice = toolkit.createSlice({
|
|
@@ -3348,6 +3347,63 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
|
|
|
3348
3347
|
}
|
|
3349
3348
|
});
|
|
3350
3349
|
|
|
3350
|
+
const initialLiveTranscriptionState = {
|
|
3351
|
+
isInitiator: false,
|
|
3352
|
+
isTranscribing: false,
|
|
3353
|
+
startedAt: undefined,
|
|
3354
|
+
};
|
|
3355
|
+
const liveTranscriptionSlice = toolkit.createSlice({
|
|
3356
|
+
name: "liveTranscription",
|
|
3357
|
+
initialState: initialLiveTranscriptionState,
|
|
3358
|
+
reducers: {
|
|
3359
|
+
transcribingRequestStarted: (state) => {
|
|
3360
|
+
return Object.assign(Object.assign({}, state), { isInitiator: true, status: "requested" });
|
|
3361
|
+
},
|
|
3362
|
+
},
|
|
3363
|
+
extraReducers: (builder) => {
|
|
3364
|
+
builder.addCase(signalEvents.liveTranscriptionStopped, (state) => {
|
|
3365
|
+
return Object.assign(Object.assign({}, state), { isInitiator: false, isTranscribing: false, status: undefined });
|
|
3366
|
+
});
|
|
3367
|
+
builder.addCase(signalEvents.liveTranscriptionStarted, (state, action) => {
|
|
3368
|
+
const { payload } = action;
|
|
3369
|
+
if (!payload.error) {
|
|
3370
|
+
return state;
|
|
3371
|
+
}
|
|
3372
|
+
return Object.assign(Object.assign({}, state), { isInitiator: false, isTranscribing: false, status: "error", error: payload.error });
|
|
3373
|
+
});
|
|
3374
|
+
builder.addCase(signalEvents.newClient, (state, { payload }) => {
|
|
3375
|
+
var _a;
|
|
3376
|
+
const { client } = payload;
|
|
3377
|
+
if (((_a = client.role) === null || _a === void 0 ? void 0 : _a.roleName) === "captioner") {
|
|
3378
|
+
return Object.assign(Object.assign({}, state), { isTranscribing: true, status: "transcribing", startedAt: client.startedLiveTranscriptionAt
|
|
3379
|
+
? new Date(client.startedLiveTranscriptionAt).getTime()
|
|
3380
|
+
: new Date().getTime() });
|
|
3381
|
+
}
|
|
3382
|
+
return state;
|
|
3383
|
+
});
|
|
3384
|
+
},
|
|
3385
|
+
});
|
|
3386
|
+
const { transcribingRequestStarted } = liveTranscriptionSlice.actions;
|
|
3387
|
+
const doStartLiveTranscription = createRoomConnectedThunk(() => (dispatch, getState) => {
|
|
3388
|
+
const state = getState();
|
|
3389
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
3390
|
+
const status = selectLiveTranscriptionStatus(state);
|
|
3391
|
+
if (status && ["transcribing", "requested"].includes(status)) {
|
|
3392
|
+
return;
|
|
3393
|
+
}
|
|
3394
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("start_live_transcription");
|
|
3395
|
+
dispatch(transcribingRequestStarted());
|
|
3396
|
+
});
|
|
3397
|
+
const doStopLiveTranscription = createRoomConnectedThunk(() => (dispatch, getState) => {
|
|
3398
|
+
const state = getState();
|
|
3399
|
+
const socket = selectSignalConnectionRaw(state).socket;
|
|
3400
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("stop_live_transcription");
|
|
3401
|
+
});
|
|
3402
|
+
const selectLiveTranscriptionRaw = (state) => state.liveTranscription;
|
|
3403
|
+
const selectLiveTranscriptionStatus = (state) => state.liveTranscription.status;
|
|
3404
|
+
const selectIsLiveTranscription = (state) => state.liveTranscription.isTranscribing;
|
|
3405
|
+
const selectLiveTranscriptionIsInitiator = (state) => state.liveTranscription.isInitiator;
|
|
3406
|
+
|
|
3351
3407
|
const localParticipantSliceInitialState = {
|
|
3352
3408
|
breakoutGroup: null,
|
|
3353
3409
|
breakoutGroupAssigned: "",
|
|
@@ -3979,6 +4035,15 @@ const rtcAnalyticsCustomEvents = {
|
|
|
3979
4035
|
}),
|
|
3980
4036
|
getOutput: (value) => value,
|
|
3981
4037
|
}),
|
|
4038
|
+
transcribing: createRtcAnalyticsCustomEvent({
|
|
4039
|
+
actions: [signalEvents.newClient],
|
|
4040
|
+
rtcEventName: "transcribing",
|
|
4041
|
+
getValue: (state) => ({
|
|
4042
|
+
local: false,
|
|
4043
|
+
cloud: !!(selectIsLiveTranscription(state) && selectLiveTranscriptionIsInitiator(state)),
|
|
4044
|
+
}),
|
|
4045
|
+
getOutput: (value) => value,
|
|
4046
|
+
}),
|
|
3982
4047
|
roomSessionId: createRtcAnalyticsCustomEvent({
|
|
3983
4048
|
actions: [
|
|
3984
4049
|
signalEvents.newClient,
|
|
@@ -4262,6 +4327,7 @@ const appReducer = toolkit.combineReducers({
|
|
|
4262
4327
|
cloudRecording: cloudRecordingSlice.reducer,
|
|
4263
4328
|
connectionMonitor: connectionMonitorSlice.reducer,
|
|
4264
4329
|
deviceCredentials: deviceCredentialsSlice.reducer,
|
|
4330
|
+
liveTranscription: liveTranscriptionSlice.reducer,
|
|
4265
4331
|
localMedia: localMediaSlice.reducer,
|
|
4266
4332
|
localParticipant: localParticipantSlice.reducer,
|
|
4267
4333
|
localScreenshare: localScreenshareSlice.reducer,
|
|
@@ -4603,6 +4669,7 @@ const BREAKOUT_CONFIG_CHANGED = "breakout:config-changed";
|
|
|
4603
4669
|
const CHAT_NEW_MESSAGE = "chat:new-message";
|
|
4604
4670
|
const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
|
|
4605
4671
|
const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
4672
|
+
const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
4606
4673
|
const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
4607
4674
|
const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
4608
4675
|
const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
|
|
@@ -4617,10 +4684,16 @@ const SPOTLIGHT_PARTICIPANT_REMOVED = "spotlight:participant-removed";
|
|
|
4617
4684
|
const ROOM_JOINED = "room:joined";
|
|
4618
4685
|
const ROOM_JOINED_ERROR = "room:joined:error";
|
|
4619
4686
|
|
|
4620
|
-
const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, selectCloudRecordingRaw, selectBreakoutCurrentGroup, selectBreakoutActive, selectBreakoutGroupedParticipants, selectAllClientViewsInCurrentGroup, selectLocalParticipantRaw, selectLocalMediaStream, selectRemoteParticipants, selectScreenshares, selectRoomConnectionStatus, selectStreamingRaw, selectWaitingParticipants, selectNotificationsEmitter, selectSpotlightedClientViews, (chatMessages, cloudRecording, breakoutCurrentGroup, breakoutActive, breakoutGroupedParticipants, clientViewsInCurrentGroup, localParticipant, localMediaStream, remoteParticipants, screenshares, connectionStatus, streaming, waitingParticipants, notificationsEmitter, spotlightedClientViews) => {
|
|
4687
|
+
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) => {
|
|
4621
4688
|
const state = {
|
|
4622
4689
|
chatMessages,
|
|
4623
|
-
cloudRecording: cloudRecording.
|
|
4690
|
+
cloudRecording: cloudRecording.status
|
|
4691
|
+
? {
|
|
4692
|
+
error: cloudRecording.error,
|
|
4693
|
+
startedAt: cloudRecording.startedAt,
|
|
4694
|
+
status: cloudRecording.status,
|
|
4695
|
+
}
|
|
4696
|
+
: undefined,
|
|
4624
4697
|
breakout: {
|
|
4625
4698
|
isActive: breakoutActive,
|
|
4626
4699
|
currentGroup: breakoutCurrentGroup,
|
|
@@ -4635,6 +4708,13 @@ const selectRoomConnectionState = toolkit.createSelector(selectChatMessages, sel
|
|
|
4635
4708
|
startedAt: streaming.startedAt,
|
|
4636
4709
|
}
|
|
4637
4710
|
: undefined,
|
|
4711
|
+
liveTranscription: liveTranscription.status
|
|
4712
|
+
? {
|
|
4713
|
+
error: liveTranscription.error,
|
|
4714
|
+
startedAt: liveTranscription.startedAt,
|
|
4715
|
+
status: liveTranscription.status,
|
|
4716
|
+
}
|
|
4717
|
+
: undefined,
|
|
4638
4718
|
localScreenshareStatus: localParticipant.isScreenSharing ? "active" : undefined,
|
|
4639
4719
|
localParticipant: Object.assign(Object.assign({}, localParticipant), { stream: localMediaStream }),
|
|
4640
4720
|
remoteParticipants,
|
|
@@ -4651,6 +4731,7 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4651
4731
|
this.selfId = null;
|
|
4652
4732
|
this.chatMessageSubscribers = new Set();
|
|
4653
4733
|
this.cloudRecordingSubscribers = new Set();
|
|
4734
|
+
this.liveTranscriptionSubscribers = new Set();
|
|
4654
4735
|
this.breakoutSubscribers = new Set();
|
|
4655
4736
|
this.connectionStatusSubscribers = new Set();
|
|
4656
4737
|
this.liveStreamSubscribers = new Set();
|
|
@@ -4669,8 +4750,12 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4669
4750
|
this.chatMessageSubscribers.forEach((cb) => cb(state.chatMessages));
|
|
4670
4751
|
}
|
|
4671
4752
|
if (state.cloudRecording !== previousState.cloudRecording) {
|
|
4672
|
-
this.cloudRecordingSubscribers.forEach((cb) => cb(state.cloudRecording
|
|
4673
|
-
this.emit(CLOUD_RECORDING_STATUS_CHANGED, state.cloudRecording
|
|
4753
|
+
this.cloudRecordingSubscribers.forEach((cb) => cb(state.cloudRecording));
|
|
4754
|
+
this.emit(CLOUD_RECORDING_STATUS_CHANGED, state.cloudRecording);
|
|
4755
|
+
}
|
|
4756
|
+
if (state.liveTranscription !== previousState.liveTranscription) {
|
|
4757
|
+
this.liveTranscriptionSubscribers.forEach((cb) => cb(state.liveTranscription));
|
|
4758
|
+
this.emit(LIVE_TRANSCRIPTION_STATUS_CHANGED, state.liveTranscription);
|
|
4674
4759
|
}
|
|
4675
4760
|
if (state.breakout !== previousState.breakout) {
|
|
4676
4761
|
this.breakoutSubscribers.forEach((cb) => cb(state.breakout));
|
|
@@ -4766,6 +4851,10 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4766
4851
|
this.cloudRecordingSubscribers.add(callback);
|
|
4767
4852
|
return () => this.cloudRecordingSubscribers.delete(callback);
|
|
4768
4853
|
}
|
|
4854
|
+
subscribeToLiveTranscription(callback) {
|
|
4855
|
+
this.liveTranscriptionSubscribers.add(callback);
|
|
4856
|
+
return () => this.liveTranscriptionSubscribers.delete(callback);
|
|
4857
|
+
}
|
|
4769
4858
|
subscribeToBreakoutConfig(callback) {
|
|
4770
4859
|
this.breakoutSubscribers.add(callback);
|
|
4771
4860
|
return () => this.breakoutSubscribers.delete(callback);
|
|
@@ -4896,6 +4985,12 @@ class RoomConnectionClient extends BaseClient {
|
|
|
4896
4985
|
stopCloudRecording() {
|
|
4897
4986
|
this.store.dispatch(doStopCloudRecording());
|
|
4898
4987
|
}
|
|
4988
|
+
startLiveTranscription() {
|
|
4989
|
+
this.store.dispatch(doStartLiveTranscription());
|
|
4990
|
+
}
|
|
4991
|
+
stopLiveTranscription() {
|
|
4992
|
+
this.store.dispatch(doStopLiveTranscription());
|
|
4993
|
+
}
|
|
4899
4994
|
startScreenshare() {
|
|
4900
4995
|
this.store.dispatch(doStartScreenshare());
|
|
4901
4996
|
}
|
|
@@ -5031,6 +5126,7 @@ exports.CredentialsService = CredentialsService;
|
|
|
5031
5126
|
exports.GridClient = GridClient;
|
|
5032
5127
|
exports.IS_SETTING_CAMERA_DEVICE = IS_SETTING_CAMERA_DEVICE;
|
|
5033
5128
|
exports.IS_SETTING_MICROPHONE_DEVICE = IS_SETTING_MICROPHONE_DEVICE;
|
|
5129
|
+
exports.LIVE_TRANSCRIPTION_STATUS_CHANGED = LIVE_TRANSCRIPTION_STATUS_CHANGED;
|
|
5034
5130
|
exports.LOCAL_MEDIA_STARTING = LOCAL_MEDIA_STARTING;
|
|
5035
5131
|
exports.LOCAL_MEDIA_START_ERROR_CHANGED = LOCAL_MEDIA_START_ERROR_CHANGED;
|
|
5036
5132
|
exports.LOCAL_PARTICIPANT_CHANGED = LOCAL_PARTICIPANT_CHANGED;
|
package/dist/index.d.cts
CHANGED
|
@@ -582,10 +582,18 @@ interface LocalParticipantState$1 extends LocalParticipant {
|
|
|
582
582
|
breakoutGroupAssigned: string;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
+
interface LiveTranscriptionState$1 {
|
|
586
|
+
isInitiator: boolean;
|
|
587
|
+
isTranscribing: boolean;
|
|
588
|
+
error?: string;
|
|
589
|
+
status?: "transcribing" | "requested" | "error";
|
|
590
|
+
startedAt?: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
585
593
|
interface CloudRecordingState$1 {
|
|
586
594
|
isInitiator: boolean;
|
|
587
595
|
isRecording: boolean;
|
|
588
|
-
error
|
|
596
|
+
error?: string;
|
|
589
597
|
status?: "recording" | "requested" | "error";
|
|
590
598
|
startedAt?: number;
|
|
591
599
|
}
|
|
@@ -768,6 +776,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
768
776
|
cloudRecording: CloudRecordingState$1;
|
|
769
777
|
connectionMonitor: ConnectionMonitorState;
|
|
770
778
|
deviceCredentials: DeviceCredentialsState;
|
|
779
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
771
780
|
localMedia: LocalMediaState$1;
|
|
772
781
|
localParticipant: LocalParticipantState$1;
|
|
773
782
|
localScreenshare: LocalScreenshareState;
|
|
@@ -791,6 +800,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
791
800
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
792
801
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
793
802
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
803
|
+
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
794
804
|
localMedia: LocalMediaState$1 | undefined;
|
|
795
805
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
796
806
|
localScreenshare: LocalScreenshareState | undefined;
|
|
@@ -818,6 +828,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
818
828
|
cloudRecording: CloudRecordingState$1;
|
|
819
829
|
connectionMonitor: ConnectionMonitorState;
|
|
820
830
|
deviceCredentials: DeviceCredentialsState;
|
|
831
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
821
832
|
localMedia: LocalMediaState$1;
|
|
822
833
|
localParticipant: LocalParticipantState$1;
|
|
823
834
|
localScreenshare: LocalScreenshareState;
|
|
@@ -842,6 +853,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
842
853
|
cloudRecording: CloudRecordingState$1;
|
|
843
854
|
connectionMonitor: ConnectionMonitorState;
|
|
844
855
|
deviceCredentials: DeviceCredentialsState;
|
|
856
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
845
857
|
localMedia: LocalMediaState$1;
|
|
846
858
|
localParticipant: LocalParticipantState$1;
|
|
847
859
|
localScreenshare: LocalScreenshareState;
|
|
@@ -1052,6 +1064,11 @@ type CloudRecordingState = {
|
|
|
1052
1064
|
status: "recording" | "requested" | "error";
|
|
1053
1065
|
startedAt?: number;
|
|
1054
1066
|
};
|
|
1067
|
+
type LiveTranscriptionState = {
|
|
1068
|
+
error?: string;
|
|
1069
|
+
status: "transcribing" | "requested" | "error";
|
|
1070
|
+
startedAt?: number;
|
|
1071
|
+
};
|
|
1055
1072
|
type LiveStreamState = {
|
|
1056
1073
|
status: "streaming";
|
|
1057
1074
|
startedAt?: number;
|
|
@@ -1078,6 +1095,7 @@ interface RoomConnectionState {
|
|
|
1078
1095
|
breakout: BreakoutState;
|
|
1079
1096
|
events?: NotificationsEventEmitter;
|
|
1080
1097
|
liveStream?: LiveStreamState;
|
|
1098
|
+
liveTranscription?: LiveTranscriptionState;
|
|
1081
1099
|
localScreenshareStatus?: LocalScreenshareStatus;
|
|
1082
1100
|
localParticipant?: LocalParticipantState;
|
|
1083
1101
|
remoteParticipants: RemoteParticipantState[];
|
|
@@ -1090,6 +1108,7 @@ declare const BREAKOUT_CONFIG_CHANGED = "breakout:config-changed";
|
|
|
1090
1108
|
declare const CHAT_NEW_MESSAGE = "chat:new-message";
|
|
1091
1109
|
declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
|
|
1092
1110
|
declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
1111
|
+
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1093
1112
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1094
1113
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1095
1114
|
declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
|
|
@@ -1112,6 +1131,7 @@ type RoomConnectionEvents = {
|
|
|
1112
1131
|
[CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
|
|
1113
1132
|
[CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
|
|
1114
1133
|
[CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
|
|
1134
|
+
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1115
1135
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1116
1136
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1117
1137
|
[REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
|
|
@@ -1132,6 +1152,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1132
1152
|
private selfId;
|
|
1133
1153
|
private chatMessageSubscribers;
|
|
1134
1154
|
private cloudRecordingSubscribers;
|
|
1155
|
+
private liveTranscriptionSubscribers;
|
|
1135
1156
|
private breakoutSubscribers;
|
|
1136
1157
|
private connectionStatusSubscribers;
|
|
1137
1158
|
private liveStreamSubscribers;
|
|
@@ -1145,9 +1166,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1145
1166
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1146
1167
|
private registerAppListeners;
|
|
1147
1168
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1148
|
-
subscribeToCloudRecording(callback: (status:
|
|
1149
|
-
|
|
1150
|
-
} | undefined) => void): () => void;
|
|
1169
|
+
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1170
|
+
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1151
1171
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1152
1172
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1153
1173
|
subscribeToLiveStream(callback: (status: {
|
|
@@ -1178,6 +1198,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1178
1198
|
rejectWaitingParticipant(participantId: string): void;
|
|
1179
1199
|
startCloudRecording(): void;
|
|
1180
1200
|
stopCloudRecording(): void;
|
|
1201
|
+
startLiveTranscription(): void;
|
|
1202
|
+
stopLiveTranscription(): void;
|
|
1181
1203
|
startScreenshare(): void;
|
|
1182
1204
|
stopScreenshare(): void;
|
|
1183
1205
|
lockRoom(locked: boolean): void;
|
|
@@ -1210,5 +1232,5 @@ declare class WherebyClient {
|
|
|
1210
1232
|
destroy(): void;
|
|
1211
1233
|
}
|
|
1212
1234
|
|
|
1213
|
-
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, 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 };
|
|
1214
|
-
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, 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 };
|
|
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 };
|
|
1236
|
+
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
|
@@ -582,10 +582,18 @@ interface LocalParticipantState$1 extends LocalParticipant {
|
|
|
582
582
|
breakoutGroupAssigned: string;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
+
interface LiveTranscriptionState$1 {
|
|
586
|
+
isInitiator: boolean;
|
|
587
|
+
isTranscribing: boolean;
|
|
588
|
+
error?: string;
|
|
589
|
+
status?: "transcribing" | "requested" | "error";
|
|
590
|
+
startedAt?: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
585
593
|
interface CloudRecordingState$1 {
|
|
586
594
|
isInitiator: boolean;
|
|
587
595
|
isRecording: boolean;
|
|
588
|
-
error
|
|
596
|
+
error?: string;
|
|
589
597
|
status?: "recording" | "requested" | "error";
|
|
590
598
|
startedAt?: number;
|
|
591
599
|
}
|
|
@@ -768,6 +776,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
768
776
|
cloudRecording: CloudRecordingState$1;
|
|
769
777
|
connectionMonitor: ConnectionMonitorState;
|
|
770
778
|
deviceCredentials: DeviceCredentialsState;
|
|
779
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
771
780
|
localMedia: LocalMediaState$1;
|
|
772
781
|
localParticipant: LocalParticipantState$1;
|
|
773
782
|
localScreenshare: LocalScreenshareState;
|
|
@@ -791,6 +800,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
791
800
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
792
801
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
793
802
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
803
|
+
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
794
804
|
localMedia: LocalMediaState$1 | undefined;
|
|
795
805
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
796
806
|
localScreenshare: LocalScreenshareState | undefined;
|
|
@@ -818,6 +828,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
818
828
|
cloudRecording: CloudRecordingState$1;
|
|
819
829
|
connectionMonitor: ConnectionMonitorState;
|
|
820
830
|
deviceCredentials: DeviceCredentialsState;
|
|
831
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
821
832
|
localMedia: LocalMediaState$1;
|
|
822
833
|
localParticipant: LocalParticipantState$1;
|
|
823
834
|
localScreenshare: LocalScreenshareState;
|
|
@@ -842,6 +853,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
842
853
|
cloudRecording: CloudRecordingState$1;
|
|
843
854
|
connectionMonitor: ConnectionMonitorState;
|
|
844
855
|
deviceCredentials: DeviceCredentialsState;
|
|
856
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
845
857
|
localMedia: LocalMediaState$1;
|
|
846
858
|
localParticipant: LocalParticipantState$1;
|
|
847
859
|
localScreenshare: LocalScreenshareState;
|
|
@@ -1052,6 +1064,11 @@ type CloudRecordingState = {
|
|
|
1052
1064
|
status: "recording" | "requested" | "error";
|
|
1053
1065
|
startedAt?: number;
|
|
1054
1066
|
};
|
|
1067
|
+
type LiveTranscriptionState = {
|
|
1068
|
+
error?: string;
|
|
1069
|
+
status: "transcribing" | "requested" | "error";
|
|
1070
|
+
startedAt?: number;
|
|
1071
|
+
};
|
|
1055
1072
|
type LiveStreamState = {
|
|
1056
1073
|
status: "streaming";
|
|
1057
1074
|
startedAt?: number;
|
|
@@ -1078,6 +1095,7 @@ interface RoomConnectionState {
|
|
|
1078
1095
|
breakout: BreakoutState;
|
|
1079
1096
|
events?: NotificationsEventEmitter;
|
|
1080
1097
|
liveStream?: LiveStreamState;
|
|
1098
|
+
liveTranscription?: LiveTranscriptionState;
|
|
1081
1099
|
localScreenshareStatus?: LocalScreenshareStatus;
|
|
1082
1100
|
localParticipant?: LocalParticipantState;
|
|
1083
1101
|
remoteParticipants: RemoteParticipantState[];
|
|
@@ -1090,6 +1108,7 @@ declare const BREAKOUT_CONFIG_CHANGED = "breakout:config-changed";
|
|
|
1090
1108
|
declare const CHAT_NEW_MESSAGE = "chat:new-message";
|
|
1091
1109
|
declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
|
|
1092
1110
|
declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
1111
|
+
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1093
1112
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1094
1113
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1095
1114
|
declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
|
|
@@ -1112,6 +1131,7 @@ type RoomConnectionEvents = {
|
|
|
1112
1131
|
[CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
|
|
1113
1132
|
[CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
|
|
1114
1133
|
[CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
|
|
1134
|
+
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1115
1135
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1116
1136
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1117
1137
|
[REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
|
|
@@ -1132,6 +1152,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1132
1152
|
private selfId;
|
|
1133
1153
|
private chatMessageSubscribers;
|
|
1134
1154
|
private cloudRecordingSubscribers;
|
|
1155
|
+
private liveTranscriptionSubscribers;
|
|
1135
1156
|
private breakoutSubscribers;
|
|
1136
1157
|
private connectionStatusSubscribers;
|
|
1137
1158
|
private liveStreamSubscribers;
|
|
@@ -1145,9 +1166,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1145
1166
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1146
1167
|
private registerAppListeners;
|
|
1147
1168
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1148
|
-
subscribeToCloudRecording(callback: (status:
|
|
1149
|
-
|
|
1150
|
-
} | undefined) => void): () => void;
|
|
1169
|
+
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1170
|
+
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1151
1171
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1152
1172
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1153
1173
|
subscribeToLiveStream(callback: (status: {
|
|
@@ -1178,6 +1198,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1178
1198
|
rejectWaitingParticipant(participantId: string): void;
|
|
1179
1199
|
startCloudRecording(): void;
|
|
1180
1200
|
stopCloudRecording(): void;
|
|
1201
|
+
startLiveTranscription(): void;
|
|
1202
|
+
stopLiveTranscription(): void;
|
|
1181
1203
|
startScreenshare(): void;
|
|
1182
1204
|
stopScreenshare(): void;
|
|
1183
1205
|
lockRoom(locked: boolean): void;
|
|
@@ -1210,5 +1232,5 @@ declare class WherebyClient {
|
|
|
1210
1232
|
destroy(): void;
|
|
1211
1233
|
}
|
|
1212
1234
|
|
|
1213
|
-
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, 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 };
|
|
1214
|
-
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, 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 };
|
|
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 };
|
|
1236
|
+
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
|
@@ -582,10 +582,18 @@ interface LocalParticipantState$1 extends LocalParticipant {
|
|
|
582
582
|
breakoutGroupAssigned: string;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
+
interface LiveTranscriptionState$1 {
|
|
586
|
+
isInitiator: boolean;
|
|
587
|
+
isTranscribing: boolean;
|
|
588
|
+
error?: string;
|
|
589
|
+
status?: "transcribing" | "requested" | "error";
|
|
590
|
+
startedAt?: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
585
593
|
interface CloudRecordingState$1 {
|
|
586
594
|
isInitiator: boolean;
|
|
587
595
|
isRecording: boolean;
|
|
588
|
-
error
|
|
596
|
+
error?: string;
|
|
589
597
|
status?: "recording" | "requested" | "error";
|
|
590
598
|
startedAt?: number;
|
|
591
599
|
}
|
|
@@ -768,6 +776,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
768
776
|
cloudRecording: CloudRecordingState$1;
|
|
769
777
|
connectionMonitor: ConnectionMonitorState;
|
|
770
778
|
deviceCredentials: DeviceCredentialsState;
|
|
779
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
771
780
|
localMedia: LocalMediaState$1;
|
|
772
781
|
localParticipant: LocalParticipantState$1;
|
|
773
782
|
localScreenshare: LocalScreenshareState;
|
|
@@ -791,6 +800,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
791
800
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
792
801
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
793
802
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
803
|
+
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
794
804
|
localMedia: LocalMediaState$1 | undefined;
|
|
795
805
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
796
806
|
localScreenshare: LocalScreenshareState | undefined;
|
|
@@ -818,6 +828,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
818
828
|
cloudRecording: CloudRecordingState$1;
|
|
819
829
|
connectionMonitor: ConnectionMonitorState;
|
|
820
830
|
deviceCredentials: DeviceCredentialsState;
|
|
831
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
821
832
|
localMedia: LocalMediaState$1;
|
|
822
833
|
localParticipant: LocalParticipantState$1;
|
|
823
834
|
localScreenshare: LocalScreenshareState;
|
|
@@ -842,6 +853,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
842
853
|
cloudRecording: CloudRecordingState$1;
|
|
843
854
|
connectionMonitor: ConnectionMonitorState;
|
|
844
855
|
deviceCredentials: DeviceCredentialsState;
|
|
856
|
+
liveTranscription: LiveTranscriptionState$1;
|
|
845
857
|
localMedia: LocalMediaState$1;
|
|
846
858
|
localParticipant: LocalParticipantState$1;
|
|
847
859
|
localScreenshare: LocalScreenshareState;
|
|
@@ -1052,6 +1064,11 @@ type CloudRecordingState = {
|
|
|
1052
1064
|
status: "recording" | "requested" | "error";
|
|
1053
1065
|
startedAt?: number;
|
|
1054
1066
|
};
|
|
1067
|
+
type LiveTranscriptionState = {
|
|
1068
|
+
error?: string;
|
|
1069
|
+
status: "transcribing" | "requested" | "error";
|
|
1070
|
+
startedAt?: number;
|
|
1071
|
+
};
|
|
1055
1072
|
type LiveStreamState = {
|
|
1056
1073
|
status: "streaming";
|
|
1057
1074
|
startedAt?: number;
|
|
@@ -1078,6 +1095,7 @@ interface RoomConnectionState {
|
|
|
1078
1095
|
breakout: BreakoutState;
|
|
1079
1096
|
events?: NotificationsEventEmitter;
|
|
1080
1097
|
liveStream?: LiveStreamState;
|
|
1098
|
+
liveTranscription?: LiveTranscriptionState;
|
|
1081
1099
|
localScreenshareStatus?: LocalScreenshareStatus;
|
|
1082
1100
|
localParticipant?: LocalParticipantState;
|
|
1083
1101
|
remoteParticipants: RemoteParticipantState[];
|
|
@@ -1090,6 +1108,7 @@ declare const BREAKOUT_CONFIG_CHANGED = "breakout:config-changed";
|
|
|
1090
1108
|
declare const CHAT_NEW_MESSAGE = "chat:new-message";
|
|
1091
1109
|
declare const CLOUD_RECORDING_STATUS_CHANGED = "cloud-recording:status-changed";
|
|
1092
1110
|
declare const CONNECTION_STATUS_CHANGED = "connection:status-changed";
|
|
1111
|
+
declare const LIVE_TRANSCRIPTION_STATUS_CHANGED = "live-transcription:status-changed";
|
|
1093
1112
|
declare const LOCAL_PARTICIPANT_CHANGED = "local-participant:changed";
|
|
1094
1113
|
declare const LOCAL_SCREENSHARE_STATUS_CHANGED = "local-screenshare:status-changed";
|
|
1095
1114
|
declare const REMOTE_PARTICIPANTS_CHANGED = "remote-participants:changed";
|
|
@@ -1112,6 +1131,7 @@ type RoomConnectionEvents = {
|
|
|
1112
1131
|
[CHAT_NEW_MESSAGE]: [message: ChatMessage$1];
|
|
1113
1132
|
[CLOUD_RECORDING_STATUS_CHANGED]: [status: CloudRecordingState | undefined];
|
|
1114
1133
|
[CONNECTION_STATUS_CHANGED]: [status: ConnectionStatus];
|
|
1134
|
+
[LIVE_TRANSCRIPTION_STATUS_CHANGED]: [status: LiveTranscriptionState | undefined];
|
|
1115
1135
|
[LOCAL_PARTICIPANT_CHANGED]: [participant?: LocalParticipantState];
|
|
1116
1136
|
[LOCAL_SCREENSHARE_STATUS_CHANGED]: [status?: LocalScreenshareStatus];
|
|
1117
1137
|
[REMOTE_PARTICIPANTS_CHANGED]: [participants: RemoteParticipantState[]];
|
|
@@ -1132,6 +1152,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1132
1152
|
private selfId;
|
|
1133
1153
|
private chatMessageSubscribers;
|
|
1134
1154
|
private cloudRecordingSubscribers;
|
|
1155
|
+
private liveTranscriptionSubscribers;
|
|
1135
1156
|
private breakoutSubscribers;
|
|
1136
1157
|
private connectionStatusSubscribers;
|
|
1137
1158
|
private liveStreamSubscribers;
|
|
@@ -1145,9 +1166,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1145
1166
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1146
1167
|
private registerAppListeners;
|
|
1147
1168
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1148
|
-
subscribeToCloudRecording(callback: (status:
|
|
1149
|
-
|
|
1150
|
-
} | undefined) => void): () => void;
|
|
1169
|
+
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1170
|
+
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1151
1171
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
1152
1172
|
subscribeToConnectionStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
1153
1173
|
subscribeToLiveStream(callback: (status: {
|
|
@@ -1178,6 +1198,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1178
1198
|
rejectWaitingParticipant(participantId: string): void;
|
|
1179
1199
|
startCloudRecording(): void;
|
|
1180
1200
|
stopCloudRecording(): void;
|
|
1201
|
+
startLiveTranscription(): void;
|
|
1202
|
+
stopLiveTranscription(): void;
|
|
1181
1203
|
startScreenshare(): void;
|
|
1182
1204
|
stopScreenshare(): void;
|
|
1183
1205
|
lockRoom(locked: boolean): void;
|
|
@@ -1210,5 +1232,5 @@ declare class WherebyClient {
|
|
|
1210
1232
|
destroy(): void;
|
|
1211
1233
|
}
|
|
1212
1234
|
|
|
1213
|
-
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, 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 };
|
|
1214
|
-
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FullOrganizationPermissions, GridEvents, GridState, LiveStreamState, 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 };
|
|
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 };
|
|
1236
|
+
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 };
|