@whereby.com/core 1.31.7 → 1.32.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.
@@ -74,7 +74,7 @@ const createReactor = (selectors, callback) => {
74
74
  });
75
75
  };
76
76
 
77
- const coreVersion = "1.31.7";
77
+ const coreVersion = "1.32.0";
78
78
 
79
79
  function decodeRoomName(roomName) {
80
80
  if (!roomName) {
@@ -2421,32 +2421,80 @@ function isStreamerClient(client) {
2421
2421
  function isRecorderClient(client) {
2422
2422
  return client.roleName === "recorder";
2423
2423
  }
2424
+ function lockStateFromSignal(state, isLocked) {
2425
+ if (!state.isInRoom) {
2426
+ return state;
2427
+ }
2428
+ return Object.assign(Object.assign({}, state), { isLocked, lockStateSource: "signal", roomFetchStatus: "fetched", roomFetchRequestId: null });
2429
+ }
2424
2430
  const roomSliceInitialState = {
2425
2431
  isLocked: false,
2432
+ lockStateSource: null,
2433
+ lockStateRoomUrl: null,
2434
+ requestedRoomUrl: null,
2435
+ roomFetchStatus: "idle",
2436
+ roomFetchRequestId: null,
2437
+ isInRoom: false,
2426
2438
  mode: null,
2427
2439
  };
2428
2440
  const roomSlice = createSlice({
2429
2441
  name: "room",
2430
2442
  initialState: roomSliceInitialState,
2431
- reducers: {},
2443
+ reducers: {
2444
+ setRequestedRoomUrl: (state, action) => {
2445
+ if (state.roomFetchStatus === "failed") {
2446
+ return Object.assign(Object.assign({}, state), { requestedRoomUrl: action.payload, roomFetchStatus: "idle" });
2447
+ }
2448
+ if (action.payload === state.requestedRoomUrl) {
2449
+ return state;
2450
+ }
2451
+ return Object.assign(Object.assign({}, state), { requestedRoomUrl: action.payload });
2452
+ },
2453
+ },
2432
2454
  extraReducers: (builder) => {
2455
+ builder.addCase(appSlice.actions.doAppStart, (state) => {
2456
+ return Object.assign(Object.assign({}, state), { isInRoom: true });
2457
+ });
2458
+ builder.addCase(appSlice.actions.doAppStop, (state) => {
2459
+ return Object.assign(Object.assign({}, state), { isInRoom: false });
2460
+ });
2433
2461
  builder.addCase(signalEvents.roomJoined, (state, action) => {
2434
2462
  var _a;
2435
2463
  if ("error" in action.payload) {
2436
2464
  if (action.payload.error === "room_locked") {
2437
- return Object.assign(Object.assign({}, state), { isLocked: Boolean(action.payload.isLocked) });
2465
+ return lockStateFromSignal(state, Boolean(action.payload.isLocked));
2438
2466
  }
2439
2467
  return state;
2440
2468
  }
2441
2469
  const { room } = action.payload;
2442
- return Object.assign(Object.assign({}, state), { isLocked: Boolean(room.isLocked), mode: (_a = room.mode) !== null && _a !== void 0 ? _a : (room.sfuServer ? "group" : "normal") });
2470
+ return Object.assign(Object.assign({}, lockStateFromSignal(state, Boolean(room.isLocked))), { mode: (_a = room.mode) !== null && _a !== void 0 ? _a : (room.sfuServer ? "group" : "normal") });
2443
2471
  });
2444
2472
  builder.addCase(signalEvents.roomLocked, (state, action) => {
2445
- const { isLocked } = action.payload;
2446
- return Object.assign(Object.assign({}, state), { isLocked: Boolean(isLocked) });
2473
+ return lockStateFromSignal(state, Boolean(action.payload.isLocked));
2474
+ });
2475
+ builder.addCase(doFetchRoom.pending, (state, action) => {
2476
+ return Object.assign(Object.assign({}, state), { isLocked: false, lockStateSource: null, lockStateRoomUrl: action.meta.arg, roomFetchStatus: "fetching", roomFetchRequestId: action.meta.requestId });
2477
+ });
2478
+ builder.addCase(doFetchRoom.fulfilled, (state, action) => {
2479
+ var _a;
2480
+ if (action.meta.requestId !== state.roomFetchRequestId) {
2481
+ return state;
2482
+ }
2483
+ return Object.assign(Object.assign({}, state), { isLocked: (_a = action.payload.isLocked) !== null && _a !== void 0 ? _a : false, lockStateSource: action.payload.isLocked === null ? null : "fetch", roomFetchStatus: "fetched" });
2484
+ });
2485
+ builder.addCase(doFetchRoom.rejected, (state, action) => {
2486
+ if (action.meta.requestId !== state.roomFetchRequestId) {
2487
+ return state;
2488
+ }
2489
+ return Object.assign(Object.assign({}, state), { roomFetchStatus: "failed" });
2447
2490
  });
2448
2491
  },
2449
2492
  });
2493
+ const { setRequestedRoomUrl } = roomSlice.actions;
2494
+ const doFetchRoom = createAppAsyncThunk("room/doFetchRoom", (roomUrl_1, _a) => __awaiter(void 0, [roomUrl_1, _a], void 0, function* (roomUrl, { extra }) {
2495
+ const room = yield extra.services.fetchRoomFromRoomUrl(roomUrl);
2496
+ return { isLocked: room.isClaimed && !room.isBanned ? Boolean(room.isLocked) : null };
2497
+ }));
2450
2498
  const doLockRoom = createAppAuthorizedThunk((state) => selectIsAuthorizedToLockRoom(state), (payload) => (_, getState) => {
2451
2499
  const state = getState();
2452
2500
  const { socket } = selectSignalConnectionRaw(state);
@@ -2469,6 +2517,12 @@ const doEndMeeting = createAppAuthorizedThunk((state) => selectIsAuthorizedToEnd
2469
2517
  }
2470
2518
  });
2471
2519
  const selectRoomIsLocked = (state) => state.room.isLocked;
2520
+ const selectRoomLockStateSource = (state) => state.room.lockStateSource;
2521
+ const selectRoomLockStateRoomUrl = (state) => state.room.lockStateRoomUrl;
2522
+ const selectRoomRequestedUrl = (state) => state.room.requestedRoomUrl;
2523
+ const selectRoomFetchStatus = (state) => state.room.roomFetchStatus;
2524
+ const selectRoomLockState = createSelector(selectRoomIsLocked, selectRoomLockStateSource, (isLocked, source) => source ? isLocked : null);
2525
+ const selectShouldFetchRoom = createSelector(selectAppIsActive, selectRoomRequestedUrl, selectRoomLockStateRoomUrl, selectRoomFetchStatus, (appIsActive, requestedRoomUrl, lockStateRoomUrl, roomFetchStatus) => !appIsActive && !!requestedRoomUrl && (requestedRoomUrl !== lockStateRoomUrl || roomFetchStatus === "idle"));
2472
2526
  const selectRoomMode = (state) => state.room.mode;
2473
2527
  const selectScreenshares = createSelector(selectLocalScreenshareStream, selectLocalParticipantRaw, selectRemoteParticipants, (localScreenshareStream, localParticipant, remoteParticipants) => {
2474
2528
  const screenshares = [];
@@ -2561,6 +2615,12 @@ const selectBreakoutGroupedParticipants = createSelector(selectAllClientViews, s
2561
2615
  }));
2562
2616
  return [mainRoom, ...groups];
2563
2617
  });
2618
+ createReactor([selectShouldFetchRoom], ({ dispatch, getState }, shouldFetchRoom) => {
2619
+ const roomUrl = selectRoomRequestedUrl(getState());
2620
+ if (shouldFetchRoom && roomUrl) {
2621
+ dispatch(doFetchRoom(roomUrl));
2622
+ }
2623
+ });
2564
2624
 
2565
2625
  function streamIdForClient({ isPresentation, stream }) {
2566
2626
  var _a, _b;
@@ -2912,6 +2972,13 @@ startAppListening({
2912
2972
  rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.stopOrResumeVideo({ enable: selectIsCameraEnabled(getState()) });
2913
2973
  },
2914
2974
  });
2975
+ startAppListening({
2976
+ predicate: (_action, currentState, previousState) => selectIsMicrophoneEnabled(currentState) !== selectIsMicrophoneEnabled(previousState),
2977
+ effect: (_action, { getState }) => {
2978
+ const { rtcManager } = selectRtcConnectionRaw(getState());
2979
+ rtcManager === null || rtcManager === void 0 ? void 0 : rtcManager.stopOrResumeAudio({ enable: selectIsMicrophoneEnabled(getState()) });
2980
+ },
2981
+ });
2915
2982
  startAppListening({
2916
2983
  actionCreator: doStartScreenshare.fulfilled,
2917
2984
  effect: ({ payload }, { getState }) => {
@@ -4912,13 +4979,15 @@ const appReducer = combineReducers({
4912
4979
  waitingParticipants: waitingParticipantsSlice.reducer,
4913
4980
  });
4914
4981
  const rootReducer = (state, action) => {
4915
- var _a;
4982
+ var _a, _b, _c;
4916
4983
  if (doAppStart.match(action)) {
4917
4984
  const resetState = {
4918
4985
  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 }),
4919
4986
  localMedia: Object.assign(Object.assign({}, localMediaSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.localMedia),
4920
4987
  cameraEffects: Object.assign(Object.assign({}, cameraEffectsSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.cameraEffects),
4921
4988
  audioDenoiser: Object.assign(Object.assign({}, audioDenoiserSlice.getInitialState()), state === null || state === void 0 ? void 0 : state.audioDenoiser),
4989
+ room: (state === null || state === void 0 ? void 0 : state.room) && action.payload.roomUrl === state.room.lockStateRoomUrl
4990
+ ? Object.assign(Object.assign({}, state.room), { mode: null }) : Object.assign(Object.assign({}, roomSlice.getInitialState()), { lockStateRoomUrl: action.payload.roomUrl, requestedRoomUrl: (_c = (_b = state === null || state === void 0 ? void 0 : state.room) === null || _b === void 0 ? void 0 : _b.requestedRoomUrl) !== null && _c !== void 0 ? _c : null }),
4922
4991
  };
4923
4992
  return appReducer(resetState, action);
4924
4993
  }
@@ -4982,10 +5051,24 @@ function assertInstanceOf(value, type, parameterName) {
4982
5051
  assert.ok(value instanceof type, `${resolvedParameterName}<${type.name}> is required`);
4983
5052
  return value;
4984
5053
  }
5054
+ function assertRoomName(roomName, parameterName = "roomName") {
5055
+ assertString(roomName, parameterName);
5056
+ assert.ok(typeof roomName === "string" && roomName[0] === "/", `${parameterName} must begin with a '/'`);
5057
+ return roomName;
5058
+ }
4985
5059
  function assertArray(array, parameterName) {
4986
5060
  assert.ok(Array.isArray(array), `${parameterName}<array> is required`);
4987
5061
  return array;
4988
5062
  }
5063
+ function assertOneOf(value, allowedValues, parameterName) {
5064
+ assertTruthy(value, "value");
5065
+ assertArray(allowedValues, "allowedValues");
5066
+ const isAllowed = allowedValues.includes(value);
5067
+ if (!isAllowed) {
5068
+ throw new Error(`${parameterName}<string> must be one of the following: ${allowedValues.join(", ")}`);
5069
+ }
5070
+ return value;
5071
+ }
4989
5072
  function assertRecord(ref, name) {
4990
5073
  if (ref === null || ref === undefined || typeof ref !== "object" || Array.isArray(ref)) {
4991
5074
  throw new Error(`${name} must be a record. ${JSON.stringify(ref)}`);
@@ -5145,6 +5228,14 @@ function extractString(data, propertyName) {
5145
5228
  return assertString(record[propertyName], propertyName);
5146
5229
  }
5147
5230
  const extractNullOrString = nullOrExtract(extractString);
5231
+ function extractDate(data, propertyName) {
5232
+ const dateString = extractString(data, propertyName);
5233
+ const d = new Date(dateString);
5234
+ if (isNaN(d.getTime())) {
5235
+ throw new Error(`Invalid date for ${dateString}`);
5236
+ }
5237
+ return d;
5238
+ }
5148
5239
  function extractArrayOfJson(data, propertyName) {
5149
5240
  const record = assertRecord(data, "data");
5150
5241
  return assertArray(record[propertyName], propertyName);
@@ -5354,6 +5445,33 @@ class CredentialsService extends EventEmitter {
5354
5445
  }
5355
5446
  }
5356
5447
 
5448
+ const noOrganization = () => Promise.resolve(undefined);
5449
+ class OrganizationApiClient {
5450
+ constructor({ apiClient, fetchOrganization = noOrganization, }) {
5451
+ this._apiClient = apiClient;
5452
+ this._fetchOrganization = fetchOrganization;
5453
+ this._apiClient = apiClient;
5454
+ }
5455
+ _callRequestMethod(method, url, options) {
5456
+ assertString(url, "url");
5457
+ assert.ok(url[0] === "/", 'url<String> only accepts relative URLs beginning with "/".');
5458
+ assert.ok(options, "options are required");
5459
+ return this._fetchOrganization().then((organization) => {
5460
+ if (!organization) {
5461
+ return this._apiClient[method](url, options);
5462
+ }
5463
+ const { organizationId } = organization;
5464
+ return this._apiClient[method](`/organizations/${encodeURIComponent(organizationId)}${url}`, options);
5465
+ });
5466
+ }
5467
+ request(url, options) {
5468
+ return this._callRequestMethod("request", url, options);
5469
+ }
5470
+ requestMultipart(url, options) {
5471
+ return this._callRequestMethod("requestMultipart", url, options);
5472
+ }
5473
+ }
5474
+
5357
5475
  class EmbeddedFreeTierStatus {
5358
5476
  constructor({ isExhausted, renewsAt, totalMinutesLimit, totalMinutesUsed, }) {
5359
5477
  this.isExhausted = isExhausted;
@@ -5645,6 +5763,229 @@ class OrganizationServiceCache {
5645
5763
  }
5646
5764
  }
5647
5765
 
5766
+ class Room {
5767
+ constructor(properties = {}) {
5768
+ assert.ok(properties instanceof Object, "properties<object> must be empty or an object");
5769
+ this.isClaimed = false;
5770
+ this.isBanned = false;
5771
+ this.isLocked = false;
5772
+ this.knockPage = {
5773
+ backgroundImageUrl: null,
5774
+ backgroundThumbnailUrl: null,
5775
+ };
5776
+ this.logoUrl = null;
5777
+ this.backgroundImageUrl = null;
5778
+ this.backgroundThumbnailUrl = null;
5779
+ this.type = null;
5780
+ this.legacyRoomType = null;
5781
+ this.mode = null;
5782
+ this.product = null;
5783
+ this.roomName = null;
5784
+ this.theme = null;
5785
+ this.preferences = {};
5786
+ this.protectedPreferences = {};
5787
+ this.publicProfile = null;
5788
+ const validProperties = {};
5789
+ Object.getOwnPropertyNames(properties).forEach((prop) => {
5790
+ if (Object.getOwnPropertyNames(this).indexOf(prop) !== -1) {
5791
+ validProperties[prop] = properties[prop];
5792
+ }
5793
+ });
5794
+ if (properties.ownerId !== undefined) {
5795
+ this.ownerId = properties.ownerId;
5796
+ }
5797
+ if (properties.meeting !== undefined) {
5798
+ this.meeting = properties.meeting;
5799
+ }
5800
+ Object.assign(this, validProperties);
5801
+ }
5802
+ }
5803
+
5804
+ class Meeting {
5805
+ constructor({ meetingId, roomName, roomUrl, startDate, endDate, hostRoomUrl, viewerRoomUrl }) {
5806
+ assertString(meetingId, "meetingId");
5807
+ assertString(roomName, "roomName");
5808
+ assertString(roomUrl, "roomUrl");
5809
+ assertInstanceOf(startDate, Date, "startDate");
5810
+ assertInstanceOf(endDate, Date, "endDate");
5811
+ this.meetingId = meetingId;
5812
+ this.roomName = roomName;
5813
+ this.roomUrl = roomUrl;
5814
+ this.startDate = startDate;
5815
+ this.endDate = endDate;
5816
+ this.hostRoomUrl = hostRoomUrl;
5817
+ this.viewerRoomUrl = viewerRoomUrl;
5818
+ }
5819
+ static fromJson(data) {
5820
+ return new Meeting({
5821
+ meetingId: extractString(data, "meetingId"),
5822
+ roomName: extractString(data, "roomName"),
5823
+ roomUrl: extractString(data, "roomUrl"),
5824
+ startDate: extractDate(data, "startDate"),
5825
+ endDate: extractDate(data, "endDate"),
5826
+ hostRoomUrl: extractNullOrString(data, "hostRoomUrl"),
5827
+ viewerRoomUrl: extractNullOrString(data, "viewerRoomUrl"),
5828
+ });
5829
+ }
5830
+ }
5831
+
5832
+ function createRoomUrl(roomName, path = "") {
5833
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5834
+ return `/room/${encodedDisplayName}${path}`;
5835
+ }
5836
+ class RoomService {
5837
+ constructor({ organizationApiClient }) {
5838
+ this._organizationApiClient = assertInstanceOf(organizationApiClient, OrganizationApiClient);
5839
+ }
5840
+ getRooms({ types, fields = [] } = {}) {
5841
+ assertArray(types, "types");
5842
+ assertArray(fields, "fields");
5843
+ return this._organizationApiClient
5844
+ .request("/room", {
5845
+ method: "GET",
5846
+ params: { types: types.join(","), fields: fields.join(","), includeOnlyLegacyRoomType: "false" },
5847
+ })
5848
+ .then(({ data }) => data.rooms.map((room) => new Room(room)));
5849
+ }
5850
+ getRoom({ roomName, fields }) {
5851
+ assertRoomName(roomName);
5852
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5853
+ return this._organizationApiClient
5854
+ .request(`/rooms/${encodedDisplayName}`, {
5855
+ method: "GET",
5856
+ params: Object.assign({ includeOnlyLegacyRoomType: "false" }, (fields && { fields: fields.join(",") })),
5857
+ })
5858
+ .then(({ data }) => new Room(Object.assign({}, data, Object.assign({ roomName }, (data.meeting && { meeting: Meeting.fromJson(data.meeting) })))))
5859
+ .catch((response) => {
5860
+ if (response.status === 404) {
5861
+ return new Room({
5862
+ roomName,
5863
+ isClaimed: false,
5864
+ mode: "normal",
5865
+ product: {
5866
+ categoryName: "personal_free",
5867
+ },
5868
+ type: "personal",
5869
+ legacyRoomType: "free",
5870
+ });
5871
+ }
5872
+ if (response.status === 400 && response.data.error === "Banned room") {
5873
+ return new Room({ roomName, isBanned: true });
5874
+ }
5875
+ throw new Error(response.data ? response.data.error : "Could not fetch room information");
5876
+ });
5877
+ }
5878
+ claimRoom({ roomName, type, mode, isLocked }) {
5879
+ assertRoomName(roomName);
5880
+ assertString(type, "type");
5881
+ return this._organizationApiClient
5882
+ .request("/room/claim", {
5883
+ method: "POST",
5884
+ data: Object.assign(Object.assign({ roomName,
5885
+ type }, (typeof mode === "string" && { mode })), (typeof isLocked === "boolean" && { isLocked })),
5886
+ })
5887
+ .then(() => undefined)
5888
+ .catch((response) => {
5889
+ throw new Error(response.data.error || "Failed to claim room");
5890
+ });
5891
+ }
5892
+ unclaimRoom(roomName) {
5893
+ assertRoomName(roomName);
5894
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5895
+ return this._organizationApiClient
5896
+ .request(`/room/${encodedDisplayName}`, {
5897
+ method: "DELETE",
5898
+ })
5899
+ .then(() => undefined);
5900
+ }
5901
+ renameRoom({ roomName, newRoomName }) {
5902
+ assertRoomName(roomName);
5903
+ assertString(newRoomName, "newRoomName");
5904
+ const encodedRoomName = encodeURIComponent(roomName.substring(1));
5905
+ return this._organizationApiClient
5906
+ .request(`/room/${encodedRoomName}/roomName`, {
5907
+ method: "PUT",
5908
+ data: { newRoomName },
5909
+ })
5910
+ .then(() => undefined);
5911
+ }
5912
+ changeMode({ roomName, mode }) {
5913
+ assertRoomName(roomName);
5914
+ assertString(mode, "mode");
5915
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5916
+ return this._organizationApiClient
5917
+ .request(`/room/${encodedDisplayName}/mode`, {
5918
+ method: "PUT",
5919
+ data: { mode },
5920
+ })
5921
+ .then(() => undefined);
5922
+ }
5923
+ updatePreferences({ roomName, preferences }) {
5924
+ assertRoomName(roomName);
5925
+ assertInstanceOf(preferences, Object, "preferences");
5926
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5927
+ return this._organizationApiClient
5928
+ .request(`/room/${encodedDisplayName}/preferences`, {
5929
+ method: "PATCH",
5930
+ data: preferences,
5931
+ })
5932
+ .then(() => undefined);
5933
+ }
5934
+ updateProtectedPreferences({ roomName, preferences }) {
5935
+ assertRoomName(roomName);
5936
+ assertInstanceOf(preferences, Object, "preferences");
5937
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5938
+ return this._organizationApiClient
5939
+ .request(`/room/${encodedDisplayName}/protected-preferences`, {
5940
+ method: "PATCH",
5941
+ data: preferences,
5942
+ })
5943
+ .then(() => undefined);
5944
+ }
5945
+ getRoomPermissions(roomName, { roomKey } = {}) {
5946
+ assertRoomName(roomName);
5947
+ return this._organizationApiClient
5948
+ .request(createRoomUrl(roomName, "/permissions"), Object.assign({ method: "GET" }, (roomKey && { headers: { "X-Whereby-Room-Key": roomKey } })))
5949
+ .then((response) => {
5950
+ const { permissions, limits } = response.data;
5951
+ return {
5952
+ permissions,
5953
+ limits,
5954
+ };
5955
+ });
5956
+ }
5957
+ getRoomMetrics({ roomName, metrics, from, to }) {
5958
+ assertRoomName(roomName);
5959
+ assertString(metrics, "metrics");
5960
+ return this._organizationApiClient
5961
+ .request(createRoomUrl(roomName, "/metrics"), {
5962
+ method: "GET",
5963
+ params: { metrics, from, to },
5964
+ })
5965
+ .then((response) => response.data);
5966
+ }
5967
+ changeType({ roomName, type }) {
5968
+ assertRoomName(roomName);
5969
+ assertOneOf(type, ["personal", "personal_xl"], "type");
5970
+ const encodedDisplayName = encodeURIComponent(roomName.substring(1));
5971
+ return this._organizationApiClient
5972
+ .request(`/room/${encodedDisplayName}/type`, {
5973
+ method: "PUT",
5974
+ data: { type },
5975
+ })
5976
+ .then(() => undefined);
5977
+ }
5978
+ getForestSocialImage({ roomName, count }) {
5979
+ assertRoomName(roomName);
5980
+ assertNumber(count, "count");
5981
+ return this._organizationApiClient
5982
+ .request(createRoomUrl(roomName, `/forest-social-image/${count}`), {
5983
+ method: "GET",
5984
+ })
5985
+ .then((response) => response.data.imageUrl);
5986
+ }
5987
+ }
5988
+
5648
5989
  function roomPath(organizationId, roomName, suffix = "") {
5649
5990
  const encodedRoomName = encodeURIComponent(roomName.replace(/^\//, ""));
5650
5991
  return `/organizations/${encodeURIComponent(organizationId)}/room/${encodedRoomName}${suffix}`;
@@ -5692,23 +6033,51 @@ function createServices({ apiBaseUrl, signalBaseUrl } = {}) {
5692
6033
  });
5693
6034
  const organizationService = new OrganizationService({ apiClient });
5694
6035
  const roomIntegrationService = new RoomIntegrationService({ apiClient });
6036
+ const organizationServiceCaches = new Map();
5695
6037
  const fetchOrganizationFromRoomUrl = (roomUrl) => {
5696
6038
  const roomUrlObj = new URL(roomUrl);
5697
- const urls = fromLocation({ host: roomUrlObj.host });
5698
- const organizationServiceCache = new OrganizationServiceCache({
5699
- organizationService,
5700
- subdomain: urls.subdomain,
6039
+ const { subdomain } = fromLocation({ host: roomUrlObj.host });
6040
+ let organizationServiceCache = organizationServiceCaches.get(subdomain);
6041
+ if (!organizationServiceCache) {
6042
+ organizationServiceCache = new OrganizationServiceCache({ organizationService, subdomain });
6043
+ organizationServiceCaches.set(subdomain, organizationServiceCache);
6044
+ }
6045
+ return organizationServiceCache.fetchOrganization().then((organization) => {
6046
+ if (!organization) {
6047
+ organizationServiceCaches.delete(subdomain);
6048
+ }
6049
+ return organization;
6050
+ }, (error) => {
6051
+ organizationServiceCaches.delete(subdomain);
6052
+ throw error;
5701
6053
  });
5702
- return organizationServiceCache.fetchOrganization();
5703
6054
  };
6055
+ const fetchRoomFromRoomUrl = (roomUrl) => __awaiter(this, void 0, void 0, function* () {
6056
+ const roomName = decodeRoomName(new URL(roomUrl).pathname);
6057
+ if (!roomName || roomName === "/") {
6058
+ throw new Error("Invalid room url");
6059
+ }
6060
+ const organization = yield fetchOrganizationFromRoomUrl(roomUrl);
6061
+ if (!organization) {
6062
+ throw new Error("Organization not found");
6063
+ }
6064
+ const roomService = new RoomService({
6065
+ organizationApiClient: new OrganizationApiClient({
6066
+ apiClient,
6067
+ fetchOrganization: () => Promise.resolve(organization),
6068
+ }),
6069
+ });
6070
+ return roomService.getRoom({ roomName });
6071
+ });
5704
6072
  return {
5705
6073
  credentialsService,
5706
6074
  apiClient,
5707
6075
  organizationService,
5708
6076
  roomIntegrationService,
5709
6077
  fetchOrganizationFromRoomUrl,
6078
+ fetchRoomFromRoomUrl,
5710
6079
  signalBaseUrl: signalBaseUrl || SIGNAL_BASE_URL,
5711
6080
  };
5712
6081
  }
5713
6082
 
5714
- export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, 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, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, 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, roomRejoined, 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, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, 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, updateLocalCallQualityScore, updateRemoteCallQualityScores, updateReportedValues, waitingParticipantsSlice, waitingParticipantsSliceInitialState };
6083
+ export { ACCEPTED_FILE_TYPES, BREAKOUT_GROUPS_MIN_MAX, BREAKOUT_UNAVAILABLE_ERROR, CALL_QUALITY_LEVELS, DEFAULT_BREAKOUT_TIMER_DURATION, IN_CALL_QUALITY_LEVELS, MAX_FILES_PER_UPLOAD, MAX_FILE_SIZE, ROOM_INTEGRATION_PICKER_MESSAGES, addAppListener, addSpotlight, appSlice, audioOnlyModeToggled, authorizationSlice, authorizationSliceInitialState, breakoutSlice, breakoutSliceInitialState, captioningRequestStarted, chatSlice, chatSliceInitialState, clearCaption, clearFileUploads, cloudRecordingSlice, connectionMonitorReportUpdated, 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, doFetchRoom, 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, doSetLocalCallQualityScore, doSetLocalStickyReaction, doSetNotification, doSetRemoteCallQualityScores, doShuffleBreakoutParticipants, doSignalConnect, doSignalDisconnect, doSignalIdentifyDevice, doSpotlightParticipant, doStartBreakoutSession, doStartCloudRecording, doStartConnectionMonitor, doStartLiveCaptions, doStartLiveTranscription, doStartLocalMedia, doStartRoomIntegration, doStartScreenshare, doStopBreakoutSession, doStopBreakoutTimer, doStopCloudRecording, doStopConnectionMonitor, doStopLiveCaptions, doStopLiveTranscription, doStopLocalMedia, doStopRoomIntegration, doStopScreenshare, doSwitchLocalStream, doToggleAudioOnlyMode, doToggleCamera, doTriggerLocalStreamRefresh, doUnassignAllBreakoutParticipants, doUpdateBreakoutSession, doUpdateConnectionMonitorReport, 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, roomRejoined, 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, selectCalculatedLocalCallQualityScore, selectCalculatedRemoteCallQualityScores, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingIsInitiator, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectConnectionMediaQualityScores, selectConnectionMonitorIsRunning, selectConnectionMonitorIssuesReport, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectCurrentSpeakerDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectEmbeddableRoomIntegrations, selectEnabledRoomIntegrations, selectFileShareRaw, selectFileShareRequestInFlight, selectFileUploads, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAudioOnlyModeEnabled, selectIsAuthorizedToAskToSpeak, selectIsAuthorizedToEndMeeting, selectIsAuthorizedToKickClient, selectIsAuthorizedToLockRoom, selectIsAuthorizedToManageBreakout, selectIsAuthorizedToManageRoomIntegration, selectIsAuthorizedToRequestAudioEnable, selectIsAuthorizedToRequestScreenshareEnable, selectIsAuthorizedToRequestVideoEnable, selectIsAuthorizedToSpotlight, selectIsCameraEnabled, selectIsCloudRecording, selectIsHDModeEnabled, selectIsLiveCaptions, selectIsLiveTranscription, selectIsLocalMediaStarting, selectIsLocalParticipantSpotlighted, selectIsLowDataModeEnabled, selectIsMicrophoneEnabled, selectIsRoomIntegrationRunning, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectIsWidescreenModeEnabled, selectJoinRoomStage, selectLiveCaptionsError, selectLiveCaptionsLog, selectLiveCaptionsRaw, selectLiveCaptionsStartedAt, selectLiveCaptionsStatus, selectLiveTranscriptionError, selectLiveTranscriptionIsInitiator, selectLiveTranscriptionRaw, selectLiveTranscriptionStartedAt, selectLiveTranscriptionStatus, selectLocalCallQualityScore, selectLocalMediaBeforeEffectTracks, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantBreakoutAssigned, selectLocalParticipantBreakoutGroup, selectLocalParticipantClientClaim, selectLocalParticipantDisplayName, selectLocalParticipantQualityReport, selectLocalParticipantRaw, selectLocalParticipantStickyReaction, selectLocalParticipantView, selectLocalScreenshareError, selectLocalScreenshareRaw, selectLocalScreenshareStartedAt, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectNotificationsEmitter, selectNotificationsEvents, selectNotificationsRaw, selectNumClients, selectNumParticipants, selectOrganizationId, selectOrganizationPreferences, selectOrganizationRaw, selectRemoteCallQualityScores, selectRemoteClientViews, selectRemoteClients, selectRemoteParticipantQualityReport, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRemoteScreenshareVideoTrackIds, selectRoomConnectionError, selectRoomConnectionIsRejoining, selectRoomConnectionKnockResponse, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRoomFetchStatus, selectRoomIntegrationForUrl, selectRoomIntegrationsEnabled, selectRoomIntegrationsError, selectRoomIntegrationsHasFetched, selectRoomIntegrationsIsFetching, selectRoomIntegrationsRaw, selectRoomIsLocked, selectRoomKey, selectRoomLockState, selectRoomLockStateRoomUrl, selectRoomLockStateSource, selectRoomMode, selectRoomRequestedUrl, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectRunningRoomIntegrations, selectScreenshares, selectSelfId, selectShouldApplyInitialMuteStates, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldFetchRoom, 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, setRequestedRoomUrl, setRoomIntegrationsError, setRoomKey, signalConnectionSlice, signalConnectionSliceInitialState, signalEvents, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, spotlightsSlice, spotlightsSliceInitialState, startAppListening, stopScreenshare, streamIdForClient, streamStatusUpdated, streamingSlice, streamingSliceInitialState, toggleCameraEnabled, toggleHdModeEnabled, toggleLowDataModeEnabled, toggleMicrophoneEnabled, toggleWidescreenModeEnabled, transcribingRequestStarted, updateLocalCallQualityScore, updateRemoteCallQualityScores, 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": "1.31.7",
5
+ "version": "1.32.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -52,6 +52,11 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
+ "@whereby.com/eslint-config": "0.1.0",
56
+ "@whereby.com/jest-config": "0.1.0",
57
+ "@whereby.com/prettier-config": "0.1.0",
58
+ "@whereby.com/rollup-config": "0.1.1",
59
+ "@whereby.com/tsconfig": "0.1.0",
55
60
  "@types/btoa": "^1.2.3",
56
61
  "@types/chrome": "^0.0.210",
57
62
  "deep-object-diff": "^1.1.9",
@@ -62,17 +67,12 @@
62
67
  "yalc": "^1.0.0-pre.53",
63
68
  "eslint": "^9.29.0",
64
69
  "prettier": "^3.5.3",
65
- "typescript": "^5.8.3",
66
- "@whereby.com/eslint-config": "0.1.0",
67
- "@whereby.com/jest-config": "0.1.0",
68
- "@whereby.com/prettier-config": "0.1.0",
69
- "@whereby.com/rollup-config": "0.1.1",
70
- "@whereby.com/tsconfig": "0.1.0"
70
+ "typescript": "^5.8.3"
71
71
  },
72
72
  "dependencies": {
73
73
  "@reduxjs/toolkit": "^2.2.3",
74
- "@whereby.com/media": "11.4.2",
75
- "@whereby.com/audio-denoiser": "1.0.36",
74
+ "@whereby.com/media": "11.4.3",
75
+ "@whereby.com/audio-denoiser": "1.0.37",
76
76
  "@whereby.com/camera-effects": "1.1.4",
77
77
  "axios": "^1.21.1",
78
78
  "btoa": "^1.2.1",