@whereby.com/core 0.32.10 → 0.33.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.
@@ -73,9 +73,9 @@ const createReactor = (selectors, callback) => {
73
73
  });
74
74
  };
75
75
 
76
- const coreVersion = "0.32.10";
76
+ const coreVersion = "0.33.0";
77
77
 
78
- const initialState$h = {
78
+ const initialState = {
79
79
  isNodeSdk: false,
80
80
  isActive: false,
81
81
  isDialIn: false,
@@ -88,7 +88,7 @@ const initialState$h = {
88
88
  };
89
89
  const appSlice = createSlice({
90
90
  name: "app",
91
- initialState: initialState$h,
91
+ initialState,
92
92
  reducers: {
93
93
  doAppStart: (state, action) => {
94
94
  const url = new URL(action.payload.roomUrl);
@@ -158,13 +158,13 @@ const ROOM_ACTION_PERMISSIONS_BY_ROLE = {
158
158
  canAskToSpeak: ["host"],
159
159
  canSpotlight: ["host"],
160
160
  };
161
- const initialState$g = {
161
+ const authorizationSliceInitialState = {
162
162
  roomKey: null,
163
163
  roleName: "none",
164
164
  };
165
165
  const authorizationSlice = createSlice({
166
166
  name: "authorization",
167
- initialState: initialState$g,
167
+ initialState: authorizationSliceInitialState,
168
168
  reducers: {
169
169
  setRoomKey: (state, action) => {
170
170
  return Object.assign(Object.assign({}, state), { roomKey: action.payload });
@@ -175,9 +175,15 @@ const authorizationSlice = createSlice({
175
175
  return Object.assign(Object.assign({}, state), { roomKey: action.payload.roomKey });
176
176
  });
177
177
  builder.addCase(signalEvents.roomJoined, (state, action) => {
178
- var _a, _b;
179
- const client = (_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.room) === null || _b === void 0 ? void 0 : _b.clients.find((c) => { var _a; return c.id === ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.selfId); });
180
- return Object.assign(Object.assign({}, state), { roleName: (client === null || client === void 0 ? void 0 : client.role.roleName) || "none" });
178
+ if ("error" in action.payload) {
179
+ return state;
180
+ }
181
+ const { room, selfId } = action.payload || {};
182
+ const client = room === null || room === void 0 ? void 0 : room.clients.find((c) => c.id === selfId);
183
+ if (client) {
184
+ return Object.assign(Object.assign({}, state), { roleName: (client === null || client === void 0 ? void 0 : client.role.roleName) || "none" });
185
+ }
186
+ return state;
181
187
  });
182
188
  },
183
189
  });
@@ -236,13 +242,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
236
242
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
237
243
  };
238
244
 
239
- const initialState$f = {
245
+ const deviceCredentialsSliceInitialState = {
240
246
  isFetching: false,
241
247
  data: null,
242
248
  };
243
249
  const deviceCredentialsSlice = createSlice({
244
250
  name: "deviceCredentials",
245
- initialState: initialState$f,
251
+ initialState: deviceCredentialsSliceInitialState,
246
252
  reducers: {},
247
253
  extraReducers: (builder) => {
248
254
  builder.addCase(doGetDeviceCredentials.pending, (state) => {
@@ -322,7 +328,7 @@ function createSocket() {
322
328
  };
323
329
  return new ServerSocket(socketHost, socketOverrides);
324
330
  }
325
- const initialState$e = {
331
+ const signalConnectionSliceInitialState = {
326
332
  deviceIdentified: false,
327
333
  isIdentifyingDevice: false,
328
334
  status: "ready",
@@ -330,7 +336,7 @@ const initialState$e = {
330
336
  };
331
337
  const signalConnectionSlice = createSlice({
332
338
  name: "signalConnection",
333
- initialState: initialState$e,
339
+ initialState: signalConnectionSliceInitialState,
334
340
  reducers: {
335
341
  socketConnecting: (state) => {
336
342
  return Object.assign(Object.assign({}, state), { status: "connecting" });
@@ -1058,15 +1064,19 @@ function createBreakout({ assignments, groups, startedAt, initiatedBy, breakoutS
1058
1064
  breakoutTimerSetting: breakoutTimerSetting || false,
1059
1065
  };
1060
1066
  }
1061
- const initialState$d = Object.assign(Object.assign({}, createBreakout()), { groupId: null });
1067
+ const breakoutSliceInitialState = Object.assign(Object.assign({}, createBreakout()), { groupId: null });
1062
1068
  const breakoutSlice = createSlice({
1063
1069
  name: "breakout",
1064
- initialState: initialState$d,
1070
+ initialState: breakoutSliceInitialState,
1065
1071
  reducers: {},
1066
1072
  extraReducers: (builder) => {
1067
1073
  builder.addCase(signalEvents.roomJoined, (state, action) => {
1068
- if (action.payload.breakout) {
1069
- return Object.assign(Object.assign({}, state), createBreakout(action.payload.breakout));
1074
+ if ("error" in action.payload) {
1075
+ return state;
1076
+ }
1077
+ const { breakout } = action.payload || {};
1078
+ if (breakout) {
1079
+ return Object.assign(Object.assign({}, state), createBreakout(breakout));
1070
1080
  }
1071
1081
  return state;
1072
1082
  });
@@ -1133,12 +1143,12 @@ startAppListening({
1133
1143
  },
1134
1144
  });
1135
1145
 
1136
- const initialState$c = {
1146
+ const chatSliceInitialState = {
1137
1147
  chatMessages: [],
1138
1148
  };
1139
1149
  const chatSlice = createSlice({
1140
1150
  name: "chat",
1141
- initialState: initialState$c,
1151
+ initialState: chatSliceInitialState,
1142
1152
  reducers: {},
1143
1153
  extraReducers(builder) {
1144
1154
  builder.addCase(signalEvents.chatMessage, (state, action) => {
@@ -1327,12 +1337,12 @@ function addStream(state, payload) {
1327
1337
  presentationStream: stream,
1328
1338
  });
1329
1339
  }
1330
- const initialState$b = {
1340
+ const remoteParticipantsSliceInitialState = {
1331
1341
  remoteParticipants: [],
1332
1342
  };
1333
1343
  const remoteParticipantsSlice = createSlice({
1334
1344
  name: "remoteParticipants",
1335
- initialState: initialState$b,
1345
+ initialState: remoteParticipantsSliceInitialState,
1336
1346
  reducers: {
1337
1347
  streamStatusUpdated: (state, action) => {
1338
1348
  let newState = state;
@@ -1354,12 +1364,16 @@ const remoteParticipantsSlice = createSlice({
1354
1364
  },
1355
1365
  extraReducers: (builder) => {
1356
1366
  builder.addCase(signalEvents.roomJoined, (state, action) => {
1357
- var _a;
1358
- if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.room))
1367
+ if ("error" in action.payload) {
1359
1368
  return state;
1360
- const selfId = action.payload.selfId;
1361
- const { clients } = action.payload.room;
1362
- return Object.assign(Object.assign({}, state), { remoteParticipants: clients.filter((c) => c.id !== selfId).map((c) => createRemoteParticipant(c)) });
1369
+ }
1370
+ const { room, selfId } = action.payload || {};
1371
+ if (room === null || room === void 0 ? void 0 : room.clients) {
1372
+ return Object.assign(Object.assign({}, state), { remoteParticipants: room.clients
1373
+ .filter((c) => c.id !== selfId)
1374
+ .map((c) => createRemoteParticipant(c)) });
1375
+ }
1376
+ return state;
1363
1377
  });
1364
1378
  builder.addCase(rtcEvents.streamAdded, (state, action) => {
1365
1379
  return addStream(state, action.payload);
@@ -1439,14 +1453,14 @@ const selectNumParticipants = createSelector(selectRemoteParticipants, selectLoc
1439
1453
  return clients.length + 1;
1440
1454
  });
1441
1455
 
1442
- const initialState$a = {
1456
+ const localScreenshareSliceInitialState = {
1443
1457
  status: "inactive",
1444
1458
  stream: null,
1445
1459
  error: null,
1446
1460
  };
1447
1461
  const localScreenshareSlice = createSlice({
1448
1462
  name: "localScreenshare",
1449
- initialState: initialState$a,
1463
+ initialState: localScreenshareSliceInitialState,
1450
1464
  reducers: {
1451
1465
  stopScreenshare(state, action) {
1452
1466
  return Object.assign(Object.assign({}, state), { status: "inactive", stream: null });
@@ -1521,20 +1535,23 @@ function isStreamerClient(client) {
1521
1535
  function isRecorderClient(client) {
1522
1536
  return client.roleName === "recorder";
1523
1537
  }
1524
- const initialState$9 = {
1538
+ const roomSliceInitialState = {
1525
1539
  isLocked: false,
1526
1540
  };
1527
1541
  const roomSlice = createSlice({
1528
1542
  name: "room",
1529
- initialState: initialState$9,
1543
+ initialState: roomSliceInitialState,
1530
1544
  reducers: {},
1531
1545
  extraReducers: (builder) => {
1532
1546
  builder.addCase(signalEvents.roomJoined, (state, action) => {
1533
- const { error, isLocked } = action.payload;
1534
- if (error) {
1547
+ if ("error" in action.payload) {
1548
+ if (action.payload.error === "room_locked") {
1549
+ return Object.assign(Object.assign({}, state), { isLocked: Boolean(action.payload.isLocked) });
1550
+ }
1535
1551
  return state;
1536
1552
  }
1537
- return Object.assign(Object.assign({}, state), { isLocked: Boolean(isLocked) });
1553
+ const { room } = action.payload;
1554
+ return Object.assign(Object.assign({}, state), { isLocked: Boolean(room.isLocked) });
1538
1555
  });
1539
1556
  builder.addCase(signalEvents.roomLocked, (state, action) => {
1540
1557
  const { isLocked } = action.payload;
@@ -1675,12 +1692,12 @@ function mapSpotlightsToClientViews(spotlights, clientViews) {
1675
1692
  return acc;
1676
1693
  }, []);
1677
1694
  }
1678
- const initialState$8 = {
1695
+ const spotlightsSliceInitialState = {
1679
1696
  sorted: [],
1680
1697
  };
1681
1698
  const spotlightsSlice = createSlice({
1682
1699
  name: "spotlights",
1683
- initialState: initialState$8,
1700
+ initialState: spotlightsSliceInitialState,
1684
1701
  reducers: {
1685
1702
  addSpotlight(state, action) {
1686
1703
  const { clientId, streamId } = action.payload;
@@ -1693,11 +1710,15 @@ const spotlightsSlice = createSlice({
1693
1710
  },
1694
1711
  extraReducers: (builder) => {
1695
1712
  builder.addCase(signalEvents.roomJoined, (state, action) => {
1696
- if (!action.payload.room) {
1713
+ var _a;
1714
+ if ("error" in action.payload) {
1697
1715
  return state;
1698
1716
  }
1699
- const { spotlights } = action.payload.room;
1700
- return Object.assign(Object.assign({}, state), { sorted: spotlights });
1717
+ const { room } = action.payload || {};
1718
+ if (room) {
1719
+ return Object.assign(Object.assign({}, state), { sorted: (_a = room.spotlights) !== null && _a !== void 0 ? _a : state.sorted });
1720
+ }
1721
+ return state;
1701
1722
  });
1702
1723
  builder.addCase(signalEvents.spotlightAdded, (state, action) => {
1703
1724
  const { clientId, streamId } = action.payload;
@@ -1797,7 +1818,7 @@ const createWebRtcEmitter = (dispatch) => {
1797
1818
  },
1798
1819
  };
1799
1820
  };
1800
- const initialState$7 = {
1821
+ const rtcConnectionSliceInitialState = {
1801
1822
  dispatcherCreated: false,
1802
1823
  error: null,
1803
1824
  isCreatingDispatcher: false,
@@ -1810,7 +1831,7 @@ const initialState$7 = {
1810
1831
  };
1811
1832
  const rtcConnectionSlice = createSlice({
1812
1833
  name: "rtcConnection",
1813
- initialState: initialState$7,
1834
+ initialState: rtcConnectionSliceInitialState,
1814
1835
  reducers: {
1815
1836
  isAcceptingStreams: (state, action) => {
1816
1837
  return Object.assign(Object.assign({}, state), { isAcceptingStreams: action.payload });
@@ -1820,7 +1841,7 @@ const rtcConnectionSlice = createSlice({
1820
1841
  return Object.assign(Object.assign({}, state), { reportedStreamResolutions: Object.assign(Object.assign({}, state.reportedStreamResolutions), { [streamId]: { width, height } }) });
1821
1842
  },
1822
1843
  rtcDisconnected: () => {
1823
- return Object.assign({}, initialState$7);
1844
+ return Object.assign({}, rtcConnectionSliceInitialState);
1824
1845
  },
1825
1846
  rtcDispatcherCreated: (state, action) => {
1826
1847
  return Object.assign(Object.assign({}, state), { dispatcherCreated: true, rtcManagerDispatcher: action.payload });
@@ -1852,7 +1873,10 @@ const rtcConnectionSlice = createSlice({
1852
1873
  builder.addCase(socketReconnecting, (state) => {
1853
1874
  return Object.assign(Object.assign({}, state), { status: "reconnecting" });
1854
1875
  });
1855
- builder.addCase(signalEvents.roomJoined, (state) => {
1876
+ builder.addCase(signalEvents.roomJoined, (state, action) => {
1877
+ if ("error" in action.payload) {
1878
+ return state;
1879
+ }
1856
1880
  return Object.assign(Object.assign({}, state), { status: state.status === "reconnecting" ? "ready" : state.status });
1857
1881
  });
1858
1882
  },
@@ -2118,18 +2142,18 @@ createReactor([selectStreamsToAccept, selectIsAcceptingStreams], ({ dispatch },
2118
2142
  }
2119
2143
  });
2120
2144
 
2121
- const initialState$6 = {
2145
+ const connectionMonitorSliceInitialState = {
2122
2146
  running: false,
2123
2147
  };
2124
2148
  const connectionMonitorSlice = createSlice({
2125
2149
  name: "connectionMonitor",
2126
- initialState: initialState$6,
2150
+ initialState: connectionMonitorSliceInitialState,
2127
2151
  reducers: {
2128
2152
  connectionMonitorStarted: (state, action) => {
2129
2153
  return Object.assign(Object.assign({}, state), { running: true, stopCallbackFunction: action.payload.stopIssueSubscription });
2130
2154
  },
2131
2155
  connectionMonitorStopped: () => {
2132
- return Object.assign({}, initialState$6);
2156
+ return Object.assign({}, connectionMonitorSliceInitialState);
2133
2157
  },
2134
2158
  },
2135
2159
  });
@@ -2223,7 +2247,7 @@ createReactor([selectShouldStopConnectionMonitor], ({ dispatch }, shouldStartCon
2223
2247
  }
2224
2248
  });
2225
2249
 
2226
- const initialState$5 = {
2250
+ const localParticipantSliceInitialState = {
2227
2251
  displayName: "",
2228
2252
  id: "",
2229
2253
  breakoutGroup: null,
@@ -2240,7 +2264,7 @@ const initialState$5 = {
2240
2264
  };
2241
2265
  const localParticipantSlice = createSlice({
2242
2266
  name: "localParticipant",
2243
- initialState: initialState$5,
2267
+ initialState: localParticipantSliceInitialState,
2244
2268
  reducers: {
2245
2269
  setDisplayName: (state, action) => {
2246
2270
  return Object.assign(Object.assign({}, state), { displayName: action.payload.displayName });
@@ -2263,9 +2287,16 @@ const localParticipantSlice = createSlice({
2263
2287
  return Object.assign(Object.assign({}, state), { stickyReaction: action.payload });
2264
2288
  });
2265
2289
  builder.addCase(signalEvents.roomJoined, (state, action) => {
2266
- var _a, _b;
2267
- const client = (_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.room) === null || _b === void 0 ? void 0 : _b.clients.find((c) => { var _a; return c.id === ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.selfId); });
2268
- return Object.assign(Object.assign({}, state), { id: action.payload.selfId, roleName: (client === null || client === void 0 ? void 0 : client.role.roleName) || "none", clientClaim: action.payload.clientClaim, breakoutGroup: (client === null || client === void 0 ? void 0 : client.breakoutGroup) || null });
2290
+ var _a;
2291
+ if ("error" in action.payload) {
2292
+ if (action.payload.error === "room_locked") {
2293
+ return Object.assign(Object.assign({}, state), { id: action.payload.selfId });
2294
+ }
2295
+ return state;
2296
+ }
2297
+ const { room, selfId, clientClaim } = action.payload || {};
2298
+ const client = room.clients.find((c) => c.id === selfId);
2299
+ return Object.assign(Object.assign({}, state), { id: selfId, roleName: ((_a = client === null || client === void 0 ? void 0 : client.role) === null || _a === void 0 ? void 0 : _a.roleName) || "none", clientClaim, breakoutGroup: (client === null || client === void 0 ? void 0 : client.breakoutGroup) || null });
2269
2300
  });
2270
2301
  builder.addCase(signalEvents.breakoutGroupJoined, (state, action) => {
2271
2302
  var _a, _b;
@@ -2531,14 +2562,14 @@ startAppListening({
2531
2562
  },
2532
2563
  });
2533
2564
 
2534
- const initialState$4 = {
2565
+ const organizationSliceInitialState = {
2535
2566
  data: null,
2536
2567
  isFetching: false,
2537
2568
  error: null,
2538
2569
  };
2539
2570
  const organizationSlice = createSlice({
2540
- initialState: initialState$4,
2541
2571
  name: "organization",
2572
+ initialState: organizationSliceInitialState,
2542
2573
  reducers: {},
2543
2574
  extraReducers: (builder) => {
2544
2575
  builder.addCase(doOrganizationFetch.pending, (state) => {
@@ -2585,14 +2616,14 @@ createReactor([selectShouldFetchOrganization], ({ dispatch }, shouldFetchOrganiz
2585
2616
  }
2586
2617
  });
2587
2618
 
2588
- const initialState$3 = {
2619
+ const roomConnectionSliceInitialState = {
2589
2620
  session: null,
2590
2621
  status: "ready",
2591
2622
  error: null,
2592
2623
  };
2593
2624
  const roomConnectionSlice = createSlice({
2594
- initialState: initialState$3,
2595
2625
  name: "roomConnection",
2626
+ initialState: roomConnectionSliceInitialState,
2596
2627
  reducers: {
2597
2628
  connectionStatusChanged: (state, action) => {
2598
2629
  return Object.assign(Object.assign({}, state), { status: action.payload });
@@ -2600,15 +2631,15 @@ const roomConnectionSlice = createSlice({
2600
2631
  },
2601
2632
  extraReducers: (builder) => {
2602
2633
  builder.addCase(signalEvents.roomJoined, (state, action) => {
2603
- var _a, _b;
2604
- const { error, isLocked } = action.payload;
2605
- if (error === "room_locked" && isLocked) {
2606
- return Object.assign(Object.assign({}, state), { status: "room_locked" });
2607
- }
2608
- if (error) {
2609
- return Object.assign(Object.assign({}, state), { status: "disconnected", error });
2634
+ var _a;
2635
+ if ("error" in action.payload) {
2636
+ if (action.payload.error === "room_locked" && action.payload.isLocked) {
2637
+ return Object.assign(Object.assign({}, state), { status: "room_locked" });
2638
+ }
2639
+ return Object.assign(Object.assign({}, state), { status: "disconnected", error: action.payload.error });
2610
2640
  }
2611
- return Object.assign(Object.assign({}, state), { status: "connected", session: (_b = (_a = action.payload.room) === null || _a === void 0 ? void 0 : _a.session) !== null && _b !== void 0 ? _b : null });
2641
+ const { room } = action.payload;
2642
+ return Object.assign(Object.assign({}, state), { status: "connected", session: (_a = room.session) !== null && _a !== void 0 ? _a : null });
2612
2643
  });
2613
2644
  builder.addCase(signalEvents.disconnect, (state) => {
2614
2645
  if (["kicked", "left"].includes(state.status)) {
@@ -2859,12 +2890,12 @@ const makeComparable = (value) => {
2859
2890
  return JSON.stringify(value);
2860
2891
  return value;
2861
2892
  };
2862
- const initialState$2 = {
2893
+ const rtcAnalyticsSliceInitialState = {
2863
2894
  reportedValues: {},
2864
2895
  };
2865
2896
  const rtcAnalyticsSlice = createSlice({
2866
- initialState: initialState$2,
2867
2897
  name: "rtcAnalytics",
2898
+ initialState: rtcAnalyticsSliceInitialState,
2868
2899
  reducers: {
2869
2900
  updateReportedValues(state, action) {
2870
2901
  return Object.assign(Object.assign({}, state), { reportedValues: Object.assign(Object.assign({}, state.reportedValues), { [action.payload.rtcEventName]: action.payload.value }) });
@@ -2923,14 +2954,14 @@ createReactor([selectRtcManagerInitialized], ({ dispatch }, selectRtcManagerInit
2923
2954
  }
2924
2955
  });
2925
2956
 
2926
- const initialState$1 = {
2957
+ const streamingSliceInitialState = {
2927
2958
  isStreaming: false,
2928
2959
  error: null,
2929
2960
  startedAt: undefined,
2930
2961
  };
2931
2962
  const streamingSlice = createSlice({
2932
2963
  name: "streaming",
2933
- initialState: initialState$1,
2964
+ initialState: streamingSliceInitialState,
2934
2965
  reducers: {
2935
2966
  doHandleStreamingStarted: (state) => {
2936
2967
  return Object.assign(Object.assign({}, state), { isStreaming: true, error: null, startedAt: new Date().getTime() });
@@ -2943,25 +2974,26 @@ const streamingSlice = createSlice({
2943
2974
  const { doHandleStreamingStarted, doHandleStreamingStopped } = streamingSlice.actions;
2944
2975
  const selectStreamingRaw = (state) => state.streaming;
2945
2976
 
2946
- const initialState = {
2977
+ const waitingParticipantsSliceInitialState = {
2947
2978
  waitingParticipants: [],
2948
2979
  };
2949
2980
  const waitingParticipantsSlice = createSlice({
2950
2981
  name: "waitingParticipants",
2951
- initialState,
2982
+ initialState: waitingParticipantsSliceInitialState,
2952
2983
  reducers: {},
2953
2984
  extraReducers: (builder) => {
2954
- builder.addCase(signalEvents.roomJoined, (state, { payload }) => {
2955
- var _a;
2956
- if ((_a = payload.room) === null || _a === void 0 ? void 0 : _a.knockers.length) {
2957
- return Object.assign(Object.assign({}, state), { waitingParticipants: payload.room.knockers.map((knocker) => ({
2985
+ builder.addCase(signalEvents.roomJoined, (state, action) => {
2986
+ if ("error" in action.payload) {
2987
+ return state;
2988
+ }
2989
+ const { room } = action.payload;
2990
+ if (room.knockers.length) {
2991
+ return Object.assign(Object.assign({}, state), { waitingParticipants: room.knockers.map((knocker) => ({
2958
2992
  id: knocker.clientId,
2959
2993
  displayName: knocker.displayName,
2960
2994
  })) });
2961
2995
  }
2962
- else {
2963
- return state;
2964
- }
2996
+ return state;
2965
2997
  });
2966
2998
  builder.addCase(signalEvents.roomKnocked, (state, action) => {
2967
2999
  const { clientId, displayName } = action.payload;
@@ -4069,4 +4101,4 @@ function createServices() {
4069
4101
  };
4070
4102
  }
4071
4103
 
4072
- export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, breakoutSlice, chatSlice, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState$h as initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, removeSpotlight, resolutionReported, roomConnectionSlice, roomSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, rtcClientConnectionStatusChanged, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcEvents, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAllClientViews, selectAllClientViewsInCurrentGroup, selectAppDisplayName, selectAppExternalId, selectAppIgnoreBreakoutGroups, selectAppInitialConfig, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
4104
+ export { ApiClient, Credentials, CredentialsService, LocalParticipant, OrganizationApiClient, OrganizationService, OrganizationServiceCache, RoomService, addAppListener, addSpotlight, appSlice, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, chatSlice, chatSliceInitialState, cloudRecordingSlice, connectionMonitorSlice, connectionMonitorSliceInitialState, connectionMonitorStarted, connectionMonitorStopped, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createAsyncRoomConnectedThunk, createAuthorizedRoomConnectedThunk, createReactor, createRemoteParticipant, createRoomConnectedThunk, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceCredentialsSliceInitialState, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppStart, doAppStop, doBreakoutJoin, doClearNotifications, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doEndMeeting, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKickParticipant, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRemoveSpotlight, doRequestAudioEnable, doRequestVideoEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSendClientMetadata, doSetDevice, doSetDisplayName, doSetLocalStickyReaction, doSetNotification, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartCloudRecording, doStartConnectionMonitor, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopConnectionMonitor, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doToggleLowDataMode, doUpdateDeviceList, getAudioTrack, getFakeMediaStream, getVideoTrack, hasValue, initialCloudRecordingState, initialLocalMediaState, initialNotificationsState, initialState, isAcceptingStreams, isClientSpotlighted, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localParticipantSliceInitialState, localScreenshareSlice, localScreenshareSliceInitialState, localStreamMetadataUpdated, notificationsSlice, observeStore, organizationSlice, organizationSliceInitialState, parseUnverifiedRoomKeyData, 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, selectAppIsActive, selectAppIsDialIn, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAuthorizationRoleName, selectBreakoutActive, selectBreakoutAssignments, selectBreakoutCurrentGroup, selectBreakoutCurrentId, selectBreakoutGroupedParticipants, selectBreakoutGroups, selectBreakoutInitiatedBy, selectBreakoutRaw, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMonitorIsRunning, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationRaw, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomIsLocked, selectRoomKey, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectShouldStartConnectionMonitor, selectShouldStopConnectionMonitor, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectSpotlightedClientViews, selectSpotlights, selectSpotlightsRaw, selectStopCallbackFunction, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setBreakoutGroupAssigned, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setCurrentSpeakerDeviceId, setDisplayName, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/core",
3
3
  "description": "Core library for whereby.com sdk",
4
4
  "author": "Whereby AS",
5
- "version": "0.32.10",
5
+ "version": "0.33.0",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
8
  "clean": "rimraf dist node_modules .turbo",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@reduxjs/toolkit": "^2.2.3",
52
- "@whereby.com/media": "1.21.1",
52
+ "@whereby.com/media": "1.23.0",
53
53
  "axios": "^1.2.3",
54
54
  "btoa": "^1.2.1",
55
55
  "events": "^3.3.0"