@whereby.com/core 0.9.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2,9 +2,9 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, AsyncThunk, TypedStartListening, TypedAddListener, Selector } from '@reduxjs/toolkit';
3
3
  import * as redux_thunk from 'redux-thunk';
4
4
  import * as redux from 'redux';
5
- import * as reselect from 'reselect';
6
5
  import * as _whereby_com_media from '@whereby.com/media';
7
- import { ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
6
+ import { RoleName, ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, AudioEnableRequest, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
7
+ import * as reselect from 'reselect';
8
8
  import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
9
9
  import { AxiosRequestConfig } from 'axios';
10
10
  import EventEmitter$1 from 'events';
@@ -188,6 +188,7 @@ interface Stream {
188
188
  interface RemoteParticipant {
189
189
  id: string;
190
190
  displayName: string;
191
+ roleName: RoleName;
191
192
  isAudioEnabled: boolean;
192
193
  isVideoEnabled: boolean;
193
194
  isLocalParticipant: boolean;
@@ -345,7 +346,7 @@ declare const selectLocalScreenshareStream: (state: RootState) => MediaStream |
345
346
 
346
347
  interface LocalParticipantState extends LocalParticipant {
347
348
  isScreenSharing: boolean;
348
- roleName: string;
349
+ roleName: RoleName;
349
350
  clientClaim?: string;
350
351
  }
351
352
  declare const doEnableAudio: _reduxjs_toolkit.AsyncThunk<boolean, {
@@ -360,7 +361,7 @@ declare const doSetDisplayName: _reduxjs_toolkit.AsyncThunk<string, {
360
361
  declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantState, {
361
362
  doSetLocalParticipant: (state: {
362
363
  isScreenSharing: boolean;
363
- roleName: string;
364
+ roleName: RoleName;
364
365
  clientClaim?: string | undefined;
365
366
  isLocalParticipant: true;
366
367
  displayName: string;
@@ -397,7 +398,7 @@ declare const localParticipantSlice: _reduxjs_toolkit.Slice<LocalParticipantStat
397
398
  isAudioEnabled: boolean;
398
399
  isVideoEnabled: boolean;
399
400
  isScreenSharing: boolean;
400
- roleName: string;
401
+ roleName: RoleName;
401
402
  clientClaim?: string | undefined;
402
403
  };
403
404
  }, "localParticipant", "localParticipant", _reduxjs_toolkit.SliceSelectors<LocalParticipantState>>;
@@ -405,7 +406,7 @@ declare const doSetLocalParticipant: _reduxjs_toolkit.ActionCreatorWithPayload<L
405
406
  declare const selectLocalParticipantRaw: (state: RootState) => LocalParticipantState;
406
407
  declare const selectSelfId: (state: RootState) => string;
407
408
  declare const selectLocalParticipantClientClaim: (state: RootState) => string | undefined;
408
- declare const selectLocalParticipantRole: (state: RootState) => string;
409
+ declare const selectLocalParticipantRole: (state: RootState) => RoleName;
409
410
  declare const selectLocalParticipantIsScreenSharing: (state: RootState) => boolean;
410
411
 
411
412
  interface CloudRecordingState {
@@ -453,7 +454,6 @@ interface AppState {
453
454
  wantsToJoin: boolean;
454
455
  roomUrl: string | null;
455
456
  roomName: string | null;
456
- roomKey: string | null;
457
457
  displayName: string | null;
458
458
  userAgent: string | null;
459
459
  externalId: string | null;
@@ -464,7 +464,6 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
464
464
  wantsToJoin: boolean;
465
465
  roomUrl: string | null;
466
466
  roomName: string | null;
467
- roomKey: string | null;
468
467
  displayName: string | null;
469
468
  userAgent: string | null;
470
469
  externalId: string | null;
@@ -492,7 +491,6 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
492
491
  wantsToJoin: boolean;
493
492
  roomUrl: string | null;
494
493
  roomName: string | null;
495
- roomKey: string | null;
496
494
  displayName: string | null;
497
495
  userAgent: string | null;
498
496
  externalId: string | null;
@@ -501,26 +499,6 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
501
499
  isNodeSdk: boolean;
502
500
  roomUrl: string | null;
503
501
  roomName: string | null;
504
- roomKey: string | null;
505
- displayName: string | null;
506
- userAgent: string | null;
507
- externalId: string | null;
508
- };
509
- setRoomKey: (state: {
510
- isNodeSdk: boolean;
511
- wantsToJoin: boolean;
512
- roomUrl: string | null;
513
- roomName: string | null;
514
- roomKey: string | null;
515
- displayName: string | null;
516
- userAgent: string | null;
517
- externalId: string | null;
518
- }, action: PayloadAction<string>) => {
519
- roomKey: string;
520
- isNodeSdk: boolean;
521
- wantsToJoin: boolean;
522
- roomUrl: string | null;
523
- roomName: string | null;
524
502
  displayName: string | null;
525
503
  userAgent: string | null;
526
504
  externalId: string | null;
@@ -536,17 +514,145 @@ declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
536
514
  externalId: string | null;
537
515
  }, "app/doAppJoin">;
538
516
  declare const appLeft: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/appLeft">;
539
- declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string, "app/setRoomKey">;
540
517
  declare const selectAppRaw: (state: RootState) => AppState;
541
518
  declare const selectAppWantsToJoin: (state: RootState) => boolean;
542
519
  declare const selectAppRoomName: (state: RootState) => string | null;
543
520
  declare const selectAppRoomUrl: (state: RootState) => string | null;
544
- declare const selectAppRoomKey: (state: RootState) => string | null;
545
521
  declare const selectAppDisplayName: (state: RootState) => string | null;
546
522
  declare const selectAppUserAgent: (state: RootState) => string | null;
547
523
  declare const selectAppExternalId: (state: RootState) => string | null;
548
524
  declare const selectAppIsNodeSdk: (state: RootState) => boolean;
549
525
 
526
+ interface AuthorizationState {
527
+ roomKey: string | null;
528
+ roomLocked: boolean;
529
+ }
530
+ declare const authorizationSlice: _reduxjs_toolkit.Slice<AuthorizationState, {
531
+ setRoomKey: (state: {
532
+ roomKey: string | null;
533
+ roomLocked: boolean;
534
+ }, action: PayloadAction<string | null>) => {
535
+ roomKey: string | null;
536
+ roomLocked: boolean;
537
+ };
538
+ }, "authorization", "authorization", _reduxjs_toolkit.SliceSelectors<AuthorizationState>>;
539
+ declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "authorization/setRoomKey">;
540
+ declare const doLockRoom: (args: {
541
+ locked: boolean;
542
+ }) => AppThunk<void>;
543
+ declare const selectAuthorizationRoomKey: (state: RootState) => string | null;
544
+ declare const selectAuthorizationRoomLocked: (state: RootState) => boolean;
545
+ declare const selectIsAuthorizedToLockRoom: ((state: {
546
+ app: AppState;
547
+ authorization: AuthorizationState;
548
+ chat: ChatState;
549
+ cloudRecording: CloudRecordingState;
550
+ deviceCredentials: DeviceCredentialsState;
551
+ localMedia: LocalMediaState;
552
+ localParticipant: LocalParticipantState;
553
+ localScreenshare: LocalScreenshareState;
554
+ organization: OrganizationState;
555
+ remoteParticipants: RemoteParticipantState;
556
+ roomConnection: RoomConnectionState;
557
+ rtcAnalytics: rtcAnalyticsState;
558
+ rtcConnection: RtcConnectionState;
559
+ signalConnection: SignalConnectionState;
560
+ streaming: StreamingState;
561
+ waitingParticipants: WaitingParticipantsState;
562
+ }) => boolean) & {
563
+ clearCache: () => void;
564
+ resultsCount: () => number;
565
+ resetResultsCount: () => void;
566
+ } & {
567
+ resultFunc: (resultFuncArgs_0: RoleName) => boolean;
568
+ memoizedResultFunc: ((resultFuncArgs_0: RoleName) => boolean) & {
569
+ clearCache: () => void;
570
+ resultsCount: () => number;
571
+ resetResultsCount: () => void;
572
+ };
573
+ lastResult: () => boolean;
574
+ dependencies: [(state: {
575
+ app: AppState;
576
+ authorization: AuthorizationState;
577
+ chat: ChatState;
578
+ cloudRecording: CloudRecordingState;
579
+ deviceCredentials: DeviceCredentialsState;
580
+ localMedia: LocalMediaState;
581
+ localParticipant: LocalParticipantState;
582
+ localScreenshare: LocalScreenshareState;
583
+ organization: OrganizationState;
584
+ remoteParticipants: RemoteParticipantState;
585
+ roomConnection: RoomConnectionState;
586
+ rtcAnalytics: rtcAnalyticsState;
587
+ rtcConnection: RtcConnectionState;
588
+ signalConnection: SignalConnectionState;
589
+ streaming: StreamingState;
590
+ waitingParticipants: WaitingParticipantsState;
591
+ }) => RoleName];
592
+ recomputations: () => number;
593
+ resetRecomputations: () => void;
594
+ dependencyRecomputations: () => number;
595
+ resetDependencyRecomputations: () => void;
596
+ } & {
597
+ argsMemoize: typeof reselect.weakMapMemoize;
598
+ memoize: typeof reselect.weakMapMemoize;
599
+ };
600
+ declare const selectIsAuthorizedToRequestAudioEnable: ((state: {
601
+ app: AppState;
602
+ authorization: AuthorizationState;
603
+ chat: ChatState;
604
+ cloudRecording: CloudRecordingState;
605
+ deviceCredentials: DeviceCredentialsState;
606
+ localMedia: LocalMediaState;
607
+ localParticipant: LocalParticipantState;
608
+ localScreenshare: LocalScreenshareState;
609
+ organization: OrganizationState;
610
+ remoteParticipants: RemoteParticipantState;
611
+ roomConnection: RoomConnectionState;
612
+ rtcAnalytics: rtcAnalyticsState;
613
+ rtcConnection: RtcConnectionState;
614
+ signalConnection: SignalConnectionState;
615
+ streaming: StreamingState;
616
+ waitingParticipants: WaitingParticipantsState;
617
+ }) => boolean) & {
618
+ clearCache: () => void;
619
+ resultsCount: () => number;
620
+ resetResultsCount: () => void;
621
+ } & {
622
+ resultFunc: (resultFuncArgs_0: RoleName) => boolean;
623
+ memoizedResultFunc: ((resultFuncArgs_0: RoleName) => boolean) & {
624
+ clearCache: () => void;
625
+ resultsCount: () => number;
626
+ resetResultsCount: () => void;
627
+ };
628
+ lastResult: () => boolean;
629
+ dependencies: [(state: {
630
+ app: AppState;
631
+ authorization: AuthorizationState;
632
+ chat: ChatState;
633
+ cloudRecording: CloudRecordingState;
634
+ deviceCredentials: DeviceCredentialsState;
635
+ localMedia: LocalMediaState;
636
+ localParticipant: LocalParticipantState;
637
+ localScreenshare: LocalScreenshareState;
638
+ organization: OrganizationState;
639
+ remoteParticipants: RemoteParticipantState;
640
+ roomConnection: RoomConnectionState;
641
+ rtcAnalytics: rtcAnalyticsState;
642
+ rtcConnection: RtcConnectionState;
643
+ signalConnection: SignalConnectionState;
644
+ streaming: StreamingState;
645
+ waitingParticipants: WaitingParticipantsState;
646
+ }) => RoleName];
647
+ recomputations: () => number;
648
+ resetRecomputations: () => void;
649
+ dependencyRecomputations: () => number;
650
+ resetDependencyRecomputations: () => void;
651
+ } & {
652
+ argsMemoize: typeof reselect.weakMapMemoize;
653
+ memoize: typeof reselect.weakMapMemoize;
654
+ };
655
+
550
656
  type HttpClientRequestConfig = AxiosRequestConfig | {
551
657
  [key: string]: unknown;
552
658
  };
@@ -787,6 +893,7 @@ declare const selectHasFetchedDeviceCredentials: (state: RootState) => boolean;
787
893
  declare const selectDeviceId: (state: RootState) => string | undefined;
788
894
  declare const selectShouldFetchDeviceCredentials: ((state: {
789
895
  app: AppState;
896
+ authorization: AuthorizationState;
790
897
  chat: ChatState;
791
898
  cloudRecording: CloudRecordingState;
792
899
  deviceCredentials: DeviceCredentialsState;
@@ -815,6 +922,7 @@ declare const selectShouldFetchDeviceCredentials: ((state: {
815
922
  lastResult: () => boolean;
816
923
  dependencies: [(state: {
817
924
  app: AppState;
925
+ authorization: AuthorizationState;
818
926
  chat: ChatState;
819
927
  cloudRecording: CloudRecordingState;
820
928
  deviceCredentials: DeviceCredentialsState;
@@ -1866,6 +1974,7 @@ declare const selectLocalMediaDevices: (state: RootState) => MediaDeviceInfo[];
1866
1974
  declare const selectLocalMediaOptions: (state: RootState) => LocalMediaOptions | undefined;
1867
1975
  declare const selectLocalMediaOwnsStream: ((state: {
1868
1976
  app: AppState;
1977
+ authorization: AuthorizationState;
1869
1978
  chat: ChatState;
1870
1979
  cloudRecording: CloudRecordingState;
1871
1980
  deviceCredentials: DeviceCredentialsState;
@@ -1909,6 +2018,7 @@ declare const selectLocalMediaStartError: (state: RootState) => unknown;
1909
2018
  declare const selectLocalMediaIsSwitchingStream: (state: RootState) => boolean;
1910
2019
  declare const selectLocalMediaConstraintsOptions: ((state: {
1911
2020
  app: AppState;
2021
+ authorization: AuthorizationState;
1912
2022
  chat: ChatState;
1913
2023
  cloudRecording: CloudRecordingState;
1914
2024
  deviceCredentials: DeviceCredentialsState;
@@ -1990,6 +2100,7 @@ declare const selectLocalMediaConstraintsOptions: ((state: {
1990
2100
  };
1991
2101
  declare const selectIsLocalMediaStarting: ((state: {
1992
2102
  app: AppState;
2103
+ authorization: AuthorizationState;
1993
2104
  chat: ChatState;
1994
2105
  cloudRecording: CloudRecordingState;
1995
2106
  deviceCredentials: DeviceCredentialsState;
@@ -2027,6 +2138,7 @@ declare const selectIsLocalMediaStarting: ((state: {
2027
2138
  };
2028
2139
  declare const selectCameraDevices: ((state: {
2029
2140
  app: AppState;
2141
+ authorization: AuthorizationState;
2030
2142
  chat: ChatState;
2031
2143
  cloudRecording: CloudRecordingState;
2032
2144
  deviceCredentials: DeviceCredentialsState;
@@ -2064,6 +2176,7 @@ declare const selectCameraDevices: ((state: {
2064
2176
  };
2065
2177
  declare const selectMicrophoneDevices: ((state: {
2066
2178
  app: AppState;
2179
+ authorization: AuthorizationState;
2067
2180
  chat: ChatState;
2068
2181
  cloudRecording: CloudRecordingState;
2069
2182
  deviceCredentials: DeviceCredentialsState;
@@ -2101,6 +2214,7 @@ declare const selectMicrophoneDevices: ((state: {
2101
2214
  };
2102
2215
  declare const selectSpeakerDevices: ((state: {
2103
2216
  app: AppState;
2217
+ authorization: AuthorizationState;
2104
2218
  chat: ChatState;
2105
2219
  cloudRecording: CloudRecordingState;
2106
2220
  deviceCredentials: DeviceCredentialsState;
@@ -2138,6 +2252,7 @@ declare const selectSpeakerDevices: ((state: {
2138
2252
  };
2139
2253
  declare const selectLocalMediaShouldStartWithOptions: ((state: {
2140
2254
  app: AppState;
2255
+ authorization: AuthorizationState;
2141
2256
  chat: ChatState;
2142
2257
  cloudRecording: CloudRecordingState;
2143
2258
  deviceCredentials: DeviceCredentialsState;
@@ -2166,6 +2281,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
2166
2281
  lastResult: () => LocalMediaOptions | undefined;
2167
2282
  dependencies: [(state: {
2168
2283
  app: AppState;
2284
+ authorization: AuthorizationState;
2169
2285
  chat: ChatState;
2170
2286
  cloudRecording: CloudRecordingState;
2171
2287
  deviceCredentials: DeviceCredentialsState;
@@ -2182,6 +2298,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
2182
2298
  waitingParticipants: WaitingParticipantsState;
2183
2299
  }) => boolean, (state: RootState) => "" | "error" | "stopped" | "starting" | "started", (state: RootState) => LocalMediaOptions | undefined, (state: {
2184
2300
  app: AppState;
2301
+ authorization: AuthorizationState;
2185
2302
  chat: ChatState;
2186
2303
  cloudRecording: CloudRecordingState;
2187
2304
  deviceCredentials: DeviceCredentialsState;
@@ -2207,6 +2324,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
2207
2324
  };
2208
2325
  declare const selectLocalMediaShouldStop: ((state: {
2209
2326
  app: AppState;
2327
+ authorization: AuthorizationState;
2210
2328
  chat: ChatState;
2211
2329
  cloudRecording: CloudRecordingState;
2212
2330
  deviceCredentials: DeviceCredentialsState;
@@ -2235,6 +2353,7 @@ declare const selectLocalMediaShouldStop: ((state: {
2235
2353
  lastResult: () => boolean;
2236
2354
  dependencies: [(state: {
2237
2355
  app: AppState;
2356
+ authorization: AuthorizationState;
2238
2357
  chat: ChatState;
2239
2358
  cloudRecording: CloudRecordingState;
2240
2359
  deviceCredentials: DeviceCredentialsState;
@@ -2270,6 +2389,7 @@ declare const selectOrganizationRaw: (state: RootState) => OrganizationState;
2270
2389
  declare const selectOrganizationId: (state: RootState) => string | undefined;
2271
2390
  declare const selectShouldFetchOrganization: ((state: {
2272
2391
  app: AppState;
2392
+ authorization: AuthorizationState;
2273
2393
  chat: ChatState;
2274
2394
  cloudRecording: CloudRecordingState;
2275
2395
  deviceCredentials: DeviceCredentialsState;
@@ -2298,6 +2418,7 @@ declare const selectShouldFetchOrganization: ((state: {
2298
2418
  lastResult: () => boolean;
2299
2419
  dependencies: [(state: {
2300
2420
  app: AppState;
2421
+ authorization: AuthorizationState;
2301
2422
  chat: ChatState;
2302
2423
  cloudRecording: CloudRecordingState;
2303
2424
  deviceCredentials: DeviceCredentialsState;
@@ -2314,6 +2435,7 @@ declare const selectShouldFetchOrganization: ((state: {
2314
2435
  waitingParticipants: WaitingParticipantsState;
2315
2436
  }) => boolean, (state: RootState) => OrganizationState, (state: {
2316
2437
  app: AppState;
2438
+ authorization: AuthorizationState;
2317
2439
  chat: ChatState;
2318
2440
  cloudRecording: CloudRecordingState;
2319
2441
  deviceCredentials: DeviceCredentialsState;
@@ -2352,6 +2474,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
2352
2474
  remoteParticipants: {
2353
2475
  id: string;
2354
2476
  displayName: string;
2477
+ roleName: _whereby_com_media.RoleName;
2355
2478
  isAudioEnabled: boolean;
2356
2479
  isVideoEnabled: boolean;
2357
2480
  isLocalParticipant: boolean;
@@ -2412,6 +2535,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
2412
2535
  remoteParticipants: {
2413
2536
  id: string;
2414
2537
  displayName: string;
2538
+ roleName: _whereby_com_media.RoleName;
2415
2539
  isAudioEnabled: boolean;
2416
2540
  isVideoEnabled: boolean;
2417
2541
  isLocalParticipant: boolean;
@@ -2473,6 +2597,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
2473
2597
  remoteParticipants: {
2474
2598
  id: string;
2475
2599
  displayName: string;
2600
+ roleName: _whereby_com_media.RoleName;
2476
2601
  isAudioEnabled: boolean;
2477
2602
  isVideoEnabled: boolean;
2478
2603
  isLocalParticipant: boolean;
@@ -2534,6 +2659,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
2534
2659
  remoteParticipants: {
2535
2660
  id: string;
2536
2661
  displayName: string;
2662
+ roleName: _whereby_com_media.RoleName;
2537
2663
  isAudioEnabled: boolean;
2538
2664
  isVideoEnabled: boolean;
2539
2665
  isLocalParticipant: boolean;
@@ -2601,10 +2727,12 @@ declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayloa
2601
2727
  streamId: string;
2602
2728
  }, "remoteParticipants/participantStreamIdAdded">;
2603
2729
  declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
2730
+ declare const doRequestAudioEnable: (args: AudioEnableRequest) => AppThunk<void>;
2604
2731
  declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
2605
2732
  declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
2606
2733
  declare const selectScreenshares: ((state: {
2607
2734
  app: AppState;
2735
+ authorization: AuthorizationState;
2608
2736
  chat: ChatState;
2609
2737
  cloudRecording: CloudRecordingState;
2610
2738
  deviceCredentials: DeviceCredentialsState;
@@ -2633,6 +2761,7 @@ declare const selectScreenshares: ((state: {
2633
2761
  lastResult: () => Screenshare[];
2634
2762
  dependencies: [(state: {
2635
2763
  app: AppState;
2764
+ authorization: AuthorizationState;
2636
2765
  chat: ChatState;
2637
2766
  cloudRecording: CloudRecordingState;
2638
2767
  deviceCredentials: DeviceCredentialsState;
@@ -2695,6 +2824,7 @@ declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus
2695
2824
  declare const selectRoomConnectionError: (state: RootState) => string | null;
2696
2825
  declare const selectShouldConnectRoom: ((state: {
2697
2826
  app: AppState;
2827
+ authorization: AuthorizationState;
2698
2828
  chat: ChatState;
2699
2829
  cloudRecording: CloudRecordingState;
2700
2830
  deviceCredentials: DeviceCredentialsState;
@@ -2723,6 +2853,7 @@ declare const selectShouldConnectRoom: ((state: {
2723
2853
  lastResult: () => boolean;
2724
2854
  dependencies: [(state: {
2725
2855
  app: AppState;
2856
+ authorization: AuthorizationState;
2726
2857
  chat: ChatState;
2727
2858
  cloudRecording: CloudRecordingState;
2728
2859
  deviceCredentials: DeviceCredentialsState;
@@ -2739,6 +2870,7 @@ declare const selectShouldConnectRoom: ((state: {
2739
2870
  waitingParticipants: WaitingParticipantsState;
2740
2871
  }) => string | undefined, (state: RootState) => ConnectionStatus, (state: {
2741
2872
  app: AppState;
2873
+ authorization: AuthorizationState;
2742
2874
  chat: ChatState;
2743
2875
  cloudRecording: CloudRecordingState;
2744
2876
  deviceCredentials: DeviceCredentialsState;
@@ -2755,6 +2887,7 @@ declare const selectShouldConnectRoom: ((state: {
2755
2887
  waitingParticipants: WaitingParticipantsState;
2756
2888
  }) => boolean, (state: {
2757
2889
  app: AppState;
2890
+ authorization: AuthorizationState;
2758
2891
  chat: ChatState;
2759
2892
  cloudRecording: CloudRecordingState;
2760
2893
  deviceCredentials: DeviceCredentialsState;
@@ -2771,6 +2904,7 @@ declare const selectShouldConnectRoom: ((state: {
2771
2904
  waitingParticipants: WaitingParticipantsState;
2772
2905
  }) => "" | "error" | "stopped" | "starting" | "started", (state: {
2773
2906
  app: AppState;
2907
+ authorization: AuthorizationState;
2774
2908
  chat: ChatState;
2775
2909
  cloudRecording: CloudRecordingState;
2776
2910
  deviceCredentials: DeviceCredentialsState;
@@ -3633,6 +3767,7 @@ declare const selectRtcStatus: (state: RootState) => "" | "reconnect" | "ready";
3633
3767
  declare const selectIsAcceptingStreams: (state: RootState) => boolean;
3634
3768
  declare const selectShouldConnectRtc: ((state: {
3635
3769
  app: AppState;
3770
+ authorization: AuthorizationState;
3636
3771
  chat: ChatState;
3637
3772
  cloudRecording: CloudRecordingState;
3638
3773
  deviceCredentials: DeviceCredentialsState;
@@ -3661,6 +3796,7 @@ declare const selectShouldConnectRtc: ((state: {
3661
3796
  lastResult: () => boolean;
3662
3797
  dependencies: [(state: RootState) => boolean, (state: RootState) => boolean, (state: {
3663
3798
  app: AppState;
3799
+ authorization: AuthorizationState;
3664
3800
  chat: ChatState;
3665
3801
  cloudRecording: CloudRecordingState;
3666
3802
  deviceCredentials: DeviceCredentialsState;
@@ -3686,6 +3822,7 @@ declare const selectShouldConnectRtc: ((state: {
3686
3822
  };
3687
3823
  declare const selectShouldInitializeRtc: ((state: {
3688
3824
  app: AppState;
3825
+ authorization: AuthorizationState;
3689
3826
  chat: ChatState;
3690
3827
  cloudRecording: CloudRecordingState;
3691
3828
  deviceCredentials: DeviceCredentialsState;
@@ -3714,6 +3851,7 @@ declare const selectShouldInitializeRtc: ((state: {
3714
3851
  lastResult: () => boolean;
3715
3852
  dependencies: [(state: RootState) => RtcManager | null, (state: RootState) => boolean, (state: {
3716
3853
  app: AppState;
3854
+ authorization: AuthorizationState;
3717
3855
  chat: ChatState;
3718
3856
  cloudRecording: CloudRecordingState;
3719
3857
  deviceCredentials: DeviceCredentialsState;
@@ -3739,6 +3877,7 @@ declare const selectShouldInitializeRtc: ((state: {
3739
3877
  };
3740
3878
  declare const selectShouldDisconnectRtc: ((state: {
3741
3879
  app: AppState;
3880
+ authorization: AuthorizationState;
3742
3881
  chat: ChatState;
3743
3882
  cloudRecording: CloudRecordingState;
3744
3883
  deviceCredentials: DeviceCredentialsState;
@@ -3767,6 +3906,7 @@ declare const selectShouldDisconnectRtc: ((state: {
3767
3906
  lastResult: () => boolean;
3768
3907
  dependencies: [(state: RootState) => "" | "reconnect" | "ready", (state: {
3769
3908
  app: AppState;
3909
+ authorization: AuthorizationState;
3770
3910
  chat: ChatState;
3771
3911
  cloudRecording: CloudRecordingState;
3772
3912
  deviceCredentials: DeviceCredentialsState;
@@ -3792,6 +3932,7 @@ declare const selectShouldDisconnectRtc: ((state: {
3792
3932
  };
3793
3933
  declare const selectStreamsToAccept: ((state: {
3794
3934
  app: AppState;
3935
+ authorization: AuthorizationState;
3795
3936
  chat: ChatState;
3796
3937
  cloudRecording: CloudRecordingState;
3797
3938
  deviceCredentials: DeviceCredentialsState;
@@ -3836,6 +3977,7 @@ declare const selectStreamsToAccept: ((state: {
3836
3977
  }[];
3837
3978
  dependencies: [(state: RootState) => "" | "reconnect" | "ready", (state: {
3838
3979
  app: AppState;
3980
+ authorization: AuthorizationState;
3839
3981
  chat: ChatState;
3840
3982
  cloudRecording: CloudRecordingState;
3841
3983
  deviceCredentials: DeviceCredentialsState;
@@ -5020,6 +5162,7 @@ declare const selectSignalStatus: (state: RootState) => "" | "connecting" | "con
5020
5162
  declare const selectSignalConnectionSocket: (state: RootState) => ServerSocket | null;
5021
5163
  declare const selectShouldConnectSignal: ((state: {
5022
5164
  app: AppState;
5165
+ authorization: AuthorizationState;
5023
5166
  chat: ChatState;
5024
5167
  cloudRecording: CloudRecordingState;
5025
5168
  deviceCredentials: DeviceCredentialsState;
@@ -5048,6 +5191,7 @@ declare const selectShouldConnectSignal: ((state: {
5048
5191
  lastResult: () => boolean;
5049
5192
  dependencies: [(state: {
5050
5193
  app: AppState;
5194
+ authorization: AuthorizationState;
5051
5195
  chat: ChatState;
5052
5196
  cloudRecording: CloudRecordingState;
5053
5197
  deviceCredentials: DeviceCredentialsState;
@@ -5073,6 +5217,7 @@ declare const selectShouldConnectSignal: ((state: {
5073
5217
  };
5074
5218
  declare const selectShouldIdentifyDevice: ((state: {
5075
5219
  app: AppState;
5220
+ authorization: AuthorizationState;
5076
5221
  chat: ChatState;
5077
5222
  cloudRecording: CloudRecordingState;
5078
5223
  deviceCredentials: DeviceCredentialsState;
@@ -5101,6 +5246,7 @@ declare const selectShouldIdentifyDevice: ((state: {
5101
5246
  lastResult: () => boolean;
5102
5247
  dependencies: [(state: {
5103
5248
  app: AppState;
5249
+ authorization: AuthorizationState;
5104
5250
  chat: ChatState;
5105
5251
  cloudRecording: CloudRecordingState;
5106
5252
  deviceCredentials: DeviceCredentialsState;
@@ -5134,6 +5280,7 @@ declare function createServices(): {
5134
5280
 
5135
5281
  declare const rootReducer: redux.Reducer<{
5136
5282
  app: AppState;
5283
+ authorization: AuthorizationState;
5137
5284
  chat: ChatState;
5138
5285
  cloudRecording: CloudRecordingState;
5139
5286
  deviceCredentials: DeviceCredentialsState;
@@ -5150,6 +5297,7 @@ declare const rootReducer: redux.Reducer<{
5150
5297
  waitingParticipants: WaitingParticipantsState;
5151
5298
  }, redux.UnknownAction, Partial<{
5152
5299
  app: AppState | undefined;
5300
+ authorization: AuthorizationState | undefined;
5153
5301
  chat: ChatState | undefined;
5154
5302
  cloudRecording: CloudRecordingState | undefined;
5155
5303
  deviceCredentials: DeviceCredentialsState | undefined;
@@ -5168,6 +5316,7 @@ declare const rootReducer: redux.Reducer<{
5168
5316
  declare const createStore: ({ preloadedState, injectServices, }: {
5169
5317
  preloadedState?: Partial<{
5170
5318
  app: AppState;
5319
+ authorization: AuthorizationState;
5171
5320
  chat: ChatState;
5172
5321
  cloudRecording: CloudRecordingState;
5173
5322
  deviceCredentials: DeviceCredentialsState;
@@ -5186,6 +5335,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
5186
5335
  injectServices: ReturnType<typeof createServices>;
5187
5336
  }) => _reduxjs_toolkit.EnhancedStore<{
5188
5337
  app: AppState;
5338
+ authorization: AuthorizationState;
5189
5339
  chat: ChatState;
5190
5340
  cloudRecording: CloudRecordingState;
5191
5341
  deviceCredentials: DeviceCredentialsState;
@@ -5203,6 +5353,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
5203
5353
  }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
5204
5354
  dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
5205
5355
  app: AppState;
5356
+ authorization: AuthorizationState;
5206
5357
  chat: ChatState;
5207
5358
  cloudRecording: CloudRecordingState;
5208
5359
  deviceCredentials: DeviceCredentialsState;
@@ -5244,12 +5395,14 @@ type AppThunk<R = void> = (dispatch: AppDispatch, getState: () => RootState, ext
5244
5395
  services: ReturnType<typeof createServices>;
5245
5396
  }) => R;
5246
5397
  declare function createAppThunk<A = void>(thunk: (args: A) => AppThunk): (args: A) => AppThunk;
5398
+ declare function createAppAuthorizedThunk<A = void>(authorizationSelector: (state: RootState) => boolean, thunk: (args: A) => AppThunk): (args: A) => AppThunk<void>;
5247
5399
 
5248
5400
  declare const listenerMiddleware: _reduxjs_toolkit.ListenerMiddlewareInstance<unknown, redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>, unknown>;
5249
5401
  type AppStartListening = TypedStartListening<RootState, AppDispatch, ReturnType<typeof createServices>>;
5250
5402
  declare const startAppListening: AppStartListening;
5251
5403
  declare const addAppListener: TypedAddListener<{
5252
5404
  app: AppState;
5405
+ authorization: AuthorizationState;
5253
5406
  chat: ChatState;
5254
5407
  cloudRecording: CloudRecordingState;
5255
5408
  deviceCredentials: DeviceCredentialsState;
@@ -5266,6 +5419,7 @@ declare const addAppListener: TypedAddListener<{
5266
5419
  waitingParticipants: WaitingParticipantsState;
5267
5420
  }, ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
5268
5421
  app: AppState;
5422
+ authorization: AuthorizationState;
5269
5423
  chat: ChatState;
5270
5424
  cloudRecording: CloudRecordingState;
5271
5425
  deviceCredentials: DeviceCredentialsState;
@@ -5293,6 +5447,7 @@ type SelectorResults<Selectors extends Selector<RootState, unknown>[]> = {
5293
5447
  };
5294
5448
  declare const createReactor: <Selectors extends Selector<{
5295
5449
  app: AppState;
5450
+ authorization: AuthorizationState;
5296
5451
  chat: ChatState;
5297
5452
  cloudRecording: CloudRecordingState;
5298
5453
  deviceCredentials: DeviceCredentialsState;
@@ -5322,4 +5477,6 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
5322
5477
  roomUrl: URL;
5323
5478
  };
5324
5479
 
5325
- export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomKey, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };
5480
+ declare function parseUnverifiedRoomKeyData(roomKey: string): any;
5481
+
5482
+ export { ApiClient, type AppDispatch, type AppStartListening, type AppState, type AppThunk, type AuthorizationState, type ChatMessage, type ChatState, type CloudRecordingState, type ConnectionStatus, Credentials, CredentialsService, type DeviceCredentialsState, type LocalMediaOptions, type LocalMediaState, LocalParticipant, type LocalParticipantState, type LocalScreenshareState, OrganizationApiClient, OrganizationService, OrganizationServiceCache, type OrganizationState, type RemoteParticipant, type RemoteParticipantData, type RemoteParticipantState, type RoomConnectionState, RoomService, type RootReducer, type RootState, type RtcConnectionState, type Screenshare, type SignalConnectionState, type Store, type StreamState, type StreamingState, type ThunkConfig, type WaitingParticipant, type WaitingParticipantsState, addAppListener, appLeft, appSlice, authorizationSlice, chatSlice, cloudRecordingSlice, createAppAsyncThunk, createAppAuthorizedThunk, createAppThunk, createReactor, createServices, createStore, createWebRtcEmitter, debounce, deviceBusy, deviceCredentialsSlice, deviceIdentified, deviceIdentifying, doAcceptWaitingParticipant, doAppJoin, doConnectRoom, doConnectRtc, doDisconnectRtc, doEnableAudio, doEnableVideo, doGetDeviceCredentials, doHandleAcceptStreams, doHandleStreamingStarted, doHandleStreamingStopped, doKnockRoom, doLockRoom, doOrganizationFetch, doRejectWaitingParticipant, doRequestAudioEnable, doRtcAnalyticsCustomEventsInitialize, doRtcManagerCreated, doRtcManagerInitialize, doRtcReportStreamResolution, doSendChatMessage, doSetDevice, doSetDisplayName, doSetLocalParticipant, doSignalDisconnect, doSignalIdentifyDevice, doSignalReconnect, doSignalSocketConnect, doStartCloudRecording, doStartLocalMedia, doStartScreenshare, doStopCloudRecording, doStopLocalMedia, doStopScreenshare, doSwitchLocalStream, doToggleCamera, doUpdateDeviceList, fakeAudioStream, fakeWebcamFrame, initialCloudRecordingState, initialLocalMediaState, isAcceptingStreams, listenerMiddleware, localMediaSlice, localMediaStopped, localParticipantSlice, localScreenshareSlice, localStreamMetadataUpdated, observeStore, organizationSlice, parseRoomUrlAndSubdomain, parseUnverifiedRoomKeyData, participantStreamAdded, participantStreamIdAdded, recordingRequestStarted, remoteParticipantsSlice, resolutionReported, roomConnectionSlice, rootReducer, rtcAnalyticsCustomEvents, rtcAnalyticsSlice, type rtcAnalyticsState, rtcConnectionSlice, rtcDisconnected, rtcDispatcherCreated, rtcManagerCreated, rtcManagerDestroyed, rtcManagerInitialized, selectAppDisplayName, selectAppExternalId, selectAppIsNodeSdk, selectAppRaw, selectAppRoomName, selectAppRoomUrl, selectAppUserAgent, selectAppWantsToJoin, selectAuthorizationRoomKey, selectAuthorizationRoomLocked, selectBusyDeviceIds, selectCameraDeviceError, selectCameraDevices, selectChatMessages, selectChatRaw, selectCloudRecordingError, selectCloudRecordingRaw, selectCloudRecordingStartedAt, selectCloudRecordingStatus, selectCurrentCameraDeviceId, selectCurrentMicrophoneDeviceId, selectDeviceCredentialsRaw, selectDeviceId, selectHasFetchedDeviceCredentials, selectIsAcceptingStreams, selectIsAuthorizedToLockRoom, selectIsAuthorizedToRequestAudioEnable, selectIsCameraEnabled, selectIsCloudRecording, selectIsLocalMediaStarting, selectIsMicrophoneEnabled, selectIsSettingCameraDevice, selectIsSettingMicrophoneDevice, selectIsToggleCamera, selectLocalMediaConstraintsOptions, selectLocalMediaDevices, selectLocalMediaIsSwitchingStream, selectLocalMediaOptions, selectLocalMediaOwnsStream, selectLocalMediaRaw, selectLocalMediaShouldStartWithOptions, selectLocalMediaShouldStop, selectLocalMediaStartError, selectLocalMediaStatus, selectLocalMediaStream, selectLocalParticipantClientClaim, selectLocalParticipantIsScreenSharing, selectLocalParticipantRaw, selectLocalParticipantRole, selectLocalScreenshareRaw, selectLocalScreenshareStatus, selectLocalScreenshareStream, selectMicrophoneDeviceError, selectMicrophoneDevices, selectOrganizationId, selectOrganizationRaw, selectRemoteParticipants, selectRemoteParticipantsRaw, selectRoomConnectionError, selectRoomConnectionRaw, selectRoomConnectionSession, selectRoomConnectionSessionId, selectRoomConnectionStatus, selectRtcConnectionRaw, selectRtcDispatcherCreated, selectRtcIsCreatingDispatcher, selectRtcManager, selectRtcManagerInitialized, selectRtcStatus, selectScreenshares, selectSelfId, selectShouldConnectRoom, selectShouldConnectRtc, selectShouldConnectSignal, selectShouldDisconnectRtc, selectShouldFetchDeviceCredentials, selectShouldFetchOrganization, selectShouldIdentifyDevice, selectShouldInitializeRtc, selectSignalConnectionDeviceIdentified, selectSignalConnectionRaw, selectSignalConnectionSocket, selectSignalIsIdentifyingDevice, selectSignalStatus, selectSpeakerDevices, selectStreamingRaw, selectStreamsToAccept, selectWaitingParticipants, selectWaitingParticipantsRaw, setCurrentCameraDeviceId, setCurrentMicrophoneDeviceId, setLocalMediaOptions, setLocalMediaStream, setRoomKey, signalConnectionSlice, socketConnected, socketConnecting, socketDisconnected, socketReconnecting, startAppListening, stopScreenshare, streamStatusUpdated, streamingSlice, toggleCameraEnabled, toggleMicrophoneEnabled, updateReportedValues, waitingParticipantsSlice };