@whereby.com/core 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +183 -111
- package/dist/index.d.cts +133 -32
- package/dist/index.d.mts +133 -32
- package/dist/index.d.ts +133 -32
- package/dist/index.mjs +177 -111
- package/package.json +1 -1
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, 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:
|
|
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:
|
|
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:
|
|
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) =>
|
|
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,90 @@ 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
|
+
|
|
550
601
|
type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
551
602
|
[key: string]: unknown;
|
|
552
603
|
};
|
|
@@ -787,6 +838,7 @@ declare const selectHasFetchedDeviceCredentials: (state: RootState) => boolean;
|
|
|
787
838
|
declare const selectDeviceId: (state: RootState) => string | undefined;
|
|
788
839
|
declare const selectShouldFetchDeviceCredentials: ((state: {
|
|
789
840
|
app: AppState;
|
|
841
|
+
authorization: AuthorizationState;
|
|
790
842
|
chat: ChatState;
|
|
791
843
|
cloudRecording: CloudRecordingState;
|
|
792
844
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -815,6 +867,7 @@ declare const selectShouldFetchDeviceCredentials: ((state: {
|
|
|
815
867
|
lastResult: () => boolean;
|
|
816
868
|
dependencies: [(state: {
|
|
817
869
|
app: AppState;
|
|
870
|
+
authorization: AuthorizationState;
|
|
818
871
|
chat: ChatState;
|
|
819
872
|
cloudRecording: CloudRecordingState;
|
|
820
873
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -1866,6 +1919,7 @@ declare const selectLocalMediaDevices: (state: RootState) => MediaDeviceInfo[];
|
|
|
1866
1919
|
declare const selectLocalMediaOptions: (state: RootState) => LocalMediaOptions | undefined;
|
|
1867
1920
|
declare const selectLocalMediaOwnsStream: ((state: {
|
|
1868
1921
|
app: AppState;
|
|
1922
|
+
authorization: AuthorizationState;
|
|
1869
1923
|
chat: ChatState;
|
|
1870
1924
|
cloudRecording: CloudRecordingState;
|
|
1871
1925
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -1909,6 +1963,7 @@ declare const selectLocalMediaStartError: (state: RootState) => unknown;
|
|
|
1909
1963
|
declare const selectLocalMediaIsSwitchingStream: (state: RootState) => boolean;
|
|
1910
1964
|
declare const selectLocalMediaConstraintsOptions: ((state: {
|
|
1911
1965
|
app: AppState;
|
|
1966
|
+
authorization: AuthorizationState;
|
|
1912
1967
|
chat: ChatState;
|
|
1913
1968
|
cloudRecording: CloudRecordingState;
|
|
1914
1969
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -1990,6 +2045,7 @@ declare const selectLocalMediaConstraintsOptions: ((state: {
|
|
|
1990
2045
|
};
|
|
1991
2046
|
declare const selectIsLocalMediaStarting: ((state: {
|
|
1992
2047
|
app: AppState;
|
|
2048
|
+
authorization: AuthorizationState;
|
|
1993
2049
|
chat: ChatState;
|
|
1994
2050
|
cloudRecording: CloudRecordingState;
|
|
1995
2051
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2027,6 +2083,7 @@ declare const selectIsLocalMediaStarting: ((state: {
|
|
|
2027
2083
|
};
|
|
2028
2084
|
declare const selectCameraDevices: ((state: {
|
|
2029
2085
|
app: AppState;
|
|
2086
|
+
authorization: AuthorizationState;
|
|
2030
2087
|
chat: ChatState;
|
|
2031
2088
|
cloudRecording: CloudRecordingState;
|
|
2032
2089
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2064,6 +2121,7 @@ declare const selectCameraDevices: ((state: {
|
|
|
2064
2121
|
};
|
|
2065
2122
|
declare const selectMicrophoneDevices: ((state: {
|
|
2066
2123
|
app: AppState;
|
|
2124
|
+
authorization: AuthorizationState;
|
|
2067
2125
|
chat: ChatState;
|
|
2068
2126
|
cloudRecording: CloudRecordingState;
|
|
2069
2127
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2101,6 +2159,7 @@ declare const selectMicrophoneDevices: ((state: {
|
|
|
2101
2159
|
};
|
|
2102
2160
|
declare const selectSpeakerDevices: ((state: {
|
|
2103
2161
|
app: AppState;
|
|
2162
|
+
authorization: AuthorizationState;
|
|
2104
2163
|
chat: ChatState;
|
|
2105
2164
|
cloudRecording: CloudRecordingState;
|
|
2106
2165
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2138,6 +2197,7 @@ declare const selectSpeakerDevices: ((state: {
|
|
|
2138
2197
|
};
|
|
2139
2198
|
declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
2140
2199
|
app: AppState;
|
|
2200
|
+
authorization: AuthorizationState;
|
|
2141
2201
|
chat: ChatState;
|
|
2142
2202
|
cloudRecording: CloudRecordingState;
|
|
2143
2203
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2166,6 +2226,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
|
2166
2226
|
lastResult: () => LocalMediaOptions | undefined;
|
|
2167
2227
|
dependencies: [(state: {
|
|
2168
2228
|
app: AppState;
|
|
2229
|
+
authorization: AuthorizationState;
|
|
2169
2230
|
chat: ChatState;
|
|
2170
2231
|
cloudRecording: CloudRecordingState;
|
|
2171
2232
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2182,6 +2243,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
|
2182
2243
|
waitingParticipants: WaitingParticipantsState;
|
|
2183
2244
|
}) => boolean, (state: RootState) => "" | "error" | "stopped" | "starting" | "started", (state: RootState) => LocalMediaOptions | undefined, (state: {
|
|
2184
2245
|
app: AppState;
|
|
2246
|
+
authorization: AuthorizationState;
|
|
2185
2247
|
chat: ChatState;
|
|
2186
2248
|
cloudRecording: CloudRecordingState;
|
|
2187
2249
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2207,6 +2269,7 @@ declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
|
2207
2269
|
};
|
|
2208
2270
|
declare const selectLocalMediaShouldStop: ((state: {
|
|
2209
2271
|
app: AppState;
|
|
2272
|
+
authorization: AuthorizationState;
|
|
2210
2273
|
chat: ChatState;
|
|
2211
2274
|
cloudRecording: CloudRecordingState;
|
|
2212
2275
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2235,6 +2298,7 @@ declare const selectLocalMediaShouldStop: ((state: {
|
|
|
2235
2298
|
lastResult: () => boolean;
|
|
2236
2299
|
dependencies: [(state: {
|
|
2237
2300
|
app: AppState;
|
|
2301
|
+
authorization: AuthorizationState;
|
|
2238
2302
|
chat: ChatState;
|
|
2239
2303
|
cloudRecording: CloudRecordingState;
|
|
2240
2304
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2270,6 +2334,7 @@ declare const selectOrganizationRaw: (state: RootState) => OrganizationState;
|
|
|
2270
2334
|
declare const selectOrganizationId: (state: RootState) => string | undefined;
|
|
2271
2335
|
declare const selectShouldFetchOrganization: ((state: {
|
|
2272
2336
|
app: AppState;
|
|
2337
|
+
authorization: AuthorizationState;
|
|
2273
2338
|
chat: ChatState;
|
|
2274
2339
|
cloudRecording: CloudRecordingState;
|
|
2275
2340
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2298,6 +2363,7 @@ declare const selectShouldFetchOrganization: ((state: {
|
|
|
2298
2363
|
lastResult: () => boolean;
|
|
2299
2364
|
dependencies: [(state: {
|
|
2300
2365
|
app: AppState;
|
|
2366
|
+
authorization: AuthorizationState;
|
|
2301
2367
|
chat: ChatState;
|
|
2302
2368
|
cloudRecording: CloudRecordingState;
|
|
2303
2369
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2314,6 +2380,7 @@ declare const selectShouldFetchOrganization: ((state: {
|
|
|
2314
2380
|
waitingParticipants: WaitingParticipantsState;
|
|
2315
2381
|
}) => boolean, (state: RootState) => OrganizationState, (state: {
|
|
2316
2382
|
app: AppState;
|
|
2383
|
+
authorization: AuthorizationState;
|
|
2317
2384
|
chat: ChatState;
|
|
2318
2385
|
cloudRecording: CloudRecordingState;
|
|
2319
2386
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2352,6 +2419,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2352
2419
|
remoteParticipants: {
|
|
2353
2420
|
id: string;
|
|
2354
2421
|
displayName: string;
|
|
2422
|
+
roleName: _whereby_com_media.RoleName;
|
|
2355
2423
|
isAudioEnabled: boolean;
|
|
2356
2424
|
isVideoEnabled: boolean;
|
|
2357
2425
|
isLocalParticipant: boolean;
|
|
@@ -2412,6 +2480,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2412
2480
|
remoteParticipants: {
|
|
2413
2481
|
id: string;
|
|
2414
2482
|
displayName: string;
|
|
2483
|
+
roleName: _whereby_com_media.RoleName;
|
|
2415
2484
|
isAudioEnabled: boolean;
|
|
2416
2485
|
isVideoEnabled: boolean;
|
|
2417
2486
|
isLocalParticipant: boolean;
|
|
@@ -2473,6 +2542,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2473
2542
|
remoteParticipants: {
|
|
2474
2543
|
id: string;
|
|
2475
2544
|
displayName: string;
|
|
2545
|
+
roleName: _whereby_com_media.RoleName;
|
|
2476
2546
|
isAudioEnabled: boolean;
|
|
2477
2547
|
isVideoEnabled: boolean;
|
|
2478
2548
|
isLocalParticipant: boolean;
|
|
@@ -2534,6 +2604,7 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2534
2604
|
remoteParticipants: {
|
|
2535
2605
|
id: string;
|
|
2536
2606
|
displayName: string;
|
|
2607
|
+
roleName: _whereby_com_media.RoleName;
|
|
2537
2608
|
isAudioEnabled: boolean;
|
|
2538
2609
|
isVideoEnabled: boolean;
|
|
2539
2610
|
isLocalParticipant: boolean;
|
|
@@ -2605,6 +2676,7 @@ declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipa
|
|
|
2605
2676
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2606
2677
|
declare const selectScreenshares: ((state: {
|
|
2607
2678
|
app: AppState;
|
|
2679
|
+
authorization: AuthorizationState;
|
|
2608
2680
|
chat: ChatState;
|
|
2609
2681
|
cloudRecording: CloudRecordingState;
|
|
2610
2682
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2633,6 +2705,7 @@ declare const selectScreenshares: ((state: {
|
|
|
2633
2705
|
lastResult: () => Screenshare[];
|
|
2634
2706
|
dependencies: [(state: {
|
|
2635
2707
|
app: AppState;
|
|
2708
|
+
authorization: AuthorizationState;
|
|
2636
2709
|
chat: ChatState;
|
|
2637
2710
|
cloudRecording: CloudRecordingState;
|
|
2638
2711
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2695,6 +2768,7 @@ declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus
|
|
|
2695
2768
|
declare const selectRoomConnectionError: (state: RootState) => string | null;
|
|
2696
2769
|
declare const selectShouldConnectRoom: ((state: {
|
|
2697
2770
|
app: AppState;
|
|
2771
|
+
authorization: AuthorizationState;
|
|
2698
2772
|
chat: ChatState;
|
|
2699
2773
|
cloudRecording: CloudRecordingState;
|
|
2700
2774
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2723,6 +2797,7 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
2723
2797
|
lastResult: () => boolean;
|
|
2724
2798
|
dependencies: [(state: {
|
|
2725
2799
|
app: AppState;
|
|
2800
|
+
authorization: AuthorizationState;
|
|
2726
2801
|
chat: ChatState;
|
|
2727
2802
|
cloudRecording: CloudRecordingState;
|
|
2728
2803
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2739,6 +2814,7 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
2739
2814
|
waitingParticipants: WaitingParticipantsState;
|
|
2740
2815
|
}) => string | undefined, (state: RootState) => ConnectionStatus, (state: {
|
|
2741
2816
|
app: AppState;
|
|
2817
|
+
authorization: AuthorizationState;
|
|
2742
2818
|
chat: ChatState;
|
|
2743
2819
|
cloudRecording: CloudRecordingState;
|
|
2744
2820
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2755,6 +2831,7 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
2755
2831
|
waitingParticipants: WaitingParticipantsState;
|
|
2756
2832
|
}) => boolean, (state: {
|
|
2757
2833
|
app: AppState;
|
|
2834
|
+
authorization: AuthorizationState;
|
|
2758
2835
|
chat: ChatState;
|
|
2759
2836
|
cloudRecording: CloudRecordingState;
|
|
2760
2837
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -2771,6 +2848,7 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
2771
2848
|
waitingParticipants: WaitingParticipantsState;
|
|
2772
2849
|
}) => "" | "error" | "stopped" | "starting" | "started", (state: {
|
|
2773
2850
|
app: AppState;
|
|
2851
|
+
authorization: AuthorizationState;
|
|
2774
2852
|
chat: ChatState;
|
|
2775
2853
|
cloudRecording: CloudRecordingState;
|
|
2776
2854
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3633,6 +3711,7 @@ declare const selectRtcStatus: (state: RootState) => "" | "reconnect" | "ready";
|
|
|
3633
3711
|
declare const selectIsAcceptingStreams: (state: RootState) => boolean;
|
|
3634
3712
|
declare const selectShouldConnectRtc: ((state: {
|
|
3635
3713
|
app: AppState;
|
|
3714
|
+
authorization: AuthorizationState;
|
|
3636
3715
|
chat: ChatState;
|
|
3637
3716
|
cloudRecording: CloudRecordingState;
|
|
3638
3717
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3661,6 +3740,7 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3661
3740
|
lastResult: () => boolean;
|
|
3662
3741
|
dependencies: [(state: RootState) => boolean, (state: RootState) => boolean, (state: {
|
|
3663
3742
|
app: AppState;
|
|
3743
|
+
authorization: AuthorizationState;
|
|
3664
3744
|
chat: ChatState;
|
|
3665
3745
|
cloudRecording: CloudRecordingState;
|
|
3666
3746
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3686,6 +3766,7 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3686
3766
|
};
|
|
3687
3767
|
declare const selectShouldInitializeRtc: ((state: {
|
|
3688
3768
|
app: AppState;
|
|
3769
|
+
authorization: AuthorizationState;
|
|
3689
3770
|
chat: ChatState;
|
|
3690
3771
|
cloudRecording: CloudRecordingState;
|
|
3691
3772
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3714,6 +3795,7 @@ declare const selectShouldInitializeRtc: ((state: {
|
|
|
3714
3795
|
lastResult: () => boolean;
|
|
3715
3796
|
dependencies: [(state: RootState) => RtcManager | null, (state: RootState) => boolean, (state: {
|
|
3716
3797
|
app: AppState;
|
|
3798
|
+
authorization: AuthorizationState;
|
|
3717
3799
|
chat: ChatState;
|
|
3718
3800
|
cloudRecording: CloudRecordingState;
|
|
3719
3801
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3739,6 +3821,7 @@ declare const selectShouldInitializeRtc: ((state: {
|
|
|
3739
3821
|
};
|
|
3740
3822
|
declare const selectShouldDisconnectRtc: ((state: {
|
|
3741
3823
|
app: AppState;
|
|
3824
|
+
authorization: AuthorizationState;
|
|
3742
3825
|
chat: ChatState;
|
|
3743
3826
|
cloudRecording: CloudRecordingState;
|
|
3744
3827
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3767,6 +3850,7 @@ declare const selectShouldDisconnectRtc: ((state: {
|
|
|
3767
3850
|
lastResult: () => boolean;
|
|
3768
3851
|
dependencies: [(state: RootState) => "" | "reconnect" | "ready", (state: {
|
|
3769
3852
|
app: AppState;
|
|
3853
|
+
authorization: AuthorizationState;
|
|
3770
3854
|
chat: ChatState;
|
|
3771
3855
|
cloudRecording: CloudRecordingState;
|
|
3772
3856
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3792,6 +3876,7 @@ declare const selectShouldDisconnectRtc: ((state: {
|
|
|
3792
3876
|
};
|
|
3793
3877
|
declare const selectStreamsToAccept: ((state: {
|
|
3794
3878
|
app: AppState;
|
|
3879
|
+
authorization: AuthorizationState;
|
|
3795
3880
|
chat: ChatState;
|
|
3796
3881
|
cloudRecording: CloudRecordingState;
|
|
3797
3882
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -3836,6 +3921,7 @@ declare const selectStreamsToAccept: ((state: {
|
|
|
3836
3921
|
}[];
|
|
3837
3922
|
dependencies: [(state: RootState) => "" | "reconnect" | "ready", (state: {
|
|
3838
3923
|
app: AppState;
|
|
3924
|
+
authorization: AuthorizationState;
|
|
3839
3925
|
chat: ChatState;
|
|
3840
3926
|
cloudRecording: CloudRecordingState;
|
|
3841
3927
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5020,6 +5106,7 @@ declare const selectSignalStatus: (state: RootState) => "" | "connecting" | "con
|
|
|
5020
5106
|
declare const selectSignalConnectionSocket: (state: RootState) => ServerSocket | null;
|
|
5021
5107
|
declare const selectShouldConnectSignal: ((state: {
|
|
5022
5108
|
app: AppState;
|
|
5109
|
+
authorization: AuthorizationState;
|
|
5023
5110
|
chat: ChatState;
|
|
5024
5111
|
cloudRecording: CloudRecordingState;
|
|
5025
5112
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5048,6 +5135,7 @@ declare const selectShouldConnectSignal: ((state: {
|
|
|
5048
5135
|
lastResult: () => boolean;
|
|
5049
5136
|
dependencies: [(state: {
|
|
5050
5137
|
app: AppState;
|
|
5138
|
+
authorization: AuthorizationState;
|
|
5051
5139
|
chat: ChatState;
|
|
5052
5140
|
cloudRecording: CloudRecordingState;
|
|
5053
5141
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5073,6 +5161,7 @@ declare const selectShouldConnectSignal: ((state: {
|
|
|
5073
5161
|
};
|
|
5074
5162
|
declare const selectShouldIdentifyDevice: ((state: {
|
|
5075
5163
|
app: AppState;
|
|
5164
|
+
authorization: AuthorizationState;
|
|
5076
5165
|
chat: ChatState;
|
|
5077
5166
|
cloudRecording: CloudRecordingState;
|
|
5078
5167
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5101,6 +5190,7 @@ declare const selectShouldIdentifyDevice: ((state: {
|
|
|
5101
5190
|
lastResult: () => boolean;
|
|
5102
5191
|
dependencies: [(state: {
|
|
5103
5192
|
app: AppState;
|
|
5193
|
+
authorization: AuthorizationState;
|
|
5104
5194
|
chat: ChatState;
|
|
5105
5195
|
cloudRecording: CloudRecordingState;
|
|
5106
5196
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5134,6 +5224,7 @@ declare function createServices(): {
|
|
|
5134
5224
|
|
|
5135
5225
|
declare const rootReducer: redux.Reducer<{
|
|
5136
5226
|
app: AppState;
|
|
5227
|
+
authorization: AuthorizationState;
|
|
5137
5228
|
chat: ChatState;
|
|
5138
5229
|
cloudRecording: CloudRecordingState;
|
|
5139
5230
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5150,6 +5241,7 @@ declare const rootReducer: redux.Reducer<{
|
|
|
5150
5241
|
waitingParticipants: WaitingParticipantsState;
|
|
5151
5242
|
}, redux.UnknownAction, Partial<{
|
|
5152
5243
|
app: AppState | undefined;
|
|
5244
|
+
authorization: AuthorizationState | undefined;
|
|
5153
5245
|
chat: ChatState | undefined;
|
|
5154
5246
|
cloudRecording: CloudRecordingState | undefined;
|
|
5155
5247
|
deviceCredentials: DeviceCredentialsState | undefined;
|
|
@@ -5168,6 +5260,7 @@ declare const rootReducer: redux.Reducer<{
|
|
|
5168
5260
|
declare const createStore: ({ preloadedState, injectServices, }: {
|
|
5169
5261
|
preloadedState?: Partial<{
|
|
5170
5262
|
app: AppState;
|
|
5263
|
+
authorization: AuthorizationState;
|
|
5171
5264
|
chat: ChatState;
|
|
5172
5265
|
cloudRecording: CloudRecordingState;
|
|
5173
5266
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5186,6 +5279,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
5186
5279
|
injectServices: ReturnType<typeof createServices>;
|
|
5187
5280
|
}) => _reduxjs_toolkit.EnhancedStore<{
|
|
5188
5281
|
app: AppState;
|
|
5282
|
+
authorization: AuthorizationState;
|
|
5189
5283
|
chat: ChatState;
|
|
5190
5284
|
cloudRecording: CloudRecordingState;
|
|
5191
5285
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5203,6 +5297,7 @@ declare const createStore: ({ preloadedState, injectServices, }: {
|
|
|
5203
5297
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
5204
5298
|
dispatch: ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
|
|
5205
5299
|
app: AppState;
|
|
5300
|
+
authorization: AuthorizationState;
|
|
5206
5301
|
chat: ChatState;
|
|
5207
5302
|
cloudRecording: CloudRecordingState;
|
|
5208
5303
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5244,12 +5339,14 @@ type AppThunk<R = void> = (dispatch: AppDispatch, getState: () => RootState, ext
|
|
|
5244
5339
|
services: ReturnType<typeof createServices>;
|
|
5245
5340
|
}) => R;
|
|
5246
5341
|
declare function createAppThunk<A = void>(thunk: (args: A) => AppThunk): (args: A) => AppThunk;
|
|
5342
|
+
declare function createAppAuthorizedThunk<A = void>(authorizationSelector: (state: RootState) => boolean, thunk: (args: A) => AppThunk): (args: A) => AppThunk<void>;
|
|
5247
5343
|
|
|
5248
5344
|
declare const listenerMiddleware: _reduxjs_toolkit.ListenerMiddlewareInstance<unknown, redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>, unknown>;
|
|
5249
5345
|
type AppStartListening = TypedStartListening<RootState, AppDispatch, ReturnType<typeof createServices>>;
|
|
5250
5346
|
declare const startAppListening: AppStartListening;
|
|
5251
5347
|
declare const addAppListener: TypedAddListener<{
|
|
5252
5348
|
app: AppState;
|
|
5349
|
+
authorization: AuthorizationState;
|
|
5253
5350
|
chat: ChatState;
|
|
5254
5351
|
cloudRecording: CloudRecordingState;
|
|
5255
5352
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5266,6 +5363,7 @@ declare const addAppListener: TypedAddListener<{
|
|
|
5266
5363
|
waitingParticipants: WaitingParticipantsState;
|
|
5267
5364
|
}, ((action: redux.Action<"listenerMiddleware/add">) => _reduxjs_toolkit.UnsubscribeListener) & redux_thunk.ThunkDispatch<{
|
|
5268
5365
|
app: AppState;
|
|
5366
|
+
authorization: AuthorizationState;
|
|
5269
5367
|
chat: ChatState;
|
|
5270
5368
|
cloudRecording: CloudRecordingState;
|
|
5271
5369
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5293,6 +5391,7 @@ type SelectorResults<Selectors extends Selector<RootState, unknown>[]> = {
|
|
|
5293
5391
|
};
|
|
5294
5392
|
declare const createReactor: <Selectors extends Selector<{
|
|
5295
5393
|
app: AppState;
|
|
5394
|
+
authorization: AuthorizationState;
|
|
5296
5395
|
chat: ChatState;
|
|
5297
5396
|
cloudRecording: CloudRecordingState;
|
|
5298
5397
|
deviceCredentials: DeviceCredentialsState;
|
|
@@ -5322,4 +5421,6 @@ declare function parseRoomUrlAndSubdomain(roomAttribute?: string, subdomainAttri
|
|
|
5322
5421
|
roomUrl: URL;
|
|
5323
5422
|
};
|
|
5324
5423
|
|
|
5325
|
-
|
|
5424
|
+
declare function parseUnverifiedRoomKeyData(roomKey: string): any;
|
|
5425
|
+
|
|
5426
|
+
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, 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, 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 };
|