@whereby.com/core 1.12.1 → 1.14.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 +422 -63
- package/dist/index.d.cts +57 -6
- package/dist/index.d.mts +57 -6
- package/dist/index.d.ts +57 -6
- package/dist/index.mjs +420 -66
- package/dist/legacy-esm.js +420 -66
- package/dist/redux/index.cjs +338 -19
- package/dist/redux/index.d.cts +207 -5
- package/dist/redux/index.d.mts +207 -5
- package/dist/redux/index.d.ts +207 -5
- package/dist/redux/index.js +324 -20
- package/dist/redux/index.mjs +324 -20
- package/package.json +6 -12
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { RoleName, ChatMessage as ChatMessage$2, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
-
export { RoomJoinedSuccess } from '@whereby.com/media';
|
|
3
|
+
import { RoleName, ChatMessage as ChatMessage$2, ChatFileShare, FileShareErrorCode, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
+
export { ChatFileShare, RoomJoinedSuccess } from '@whereby.com/media';
|
|
5
5
|
import * as redux_thunk from 'redux-thunk';
|
|
6
6
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
7
7
|
import * as redux from 'redux';
|
|
@@ -385,6 +385,9 @@ declare class RoomService {
|
|
|
385
385
|
}): any;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
declare function getUsableCameraEffectPresets(): Promise<string[]>;
|
|
389
|
+
declare function isAudioDenoiserSupported(): Promise<boolean>;
|
|
390
|
+
|
|
388
391
|
interface StickyReaction {
|
|
389
392
|
reaction: string;
|
|
390
393
|
timestamp: string;
|
|
@@ -506,6 +509,7 @@ interface rtcAnalyticsState {
|
|
|
506
509
|
|
|
507
510
|
type ChatMessage$1 = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
508
511
|
removed: boolean;
|
|
512
|
+
file?: ChatFileShare;
|
|
509
513
|
};
|
|
510
514
|
interface ChatState {
|
|
511
515
|
chatMessages: ChatMessage$1[];
|
|
@@ -592,6 +596,23 @@ interface LiveTranscriptionState$1 {
|
|
|
592
596
|
startedAt?: number;
|
|
593
597
|
}
|
|
594
598
|
|
|
599
|
+
type FileShareError = FileShareErrorCode | "upload_failed" | "too_many_files" | "unsupported_file_type" | "file_too_large";
|
|
600
|
+
declare const MAX_FILES_PER_UPLOAD = 10;
|
|
601
|
+
declare const MAX_FILE_SIZE: number;
|
|
602
|
+
declare const ACCEPTED_FILE_TYPES: Record<string, string[]>;
|
|
603
|
+
interface FileUpload {
|
|
604
|
+
id: string;
|
|
605
|
+
name: string;
|
|
606
|
+
size: number;
|
|
607
|
+
type: string;
|
|
608
|
+
status: "uploading" | "sent" | "error";
|
|
609
|
+
error?: FileShareError;
|
|
610
|
+
}
|
|
611
|
+
interface FileShareState {
|
|
612
|
+
uploads: FileUpload[];
|
|
613
|
+
requestInFlight: boolean;
|
|
614
|
+
}
|
|
615
|
+
|
|
595
616
|
interface CloudRecordingState$1 {
|
|
596
617
|
isInitiator: boolean;
|
|
597
618
|
isRecording: boolean;
|
|
@@ -601,7 +622,7 @@ interface CloudRecordingState$1 {
|
|
|
601
622
|
}
|
|
602
623
|
|
|
603
624
|
type TryUpdateFn = (presetId: string, setup: Setup, params: Params) => Promise<boolean>;
|
|
604
|
-
type StopFn = () => void;
|
|
625
|
+
type StopFn$1 = () => void;
|
|
605
626
|
interface CameraEffectsState {
|
|
606
627
|
currentEffectId?: string | null;
|
|
607
628
|
setup?: Setup;
|
|
@@ -609,12 +630,25 @@ interface CameraEffectsState {
|
|
|
609
630
|
isSwitching: boolean;
|
|
610
631
|
error?: unknown;
|
|
611
632
|
raw: {
|
|
612
|
-
stop?: StopFn;
|
|
633
|
+
stop?: StopFn$1;
|
|
613
634
|
tryUpdate?: TryUpdateFn;
|
|
614
635
|
effectStream?: MediaStream;
|
|
615
636
|
};
|
|
616
637
|
}
|
|
617
638
|
|
|
639
|
+
type StopFn = () => void;
|
|
640
|
+
interface AudioDenoiserState {
|
|
641
|
+
wanted: boolean;
|
|
642
|
+
isSwitching: boolean;
|
|
643
|
+
error?: unknown;
|
|
644
|
+
raw: {
|
|
645
|
+
stop?: StopFn;
|
|
646
|
+
outputStream?: MediaStream;
|
|
647
|
+
audioContext?: AudioContext;
|
|
648
|
+
denoiserNode?: AudioWorkletNode;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
618
652
|
interface AuthorizationState {
|
|
619
653
|
roomKey: string | null;
|
|
620
654
|
assistantKey?: string | null;
|
|
@@ -773,6 +807,7 @@ interface SpotlightsState {
|
|
|
773
807
|
|
|
774
808
|
declare const appReducer: redux.Reducer<{
|
|
775
809
|
app: AppState;
|
|
810
|
+
audioDenoiser: AudioDenoiserState;
|
|
776
811
|
authorization: AuthorizationState;
|
|
777
812
|
breakout: BreakoutState$1;
|
|
778
813
|
cameraEffects: CameraEffectsState;
|
|
@@ -780,6 +815,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
780
815
|
cloudRecording: CloudRecordingState$1;
|
|
781
816
|
connectionMonitor: ConnectionMonitorState;
|
|
782
817
|
deviceCredentials: DeviceCredentialsState;
|
|
818
|
+
fileShare: FileShareState;
|
|
783
819
|
liveTranscription: LiveTranscriptionState$1;
|
|
784
820
|
localMedia: LocalMediaState$1;
|
|
785
821
|
localParticipant: LocalParticipantState$1;
|
|
@@ -797,6 +833,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
797
833
|
waitingParticipants: WaitingParticipantsState;
|
|
798
834
|
}, redux.UnknownAction, Partial<{
|
|
799
835
|
app: AppState | undefined;
|
|
836
|
+
audioDenoiser: AudioDenoiserState | undefined;
|
|
800
837
|
authorization: AuthorizationState | undefined;
|
|
801
838
|
breakout: BreakoutState$1 | undefined;
|
|
802
839
|
cameraEffects: CameraEffectsState | undefined;
|
|
@@ -804,6 +841,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
804
841
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
805
842
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
806
843
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
844
|
+
fileShare: FileShareState | undefined;
|
|
807
845
|
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
808
846
|
localMedia: LocalMediaState$1 | undefined;
|
|
809
847
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
@@ -825,6 +863,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
825
863
|
injectServices: ReturnType<typeof createServices>;
|
|
826
864
|
}) => _reduxjs_toolkit.EnhancedStore<{
|
|
827
865
|
app: AppState;
|
|
866
|
+
audioDenoiser: AudioDenoiserState;
|
|
828
867
|
authorization: AuthorizationState;
|
|
829
868
|
breakout: BreakoutState$1;
|
|
830
869
|
cameraEffects: CameraEffectsState;
|
|
@@ -832,6 +871,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
832
871
|
cloudRecording: CloudRecordingState$1;
|
|
833
872
|
connectionMonitor: ConnectionMonitorState;
|
|
834
873
|
deviceCredentials: DeviceCredentialsState;
|
|
874
|
+
fileShare: FileShareState;
|
|
835
875
|
liveTranscription: LiveTranscriptionState$1;
|
|
836
876
|
localMedia: LocalMediaState$1;
|
|
837
877
|
localParticipant: LocalParticipantState$1;
|
|
@@ -850,6 +890,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
850
890
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
851
891
|
dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
|
|
852
892
|
app: AppState;
|
|
893
|
+
audioDenoiser: AudioDenoiserState;
|
|
853
894
|
authorization: AuthorizationState;
|
|
854
895
|
breakout: BreakoutState$1;
|
|
855
896
|
cameraEffects: CameraEffectsState;
|
|
@@ -857,6 +898,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
857
898
|
cloudRecording: CloudRecordingState$1;
|
|
858
899
|
connectionMonitor: ConnectionMonitorState;
|
|
859
900
|
deviceCredentials: DeviceCredentialsState;
|
|
901
|
+
fileShare: FileShareState;
|
|
860
902
|
liveTranscription: LiveTranscriptionState$1;
|
|
861
903
|
localMedia: LocalMediaState$1;
|
|
862
904
|
localParticipant: LocalParticipantState$1;
|
|
@@ -1061,11 +1103,13 @@ interface ChatMessageState {
|
|
|
1061
1103
|
senderId: string;
|
|
1062
1104
|
timestamp: string;
|
|
1063
1105
|
text: string;
|
|
1106
|
+
file?: ChatFileShare;
|
|
1064
1107
|
}
|
|
1065
1108
|
type ScreenshareState = Screenshare;
|
|
1066
1109
|
type LocalScreenshareStatus = "starting" | "active";
|
|
1067
1110
|
type ChatMessage = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
1068
1111
|
removed: boolean;
|
|
1112
|
+
file?: ChatFileShare;
|
|
1069
1113
|
};
|
|
1070
1114
|
type CloudRecordingState = {
|
|
1071
1115
|
error?: string;
|
|
@@ -1100,6 +1144,7 @@ interface RoomConnectionState {
|
|
|
1100
1144
|
connectionStatus: ConnectionStatus;
|
|
1101
1145
|
connectionError: string | null;
|
|
1102
1146
|
chatMessages: ChatMessage[];
|
|
1147
|
+
fileUploads: FileUpload[];
|
|
1103
1148
|
cloudRecording?: CloudRecordingState;
|
|
1104
1149
|
breakout: BreakoutState;
|
|
1105
1150
|
events?: NotificationsEventEmitter;
|
|
@@ -1170,6 +1215,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1170
1215
|
private breakoutSubscribers;
|
|
1171
1216
|
private cameraStateSubscribers;
|
|
1172
1217
|
private chatMessageSubscribers;
|
|
1218
|
+
private fileUploadsSubscribers;
|
|
1173
1219
|
private cloudRecordingSubscribers;
|
|
1174
1220
|
private connectionErrorSubscribers;
|
|
1175
1221
|
private connectionStatusSubscribers;
|
|
@@ -1186,6 +1232,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1186
1232
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1187
1233
|
private registerAppListeners;
|
|
1188
1234
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1235
|
+
subscribeToFileUploads(callback: (uploads: FileUpload[]) => void): () => void;
|
|
1189
1236
|
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1190
1237
|
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1191
1238
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
@@ -1208,6 +1255,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1208
1255
|
joinRoom(): Promise<RoomJoinedSuccess>;
|
|
1209
1256
|
sendChatMessage(text: string, parentId?: string): void;
|
|
1210
1257
|
removeChatMessage(id: string, sig?: string | null): void;
|
|
1258
|
+
sendFiles(files: File[]): void;
|
|
1259
|
+
downloadFile(file: ChatFileShare): Promise<Blob>;
|
|
1211
1260
|
knock(): void;
|
|
1212
1261
|
cancelKnock(): void;
|
|
1213
1262
|
leaveRoom(): void;
|
|
@@ -1241,6 +1290,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1241
1290
|
switchCameraEffect(effectId: string): Promise<void>;
|
|
1242
1291
|
switchCameraEffectCustom(imageUrl: string): Promise<void>;
|
|
1243
1292
|
clearCameraEffect(): Promise<void>;
|
|
1293
|
+
enableAudioDenoiser(): Promise<void>;
|
|
1294
|
+
disableAudioDenoiser(): Promise<void>;
|
|
1244
1295
|
destroy(): void;
|
|
1245
1296
|
}
|
|
1246
1297
|
|
|
@@ -1258,5 +1309,5 @@ declare class WherebyClient {
|
|
|
1258
1309
|
destroy(): void;
|
|
1259
1310
|
}
|
|
1260
1311
|
|
|
1261
|
-
export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
|
|
1262
|
-
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 };
|
|
1312
|
+
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, parseUnverifiedRoomKeyData };
|
|
1313
|
+
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { RoleName, ChatMessage as ChatMessage$2, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
-
export { RoomJoinedSuccess } from '@whereby.com/media';
|
|
3
|
+
import { RoleName, ChatMessage as ChatMessage$2, ChatFileShare, FileShareErrorCode, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
+
export { ChatFileShare, RoomJoinedSuccess } from '@whereby.com/media';
|
|
5
5
|
import * as redux_thunk from 'redux-thunk';
|
|
6
6
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
7
7
|
import * as redux from 'redux';
|
|
@@ -385,6 +385,9 @@ declare class RoomService {
|
|
|
385
385
|
}): any;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
declare function getUsableCameraEffectPresets(): Promise<string[]>;
|
|
389
|
+
declare function isAudioDenoiserSupported(): Promise<boolean>;
|
|
390
|
+
|
|
388
391
|
interface StickyReaction {
|
|
389
392
|
reaction: string;
|
|
390
393
|
timestamp: string;
|
|
@@ -506,6 +509,7 @@ interface rtcAnalyticsState {
|
|
|
506
509
|
|
|
507
510
|
type ChatMessage$1 = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
508
511
|
removed: boolean;
|
|
512
|
+
file?: ChatFileShare;
|
|
509
513
|
};
|
|
510
514
|
interface ChatState {
|
|
511
515
|
chatMessages: ChatMessage$1[];
|
|
@@ -592,6 +596,23 @@ interface LiveTranscriptionState$1 {
|
|
|
592
596
|
startedAt?: number;
|
|
593
597
|
}
|
|
594
598
|
|
|
599
|
+
type FileShareError = FileShareErrorCode | "upload_failed" | "too_many_files" | "unsupported_file_type" | "file_too_large";
|
|
600
|
+
declare const MAX_FILES_PER_UPLOAD = 10;
|
|
601
|
+
declare const MAX_FILE_SIZE: number;
|
|
602
|
+
declare const ACCEPTED_FILE_TYPES: Record<string, string[]>;
|
|
603
|
+
interface FileUpload {
|
|
604
|
+
id: string;
|
|
605
|
+
name: string;
|
|
606
|
+
size: number;
|
|
607
|
+
type: string;
|
|
608
|
+
status: "uploading" | "sent" | "error";
|
|
609
|
+
error?: FileShareError;
|
|
610
|
+
}
|
|
611
|
+
interface FileShareState {
|
|
612
|
+
uploads: FileUpload[];
|
|
613
|
+
requestInFlight: boolean;
|
|
614
|
+
}
|
|
615
|
+
|
|
595
616
|
interface CloudRecordingState$1 {
|
|
596
617
|
isInitiator: boolean;
|
|
597
618
|
isRecording: boolean;
|
|
@@ -601,7 +622,7 @@ interface CloudRecordingState$1 {
|
|
|
601
622
|
}
|
|
602
623
|
|
|
603
624
|
type TryUpdateFn = (presetId: string, setup: Setup, params: Params) => Promise<boolean>;
|
|
604
|
-
type StopFn = () => void;
|
|
625
|
+
type StopFn$1 = () => void;
|
|
605
626
|
interface CameraEffectsState {
|
|
606
627
|
currentEffectId?: string | null;
|
|
607
628
|
setup?: Setup;
|
|
@@ -609,12 +630,25 @@ interface CameraEffectsState {
|
|
|
609
630
|
isSwitching: boolean;
|
|
610
631
|
error?: unknown;
|
|
611
632
|
raw: {
|
|
612
|
-
stop?: StopFn;
|
|
633
|
+
stop?: StopFn$1;
|
|
613
634
|
tryUpdate?: TryUpdateFn;
|
|
614
635
|
effectStream?: MediaStream;
|
|
615
636
|
};
|
|
616
637
|
}
|
|
617
638
|
|
|
639
|
+
type StopFn = () => void;
|
|
640
|
+
interface AudioDenoiserState {
|
|
641
|
+
wanted: boolean;
|
|
642
|
+
isSwitching: boolean;
|
|
643
|
+
error?: unknown;
|
|
644
|
+
raw: {
|
|
645
|
+
stop?: StopFn;
|
|
646
|
+
outputStream?: MediaStream;
|
|
647
|
+
audioContext?: AudioContext;
|
|
648
|
+
denoiserNode?: AudioWorkletNode;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
618
652
|
interface AuthorizationState {
|
|
619
653
|
roomKey: string | null;
|
|
620
654
|
assistantKey?: string | null;
|
|
@@ -773,6 +807,7 @@ interface SpotlightsState {
|
|
|
773
807
|
|
|
774
808
|
declare const appReducer: redux.Reducer<{
|
|
775
809
|
app: AppState;
|
|
810
|
+
audioDenoiser: AudioDenoiserState;
|
|
776
811
|
authorization: AuthorizationState;
|
|
777
812
|
breakout: BreakoutState$1;
|
|
778
813
|
cameraEffects: CameraEffectsState;
|
|
@@ -780,6 +815,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
780
815
|
cloudRecording: CloudRecordingState$1;
|
|
781
816
|
connectionMonitor: ConnectionMonitorState;
|
|
782
817
|
deviceCredentials: DeviceCredentialsState;
|
|
818
|
+
fileShare: FileShareState;
|
|
783
819
|
liveTranscription: LiveTranscriptionState$1;
|
|
784
820
|
localMedia: LocalMediaState$1;
|
|
785
821
|
localParticipant: LocalParticipantState$1;
|
|
@@ -797,6 +833,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
797
833
|
waitingParticipants: WaitingParticipantsState;
|
|
798
834
|
}, redux.UnknownAction, Partial<{
|
|
799
835
|
app: AppState | undefined;
|
|
836
|
+
audioDenoiser: AudioDenoiserState | undefined;
|
|
800
837
|
authorization: AuthorizationState | undefined;
|
|
801
838
|
breakout: BreakoutState$1 | undefined;
|
|
802
839
|
cameraEffects: CameraEffectsState | undefined;
|
|
@@ -804,6 +841,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
804
841
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
805
842
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
806
843
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
844
|
+
fileShare: FileShareState | undefined;
|
|
807
845
|
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
808
846
|
localMedia: LocalMediaState$1 | undefined;
|
|
809
847
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
@@ -825,6 +863,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
825
863
|
injectServices: ReturnType<typeof createServices>;
|
|
826
864
|
}) => _reduxjs_toolkit.EnhancedStore<{
|
|
827
865
|
app: AppState;
|
|
866
|
+
audioDenoiser: AudioDenoiserState;
|
|
828
867
|
authorization: AuthorizationState;
|
|
829
868
|
breakout: BreakoutState$1;
|
|
830
869
|
cameraEffects: CameraEffectsState;
|
|
@@ -832,6 +871,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
832
871
|
cloudRecording: CloudRecordingState$1;
|
|
833
872
|
connectionMonitor: ConnectionMonitorState;
|
|
834
873
|
deviceCredentials: DeviceCredentialsState;
|
|
874
|
+
fileShare: FileShareState;
|
|
835
875
|
liveTranscription: LiveTranscriptionState$1;
|
|
836
876
|
localMedia: LocalMediaState$1;
|
|
837
877
|
localParticipant: LocalParticipantState$1;
|
|
@@ -850,6 +890,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
850
890
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
851
891
|
dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
|
|
852
892
|
app: AppState;
|
|
893
|
+
audioDenoiser: AudioDenoiserState;
|
|
853
894
|
authorization: AuthorizationState;
|
|
854
895
|
breakout: BreakoutState$1;
|
|
855
896
|
cameraEffects: CameraEffectsState;
|
|
@@ -857,6 +898,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
857
898
|
cloudRecording: CloudRecordingState$1;
|
|
858
899
|
connectionMonitor: ConnectionMonitorState;
|
|
859
900
|
deviceCredentials: DeviceCredentialsState;
|
|
901
|
+
fileShare: FileShareState;
|
|
860
902
|
liveTranscription: LiveTranscriptionState$1;
|
|
861
903
|
localMedia: LocalMediaState$1;
|
|
862
904
|
localParticipant: LocalParticipantState$1;
|
|
@@ -1061,11 +1103,13 @@ interface ChatMessageState {
|
|
|
1061
1103
|
senderId: string;
|
|
1062
1104
|
timestamp: string;
|
|
1063
1105
|
text: string;
|
|
1106
|
+
file?: ChatFileShare;
|
|
1064
1107
|
}
|
|
1065
1108
|
type ScreenshareState = Screenshare;
|
|
1066
1109
|
type LocalScreenshareStatus = "starting" | "active";
|
|
1067
1110
|
type ChatMessage = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
1068
1111
|
removed: boolean;
|
|
1112
|
+
file?: ChatFileShare;
|
|
1069
1113
|
};
|
|
1070
1114
|
type CloudRecordingState = {
|
|
1071
1115
|
error?: string;
|
|
@@ -1100,6 +1144,7 @@ interface RoomConnectionState {
|
|
|
1100
1144
|
connectionStatus: ConnectionStatus;
|
|
1101
1145
|
connectionError: string | null;
|
|
1102
1146
|
chatMessages: ChatMessage[];
|
|
1147
|
+
fileUploads: FileUpload[];
|
|
1103
1148
|
cloudRecording?: CloudRecordingState;
|
|
1104
1149
|
breakout: BreakoutState;
|
|
1105
1150
|
events?: NotificationsEventEmitter;
|
|
@@ -1170,6 +1215,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1170
1215
|
private breakoutSubscribers;
|
|
1171
1216
|
private cameraStateSubscribers;
|
|
1172
1217
|
private chatMessageSubscribers;
|
|
1218
|
+
private fileUploadsSubscribers;
|
|
1173
1219
|
private cloudRecordingSubscribers;
|
|
1174
1220
|
private connectionErrorSubscribers;
|
|
1175
1221
|
private connectionStatusSubscribers;
|
|
@@ -1186,6 +1232,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1186
1232
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1187
1233
|
private registerAppListeners;
|
|
1188
1234
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1235
|
+
subscribeToFileUploads(callback: (uploads: FileUpload[]) => void): () => void;
|
|
1189
1236
|
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1190
1237
|
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1191
1238
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
@@ -1208,6 +1255,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1208
1255
|
joinRoom(): Promise<RoomJoinedSuccess>;
|
|
1209
1256
|
sendChatMessage(text: string, parentId?: string): void;
|
|
1210
1257
|
removeChatMessage(id: string, sig?: string | null): void;
|
|
1258
|
+
sendFiles(files: File[]): void;
|
|
1259
|
+
downloadFile(file: ChatFileShare): Promise<Blob>;
|
|
1211
1260
|
knock(): void;
|
|
1212
1261
|
cancelKnock(): void;
|
|
1213
1262
|
leaveRoom(): void;
|
|
@@ -1241,6 +1290,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1241
1290
|
switchCameraEffect(effectId: string): Promise<void>;
|
|
1242
1291
|
switchCameraEffectCustom(imageUrl: string): Promise<void>;
|
|
1243
1292
|
clearCameraEffect(): Promise<void>;
|
|
1293
|
+
enableAudioDenoiser(): Promise<void>;
|
|
1294
|
+
disableAudioDenoiser(): Promise<void>;
|
|
1244
1295
|
destroy(): void;
|
|
1245
1296
|
}
|
|
1246
1297
|
|
|
@@ -1258,5 +1309,5 @@ declare class WherebyClient {
|
|
|
1258
1309
|
destroy(): void;
|
|
1259
1310
|
}
|
|
1260
1311
|
|
|
1261
|
-
export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
|
|
1262
|
-
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 };
|
|
1312
|
+
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, parseUnverifiedRoomKeyData };
|
|
1313
|
+
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import { RoleName, ChatMessage as ChatMessage$2, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
-
export { RoomJoinedSuccess } from '@whereby.com/media';
|
|
3
|
+
import { RoleName, ChatMessage as ChatMessage$2, ChatFileShare, FileShareErrorCode, BreakoutConfig, RtcManager, RtcManagerDispatcher, ServerSocket, RoomJoinedErrors, RoomJoinedSuccess } from '@whereby.com/media';
|
|
4
|
+
export { ChatFileShare, RoomJoinedSuccess } from '@whereby.com/media';
|
|
5
5
|
import * as redux_thunk from 'redux-thunk';
|
|
6
6
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
7
7
|
import * as redux from 'redux';
|
|
@@ -385,6 +385,9 @@ declare class RoomService {
|
|
|
385
385
|
}): any;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
declare function getUsableCameraEffectPresets(): Promise<string[]>;
|
|
389
|
+
declare function isAudioDenoiserSupported(): Promise<boolean>;
|
|
390
|
+
|
|
388
391
|
interface StickyReaction {
|
|
389
392
|
reaction: string;
|
|
390
393
|
timestamp: string;
|
|
@@ -506,6 +509,7 @@ interface rtcAnalyticsState {
|
|
|
506
509
|
|
|
507
510
|
type ChatMessage$1 = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
508
511
|
removed: boolean;
|
|
512
|
+
file?: ChatFileShare;
|
|
509
513
|
};
|
|
510
514
|
interface ChatState {
|
|
511
515
|
chatMessages: ChatMessage$1[];
|
|
@@ -592,6 +596,23 @@ interface LiveTranscriptionState$1 {
|
|
|
592
596
|
startedAt?: number;
|
|
593
597
|
}
|
|
594
598
|
|
|
599
|
+
type FileShareError = FileShareErrorCode | "upload_failed" | "too_many_files" | "unsupported_file_type" | "file_too_large";
|
|
600
|
+
declare const MAX_FILES_PER_UPLOAD = 10;
|
|
601
|
+
declare const MAX_FILE_SIZE: number;
|
|
602
|
+
declare const ACCEPTED_FILE_TYPES: Record<string, string[]>;
|
|
603
|
+
interface FileUpload {
|
|
604
|
+
id: string;
|
|
605
|
+
name: string;
|
|
606
|
+
size: number;
|
|
607
|
+
type: string;
|
|
608
|
+
status: "uploading" | "sent" | "error";
|
|
609
|
+
error?: FileShareError;
|
|
610
|
+
}
|
|
611
|
+
interface FileShareState {
|
|
612
|
+
uploads: FileUpload[];
|
|
613
|
+
requestInFlight: boolean;
|
|
614
|
+
}
|
|
615
|
+
|
|
595
616
|
interface CloudRecordingState$1 {
|
|
596
617
|
isInitiator: boolean;
|
|
597
618
|
isRecording: boolean;
|
|
@@ -601,7 +622,7 @@ interface CloudRecordingState$1 {
|
|
|
601
622
|
}
|
|
602
623
|
|
|
603
624
|
type TryUpdateFn = (presetId: string, setup: Setup, params: Params) => Promise<boolean>;
|
|
604
|
-
type StopFn = () => void;
|
|
625
|
+
type StopFn$1 = () => void;
|
|
605
626
|
interface CameraEffectsState {
|
|
606
627
|
currentEffectId?: string | null;
|
|
607
628
|
setup?: Setup;
|
|
@@ -609,12 +630,25 @@ interface CameraEffectsState {
|
|
|
609
630
|
isSwitching: boolean;
|
|
610
631
|
error?: unknown;
|
|
611
632
|
raw: {
|
|
612
|
-
stop?: StopFn;
|
|
633
|
+
stop?: StopFn$1;
|
|
613
634
|
tryUpdate?: TryUpdateFn;
|
|
614
635
|
effectStream?: MediaStream;
|
|
615
636
|
};
|
|
616
637
|
}
|
|
617
638
|
|
|
639
|
+
type StopFn = () => void;
|
|
640
|
+
interface AudioDenoiserState {
|
|
641
|
+
wanted: boolean;
|
|
642
|
+
isSwitching: boolean;
|
|
643
|
+
error?: unknown;
|
|
644
|
+
raw: {
|
|
645
|
+
stop?: StopFn;
|
|
646
|
+
outputStream?: MediaStream;
|
|
647
|
+
audioContext?: AudioContext;
|
|
648
|
+
denoiserNode?: AudioWorkletNode;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
618
652
|
interface AuthorizationState {
|
|
619
653
|
roomKey: string | null;
|
|
620
654
|
assistantKey?: string | null;
|
|
@@ -773,6 +807,7 @@ interface SpotlightsState {
|
|
|
773
807
|
|
|
774
808
|
declare const appReducer: redux.Reducer<{
|
|
775
809
|
app: AppState;
|
|
810
|
+
audioDenoiser: AudioDenoiserState;
|
|
776
811
|
authorization: AuthorizationState;
|
|
777
812
|
breakout: BreakoutState$1;
|
|
778
813
|
cameraEffects: CameraEffectsState;
|
|
@@ -780,6 +815,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
780
815
|
cloudRecording: CloudRecordingState$1;
|
|
781
816
|
connectionMonitor: ConnectionMonitorState;
|
|
782
817
|
deviceCredentials: DeviceCredentialsState;
|
|
818
|
+
fileShare: FileShareState;
|
|
783
819
|
liveTranscription: LiveTranscriptionState$1;
|
|
784
820
|
localMedia: LocalMediaState$1;
|
|
785
821
|
localParticipant: LocalParticipantState$1;
|
|
@@ -797,6 +833,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
797
833
|
waitingParticipants: WaitingParticipantsState;
|
|
798
834
|
}, redux.UnknownAction, Partial<{
|
|
799
835
|
app: AppState | undefined;
|
|
836
|
+
audioDenoiser: AudioDenoiserState | undefined;
|
|
800
837
|
authorization: AuthorizationState | undefined;
|
|
801
838
|
breakout: BreakoutState$1 | undefined;
|
|
802
839
|
cameraEffects: CameraEffectsState | undefined;
|
|
@@ -804,6 +841,7 @@ declare const appReducer: redux.Reducer<{
|
|
|
804
841
|
cloudRecording: CloudRecordingState$1 | undefined;
|
|
805
842
|
connectionMonitor: ConnectionMonitorState | undefined;
|
|
806
843
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
844
|
+
fileShare: FileShareState | undefined;
|
|
807
845
|
liveTranscription: LiveTranscriptionState$1 | undefined;
|
|
808
846
|
localMedia: LocalMediaState$1 | undefined;
|
|
809
847
|
localParticipant: LocalParticipantState$1 | undefined;
|
|
@@ -825,6 +863,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
825
863
|
injectServices: ReturnType<typeof createServices>;
|
|
826
864
|
}) => _reduxjs_toolkit.EnhancedStore<{
|
|
827
865
|
app: AppState;
|
|
866
|
+
audioDenoiser: AudioDenoiserState;
|
|
828
867
|
authorization: AuthorizationState;
|
|
829
868
|
breakout: BreakoutState$1;
|
|
830
869
|
cameraEffects: CameraEffectsState;
|
|
@@ -832,6 +871,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
832
871
|
cloudRecording: CloudRecordingState$1;
|
|
833
872
|
connectionMonitor: ConnectionMonitorState;
|
|
834
873
|
deviceCredentials: DeviceCredentialsState;
|
|
874
|
+
fileShare: FileShareState;
|
|
835
875
|
liveTranscription: LiveTranscriptionState$1;
|
|
836
876
|
localMedia: LocalMediaState$1;
|
|
837
877
|
localParticipant: LocalParticipantState$1;
|
|
@@ -850,6 +890,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
850
890
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
851
891
|
dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
|
|
852
892
|
app: AppState;
|
|
893
|
+
audioDenoiser: AudioDenoiserState;
|
|
853
894
|
authorization: AuthorizationState;
|
|
854
895
|
breakout: BreakoutState$1;
|
|
855
896
|
cameraEffects: CameraEffectsState;
|
|
@@ -857,6 +898,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
857
898
|
cloudRecording: CloudRecordingState$1;
|
|
858
899
|
connectionMonitor: ConnectionMonitorState;
|
|
859
900
|
deviceCredentials: DeviceCredentialsState;
|
|
901
|
+
fileShare: FileShareState;
|
|
860
902
|
liveTranscription: LiveTranscriptionState$1;
|
|
861
903
|
localMedia: LocalMediaState$1;
|
|
862
904
|
localParticipant: LocalParticipantState$1;
|
|
@@ -1061,11 +1103,13 @@ interface ChatMessageState {
|
|
|
1061
1103
|
senderId: string;
|
|
1062
1104
|
timestamp: string;
|
|
1063
1105
|
text: string;
|
|
1106
|
+
file?: ChatFileShare;
|
|
1064
1107
|
}
|
|
1065
1108
|
type ScreenshareState = Screenshare;
|
|
1066
1109
|
type LocalScreenshareStatus = "starting" | "active";
|
|
1067
1110
|
type ChatMessage = Pick<ChatMessage$2, "id" | "senderId" | "parentId" | "timestamp" | "text" | "sig"> & {
|
|
1068
1111
|
removed: boolean;
|
|
1112
|
+
file?: ChatFileShare;
|
|
1069
1113
|
};
|
|
1070
1114
|
type CloudRecordingState = {
|
|
1071
1115
|
error?: string;
|
|
@@ -1100,6 +1144,7 @@ interface RoomConnectionState {
|
|
|
1100
1144
|
connectionStatus: ConnectionStatus;
|
|
1101
1145
|
connectionError: string | null;
|
|
1102
1146
|
chatMessages: ChatMessage[];
|
|
1147
|
+
fileUploads: FileUpload[];
|
|
1103
1148
|
cloudRecording?: CloudRecordingState;
|
|
1104
1149
|
breakout: BreakoutState;
|
|
1105
1150
|
events?: NotificationsEventEmitter;
|
|
@@ -1170,6 +1215,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1170
1215
|
private breakoutSubscribers;
|
|
1171
1216
|
private cameraStateSubscribers;
|
|
1172
1217
|
private chatMessageSubscribers;
|
|
1218
|
+
private fileUploadsSubscribers;
|
|
1173
1219
|
private cloudRecordingSubscribers;
|
|
1174
1220
|
private connectionErrorSubscribers;
|
|
1175
1221
|
private connectionStatusSubscribers;
|
|
@@ -1186,6 +1232,7 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1186
1232
|
protected handleStateChanges(state: RoomConnectionState, previousState: RoomConnectionState): void;
|
|
1187
1233
|
private registerAppListeners;
|
|
1188
1234
|
subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
|
|
1235
|
+
subscribeToFileUploads(callback: (uploads: FileUpload[]) => void): () => void;
|
|
1189
1236
|
subscribeToCloudRecording(callback: (status: CloudRecordingState | undefined) => void): () => void;
|
|
1190
1237
|
subscribeToLiveTranscription(callback: (status: LiveTranscriptionState | undefined) => void): () => void;
|
|
1191
1238
|
subscribeToBreakoutConfig(callback: (config: BreakoutState) => void): () => void;
|
|
@@ -1208,6 +1255,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1208
1255
|
joinRoom(): Promise<RoomJoinedSuccess>;
|
|
1209
1256
|
sendChatMessage(text: string, parentId?: string): void;
|
|
1210
1257
|
removeChatMessage(id: string, sig?: string | null): void;
|
|
1258
|
+
sendFiles(files: File[]): void;
|
|
1259
|
+
downloadFile(file: ChatFileShare): Promise<Blob>;
|
|
1211
1260
|
knock(): void;
|
|
1212
1261
|
cancelKnock(): void;
|
|
1213
1262
|
leaveRoom(): void;
|
|
@@ -1241,6 +1290,8 @@ declare class RoomConnectionClient extends BaseClient<RoomConnectionState, RoomC
|
|
|
1241
1290
|
switchCameraEffect(effectId: string): Promise<void>;
|
|
1242
1291
|
switchCameraEffectCustom(imageUrl: string): Promise<void>;
|
|
1243
1292
|
clearCameraEffect(): Promise<void>;
|
|
1293
|
+
enableAudioDenoiser(): Promise<void>;
|
|
1294
|
+
disableAudioDenoiser(): Promise<void>;
|
|
1244
1295
|
destroy(): void;
|
|
1245
1296
|
}
|
|
1246
1297
|
|
|
@@ -1258,5 +1309,5 @@ declare class WherebyClient {
|
|
|
1258
1309
|
destroy(): void;
|
|
1259
1310
|
}
|
|
1260
1311
|
|
|
1261
|
-
export { ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, parseUnverifiedRoomKeyData };
|
|
1262
|
-
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 };
|
|
1312
|
+
export { ACCEPTED_FILE_TYPES, ApiClient, BREAKOUT_CONFIG_CHANGED, CAMERA_DEVICES_CHANGED, CAMERA_DEVICE_ERROR_CHANGED, CAMERA_STATE_CHANGED, CHAT_NEW_MESSAGE, CLIENT_VIEW_CHANGED, CLIENT_VIEW_SPOTLIGHTS_CHANGED, CLOUD_RECORDING_STATUS_CHANGED, CONNECTION_ERROR_CHANGED, CONNECTION_STATUS_CHANGED, CURRENT_CAMERA_CHANGED, CURRENT_MICROPHONE_CHANGED, CURRENT_SPEAKER_CHANGED, Credentials, CredentialsService, GridClient, IS_SETTING_CAMERA_DEVICE, IS_SETTING_MICROPHONE_DEVICE, LIVE_TRANSCRIPTION_STATUS_CHANGED, LOCAL_MEDIA_STARTING, LOCAL_MEDIA_START_ERROR_CHANGED, LOCAL_PARTICIPANT_CHANGED, LOCAL_SCREENSHARE_STATUS_CHANGED, LOCAL_STREAM_CHANGED, LocalMediaClient, LocalParticipant, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, MICROPHONE_DEVICES_CHANGED, MICROPHONE_DEVICE_ERROR_CHANGED, MICROPHONE_STATE_CHANGED, NUMBER_OF_CLIENT_VIEWS_CHANGED, OrganizationApiClient, OrganizationService, OrganizationServiceCache, REMOTE_PARTICIPANTS_CHANGED, ROOM_JOINED, ROOM_JOINED_ERROR, RoomConnectionClient, RoomService, SCREENSHARE_STARTED, SCREENSHARE_STOPPED, SPEAKER_DEVICES_CHANGED, SPOTLIGHT_PARTICIPANT_ADDED, SPOTLIGHT_PARTICIPANT_REMOVED, STREAMING_STARTED, STREAMING_STOPPED, WAITING_PARTICIPANT_JOINED, WAITING_PARTICIPANT_LEFT, WherebyClient, createServices, debounce, getAudioTrack, getFakeMediaStream, getUsableCameraEffectPresets, getVideoTrack, hasValue, isAudioDenoiserSupported, parseUnverifiedRoomKeyData };
|
|
1313
|
+
export type { AppConfig, BreakoutState, ChatMessage, ChatMessageEvent, ChatMessageState, ClientView, CloudRecordingState, ConnectionStatus, FileShareError, FileUpload, 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 };
|