@whereby.com/core 1.21.2 → 1.22.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 +518 -12
- package/dist/index.d.cts +170 -4
- package/dist/index.d.mts +170 -4
- package/dist/index.d.ts +170 -4
- package/dist/index.mjs +512 -14
- package/dist/legacy-esm.js +512 -14
- package/dist/redux/index.cjs +456 -1
- package/dist/redux/index.d.cts +1146 -3
- package/dist/redux/index.d.mts +1146 -3
- package/dist/redux/index.d.ts +1146 -3
- package/dist/redux/index.js +432 -3
- package/dist/redux/index.mjs +432 -3
- package/package.json +4 -4
package/dist/redux/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAsyncThunk, createListenerMiddleware, addListener, createSlice, createAction, createSelector, isAnyOf, combineReducers, configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import { ServerSocket, isFileShareError, getDeviceData, getStream, getUpdatedDevices, replaceTracksInStream, getDisplayMedia, CAMERA_STREAM_ID, RtcManagerDispatcher, setClientProvider, subscribeIssues, assert, fromLocation } from '@whereby.com/media';
|
|
2
|
+
import { ServerSocket, isFileShareError, getDeviceData, getStream, getUpdatedDevices, replaceTracksInStream, getDisplayMedia, CAMERA_STREAM_ID, RtcManagerDispatcher, setClientProvider, subscribeIssues, isRoomIntegrationErrorCode, assert, fromLocation } from '@whereby.com/media';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
import nodeBtoa from 'btoa';
|
|
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
const coreVersion = "1.
|
|
77
|
+
const coreVersion = "1.22.0";
|
|
78
78
|
|
|
79
79
|
function decodeRoomName(roomName) {
|
|
80
80
|
if (!roomName) {
|
|
@@ -156,6 +156,11 @@ const signalEvents = {
|
|
|
156
156
|
knockerLeft: createSignalEventAction("knockerLeft"),
|
|
157
157
|
knockHandled: createSignalEventAction("knockHandled"),
|
|
158
158
|
newClient: createSignalEventAction("newClient"),
|
|
159
|
+
roomIntegrationStarted: createSignalEventAction("roomIntegrationStarted"),
|
|
160
|
+
roomIntegrationStopped: createSignalEventAction("roomIntegrationStopped"),
|
|
161
|
+
roomIntegrationPropsUpdated: createSignalEventAction("roomIntegrationPropsUpdated"),
|
|
162
|
+
roomIntegrationEnabled: createSignalEventAction("roomIntegrationEnabled"),
|
|
163
|
+
roomIntegrationDisabled: createSignalEventAction("roomIntegrationDisabled"),
|
|
159
164
|
roomJoined: createSignalEventAction("roomJoined"),
|
|
160
165
|
roomKnocked: createSignalEventAction("roomKnocked"),
|
|
161
166
|
roomLeft: createSignalEventAction("roomLeft"),
|
|
@@ -186,6 +191,7 @@ const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
|
|
|
186
191
|
canAskToSpeak: ["host"],
|
|
187
192
|
canSpotlight: ["host"],
|
|
188
193
|
canManageBreakout: ["host"],
|
|
194
|
+
canManageRoomIntegration: ["host"],
|
|
189
195
|
};
|
|
190
196
|
const authorizationSliceInitialState = {
|
|
191
197
|
roomKey: null,
|
|
@@ -230,6 +236,7 @@ const selectIsAuthorizedToEndMeeting = createSelector(selectAuthorizationRoleNam
|
|
|
230
236
|
const selectIsAuthorizedToAskToSpeak = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canAskToSpeak.includes(localParticipantRole));
|
|
231
237
|
const selectIsAuthorizedToSpotlight = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canSpotlight.includes(localParticipantRole));
|
|
232
238
|
const selectIsAuthorizedToManageBreakout = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canManageBreakout.includes(localParticipantRole));
|
|
239
|
+
const selectIsAuthorizedToManageRoomIntegration = createSelector(selectAuthorizationRoleName, (localParticipantRole) => ROOM_ACTION_PERMISSIONS_BY_ROLE.canManageRoomIntegration.includes(localParticipantRole));
|
|
233
240
|
|
|
234
241
|
/******************************************************************************
|
|
235
242
|
Copyright (c) Microsoft Corporation.
|
|
@@ -360,6 +367,11 @@ function forwardSocketEvents(socket, dispatch) {
|
|
|
360
367
|
socket.on("video_enable_requested", (payload) => dispatch(signalEvents.videoEnableRequested(payload)));
|
|
361
368
|
socket.on("breakout_group_joined", (payload) => dispatch(signalEvents.breakoutGroupJoined(payload)));
|
|
362
369
|
socket.on("breakout_session_updated", (payload) => dispatch(signalEvents.breakoutSessionUpdated(payload)));
|
|
370
|
+
socket.on("room_integration_started", (payload) => dispatch(signalEvents.roomIntegrationStarted(payload)));
|
|
371
|
+
socket.on("room_integration_stopped", (payload) => dispatch(signalEvents.roomIntegrationStopped(payload)));
|
|
372
|
+
socket.on("room_integration_props_updated", (payload) => dispatch(signalEvents.roomIntegrationPropsUpdated(payload)));
|
|
373
|
+
socket.on("room_integration_enabled", (payload) => dispatch(signalEvents.roomIntegrationEnabled(payload)));
|
|
374
|
+
socket.on("room_integration_disabled", (payload) => dispatch(signalEvents.roomIntegrationDisabled(payload)));
|
|
363
375
|
socket.on("breakout_move_to_group", () => dispatch(signalEvents.breakoutMoveToGroup()));
|
|
364
376
|
socket.on("breakout_move_to_main", () => dispatch(signalEvents.breakoutMoveToMain()));
|
|
365
377
|
socket.on("breakout_ending", () => dispatch(signalEvents.breakoutEnding()));
|
|
@@ -3463,6 +3475,386 @@ startAppListening({
|
|
|
3463
3475
|
},
|
|
3464
3476
|
});
|
|
3465
3477
|
|
|
3478
|
+
function roomIntegrationContentTagName(integrationName) {
|
|
3479
|
+
return `${integrationName}-integration-contentframe`;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
function isCustomElementName(value) {
|
|
3483
|
+
return typeof value === "string" && value === value.toLowerCase() && value.includes("-");
|
|
3484
|
+
}
|
|
3485
|
+
function isHttpsUrl(value) {
|
|
3486
|
+
if (typeof value !== "string") {
|
|
3487
|
+
return false;
|
|
3488
|
+
}
|
|
3489
|
+
try {
|
|
3490
|
+
return new URL(value).protocol === "https:";
|
|
3491
|
+
}
|
|
3492
|
+
catch (_a) {
|
|
3493
|
+
return false;
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
function isValidProps(value) {
|
|
3497
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
3498
|
+
return false;
|
|
3499
|
+
}
|
|
3500
|
+
return Object.values(value).every((entry) => entry === null || ["string", "number", "boolean"].includes(typeof entry));
|
|
3501
|
+
}
|
|
3502
|
+
function parseMatcher(matcher) {
|
|
3503
|
+
if (typeof matcher !== "string") {
|
|
3504
|
+
return null;
|
|
3505
|
+
}
|
|
3506
|
+
const parts = matcher.match(/^\/([\s\S]*)\/([a-z]*)$/);
|
|
3507
|
+
if (!parts) {
|
|
3508
|
+
return null;
|
|
3509
|
+
}
|
|
3510
|
+
const flags = (parts[2] || "").replace(/[gy]/g, "");
|
|
3511
|
+
try {
|
|
3512
|
+
return new RegExp(parts[1], flags);
|
|
3513
|
+
}
|
|
3514
|
+
catch (_a) {
|
|
3515
|
+
return null;
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
function parseRoomIntegration(response) {
|
|
3519
|
+
const { roomIntegrationId, name, title, description, type, icons, link, entrypoint, webview, isEmbeddable } = response || {};
|
|
3520
|
+
const matcher = parseMatcher(response === null || response === void 0 ? void 0 : response.matcher);
|
|
3521
|
+
if (roomIntegrationId === undefined ||
|
|
3522
|
+
roomIntegrationId === null ||
|
|
3523
|
+
!name ||
|
|
3524
|
+
!title ||
|
|
3525
|
+
!type ||
|
|
3526
|
+
!(icons === null || icons === void 0 ? void 0 : icons.small) ||
|
|
3527
|
+
!(icons === null || icons === void 0 ? void 0 : icons.large) ||
|
|
3528
|
+
!entrypoint ||
|
|
3529
|
+
!webview ||
|
|
3530
|
+
!matcher) {
|
|
3531
|
+
console.warn(`Ignoring malformed room integration: ${name || roomIntegrationId}`);
|
|
3532
|
+
return null;
|
|
3533
|
+
}
|
|
3534
|
+
return {
|
|
3535
|
+
roomIntegrationId: String(roomIntegrationId),
|
|
3536
|
+
name,
|
|
3537
|
+
title,
|
|
3538
|
+
description: description || "",
|
|
3539
|
+
type,
|
|
3540
|
+
contentTagName: roomIntegrationContentTagName(name),
|
|
3541
|
+
icons: { small: icons.small, large: icons.large },
|
|
3542
|
+
link: { href: (link === null || link === void 0 ? void 0 : link.href) || "", text: (link === null || link === void 0 ? void 0 : link.text) || "" },
|
|
3543
|
+
entrypoint,
|
|
3544
|
+
webview,
|
|
3545
|
+
matcher,
|
|
3546
|
+
isEmbeddable: isEmbeddable !== null && isEmbeddable !== void 0 ? isEmbeddable : false,
|
|
3547
|
+
};
|
|
3548
|
+
}
|
|
3549
|
+
function parseRoomIntegrationSession(event) {
|
|
3550
|
+
const { roomIntegrationId, roomIntegrationSessionId, breakoutGroupId, tagName, shareUrl, props, clientId, roomIntegrationSessionStartedAt, } = event || {};
|
|
3551
|
+
if (typeof roomIntegrationSessionId !== "string" ||
|
|
3552
|
+
roomIntegrationId === undefined ||
|
|
3553
|
+
roomIntegrationId === null ||
|
|
3554
|
+
typeof clientId !== "string" ||
|
|
3555
|
+
!isCustomElementName(tagName) ||
|
|
3556
|
+
!isHttpsUrl(shareUrl) ||
|
|
3557
|
+
!isValidProps(props)) {
|
|
3558
|
+
console.warn(`Ignoring malformed room integration session: ${roomIntegrationSessionId}`);
|
|
3559
|
+
return null;
|
|
3560
|
+
}
|
|
3561
|
+
return {
|
|
3562
|
+
roomIntegrationSessionId,
|
|
3563
|
+
roomIntegrationId: String(roomIntegrationId),
|
|
3564
|
+
breakoutGroupId: breakoutGroupId || "",
|
|
3565
|
+
tagName,
|
|
3566
|
+
shareUrl,
|
|
3567
|
+
props,
|
|
3568
|
+
clientId,
|
|
3569
|
+
roomIntegrationSessionStartedAt: typeof roomIntegrationSessionStartedAt === "number" && isFinite(roomIntegrationSessionStartedAt)
|
|
3570
|
+
? roomIntegrationSessionStartedAt
|
|
3571
|
+
: null,
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3574
|
+
const SIGNAL_ERROR_MESSAGES = {
|
|
3575
|
+
not_in_a_room: (action) => `Cannot ${action} a room integration: not in a room. The signal connection has a room session, but the server does not consider this client a participant of it.`,
|
|
3576
|
+
forbidden: (action) => `Not allowed to ${action} this room integration (forbidden)`,
|
|
3577
|
+
missing_parameters: (action) => `Could not ${action} the room integration: the request was missing parameters`,
|
|
3578
|
+
invalid_parameters: (action) => `Could not ${action} the room integration: the request had invalid parameters`,
|
|
3579
|
+
internal_server_error: (action) => `The server failed to ${action} the room integration`,
|
|
3580
|
+
};
|
|
3581
|
+
function roomIntegrationSignalError(error, action) {
|
|
3582
|
+
if (!isRoomIntegrationErrorCode(error)) {
|
|
3583
|
+
return { code: "unknown", message: `Could not ${action} the room integration: ${error}` };
|
|
3584
|
+
}
|
|
3585
|
+
return { code: error, message: SIGNAL_ERROR_MESSAGES[error](action) };
|
|
3586
|
+
}
|
|
3587
|
+
const roomIntegrationsSliceInitialState = {
|
|
3588
|
+
available: [],
|
|
3589
|
+
unavailable: [],
|
|
3590
|
+
enabled: [],
|
|
3591
|
+
running: [],
|
|
3592
|
+
isFetching: false,
|
|
3593
|
+
hasFetched: false,
|
|
3594
|
+
error: null,
|
|
3595
|
+
};
|
|
3596
|
+
const roomIntegrationsSlice = createSlice({
|
|
3597
|
+
name: "roomIntegrations",
|
|
3598
|
+
initialState: roomIntegrationsSliceInitialState,
|
|
3599
|
+
reducers: {
|
|
3600
|
+
setRoomIntegrationsError: (state, action) => {
|
|
3601
|
+
state.error = action.payload.error;
|
|
3602
|
+
},
|
|
3603
|
+
},
|
|
3604
|
+
extraReducers: (builder) => {
|
|
3605
|
+
builder.addCase(doFetchRoomIntegrations.pending, (state) => {
|
|
3606
|
+
state.isFetching = true;
|
|
3607
|
+
});
|
|
3608
|
+
builder.addCase(doFetchRoomIntegrations.fulfilled, (state, action) => {
|
|
3609
|
+
const { enabledRoomIntegrations, disabledRoomIntegrations, unavailableRoomIntegrations } = action.payload;
|
|
3610
|
+
const parse = (entries) => entries.map(parseRoomIntegration).filter((entry) => entry !== null);
|
|
3611
|
+
state.isFetching = false;
|
|
3612
|
+
state.hasFetched = true;
|
|
3613
|
+
state.error = null;
|
|
3614
|
+
state.available = [...parse(enabledRoomIntegrations), ...parse(disabledRoomIntegrations)];
|
|
3615
|
+
state.unavailable = parse(unavailableRoomIntegrations);
|
|
3616
|
+
state.enabled = enabledRoomIntegrations.map(({ roomIntegrationId }) => String(roomIntegrationId));
|
|
3617
|
+
});
|
|
3618
|
+
builder.addCase(doFetchRoomIntegrations.rejected, (state, action) => {
|
|
3619
|
+
state.isFetching = false;
|
|
3620
|
+
state.hasFetched = true;
|
|
3621
|
+
state.error = {
|
|
3622
|
+
code: "unknown",
|
|
3623
|
+
message: action.error.message || "Failed to fetch room integrations",
|
|
3624
|
+
};
|
|
3625
|
+
});
|
|
3626
|
+
builder.addCase(signalEvents.roomJoined, (state, action) => {
|
|
3627
|
+
if ("error" in action.payload) {
|
|
3628
|
+
return;
|
|
3629
|
+
}
|
|
3630
|
+
state.running = (action.payload.roomIntegrationSession || [])
|
|
3631
|
+
.map(parseRoomIntegrationSession)
|
|
3632
|
+
.filter((session) => session !== null);
|
|
3633
|
+
});
|
|
3634
|
+
builder.addCase(signalEvents.roomIntegrationStarted, (state, action) => {
|
|
3635
|
+
if ("error" in action.payload) {
|
|
3636
|
+
state.error = roomIntegrationSignalError(action.payload.error, "start");
|
|
3637
|
+
return;
|
|
3638
|
+
}
|
|
3639
|
+
const { roomIntegrationId, roomIntegrationSessionId, breakoutGroupId, roomIntegrationSessionStartedAt } = action.payload;
|
|
3640
|
+
const session = parseRoomIntegrationSession(Object.assign(Object.assign({}, action.payload.state), { roomIntegrationId,
|
|
3641
|
+
roomIntegrationSessionId,
|
|
3642
|
+
breakoutGroupId,
|
|
3643
|
+
roomIntegrationSessionStartedAt }));
|
|
3644
|
+
if (!session) {
|
|
3645
|
+
return;
|
|
3646
|
+
}
|
|
3647
|
+
const existing = state.running.findIndex((running) => running.roomIntegrationSessionId === session.roomIntegrationSessionId);
|
|
3648
|
+
if (existing >= 0) {
|
|
3649
|
+
state.running[existing] = session;
|
|
3650
|
+
return;
|
|
3651
|
+
}
|
|
3652
|
+
state.running.push(session);
|
|
3653
|
+
});
|
|
3654
|
+
builder.addCase(signalEvents.roomIntegrationStopped, (state, action) => {
|
|
3655
|
+
if ("error" in action.payload) {
|
|
3656
|
+
state.error = roomIntegrationSignalError(action.payload.error, "stop");
|
|
3657
|
+
return;
|
|
3658
|
+
}
|
|
3659
|
+
const { roomIntegrationSessionId } = action.payload;
|
|
3660
|
+
state.running = state.running.filter((running) => running.roomIntegrationSessionId !== roomIntegrationSessionId);
|
|
3661
|
+
});
|
|
3662
|
+
builder.addCase(signalEvents.roomIntegrationPropsUpdated, (state, action) => {
|
|
3663
|
+
if ("error" in action.payload) {
|
|
3664
|
+
state.error = roomIntegrationSignalError(action.payload.error, "update the props of");
|
|
3665
|
+
return;
|
|
3666
|
+
}
|
|
3667
|
+
const { roomIntegrationSessionId, props } = action.payload;
|
|
3668
|
+
const session = state.running.find((running) => running.roomIntegrationSessionId === roomIntegrationSessionId);
|
|
3669
|
+
if (!session || !isValidProps(props)) {
|
|
3670
|
+
return;
|
|
3671
|
+
}
|
|
3672
|
+
session.props = Object.assign(Object.assign({}, session.props), props);
|
|
3673
|
+
});
|
|
3674
|
+
builder.addCase(signalEvents.roomIntegrationEnabled, (state, action) => {
|
|
3675
|
+
const roomIntegrationId = String(action.payload.roomIntegrationId);
|
|
3676
|
+
if (!state.enabled.includes(roomIntegrationId)) {
|
|
3677
|
+
state.enabled.push(roomIntegrationId);
|
|
3678
|
+
}
|
|
3679
|
+
});
|
|
3680
|
+
builder.addCase(signalEvents.roomIntegrationDisabled, (state, action) => {
|
|
3681
|
+
const roomIntegrationId = String(action.payload.roomIntegrationId);
|
|
3682
|
+
state.enabled = state.enabled.filter((id) => id !== roomIntegrationId);
|
|
3683
|
+
});
|
|
3684
|
+
},
|
|
3685
|
+
});
|
|
3686
|
+
const { setRoomIntegrationsError } = roomIntegrationsSlice.actions;
|
|
3687
|
+
const doFetchRoomIntegrations = createAppAsyncThunk("roomIntegrations/doFetchRoomIntegrations", (_1, _a) => __awaiter(void 0, [_1, _a], void 0, function* (_, { extra, getState }) {
|
|
3688
|
+
const state = getState();
|
|
3689
|
+
const organizationId = selectOrganizationId(state);
|
|
3690
|
+
const roomName = selectAppRoomName(state);
|
|
3691
|
+
if (!organizationId || !roomName) {
|
|
3692
|
+
throw new Error("Cannot fetch room integrations before the organization and room are known");
|
|
3693
|
+
}
|
|
3694
|
+
return extra.services.roomIntegrationService.findRoomIntegrations({ organizationId, roomName });
|
|
3695
|
+
}));
|
|
3696
|
+
const doStartRoomIntegration = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3697
|
+
var _a;
|
|
3698
|
+
const state = getState();
|
|
3699
|
+
const { roomIntegrationId, tagName, shareUrl, props = {} } = payload;
|
|
3700
|
+
const integration = selectRoomIntegrationsRaw(state).available.find((entry) => entry.roomIntegrationId === roomIntegrationId);
|
|
3701
|
+
if (!integration) {
|
|
3702
|
+
dispatch(setRoomIntegrationsError({
|
|
3703
|
+
error: {
|
|
3704
|
+
code: "unknown_integration",
|
|
3705
|
+
message: `Unknown room integration: ${roomIntegrationId}`,
|
|
3706
|
+
},
|
|
3707
|
+
}));
|
|
3708
|
+
return;
|
|
3709
|
+
}
|
|
3710
|
+
if (!selectRoomIntegrationsEnabled(state).includes(roomIntegrationId)) {
|
|
3711
|
+
dispatch(setRoomIntegrationsError({
|
|
3712
|
+
error: {
|
|
3713
|
+
code: "integration_not_enabled",
|
|
3714
|
+
message: `Room integration is not enabled for this room: ${integration.name}`,
|
|
3715
|
+
},
|
|
3716
|
+
}));
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
if (!isCustomElementName(tagName)) {
|
|
3720
|
+
dispatch(setRoomIntegrationsError({
|
|
3721
|
+
error: {
|
|
3722
|
+
code: "invalid_content",
|
|
3723
|
+
message: `tagName must be a valid custom element name, got: ${tagName}`,
|
|
3724
|
+
},
|
|
3725
|
+
}));
|
|
3726
|
+
return;
|
|
3727
|
+
}
|
|
3728
|
+
if (!isHttpsUrl(shareUrl)) {
|
|
3729
|
+
dispatch(setRoomIntegrationsError({
|
|
3730
|
+
error: {
|
|
3731
|
+
code: "invalid_content",
|
|
3732
|
+
message: `shareUrl must be an https url, got: ${shareUrl}`,
|
|
3733
|
+
},
|
|
3734
|
+
}));
|
|
3735
|
+
return;
|
|
3736
|
+
}
|
|
3737
|
+
if (!isValidProps(props)) {
|
|
3738
|
+
dispatch(setRoomIntegrationsError({
|
|
3739
|
+
error: {
|
|
3740
|
+
code: "invalid_content",
|
|
3741
|
+
message: "props must be a flat object of primitive values",
|
|
3742
|
+
},
|
|
3743
|
+
}));
|
|
3744
|
+
return;
|
|
3745
|
+
}
|
|
3746
|
+
const clientId = selectSelfId(state);
|
|
3747
|
+
if (!clientId) {
|
|
3748
|
+
return;
|
|
3749
|
+
}
|
|
3750
|
+
dispatch(setRoomIntegrationsError({ error: null }));
|
|
3751
|
+
const request = {
|
|
3752
|
+
roomIntegrationId: Number(roomIntegrationId),
|
|
3753
|
+
breakoutGroupId: selectBreakoutCurrentId(state) || null,
|
|
3754
|
+
state: { tagName, shareUrl, props, clientId },
|
|
3755
|
+
};
|
|
3756
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("start_room_integration", request);
|
|
3757
|
+
});
|
|
3758
|
+
const ROOM_INTEGRATION_PICKER_MESSAGES = {
|
|
3759
|
+
FORM_SUBMIT: "whereby:formSubmit",
|
|
3760
|
+
FORM_CLOSE: "whereby:formClose",
|
|
3761
|
+
ERROR: "whereby:bootstrapError",
|
|
3762
|
+
};
|
|
3763
|
+
function roomIntegrationPickerUrl({ integration, parentOrigin, featureSource, }) {
|
|
3764
|
+
const url = new URL("bootstrap.html", integration.webview);
|
|
3765
|
+
url.searchParams.set("parentOrigin", parentOrigin);
|
|
3766
|
+
if (featureSource) {
|
|
3767
|
+
url.searchParams.set("featuresource", featureSource);
|
|
3768
|
+
}
|
|
3769
|
+
return url.href;
|
|
3770
|
+
}
|
|
3771
|
+
const doStopRoomIntegration = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3772
|
+
var _a;
|
|
3773
|
+
const state = getState();
|
|
3774
|
+
const { roomIntegrationSessionId, intent = "stop" } = payload;
|
|
3775
|
+
const session = selectRunningRoomIntegrations(state).find((running) => running.roomIntegrationSessionId === roomIntegrationSessionId);
|
|
3776
|
+
if (!session) {
|
|
3777
|
+
dispatch(setRoomIntegrationsError({
|
|
3778
|
+
error: {
|
|
3779
|
+
code: "unknown_integration",
|
|
3780
|
+
message: `No running room integration with session id: ${roomIntegrationSessionId}`,
|
|
3781
|
+
},
|
|
3782
|
+
}));
|
|
3783
|
+
return;
|
|
3784
|
+
}
|
|
3785
|
+
if (!session.canStop) {
|
|
3786
|
+
dispatch(setRoomIntegrationsError({
|
|
3787
|
+
error: {
|
|
3788
|
+
code: "not_allowed_to_stop",
|
|
3789
|
+
message: "Only the participant who started a room integration, or a host, can stop it",
|
|
3790
|
+
},
|
|
3791
|
+
}));
|
|
3792
|
+
return;
|
|
3793
|
+
}
|
|
3794
|
+
dispatch(setRoomIntegrationsError({ error: null }));
|
|
3795
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("stop_room_integration", { roomIntegrationSessionId, intent });
|
|
3796
|
+
});
|
|
3797
|
+
const doUpdateRoomIntegrationProps = createRoomConnectedThunk((payload) => (dispatch, getState) => {
|
|
3798
|
+
var _a;
|
|
3799
|
+
const state = getState();
|
|
3800
|
+
const { roomIntegrationSessionId, props } = payload;
|
|
3801
|
+
if (!isValidProps(props)) {
|
|
3802
|
+
dispatch(setRoomIntegrationsError({
|
|
3803
|
+
error: {
|
|
3804
|
+
code: "invalid_content",
|
|
3805
|
+
message: "props must be a flat object of primitive values",
|
|
3806
|
+
},
|
|
3807
|
+
}));
|
|
3808
|
+
return;
|
|
3809
|
+
}
|
|
3810
|
+
(_a = selectSignalConnectionRaw(state).socket) === null || _a === void 0 ? void 0 : _a.emit("update_room_integration_props", {
|
|
3811
|
+
roomIntegrationSessionId,
|
|
3812
|
+
props,
|
|
3813
|
+
});
|
|
3814
|
+
});
|
|
3815
|
+
const selectRoomIntegrationsRaw = (state) => state.roomIntegrations;
|
|
3816
|
+
const selectRoomIntegrationsError = (state) => state.roomIntegrations.error;
|
|
3817
|
+
const selectRoomIntegrationsIsFetching = (state) => state.roomIntegrations.isFetching;
|
|
3818
|
+
const selectRoomIntegrationsHasFetched = (state) => state.roomIntegrations.hasFetched;
|
|
3819
|
+
const selectRoomIntegrationsEnabled = (state) => state.roomIntegrations.enabled;
|
|
3820
|
+
const selectAvailableRoomIntegrations = (state) => state.roomIntegrations.available;
|
|
3821
|
+
const selectUnavailableRoomIntegrations = (state) => state.roomIntegrations.unavailable;
|
|
3822
|
+
const selectEnabledRoomIntegrations = createSelector(selectAvailableRoomIntegrations, selectRoomIntegrationsEnabled, (available, enabled) => available.filter((integration) => enabled.includes(integration.roomIntegrationId)));
|
|
3823
|
+
const selectEmbeddableRoomIntegrations = createSelector(selectEnabledRoomIntegrations, (enabled) => enabled.filter((integration) => integration.isEmbeddable));
|
|
3824
|
+
const selectRunningRoomIntegrations = createSelector(selectRoomIntegrationsRaw, selectEnabledRoomIntegrations, selectBreakoutActive, selectBreakoutCurrentId, selectSelfId, selectRemoteParticipants, selectIsAuthorizedToManageRoomIntegration, (raw, enabledIntegrations, breakoutActive, breakoutCurrentId, selfId, remoteParticipants, canManageRoomIntegration) => {
|
|
3825
|
+
const currentGroupId = breakoutActive ? breakoutCurrentId : "";
|
|
3826
|
+
return raw.running.reduce((acc, session) => {
|
|
3827
|
+
var _a;
|
|
3828
|
+
if (session.breakoutGroupId !== currentGroupId) {
|
|
3829
|
+
return acc;
|
|
3830
|
+
}
|
|
3831
|
+
const integration = enabledIntegrations.find((entry) => entry.roomIntegrationId === session.roomIntegrationId);
|
|
3832
|
+
if (!integration) {
|
|
3833
|
+
return acc;
|
|
3834
|
+
}
|
|
3835
|
+
const isPresenter = !!selfId && session.clientId === selfId;
|
|
3836
|
+
acc.push(Object.assign(Object.assign({}, session), { integration,
|
|
3837
|
+
isPresenter, canStop: isPresenter || canManageRoomIntegration, presenterDisplayName: isPresenter
|
|
3838
|
+
? null
|
|
3839
|
+
: ((_a = remoteParticipants.find((participant) => participant.id === session.clientId)) === null || _a === void 0 ? void 0 : _a.displayName) ||
|
|
3840
|
+
null }));
|
|
3841
|
+
return acc;
|
|
3842
|
+
}, []);
|
|
3843
|
+
});
|
|
3844
|
+
const selectIsRoomIntegrationRunning = createSelector(selectRunningRoomIntegrations, (running) => running.length > 0);
|
|
3845
|
+
const selectRoomIntegrationForUrl = createSelector(selectEmbeddableRoomIntegrations, (integrations) => (url) => integrations.find((integration) => integration.matcher.test(url)) || null);
|
|
3846
|
+
const selectShouldFetchRoomIntegrations = createSelector(selectAppIsActive, selectRoomConnectionStatus, selectOrganizationId, selectAppRoomName, selectRoomIntegrationsRaw, (appIsActive, connectionStatus, organizationId, roomName, raw) => appIsActive &&
|
|
3847
|
+
connectionStatus === "connected" &&
|
|
3848
|
+
!!organizationId &&
|
|
3849
|
+
!!roomName &&
|
|
3850
|
+
!raw.hasFetched &&
|
|
3851
|
+
!raw.isFetching);
|
|
3852
|
+
createReactor([selectShouldFetchRoomIntegrations], ({ dispatch }, shouldFetchRoomIntegrations) => {
|
|
3853
|
+
if (shouldFetchRoomIntegrations) {
|
|
3854
|
+
dispatch(doFetchRoomIntegrations());
|
|
3855
|
+
}
|
|
3856
|
+
});
|
|
3857
|
+
|
|
3466
3858
|
function createRtcAnalyticsCustomEvent(parameters) {
|
|
3467
3859
|
return parameters;
|
|
3468
3860
|
}
|
|
@@ -4075,6 +4467,7 @@ const appReducer = combineReducers({
|
|
|
4075
4467
|
remoteParticipants: remoteParticipantsSlice.reducer,
|
|
4076
4468
|
room: roomSlice.reducer,
|
|
4077
4469
|
roomConnection: roomConnectionSlice.reducer,
|
|
4470
|
+
roomIntegrations: roomIntegrationsSlice.reducer,
|
|
4078
4471
|
rtcAnalytics: rtcAnalyticsSlice.reducer,
|
|
4079
4472
|
rtcConnection: rtcConnectionSlice.reducer,
|
|
4080
4473
|
signalConnection: signalConnectionSlice.reducer,
|
|
@@ -4815,6 +5208,40 @@ class OrganizationServiceCache {
|
|
|
4815
5208
|
}
|
|
4816
5209
|
}
|
|
4817
5210
|
|
|
5211
|
+
function roomPath(organizationId, roomName, suffix = "") {
|
|
5212
|
+
const encodedRoomName = encodeURIComponent(roomName.replace(/^\//, ""));
|
|
5213
|
+
return `/organizations/${encodeURIComponent(organizationId)}/room/${encodedRoomName}${suffix}`;
|
|
5214
|
+
}
|
|
5215
|
+
function asArray(value) {
|
|
5216
|
+
return Array.isArray(value) ? value : [];
|
|
5217
|
+
}
|
|
5218
|
+
class RoomIntegrationService {
|
|
5219
|
+
constructor({ apiClient }) {
|
|
5220
|
+
this._apiClient = apiClient;
|
|
5221
|
+
}
|
|
5222
|
+
findRoomIntegrations(_a) {
|
|
5223
|
+
return __awaiter(this, arguments, void 0, function* ({ organizationId, roomName, }) {
|
|
5224
|
+
const response = yield this._apiClient.request(roomPath(organizationId, roomName, "/room-integrations"), {
|
|
5225
|
+
method: "GET",
|
|
5226
|
+
});
|
|
5227
|
+
const data = (response.data || {});
|
|
5228
|
+
return {
|
|
5229
|
+
enabledRoomIntegrations: asArray(data.enabledRoomIntegrations),
|
|
5230
|
+
disabledRoomIntegrations: asArray(data.disabledRoomIntegrations),
|
|
5231
|
+
unavailableRoomIntegrations: asArray(data.unavailableRoomIntegrations),
|
|
5232
|
+
};
|
|
5233
|
+
});
|
|
5234
|
+
}
|
|
5235
|
+
toggleRoomIntegration(_a) {
|
|
5236
|
+
return __awaiter(this, arguments, void 0, function* ({ organizationId, roomName, roomIntegrationId, enable, }) {
|
|
5237
|
+
yield this._apiClient.request(roomPath(organizationId, roomName, `/room-integrations/${roomIntegrationId}`), {
|
|
5238
|
+
method: "PUT",
|
|
5239
|
+
data: { enable },
|
|
5240
|
+
});
|
|
5241
|
+
});
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
|
|
4818
5245
|
const API_BASE_URL = "https://api.whereby.dev";
|
|
4819
5246
|
function createServices() {
|
|
4820
5247
|
const credentialsService = CredentialsService.create({
|
|
@@ -4825,6 +5252,7 @@ function createServices() {
|
|
|
4825
5252
|
baseUrl: API_BASE_URL,
|
|
4826
5253
|
});
|
|
4827
5254
|
const organizationService = new OrganizationService({ apiClient });
|
|
5255
|
+
const roomIntegrationService = new RoomIntegrationService({ apiClient });
|
|
4828
5256
|
const fetchOrganizationFromRoomUrl = (roomUrl) => {
|
|
4829
5257
|
const roomUrlObj = new URL(roomUrl);
|
|
4830
5258
|
const urls = fromLocation({ host: roomUrlObj.host });
|
|
@@ -4838,8 +5266,9 @@ function createServices() {
|
|
|
4838
5266
|
credentialsService,
|
|
4839
5267
|
apiClient,
|
|
4840
5268
|
organizationService,
|
|
5269
|
+
roomIntegrationService,
|
|
4841
5270
|
fetchOrganizationFromRoomUrl,
|
|
4842
5271
|
};
|
|
4843
5272
|
}
|
|
4844
5273
|
|
|
4845
|
-
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateDeviceList, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|
|
5274
|
+
export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, DEFAULT_BREAKOUT_TIMER_DURATION, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createBreakoutGroups, createNotificationEvent, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, defaultBreakoutGroupName, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doAssignAllBreakoutParticipants, doAssignBreakoutParticipants, doBreakoutJoin, doCancelKnock, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doDownloadFile, doEnableAudio, doEnableVideo, doEndMeeting, doExtendBreakoutTimer, doFetchRoomIntegrations, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doHoldWaitingParticipant, doKickParticipant, doKnockRoom, doLocalStreamEffect, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveChatMessage, doRemoveSpotlight, doRequestAudioEnable, doRequestScreenshareEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSendFiles, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateDeviceList, doUpdateRoomIntegrationProps, fileShareRequestSettled, fileShareSlice, fileShareSliceInitialState, fileUploadFailed, fileUploadSucceeded, fileUploadsStarted, initialCloudRecordingState, initialLiveCaptionsState, initialLiveTranscriptionState, initialLocalMediaState, initialNotificationsState, initialState$2 as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, liveCaptionsSlice, liveTranscriptionSlice, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseRoomIntegration, parseRoomIntegrationSession, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, remoteParticipantsSliceInitialState, removeSpotlight, resolutionReported, roomConnectionSlice, roomConnectionSliceInitialState, roomIntegrationPickerUrl, roomIntegrationSignalError, roomIntegrationsSlice, roomIntegrationsSliceInitialState, roomSlice, roomSliceInitialState, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcAnalyticsSliceInitialState, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcConnectionSliceInitialState, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppInitialMuteStates, selectAppIsActive, selectAppIsAssistant, selectAppIsAudioRecorder, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAssistantKey, selectAuthorizationRoleName, selectAvailableRoomIntegrations, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutAutoMoveToGroup, selectBreakoutAutoMoveToMain, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutEndTime, selectBreakoutEnforceAssignment, selectBreakoutError, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutIsAvailable, selectBreakoutMoveToGroupAt, selectBreakoutMoveToGroupGracePeriod, selectBreakoutMoveToMainAt, selectBreakoutMoveToMainGracePeriod, selectBreakoutRaw, selectBreakoutStartedAt, selectBreakoutTimerDuration, selectBreakoutTimerSetting, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomMode, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoomIntegrations, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectUnavailableRoomIntegrations, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutError, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
|