@whereby.com/core 1.31.6 → 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.
@@ -10,6 +10,13 @@ import * as immer from 'immer';
10
10
  import * as reselect from 'reselect';
11
11
  import { Setup, Params } from '@whereby.com/camera-effects';
12
12
 
13
+ declare class Room {
14
+ readonly isClaimed: boolean;
15
+ readonly isBanned: boolean;
16
+ readonly isLocked: boolean;
17
+ constructor(properties?: {});
18
+ }
19
+
13
20
  type Json = string | number | boolean | null | Array<Json> | {
14
21
  [key: string]: Json;
15
22
  };
@@ -35,21 +42,53 @@ type HttpClientRequestConfig = AxiosRequestConfig | {
35
42
  interface IHttpClient {
36
43
  request(url: string, options: HttpClientRequestConfig): Promise<Response>;
37
44
  }
45
+ /**
46
+ * Class used for making http calls. This is just a pure
47
+ * wrapper around the http lib that we decide to use,
48
+ * so that we can switch implementations.
49
+ */
38
50
  declare class HttpClient implements IHttpClient {
39
51
  _baseUrl: string;
52
+ /**
53
+ * Creates an HttpClient instance.
54
+ *
55
+ * @param {string} [baseUrl] - The base URL where all requests are made.
56
+ */
40
57
  constructor({ baseUrl }: {
41
58
  baseUrl: string;
42
59
  });
43
60
  private _requestAxios;
61
+ /**
62
+ * Wrapper for the axios API
63
+ *
64
+ * @param {string} url - Required. URL (appended to base URL) where API call will be made
65
+ * @param {object} options - Required. Contains the data needed for the fetch API
66
+ * @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
67
+ */
44
68
  request(url: string, options: HttpClientRequestConfig): Promise<Response>;
45
69
  }
46
70
 
71
+ /**
72
+ * ApiClient for doing multipart/form-data requests.
73
+ */
47
74
  declare class MultipartHttpClient implements IHttpClient {
48
75
  _httpClient: IHttpClient;
49
76
  constructor({ httpClient }: {
50
77
  httpClient: IHttpClient;
51
78
  });
79
+ /**
80
+ * Convert the provided object to a FormData object containing the same keys and values.
81
+ * @param {object} data - the data to convert.
82
+ * @returns {FormData}
83
+ */
52
84
  static dataToFormData(data: Record<string, string>): FormData;
85
+ /**
86
+ * Request a resource using multipart/form-data encoding.
87
+ *
88
+ * @param {string} url - the url to request
89
+ * @param {object} options - Required. Contains the data needed for the fetch API
90
+ * @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
91
+ */
53
92
  request(url: string, options?: HttpClientRequestConfig): Promise<Response>;
54
93
  }
55
94
 
@@ -83,19 +122,40 @@ interface ApiClientOptions {
83
122
  baseUrl?: string;
84
123
  fetchDeviceCredentials?: AuthenticatedHttpClientOptions["fetchDeviceCredentials"];
85
124
  }
125
+ /**
126
+ * Class used for all Whereby API calls.
127
+ */
86
128
  declare class ApiClient {
87
129
  authenticatedHttpClient: AuthenticatedHttpClient;
88
130
  authenticatedFormDataHttpClient: MultipartHttpClient;
131
+ /**
132
+ * Create an ApiClient instance.
133
+ */
89
134
  constructor({ baseUrl, fetchDeviceCredentials, }?: ApiClientOptions);
135
+ /**
136
+ * Wrapper for the fetch API
137
+ */
90
138
  request(url: string, options: HttpClientRequestConfig): Promise<Response>;
139
+ /**
140
+ * Performs a multipart request where data is multipart/form-data encoded.
141
+ */
91
142
  requestMultipart(url: string, options: HttpClientRequestConfig): Promise<Response>;
92
143
  }
93
144
 
145
+ /**
146
+ * Related to device calls needed to obtain credentials
147
+ */
94
148
  declare class DeviceService {
95
149
  _apiClient: ApiClient;
96
150
  constructor({ apiClient }: {
97
151
  apiClient: ApiClient;
98
152
  });
153
+ /**
154
+ * Get's the device credentials needed for most of the other API services
155
+ *
156
+ * @return {Promise} A promise which is fulfilled or failed based on the
157
+ * response.
158
+ */
99
159
  getCredentials(): Promise<Credentials | null>;
100
160
  }
101
161
 
@@ -108,6 +168,11 @@ declare class CredentialsService extends EventEmitter {
108
168
  _deviceService: DeviceService;
109
169
  _credentialsStore: AbstractStore;
110
170
  credentialsPromise?: Promise<Credentials | null>;
171
+ /**
172
+ * Service to manage Whereby's Rest API credentials.
173
+ *
174
+ * @param {ObjectStore} credentialsStore - Store to manage the credentials.
175
+ */
111
176
  constructor({ deviceService, credentialsStore, }: {
112
177
  deviceService: DeviceService;
113
178
  credentialsStore: AbstractStore;
@@ -117,10 +182,38 @@ declare class CredentialsService extends EventEmitter {
117
182
  storeName?: string;
118
183
  storeType?: "localStorage" | "chromeStorage";
119
184
  }): CredentialsService;
185
+ /**
186
+ * Contacts the REST API to get new credentials. DO NOT USE directly, call getCredentials() instead.
187
+ *
188
+ * @see getCredentials
189
+ * @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
190
+ */
120
191
  _fetchNewCredentialsFromApi(): Promise<Credentials | null>;
192
+ /**
193
+ * Returns the current credentials without triggering an API request to get new ones.
194
+ * If no credentials are currently available it will return null.
195
+ *
196
+ * @returns {?Credentials} - The credentials currently in use, null otherwise.
197
+ */
121
198
  getCurrentCredentials(): Promise<Credentials | null>;
199
+ /**
200
+ * Returns a promise that will contain the credentials for this client.
201
+ * If no credentials are available in local storage, new ones will be fetched from the server.
202
+ *
203
+ * @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
204
+ */
122
205
  getCredentials(): Promise<Credentials | null>;
206
+ /**
207
+ * Saves new credentials which replace the existing ones and abort any pending request to get new ones.
208
+ *
209
+ * @param {Credentials} credentials - New credentials to store.
210
+ */
123
211
  saveCredentials(credentials: Credentials): Promise<Credentials>;
212
+ /**
213
+ * It will set the userId for the current credentials.
214
+ *
215
+ * @param userId - The user id to set.
216
+ */
124
217
  setUserId(userId: string | null): Promise<void>;
125
218
  }
126
219
 
@@ -267,6 +360,9 @@ declare class OrganizationService {
267
360
  constructor({ apiClient }: {
268
361
  apiClient: ApiClient;
269
362
  });
363
+ /**
364
+ * Creates an organization.
365
+ */
270
366
  createOrganization({ organizationName, subdomain, owner, }: {
271
367
  organizationName: string;
272
368
  subdomain: string;
@@ -281,8 +377,23 @@ declare class OrganizationService {
281
377
  consents?: ReadonlyArray<ConsentGrantRequest>;
282
378
  };
283
379
  }): Promise<string>;
380
+ /**
381
+ * Retrieves the organization based on the subdomain.
382
+ */
284
383
  getOrganizationBySubdomain(subdomain: string): Promise<Organization | null>;
384
+ /**
385
+ * Retrieves the organization based on the organizationId.
386
+ *
387
+ * Note: This endpoint should only be used to retrieve an organization when the device is linked
388
+ * to a user in that organization. Use getOrganizationBySubdomain instead if you just want the information
389
+ * about an organization that is mapped to a given subdomain.
390
+ */
285
391
  getOrganizationByOrganizationId(organizationId: string): Promise<Organization | null>;
392
+ /**
393
+ * Retrieves the organizations that contain a user
394
+ * matching provided the email+code or phoneNumber+code
395
+ * combination.
396
+ */
286
397
  getOrganizationsByContactPoint(options: {
287
398
  email: string;
288
399
  code: string;
@@ -290,17 +401,37 @@ declare class OrganizationService {
290
401
  phoneNumber: string;
291
402
  code: string;
292
403
  }): Promise<ReadonlyArray<Organization>>;
404
+ /**
405
+ * Retrieves the organizations that contain a user
406
+ * matching provided the idToken
407
+ */
293
408
  getOrganizationsByIdToken({ idToken }: {
294
409
  idToken: string;
295
410
  }): Promise<ReadonlyArray<Organization>>;
411
+ /**
412
+ * Retrieves the organizations containing a user
413
+ * with either the email or phoneNumber matching the logged in user.
414
+ *
415
+ * This is useful for showing the possible organization that the current
416
+ * user could log in to.
417
+ */
296
418
  getOrganizationsByLoggedInUser(): Promise<ReadonlyArray<Organization>>;
419
+ /**
420
+ * Checks if a subdomain is available and verifies its format.
421
+ */
297
422
  getSubdomainAvailability(subdomain: string): Promise<{
298
423
  status: string;
299
424
  }>;
425
+ /**
426
+ * Updates preferences of the organization.
427
+ */
300
428
  updatePreferences({ organizationId, preferences, }: {
301
429
  organizationId: string;
302
430
  preferences: OrganizationPreferences;
303
431
  }): Promise<undefined>;
432
+ /**
433
+ * Delete organization
434
+ */
304
435
  deleteOrganization({ organizationId }: {
305
436
  organizationId: string;
306
437
  }): Promise<undefined>;
@@ -428,11 +559,17 @@ interface Screenshare {
428
559
  isLocal: boolean;
429
560
  }
430
561
 
562
+ /**
563
+ * Reducer
564
+ */
431
565
  interface WaitingParticipantsState {
432
566
  waitingParticipants: WaitingParticipant[];
433
567
  }
434
568
  declare const waitingParticipantsSliceInitialState: WaitingParticipantsState;
435
569
  declare const waitingParticipantsSlice: _reduxjs_toolkit.Slice<WaitingParticipantsState, {}, "waitingParticipants", "waitingParticipants", _reduxjs_toolkit.SliceSelectors<WaitingParticipantsState>>;
570
+ /**
571
+ * Action creators
572
+ */
436
573
  declare const doAcceptWaitingParticipant: (args: {
437
574
  participantId: string;
438
575
  }) => AppThunk;
@@ -444,9 +581,15 @@ declare const doRejectWaitingParticipant: (args: {
444
581
  participantId: string;
445
582
  response?: string;
446
583
  }) => AppThunk;
584
+ /**
585
+ * Selectors
586
+ */
447
587
  declare const selectWaitingParticipantsRaw: (state: RootState) => WaitingParticipantsState;
448
588
  declare const selectWaitingParticipants: (state: RootState) => WaitingParticipant[];
449
589
 
590
+ /**
591
+ * Reducer
592
+ */
450
593
  interface StreamingState {
451
594
  isStreaming: boolean;
452
595
  error: unknown;
@@ -465,8 +608,14 @@ declare const streamingSlice: _reduxjs_toolkit.Slice<StreamingState, {
465
608
  startedAt?: number | undefined;
466
609
  };
467
610
  }, "streaming", "streaming", _reduxjs_toolkit.SliceSelectors<StreamingState>>;
611
+ /**
612
+ * Action creators
613
+ */
468
614
  declare const doHandleStreamingStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStarted">;
469
615
  declare const doHandleStreamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStopped">;
616
+ /**
617
+ * Selectors
618
+ */
470
619
  declare const selectStreamingRaw: (state: RootState) => StreamingState;
471
620
 
472
621
  type RtcAnalyticsCustomEvent<T = any> = {
@@ -478,6 +627,9 @@ type RtcAnalyticsCustomEvent<T = any> = {
478
627
  declare const rtcAnalyticsCustomEvents: {
479
628
  [key: string]: RtcAnalyticsCustomEvent;
480
629
  };
630
+ /**
631
+ * Reducer
632
+ */
481
633
  interface rtcAnalyticsState {
482
634
  reportedValues: {
483
635
  [key: string]: unknown;
@@ -495,6 +647,9 @@ declare const rtcAnalyticsSlice: _reduxjs_toolkit.Slice<rtcAnalyticsState, {
495
647
  };
496
648
  }, "rtcAnalytics", "rtcAnalytics", _reduxjs_toolkit.SliceSelectors<rtcAnalyticsState>>;
497
649
  declare const doRtcAnalyticsCustomEventsInitialize: (args: void) => AppThunk;
650
+ /**
651
+ * Action creators
652
+ */
498
653
  declare const updateReportedValues: ActionCreatorWithPayload<{
499
654
  rtcEventName: string;
500
655
  value: unknown;
@@ -504,17 +659,26 @@ type ChatMessage = Pick<ChatMessage$1, "id" | "senderId" | "parentId" | "timesta
504
659
  removed: boolean;
505
660
  file?: ChatFileShare;
506
661
  };
662
+ /**
663
+ * Reducer
664
+ */
507
665
  interface ChatState {
508
666
  chatMessages: ChatMessage[];
509
667
  }
510
668
  declare const chatSliceInitialState: ChatState;
511
669
  declare const chatSlice: _reduxjs_toolkit.Slice<ChatState, {}, "chat", "chat", _reduxjs_toolkit.SliceSelectors<ChatState>>;
670
+ /**
671
+ * Action creators
672
+ */
512
673
  declare const doSendChatMessage: (args: {
513
674
  text: string;
514
675
  isBroadcast?: boolean;
515
676
  parentId?: string;
516
677
  }) => AppThunk;
517
678
  declare const doRemoveChatMessage: (args: Pick<ChatMessage$1, "id" | "sig">) => AppThunk;
679
+ /**
680
+ * Selectors
681
+ */
518
682
  declare const selectChatRaw: (state: RootState) => ChatState;
519
683
  declare const selectChatMessages: (state: RootState) => ChatMessage[];
520
684
 
@@ -602,6 +766,9 @@ type NotificationEventMap = {
602
766
 
603
767
  type NotificationsEventEmitter = EventEmitter<NotificationEventMap>;
604
768
  declare function createNotificationEvent<Type, PropsType>(payload: Notification<Type, PropsType>): NotificationEvent<Type, PropsType>;
769
+ /**
770
+ * Reducer
771
+ */
605
772
  interface NotificationsState {
606
773
  emitter: NotificationsEventEmitter;
607
774
  events: Array<NotificationEvent>;
@@ -617,8 +784,14 @@ declare const notificationsSlice: _reduxjs_toolkit.Slice<NotificationsState, {
617
784
  emitter: immer.WritableDraft<NotificationsEventEmitter>;
618
785
  };
619
786
  }, "notifications", "notifications", _reduxjs_toolkit.SliceSelectors<NotificationsState>>;
787
+ /**
788
+ * Action creators
789
+ */
620
790
  declare const doClearNotifications: _reduxjs_toolkit.ActionCreatorWithoutPayload<"notifications/doClearNotifications">;
621
791
  declare const doSetNotification: (args: NotificationEvents) => AppThunk;
792
+ /**
793
+ * Selectors
794
+ */
622
795
  declare const selectNotificationsRaw: (state: RootState) => NotificationsState;
623
796
  declare const selectNotificationsEvents: (state: RootState) => NotificationEvent<string, unknown>[];
624
797
  declare const selectNotificationsEmitter: (state: RootState) => NotificationsEventEmitter;
@@ -630,6 +803,9 @@ interface LocalScreenshareState {
630
803
  startedAt?: number;
631
804
  }
632
805
  declare const localScreenshareSliceInitialState: LocalScreenshareState;
806
+ /**
807
+ * Reducer
808
+ */
633
809
  declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareState, {
634
810
  stopScreenshare: (state: immer.WritableDraft<LocalScreenshareState>, action: PayloadAction<{
635
811
  stream: MediaStream;
@@ -646,6 +822,9 @@ declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareStat
646
822
  error: undefined;
647
823
  };
648
824
  }, "localScreenshare", "localScreenshare", _reduxjs_toolkit.SliceSelectors<LocalScreenshareState>>;
825
+ /**
826
+ * Action creators
827
+ */
649
828
  declare const stopScreenshare: _reduxjs_toolkit.ActionCreatorWithPayload<{
650
829
  stream: MediaStream;
651
830
  }, "localScreenshare/stopScreenshare">;
@@ -653,6 +832,9 @@ declare const doStartScreenshare: _reduxjs_toolkit.AsyncThunk<{
653
832
  stream: MediaStream;
654
833
  }, undefined, ThunkConfig>;
655
834
  declare const doStopScreenshare: (args: void) => AppThunk;
835
+ /**
836
+ * Selectors
837
+ */
656
838
  declare const selectLocalScreenshareRaw: (state: RootState) => LocalScreenshareState;
657
839
  declare const selectLocalScreenshareStatus: (state: RootState) => "error" | "active" | "inactive" | "starting";
658
840
  declare const selectLocalScreenshareStream: (state: RootState) => MediaStream | undefined;
@@ -665,6 +847,9 @@ interface LocalParticipantState extends LocalParticipant {
665
847
  breakoutGroupAssigned: string;
666
848
  }
667
849
  declare const localParticipantSliceInitialState: LocalParticipantState;
850
+ /**
851
+ * Reducer
852
+ */
668
853
  declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantState, {
669
854
  setDisplayName: (state: immer.WritableDraft<LocalParticipantState>, action: PayloadAction<{
670
855
  displayName: string;
@@ -701,6 +886,9 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
701
886
  isAudioRecorder: boolean;
702
887
  };
703
888
  }, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
889
+ /**
890
+ * Action creators
891
+ */
704
892
  declare const setDisplayName: _reduxjs_toolkit.ActionCreatorWithPayload<{
705
893
  displayName: string;
706
894
  }, "localParticipant/setDisplayName">;
@@ -724,6 +912,9 @@ declare const doSetLocalStickyReaction: _reduxjs_toolkit.AsyncThunk<{
724
912
  }, ThunkConfig>;
725
913
  declare const doSendClientMetadata: (args: void) => AppThunk;
726
914
 
915
+ /**
916
+ * Reducer
917
+ */
727
918
  interface LiveTranscriptionState {
728
919
  isInitiator: boolean;
729
920
  isTranscribing: boolean;
@@ -741,9 +932,15 @@ declare const liveTranscriptionSlice: _reduxjs_toolkit.Slice<LiveTranscriptionSt
741
932
  startedAt?: number | undefined;
742
933
  };
743
934
  }, "liveTranscription", "liveTranscription", _reduxjs_toolkit.SliceSelectors<LiveTranscriptionState>>;
935
+ /**
936
+ * Action creators
937
+ */
744
938
  declare const transcribingRequestStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"liveTranscription/transcribingRequestStarted">;
745
939
  declare const doStartLiveTranscription: (args: void) => AppThunk;
746
940
  declare const doStopLiveTranscription: (args: void) => AppThunk;
941
+ /**
942
+ * Selectors
943
+ */
747
944
  declare const selectLiveTranscriptionRaw: (state: RootState) => LiveTranscriptionState;
748
945
  declare const selectLiveTranscriptionStatus: (state: RootState) => "error" | "requested" | "transcribing" | undefined;
749
946
  declare const selectLiveTranscriptionStartedAt: (state: RootState) => number | undefined;
@@ -751,6 +948,9 @@ declare const selectLiveTranscriptionError: (state: RootState) => string | undef
751
948
  declare const selectIsLiveTranscription: (state: RootState) => boolean;
752
949
  declare const selectLiveTranscriptionIsInitiator: (state: RootState) => boolean;
753
950
 
951
+ /**
952
+ * Reducer
953
+ */
754
954
  interface LiveCaptionsState {
755
955
  isCaptioning: boolean;
756
956
  error?: string;
@@ -777,12 +977,18 @@ declare const liveCaptionsSlice: _reduxjs_toolkit.Slice<LiveCaptionsState, {
777
977
  startedAt?: number | undefined;
778
978
  };
779
979
  }, "liveCaptions", "liveCaptions", _reduxjs_toolkit.SliceSelectors<LiveCaptionsState>>;
980
+ /**
981
+ * Action creators
982
+ */
780
983
  declare const captioningRequestStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"liveCaptions/captioningRequestStarted">;
781
984
  declare const clearCaption: _reduxjs_toolkit.ActionCreatorWithPayload<{
782
985
  resultId: string;
783
986
  }, "liveCaptions/clearCaption">;
784
987
  declare const doStartLiveCaptions: (args: void) => AppThunk;
785
988
  declare const doStopLiveCaptions: (args: void) => AppThunk;
989
+ /**
990
+ * Selectors
991
+ */
786
992
  declare const selectLiveCaptionsRaw: (state: RootState) => LiveCaptionsState;
787
993
  declare const selectLiveCaptionsStatus: (state: RootState) => "error" | "requested" | "captioning" | undefined;
788
994
  declare const selectLiveCaptionsStartedAt: (state: RootState) => number | undefined;
@@ -802,6 +1008,9 @@ interface FileUpload {
802
1008
  status: "uploading" | "sent" | "error";
803
1009
  error?: FileShareError;
804
1010
  }
1011
+ /**
1012
+ * Reducer
1013
+ */
805
1014
  interface FileShareState {
806
1015
  uploads: FileUpload[];
807
1016
  requestInFlight: boolean;
@@ -839,10 +1048,16 @@ declare const doSendFiles: _reduxjs_toolkit.AsyncThunk<undefined, {
839
1048
  declare const doDownloadFile: _reduxjs_toolkit.AsyncThunk<Blob, {
840
1049
  file: ChatFileShare;
841
1050
  }, ThunkConfig>;
1051
+ /**
1052
+ * Selectors
1053
+ */
842
1054
  declare const selectFileShareRaw: (state: RootState) => FileShareState;
843
1055
  declare const selectFileUploads: (state: RootState) => FileUpload[];
844
1056
  declare const selectFileShareRequestInFlight: (state: RootState) => boolean;
845
1057
 
1058
+ /**
1059
+ * Reducer
1060
+ */
846
1061
  interface CloudRecordingState {
847
1062
  isInitiator: boolean;
848
1063
  isRecording: boolean;
@@ -860,9 +1075,15 @@ declare const cloudRecordingSlice: _reduxjs_toolkit.Slice<CloudRecordingState, {
860
1075
  startedAt?: number | undefined;
861
1076
  };
862
1077
  }, "cloudRecording", "cloudRecording", _reduxjs_toolkit.SliceSelectors<CloudRecordingState>>;
1078
+ /**
1079
+ * Action creators
1080
+ */
863
1081
  declare const recordingRequestStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"cloudRecording/recordingRequestStarted">;
864
1082
  declare const doStartCloudRecording: (args: void) => AppThunk;
865
1083
  declare const doStopCloudRecording: (args: void) => AppThunk;
1084
+ /**
1085
+ * Selectors
1086
+ */
866
1087
  declare const selectCloudRecordingRaw: (state: RootState) => CloudRecordingState;
867
1088
  declare const selectCloudRecordingStatus: (state: RootState) => "error" | "recording" | "requested" | undefined;
868
1089
  declare const selectCloudRecordingStartedAt: (state: RootState) => number | undefined;
@@ -890,6 +1111,11 @@ interface CameraEffectsState {
890
1111
 
891
1112
  type StopFn = () => void;
892
1113
  interface AudioDenoiserState {
1114
+ /**
1115
+ * User intent — true if the consumer asked for denoising on. Persists
1116
+ * across mid-flight stops triggered by device/stream switches so we can
1117
+ * auto-reapply after the switch settles.
1118
+ */
893
1119
  wanted: boolean;
894
1120
  isSwitching: boolean;
895
1121
  error?: unknown;
@@ -901,6 +1127,14 @@ interface AudioDenoiserState {
901
1127
  };
902
1128
  }
903
1129
 
1130
+ /**
1131
+ * Reducer
1132
+ */
1133
+ /**
1134
+ * Whether to join with the camera and/or microphone muted. The devices are still
1135
+ * acquired according to `localMediaOptions` - this only decides the state we join
1136
+ * with. `true` means muted, an omitted key leaves that device untouched.
1137
+ */
904
1138
  type InitialMuteStates = {
905
1139
  camera?: boolean;
906
1140
  microphone?: boolean;
@@ -983,8 +1217,14 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
983
1217
  userAgent: string | null;
984
1218
  };
985
1219
  }, "app", "app", _reduxjs_toolkit.SliceSelectors<AppState>>;
1220
+ /**
1221
+ * Action creators
1222
+ */
986
1223
  declare const doAppStop: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/doAppStop">;
987
1224
  declare const doAppStart: _reduxjs_toolkit.ActionCreatorWithPayload<AppConfig, "app/doAppStart">;
1225
+ /**
1226
+ * Selectors
1227
+ */
988
1228
  declare const selectAppRaw: (state: RootState) => AppState;
989
1229
  declare const selectAppIsActive: (state: RootState) => boolean;
990
1230
  declare const selectAppIsDialIn: (state: RootState) => boolean;
@@ -1000,6 +1240,9 @@ declare const selectAppInitialConfig: (state: RootState) => AppConfig | undefine
1000
1240
  declare const selectAppInitialMuteStates: (state: RootState) => InitialMuteStates | undefined;
1001
1241
  declare const selectAppIgnoreBreakoutGroups: (state: RootState) => boolean;
1002
1242
 
1243
+ /**
1244
+ * Reducer
1245
+ */
1003
1246
  interface AuthorizationState {
1004
1247
  roomKey: string | null;
1005
1248
  assistantKey?: string | null;
@@ -1013,7 +1256,13 @@ declare const authorizationSlice: _reduxjs_toolkit.Slice<AuthorizationState, {
1013
1256
  roleName: RoleName;
1014
1257
  };
1015
1258
  }, "authorization", "authorization", _reduxjs_toolkit.SliceSelectors<AuthorizationState>>;
1259
+ /**
1260
+ * Action creators
1261
+ */
1016
1262
  declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "authorization/setRoomKey">;
1263
+ /**
1264
+ * Selectors
1265
+ */
1017
1266
  declare const selectRoomKey: (state: RootState) => string | null;
1018
1267
  declare const selectAssistantKey: (state: RootState) => string | null | undefined;
1019
1268
  declare const selectAuthorizationRoleName: (state: RootState) => RoleName;
@@ -1508,11 +1757,19 @@ declare const selectIsAuthorizedToManageRoomIntegration: ((state: {
1508
1757
  memoize: typeof reselect.weakMapMemoize;
1509
1758
  };
1510
1759
 
1760
+ /** Seconds a breakout timer runs for when one is enabled without an explicit duration. */
1511
1761
  declare const DEFAULT_BREAKOUT_TIMER_DURATION = 1800;
1762
+ /**
1763
+ * Reducer
1764
+ */
1512
1765
  interface BreakoutState extends BreakoutConfig {
1513
1766
  error: string | null;
1514
1767
  }
1515
1768
  declare const breakoutSliceInitialState: BreakoutState;
1769
+ /**
1770
+ * Breakout groups require an SFU ("group") room. In a peer-to-peer room, moving clients in and out
1771
+ * of groups would tear down peer connections that never get re-established, so we refuse to start.
1772
+ */
1516
1773
  declare const BREAKOUT_UNAVAILABLE_ERROR = "Breakout groups are not available in peer-to-peer rooms";
1517
1774
  declare const breakoutSlice: _reduxjs_toolkit.Slice<BreakoutState, {
1518
1775
  setBreakoutError: (state: immer.WritableDraft<BreakoutState>, action: PayloadAction<{
@@ -1545,6 +1802,9 @@ declare const breakoutSlice: _reduxjs_toolkit.Slice<BreakoutState, {
1545
1802
  startedAt?: (Date | null) | undefined;
1546
1803
  };
1547
1804
  }, "breakout", "breakout", _reduxjs_toolkit.SliceSelectors<BreakoutState>>;
1805
+ /**
1806
+ * Action creators
1807
+ */
1548
1808
  declare const setBreakoutError: _reduxjs_toolkit.ActionCreatorWithPayload<{
1549
1809
  error: string | null;
1550
1810
  }, "breakout/setBreakoutError">;
@@ -1584,6 +1844,9 @@ declare const doAssignBreakoutParticipants: (args: {
1584
1844
  [clientId: string]: string;
1585
1845
  };
1586
1846
  }) => AppThunk;
1847
+ /**
1848
+ * Group helpers
1849
+ */
1587
1850
  declare const BREAKOUT_GROUPS_MIN_MAX: [number, number];
1588
1851
  declare function defaultBreakoutGroupName(groupId: string): string;
1589
1852
  declare function createBreakoutGroups(count?: number): {
@@ -1596,6 +1859,9 @@ declare const doExtendBreakoutTimer: (args: void | {
1596
1859
  seconds?: number;
1597
1860
  }) => AppThunk;
1598
1861
  declare const doStopBreakoutTimer: (args: void) => AppThunk;
1862
+ /**
1863
+ * Selectors
1864
+ */
1599
1865
  declare const selectBreakoutRaw: (state: RootState) => BreakoutState;
1600
1866
  declare const selectBreakoutError: (state: RootState) => string | null;
1601
1867
  declare const selectBreakoutIsAvailable: (state: RootState) => boolean;
@@ -1931,6 +2197,7 @@ declare const IN_CALL_QUALITY_LEVELS: {
1931
2197
  readonly WARNING: "warning";
1932
2198
  readonly OK: "ok";
1933
2199
  };
2200
+ /** @deprecated Use IN_CALL_QUALITY_LEVELS instead. */
1934
2201
  declare const CALL_QUALITY_LEVELS: {
1935
2202
  readonly CRITICAL: "critical";
1936
2203
  readonly WARNING: "warning";
@@ -1970,6 +2237,9 @@ type MediaQualityScores = Record<string, {
1970
2237
  video?: CallQualityLevel;
1971
2238
  audio?: CallQualityLevel;
1972
2239
  }>;
2240
+ /**
2241
+ * Reducer
2242
+ */
1973
2243
  interface ConnectionMonitorStart {
1974
2244
  stopIssueSubscription: () => void;
1975
2245
  }
@@ -2024,6 +2294,9 @@ declare const connectionMonitorSlice: _reduxjs_toolkit.Slice<ConnectionMonitorSt
2024
2294
  stopCallbackFunction?: () => void;
2025
2295
  };
2026
2296
  }, "connectionMonitor", "connectionMonitor", _reduxjs_toolkit.SliceSelectors<ConnectionMonitorState>>;
2297
+ /**
2298
+ * Action creators
2299
+ */
2027
2300
  declare const connectionMonitorStarted: _reduxjs_toolkit.ActionCreatorWithPayload<ConnectionMonitorStart, "connectionMonitor/connectionMonitorStarted">;
2028
2301
  declare const connectionMonitorStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"connectionMonitor/connectionMonitorStopped">;
2029
2302
  declare const connectionMonitorReportUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<ConnectionMonitorReport, "connectionMonitor/connectionMonitorReportUpdated">;
@@ -2034,6 +2307,9 @@ declare const doUpdateConnectionMonitorReport: (args: ConnectionMonitorReport) =
2034
2307
  declare const doSetRemoteCallQualityScores: (args: RemoteCallQualityScores) => AppThunk;
2035
2308
  declare const doSetLocalCallQualityScore: (args: LocalCallQualityScore) => AppThunk;
2036
2309
  declare const doStopConnectionMonitor: (args: void) => AppThunk;
2310
+ /**
2311
+ * Selectors
2312
+ */
2037
2313
  declare const selectConnectionMonitorIsRunning: (state: RootState) => boolean;
2038
2314
  declare const selectStopCallbackFunction: (state: RootState) => (() => void) | undefined;
2039
2315
  declare const selectConnectionMonitorIssuesReport: (state: RootState) => ConnectionMonitorReport | undefined;
@@ -2533,16 +2809,28 @@ declare const selectCalculatedLocalCallQualityScore: ((state: {
2533
2809
  memoize: typeof reselect.weakMapMemoize;
2534
2810
  };
2535
2811
 
2812
+ /**
2813
+ * Reducer
2814
+ */
2536
2815
  interface DeviceCredentialsState {
2537
2816
  isFetching: boolean;
2538
2817
  data?: Credentials | null;
2539
2818
  }
2540
2819
  declare const deviceCredentialsSliceInitialState: DeviceCredentialsState;
2541
2820
  declare const deviceCredentialsSlice: _reduxjs_toolkit.Slice<DeviceCredentialsState, {}, "deviceCredentials", "deviceCredentials", _reduxjs_toolkit.SliceSelectors<DeviceCredentialsState>>;
2821
+ /**
2822
+ * Action creators
2823
+ */
2542
2824
  declare const doGetDeviceCredentials: _reduxjs_toolkit.AsyncThunk<Credentials | null | undefined, undefined, ThunkConfig>;
2825
+ /**
2826
+ * Selectors
2827
+ */
2543
2828
  declare const selectDeviceCredentialsRaw: (state: RootState) => DeviceCredentialsState;
2544
2829
  declare const selectHasFetchedDeviceCredentials: (state: RootState) => boolean;
2545
2830
  declare const selectDeviceId: (state: RootState) => string | undefined;
2831
+ /**
2832
+ * Reactors
2833
+ */
2546
2834
  declare const selectShouldFetchDeviceCredentials: ((state: {
2547
2835
  app: AppState;
2548
2836
  audioDenoiser: AudioDenoiserState;
@@ -2601,6 +2889,9 @@ type LocalMediaOptions = {
2601
2889
  audio: boolean;
2602
2890
  video: boolean;
2603
2891
  };
2892
+ /**
2893
+ * Reducer
2894
+ */
2604
2895
  interface LocalMediaState {
2605
2896
  beforeEffectTracks?: {
2606
2897
  audio?: MediaStreamTrack;
@@ -3035,6 +3326,9 @@ declare const localMediaSlice: _reduxjs_toolkit.Slice<LocalMediaState, {
3035
3326
  widescreenMode: boolean;
3036
3327
  };
3037
3328
  }, "localMedia", "localMedia", _reduxjs_toolkit.SliceSelectors<LocalMediaState>>;
3329
+ /**
3330
+ * Action creators
3331
+ */
3038
3332
  declare const deviceBusy: _reduxjs_toolkit.ActionCreatorWithPayload<{
3039
3333
  deviceId: string;
3040
3334
  }, "localMedia/deviceBusy">;
@@ -3070,9 +3364,16 @@ declare const setLocalMediaStream: _reduxjs_toolkit.ActionCreatorWithPayload<{
3070
3364
  }, "localMedia/setLocalMediaStream">;
3071
3365
  declare const localMediaStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"localMedia/localMediaStopped">;
3072
3366
  declare const localStreamMetadataUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<_whereby_com_media.GetDeviceDataResult, "localMedia/localStreamMetadataUpdated">;
3073
- declare const doToggleCamera: _reduxjs_toolkit.AsyncThunk<undefined, undefined, ThunkConfig>;
3367
+ declare const doToggleCamera: _reduxjs_toolkit.AsyncThunk<{
3368
+ changedTracks: {
3369
+ track: MediaStreamTrack;
3370
+ oldTrack: MediaStreamTrack;
3371
+ }[];
3372
+ } | undefined, undefined, ThunkConfig>;
3373
+ /** @deprecated */
3074
3374
  declare const doTriggerLocalStreamRefresh: (args: void) => AppThunk;
3075
3375
  declare const doSetDevice: _reduxjs_toolkit.AsyncThunk<{
3376
+ /** @deprecated Use changedTracks */
3076
3377
  replacedTracks: MediaStreamTrack[] | undefined;
3077
3378
  changedTracks: {
3078
3379
  track: MediaStreamTrack;
@@ -3086,6 +3387,7 @@ declare const doUpdateDeviceList: _reduxjs_toolkit.AsyncThunk<{
3086
3387
  devices: MediaDeviceInfo[];
3087
3388
  }, undefined, ThunkConfig>;
3088
3389
  declare const doSwitchLocalStream: _reduxjs_toolkit.AsyncThunk<{
3390
+ /** @deprecated Use changedTracks */
3089
3391
  replacedTracks: MediaStreamTrack[] | undefined;
3090
3392
  beforeEffectTracks: {
3091
3393
  audio?: MediaStreamTrack;
@@ -3113,6 +3415,7 @@ declare const doLocalStreamEffect: _reduxjs_toolkit.AsyncThunk<{
3113
3415
  audio?: MediaStreamTrack;
3114
3416
  video?: MediaStreamTrack;
3115
3417
  } | undefined;
3418
+ /** @deprecated Use changedTracks */
3116
3419
  replacedTracks: MediaStreamTrack[] | null;
3117
3420
  changedTracks: {
3118
3421
  track: MediaStreamTrack;
@@ -3123,6 +3426,9 @@ declare const doLocalStreamEffect: _reduxjs_toolkit.AsyncThunk<{
3123
3426
  only: "audio" | "video";
3124
3427
  stopBeforeTrack?: boolean;
3125
3428
  }, ThunkConfig>;
3429
+ /**
3430
+ * Selectors
3431
+ */
3126
3432
  declare const selectBusyDeviceIds: (state: RootState) => string[];
3127
3433
  declare const selectCameraDeviceError: (state: RootState) => unknown;
3128
3434
  declare const selectCurrentCameraDeviceId: (state: RootState) => string | undefined;
@@ -3494,6 +3800,9 @@ declare const selectSpeakerDevices: ((state: {
3494
3800
  argsMemoize: typeof reselect.weakMapMemoize;
3495
3801
  memoize: typeof reselect.weakMapMemoize;
3496
3802
  };
3803
+ /**
3804
+ * Reactors
3805
+ */
3497
3806
  declare const selectLocalMediaShouldStartWithOptions: ((state: {
3498
3807
  app: AppState;
3499
3808
  audioDenoiser: AudioDenoiserState;
@@ -3642,6 +3951,9 @@ declare const selectShouldApplyInitialMuteStates: ((state: {
3642
3951
  memoize: typeof reselect.weakMapMemoize;
3643
3952
  };
3644
3953
 
3954
+ /**
3955
+ * Reducer
3956
+ */
3645
3957
  interface OrganizationState {
3646
3958
  data: Organization | null | undefined;
3647
3959
  isFetching: boolean;
@@ -3649,10 +3961,19 @@ interface OrganizationState {
3649
3961
  }
3650
3962
  declare const organizationSliceInitialState: OrganizationState;
3651
3963
  declare const organizationSlice: _reduxjs_toolkit.Slice<OrganizationState, {}, "organization", "organization", _reduxjs_toolkit.SliceSelectors<OrganizationState>>;
3964
+ /**
3965
+ * Action creators
3966
+ */
3652
3967
  declare const doOrganizationFetch: _reduxjs_toolkit.AsyncThunk<Organization, undefined, ThunkConfig>;
3968
+ /**
3969
+ * Selectors
3970
+ */
3653
3971
  declare const selectOrganizationRaw: (state: RootState) => OrganizationState;
3654
3972
  declare const selectOrganizationId: (state: RootState) => string | undefined;
3655
3973
  declare const selectOrganizationPreferences: (state: RootState) => OrganizationPreferences | null | undefined;
3974
+ /**
3975
+ * Reducers
3976
+ */
3656
3977
  declare const selectShouldFetchOrganization: ((state: {
3657
3978
  app: AppState;
3658
3979
  audioDenoiser: AudioDenoiserState;
@@ -3709,7 +4030,13 @@ interface StreamStatusUpdate {
3709
4030
  state: StreamState;
3710
4031
  }
3711
4032
 
4033
+ /**
4034
+ * State mapping utils
4035
+ */
3712
4036
  declare function createRemoteParticipant(client: SignalClient, newJoiner?: boolean): RemoteParticipant;
4037
+ /**
4038
+ * Reducer
4039
+ */
3713
4040
  interface RemoteParticipantSliceState {
3714
4041
  remoteParticipants: RemoteParticipant[];
3715
4042
  }
@@ -3722,6 +4049,9 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
3722
4049
  streamId: string;
3723
4050
  }>) => RemoteParticipantSliceState;
3724
4051
  }, "remoteParticipants", "remoteParticipants", _reduxjs_toolkit.SliceSelectors<RemoteParticipantSliceState>>;
4052
+ /**
4053
+ * Action creators
4054
+ */
3725
4055
  declare const participantStreamAdded: _reduxjs_toolkit.ActionCreatorWithPayload<RtcStreamAddedPayload, "remoteParticipants/participantStreamAdded">;
3726
4056
  declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayload<{
3727
4057
  clientId: string;
@@ -3731,7 +4061,13 @@ declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<Str
3731
4061
  declare const doRequestAudioEnable: (args: AudioEnableRequest) => AppThunk;
3732
4062
  declare const doRequestVideoEnable: (args: VideoEnableRequest) => AppThunk;
3733
4063
  declare const doRequestScreenshareEnable: (args: ScreenshareEnableRequest) => AppThunk;
4064
+ /**
4065
+ * Selectors
4066
+ */
3734
4067
  declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantSliceState;
4068
+ /**
4069
+ * This includes non human roles such as recorder.
4070
+ */
3735
4071
  declare const selectRemoteClients: (state: RootState) => RemoteParticipant[];
3736
4072
  declare const selectRemoteParticipants: ((state: {
3737
4073
  app: AppState;
@@ -3947,12 +4283,33 @@ type ClientView = {
3947
4283
  breakoutGroupAssigned?: string;
3948
4284
  };
3949
4285
 
4286
+ /** @internal For Whereby's own development. May change without notice. */
4287
+ type RoomLockStateSource = "fetch" | "signal";
4288
+ /** @internal For Whereby's own development. May change without notice. */
4289
+ type RoomFetchStatus = "idle" | "fetching" | "fetched" | "failed";
3950
4290
  interface RoomState {
3951
4291
  isLocked: boolean;
4292
+ lockStateSource: RoomLockStateSource | null;
4293
+ lockStateRoomUrl: string | null;
4294
+ requestedRoomUrl: string | null;
4295
+ roomFetchStatus: RoomFetchStatus;
4296
+ roomFetchRequestId: string | null;
4297
+ isInRoom: boolean;
3952
4298
  mode: RoomMode | null;
3953
4299
  }
3954
4300
  declare const roomSliceInitialState: RoomState;
3955
- declare const roomSlice: _reduxjs_toolkit.Slice<RoomState, {}, "room", "room", _reduxjs_toolkit.SliceSelectors<RoomState>>;
4301
+ declare const roomSlice: _reduxjs_toolkit.Slice<RoomState, {
4302
+ setRequestedRoomUrl: (state: immer.WritableDraft<RoomState>, action: PayloadAction<string | null>) => immer.WritableDraft<RoomState>;
4303
+ }, "room", "room", _reduxjs_toolkit.SliceSelectors<RoomState>>;
4304
+ /**
4305
+ * Action creators
4306
+ */
4307
+ /** @internal For Whereby's own development. May change without notice. */
4308
+ declare const setRequestedRoomUrl: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "room/setRequestedRoomUrl">;
4309
+ /** @internal For Whereby's own development. May change without notice. */
4310
+ declare const doFetchRoom: _reduxjs_toolkit.AsyncThunk<{
4311
+ isLocked: boolean | null;
4312
+ }, string, ThunkConfig>;
3956
4313
  declare const doLockRoom: (args: {
3957
4314
  locked: boolean;
3958
4315
  }) => AppThunk;
@@ -3962,7 +4319,118 @@ declare const doKickParticipant: (args: {
3962
4319
  declare const doEndMeeting: (args: {
3963
4320
  stayBehind?: boolean;
3964
4321
  }) => AppThunk;
4322
+ /**
4323
+ * Selectors
4324
+ */
3965
4325
  declare const selectRoomIsLocked: (state: RootState) => boolean;
4326
+ /** @internal For Whereby's own development. May change without notice. */
4327
+ declare const selectRoomLockStateSource: (state: RootState) => RoomLockStateSource | null;
4328
+ /** @internal For Whereby's own development. May change without notice. */
4329
+ declare const selectRoomLockStateRoomUrl: (state: RootState) => string | null;
4330
+ /** @internal For Whereby's own development. May change without notice. */
4331
+ declare const selectRoomRequestedUrl: (state: RootState) => string | null;
4332
+ /** @internal For Whereby's own development. May change without notice. */
4333
+ declare const selectRoomFetchStatus: (state: RootState) => RoomFetchStatus;
4334
+ /** Whether the room is locked, or null while that isn't known. */
4335
+ declare const selectRoomLockState: ((state: {
4336
+ app: AppState;
4337
+ audioDenoiser: AudioDenoiserState;
4338
+ authorization: AuthorizationState;
4339
+ breakout: BreakoutState;
4340
+ cameraEffects: CameraEffectsState;
4341
+ chat: ChatState;
4342
+ cloudRecording: CloudRecordingState;
4343
+ connectionMonitor: ConnectionMonitorState;
4344
+ deviceCredentials: DeviceCredentialsState;
4345
+ fileShare: FileShareState;
4346
+ liveCaptions: LiveCaptionsState;
4347
+ liveTranscription: LiveTranscriptionState;
4348
+ localMedia: LocalMediaState;
4349
+ localParticipant: LocalParticipantState;
4350
+ localScreenshare: LocalScreenshareState;
4351
+ notifications: NotificationsState;
4352
+ organization: OrganizationState;
4353
+ remoteParticipants: RemoteParticipantSliceState;
4354
+ room: RoomState;
4355
+ roomConnection: RoomConnectionState;
4356
+ roomIntegrations: RoomIntegrationsState;
4357
+ rtcAnalytics: rtcAnalyticsState;
4358
+ rtcConnection: RtcConnectionState;
4359
+ signalConnection: SignalConnectionState;
4360
+ spotlights: SpotlightsState;
4361
+ streaming: StreamingState;
4362
+ waitingParticipants: WaitingParticipantsState;
4363
+ }) => boolean | null) & {
4364
+ clearCache: () => void;
4365
+ resultsCount: () => number;
4366
+ resetResultsCount: () => void;
4367
+ } & {
4368
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: RoomLockStateSource | null) => boolean | null;
4369
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: RoomLockStateSource | null) => boolean | null) & {
4370
+ clearCache: () => void;
4371
+ resultsCount: () => number;
4372
+ resetResultsCount: () => void;
4373
+ };
4374
+ lastResult: () => boolean | null;
4375
+ dependencies: [(state: RootState) => boolean, (state: RootState) => RoomLockStateSource | null];
4376
+ recomputations: () => number;
4377
+ resetRecomputations: () => void;
4378
+ dependencyRecomputations: () => number;
4379
+ resetDependencyRecomputations: () => void;
4380
+ } & {
4381
+ argsMemoize: typeof reselect.weakMapMemoize;
4382
+ memoize: typeof reselect.weakMapMemoize;
4383
+ };
4384
+ /** @internal For Whereby's own development. May change without notice. */
4385
+ declare const selectShouldFetchRoom: ((state: {
4386
+ app: AppState;
4387
+ audioDenoiser: AudioDenoiserState;
4388
+ authorization: AuthorizationState;
4389
+ breakout: BreakoutState;
4390
+ cameraEffects: CameraEffectsState;
4391
+ chat: ChatState;
4392
+ cloudRecording: CloudRecordingState;
4393
+ connectionMonitor: ConnectionMonitorState;
4394
+ deviceCredentials: DeviceCredentialsState;
4395
+ fileShare: FileShareState;
4396
+ liveCaptions: LiveCaptionsState;
4397
+ liveTranscription: LiveTranscriptionState;
4398
+ localMedia: LocalMediaState;
4399
+ localParticipant: LocalParticipantState;
4400
+ localScreenshare: LocalScreenshareState;
4401
+ notifications: NotificationsState;
4402
+ organization: OrganizationState;
4403
+ remoteParticipants: RemoteParticipantSliceState;
4404
+ room: RoomState;
4405
+ roomConnection: RoomConnectionState;
4406
+ roomIntegrations: RoomIntegrationsState;
4407
+ rtcAnalytics: rtcAnalyticsState;
4408
+ rtcConnection: RtcConnectionState;
4409
+ signalConnection: SignalConnectionState;
4410
+ spotlights: SpotlightsState;
4411
+ streaming: StreamingState;
4412
+ waitingParticipants: WaitingParticipantsState;
4413
+ }) => boolean) & {
4414
+ clearCache: () => void;
4415
+ resultsCount: () => number;
4416
+ resetResultsCount: () => void;
4417
+ } & {
4418
+ resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: string | null, resultFuncArgs_2: string | null, resultFuncArgs_3: RoomFetchStatus) => boolean;
4419
+ memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: string | null, resultFuncArgs_2: string | null, resultFuncArgs_3: RoomFetchStatus) => boolean) & {
4420
+ clearCache: () => void;
4421
+ resultsCount: () => number;
4422
+ resetResultsCount: () => void;
4423
+ };
4424
+ lastResult: () => boolean;
4425
+ dependencies: [(state: RootState) => boolean, (state: RootState) => string | null, (state: RootState) => string | null, (state: RootState) => RoomFetchStatus];
4426
+ recomputations: () => number;
4427
+ resetRecomputations: () => void;
4428
+ dependencyRecomputations: () => number;
4429
+ resetDependencyRecomputations: () => void;
4430
+ } & {
4431
+ argsMemoize: typeof reselect.weakMapMemoize;
4432
+ memoize: typeof reselect.weakMapMemoize;
4433
+ };
3966
4434
  declare const selectRoomMode: (state: RootState) => RoomMode | null;
3967
4435
  declare const selectScreenshares: ((state: {
3968
4436
  app: AppState;
@@ -5276,6 +5744,9 @@ declare const selectBreakoutGroupedParticipants: ((state: {
5276
5744
  type ConnectionStatus = "ready" | "connecting" | "connected" | "room_locked" | "knocking" | "knock_on_hold" | "knock_rejected" | "kicked" | "leaving" | "left" | "disconnected" | "reconnecting";
5277
5745
  type JoinRoomStage = "credentials" | "organization" | "local_media" | "signal_connect" | "identify_device" | "join_room";
5278
5746
  type JoinRoomErrorNames = "organization_fetch_failed" | "join_cancelled";
5747
+ /**
5748
+ * Reducer
5749
+ */
5279
5750
  interface RoomConnectionState {
5280
5751
  session: {
5281
5752
  createdAt: string;
@@ -5318,6 +5789,9 @@ declare const roomRejoined: _reduxjs_toolkit.ActionCreatorWithPayload<RoomRejoin
5318
5789
  declare const doKnockRoom: (args: void) => AppThunk;
5319
5790
  declare const doCancelKnock: (args: void) => AppThunk;
5320
5791
  declare const doConnectRoom: (args: void) => AppThunk;
5792
+ /**
5793
+ * Selectors
5794
+ */
5321
5795
  declare const selectJoinRoomStage: ((state: {
5322
5796
  app: AppState;
5323
5797
  audioDenoiser: AudioDenoiserState;
@@ -5367,6 +5841,9 @@ declare const selectJoinRoomStage: ((state: {
5367
5841
  argsMemoize: typeof reselect.weakMapMemoize;
5368
5842
  memoize: typeof reselect.weakMapMemoize;
5369
5843
  };
5844
+ /**
5845
+ * Reactors
5846
+ */
5370
5847
  declare const selectShouldConnectRoom: ((state: {
5371
5848
  app: AppState;
5372
5849
  audioDenoiser: AudioDenoiserState;
@@ -5461,6 +5938,9 @@ interface RoomIntegrationErrorDetail {
5461
5938
  message: string;
5462
5939
  }
5463
5940
  declare function roomIntegrationSignalError(error: string, action: string): RoomIntegrationErrorDetail;
5941
+ /**
5942
+ * Reducer
5943
+ */
5464
5944
  interface RoomIntegrationsState {
5465
5945
  available: RoomIntegration[];
5466
5946
  unavailable: RoomIntegration[];
@@ -5479,6 +5959,9 @@ declare const roomIntegrationsSlice: _reduxjs_toolkit.Slice<RoomIntegrationsStat
5479
5959
  declare const setRoomIntegrationsError: _reduxjs_toolkit.ActionCreatorWithPayload<{
5480
5960
  error: RoomIntegrationErrorDetail | null;
5481
5961
  }, "roomIntegrations/setRoomIntegrationsError">;
5962
+ /**
5963
+ * Action creators
5964
+ */
5482
5965
  declare const doFetchRoomIntegrations: _reduxjs_toolkit.AsyncThunk<FindRoomIntegrationsResponse, undefined, ThunkConfig>;
5483
5966
  declare const doStartRoomIntegration: (args: {
5484
5967
  roomIntegrationId: string;
@@ -5509,6 +5992,9 @@ declare const doUpdateRoomIntegrationProps: (args: {
5509
5992
  roomIntegrationSessionId: string;
5510
5993
  props: RoomIntegrationProps;
5511
5994
  }) => AppThunk;
5995
+ /**
5996
+ * Selectors
5997
+ */
5512
5998
  declare const selectRoomIntegrationsRaw: (state: RootState) => RoomIntegrationsState;
5513
5999
  declare const selectRoomIntegrationsError: (state: RootState) => RoomIntegrationErrorDetail | null;
5514
6000
  declare const selectRoomIntegrationsIsFetching: (state: RootState) => boolean;
@@ -6337,6 +6823,9 @@ declare const selectRoomIntegrationForUrl: ((state: {
6337
6823
  argsMemoize: typeof reselect.weakMapMemoize;
6338
6824
  memoize: typeof reselect.weakMapMemoize;
6339
6825
  };
6826
+ /**
6827
+ * Reactors
6828
+ */
6340
6829
  declare const selectShouldFetchRoomIntegrations: ((state: {
6341
6830
  app: AppState;
6342
6831
  audioDenoiser: AudioDenoiserState;
@@ -6398,6 +6887,9 @@ declare const rtcEvents: {
6398
6887
  declare const createWebRtcEmitter: (dispatch: AppDispatch) => {
6399
6888
  emit: (eventName: keyof RtcEvents, data: RtcEvents[keyof RtcEvents]) => void;
6400
6889
  };
6890
+ /**
6891
+ * Reducer
6892
+ */
6401
6893
  interface StreamResolutionUpdate {
6402
6894
  streamId: string;
6403
6895
  width: number;
@@ -6548,6 +7040,9 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
6548
7040
  };
6549
7041
  };
6550
7042
  }, "rtcConnection", "rtcConnection", _reduxjs_toolkit.SliceSelectors<RtcConnectionState>>;
7043
+ /**
7044
+ * Action creators
7045
+ */
6551
7046
  declare const audioOnlyModeToggled: _reduxjs_toolkit.ActionCreatorWithPayload<{
6552
7047
  enabled?: boolean;
6553
7048
  }, "rtcConnection/audioOnlyModeToggled">;
@@ -6575,6 +7070,9 @@ interface ToggleAudioOnlyModeOptions {
6575
7070
  declare const doToggleAudioOnlyMode: (args: {
6576
7071
  enabled?: boolean;
6577
7072
  } & ToggleAudioOnlyModeOptions) => AppThunk;
7073
+ /**
7074
+ * Selectors
7075
+ */
6578
7076
  declare const selectRtcConnectionRaw: (state: RootState) => RtcConnectionState;
6579
7077
  declare const selectRtcManagerInitialized: (state: RootState) => boolean;
6580
7078
  declare const selectRtcManager: (state: RootState) => RtcManager | null;
@@ -6854,6 +7352,7 @@ declare const selectStreamsToAccept: ((state: {
6854
7352
  };
6855
7353
 
6856
7354
  interface SignalDisconnectEvent {
7355
+ /** Whether the signal socket will try to reconnect on its own. */
6857
7356
  willReconnect: boolean;
6858
7357
  }
6859
7358
  declare const signalEvents: {
@@ -6904,6 +7403,9 @@ declare const signalEvents: {
6904
7403
  liveCaption: _reduxjs_toolkit.ActionCreatorWithPayload<LiveCaptionEvent, string>;
6905
7404
  };
6906
7405
 
7406
+ /**
7407
+ * Reducer
7408
+ */
6907
7409
  interface SignalConnectionState {
6908
7410
  deviceIdentified: boolean;
6909
7411
  isIdentifyingDevice: boolean;
@@ -6955,16 +7457,25 @@ declare const socketConnected: _reduxjs_toolkit.ActionCreatorWithPayload<ServerS
6955
7457
  declare const socketConnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketConnecting">;
6956
7458
  declare const socketDisconnected: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketDisconnected">;
6957
7459
  declare const socketReconnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketReconnecting">;
7460
+ /**
7461
+ * Action creators
7462
+ */
6958
7463
  declare const doSignalConnect: (args: void) => AppThunk;
6959
7464
  declare const doSignalIdentifyDevice: (args: {
6960
7465
  deviceCredentials: Credentials;
6961
7466
  }) => AppThunk;
6962
7467
  declare const doSignalDisconnect: (args: void) => AppThunk;
7468
+ /**
7469
+ * Selectors
7470
+ */
6963
7471
  declare const selectSignalConnectionRaw: (state: RootState) => SignalConnectionState;
6964
7472
  declare const selectSignalIsIdentifyingDevice: (state: RootState) => boolean;
6965
7473
  declare const selectSignalConnectionDeviceIdentified: (state: RootState) => boolean;
6966
7474
  declare const selectSignalStatus: (state: RootState) => "reconnecting" | "ready" | "connecting" | "connected" | "disconnected";
6967
7475
  declare const selectSignalConnectionSocket: (state: RootState) => ServerSocket | null;
7476
+ /**
7477
+ * Reactors
7478
+ */
6968
7479
  declare const selectShouldConnectSignal: ((state: {
6969
7480
  app: AppState;
6970
7481
  audioDenoiser: AudioDenoiserState;
@@ -7064,6 +7575,9 @@ declare const selectShouldIdentifyDevice: ((state: {
7064
7575
  memoize: typeof reselect.weakMapMemoize;
7065
7576
  };
7066
7577
 
7578
+ /**
7579
+ * State mapping utils
7580
+ */
7067
7581
  declare function streamIdForClient({ isPresentation, stream }: Pick<ClientView, "isPresentation" | "stream">): string | undefined;
7068
7582
  declare function isClientSpotlighted({ spotlights, isPresentation, clientId, stream, }: {
7069
7583
  spotlights: Spotlight[];
@@ -7071,6 +7585,9 @@ declare function isClientSpotlighted({ spotlights, isPresentation, clientId, str
7071
7585
  clientId: string;
7072
7586
  stream: ClientView["stream"];
7073
7587
  }): boolean;
7588
+ /**
7589
+ * Reducer
7590
+ */
7074
7591
  interface SpotlightsState {
7075
7592
  sorted: {
7076
7593
  clientId: string;
@@ -7099,6 +7616,9 @@ declare const spotlightsSlice: _reduxjs_toolkit.Slice<SpotlightsState, {
7099
7616
  }>[];
7100
7617
  };
7101
7618
  }, "spotlights", "spotlights", _reduxjs_toolkit.SliceSelectors<SpotlightsState>>;
7619
+ /**
7620
+ * Action creators
7621
+ */
7102
7622
  declare const addSpotlight: _reduxjs_toolkit.ActionCreatorWithPayload<{
7103
7623
  clientId: string;
7104
7624
  streamId: string;
@@ -7113,6 +7633,9 @@ declare const doSpotlightParticipant: (args: {
7113
7633
  declare const doRemoveSpotlight: (args: {
7114
7634
  id: string;
7115
7635
  }) => AppThunk;
7636
+ /**
7637
+ * Selectors
7638
+ */
7116
7639
  declare const selectSpotlightsRaw: (state: RootState) => SpotlightsState;
7117
7640
  declare const selectSpotlights: (state: RootState) => {
7118
7641
  clientId: string;
@@ -7481,8 +8004,15 @@ declare const selectSpotlightedClientViews: ((state: {
7481
8004
  memoize: typeof reselect.weakMapMemoize;
7482
8005
  };
7483
8006
 
8007
+ /**
8008
+ * Base URL overrides for `WherebyClient` and `createServices`.
8009
+ *
8010
+ * @internal For Whereby's own development. May change without notice.
8011
+ */
7484
8012
  interface ServicesOptions {
8013
+ /** Base URL of the Whereby API. Defaults to the URL the SDK was built with. */
7485
8014
  apiBaseUrl?: string;
8015
+ /** Base URL of the signal server. Defaults to the URL the SDK was built with. */
7486
8016
  signalBaseUrl?: string;
7487
8017
  }
7488
8018
  declare function createServices({ apiBaseUrl, signalBaseUrl }?: ServicesOptions): {
@@ -7491,6 +8021,7 @@ declare function createServices({ apiBaseUrl, signalBaseUrl }?: ServicesOptions)
7491
8021
  organizationService: OrganizationService;
7492
8022
  roomIntegrationService: RoomIntegrationService;
7493
8023
  fetchOrganizationFromRoomUrl: (roomUrl: string) => Promise<Organization | null>;
8024
+ fetchRoomFromRoomUrl: (roomUrl: string) => Promise<Room>;
7494
8025
  signalBaseUrl: string;
7495
8026
  };
7496
8027
 
@@ -7619,6 +8150,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
7619
8150
  organizationService: OrganizationService;
7620
8151
  roomIntegrationService: RoomIntegrationService;
7621
8152
  fetchOrganizationFromRoomUrl: (roomUrl: string) => Promise<Organization | null>;
8153
+ fetchRoomFromRoomUrl: (roomUrl: string) => Promise<Room>;
7622
8154
  signalBaseUrl: string;
7623
8155
  };
7624
8156
  }, redux.UnknownAction>;
@@ -7653,12 +8185,32 @@ declare const addAppListener: TypedAddListener<RootState, AppDispatch>;
7653
8185
  type SelectorResults<Selectors extends Selector<RootState, unknown>[]> = {
7654
8186
  [K in keyof Selectors]: Selectors[K] extends Selector<RootState, infer R> ? R : never;
7655
8187
  };
8188
+ /**
8189
+ * Creates a reactor that will be called whenever the provided selectors change.
8190
+ * Every reactor needs to update a piece of state that it depends on, to avoid infinite loops.
8191
+ * example:
8192
+ * ```ts
8193
+ * createReactor(
8194
+ * [selectAppIsActive, selectDeviceCredentialsRaw],
8195
+ * ({ dispatch }, appIsActive, deviceCredentialsRaw) => {
8196
+ * if (appIsActive && deviceCredentialsRaw.data) {
8197
+ * dispatch(doSignalIdentifyDevice({ deviceCredentials: deviceCredentialsRaw.data }));
8198
+ * }
8199
+ * });
8200
+ * ```
8201
+ * @param selectors. The selectors to be used to check if the state has changed.
8202
+ * @param callback. The callback to be called on every action. The first argument is the listenerApi, the second argument is the result of the selectors.
8203
+ * @returns The unsubscribe function.
8204
+ */
7656
8205
  declare const createReactor: <Selectors extends Selector<RootState, unknown>[]>(selectors: readonly [...Selectors], callback: (api: {
7657
8206
  dispatch: AppDispatch;
7658
8207
  getState: () => RootState;
7659
8208
  extra: ReturnType<typeof createServices>;
7660
8209
  }, ...selectorValues: SelectorResults<Selectors>) => void | Promise<void>) => _reduxjs_toolkit.UnsubscribeListener;
7661
8210
 
8211
+ /**
8212
+ * Selectors
8213
+ */
7662
8214
  declare const selectLocalParticipantRaw: (state: RootState) => LocalParticipantState;
7663
8215
  declare const selectSelfId: (state: RootState) => string;
7664
8216
  declare const selectLocalParticipantDisplayName: (state: RootState) => string;
@@ -7716,6 +8268,9 @@ declare const selectLocalParticipantView: ((state: {
7716
8268
  memoize: typeof reselect.weakMapMemoize;
7717
8269
  };
7718
8270
 
8271
+ /**
8272
+ * Selectors
8273
+ */
7719
8274
  declare const selectRoomConnectionRaw: (state: RootState) => RoomConnectionState;
7720
8275
  declare const selectRoomConnectionSession: (state: RootState) => {
7721
8276
  createdAt: string;
@@ -7727,5 +8282,5 @@ declare const selectRoomConnectionError: (state: RootState) => string | null;
7727
8282
  declare const selectRoomConnectionKnockResponse: (state: RootState) => _whereby_com_media.KnockResponse | null;
7728
8283
  declare const selectRoomConnectionIsRejoining: (state: RootState) => boolean;
7729
8284
 
7730
- 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, 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 };
7731
- export type { AppConfig, AppDispatch, AppReducer, AppStartListening, AppState, AppThunk, AuthorizationState, BreakoutGroupAssignedEvent, BreakoutGroupAssignedEventProps, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, BreakoutTimerEventProps, CPUQualityLevel, CallQualityLevel, CallQualityScore, ChatMessage, ChatMessageEvent, ChatMessageEventProps, ChatState, ClientView, CloudRecordingState, ConnectionMonitorReport, ConnectionMonitorStart, ConnectionMonitorState, ConnectionStatus, DeviceCredentialsState, FileShareError, FileShareState, FileUpload, InitialMuteStates, JoinRoomErrorNames, JoinRoomStage, LiveCaptionsState, LiveTranscriptionState, LocalCallQualityScore, LocalMediaOptions, LocalMediaState, LocalParticipantQualityReport, LocalParticipantState, LocalScreenshareState, MediaQualityScores, Notification, NotificationEvent, NotificationEventMap, NotificationEvents, NotificationsEventEmitter, NotificationsState, OrganizationState, ReconnectedEvent, ReconnectedEventProps, ReconnectingEvent, ReconnectingEventProps, RemoteCallQualityScores, RemoteParticipantQualityReport, RemoteParticipantSliceState, RequestAudioEvent, RequestAudioEventProps, RequestScreenshareEvent, RequestScreenshareEventProps, RequestVideoEvent, RequestVideoEventProps, RoomConnectionState, RoomIntegration, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, RoomRejoinedPayload, RoomState, RootState, RtcConnectionState, SendFilesOptions, ServicesOptions, SignalClientEvent, SignalClientEventProps, SignalConnectionState, SignalStatusEvent, SignalStatusEventProps, SpotlightsState, StartBreakoutSessionOptions, StickyReactionEvent, StickyReactionEventProps, Store, StreamingState, ThunkConfig, ToggleAudioOnlyModeOptions, UpdateBreakoutSessionOptions, WaitingParticipantsState, rtcAnalyticsState };
8285
+ 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, 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 };
8286
+ export type { AppConfig, AppDispatch, AppReducer, AppStartListening, AppState, AppThunk, AuthorizationState, BreakoutGroupAssignedEvent, BreakoutGroupAssignedEventProps, BreakoutSessionSettings, BreakoutState, BreakoutTimerEvent, BreakoutTimerEventProps, CPUQualityLevel, CallQualityLevel, CallQualityScore, ChatMessage, ChatMessageEvent, ChatMessageEventProps, ChatState, ClientView, CloudRecordingState, ConnectionMonitorReport, ConnectionMonitorStart, ConnectionMonitorState, ConnectionStatus, DeviceCredentialsState, FileShareError, FileShareState, FileUpload, InitialMuteStates, JoinRoomErrorNames, JoinRoomStage, LiveCaptionsState, LiveTranscriptionState, LocalCallQualityScore, LocalMediaOptions, LocalMediaState, LocalParticipantQualityReport, LocalParticipantState, LocalScreenshareState, MediaQualityScores, Notification, NotificationEvent, NotificationEventMap, NotificationEvents, NotificationsEventEmitter, NotificationsState, OrganizationState, ReconnectedEvent, ReconnectedEventProps, ReconnectingEvent, ReconnectingEventProps, RemoteCallQualityScores, RemoteParticipantQualityReport, RemoteParticipantSliceState, RequestAudioEvent, RequestAudioEventProps, RequestScreenshareEvent, RequestScreenshareEventProps, RequestVideoEvent, RequestVideoEventProps, RoomConnectionState, RoomFetchStatus, RoomIntegration, RoomIntegrationError, RoomIntegrationErrorDetail, RoomIntegrationPickerResult, RoomIntegrationSession, RoomIntegrationSessionView, RoomIntegrationsState, RoomLockStateSource, RoomRejoinedPayload, RoomState, RootState, RtcConnectionState, SendFilesOptions, ServicesOptions, SignalClientEvent, SignalClientEventProps, SignalConnectionState, SignalStatusEvent, SignalStatusEventProps, SpotlightsState, StartBreakoutSessionOptions, StickyReactionEvent, StickyReactionEventProps, Store, StreamingState, ThunkConfig, ToggleAudioOnlyModeOptions, UpdateBreakoutSessionOptions, WaitingParticipantsState, rtcAnalyticsState };