@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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  var toolkit = require('@reduxjs/toolkit');
4
4
  var media = require('@whereby.com/media');
5
+ var uuid = require('uuid');
5
6
  var events$1 = require('events');
6
7
  var nodeBtoa = require('btoa');
7
8
  var axios = require('axios');
@@ -75,9 +76,9 @@ const createReactor = (selectors, callback) => {
75
76
  });
76
77
  };
77
78
 
78
- const coreVersion = "1.12.1";
79
+ const coreVersion = "1.14.0";
79
80
 
80
- const initialState$1 = {
81
+ const initialState$2 = {
81
82
  displayName: null,
82
83
  externalId: null,
83
84
  ignoreBreakoutGroups: false,
@@ -92,7 +93,7 @@ const initialState$1 = {
92
93
  };
93
94
  const appSlice = toolkit.createSlice({
94
95
  name: "app",
95
- initialState: initialState$1,
96
+ initialState: initialState$2,
96
97
  reducers: {
97
98
  doAppStart: (state, action) => {
98
99
  const url = new URL(action.payload.roomUrl);
@@ -130,6 +131,7 @@ const signalEvents = {
130
131
  breakoutSessionUpdated: createSignalEventAction("breakoutSessionUpdated"),
131
132
  chatMessage: createSignalEventAction("chatMessage"),
132
133
  chatMessageRemoved: createSignalEventAction("chatMessageRemoved"),
134
+ fileSharingError: createSignalEventAction("fileSharingError"),
133
135
  clientLeft: createSignalEventAction("clientLeft"),
134
136
  clientKicked: createSignalEventAction("clientKicked"),
135
137
  clientMetadataReceived: createSignalEventAction("clientMetadataReceived"),
@@ -307,7 +309,13 @@ function forwardSocketEvents(socket, dispatch) {
307
309
  socket.on("video_enabled", (payload) => dispatch(signalEvents.videoEnabled(payload)));
308
310
  socket.on("audio_enable_requested", (payload) => dispatch(signalEvents.audioEnableRequested(payload)));
309
311
  socket.on("client_metadata_received", (payload) => dispatch(signalEvents.clientMetadataReceived(payload)));
310
- socket.on("chat_message", (payload) => dispatch(signalEvents.chatMessage(payload)));
312
+ socket.on("chat_message", (payload) => {
313
+ if (media.isFileShareError(payload)) {
314
+ dispatch(signalEvents.fileSharingError(payload));
315
+ return;
316
+ }
317
+ dispatch(signalEvents.chatMessage(payload));
318
+ });
311
319
  socket.on("chat_message_removed", (payload) => dispatch(signalEvents.chatMessageRemoved(payload)));
312
320
  socket.on("disconnect", () => dispatch(signalEvents.disconnect()));
313
321
  socket.on("room_knocked", (payload) => dispatch(signalEvents.roomKnocked(payload)));
@@ -990,9 +998,10 @@ startAppListening({
990
998
  const devices = selectLocalMediaDevices(state);
991
999
  if (!stream)
992
1000
  return;
1001
+ const beforeEffectTracks = selectLocalMediaBeforeEffectTracks(state);
993
1002
  const deviceData = media.getDeviceData({
994
- audioTrack: stream.getAudioTracks()[0],
995
- videoTrack: stream.getVideoTracks()[0],
1003
+ audioTrack: (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.audio) || stream.getAudioTracks()[0],
1004
+ videoTrack: (beforeEffectTracks === null || beforeEffectTracks === void 0 ? void 0 : beforeEffectTracks.video) || stream.getVideoTracks()[0],
996
1005
  devices,
997
1006
  });
998
1007
  dispatch(localStreamMetadataUpdated(deviceData));
@@ -1159,15 +1168,7 @@ const chatSlice = toolkit.createSlice({
1159
1168
  reducers: {},
1160
1169
  extraReducers(builder) {
1161
1170
  builder.addCase(signalEvents.chatMessage, (state, action) => {
1162
- const message = {
1163
- id: action.payload.id,
1164
- senderId: action.payload.senderId,
1165
- parentId: action.payload.parentId,
1166
- timestamp: action.payload.timestamp,
1167
- text: action.payload.text,
1168
- sig: action.payload.sig,
1169
- removed: false,
1170
- };
1171
+ const message = Object.assign({ id: action.payload.id, senderId: action.payload.senderId, parentId: action.payload.parentId, timestamp: action.payload.timestamp, text: action.payload.text, sig: action.payload.sig, removed: false }, (action.payload.file && { file: action.payload.file }));
1171
1172
  return Object.assign(Object.assign({}, state), { chatMessages: [...state.chatMessages, message] });
1172
1173
  });
1173
1174
  builder.addCase(signalEvents.chatMessageRemoved, (state, action) => {
@@ -2276,6 +2277,177 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
2276
2277
  }
2277
2278
  });
2278
2279
 
2280
+ const MAX_FILES_PER_UPLOAD = 10;
2281
+ const MAX_FILE_SIZE = 15 * 1024 * 1024;
2282
+ const ACCEPTED_FILE_TYPES = {
2283
+ "application/doc": [".doc", ".docx"],
2284
+ "application/msword": [".doc", ".docx"],
2285
+ "application/pdf": [".pdf"],
2286
+ "application/rtf": [".rtf"],
2287
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
2288
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": [".docx"],
2289
+ "audio/mpeg": [".mp3"],
2290
+ "audio/wav": [".wav"],
2291
+ "image/gif": [".gif"],
2292
+ "image/jpeg": [".jpeg", ".jpg"],
2293
+ "image/png": [".png"],
2294
+ "image/webp": [".webp"],
2295
+ "text/csv": [".csv"],
2296
+ "text/plain": [".txt"],
2297
+ "video/mp4": [".mp4"],
2298
+ "video/quicktime": [".mov"],
2299
+ "video/webm": [".webm"],
2300
+ "video/x-matroska": [".mkv"],
2301
+ };
2302
+ function isAcceptedFileType(file) {
2303
+ if (file.type && ACCEPTED_FILE_TYPES[file.type]) {
2304
+ return true;
2305
+ }
2306
+ const dot = file.name.lastIndexOf(".");
2307
+ if (dot < 0) {
2308
+ return false;
2309
+ }
2310
+ const extension = file.name.slice(dot).toLowerCase();
2311
+ return Object.values(ACCEPTED_FILE_TYPES).some((extensions) => extensions.includes(extension));
2312
+ }
2313
+ function validateFile(file) {
2314
+ if (!isAcceptedFileType(file)) {
2315
+ return "unsupported_file_type";
2316
+ }
2317
+ if (file.size > MAX_FILE_SIZE) {
2318
+ return "file_too_large";
2319
+ }
2320
+ return undefined;
2321
+ }
2322
+ const fileShareSliceInitialState = {
2323
+ uploads: [],
2324
+ requestInFlight: false,
2325
+ };
2326
+ const fileShareSlice = toolkit.createSlice({
2327
+ name: "fileShare",
2328
+ initialState: fileShareSliceInitialState,
2329
+ reducers: {
2330
+ fileUploadsStarted: (state, action) => {
2331
+ state.uploads.push(...action.payload);
2332
+ state.requestInFlight = true;
2333
+ },
2334
+ fileShareRequestSettled: (state) => {
2335
+ state.requestInFlight = false;
2336
+ },
2337
+ fileUploadSucceeded: (state, action) => {
2338
+ const upload = state.uploads.find((u) => u.id === action.payload.id);
2339
+ if (upload) {
2340
+ upload.status = "sent";
2341
+ }
2342
+ },
2343
+ fileUploadFailed: (state, action) => {
2344
+ const upload = state.uploads.find((u) => u.id === action.payload.id);
2345
+ if (upload) {
2346
+ upload.status = "error";
2347
+ upload.error = action.payload.error;
2348
+ }
2349
+ },
2350
+ clearFileUploads: (state) => {
2351
+ state.uploads = [];
2352
+ },
2353
+ },
2354
+ });
2355
+ const { fileUploadsStarted, fileShareRequestSettled, fileUploadSucceeded, fileUploadFailed, clearFileUploads } = fileShareSlice.actions;
2356
+ function uploadFile(file, uploadUrl) {
2357
+ const form = new FormData();
2358
+ form.append("Content-Type", file.type);
2359
+ Object.entries(uploadUrl.fields).forEach(([key, value]) => form.append(key, value));
2360
+ form.append("file", file);
2361
+ return fetch(uploadUrl.url, { method: "POST", body: form });
2362
+ }
2363
+ const doSendFiles = createAsyncRoomConnectedThunk("fileShare/sendFiles", (payload_1, _a) => __awaiter(void 0, [payload_1, _a], void 0, function* (payload, { dispatch, getState }) {
2364
+ const state = getState();
2365
+ if (state.fileShare.requestInFlight) {
2366
+ return Promise.reject(new Error("A file upload request is already in flight"));
2367
+ }
2368
+ const socket = selectSignalConnectionRaw(state).socket;
2369
+ if (!socket) {
2370
+ return Promise.reject(new Error("No signal connection"));
2371
+ }
2372
+ const breakoutCurrentId = selectBreakoutCurrentId(state);
2373
+ const { files } = payload;
2374
+ if (!files.length) {
2375
+ return;
2376
+ }
2377
+ const tooManyFiles = files.length > MAX_FILES_PER_UPLOAD;
2378
+ const entries = files.map((file) => {
2379
+ const error = tooManyFiles ? "too_many_files" : validateFile(file);
2380
+ const upload = Object.assign({ id: uuid.v4(), name: file.name, size: file.size, type: file.type, status: error ? "error" : "uploading" }, (error && { error }));
2381
+ return { file, upload };
2382
+ });
2383
+ dispatch(fileUploadsStarted(entries.map((entry) => entry.upload)));
2384
+ const accepted = entries.filter((entry) => entry.upload.status === "uploading");
2385
+ if (!accepted.length) {
2386
+ dispatch(fileShareRequestSettled());
2387
+ return;
2388
+ }
2389
+ const acceptedFiles = accepted.map((entry) => entry.file);
2390
+ const outcome = yield new Promise((resolve) => {
2391
+ let settled = false;
2392
+ const removeListener = dispatch(addAppListener({
2393
+ actionCreator: signalEvents.fileSharingError,
2394
+ effect: (action, listenerApi) => {
2395
+ if (settled)
2396
+ return;
2397
+ settled = true;
2398
+ listenerApi.unsubscribe();
2399
+ resolve({ error: action.payload.error });
2400
+ },
2401
+ }));
2402
+ socket.emit("request_file_upload_url", { files: acceptedFiles.map((f) => ({ name: f.name, size: f.size, type: f.type })) }, (urls) => {
2403
+ if (settled)
2404
+ return;
2405
+ settled = true;
2406
+ removeListener({ cancelActive: true });
2407
+ resolve({ urls });
2408
+ });
2409
+ });
2410
+ dispatch(fileShareRequestSettled());
2411
+ if ("error" in outcome) {
2412
+ accepted.forEach((entry) => dispatch(fileUploadFailed({ id: entry.upload.id, error: outcome.error })));
2413
+ return;
2414
+ }
2415
+ yield Promise.all(accepted.map((_a, index_1) => __awaiter(void 0, [_a, index_1], void 0, function* ({ file, upload }, index) {
2416
+ const urls = outcome.urls[index];
2417
+ if (!urls) {
2418
+ dispatch(fileUploadFailed({ id: upload.id, error: "upload_failed" }));
2419
+ return;
2420
+ }
2421
+ try {
2422
+ const response = yield uploadFile(file, urls.uploadUrl);
2423
+ if (!response.ok) {
2424
+ throw new Error(`S3 upload failed with status ${response.status}`);
2425
+ }
2426
+ socket.emit("chat_message", Object.assign({ text: "", file: {
2427
+ downloadUrl: urls.downloadUrl,
2428
+ name: file.name,
2429
+ size: file.size,
2430
+ type: file.type,
2431
+ key: urls.uploadUrl.fields.key,
2432
+ } }, (breakoutCurrentId && { breakoutGroup: breakoutCurrentId })));
2433
+ dispatch(fileUploadSucceeded({ id: upload.id }));
2434
+ }
2435
+ catch (_b) {
2436
+ dispatch(fileUploadFailed({ id: upload.id, error: "upload_failed" }));
2437
+ }
2438
+ })));
2439
+ }));
2440
+ const doDownloadFile = createAppAsyncThunk("fileShare/downloadFile", (payload) => __awaiter(void 0, void 0, void 0, function* () {
2441
+ const response = yield fetch(payload.file.downloadUrl, { mode: "cors", cache: "no-cache" });
2442
+ if (!response.ok) {
2443
+ throw new Error(`Failed to download file: ${response.status}`);
2444
+ }
2445
+ return response.blob();
2446
+ }));
2447
+ const selectFileShareRaw = (state) => state.fileShare;
2448
+ const selectFileUploads = (state) => state.fileShare.uploads;
2449
+ const selectFileShareRequestInFlight = (state) => state.fileShare.requestInFlight;
2450
+
2279
2451
  const initialLiveTranscriptionState = {
2280
2452
  isInitiator: false,
2281
2453
  isTranscribing: false,
@@ -3164,13 +3336,13 @@ const doRejectWaitingParticipant = createRoomConnectedThunk((payload) => (dispat
3164
3336
  const selectWaitingParticipantsRaw = (state) => state.waitingParticipants;
3165
3337
  const selectWaitingParticipants = (state) => state.waitingParticipants.waitingParticipants;
3166
3338
 
3167
- const initialState = {
3339
+ const initialState$1 = {
3168
3340
  isSwitching: false,
3169
3341
  raw: {},
3170
3342
  };
3171
3343
  const cameraEffectsSlice = toolkit.createSlice({
3172
3344
  name: "cameraEffects",
3173
- initialState,
3345
+ initialState: initialState$1,
3174
3346
  reducers: {
3175
3347
  cameraEffectsSwitching(state, action) {
3176
3348
  state.isSwitching = action.payload.isSwitching;
@@ -3240,7 +3412,7 @@ const doCameraEffectsSwitchPreset = createAppAsyncThunk("cameraEffects/switchPre
3240
3412
  mod = yield import('@whereby.com/camera-effects');
3241
3413
  }
3242
3414
  catch (_f) {
3243
- throw new Error("@whereby.com/camera-effects is not installed. Add it as a dependency to enable camera effects.");
3415
+ throw new Error("Failed to load @whereby.com/camera-effects. Check your network connection and that the package is resolvable.");
3244
3416
  }
3245
3417
  const { createEffectStream, getUsablePresets } = mod;
3246
3418
  const usable = getUsablePresets({ filter: () => true, options: { allowSafari } });
@@ -3268,9 +3440,139 @@ startAppListening({
3268
3440
  },
3269
3441
  });
3270
3442
 
3443
+ const initialState = {
3444
+ wanted: false,
3445
+ isSwitching: false,
3446
+ raw: {},
3447
+ };
3448
+ const audioDenoiserSlice = toolkit.createSlice({
3449
+ name: "audioDenoiser",
3450
+ initialState,
3451
+ reducers: {
3452
+ audioDenoiserSwitching(state, action) {
3453
+ state.isSwitching = action.payload.isSwitching;
3454
+ },
3455
+ audioDenoiserWantedSet(state, action) {
3456
+ state.wanted = action.payload.wanted;
3457
+ },
3458
+ audioDenoiserApplied(state, action) {
3459
+ state.raw = action.payload;
3460
+ state.error = undefined;
3461
+ state.isSwitching = false;
3462
+ },
3463
+ audioDenoiserCleared(state) {
3464
+ state.raw = {};
3465
+ state.error = undefined;
3466
+ state.isSwitching = false;
3467
+ },
3468
+ audioDenoiserError(state, action) {
3469
+ state.error = action.payload.error;
3470
+ state.isSwitching = false;
3471
+ },
3472
+ },
3473
+ });
3474
+ const { audioDenoiserSwitching, audioDenoiserWantedSet, audioDenoiserApplied, audioDenoiserCleared, audioDenoiserError, } = audioDenoiserSlice.actions;
3475
+ const selectAudioDenoiserRaw = (state) => state.audioDenoiser.raw;
3476
+ const selectAudioDenoiserWanted = (state) => state.audioDenoiser.wanted;
3477
+ const selectAudioDenoiserEnabled = (state) => !!state.audioDenoiser.raw.stop;
3478
+ const doAudioDenoiserApply = createAppAsyncThunk("audioDenoiser/apply", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch, rejectWithValue }) {
3479
+ var _b;
3480
+ const state = getState();
3481
+ if (selectLocalMediaIsSwitchingStream(state))
3482
+ return;
3483
+ const localStream = selectLocalMediaStream(state);
3484
+ if (!((_b = localStream === null || localStream === void 0 ? void 0 : localStream.getAudioTracks()) === null || _b === void 0 ? void 0 : _b[0])) {
3485
+ return;
3486
+ }
3487
+ if (selectAudioDenoiserEnabled(state))
3488
+ return;
3489
+ dispatch(audioDenoiserSwitching({ isSwitching: true }));
3490
+ try {
3491
+ let mod;
3492
+ try {
3493
+ mod = yield import('@whereby.com/audio-denoiser');
3494
+ }
3495
+ catch (_c) {
3496
+ throw new Error("Failed to load @whereby.com/audio-denoiser. Check your network connection and that the package is resolvable.");
3497
+ }
3498
+ const { applyAudioDenoiser, canUse } = mod;
3499
+ if (!canUse()) {
3500
+ throw new Error("Audio denoiser is not supported in this browser");
3501
+ }
3502
+ const handle = yield applyAudioDenoiser({
3503
+ inputStream: localStream,
3504
+ doCaptureException: (err, ctx) => {
3505
+ console.error("[audioDenoiser]", err, ctx);
3506
+ },
3507
+ });
3508
+ yield dispatch(doLocalStreamEffect({ effectStream: handle.outputStream, only: "audio" }));
3509
+ dispatch(audioDenoiserApplied({
3510
+ stop: handle.stop,
3511
+ outputStream: handle.outputStream,
3512
+ audioContext: handle.audioContext,
3513
+ denoiserNode: handle.denoiserNode,
3514
+ }));
3515
+ }
3516
+ catch (error) {
3517
+ dispatch(audioDenoiserError({ error }));
3518
+ return rejectWithValue(error);
3519
+ }
3520
+ }));
3521
+ const doAudioDenoiserTeardown = createAppAsyncThunk("audioDenoiser/teardown", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch }) {
3522
+ const raw = selectAudioDenoiserRaw(getState());
3523
+ if (!raw.stop)
3524
+ return;
3525
+ dispatch(audioDenoiserSwitching({ isSwitching: true }));
3526
+ try {
3527
+ if (raw.outputStream) {
3528
+ yield dispatch(doLocalStreamEffect({ effectStream: undefined, only: "audio" }));
3529
+ }
3530
+ raw.stop();
3531
+ }
3532
+ finally {
3533
+ dispatch(audioDenoiserCleared());
3534
+ }
3535
+ }));
3536
+ createAppAsyncThunk("audioDenoiser/enable", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { dispatch }) {
3537
+ dispatch(audioDenoiserWantedSet({ wanted: true }));
3538
+ yield dispatch(doAudioDenoiserApply());
3539
+ }));
3540
+ const doAudioDenoiserDisable = createAppAsyncThunk("audioDenoiser/disable", (arg_1, _a) => __awaiter(void 0, [arg_1, _a], void 0, function* (arg, { dispatch }) {
3541
+ if (!(arg === null || arg === void 0 ? void 0 : arg.keepWanted)) {
3542
+ dispatch(audioDenoiserWantedSet({ wanted: false }));
3543
+ }
3544
+ yield dispatch(doAudioDenoiserTeardown());
3545
+ }));
3546
+ startAppListening({
3547
+ actionCreator: doSwitchLocalStream.pending,
3548
+ effect: (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch }) {
3549
+ if (selectAudioDenoiserEnabled(getState())) {
3550
+ yield dispatch(doAudioDenoiserDisable({ keepWanted: true }));
3551
+ }
3552
+ }),
3553
+ });
3554
+ startAppListening({
3555
+ actionCreator: doSwitchLocalStream.fulfilled,
3556
+ effect: (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { getState, dispatch }) {
3557
+ const state = getState();
3558
+ if (selectAudioDenoiserWanted(state) && !selectAudioDenoiserEnabled(state)) {
3559
+ yield dispatch(doAudioDenoiserApply());
3560
+ }
3561
+ }),
3562
+ });
3563
+ startAppListening({
3564
+ actionCreator: doAppStop,
3565
+ effect: (_, { dispatch, getState }) => {
3566
+ if (selectAudioDenoiserRaw(getState()).stop) {
3567
+ dispatch(doAudioDenoiserDisable());
3568
+ }
3569
+ },
3570
+ });
3571
+
3271
3572
  const IS_DEV = undefined === "true";
3272
3573
  const appReducer = toolkit.combineReducers({
3273
3574
  app: appSlice.reducer,
3575
+ audioDenoiser: audioDenoiserSlice.reducer,
3274
3576
  authorization: authorizationSlice.reducer,
3275
3577
  breakout: breakoutSlice.reducer,
3276
3578
  cameraEffects: cameraEffectsSlice.reducer,
@@ -3278,6 +3580,7 @@ const appReducer = toolkit.combineReducers({
3278
3580
  cloudRecording: cloudRecordingSlice.reducer,
3279
3581
  connectionMonitor: connectionMonitorSlice.reducer,
3280
3582
  deviceCredentials: deviceCredentialsSlice.reducer,
3583
+ fileShare: fileShareSlice.reducer,
3281
3584
  liveTranscription: liveTranscriptionSlice.reducer,
3282
3585
  localMedia: localMediaSlice.reducer,
3283
3586
  localParticipant: localParticipantSlice.reducer,
@@ -3301,6 +3604,7 @@ const rootReducer = (state, action) => {
3301
3604
  app: Object.assign(Object.assign({}, appSlice.getInitialState()), { initialConfig: (_a = state === null || state === void 0 ? void 0 : state.app) === null || _a === void 0 ? void 0 : _a.initialConfig }),
3302
3605
  localMedia: Object.assign(Object.assign({}, localMediaSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.localMedia),
3303
3606
  cameraEffects: Object.assign(Object.assign({}, cameraEffectsSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.cameraEffects),
3607
+ audioDenoiser: Object.assign(Object.assign({}, audioDenoiserSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.audioDenoiser),
3304
3608
  };
3305
3609
  return appReducer(resetState, action);
3306
3610
  }
@@ -4053,6 +4357,9 @@ function createServices() {
4053
4357
  };
4054
4358
  }
4055
4359
 
4360
+ exports.ACCEPTED_FILE_TYPES = ACCEPTED_FILE_TYPES;
4361
+ exports.MAX_FILES_PER_UPLOAD = MAX_FILES_PER_UPLOAD;
4362
+ exports.MAX_FILE_SIZE = MAX_FILE_SIZE;
4056
4363
  exports.addAppListener = addAppListener;
4057
4364
  exports.addSpotlight = addSpotlight;
4058
4365
  exports.appSlice = appSlice;
@@ -4062,6 +4369,7 @@ exports.breakoutSlice = breakoutSlice;
4062
4369
  exports.breakoutSliceInitialState = breakoutSliceInitialState;
4063
4370
  exports.chatSlice = chatSlice;
4064
4371
  exports.chatSliceInitialState = chatSliceInitialState;
4372
+ exports.clearFileUploads = clearFileUploads;
4065
4373
  exports.cloudRecordingSlice = cloudRecordingSlice;
4066
4374
  exports.connectionMonitorSlice = connectionMonitorSlice;
4067
4375
  exports.connectionMonitorSliceInitialState = connectionMonitorSliceInitialState;
@@ -4092,6 +4400,7 @@ exports.doClearNotifications = doClearNotifications;
4092
4400
  exports.doConnectRoom = doConnectRoom;
4093
4401
  exports.doConnectRtc = doConnectRtc;
4094
4402
  exports.doDisconnectRtc = doDisconnectRtc;
4403
+ exports.doDownloadFile = doDownloadFile;
4095
4404
  exports.doEnableAudio = doEnableAudio;
4096
4405
  exports.doEnableVideo = doEnableVideo;
4097
4406
  exports.doEndMeeting = doEndMeeting;
@@ -4115,6 +4424,7 @@ exports.doRtcManagerInitialize = doRtcManagerInitialize;
4115
4424
  exports.doRtcReportStreamResolution = doRtcReportStreamResolution;
4116
4425
  exports.doSendChatMessage = doSendChatMessage;
4117
4426
  exports.doSendClientMetadata = doSendClientMetadata;
4427
+ exports.doSendFiles = doSendFiles;
4118
4428
  exports.doSetDevice = doSetDevice;
4119
4429
  exports.doSetDisplayName = doSetDisplayName;
4120
4430
  exports.doSetLocalStickyReaction = doSetLocalStickyReaction;
@@ -4137,11 +4447,17 @@ exports.doSwitchLocalStream = doSwitchLocalStream;
4137
4447
  exports.doToggleCamera = doToggleCamera;
4138
4448
  exports.doTriggerLocalStreamRefresh = doTriggerLocalStreamRefresh;
4139
4449
  exports.doUpdateDeviceList = doUpdateDeviceList;
4450
+ exports.fileShareRequestSettled = fileShareRequestSettled;
4451
+ exports.fileShareSlice = fileShareSlice;
4452
+ exports.fileShareSliceInitialState = fileShareSliceInitialState;
4453
+ exports.fileUploadFailed = fileUploadFailed;
4454
+ exports.fileUploadSucceeded = fileUploadSucceeded;
4455
+ exports.fileUploadsStarted = fileUploadsStarted;
4140
4456
  exports.initialCloudRecordingState = initialCloudRecordingState;
4141
4457
  exports.initialLiveTranscriptionState = initialLiveTranscriptionState;
4142
4458
  exports.initialLocalMediaState = initialLocalMediaState;
4143
4459
  exports.initialNotificationsState = initialNotificationsState;
4144
- exports.initialState = initialState$1;
4460
+ exports.initialState = initialState$2;
4145
4461
  exports.isAcceptingStreams = isAcceptingStreams;
4146
4462
  exports.isClientSpotlighted = isClientSpotlighted;
4147
4463
  exports.listenerMiddleware = listenerMiddleware;
@@ -4222,6 +4538,9 @@ exports.selectCurrentMicrophoneDeviceId = selectCurrentMicrophoneDeviceId;
4222
4538
  exports.selectCurrentSpeakerDeviceId = selectCurrentSpeakerDeviceId;
4223
4539
  exports.selectDeviceCredentialsRaw = selectDeviceCredentialsRaw;
4224
4540
  exports.selectDeviceId = selectDeviceId;
4541
+ exports.selectFileShareRaw = selectFileShareRaw;
4542
+ exports.selectFileShareRequestInFlight = selectFileShareRequestInFlight;
4543
+ exports.selectFileUploads = selectFileUploads;
4225
4544
  exports.selectHasFetchedDeviceCredentials = selectHasFetchedDeviceCredentials;
4226
4545
  exports.selectIsAcceptingStreams = selectIsAcceptingStreams;
4227
4546
  exports.selectIsAuthorizedToAskToSpeak = selectIsAuthorizedToAskToSpeak;