@cometchat/calls-sdk-react-native 4.4.2-beta.2 → 5.0.0-beta.10

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.
Files changed (83) hide show
  1. package/README.md +85 -19
  2. package/android/build.gradle +13 -12
  3. package/android/src/main/AndroidManifest.xml +15 -6
  4. package/android/src/main/java/com/callingv5/AudioDeviceHandlerConnectionService.java +185 -0
  5. package/android/src/main/java/com/callingv5/AudioDeviceHandlerGeneric.java +254 -0
  6. package/android/src/main/java/com/{CometChatCalls → callingv5}/AudioModeModule.java +93 -56
  7. package/android/src/main/java/com/callingv5/ConnectionService.java +451 -0
  8. package/android/src/main/java/com/callingv5/KeepAwakeModule.java +53 -0
  9. package/android/src/main/java/com/callingv5/MyAppPackage.java +35 -0
  10. package/android/src/main/java/com/callingv5/RNConnectionService.java +244 -0
  11. package/android/src/main/java/com/callingv5/ToastModule.java +29 -0
  12. package/android/src/main/java/com/callingv5/utils/CometChatLogger.java +88 -0
  13. package/cometchat-calls-sdk-react-native.podspec +9 -10
  14. package/dist/index.d.mts +4172 -0
  15. package/dist/index.d.ts +4172 -9
  16. package/dist/index.js +11410 -127
  17. package/dist/index.mjs +11378 -0
  18. package/dist/polyfills/RTCPeerConnection.js +19 -0
  19. package/dist/polyfills/Storage.js +192 -0
  20. package/dist/polyfills/browser.js +337 -0
  21. package/dist/polyfills/index.js +1 -0
  22. package/dist/polyfills/ipv6utils.js +197 -0
  23. package/dist/polyfills/webrtc.js +11 -0
  24. package/ios/{JitsiAudioSession+Private.h → Audio/CometChatAudioSession+Private.h} +2 -3
  25. package/ios/{LogUtils.h → Audio/CometChatAudioSession.h} +9 -6
  26. package/ios/{JitsiAudioSession.m → Audio/CometChatAudioSession.m} +4 -3
  27. package/ios/{AudioMode.m → Modules/AudioMode.m} +15 -49
  28. package/ios/Modules/KeepAwake.h +4 -0
  29. package/ios/Modules/KeepAwake.m +29 -0
  30. package/package.json +24 -109
  31. package/LICENSE.md +0 -3
  32. package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerGeneric.java +0 -213
  33. package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerLegacy.java +0 -213
  34. package/android/src/main/java/com/CometChatCalls/BluetoothHeadsetMonitor.java +0 -187
  35. package/android/src/main/java/com/CometChatCalls/CallNotificationService.java +0 -93
  36. package/android/src/main/java/com/CometChatCalls/CallNotificationServiceModule.java +0 -48
  37. package/android/src/main/java/com/CometChatCalls/CometChatCallsPackage.java +0 -56
  38. package/android/src/main/java/com/CometChatCalls/CometChatCommonModule.java +0 -48
  39. package/android/src/main/java/com/CometChatCalls/PictureInPictureModule.java +0 -133
  40. package/android/src/main/res/drawable-mdpi/callingcomponent_icons_headphones_pluged.png +0 -0
  41. package/dist/CometChatErrorConstants.d.ts +0 -124
  42. package/dist/Constants.d.ts +0 -724
  43. package/dist/Helper copy.d.ts +0 -1
  44. package/dist/Helper.d.ts +0 -7
  45. package/dist/api/APIHandler.d.ts +0 -42
  46. package/dist/api/endpoints.d.ts +0 -7
  47. package/dist/api/helper.d.ts +0 -69
  48. package/dist/api/index.d.ts +0 -2
  49. package/dist/constants/CallConstants.d.ts +0 -136
  50. package/dist/constants/index.d.ts +0 -1
  51. package/dist/defaultCallsettings.d.ts +0 -2
  52. package/dist/models/CallAppSettings.d.ts +0 -42
  53. package/dist/models/CallGroup.d.ts +0 -14
  54. package/dist/models/CallLog.d.ts +0 -276
  55. package/dist/models/CallLogFilterParams.d.ts +0 -97
  56. package/dist/models/CallSettings.d.ts +0 -330
  57. package/dist/models/CallUser.d.ts +0 -14
  58. package/dist/models/CometChatCallLogs.d.ts +0 -193
  59. package/dist/models/CometChatCalls.d.ts +0 -110
  60. package/dist/models/CometChatCallsComponent.d.ts +0 -13
  61. package/dist/models/CometChatCallsComponentCore.d.ts +0 -18
  62. package/dist/models/CometChatCallsException.d.ts +0 -7
  63. package/dist/models/CometChatPresenterComponent.d.ts +0 -13
  64. package/dist/models/ErrorModel.d.ts +0 -11
  65. package/dist/models/Listner.d.ts +0 -69
  66. package/dist/models/ListnerHandler.d.ts +0 -10
  67. package/dist/models/MessageComponent.d.ts +0 -7
  68. package/dist/models/Participant.d.ts +0 -184
  69. package/dist/models/PresenterSettings.d.ts +0 -208
  70. package/dist/models/RTCUser.d.ts +0 -18
  71. package/dist/models/Recording.d.ts +0 -86
  72. package/dist/models/index.d.ts +0 -9
  73. package/dist/types/ICallAppSettings.d.ts +0 -6
  74. package/dist/types/ICallSettings.d.ts +0 -61
  75. package/dist/types/RTCUser.d.ts +0 -6
  76. package/dist/types/callEvents.d.ts +0 -54
  77. package/dist/types/common.d.ts +0 -18
  78. package/dist/types/index.d.ts +0 -2
  79. package/ios/AudioMode.h +0 -11
  80. package/ios/CometChatCommonModule.h +0 -6
  81. package/ios/CometChatCommonModule.m +0 -29
  82. package/ios/JitsiAudioSession.h +0 -17
  83. package/ios/react-native-calls2.xcodeproj/project.pbxproj +0 -269
@@ -0,0 +1,4172 @@
1
+ import * as v from "valibot";
2
+ import * as zustand7 from "zustand";
3
+ import * as zustand_middleware0 from "zustand/middleware";
4
+ import React from "react";
5
+ import JitsiMeetJS from "lib-jitsi-meet";
6
+ import { AppStateStatus } from "react-native";
7
+
8
+ //#region calls-sdk-core/event-listeners/onTrack.d.ts
9
+ declare function onTrack(track: any): void;
10
+ //#endregion
11
+ //#region calls-sdk-core/utils/calculate-tile-layout.d.ts
12
+ interface TileLayout {
13
+ rows: number;
14
+ columns: number;
15
+ tileWidth: number;
16
+ tileHeight: number;
17
+ paddingVertical: number;
18
+ allocatedWidth: number;
19
+ allocatedHeight: number;
20
+ }
21
+ /**
22
+ * Calculates the optimal tile layout for a container
23
+ * @param containerWidth - Width of the container
24
+ * @param containerHeight - Height of the container
25
+ * @param numberOfTiles - Total number of tiles to arrange
26
+ * @returns TileLayout object containing rows, columns, and tile dimensions
27
+ * @throws Error if input parameters are invalid
28
+ */
29
+ declare function calculateTileLayout(containerWidth: number, containerHeight: number, numberOfTiles: number): TileLayout;
30
+ //#endregion
31
+ //#region calls-sdk-core/utils/common.d.ts
32
+ declare const getAvatarTextInitials: (fullName: string) => string;
33
+ declare const miliSecondsToMMSS: (ms: number) => string;
34
+ declare function getHueFromName(name: string): number;
35
+ declare function getColorFromName(name: string): string;
36
+ declare function safeParseJson<T>(jsonString: string): T | null;
37
+ declare const getMediaType: (track: any) => MediaType;
38
+ declare function differenceBy<T, U>(array: T[], values: U[], iteratee: (value: T | U) => any): T[];
39
+ declare function sleep(ms?: number): Promise<void>;
40
+ declare function isArrayOfObjEqual(arr1: any[], arr2: any[]): boolean;
41
+ declare function isDeviceEqual(device1: MediaDeviceInfo | undefined, device2: MediaDeviceInfo | undefined): boolean;
42
+ declare function getDefaultDevice<T extends MediaDeviceInfo>(devices: T[]): T;
43
+ /**
44
+ * Returns a promise that resolves when the given Zustand store
45
+ * satisfies the provided predicate. Resolves immediately if the
46
+ * condition is already met. Includes a timeout to avoid hanging
47
+ * forever (defaults to 5 000 ms).
48
+ */
49
+ declare function waitForStoreState<T>(store: {
50
+ getState: () => T;
51
+ subscribe: (listener: (state: T) => void) => () => void;
52
+ }, predicate: (state: T) => boolean, timeoutMs?: number): Promise<void>;
53
+ //#endregion
54
+ //#region calls-sdk-core/utils/constants.d.ts
55
+ declare const MIN_ASPECT_RATIO: number;
56
+ declare const MAX_ASPECT_RATIO: number;
57
+ declare const GRID_GAP = 8;
58
+ declare const MIN_TILE_WIDTH = 240;
59
+ declare const PARTICIPANT_ROLE: {
60
+ readonly MODERATOR: "moderator";
61
+ readonly NONE: "none";
62
+ };
63
+ declare const MEDIA_TYPE: {
64
+ readonly AUDIO: "audio";
65
+ readonly VIDEO: "video";
66
+ readonly SCREENSHARE: "screenshare";
67
+ };
68
+ declare const LAYOUT: {
69
+ readonly TILE: "TILE";
70
+ readonly SIDEBAR: "SIDEBAR";
71
+ readonly SPOTLIGHT: "SPOTLIGHT";
72
+ };
73
+ declare const SESSION_TYPE: {
74
+ readonly VOICE: "VOICE";
75
+ readonly VIDEO: "VIDEO";
76
+ };
77
+ declare const CAMERA_FACING: {
78
+ readonly FRONT: "FRONT";
79
+ readonly REAR: "REAR";
80
+ };
81
+ declare const CAMERA_FACING_INTERNAL: {
82
+ readonly USER: "user";
83
+ readonly ENVIRONMENT: "environment";
84
+ };
85
+ declare const VIDEO_PAUSE_AUTHORITY: {
86
+ USER: number;
87
+ BACKGROUND: number;
88
+ SCREEN_SHARE: number;
89
+ };
90
+ declare const CONFERENCE_COMMANDS: {
91
+ userInfo: string;
92
+ };
93
+ declare const VIDEO_QUALITY_LEVELS: {
94
+ ULTRA: number;
95
+ HIGH: number;
96
+ STANDARD: number;
97
+ LOW: number;
98
+ NONE: number;
99
+ };
100
+ declare const SDK_PLATFORM: {
101
+ readonly WEB: "web";
102
+ readonly ANDROID: "android";
103
+ readonly IOS: "ios";
104
+ readonly REACT_NATIVE_ANDROID: "react-native-android";
105
+ readonly REACT_NATIVE_IOS: "react-native-ios";
106
+ };
107
+ declare const EVENT_LISTENER_METHODS: {
108
+ readonly SessionStatusListener: {
109
+ readonly onSessionJoined: "onSessionJoined";
110
+ readonly onSessionLeft: "onSessionLeft";
111
+ readonly onConnectionLost: "onConnectionLost";
112
+ readonly onConnectionRestored: "onConnectionRestored";
113
+ readonly onConnectionClosed: "onConnectionClosed";
114
+ readonly onSessionTimedOut: "onSessionTimedOut";
115
+ };
116
+ readonly MediaEventsListener: {
117
+ readonly onAudioMuted: "onAudioMuted";
118
+ readonly onAudioUnMuted: "onAudioUnMuted";
119
+ readonly onVideoPaused: "onVideoPaused";
120
+ readonly onVideoResumed: "onVideoResumed";
121
+ readonly onRecordingStarted: "onRecordingStarted";
122
+ readonly onRecordingStopped: "onRecordingStopped";
123
+ readonly onScreenShareStarted: "onScreenShareStarted";
124
+ readonly onScreenShareStopped: "onScreenShareStopped";
125
+ };
126
+ readonly ParticipantEventsListner: {
127
+ readonly onParticipantJoined: "onParticipantJoined";
128
+ readonly onParticipantLeft: "onParticipantLeft";
129
+ readonly onParticipantAudioMuted: "onParticipantAudioMuted";
130
+ readonly onParticipantAudioUnmuted: "onParticipantAudioUnmuted";
131
+ readonly onParticipantVideoPaused: "onParticipantVideoPaused";
132
+ readonly onParticipantVideoResumed: "onParticipantVideoResumed";
133
+ readonly onParticipantHandRaised: "onParticipantHandRaised";
134
+ readonly onParticipantHandLowered: "onParticipantHandLowered";
135
+ readonly onParticipantStartedScreenShare: "onParticipantStartedScreenShare";
136
+ readonly onParticipantStoppedScreenShare: "onParticipantStoppedScreenShare";
137
+ readonly onParticipantStartedRecording: "onParticipantStartedRecording";
138
+ readonly onParticipantStoppedRecording: "onParticipantStoppedRecording";
139
+ readonly onDominantSpeakerChanged: "onDominantSpeakerChanged";
140
+ readonly onParticipantListChanged: "onParticipantListChanged";
141
+ };
142
+ readonly ButtonClickListener: {
143
+ readonly onLeaveSessionButtonClicked: "onLeaveSessionButtonClicked";
144
+ readonly onRaiseHandButtonClicked: "onRaiseHandButtonClicked";
145
+ readonly onShareInviteButtonClicked: "onShareInviteButtonClicked";
146
+ readonly onChangeLayoutButtonClicked: "onChangeLayoutButtonClicked";
147
+ readonly onParticipantListButtonClicked: "onParticipantListButtonClicked";
148
+ readonly onToggleAudioButtonClicked: "onToggleAudioButtonClicked";
149
+ readonly onToggleVideoButtonClicked: "onToggleVideoButtonClicked";
150
+ readonly onRecordingToggleButtonClicked: "onRecordingToggleButtonClicked";
151
+ readonly onScreenShareButtonClicked: "onScreenShareButtonClicked";
152
+ readonly onChatButtonClicked: "onChatButtonClicked";
153
+ };
154
+ readonly CallLayoutListener: {
155
+ readonly onCallLayoutChanged: "onCallLayoutChanged";
156
+ readonly onParticipantListVisible: "onParticipantListVisible";
157
+ readonly onParticipantListHidden: "onParticipantListHidden";
158
+ };
159
+ };
160
+ declare const EVENT_LISTENER_METHODS_WEB: {
161
+ readonly MediaEventsListener: {
162
+ readonly onAudioInputDeviceChanged: "onAudioInputDeviceChanged";
163
+ readonly onVideoInputDeviceChanged: "onVideoInputDeviceChanged";
164
+ readonly onAudioOutputDeviceChanged: "onAudioOutputDeviceChanged";
165
+ readonly onAudioInputDevicesChanged: "onAudioInputDevicesChanged";
166
+ readonly onVideoInputDevicesChanged: "onVideoInputDevicesChanged";
167
+ readonly onAudioOutputDevicesChanged: "onAudioOutputDevicesChanged";
168
+ readonly onAudioMuted: "onAudioMuted";
169
+ readonly onAudioUnMuted: "onAudioUnMuted";
170
+ readonly onVideoPaused: "onVideoPaused";
171
+ readonly onVideoResumed: "onVideoResumed";
172
+ readonly onRecordingStarted: "onRecordingStarted";
173
+ readonly onRecordingStopped: "onRecordingStopped";
174
+ readonly onScreenShareStarted: "onScreenShareStarted";
175
+ readonly onScreenShareStopped: "onScreenShareStopped";
176
+ };
177
+ readonly SessionStatusListener: {
178
+ readonly onSessionJoined: "onSessionJoined";
179
+ readonly onSessionLeft: "onSessionLeft";
180
+ readonly onConnectionLost: "onConnectionLost";
181
+ readonly onConnectionRestored: "onConnectionRestored";
182
+ readonly onConnectionClosed: "onConnectionClosed";
183
+ readonly onSessionTimedOut: "onSessionTimedOut";
184
+ };
185
+ readonly ParticipantEventsListner: {
186
+ readonly onParticipantJoined: "onParticipantJoined";
187
+ readonly onParticipantLeft: "onParticipantLeft";
188
+ readonly onParticipantAudioMuted: "onParticipantAudioMuted";
189
+ readonly onParticipantAudioUnmuted: "onParticipantAudioUnmuted";
190
+ readonly onParticipantVideoPaused: "onParticipantVideoPaused";
191
+ readonly onParticipantVideoResumed: "onParticipantVideoResumed";
192
+ readonly onParticipantHandRaised: "onParticipantHandRaised";
193
+ readonly onParticipantHandLowered: "onParticipantHandLowered";
194
+ readonly onParticipantStartedScreenShare: "onParticipantStartedScreenShare";
195
+ readonly onParticipantStoppedScreenShare: "onParticipantStoppedScreenShare";
196
+ readonly onParticipantStartedRecording: "onParticipantStartedRecording";
197
+ readonly onParticipantStoppedRecording: "onParticipantStoppedRecording";
198
+ readonly onDominantSpeakerChanged: "onDominantSpeakerChanged";
199
+ readonly onParticipantListChanged: "onParticipantListChanged";
200
+ };
201
+ readonly ButtonClickListener: {
202
+ readonly onLeaveSessionButtonClicked: "onLeaveSessionButtonClicked";
203
+ readonly onRaiseHandButtonClicked: "onRaiseHandButtonClicked";
204
+ readonly onShareInviteButtonClicked: "onShareInviteButtonClicked";
205
+ readonly onChangeLayoutButtonClicked: "onChangeLayoutButtonClicked";
206
+ readonly onParticipantListButtonClicked: "onParticipantListButtonClicked";
207
+ readonly onToggleAudioButtonClicked: "onToggleAudioButtonClicked";
208
+ readonly onToggleVideoButtonClicked: "onToggleVideoButtonClicked";
209
+ readonly onRecordingToggleButtonClicked: "onRecordingToggleButtonClicked";
210
+ readonly onScreenShareButtonClicked: "onScreenShareButtonClicked";
211
+ readonly onChatButtonClicked: "onChatButtonClicked";
212
+ };
213
+ readonly CallLayoutListener: {
214
+ readonly onCallLayoutChanged: "onCallLayoutChanged";
215
+ readonly onParticipantListVisible: "onParticipantListVisible";
216
+ readonly onParticipantListHidden: "onParticipantListHidden";
217
+ };
218
+ };
219
+ declare const EVENT_LISTENER_METHODS_MOBILE: {
220
+ readonly MediaEventsListener: {
221
+ readonly onAudioModeChanged: "onAudioModeChanged";
222
+ readonly onCameraFacingChanged: "onCameraFacingChanged";
223
+ readonly onAudioMuted: "onAudioMuted";
224
+ readonly onAudioUnMuted: "onAudioUnMuted";
225
+ readonly onVideoPaused: "onVideoPaused";
226
+ readonly onVideoResumed: "onVideoResumed";
227
+ readonly onRecordingStarted: "onRecordingStarted";
228
+ readonly onRecordingStopped: "onRecordingStopped";
229
+ readonly onScreenShareStarted: "onScreenShareStarted";
230
+ readonly onScreenShareStopped: "onScreenShareStopped";
231
+ };
232
+ readonly ButtonClickListener: {
233
+ readonly onSwitchCameraButtonClicked: "onSwitchCameraButtonClicked";
234
+ readonly onLeaveSessionButtonClicked: "onLeaveSessionButtonClicked";
235
+ readonly onRaiseHandButtonClicked: "onRaiseHandButtonClicked";
236
+ readonly onShareInviteButtonClicked: "onShareInviteButtonClicked";
237
+ readonly onChangeLayoutButtonClicked: "onChangeLayoutButtonClicked";
238
+ readonly onParticipantListButtonClicked: "onParticipantListButtonClicked";
239
+ readonly onToggleAudioButtonClicked: "onToggleAudioButtonClicked";
240
+ readonly onToggleVideoButtonClicked: "onToggleVideoButtonClicked";
241
+ readonly onRecordingToggleButtonClicked: "onRecordingToggleButtonClicked";
242
+ readonly onScreenShareButtonClicked: "onScreenShareButtonClicked";
243
+ readonly onChatButtonClicked: "onChatButtonClicked";
244
+ };
245
+ readonly CallLayoutListener: {
246
+ readonly onPictureInPictureLayoutEnabled: "onPictureInPictureLayoutEnabled";
247
+ readonly onPictureInPictureLayoutDisabled: "onPictureInPictureLayoutDisabled";
248
+ readonly onCallLayoutChanged: "onCallLayoutChanged";
249
+ readonly onParticipantListVisible: "onParticipantListVisible";
250
+ readonly onParticipantListHidden: "onParticipantListHidden";
251
+ };
252
+ readonly SessionStatusListener: {
253
+ readonly onSessionJoined: "onSessionJoined";
254
+ readonly onSessionLeft: "onSessionLeft";
255
+ readonly onConnectionLost: "onConnectionLost";
256
+ readonly onConnectionRestored: "onConnectionRestored";
257
+ readonly onConnectionClosed: "onConnectionClosed";
258
+ readonly onSessionTimedOut: "onSessionTimedOut";
259
+ };
260
+ readonly ParticipantEventsListner: {
261
+ readonly onParticipantJoined: "onParticipantJoined";
262
+ readonly onParticipantLeft: "onParticipantLeft";
263
+ readonly onParticipantAudioMuted: "onParticipantAudioMuted";
264
+ readonly onParticipantAudioUnmuted: "onParticipantAudioUnmuted";
265
+ readonly onParticipantVideoPaused: "onParticipantVideoPaused";
266
+ readonly onParticipantVideoResumed: "onParticipantVideoResumed";
267
+ readonly onParticipantHandRaised: "onParticipantHandRaised";
268
+ readonly onParticipantHandLowered: "onParticipantHandLowered";
269
+ readonly onParticipantStartedScreenShare: "onParticipantStartedScreenShare";
270
+ readonly onParticipantStoppedScreenShare: "onParticipantStoppedScreenShare";
271
+ readonly onParticipantStartedRecording: "onParticipantStartedRecording";
272
+ readonly onParticipantStoppedRecording: "onParticipantStoppedRecording";
273
+ readonly onDominantSpeakerChanged: "onDominantSpeakerChanged";
274
+ readonly onParticipantListChanged: "onParticipantListChanged";
275
+ };
276
+ };
277
+ declare const INTERNAL_EVENTS: {
278
+ readonly connectionWillClose: "internal.sessionWillClose";
279
+ readonly onConnectionEstablished: "internal.onConnectionEstablished";
280
+ readonly onSessionJoined: "internal.onSessionJoined";
281
+ readonly notification: "internal.notification";
282
+ readonly queryPermission: "internal.queryPermission";
283
+ readonly lifecycle: {
284
+ readonly componentDidMount: "internal.componentDidMount";
285
+ readonly componentWillUnmount: "internal.componentWillUnmount";
286
+ readonly SDKInitialized: "internal.SDKInitialized";
287
+ };
288
+ };
289
+ //#endregion
290
+ //#region calls-sdk-core/utils/debounce.d.ts
291
+ declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => void;
292
+ //#endregion
293
+ //#region calls-sdk-core/store/base.d.ts
294
+ type AudioInputDevice = MediaDeviceInfo & {
295
+ kind: Extract<MediaDeviceKind, 'audioinput'>;
296
+ };
297
+ type AudioOutputDevice = MediaDeviceInfo & {
298
+ kind: Extract<MediaDeviceKind, 'audiooutput'>;
299
+ };
300
+ type VideoInputDevice = MediaDeviceInfo & {
301
+ kind: Extract<MediaDeviceKind, 'videoinput'>;
302
+ };
303
+ type Subscription = (() => void) | {
304
+ remove: () => void;
305
+ };
306
+ type BaseState = {
307
+ participantListVisible: boolean;
308
+ moreMenuVisible: boolean;
309
+ subscriptions: Subscription[];
310
+ isPIPLayoutEnabled: boolean;
311
+ audioModes: AudioMode[];
312
+ audioInputDevices: AudioInputDevice[];
313
+ audioOutputDevices: AudioOutputDevice[];
314
+ videoInputDevices: VideoInputDevice[];
315
+ audioInputDevice?: AudioInputDevice & {
316
+ skipSubscribe: boolean;
317
+ };
318
+ audioOutputDevice?: AudioOutputDevice;
319
+ videoInputDevice?: VideoInputDevice & {
320
+ skipSubscribe: boolean;
321
+ };
322
+ previewVideoInputDevice?: VideoInputDevice;
323
+ selectedAudioModeType?: AudioMode['type'];
324
+ audioModeMenuVisible: boolean;
325
+ layout: Layout;
326
+ sidebarLayoutSetProgrammatically: boolean;
327
+ cameraFacing: CameraFacingInternal;
328
+ connectionRetryCount: number;
329
+ settingsDialogVisible: boolean;
330
+ virtualBackgroundDialogVisible: boolean;
331
+ idealTimeoutTimer?: NodeJS.Timeout;
332
+ idleTimeoutModalVisible: boolean;
333
+ mirrorLocalVideo: boolean;
334
+ isDesktopSharingEnabled: boolean;
335
+ isBlurSupported: boolean;
336
+ appState?: AppStateStatus;
337
+ desktopSharingFrameRate: 5 | 15 | 30;
338
+ chatButtonUnreadCount: number;
339
+ enableNoiseReduction: boolean;
340
+ sdkPlatform: SDKPlatform;
341
+ webOSName?: WebOSName;
342
+ previewVideoTrack?: any;
343
+ isMobileBrowser: boolean;
344
+ mainAreaDimension: {
345
+ width: number;
346
+ height: number;
347
+ };
348
+ tileDimensions: {
349
+ tileWidth: number;
350
+ tileHeight: number;
351
+ };
352
+ callContainerDimension: {
353
+ width: number;
354
+ height: number;
355
+ };
356
+ visibleParticipants: {
357
+ startIndex: number;
358
+ endIndex: number;
359
+ };
360
+ sidebarVisibleParticipants: {
361
+ startIndex: number;
362
+ endIndex: number;
363
+ };
364
+ };
365
+ type Actions$5 = {
366
+ toggleParticipantListVisible: () => void;
367
+ reset: () => void;
368
+ toggleMoreMenuVisible: () => void;
369
+ addSubscriptions: (subscriptions: Subscription[]) => void;
370
+ incrementConnectionRetryCount: () => void;
371
+ clearIdealTimeoutTimer: () => void;
372
+ restartIdealTimeoutTimer: () => void;
373
+ isMobileSDK: () => boolean;
374
+ isMobile: () => boolean;
375
+ };
376
+ declare const useBaseStore: zustand7.UseBoundStore<Omit<Omit<zustand7.StoreApi<BaseState & Actions$5>, "subscribe"> & {
377
+ subscribe: {
378
+ (listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
379
+ <U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
380
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
381
+ fireImmediately?: boolean;
382
+ } | undefined): () => void;
383
+ };
384
+ }, "persist"> & {
385
+ persist: {
386
+ setOptions: (options: Partial<zustand_middleware0.PersistOptions<BaseState & Actions$5, {
387
+ audioInputDevice: any;
388
+ audioOutputDevice: any;
389
+ videoInputDevice: any;
390
+ enableNoiseReduction: boolean;
391
+ }>>) => void;
392
+ clearStorage: () => void;
393
+ rehydrate: () => Promise<void> | void;
394
+ hasHydrated: () => boolean;
395
+ onHydrate: (fn: (state: BaseState & Actions$5) => void) => () => void;
396
+ onFinishHydration: (fn: (state: BaseState & Actions$5) => void) => () => void;
397
+ getOptions: () => Partial<zustand_middleware0.PersistOptions<BaseState & Actions$5, {
398
+ audioInputDevice: any;
399
+ audioOutputDevice: any;
400
+ videoInputDevice: any;
401
+ enableNoiseReduction: boolean;
402
+ }>>;
403
+ };
404
+ }>;
405
+ declare const toggleParticipantListVisible: () => void;
406
+ declare const hideParticipantList: () => void;
407
+ declare const showParticipantList: () => void;
408
+ declare const toggleParticipantList: () => void;
409
+ declare const toggleMoreMenuVisible: () => void;
410
+ declare const toggleAudioModeMenuVisible: () => void;
411
+ declare const setLayout: (layout: Layout, sidebarLayoutSetProgrammatically?: boolean) => void;
412
+ declare const hideAllBottomSheets: () => void;
413
+ declare const enablePictureInPictureLayout: () => void;
414
+ declare const disablePictureInPictureLayout: () => void;
415
+ declare const showSettingsDialog: () => void;
416
+ declare const hideSettingsDialog: () => void;
417
+ declare const toggleSettingsDialog: () => void;
418
+ declare const showVirtualBackgroundDialog: () => void;
419
+ declare const hideVirtualBackgroundDialog: () => void;
420
+ declare const toggleMirrorLocalVideo: () => void;
421
+ declare const toggleEnableNoiseReduction: () => void;
422
+ declare const setChatButtonUnreadCount: (count: number) => void;
423
+ declare const setAudioMode: (mode: AudioMode["type"]) => void;
424
+ declare const getLayout: () => Layout;
425
+ declare function initBaseStoreSubscriptions(): void;
426
+ //#endregion
427
+ //#region calls-sdk-core/store/conference.d.ts
428
+ type ConferenceState = {
429
+ conferenceError?: string;
430
+ conference: any;
431
+ conferenceJoined: boolean;
432
+ conferenceJoinedAt: number | null;
433
+ conferenceStartedAt: number | null;
434
+ p2p: boolean;
435
+ conferenceStatus: 'initial' | 'joining' | 'joined' | 'error' | 'interrupted' | 'left' | 'restored' | 'reconnecting';
436
+ connectionQuality: Map<string, number>;
437
+ raiseHandMap: Map<string, number>;
438
+ recording: {
439
+ status: ValueOf<typeof JitsiMeetJS.constants.recording.status>;
440
+ mode: ValueOf<typeof JitsiMeetJS.constants.recording.mode>;
441
+ error?: string;
442
+ sessionId?: string;
443
+ initiator?: any;
444
+ };
445
+ isRecording: boolean;
446
+ };
447
+ type Actions$4 = {
448
+ reset: () => void;
449
+ conferenceWillJoin: (conference: any) => void;
450
+ raiseHand: (participantId: string, timestamp: number) => void;
451
+ lowerHand: (participantId: string) => void;
452
+ leaveConference: () => Promise<void>;
453
+ endConference: () => Promise<void>;
454
+ stopRecording: () => Promise<void>;
455
+ };
456
+ declare const useConferenceStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
457
+ subscribe: {
458
+ (listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
459
+ <U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
460
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
461
+ fireImmediately?: boolean;
462
+ } | undefined): () => void;
463
+ };
464
+ }>;
465
+ declare const useSessionTimer: () => number;
466
+ declare function raisedHandLocal(): void;
467
+ declare function lowerHandLocal(): void;
468
+ declare function toggleRaiseHand(): void;
469
+ declare const useIsRecording: () => boolean;
470
+ declare function startRecording(): Promise<void>;
471
+ declare function stopRecording(): Promise<void>;
472
+ declare function toggleRecording(): Promise<void>;
473
+ declare const getIsConferenceJoined: () => boolean;
474
+ //#endregion
475
+ //#region calls-sdk-core/store/config.d.ts
476
+ type ConfigStateInternal = {
477
+ devSessionId: string;
478
+ internalSettings?: string;
479
+ sessionId?: string;
480
+ iAmRecorder: boolean;
481
+ showFrameRate: boolean;
482
+ enableCompanionMode: boolean;
483
+ sdkPlatform?: SDKPlatform;
484
+ };
485
+ type ConfigStateMobile = {
486
+ audioMode?: AudioMode['type'];
487
+ hideAudioModeButton: boolean;
488
+ };
489
+ type ConfigStateWeb = {
490
+ enableNoiseReduction: boolean;
491
+ audioInputDeviceId?: string;
492
+ audioOutputDeviceId?: string;
493
+ videoInputDeviceId?: string;
494
+ hideScreenSharingButton: boolean;
495
+ hideVirtualBackgroundButton: boolean;
496
+ /**
497
+ * @unstable This API may change or be removed in a future release.
498
+ * When enabled, the SDK renders only remote audio elements without any
499
+ * visual UI (no video tiles, controls, or overlays). This allows the
500
+ * host app to provide its own custom UI while the SDK handles the
501
+ * underlying call connection and audio playback.
502
+ */
503
+ unstable_renderAudioOnly: boolean;
504
+ };
505
+ type ConfigStateBoth = {
506
+ sessionType: SessionType;
507
+ layout: Layout;
508
+ initialCameraFacing?: CameraFacing;
509
+ autoStartRecording: boolean;
510
+ hideRecordingButton: boolean;
511
+ hideControlPanel: boolean;
512
+ hideLeaveSessionButton: boolean;
513
+ hideHeaderPanel: boolean;
514
+ hideRaiseHandButton: boolean;
515
+ hideShareInviteButton: boolean;
516
+ hideChangeLayoutButton: boolean;
517
+ hideToggleAudioButton: boolean;
518
+ hideToggleVideoButton: boolean;
519
+ hideParticipantListButton: boolean;
520
+ hideChatButton: boolean;
521
+ hideSessionTimer: boolean;
522
+ hideNetworkIndicator: boolean;
523
+ hideRecordingStatusIndicator: boolean;
524
+ hideSwitchCameraButton: boolean;
525
+ enableParticipantContextMenu: boolean;
526
+ displayName: string;
527
+ startAudioMuted: boolean;
528
+ startVideoPaused: boolean;
529
+ title: string;
530
+ idleTimeoutPeriodBeforePrompt: number;
531
+ idleTimeoutPeriodAfterPrompt: number;
532
+ enableSpotlightDrag: boolean;
533
+ enableSpotlightSwap: boolean;
534
+ isPeerCall: boolean;
535
+ enableNotifications: boolean;
536
+ };
537
+ type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth;
538
+ type Actions$3 = {
539
+ reset: () => void;
540
+ };
541
+ declare const useConfigStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
542
+ subscribe: {
543
+ (listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
544
+ <U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
545
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
546
+ fireImmediately?: boolean;
547
+ } | undefined): () => void;
548
+ };
549
+ }>;
550
+ declare const setConfig: (config: Partial<ConfigState>) => void;
551
+ //#endregion
552
+ //#region calls-sdk-core/types/InternalSettingSchema.d.ts
553
+ declare const InternalSettingSchema: v.ObjectSchema<{
554
+ readonly callToken: v.StringSchema<undefined>;
555
+ readonly settings: v.ObjectSchema<{
556
+ readonly WEBRTC_HOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
557
+ readonly ANALYTICS_HOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
558
+ readonly ANALYTICS_VERSION: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
559
+ readonly PRESENTER_MODE_ENABLED: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
560
+ readonly connectionConfig: v.ObjectSchema<{
561
+ readonly audioQuality: v.OptionalSchema<v.ObjectSchema<{
562
+ readonly stereo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
563
+ }, undefined>, undefined>;
564
+ readonly bridgeChannel: v.OptionalSchema<v.ObjectSchema<{
565
+ readonly preferSctp: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
566
+ }, undefined>, undefined>;
567
+ readonly constraints: v.OptionalSchema<v.ObjectSchema<{
568
+ readonly video: v.OptionalSchema<v.ObjectSchema<{
569
+ readonly height: v.OptionalSchema<v.ObjectSchema<{
570
+ readonly ideal: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
571
+ readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
572
+ readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
573
+ }, undefined>, undefined>;
574
+ readonly width: v.OptionalSchema<v.ObjectSchema<{
575
+ readonly ideal: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
576
+ readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
577
+ readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
578
+ }, undefined>, undefined>;
579
+ }, undefined>, undefined>;
580
+ }, undefined>, undefined>;
581
+ readonly e2ee: v.OptionalSchema<v.ArraySchema<v.UnknownSchema, undefined>, undefined>;
582
+ readonly e2eping: v.OptionalSchema<v.ObjectSchema<{
583
+ readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
584
+ }, undefined>, undefined>;
585
+ readonly flags: v.OptionalSchema<v.ObjectSchema<{
586
+ readonly receiveMultipleVideoStreams: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
587
+ readonly sendMultipleVideoStreams: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
588
+ readonly sourceNameSignaling: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
589
+ readonly ssrcRewritingEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
590
+ }, undefined>, undefined>;
591
+ readonly hosts: v.ObjectSchema<{
592
+ readonly domain: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
593
+ readonly muc: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
594
+ }, undefined>;
595
+ readonly hiddenDomain: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
596
+ readonly bosh: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
597
+ readonly websocket: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
598
+ readonly serviceUrl: v.StringSchema<undefined>;
599
+ readonly p2p: v.ObjectSchema<{
600
+ readonly enabled: v.BooleanSchema<undefined>;
601
+ }, undefined>;
602
+ readonly resolution: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
603
+ readonly videoQuality: v.OptionalSchema<v.ObjectSchema<{
604
+ readonly codecPreferenceOrder: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
605
+ readonly screenshareCodec: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
+ readonly mobileScreenshareCodec: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
607
+ readonly enableAdaptiveMode: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
608
+ readonly av1: v.OptionalSchema<v.ObjectSchema<{
609
+ readonly maxBitratesVideo: v.OptionalSchema<v.ObjectSchema<{
610
+ readonly low: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
611
+ readonly standard: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
612
+ readonly high: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
613
+ readonly fullHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
614
+ readonly ultraHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
615
+ readonly ssHigh: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
616
+ }, undefined>, undefined>;
617
+ readonly scalabilityModeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
618
+ readonly useSimulcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
619
+ readonly useKSVC: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
620
+ }, undefined>, undefined>;
621
+ readonly h264: v.OptionalSchema<v.ObjectSchema<{
622
+ readonly maxBitratesVideo: v.OptionalSchema<v.ObjectSchema<{
623
+ readonly low: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
624
+ readonly standard: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
625
+ readonly high: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
626
+ readonly fullHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
627
+ readonly ultraHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
628
+ readonly ssHigh: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
629
+ }, undefined>, undefined>;
630
+ readonly scalabilityModeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
631
+ readonly useSimulcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
632
+ readonly useKSVC: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
633
+ }, undefined>, undefined>;
634
+ readonly vp8: v.OptionalSchema<v.ObjectSchema<{
635
+ readonly maxBitratesVideo: v.OptionalSchema<v.ObjectSchema<{
636
+ readonly low: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
637
+ readonly standard: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
638
+ readonly high: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
639
+ readonly fullHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
640
+ readonly ultraHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
641
+ readonly ssHigh: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
642
+ }, undefined>, undefined>;
643
+ readonly scalabilityModeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
644
+ readonly useSimulcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
645
+ readonly useKSVC: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
646
+ }, undefined>, undefined>;
647
+ readonly vp9: v.OptionalSchema<v.ObjectSchema<{
648
+ readonly maxBitratesVideo: v.OptionalSchema<v.ObjectSchema<{
649
+ readonly low: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
650
+ readonly standard: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
651
+ readonly high: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
652
+ readonly fullHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
653
+ readonly ultraHd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
654
+ readonly ssHigh: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
655
+ }, undefined>, undefined>;
656
+ readonly scalabilityModeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
657
+ readonly useSimulcast: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
658
+ readonly useKSVC: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
659
+ }, undefined>, undefined>;
660
+ readonly minHeightForQualityLvl: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
661
+ readonly mobileCodecPreferenceOrder: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
662
+ }, undefined>, undefined>;
663
+ }, undefined>;
664
+ }, undefined>;
665
+ readonly sessionId: v.StringSchema<undefined>;
666
+ readonly user: v.ObjectSchema<{
667
+ readonly uid: v.StringSchema<undefined>;
668
+ readonly name: v.StringSchema<undefined>;
669
+ readonly avatar: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
670
+ readonly status: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
671
+ readonly role: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
672
+ readonly lastActiveAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
673
+ }, undefined>;
674
+ }, undefined>;
675
+ type InternalSetting = v.InferOutput<typeof InternalSettingSchema>;
676
+ //#endregion
677
+ //#region calls-sdk-core/store/connection.d.ts
678
+ type ConnectionState = {
679
+ connection: any;
680
+ error: any;
681
+ timeEstablished: number | undefined;
682
+ jwt?: string;
683
+ connectionConfig?: InternalSetting['settings']['connectionConfig'];
684
+ connectionStatus: 'initial' | 'connecting' | 'connected' | 'error' | 'disconnecting';
685
+ };
686
+ type Actions$2 = {
687
+ connectionWillConnect: (connection: any) => void;
688
+ connectionEstablished: (connection: any) => void;
689
+ connectionFailed: (error: any) => void;
690
+ disconnect: () => Promise<void>;
691
+ reset: () => void;
692
+ };
693
+ declare const useConnectionStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
694
+ subscribe: {
695
+ (listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
696
+ <U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
697
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
698
+ fireImmediately?: boolean;
699
+ } | undefined): () => void;
700
+ };
701
+ }>;
702
+ declare function waitForConnection(): Promise<void>;
703
+ //#endregion
704
+ //#region calls-sdk-core/utils/schema/human-participant.d.ts
705
+ declare const HumanParticipantSchema: v.ObjectSchema<{
706
+ readonly name: v.StringSchema<undefined>;
707
+ readonly pid: v.StringSchema<undefined>;
708
+ readonly ruid: v.StringSchema<undefined>;
709
+ readonly role: v.PicklistSchema<("moderator" | "none")[], undefined>;
710
+ readonly uid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
711
+ readonly avatar: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly isLocal: v.BooleanSchema<undefined>;
713
+ readonly sources: v.OptionalSchema<v.MapSchema<v.UnionSchema<[v.LiteralSchema<"video", undefined>, v.LiteralSchema<"audio", undefined>], undefined>, v.MapSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, undefined>;
714
+ readonly type: v.LiteralSchema<"human", undefined>;
715
+ }, undefined>;
716
+ type HumanParticipant = v.InferInput<typeof HumanParticipantSchema>;
717
+ //#endregion
718
+ //#region calls-sdk-core/store/participants.d.ts
719
+ interface VirtualParticipant extends Omit<HumanParticipant, 'role' | 'type'> {
720
+ type: 'screen-share';
721
+ }
722
+ type Participant$2 = HumanParticipant | VirtualParticipant;
723
+ interface ParticipantsState {
724
+ localParticipant: HumanParticipant;
725
+ participants: HumanParticipant[];
726
+ virtualParticipants: VirtualParticipant[];
727
+ dominantSpeakers: string[];
728
+ pinnedParticipant?: Participant$2;
729
+ }
730
+ type Actions$1 = {
731
+ addParticipant: (participant: HumanParticipant) => void;
732
+ addVirtualParticipant: (participant: VirtualParticipant) => void;
733
+ removeParticipant: (pid: string) => void;
734
+ removeVirtualParticipant: (pid: string, type?: VirtualParticipant['type']) => void;
735
+ clearParticipants: () => void;
736
+ updateLocalParticipant: (participant: Partial<HumanParticipant>) => void;
737
+ updateParticipant: (participantId: string, participant: Partial<HumanParticipant>) => void;
738
+ updateParticipantRole: (pid: string, role: HumanParticipant['role']) => void;
739
+ pinParticipant: (pid: string, type: Participant$2['type']) => void;
740
+ unpinParticipant: () => void;
741
+ getParticipantById: (pid: string) => HumanParticipant | undefined;
742
+ reset: () => void;
743
+ };
744
+ declare const useParticipantStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
745
+ subscribe: {
746
+ (listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
747
+ <U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
748
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
749
+ fireImmediately?: boolean;
750
+ } | undefined): () => void;
751
+ };
752
+ }>;
753
+ declare function useAllParticipants(): Participant$2[];
754
+ declare function getAllParticipants(): Participant$2[];
755
+ declare const pinParticipant: (participantId: string, type: Participant$2["type"]) => void;
756
+ declare const unpinParticipant: () => void;
757
+ declare const togglePinParticipant: (participantId: string, type: Participant$2["type"]) => void;
758
+ declare const getMainParticipantFromState: (state: {
759
+ pinnedParticipant?: Participant$2;
760
+ participants: Participant$2[];
761
+ virtualParticipants: Participant$2[];
762
+ dominantSpeakers: string[];
763
+ localParticipant: HumanParticipant;
764
+ }) => Participant$2;
765
+ //#endregion
766
+ //#region calls-sdk-core/store/toast.d.ts
767
+ interface ToastAction {
768
+ label: string;
769
+ onPress: () => void;
770
+ }
771
+ interface ToastItem {
772
+ id: string;
773
+ message: string;
774
+ type: NotificationType;
775
+ duration: number;
776
+ position: 'top' | 'bottom';
777
+ action?: ToastAction;
778
+ createdAt: number;
779
+ }
780
+ interface ToastState {
781
+ toasts: ToastItem[];
782
+ }
783
+ interface ToastActions {
784
+ addToast: (toast: Omit<ToastItem, 'id' | 'createdAt'>) => string;
785
+ removeToast: (id: string) => void;
786
+ clearAll: () => void;
787
+ reset: () => void;
788
+ }
789
+ declare const useToastStore: zustand7.UseBoundStore<zustand7.StoreApi<ToastState & ToastActions>>;
790
+ declare function showToast(params: {
791
+ message: string;
792
+ type?: NotificationType;
793
+ duration?: number;
794
+ position?: 'top' | 'bottom';
795
+ action?: ToastAction;
796
+ }): string;
797
+ //#endregion
798
+ //#region calls-sdk-core/store/tracks.d.ts
799
+ type Track = {
800
+ local: boolean;
801
+ mediaType: MediaType;
802
+ muted: number;
803
+ pid: string;
804
+ videoType: 'desktop' | 'camera' | null;
805
+ originalTrack?: any;
806
+ };
807
+ type TracksState = {
808
+ tracks: Track[];
809
+ permissions: {
810
+ audio: boolean;
811
+ video: boolean;
812
+ initialized: boolean;
813
+ };
814
+ };
815
+ type Actions = {
816
+ reset: () => void;
817
+ addTrack: (originalTrack: any) => void;
818
+ removeTrack: (originalTrack: any) => void;
819
+ updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
820
+ updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
821
+ };
822
+ declare const useTracksStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<TracksState & Actions>, "subscribe"> & {
823
+ subscribe: {
824
+ (listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
825
+ <U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
826
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
827
+ fireImmediately?: boolean;
828
+ } | undefined): () => void;
829
+ };
830
+ }>;
831
+ declare const useTrackByParticipantId: (participantId: string, mediaType?: MediaType) => Track | undefined;
832
+ declare const getTrackByParticipantId: (participantId: string, mediaType?: MediaType) => Track | undefined;
833
+ declare const useLocalTrack: (mediaType?: MediaType) => Track | undefined;
834
+ declare const getLocalTrack: (mediaType?: MediaType) => Track | undefined;
835
+ declare const disposeLocalTracks: () => Promise<void>;
836
+ declare const muteAudioTrack: () => void;
837
+ declare const unMuteAudioTrack: () => Promise<void>;
838
+ declare const toggleAudioTrack: () => void;
839
+ declare const pauseVideoTrack: (authority?: number) => void;
840
+ declare const resumeVideoTrack: (authority?: number) => Promise<void>;
841
+ declare const toggleVideoTrack: () => void;
842
+ //#endregion
843
+ //#region calls-sdk-core/store/utils/hooks.d.ts
844
+ declare const useHideMuteAudioButton: () => boolean;
845
+ declare const useHideToggleVideoButton: () => boolean;
846
+ declare const useIsConferenceJoined: () => boolean;
847
+ declare const useHideScreenSharingButton: () => boolean;
848
+ declare const useHideSwitchCameraButton: () => boolean;
849
+ declare const useHideChatButton: () => boolean;
850
+ declare const useLocalParticipant: <T = HumanParticipant>(selector?: (local: HumanParticipant) => T) => T;
851
+ declare const useScreenShareRunning: () => any;
852
+ declare const useTrackMuted: (mediaType: MediaType, participantId?: string) => boolean;
853
+ declare const useMainParticipant: () => Participant$2;
854
+ declare const getMainParticipant: () => Participant$2;
855
+ declare const useIsReconnecting: () => boolean;
856
+ declare const useHideRecordingButton: () => boolean;
857
+ declare const useHideVirtualBackgroundButton: () => boolean;
858
+ declare const useLayout: () => Layout;
859
+ declare const useEnableParticipantContextMenu: () => boolean;
860
+ declare const useRaisedHandTimestamp: (participantId?: string, type?: Participant$2["type"]) => number | undefined;
861
+ declare const useIsParticipantPinned: (participantId: string, type: Participant$2["type"]) => boolean;
862
+ declare const useOrderedParticipants: () => Participant$2[];
863
+ declare const useNonRecoverableError: () => any;
864
+ declare const useIsSwitchCameraEnabledBrowser: () => any;
865
+ declare const useIsAudioInputSelectionSupported: () => boolean;
866
+ declare const useIsVideoInputSelectionSupported: () => boolean;
867
+ declare const useShouldMirrorLocalVideo: () => boolean;
868
+ //#endregion
869
+ //#region calls-sdk-core/store/utils/switch-camera.d.ts
870
+ declare const switchCamera: () => void;
871
+ //#endregion
872
+ //#region calls-sdk-core/utils/session-methods-core.d.ts
873
+ declare class SessionMethodsCore {
874
+ /**
875
+ * Mutes the local user's audio during the call.
876
+ */
877
+ static muteAudio(): void;
878
+ /**
879
+ * Unmutes the local user's audio during the call.
880
+ */
881
+ static unmuteAudio(): void;
882
+ /**
883
+ * Toggles the local user's audio mute state.
884
+ * If audio is muted, it will be unmuted, and vice versa.
885
+ */
886
+ static toggleAudio(): void;
887
+ /**
888
+ * Pauses the local user's video stream.
889
+ */
890
+ static pauseVideo(): void;
891
+ /**
892
+ * Resumes the local user's video stream.
893
+ */
894
+ static resumeVideo(): void;
895
+ /**
896
+ * Toggles the local user's video stream.
897
+ * If video is paused, it will be resumed, and vice versa.
898
+ */
899
+ static toggleVideo(): void;
900
+ /**
901
+ * Local user leaves the current session.
902
+ */
903
+ static leaveSession(): void;
904
+ /**
905
+ * Ends the current session for all participants.
906
+ * This will terminate the conference and disconnect everyone.
907
+ */
908
+ static endSessionForAll(): void;
909
+ /**
910
+ * Raises the user's virtual hand in the call.
911
+ */
912
+ static raiseHand(): void;
913
+ /**
914
+ * Lowers the user's virtual hand in the call.
915
+ */
916
+ static lowerHand(): void;
917
+ /**
918
+ * Toggles the user's virtual hand state.
919
+ * If the hand is raised, it will be lowered, and vice versa.
920
+ */
921
+ static toggleHand(): void;
922
+ /**
923
+ * Switches between the front and rear camera.
924
+ */
925
+ static switchCamera(): void;
926
+ /**
927
+ * Sets the layout type for the call.
928
+ * @param layout - The type of layout to set (tile, sidebar or spotlight).
929
+ */
930
+ static setLayout(layout: Layout): void;
931
+ /**
932
+ * Starts recording the call.
933
+ */
934
+ static startRecording(): void;
935
+ /**
936
+ * Stops the ongoing call recording.
937
+ */
938
+ static stopRecording(): void;
939
+ /**
940
+ * Toggles the call recording state.
941
+ * If recording is active, it will be stopped, and vice versa.
942
+ */
943
+ static toggleRecording(): void;
944
+ /**
945
+ * Pins a participant's video to focus on them.
946
+ * @param participantId - The ID of the participant to pin.
947
+ * @param type - The type of the participant.
948
+ */
949
+ static pinParticipant(participantId: string, type: Participant$2['type']): void;
950
+ /**
951
+ * Unpins a participant's video.
952
+ */
953
+ static unpinParticipant(): void;
954
+ /**
955
+ * Mutes the audio of a specific participant.
956
+ * @param participantId - The ID of the participant to mute.
957
+ */
958
+ static muteParticipant(participantId: string): void;
959
+ /**
960
+ * Pauses the video stream of a specific participant.
961
+ * @param participantId - The ID of the participant whose video to pause.
962
+ */
963
+ static pauseParticipantVideo(participantId: string): void;
964
+ /**
965
+ * Sets the unread message count displayed on the chat button.
966
+ * @param count - The number of unread messages.
967
+ */
968
+ static setChatButtonUnreadCount(count: number): void;
969
+ /**
970
+ * Toggles the visibility of the participant list panel.
971
+ */
972
+ static toggleParticipantList(): void;
973
+ /**
974
+ * Shows the participant list panel.
975
+ */
976
+ static showParticipantList(): void;
977
+ /**
978
+ * Hides the participant list panel.
979
+ */
980
+ static hideParticipantList(): void;
981
+ /**
982
+ * @deprecated switchToVideoCall is deprecated and not supported.
983
+ */
984
+ static switchToVideoCall(): void;
985
+ /**
986
+ * @deprecated use leaveSession() instead
987
+ */
988
+ static endSession(): void;
989
+ /**
990
+ * Retrieves call details for a given session ID and auth token.
991
+ * @param sessionID - The session ID of the call.
992
+ * @param authToken - The authentication token required to make the API call.
993
+ * @returns A Promise that resolves to a CallLog object containing the call details.
994
+ * @throws {CometChatCallsException} If there is an error retrieving the call details.
995
+ * @deprecated This method is deprecated and not supported.
996
+ */
997
+ static getCallDetails(_sessionID: string, _authToken: string): void;
998
+ }
999
+ //#endregion
1000
+ //#region calls-sdk-core/utils/try-catch.d.ts
1001
+ type Success<T> = {
1002
+ data: T;
1003
+ error: null;
1004
+ };
1005
+ type Failure<E> = {
1006
+ data: null;
1007
+ error: E;
1008
+ };
1009
+ type Result<T, E = Error> = Success<T> | Failure<E>;
1010
+ declare function tryCatch<T, E = Error>(promise: Promise<T>, timeoutMs?: number): Promise<Result<T, E>>;
1011
+ declare function tryCatchSync<T, E = Error>(fn: () => T): Result<T, E>;
1012
+ //#endregion
1013
+ //#region calls-sdk-core/utils/update-config.d.ts
1014
+ declare function updateConfig(config: Partial<ConfigState>): void;
1015
+ //#endregion
1016
+ //#region calls-sdk-core/types/common.d.ts
1017
+ type AudioModeType = 'BLUETOOTH' | 'EARPIECE' | 'HEADPHONES' | 'SPEAKER';
1018
+ type AudioMode = {
1019
+ type: AudioModeType;
1020
+ selected: boolean;
1021
+ uid?: string;
1022
+ };
1023
+ type CameraFacingInternal = ValueOf<typeof CAMERA_FACING_INTERNAL>;
1024
+ type CameraFacing = ValueOf<typeof CAMERA_FACING>;
1025
+ type SessionType = ValueOf<typeof SESSION_TYPE>;
1026
+ type Layout = ValueOf<typeof LAYOUT>;
1027
+ type MediaType = ValueOf<typeof MEDIA_TYPE>;
1028
+ type ValueOf<T> = T[keyof T];
1029
+ type ParticipantRole = ValueOf<typeof PARTICIPANT_ROLE>;
1030
+ type NotificationType = 'info' | 'success' | 'warning' | 'error';
1031
+ type SDKPlatform = ValueOf<typeof SDK_PLATFORM>;
1032
+ type WebOSName = 'android' | 'ios' | 'macos' | 'windows' | 'linux' | 'unknown';
1033
+ interface ITrackOptions {
1034
+ cameraDeviceId?: string | null;
1035
+ constraints?: {
1036
+ video?: {
1037
+ height?: {
1038
+ ideal?: number;
1039
+ max?: number;
1040
+ min?: number;
1041
+ };
1042
+ };
1043
+ };
1044
+ desktopSharingSourceDevice?: string;
1045
+ desktopSharingSources?: string[];
1046
+ devices?: string[];
1047
+ facingMode?: string;
1048
+ firePermissionPromptIsShownEvent?: boolean;
1049
+ micDeviceId?: string | null;
1050
+ timeout?: number;
1051
+ }
1052
+ type Prettify<T> = { [K in keyof T]: T[K] } & unknown;
1053
+ type Paths<T> = T extends object ? { [K in keyof T]: T[K] extends object ? `${K & string}.${Paths<T[K]>}` : `${K & string}` }[keyof T] : never;
1054
+ //#endregion
1055
+ //#region calls-sdk-core/types/union-to-array.d.ts
1056
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
1057
+ type UnionToOvlds<U> = UnionToIntersection<U extends any ? (f: U) => void : never>;
1058
+ type PopUnion<U> = UnionToOvlds<U> extends ((a: infer A) => void) ? A : never;
1059
+ type IsUnion<T> = [T] extends [UnionToIntersection<T>] ? false : true;
1060
+ type UnionToArray<T, A$1 extends unknown[] = []> = IsUnion<T> extends true ? UnionToArray<Exclude<T, PopUnion<T>>, [PopUnion<T>, ...A$1]> : [T, ...A$1];
1061
+ //#endregion
1062
+ //#region calls-sdk-core/types/sdk-events.d.ts
1063
+ declare const ParticipantSchema: v.ObjectSchema<{
1064
+ readonly pid: v.StringSchema<undefined>;
1065
+ readonly name: v.StringSchema<undefined>;
1066
+ readonly uid: v.StringSchema<undefined>;
1067
+ readonly avatar: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1068
+ }, undefined>;
1069
+ type Participant$1 = v.InferOutput<typeof ParticipantSchema>;
1070
+ type _SDKEvents = { [k in ValueOf<typeof EVENT_LISTENER_METHODS.SessionStatusListener>]: () => void } & { [k in ValueOf<typeof EVENT_LISTENER_METHODS.MediaEventsListener>]: () => void } & { [k in ValueOf<typeof EVENT_LISTENER_METHODS.ParticipantEventsListner>]: (payload: Participant$1) => void } & { [k in ValueOf<typeof EVENT_LISTENER_METHODS.ButtonClickListener>]: () => void };
1071
+ type SDKEvents = Omit<_SDKEvents, 'onParticipantListChanged'> & {
1072
+ onCallLayoutChanged: (payload: Layout) => void;
1073
+ onParticipantListVisible: () => void;
1074
+ onParticipantListHidden: () => void;
1075
+ onParticipantListChanged: (payload: Participant$1[]) => void;
1076
+ };
1077
+ type MobileSDKEvents = SDKEvents & {
1078
+ onAudioModeChanged: (payload: AudioMode['type']) => void;
1079
+ onCameraFacingChanged: (payload: CameraFacing) => void;
1080
+ onSwitchCameraButtonClicked: () => void;
1081
+ onPictureInPictureLayoutEnabled: () => void;
1082
+ onPictureInPictureLayoutDisabled: () => void;
1083
+ };
1084
+ type WebSDKEvents = SDKEvents & {
1085
+ onAudioInputDeviceChanged: (device: MediaDeviceInfo) => void;
1086
+ onVideoInputDeviceChanged: (device: MediaDeviceInfo) => void;
1087
+ onAudioOutputDeviceChanged: (device: MediaDeviceInfo) => void;
1088
+ onAudioInputDevicesChanged: (device: MediaDeviceInfo[]) => void;
1089
+ onVideoInputDevicesChanged: (device: MediaDeviceInfo[]) => void;
1090
+ onAudioOutputDevicesChanged: (device: MediaDeviceInfo[]) => void;
1091
+ };
1092
+ type InternalEvents = {
1093
+ [INTERNAL_EVENTS.onConnectionEstablished]: () => void;
1094
+ [INTERNAL_EVENTS.connectionWillClose]: () => void;
1095
+ [INTERNAL_EVENTS.notification]: (payload: {
1096
+ message: string;
1097
+ type: NotificationType;
1098
+ duration?: number;
1099
+ position?: 'top' | 'bottom';
1100
+ action?: {
1101
+ label: string;
1102
+ onPress: () => void;
1103
+ };
1104
+ }) => void;
1105
+ [INTERNAL_EVENTS.lifecycle.componentDidMount]: () => void;
1106
+ [INTERNAL_EVENTS.lifecycle.componentWillUnmount]: () => void;
1107
+ [INTERNAL_EVENTS.onSessionJoined]: () => void;
1108
+ [INTERNAL_EVENTS.lifecycle.SDKInitialized]: () => void;
1109
+ [INTERNAL_EVENTS.queryPermission]: () => void;
1110
+ };
1111
+ type AllSDKEvents = MobileSDKEvents & WebSDKEvents;
1112
+ type AllEvents = AllSDKEvents & InternalEvents;
1113
+ type _NativeListenerActions = { [K in keyof AllSDKEvents]: {
1114
+ type: K;
1115
+ } & (Parameters<AllSDKEvents[K]>[0] extends undefined ? {} : {
1116
+ payload: Parameters<AllSDKEvents[K]>[0];
1117
+ }) };
1118
+ type NativeListenerActions = UnionToArray<_NativeListenerActions[keyof _NativeListenerActions]>;
1119
+ //#endregion
1120
+ //#region calls-sdk-core/event-manager/event-bus.d.ts
1121
+ type EventBusAction<K$1 extends keyof AllEvents = keyof AllEvents> = K$1 extends keyof AllEvents ? AllEvents[K$1] extends (() => void) ? {
1122
+ type: K$1;
1123
+ } : AllEvents[K$1] extends ((payload: infer P) => void) ? {
1124
+ type: K$1;
1125
+ payload: P;
1126
+ } : never : never;
1127
+ declare class EventBus {
1128
+ actionListenersMap: Map<keyof AllEvents, Array<AllEvents[keyof AllEvents]>>;
1129
+ emittingEvents: boolean;
1130
+ constructor();
1131
+ startEmitting(): void;
1132
+ stopEmitting(): void;
1133
+ publish<K$1 extends keyof AllEvents>(action: EventBusAction<K$1>, forceEmit?: boolean): void;
1134
+ subscribe<K$1 extends keyof AllEvents>(actionType: K$1, listener: AllEvents[K$1], options?: {
1135
+ signal?: AbortSignal;
1136
+ }): () => void;
1137
+ }
1138
+ declare const eventBus: EventBus;
1139
+ //#endregion
1140
+ //#region calls-sdk-core/handlers/conference.d.ts
1141
+ declare function _createConference(): Promise<void>;
1142
+ declare function createConference(): Promise<void>;
1143
+ declare function muteParticipant(participantId: string): void;
1144
+ declare function pauseParticipantVideo(participantId: string): void;
1145
+ //#endregion
1146
+ //#region calls-sdk-core/handlers/connection.d.ts
1147
+ declare function connect(autoJoinConference?: boolean): Promise<void>;
1148
+ //#endregion
1149
+ //#region calls-sdk-core/handlers/devices.d.ts
1150
+ declare function areDevicesDifferent(existingDevices?: MediaDeviceInfo[], newDevices?: MediaDeviceInfo[]): boolean;
1151
+ declare function updateInputOutputDevices(onlyUpdateIfLabelIsEmpty?: boolean): void;
1152
+ declare function _initDeviceList(): void;
1153
+ declare const initDeviceList: typeof _initDeviceList;
1154
+ //#endregion
1155
+ //#region calls-sdk-core/handlers/screen-share.d.ts
1156
+ declare function startScreenSharing(): void;
1157
+ declare function stopScreenSharing(): void;
1158
+ declare function addScreenShareParticipant(track: any): void;
1159
+ declare function removeScreenShareParticipant(participantId: string): void;
1160
+ //#endregion
1161
+ //#region calls-sdk-core/handlers/session.d.ts
1162
+ declare function startSession(): void;
1163
+ declare function leaveSession(options?: {
1164
+ forceLeave?: boolean;
1165
+ shouldEndSession?: boolean;
1166
+ }): Promise<void>;
1167
+ declare function leaveSessionDueToIdleTimeout(): Promise<void>;
1168
+ declare function reconnectSession(): Promise<void>;
1169
+ declare function cancelPendingReconnect(): void;
1170
+ //#endregion
1171
+ //#region calls-sdk-core/handlers/track.d.ts
1172
+ declare function createLocalTrackF(type: 'audio' | 'video', deviceId?: string | null, timeout?: number | null, additionalOptions?: ITrackOptions): Promise<any>;
1173
+ declare function createLocalTrack(type: 'audio' | 'video', deviceId?: string | null, cameraFacing?: CameraFacingInternal): Promise<void>;
1174
+ declare function createLocalTracks(): void;
1175
+ declare function updateAudioInputDevice(deviceId: string): void;
1176
+ declare function updateAudioInputDeviceState(device?: AudioInputDevice, skipSubscribe?: boolean): void;
1177
+ declare function updateVideoInputDevice(deviceId: string | null, cameraFacing?: CameraFacingInternal): Promise<void>;
1178
+ declare function updateVideoInputDeviceState(device?: VideoInputDevice, skipSubscribe?: boolean): void;
1179
+ declare function updateAudioOutputDevice(deviceId: string): void;
1180
+ //#endregion
1181
+ //#region calls-sdk-core/i18n/translations/en-US.d.ts
1182
+ declare namespace header {
1183
+ namespace layouts {
1184
+ let tileView: string;
1185
+ let sideLayout: string;
1186
+ let spotlight: string;
1187
+ }
1188
+ }
1189
+ declare namespace controlPanel {
1190
+ namespace audioControl {
1191
+ let muteMicrophone: string;
1192
+ let unmuteMicrophone: string;
1193
+ let audioDeviceOptions: string;
1194
+ let audioSettings: string;
1195
+ }
1196
+ namespace videoControl {
1197
+ let turnOffCamera: string;
1198
+ let turnOnCamera: string;
1199
+ let videoDeviceOptions: string;
1200
+ let videoSettings: string;
1201
+ }
1202
+ namespace settingsDialog {
1203
+ export let todo: string;
1204
+ export let title: string;
1205
+ export namespace tabs {
1206
+ let audio: string;
1207
+ let video: string;
1208
+ }
1209
+ export namespace deviceLabels {
1210
+ let microphone: string;
1211
+ let speaker: string;
1212
+ let camera: string;
1213
+ let frameRate: string;
1214
+ }
1215
+ export namespace deviceStates {
1216
+ let noMicrophoneSelected: string;
1217
+ let noSpeakerSelected: string;
1218
+ let noCameraSelected: string;
1219
+ }
1220
+ export namespace audioSettings_1 {
1221
+ let enableNoiseReduction: string;
1222
+ }
1223
+ export { audioSettings_1 as audioSettings };
1224
+ export namespace videoSettings_1 {
1225
+ let mirrorMyVideo: string;
1226
+ let selectCameraToSeePreview: string;
1227
+ let loadingCameraPreview: string;
1228
+ let frameRateUnit: string;
1229
+ let frameRateNotice: string;
1230
+ }
1231
+ export { videoSettings_1 as videoSettings };
1232
+ export namespace permissions {
1233
+ let errorTitle: string;
1234
+ let microphoneBlocked: string;
1235
+ let cameraBlocked: string;
1236
+ let microphoneAndCameraBlocked: string;
1237
+ }
1238
+ export namespace buttons {
1239
+ let cancel: string;
1240
+ let done: string;
1241
+ }
1242
+ }
1243
+ namespace recording {
1244
+ export let startRecording: string;
1245
+ export let stopRecording: string;
1246
+ export let startRecordingConfirmation: string;
1247
+ export let stopRecordingConfirmation: string;
1248
+ let cancel_1: string;
1249
+ export { cancel_1 as cancel };
1250
+ }
1251
+ let raiseHand: string;
1252
+ let lowerHand: string;
1253
+ let startScreenSharing: string;
1254
+ let stopScreenSharing: string;
1255
+ let moreOptions: string;
1256
+ let leaveSession: string;
1257
+ let reactions: string;
1258
+ }
1259
+ declare namespace idealTimeout {
1260
+ let title_1: string;
1261
+ export { title_1 as title };
1262
+ export let subtitle: string;
1263
+ export namespace buttons_1 {
1264
+ let stayInCall: string;
1265
+ let leaveNow: string;
1266
+ }
1267
+ export { buttons_1 as buttons };
1268
+ }
1269
+ declare namespace participantList {
1270
+ export namespace header_1 {
1271
+ let title_2: string;
1272
+ export { title_2 as title };
1273
+ export let closeButton: string;
1274
+ }
1275
+ export { header_1 as header };
1276
+ export namespace search {
1277
+ let placeholder: string;
1278
+ }
1279
+ export namespace emptyState {
1280
+ let title_3: string;
1281
+ export { title_3 as title };
1282
+ let subtitle_1: string;
1283
+ export { subtitle_1 as subtitle };
1284
+ }
1285
+ }
1286
+ declare namespace virtualBackground {
1287
+ let title_4: string;
1288
+ export { title_4 as title };
1289
+ export let addBackground: string;
1290
+ export let noCameraFeed: string;
1291
+ export namespace buttons_2 {
1292
+ let cancel_2: string;
1293
+ export { cancel_2 as cancel };
1294
+ let done_1: string;
1295
+ export { done_1 as done };
1296
+ }
1297
+ export { buttons_2 as buttons };
1298
+ }
1299
+ declare namespace general {
1300
+ let error: string;
1301
+ }
1302
+ declare let other: {};
1303
+ declare namespace __json_default_export {
1304
+ export { header, controlPanel, idealTimeout, participantList, virtualBackground, general, other };
1305
+ }
1306
+ //#endregion
1307
+ //#region calls-sdk-core/i18n/state.d.ts
1308
+ type CometChatSupportedLocale = 'en-US';
1309
+ type TranslationResource = typeof __json_default_export;
1310
+ interface TranslationState {
1311
+ translations: Record<string, typeof __json_default_export>;
1312
+ currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
1313
+ }
1314
+ declare const useTranslationStore: zustand7.UseBoundStore<Omit<zustand7.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
1315
+ reset: () => void;
1316
+ setLocale: (locale: CometChatSupportedLocale) => void;
1317
+ }>, "subscribe"> & {
1318
+ subscribe: {
1319
+ (listener: (selectedState: Omit<TranslationState, "reset" | "setLocale"> & {
1320
+ reset: () => void;
1321
+ setLocale: (locale: CometChatSupportedLocale) => void;
1322
+ }, previousSelectedState: Omit<TranslationState, "reset" | "setLocale"> & {
1323
+ reset: () => void;
1324
+ setLocale: (locale: CometChatSupportedLocale) => void;
1325
+ }) => void): () => void;
1326
+ <U>(selector: (state: Omit<TranslationState, "reset" | "setLocale"> & {
1327
+ reset: () => void;
1328
+ setLocale: (locale: CometChatSupportedLocale) => void;
1329
+ }) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
1330
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
1331
+ fireImmediately?: boolean;
1332
+ } | undefined): () => void;
1333
+ };
1334
+ }>;
1335
+ //#endregion
1336
+ //#region calls-sdk-core/i18n/hook.d.ts
1337
+ declare const useTranslation: () => {
1338
+ t: (key: Paths<TranslationResource>) => string;
1339
+ currentLocale: "en-US" | Omit<string, "en-US">;
1340
+ translations: Record<string, {
1341
+ header: {
1342
+ layouts: {
1343
+ tileView: string;
1344
+ sideLayout: string;
1345
+ spotlight: string;
1346
+ };
1347
+ };
1348
+ controlPanel: {
1349
+ audioControl: {
1350
+ muteMicrophone: string;
1351
+ unmuteMicrophone: string;
1352
+ audioDeviceOptions: string;
1353
+ audioSettings: string;
1354
+ };
1355
+ videoControl: {
1356
+ turnOffCamera: string;
1357
+ turnOnCamera: string;
1358
+ videoDeviceOptions: string;
1359
+ videoSettings: string;
1360
+ };
1361
+ settingsDialog: {
1362
+ todo: string;
1363
+ title: string;
1364
+ tabs: {
1365
+ audio: string;
1366
+ video: string;
1367
+ };
1368
+ deviceLabels: {
1369
+ microphone: string;
1370
+ speaker: string;
1371
+ camera: string;
1372
+ frameRate: string;
1373
+ };
1374
+ deviceStates: {
1375
+ noMicrophoneSelected: string;
1376
+ noSpeakerSelected: string;
1377
+ noCameraSelected: string;
1378
+ };
1379
+ audioSettings: {
1380
+ enableNoiseReduction: string;
1381
+ };
1382
+ videoSettings: {
1383
+ mirrorMyVideo: string;
1384
+ selectCameraToSeePreview: string;
1385
+ loadingCameraPreview: string;
1386
+ frameRateUnit: string;
1387
+ frameRateNotice: string;
1388
+ };
1389
+ permissions: {
1390
+ errorTitle: string;
1391
+ microphoneBlocked: string;
1392
+ cameraBlocked: string;
1393
+ microphoneAndCameraBlocked: string;
1394
+ };
1395
+ buttons: {
1396
+ cancel: string;
1397
+ done: string;
1398
+ };
1399
+ };
1400
+ recording: {
1401
+ startRecording: string;
1402
+ stopRecording: string;
1403
+ startRecordingConfirmation: string;
1404
+ stopRecordingConfirmation: string;
1405
+ cancel: string;
1406
+ };
1407
+ raiseHand: string;
1408
+ lowerHand: string;
1409
+ startScreenSharing: string;
1410
+ stopScreenSharing: string;
1411
+ moreOptions: string;
1412
+ leaveSession: string;
1413
+ reactions: string;
1414
+ };
1415
+ idealTimeout: {
1416
+ title: string;
1417
+ subtitle: string;
1418
+ buttons: {
1419
+ stayInCall: string;
1420
+ leaveNow: string;
1421
+ };
1422
+ };
1423
+ participantList: {
1424
+ header: {
1425
+ title: string;
1426
+ closeButton: string;
1427
+ };
1428
+ search: {
1429
+ placeholder: string;
1430
+ };
1431
+ emptyState: {
1432
+ title: string;
1433
+ subtitle: string;
1434
+ };
1435
+ };
1436
+ virtualBackground: {
1437
+ title: string;
1438
+ addBackground: string;
1439
+ noCameraFeed: string;
1440
+ buttons: {
1441
+ cancel: string;
1442
+ done: string;
1443
+ };
1444
+ };
1445
+ general: {
1446
+ error: string;
1447
+ };
1448
+ other: {};
1449
+ }>;
1450
+ };
1451
+ //#endregion
1452
+ //#region src/app-settings.d.ts
1453
+ declare const RegionSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string>, v.UnionSchema<[v.LiteralSchema<"eu", undefined>, v.LiteralSchema<"us", undefined>, v.LiteralSchema<"in", undefined>, v.LiteralSchema<"EU", undefined>, v.LiteralSchema<"US", undefined>, v.LiteralSchema<"IN", undefined>], undefined>]>;
1454
+ declare const CallAppSettingsSchema: v.ObjectSchema<{
1455
+ readonly appId: v.StringSchema<undefined>;
1456
+ readonly region: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string>, v.UnionSchema<[v.LiteralSchema<"eu", undefined>, v.LiteralSchema<"us", undefined>, v.LiteralSchema<"in", undefined>, v.LiteralSchema<"EU", undefined>, v.LiteralSchema<"US", undefined>, v.LiteralSchema<"IN", undefined>], undefined>]>;
1457
+ readonly authKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1458
+ readonly adminHost: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1459
+ readonly clientHost: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1460
+ readonly host: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1461
+ }, undefined>;
1462
+ type CallAppSettings = v.InferOutput<typeof CallAppSettingsSchema>;
1463
+ //#endregion
1464
+ //#region src/native-communication/native-to-js.native.d.ts
1465
+ declare function setupNativeEventListeners(): void;
1466
+ //#endregion
1467
+ //#region src/v4/Constants.d.ts
1468
+ declare const constants: {
1469
+ DEFAULT_STORE: string;
1470
+ MSG_VER_PRE: string;
1471
+ MSG_VER_POST: string;
1472
+ };
1473
+ declare const ERROR_CODES: {
1474
+ API_ERROR: {
1475
+ code: string;
1476
+ };
1477
+ };
1478
+ declare const REGION: {
1479
+ readonly us: "us";
1480
+ readonly eu: "eu";
1481
+ readonly in: "in";
1482
+ readonly US: "us";
1483
+ readonly EU: "eu";
1484
+ readonly IN: "in";
1485
+ };
1486
+ declare const DEFAULT_VALUES: {
1487
+ ZERO: number;
1488
+ MSGS_LIMIT: number;
1489
+ MSGS_MAX_LIMIT: number;
1490
+ USERS_LIMIT: number;
1491
+ USERS_MAX_LIMIT: number;
1492
+ GROUPS_LIMIT: number;
1493
+ GROUPS_MAX_LIMIT: number;
1494
+ CONVERSATION_MAX_LIMIT: number;
1495
+ CALL_TIMEOUT: number;
1496
+ DEFAULT_MSG_ID: number;
1497
+ DEFAULT_MAX_TYPING_INDICATOR_LIMIT: number;
1498
+ REGION_DEFAULT: string;
1499
+ REGION_DEFAULT_EU: string;
1500
+ REGION_DEFAULT_US: string;
1501
+ REGION_DEFAULT_IN: string;
1502
+ REGION_DEFAULT_PRIVATE: string;
1503
+ };
1504
+ declare enum GroupType {
1505
+ Public = "public",
1506
+ Private = "private",
1507
+ Protected = "protected",
1508
+ Password = "password",
1509
+ }
1510
+ declare const GROUP_TYPE: {
1511
+ PUBLIC: string;
1512
+ PRIVATE: string;
1513
+ PROTECTED: string;
1514
+ PASSWORD: string;
1515
+ };
1516
+ declare enum GroupMemberScope {
1517
+ Admin = "admin",
1518
+ Moderator = "moderator",
1519
+ Member = "member",
1520
+ }
1521
+ declare const GROUP_MEMBER_SCOPE: {
1522
+ ADMIN: string;
1523
+ MODERATOR: string;
1524
+ PARTICIPANT: string;
1525
+ };
1526
+ declare const APPINFO: {
1527
+ platform: string;
1528
+ sdkVersion: string;
1529
+ apiVersion: string;
1530
+ sdkVersionWithUnderScore: string;
1531
+ userAgent: string;
1532
+ };
1533
+ declare const SDKHeader: {
1534
+ platform: string;
1535
+ sdkVersion: string;
1536
+ sdk: string;
1537
+ };
1538
+ declare const WS: {
1539
+ CONVERSATION: {
1540
+ TYPE: {
1541
+ CHAT: string;
1542
+ GROUP_CHAT: string;
1543
+ };
1544
+ };
1545
+ };
1546
+ declare const ANALYTICS: {
1547
+ analyticsHost: string;
1548
+ analyticsVersion: string;
1549
+ };
1550
+ declare const LOCAL_STORE: {
1551
+ COMMON_STORE: string;
1552
+ MESSAGE_LISTENERS_LIST: string;
1553
+ USERS_STORE: string;
1554
+ MESSAGES_STORE: string;
1555
+ KEYS_STORE: string;
1556
+ STORE_STRING: string;
1557
+ KEY_STRING: string;
1558
+ KEY_USER: string;
1559
+ KEY_APP_SETTINGS: string;
1560
+ KEY_APP_ID: string;
1561
+ KEY_DEVICE_ID: string;
1562
+ KEY_MESSAGE_LISTENER_LIST: string;
1563
+ };
1564
+ declare const ResponseConstants: {
1565
+ RESPONSE_KEYS: {
1566
+ KEY_DATA: string;
1567
+ KEY_META: string;
1568
+ KEY_CURSOR: string;
1569
+ KEY_ACTION: string;
1570
+ KEY_MESSAGE: string;
1571
+ KEY_ERROR: string;
1572
+ KEY_ERROR_DETAILS: string;
1573
+ KEY_ERROR_CODE: string;
1574
+ KEY_ERROR_MESSAGE: string;
1575
+ KEY_AUTH_TOKEN: string;
1576
+ KEY_WS_CHANNEL: string;
1577
+ KEY_IDENTITY: string;
1578
+ KEY_SERVICE: string;
1579
+ KEY_ENTITIES: string;
1580
+ KEY_ENTITITY: string;
1581
+ KEY_ENTITYTYPE: string;
1582
+ KEY_ATTACHMENTS: string;
1583
+ CODE_REQUEST_OK: number;
1584
+ CODE_BAD_REQUEST: number;
1585
+ UNREAD_UNDELIVERED_KEYS: {
1586
+ ENTITY: string;
1587
+ ENTITY_TYPE: string;
1588
+ ENTITY_Id: string;
1589
+ COUNT: string;
1590
+ };
1591
+ GROUP_MEMBERS_RESPONSE: {
1592
+ SUCCESS: string;
1593
+ ERROR: string;
1594
+ MESSAGE: string;
1595
+ };
1596
+ KEY_ENTITY_TYPE: {
1597
+ USER: string;
1598
+ GROUP: string;
1599
+ };
1600
+ };
1601
+ };
1602
+ declare const DELIVERY_RECEIPTS: {
1603
+ RECEIVER_ID: string;
1604
+ RECEIVER_TYPE: string;
1605
+ RECIPIENT: string;
1606
+ MESSAGE_ID: string;
1607
+ RECEIVED: string;
1608
+ DELIVERED_AT: string;
1609
+ ID: string;
1610
+ TIME: string;
1611
+ DELIVERED_TO_ME_AT: string;
1612
+ };
1613
+ declare const READ_RECEIPTS: {
1614
+ RECEIVER_ID: string;
1615
+ RECEIVER_TYPE: string;
1616
+ RECIPIENT: string;
1617
+ MESSAGE_ID: string;
1618
+ READ: string;
1619
+ READ_AT: string;
1620
+ ID: string;
1621
+ TIME: string;
1622
+ READ_BY_ME_AT: string;
1623
+ };
1624
+ declare const MessageConstatnts: {
1625
+ TYPE: {
1626
+ TEXT: string;
1627
+ MEDIA: string;
1628
+ IMAGE: string;
1629
+ VIDEO: string;
1630
+ AUDIO: string;
1631
+ FILE: string;
1632
+ CUSTOM: string;
1633
+ };
1634
+ CATEGORY: {
1635
+ MESSAGE: string;
1636
+ ACTION: string;
1637
+ CALL: string;
1638
+ CUSTOM: string;
1639
+ };
1640
+ RECEIVER_TYPE: {
1641
+ USER: string;
1642
+ GROUP: string;
1643
+ };
1644
+ KEYS: {
1645
+ ATTATCHMENT: string;
1646
+ ATTATCHMENTS: string;
1647
+ ACTION: string;
1648
+ TYPE: string;
1649
+ DATA: string;
1650
+ ID: string;
1651
+ MUID: string;
1652
+ SENDER: string;
1653
+ RECEIVER: string;
1654
+ RECEIVER_ID: string;
1655
+ CATEGORY: string;
1656
+ RECEIVER_TYPE: string;
1657
+ SENT_AT: string;
1658
+ STATUS: string;
1659
+ TEXT: string;
1660
+ URL: string;
1661
+ METADATA: string;
1662
+ RECEIPTS: string;
1663
+ MY_RECEIPTS: string;
1664
+ CUSTOM_DATA: string;
1665
+ CUSTOM_SUB_TYPE: string;
1666
+ RESOURCE: string;
1667
+ };
1668
+ KNOWN_MEDIA_TYPE: {
1669
+ IMAGE: never[];
1670
+ VIDEO: never[];
1671
+ AUDIO: never[];
1672
+ FILE: never[];
1673
+ };
1674
+ PAGINATION: {
1675
+ AFFIX: {
1676
+ APPEND: string;
1677
+ PREPEND: string;
1678
+ };
1679
+ CURSOR_FILEDS: {
1680
+ ID: string;
1681
+ SENT_AT: string;
1682
+ };
1683
+ CURSOR_AFFIX_DEFAULT: string;
1684
+ CURSOR_FIELD_DEFAULT: string;
1685
+ KEYS: {
1686
+ PER_PAGE: string;
1687
+ CURSOR_AFFIX: string;
1688
+ AFFIX: string;
1689
+ CURSOR_FIELD: string;
1690
+ CURSOR_VALUE: string;
1691
+ UID: string;
1692
+ SENT_AT: string;
1693
+ ID: string;
1694
+ CURRENT_PAGE: string;
1695
+ UNREAD: string;
1696
+ HIDE_MESSAGES_FROM_BLOCKED_USER: string;
1697
+ SEARCH_KEY: string;
1698
+ ONLY_UPDATES: string;
1699
+ UPDATED_AT: string;
1700
+ CATEGORY: string;
1701
+ CATEGORIES: string;
1702
+ TYPE: string;
1703
+ TYPES: string;
1704
+ HIDE_REPLIES: string;
1705
+ HIDE_DELETED_MESSAGES: string;
1706
+ WITH_TAGS: string;
1707
+ TAGS: string;
1708
+ };
1709
+ };
1710
+ };
1711
+ declare const ATTACHMENTS_CONSTANTS: {
1712
+ KEYS: {
1713
+ EXTENSION: string;
1714
+ MIME_TYPE: string;
1715
+ NAME: string;
1716
+ SIZE: string;
1717
+ URL: string;
1718
+ };
1719
+ };
1720
+ declare enum MessageCategory {
1721
+ ACTION = "action",
1722
+ MESSAGE = "message",
1723
+ CALL = "call",
1724
+ CUSTOM = "custom",
1725
+ }
1726
+ declare const TYPING_NOTIFICATION: {
1727
+ RECEIVER_ID: string;
1728
+ RECEIVER_TYPE: string;
1729
+ META: string;
1730
+ KEYS: {
1731
+ TYPING_NOTIFICATION: string;
1732
+ TIMESTAMP: string;
1733
+ };
1734
+ ACTIONS: {
1735
+ STARTED: string;
1736
+ ENDED: string;
1737
+ };
1738
+ };
1739
+ declare const ActionConstatnts: {
1740
+ ACTION_SUBJECTS: {
1741
+ ACTION_ON: string;
1742
+ ACTION_BY: string;
1743
+ ACTION_FOR: string;
1744
+ };
1745
+ ACTION_ENTITY_TYPE: {
1746
+ GROUP_USER: string;
1747
+ USER: string;
1748
+ GROUP: string;
1749
+ MESSAGE: string;
1750
+ };
1751
+ ACTION_KEYS: {
1752
+ ACTION_CREATED: string;
1753
+ ACTION_UPDATED: string;
1754
+ ACTION_DELETED: string;
1755
+ ENTITIES: string;
1756
+ ENTITY: string;
1757
+ ENTITY_TYPE: string;
1758
+ TYPE_MEMBER_JOINED: string;
1759
+ TYPE_MEMBER_LEFT: string;
1760
+ TYPE_MEMBER_KICKED: string;
1761
+ TYPE_MEMBER_BANNED: string;
1762
+ TYPE_MEMBER_UNBANNED: string;
1763
+ TYPE_MEMBER_INVITED: string;
1764
+ TYPE_MEMBER_ADDED: string;
1765
+ ACTION_SCOPE_CHANGED: string;
1766
+ ACTION_TYPE_USER: string;
1767
+ ACTION_TYPE_GROUP: string;
1768
+ ACTION_TYPE_GROUP_MEMBER: string;
1769
+ TYPE_MESSAGE_EDITED: string;
1770
+ TYPE_MESSAGE_DELETED: string;
1771
+ ACTION_TYPE_CALL: string;
1772
+ EXTRAS: string;
1773
+ SCOPE: string;
1774
+ NEW: string;
1775
+ OLD: string;
1776
+ };
1777
+ ActionMessages: {
1778
+ ACTION_GROUP_JOINED_MESSAGE: string;
1779
+ ACTION_GROUP_LEFT_MESSAGE: string;
1780
+ ACTION_MEMBER_KICKED_MESSAGE: string;
1781
+ ACTION_MEMBER_BANNED_MESSAGE: string;
1782
+ ACTION_MEMBER_UNBANNED_MESSAGE: string;
1783
+ ACTION_MEMBER_INVITED_MESSAGE: string;
1784
+ ACTION_MESSAGE_EDITED_MESSAGE: string;
1785
+ ACTION_MESSAGE_DELETED_MESSAGE: string;
1786
+ ACTION_MEMBER_SCOPE_CHANGED: string;
1787
+ ACTION_MEMBER_ADDED_TO_GROUP: string;
1788
+ };
1789
+ ACTION_TYPE: {
1790
+ TYPE_MEMBER_JOINED: string;
1791
+ TYPE_MEMBER_LEFT: string;
1792
+ TYPE_MEMBER_KICKED: string;
1793
+ TYPE_MEMBER_BANNED: string;
1794
+ TYPE_MEMBER_UNBANNED: string;
1795
+ TYPE_MEMBER_INVITED: string;
1796
+ TYPE_MEMBER_SCOPE_CHANGED: string;
1797
+ TYPE_MESSAGE: string;
1798
+ TYPE_MESSAGE_EDITED: string;
1799
+ TYPE_MESSAGE_DELETED: string;
1800
+ TYPE_MEMBER_ADDED: string;
1801
+ };
1802
+ ACTIONS: {
1803
+ MEMBER_ADDED: string;
1804
+ MEMBER_JOINED: string;
1805
+ MEMBER_LEFT: string;
1806
+ MEMBER_KICKED: string;
1807
+ MEMBER_BANNED: string;
1808
+ MEMBER_UNBANNED: string;
1809
+ MEMBER_INVITED: string;
1810
+ MEMBER_SCOPE_CHANGED: string;
1811
+ MESSAGE_EDITED: string;
1812
+ MESSSAGE_DELETED: string;
1813
+ TYPE_USER: string;
1814
+ TYPE_GROUP: string;
1815
+ TYPE_GROUP_MEMBER: string;
1816
+ };
1817
+ };
1818
+ declare const BlockedUsersConstants: {
1819
+ REQUEST_KEYS: {
1820
+ DIRECTIONS: {
1821
+ BOTH: string;
1822
+ HAS_BLOCKED_ME: string;
1823
+ BLOCKED_BY_ME: string;
1824
+ };
1825
+ };
1826
+ };
1827
+ declare const CallConstants: {
1828
+ readonly CALL_MODE: {
1829
+ readonly DEFAULT: "DEFAULT";
1830
+ readonly SPOTLIGHT: "SPOTLIGHT";
1831
+ };
1832
+ readonly AUDIO_MODE: {
1833
+ readonly SPEAKER: "SPEAKER";
1834
+ readonly EARPIECE: "EARPIECE";
1835
+ readonly BLUETOOTH: "BLUETOOTH";
1836
+ readonly HEADPHONES: "HEADPHONES";
1837
+ };
1838
+ readonly CALL_TYPE: {
1839
+ readonly AUDIO: "audio";
1840
+ readonly VIDEO: "video";
1841
+ };
1842
+ readonly RECEIVER_TYPE_GROUP: "group";
1843
+ readonly RECEIVER_TYPE_USER: "user";
1844
+ readonly CALL_KEYS: {
1845
+ readonly CALL_DATA: "data";
1846
+ readonly CALL_ID: "id";
1847
+ readonly CALL_SESSION_ID: "sessionid";
1848
+ readonly CALL_RECEIVER: "receiver";
1849
+ readonly CALL_SENDER: "sender";
1850
+ readonly CALL_INITIATOR: "initiator";
1851
+ readonly CALL_RECEIVER_TYPE: "receiverType";
1852
+ readonly CALL_STATUS: "status";
1853
+ readonly CALL_TYPE: "type";
1854
+ readonly CALL_INITIATED_AT: "initiatedAt";
1855
+ readonly CALL_JOINED_AT: "joinedAt";
1856
+ readonly CALL_LEFT_AT: "leftAt";
1857
+ readonly CALL_METADATA: "metadata";
1858
+ readonly CALL_ENTITIES: "entities";
1859
+ readonly CALL_ENTITY_TYPE: "entityType";
1860
+ readonly CALL_ENTITY: "entity";
1861
+ readonly CALL_ENTITY_USER: "user";
1862
+ readonly CALL_ENTITY_GROUP: "group";
1863
+ };
1864
+ readonly CALL_STATUS: {
1865
+ readonly INITIATED: "initiated";
1866
+ readonly ONGOING: "ongoing";
1867
+ readonly UNANSWERED: "unanswered";
1868
+ readonly REJECTED: "rejected";
1869
+ readonly BUSY: "busy";
1870
+ readonly CANCELLED: "cancelled";
1871
+ readonly ENDED: "ended";
1872
+ };
1873
+ readonly ZOOM_BUTTON_DEFAULT_PARAMS: {
1874
+ readonly position: "bottom-right";
1875
+ readonly visible: true;
1876
+ };
1877
+ readonly FULL_SCREEN_BUTTON_DEFAULT_PARAMS: {
1878
+ readonly position: "bottom-right";
1879
+ readonly visible: true;
1880
+ };
1881
+ readonly USER_LIST_BUTTON_DEFAULT_PARAMS: {
1882
+ readonly position: "bottom-right";
1883
+ readonly visible: true;
1884
+ };
1885
+ readonly NAME_LABEL_DEFAULT_PARAMS: {
1886
+ readonly position: "bottom-left";
1887
+ readonly visible: true;
1888
+ readonly color: "#333333";
1889
+ };
1890
+ readonly MAIN_VIDEO_CONTAINER_SETTINGS: {
1891
+ readonly KEYS: {
1892
+ readonly POSITION: "position";
1893
+ readonly VISIBILITY: "visibility";
1894
+ readonly COLOR: "color";
1895
+ };
1896
+ };
1897
+ };
1898
+ declare const GroupConstants: {
1899
+ KEYS: {
1900
+ NAME: string;
1901
+ GUID: string;
1902
+ TYPE: string;
1903
+ PASSWORD: string;
1904
+ ICON: string;
1905
+ DESCRIPTION: string;
1906
+ OWNER: string;
1907
+ METADATA: string;
1908
+ CREATED_AT: string;
1909
+ UPDATED_AT: string;
1910
+ HAS_JOINED: string;
1911
+ WS_CHANNEL: string;
1912
+ TAGS: string;
1913
+ };
1914
+ };
1915
+ declare const GroupMemersConstans: {
1916
+ KEYS: {
1917
+ SCOPE: string;
1918
+ UID: string;
1919
+ GUID: string;
1920
+ USER: string;
1921
+ NAME: string;
1922
+ };
1923
+ };
1924
+ declare const UserConstants: {
1925
+ UID: string;
1926
+ NAME: string;
1927
+ AUTH_TOKEN: string;
1928
+ AVATAR: string;
1929
+ LAST_ACTIVE_AT: string;
1930
+ LINK: string;
1931
+ META_DATA: string;
1932
+ ROLE: string;
1933
+ STATUS: string;
1934
+ STATUS_MESSAGE: string;
1935
+ USER_NAME: string;
1936
+ TAGS: string;
1937
+ SORT_BY: {
1938
+ NAME: string;
1939
+ STATUS: string;
1940
+ };
1941
+ SORT_ORDER: {
1942
+ ASCENDING: string;
1943
+ DESCENDING: string;
1944
+ };
1945
+ };
1946
+ declare const Errors: {
1947
+ ERROR_IO_EXCEPTION: string;
1948
+ ERROR_JSON_EXCEPTION: string;
1949
+ ERROR_PASSWORD_MISSING: string;
1950
+ ERROR_LIMIT_EXCEEDED: string;
1951
+ ERROR_USER_NOT_LOGGED_IN: string;
1952
+ ERROR_INVALID_GUID: string;
1953
+ ERROR_PASSWORD_MISSING_MESSAGE: string;
1954
+ ERROR_LIMIT_EXCEEDED_MESSAGE: string;
1955
+ ERROR_USER_NOT_LOGGED_IN_MESSAGE: string;
1956
+ ERROR_INVALID_GUID_MESSAGE: string;
1957
+ ERROR_DEFAULT_MESSAGE: string;
1958
+ ERR_SETTINGS_HASH_OUTDATED: string;
1959
+ ERR_NO_AUTH: string;
1960
+ };
1961
+ declare const CALL_ERROR: {
1962
+ CALL_ALREADY_INITIATED: {
1963
+ code: string;
1964
+ name: string;
1965
+ message: string;
1966
+ details: {};
1967
+ };
1968
+ ERROR_IN_CALLING: {
1969
+ code: string;
1970
+ name: string;
1971
+ message: string;
1972
+ details: {};
1973
+ };
1974
+ CANNOT_ACCEPT_CALL: {
1975
+ code: string;
1976
+ name: string;
1977
+ message: string;
1978
+ details: {};
1979
+ };
1980
+ NOT_INITIALIZED: {
1981
+ code: string;
1982
+ name: string;
1983
+ message: string;
1984
+ details: {};
1985
+ };
1986
+ NOT_LOGGED_IN: {
1987
+ code: string;
1988
+ name: string;
1989
+ message: string;
1990
+ details: {};
1991
+ };
1992
+ SESSION_ID_REQUIRED: {
1993
+ code: string;
1994
+ name: string;
1995
+ message: string;
1996
+ details: {};
1997
+ };
1998
+ JWT_NOT_FOUND: {
1999
+ code: string;
2000
+ name: string;
2001
+ message: string;
2002
+ details: {};
2003
+ };
2004
+ MODULE_NOT_INSTALLED: {
2005
+ code: string;
2006
+ name: string;
2007
+ message: string;
2008
+ details: {};
2009
+ };
2010
+ };
2011
+ declare const PARAMETER_ERROR: {
2012
+ PARAMETER_REQUIRED: {
2013
+ code: string;
2014
+ name: string;
2015
+ message: string;
2016
+ details: {};
2017
+ };
2018
+ };
2019
+ declare const GENERAL_ERROR: {
2020
+ readonly GENERIC_EXCEPTION: {
2021
+ readonly code: "GENERIC_EXCEPTION";
2022
+ };
2023
+ readonly INVALID_ARGUMENT_EXCEPTION: {
2024
+ readonly code: "INVALID_ARGUMENT_EXCEPTION";
2025
+ };
2026
+ readonly INVALID_PROP_EXCEPTION: {
2027
+ readonly code: "INVALID_PROP_EXCEPTION";
2028
+ };
2029
+ readonly API_ERROR: {
2030
+ readonly code: "API_ERROR";
2031
+ };
2032
+ readonly ERROR_PRESENTER_MODE: {
2033
+ readonly code: "ERROR_PRESENTER_MODE";
2034
+ readonly message: "Presenter mode is disabled. To use presenter mode, please enable it from the CometChat Apps Dashboard";
2035
+ };
2036
+ readonly UNKNOWN_API_ERROR: {
2037
+ readonly code: "UNKNOWN_API_ERROR";
2038
+ readonly message: "There is an unknown issue with the API request. Please check your internet connection and verify the api call.";
2039
+ };
2040
+ };
2041
+ declare const ReceiptErrors: {
2042
+ MISSING_PARAMETERS: {
2043
+ code: string;
2044
+ name: string;
2045
+ message: string;
2046
+ details: {};
2047
+ };
2048
+ INVALID_PARAMETER: {
2049
+ code: string;
2050
+ name: string;
2051
+ message: string;
2052
+ details: {};
2053
+ };
2054
+ NO_WEBSOCKET_CONNECTION: {
2055
+ code: string;
2056
+ name: string;
2057
+ message: string;
2058
+ details: {};
2059
+ };
2060
+ RECEIPTS_TEMPORARILY_BLOCKED: {
2061
+ code: string;
2062
+ name: string;
2063
+ message: string;
2064
+ details: {};
2065
+ };
2066
+ UNKNOWN_ERROR_OCCURRED: {
2067
+ code: string;
2068
+ name: string;
2069
+ message: string;
2070
+ details: {};
2071
+ };
2072
+ };
2073
+ declare const APP_SETTINGS: {
2074
+ APP_SETTINGS: string;
2075
+ KEYS: {
2076
+ CHAT_HOST: string;
2077
+ CHAT_USE_SSL: string;
2078
+ GROUP_SERVICE: string;
2079
+ CALL_SERVICE: string;
2080
+ CHAT_WS_PORT: string;
2081
+ CHAT_WSS_PORT: string;
2082
+ CHAT_HTTP_BIND_PORT: string;
2083
+ CHAT_HTTPS_BIND_PORT: string;
2084
+ ADMIN_API_HOST: string;
2085
+ CLIENT_API_HOST: string;
2086
+ WEBRTC_HOST: string;
2087
+ WEBRTC_USE_SSL: string;
2088
+ WEBRTC_WS_PORT: string;
2089
+ WEBRTC_WSS_PORT: string;
2090
+ WEBRTC_HTTP_BIND_PORT: string;
2091
+ WEBRTC_HTTPS_BIND_PORT: string;
2092
+ EXTENSION_LIST: string;
2093
+ EXTENSION_KEYS: {
2094
+ ID: string;
2095
+ NAME: string;
2096
+ };
2097
+ JID_HOST_OVERRIDE: string;
2098
+ CHAT_HOST_OVERRIDE: string;
2099
+ CHAT_HOST_APP_SPECIFIC: string;
2100
+ MODE: string;
2101
+ CONNECTION_TYPE: string;
2102
+ DEFAULT_MODE: string;
2103
+ LIMITED_TRANSIENT: string;
2104
+ NO_TRANSIENT: string;
2105
+ POLLING_ENABLED: string;
2106
+ POLLING_INTERVAL: string;
2107
+ ANALYTICS_PING_DISABLED: string;
2108
+ ANALYTICS_HOST: string;
2109
+ ANALYTICS_VERSION: string;
2110
+ ANALYTICS_USE_SSL: string;
2111
+ SETTINGS_HASH: string;
2112
+ SETTINGS_HASH_RECEIVED_AT: string;
2113
+ DENY_FALLBACK_TO_POLLING: string;
2114
+ APP_VERSION: string;
2115
+ MAIN_DOMAIN: string;
2116
+ CHAT_API_VERSION: string;
2117
+ WS_API_VERSION: string;
2118
+ REGION: string;
2119
+ EXTENSION_DOMAIN: string;
2120
+ WEBRTC_API_SUBDOMAIN: string;
2121
+ };
2122
+ };
2123
+ declare const COMMON_UTILITY_CONSTANTS: {
2124
+ TYPE_CONSTANTS: {
2125
+ BOOLEAN: string;
2126
+ STRING: string;
2127
+ OBJECT: string;
2128
+ NUMBER: string;
2129
+ };
2130
+ };
2131
+ declare const CONNECTION_STATUS: {
2132
+ CONNECTED: string;
2133
+ CONNECTING: string;
2134
+ DISCONNECTED: string;
2135
+ FEATURE_THROTTLED: string;
2136
+ };
2137
+ declare const API_ERROR_CODES: {
2138
+ AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
2139
+ };
2140
+ declare const PROSODY_API: {
2141
+ DOMAIN_PREFIX: string;
2142
+ PATH: {
2143
+ ROOM: string;
2144
+ ROOM_SIZE: string;
2145
+ SESSIONS: string;
2146
+ };
2147
+ RESPONSE: {
2148
+ PARTICIPANTS: string;
2149
+ };
2150
+ QUERY_PARAMETERS: {
2151
+ DOMAIN: string;
2152
+ ROOM: string;
2153
+ };
2154
+ };
2155
+ declare const ProsodyApiErrors: {
2156
+ INVALID_SESSIONID: {
2157
+ code: string;
2158
+ name: string;
2159
+ message: string;
2160
+ details: string;
2161
+ };
2162
+ INVALID_TYPE: {
2163
+ code: string;
2164
+ name: string;
2165
+ message: string;
2166
+ details: string;
2167
+ };
2168
+ };
2169
+ declare const JWT_API: {
2170
+ KEYS: {
2171
+ PASSTHROUGH: string;
2172
+ EXPAND: string;
2173
+ };
2174
+ };
2175
+ declare const ONLINE_MEMBER_COUNT_API: {
2176
+ ENDPOINTS: {
2177
+ GET_ONLINE_MEMBER_COUNT: string;
2178
+ };
2179
+ RESPONSE: {
2180
+ ONLINE_USERS_COUNT: string;
2181
+ GROUPS: string;
2182
+ };
2183
+ ERRORS: {
2184
+ INVALID_GROUPLIST: {
2185
+ code: string;
2186
+ name: string;
2187
+ message: string;
2188
+ details: string;
2189
+ };
2190
+ };
2191
+ };
2192
+ //#endregion
2193
+ //#region src/v4/types/common.d.ts
2194
+ type Position = (typeof CallSettings.POSITION)[keyof typeof CallSettings.POSITION];
2195
+ type AspectRatio = (typeof CallSettings.ASPECT_RATIO)[keyof typeof CallSettings.ASPECT_RATIO];
2196
+ type ColorRGB = `rgb(${number}, ${number}, ${number})`;
2197
+ type ColorRGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
2198
+ type ColorHEX = `#${string}`;
2199
+ type _ColorValue = ColorRGB | ColorRGBA | ColorHEX;
2200
+ type ColorValue = _ColorValue | Omit<string, _ColorValue>;
2201
+ type _Region = keyof typeof REGION;
2202
+ type Region = _Region | Omit<string, _Region>;
2203
+ type _THost = `rtc-${_Region}.cometchat.io`;
2204
+ type Host = _THost | Omit<string, _THost>;
2205
+ interface AudioMode$1 {
2206
+ isSelected: boolean;
2207
+ mode: string;
2208
+ }
2209
+ //#endregion
2210
+ //#region src/v4/types/callEvents.d.ts
2211
+ interface User$1 {
2212
+ name: string;
2213
+ avatar: string;
2214
+ isVideoMuted: string;
2215
+ isAudioMuted: string;
2216
+ isLocalUser: string;
2217
+ id: string;
2218
+ uid: string;
2219
+ }
2220
+ interface ICallEventsData {
2221
+ readonly onUserJoined: {
2222
+ name: string;
2223
+ avatar: string;
2224
+ joinnedAt: string;
2225
+ uid: string;
2226
+ isAudioMuted: boolean;
2227
+ isLocalUser: boolean;
2228
+ isVideoMuted: boolean;
2229
+ };
2230
+ readonly onUserLeft: {
2231
+ name: string;
2232
+ avatar: string;
2233
+ joinnedAt: string;
2234
+ uid: string;
2235
+ };
2236
+ readonly onUserListUpdated: Array<{
2237
+ name: string;
2238
+ avatar: string;
2239
+ uid: string;
2240
+ }>;
2241
+ readonly onMediaDeviceListUpdated: {
2242
+ videoInputDevices: MediaDeviceInfo[];
2243
+ audioInputDevices: MediaDeviceInfo[];
2244
+ audioOutputDevices: MediaDeviceInfo[];
2245
+ };
2246
+ readonly onRecordingStarted: Partial<User$1 & {
2247
+ recordId: string;
2248
+ }>;
2249
+ readonly onRecordingStopped: Partial<User$1 & {
2250
+ recordId: string;
2251
+ }>;
2252
+ readonly onCallSwitchedToVideo: {
2253
+ sessionId: string;
2254
+ initiator: Partial<User$1>;
2255
+ };
2256
+ readonly onCallEnded: {};
2257
+ readonly onSessionTimeout: () => void;
2258
+ readonly onUserMuted: {
2259
+ name: string;
2260
+ avatar: string;
2261
+ uid: string;
2262
+ };
2263
+ }
2264
+ //#endregion
2265
+ //#region src/v4/models/ErrorModel.d.ts
2266
+ /**
2267
+ *
2268
+ *
2269
+ * @export
2270
+ * @interface ErrorModel
2271
+ */
2272
+ interface ErrorModel {
2273
+ code: string | number;
2274
+ message?: string;
2275
+ details?: object | string;
2276
+ }
2277
+ //#endregion
2278
+ //#region src/v4/models/CometChatCallsException.d.ts
2279
+ declare class CometChatCallsException {
2280
+ code: ErrorModel['code'];
2281
+ message?: ErrorModel['message'];
2282
+ details?: ErrorModel['details'];
2283
+ constructor(errorModel: ErrorModel);
2284
+ }
2285
+ //#endregion
2286
+ //#region src/v4/models/Listner.d.ts
2287
+ interface IOngoingCallListener {
2288
+ onUserJoined: (user: Partial<ICallEventsData['onUserJoined']>) => void;
2289
+ onUserLeft: (user: Partial<ICallEventsData['onUserLeft']>) => void;
2290
+ onUserListUpdated: (userList: Partial<ICallEventsData['onUserListUpdated']>) => void;
2291
+ onMediaDeviceListUpdated: (devices: Partial<ICallEventsData['onMediaDeviceListUpdated']>) => void;
2292
+ onRecordingStarted: (data: Partial<ICallEventsData['onRecordingStarted']>) => void;
2293
+ onRecordingStopped: (data: Partial<ICallEventsData['onRecordingStopped']>) => void;
2294
+ onUserMuted: (test: Partial<ICallEventsData['onUserMuted']>) => void;
2295
+ onCallSwitchedToVideo: (data: Partial<ICallEventsData['onCallSwitchedToVideo']>) => void;
2296
+ onCallEnded: () => void;
2297
+ onSessionTimeout: () => void;
2298
+ onCallEndButtonPressed: () => void;
2299
+ onAudioModesUpdated: (any: any) => void;
2300
+ onError: (error: CometChatCallsException) => void;
2301
+ }
2302
+ declare class OngoingCallListener {
2303
+ /**
2304
+ * This event is triggered when a user joins the call.
2305
+ */
2306
+ onUserJoined?: IOngoingCallListener['onUserJoined'];
2307
+ /**
2308
+ * This event is triggered when a user leaves the call.
2309
+ */
2310
+ onUserLeft?: IOngoingCallListener['onUserLeft'];
2311
+ /**
2312
+ * This event is triggered when the participant list of the call changes.
2313
+ */
2314
+ onUserListUpdated?: IOngoingCallListener['onUserListUpdated'];
2315
+ /**
2316
+ * This event is triggered when an audio mode is updated.
2317
+ */
2318
+ onAudioModesUpdated?: IOngoingCallListener['onAudioModesUpdated'];
2319
+ /**
2320
+ * This event is triggered when the call is ended.
2321
+ */
2322
+ onCallEnded?: IOngoingCallListener['onCallEnded'];
2323
+ /**
2324
+ * This event is triggered when the call is ended due to session timeout.
2325
+ */
2326
+ onSessionTimeout?: IOngoingCallListener['onSessionTimeout'];
2327
+ /**
2328
+ * This event is triggered when end call button is pressed.
2329
+ */
2330
+ onCallEndButtonPressed?: IOngoingCallListener['onCallEndButtonPressed'];
2331
+ /**
2332
+ * This event is triggered when an error occurs.
2333
+ */
2334
+ onError?: IOngoingCallListener['onError'];
2335
+ /**
2336
+ * This event is triggered when someone starts recording the call.
2337
+ */
2338
+ onRecordingStarted?: IOngoingCallListener['onRecordingStarted'];
2339
+ /**
2340
+ * This event is triggered when someone stops recording the call.
2341
+ */
2342
+ onRecordingStopped?: IOngoingCallListener['onRecordingStopped'];
2343
+ /**
2344
+ * This event is triggered when a user is muted.
2345
+ */
2346
+ onUserMuted?: IOngoingCallListener['onUserMuted'];
2347
+ /**
2348
+ * This event is triggered when an audio call is switched to a video call.
2349
+ */
2350
+ onCallSwitchedToVideo?: IOngoingCallListener['onCallSwitchedToVideo'];
2351
+ constructor(eventObj: Partial<IOngoingCallListener>);
2352
+ }
2353
+ //#endregion
2354
+ //#region src/v4/models/CallSettings.d.ts
2355
+ declare class CallSettings {
2356
+ static readonly POSITION_TOP_LEFT = "top-left";
2357
+ static readonly POSITION_TOP_RIGHT = "top-right";
2358
+ static readonly POSITION_BOTTOM_LEFT = "bottom-left";
2359
+ static readonly POSITION_BOTTOM_RIGHT = "bottom-right";
2360
+ static readonly ASPECT_RATIO_DEFAULT = "default";
2361
+ static readonly ASPECT_RATIO_CONTAIN = "contain";
2362
+ static readonly ASPECT_RATIO_COVER = "cover";
2363
+ static readonly POSITION: {
2364
+ readonly TOP_LEFT: "top-left";
2365
+ readonly TOP_RIGHT: "top-right";
2366
+ readonly BOTTOM_LEFT: "bottom-left";
2367
+ readonly BOTTOM_RIGHT: "bottom-right";
2368
+ };
2369
+ static readonly ASPECT_RATIO: {
2370
+ readonly DEFAULT: "default";
2371
+ readonly CONTAIN: "contain";
2372
+ readonly COVER: "cover";
2373
+ };
2374
+ private defaultLayout;
2375
+ private isAudioOnly;
2376
+ private listener;
2377
+ private mode;
2378
+ private ShowEndCallButton;
2379
+ private ShowSwitchCameraButton;
2380
+ private ShowMuteAudioButton;
2381
+ private ShowPauseVideoButton;
2382
+ private ShowAudioModeButton;
2383
+ private StartAudioMuted;
2384
+ private StartVideoMuted;
2385
+ private defaultAudioMode;
2386
+ private ShowSwitchToVideoCallButton;
2387
+ private AvatarMode;
2388
+ private ShowRecordingButton;
2389
+ private idleTimeoutPeriod;
2390
+ private StartRecordingOnCallStart;
2391
+ private MainVideoContainerSetting;
2392
+ private EnableVideoTileClick;
2393
+ private enableDraggableVideoTile;
2394
+ constructor(builder: CallSettingsBuilder);
2395
+ isAudioOnlyCall(): boolean;
2396
+ isDefaultLayoutEnabled(): boolean;
2397
+ getCallEventListener(): OngoingCallListener;
2398
+ getMode(): string;
2399
+ isEndCallButtonEnabled(): boolean;
2400
+ isSwitchCameraButtonEnabled(): boolean;
2401
+ isMuteAudioButtonEnabled(): boolean;
2402
+ isPauseVideoButtonEnabled(): boolean;
2403
+ isAudioModeButtonEnabled(): boolean;
2404
+ getStartWithAudioMuted(): boolean;
2405
+ getStartWithVideoMuted(): boolean;
2406
+ getDefaultAudioMode(): string;
2407
+ isAudioToVideoButtonEnabled(): boolean;
2408
+ getAvatarMode(): string;
2409
+ isRecordingButtonEnabled(): boolean;
2410
+ getIdleTimeoutPeriod(): number;
2411
+ shouldStartRecordingOnCallStart(): boolean;
2412
+ getMainVideoContainerSetting(): MainVideoContainerSetting;
2413
+ isVideoTileClickEnabled(): boolean;
2414
+ isVideoTileDragEnabled(): boolean;
2415
+ }
2416
+ type CallModes = (typeof CallConstants.CALL_MODE)[keyof typeof CallConstants.CALL_MODE];
2417
+ declare class CallSettingsBuilder {
2418
+ /** @private */defaultLayout: boolean;
2419
+ /** @private */
2420
+ isAudioOnly: boolean;
2421
+ /** @private */
2422
+ listener: OngoingCallListener;
2423
+ /** @private */
2424
+ mode: CallModes;
2425
+ /** @private */
2426
+ ShowEndCallButton: boolean;
2427
+ /** @private */
2428
+ ShowSwitchCameraButton: boolean;
2429
+ /** @private */
2430
+ ShowMuteAudioButton: boolean;
2431
+ /** @private */
2432
+ ShowPauseVideoButton: boolean;
2433
+ /** @private */
2434
+ ShowAudioModeButton: boolean;
2435
+ /** @private */
2436
+ StartAudioMuted: boolean;
2437
+ /** @private */
2438
+ StartVideoMuted: boolean;
2439
+ /** @private */
2440
+ defaultAudioMode: (typeof CallConstants.AUDIO_MODE)[keyof typeof CallConstants.AUDIO_MODE];
2441
+ /** @private */
2442
+ ShowSwitchToVideoCallButton: boolean;
2443
+ /** @private */
2444
+ AvatarMode: string;
2445
+ /** @private */
2446
+ ShowRecordingButton: boolean;
2447
+ /** @private */
2448
+ idleTimeoutPeriod: number;
2449
+ /** @private */
2450
+ StartRecordingOnCallStart: boolean;
2451
+ /** @private */
2452
+ MainVideoContainerSetting: MainVideoContainerSetting;
2453
+ /** @private */
2454
+ EnableVideoTileClick: boolean;
2455
+ /** @private */
2456
+ enableDraggableVideoTile: boolean;
2457
+ /**
2458
+ *
2459
+ * @param {boolean} defaultLayout
2460
+ * This methods shows/hides the default button layout.
2461
+ * If set to true the default button layout will be shown.
2462
+ * If set to false the default button layout will be hidden.
2463
+ * Default value is true
2464
+ * @returns
2465
+ */
2466
+ enableDefaultLayout(defaultLayout: boolean): this;
2467
+ /**
2468
+ *
2469
+ * @param {boolean} isAudioOnly
2470
+ * This methods sets the type(audio/video) of the call.
2471
+ * If set to true, the call will be strictly an audio call.
2472
+ * If set to false, the call will be an audio-video call.
2473
+ * Default value is false
2474
+ * @returns
2475
+ */
2476
+ setIsAudioOnlyCall(isAudioOnly: boolean): this;
2477
+ /**
2478
+ *
2479
+ * @param {OngoingCallListener} listener
2480
+ * This method sets the call event listener.
2481
+ * @returns
2482
+ */
2483
+ setCallEventListener(listener: OngoingCallListener): this;
2484
+ /**
2485
+ *
2486
+ * @param {string} mode
2487
+ * This method sets the mode of the call.
2488
+ * @returns
2489
+ */
2490
+ setMode(mode: CallModes): this;
2491
+ /**
2492
+ *
2493
+ * @param {boolean} showEndCallButton
2494
+ * This method shows/hides the end call button.
2495
+ * If set to true it will display the end call button.
2496
+ * If set to false it will hide the end call button.
2497
+ * Default value is true.
2498
+ * @returns
2499
+ */
2500
+ showEndCallButton(showEndCallButton?: boolean): this;
2501
+ /**
2502
+ *
2503
+ * @param {boolean} showSwitchCameraButton
2504
+ * This method shows/hides the switch camera button.
2505
+ * If set to true it will display the switch camera button.
2506
+ * If set to false it will hide the switch camera button.
2507
+ * Note: For video call it remains hidden regardless of its value.
2508
+ * Default value is true.
2509
+ * @returns
2510
+ */
2511
+ showSwitchCameraButton(showSwitchCameraButton?: boolean): this;
2512
+ /**
2513
+ *
2514
+ * @param {boolean} showMuteAudioButton
2515
+ * This method shows/hides the mute audio button.
2516
+ * If set to true it will display the mute audio button.
2517
+ * If set to false it will hide the mute audio button.
2518
+ * Default value is true.
2519
+ * @returns
2520
+ */
2521
+ showMuteAudioButton(showMuteAudioButton?: boolean): this;
2522
+ /**
2523
+ *
2524
+ * @param {boolean} showPauseVideoButton
2525
+ * This method shows/hides the pause video button.
2526
+ * If set to true it will display the pause video button.
2527
+ * If set to false it will hide the pause video button.
2528
+ * Note: For video call it remains hidden regardless of its value.
2529
+ * Default value is true.
2530
+ * @returns
2531
+ */
2532
+ showPauseVideoButton(showPauseVideoButton?: boolean): this;
2533
+ /**
2534
+ *
2535
+ * @param {boolean} showAudioModeButton
2536
+ * This method shows/hides the audio mode button.
2537
+ * If set to true it will display the audio mode button.
2538
+ * If set to false it will hide the audio mode button.
2539
+ * Default value is true.
2540
+ * @returns
2541
+ */
2542
+ showAudioModeButton(showAudioModeButton?: boolean): this;
2543
+ /**
2544
+ *
2545
+ * @param {boolean} audioMuted
2546
+ * This method allows the call to be started with audio muted.
2547
+ * If set to true, the call will start with audio muted.
2548
+ * Default value is false.
2549
+ * @returns
2550
+ */
2551
+ startWithAudioMuted(audioMuted?: boolean): this;
2552
+ /**
2553
+ *
2554
+ * @param {boolean} videoMuted
2555
+ * This method allows the call to be started with video muted.
2556
+ * If set to true, the call will start with video muted.
2557
+ * Note: This method has no effect for audio calls.
2558
+ * Default value is false.
2559
+ * @returns
2560
+ */
2561
+ startWithVideoMuted(videoMuted?: boolean): this;
2562
+ /**
2563
+ *
2564
+ * @param {string} audioMode
2565
+ * This method will set the default audio mode.
2566
+ * @returns
2567
+ */
2568
+ setDefaultAudioMode(audioMode: (typeof CallConstants.AUDIO_MODE)[keyof typeof CallConstants.AUDIO_MODE]): this;
2569
+ /**
2570
+ *
2571
+ * @param {boolean} showAudioToVideoSwitchButton
2572
+ * This method is obsolete and doesn't have any effect.
2573
+ * @deprecated
2574
+ * @returns
2575
+ */
2576
+ showSwitchToVideoCallButton(showAudioToVideoSwitchButton?: boolean): this;
2577
+ /**
2578
+ *
2579
+ * @param {string} mode
2580
+ * This method is obsolete and doesn't have any effect.
2581
+ * @deprecated
2582
+ * @returns
2583
+ */
2584
+ setAvatarMode(mode?: 'circle' | 'square' | 'fullscreen'): this;
2585
+ /**
2586
+ *
2587
+ * @param {boolean} showRecordingButton
2588
+ * This method shows/hides the recording button.
2589
+ * If set to true it will display the recording button.
2590
+ * If set to false it will hide the recording button.
2591
+ * Default value is false.
2592
+ * @returns
2593
+ */
2594
+ showRecordingButton(showRecordingButton?: boolean): this;
2595
+ /**
2596
+ *
2597
+ * @param {number} idleTimeoutPeriod
2598
+ * This method sets the idle timeout period for the call.
2599
+ * If set and you are the only one in call, the call will end
2600
+ * after the idle timeout period, giving you the option to
2601
+ * extend the call 60 seconds before the call ends.
2602
+ * Default value is 180 seconds.
2603
+ * @returns
2604
+ */
2605
+ setIdleTimeoutPeriod(idleTimeoutPeriod?: number): this;
2606
+ /**
2607
+ *
2608
+ * @param {boolean} startRecordingOnCallStart
2609
+ * This method starts the recording as soon as the call start.
2610
+ * If set to true it will start the recording as soon as the call start.
2611
+ * Default value is false.
2612
+ * @returns
2613
+ */
2614
+ startRecordingOnCallStart(startRecordingOnCallStart?: boolean): this;
2615
+ /**
2616
+ *
2617
+ * This method is obsolete and doesn't have any effect.
2618
+ * @param {any} ...args
2619
+ * @deprecated
2620
+ * @returns
2621
+ */
2622
+ setMainVideoContainerSetting(...args: any[]): this;
2623
+ /**
2624
+ *
2625
+ * @param {boolean} enableVideoTileClick
2626
+ * This method can be used to enable/disable video tile click functionality in Spotlight mode.
2627
+ * By default the video tile is clickable.
2628
+ * @returns
2629
+ */
2630
+ enableVideoTileClick(enableVideoTileClick?: boolean): this;
2631
+ /**
2632
+ *
2633
+ * @param {boolean} enableVideoTileDrag
2634
+ * This method can be used to enable/disable video tile drag functionality in Spotlight mode.
2635
+ * By default the video tile is draggable.
2636
+ * @returns
2637
+ */
2638
+ enableVideoTileDrag(enableVideoTileDrag?: boolean): this;
2639
+ /**
2640
+ * This method will return an object of the CallSettings class.
2641
+ * @returns {CallSettings}
2642
+ */
2643
+ build(): CallSettings;
2644
+ }
2645
+ declare class MainVideoContainerSetting {
2646
+ private videoFit;
2647
+ private zoomButton;
2648
+ private fullScreenButton;
2649
+ private userListButton;
2650
+ private nameLabel;
2651
+ /**
2652
+ *
2653
+ * @param {string} mainVideoAspectRatio
2654
+ * This method is used to set the aspect ratio of main video.
2655
+ * The default value is `contain`.
2656
+ * @returns
2657
+ */
2658
+ setMainVideoAspectRatio(mainVideoAspectRatio?: AspectRatio): void;
2659
+ /**
2660
+ *
2661
+ * @param {Position} position
2662
+ * @param {boolean} visibility
2663
+ * This method is used to set the position & visibility parameter of the full screen button.
2664
+ * By default the full screen button is visible in the `bottom-right` position.
2665
+ * @returns
2666
+ */
2667
+ setFullScreenButtonParams(position?: Position, visibility?: boolean): void;
2668
+ /**
2669
+ *
2670
+ * @param {Position} position
2671
+ * @param {boolean} visibility
2672
+ * @param {string} backgroundColor
2673
+ * This method is used to set the position, visibility & background color of the name label.
2674
+ * By default the name label is visible in the `bottom-left` position with a background-color `#333333`
2675
+ * @returns
2676
+ */
2677
+ setNameLabelParams(position?: Position, visibility?: boolean, backgroundColor?: string): void;
2678
+ /**
2679
+ *
2680
+ * @param {Position} position
2681
+ * @param {boolean} visibility
2682
+ * This method is used to set the position & visibility parameter of the zoom button.
2683
+ * By default the zoom button is visible in the `bottom-right` position.
2684
+ * @returns
2685
+ */
2686
+ setZoomButtonParams(position?: Position, visibility?: boolean): void;
2687
+ /**
2688
+ *
2689
+ * @param {Position} position
2690
+ * @param {boolean} visibility
2691
+ * This method is used to set the position & visibility parameter of the user list button.
2692
+ * By default the user list button is visible in the `bottom-right` position.
2693
+ * @returns
2694
+ */
2695
+ setUserListButtonParams(position?: Position, visibility?: boolean): void;
2696
+ }
2697
+ //#endregion
2698
+ //#region src/AppReactNativeSDK.d.ts
2699
+ interface AppProps extends Partial<ConfigStateMobile & ConfigStateBoth> {
2700
+ callToken: string;
2701
+ /**
2702
+ * @deprecated Use `sessionSettings` instead.
2703
+ */
2704
+ callSettings?: CallSettings | Partial<ConfigStateMobile & ConfigStateBoth>;
2705
+ sessionSettings?: CallSettings | Partial<ConfigStateMobile & ConfigStateBoth>;
2706
+ }
2707
+ declare function AppReactNativeSDK(props: AppProps): React.JSX.Element;
2708
+ //#endregion
2709
+ //#region src/v4/models/ListnerHandler.d.ts
2710
+ interface IMultiOngoingCallListener extends OngoingCallListener {
2711
+ _name: string;
2712
+ }
2713
+ declare class ListenerHandlers {
2714
+ static callHandlers?: IMultiOngoingCallListener[];
2715
+ static addCallEventListener(name: string, callListener: OngoingCallListener): void;
2716
+ static removeCallEventListener(handler: string): void;
2717
+ }
2718
+ //#endregion
2719
+ //#region src/v4/models/CallAppSettings.d.ts
2720
+ declare class CallAppSettings$1 {
2721
+ private appId;
2722
+ private region;
2723
+ private host?;
2724
+ constructor(builder?: CallAppSettingsBuilder);
2725
+ setAppId(appId: string): this;
2726
+ setRegion(region: Region): this;
2727
+ setHost(host: Host): this;
2728
+ getAppId(): string;
2729
+ getRegion(): Region;
2730
+ getHost(): Host | undefined;
2731
+ }
2732
+ declare class CallAppSettingsBuilder {
2733
+ appId: string;
2734
+ region: Region;
2735
+ host?: Host;
2736
+ /**
2737
+ * Method to set appId of the app.
2738
+ * @param {string} appId appId of the app
2739
+ * @returns
2740
+ */
2741
+ setAppId(appId: string): this;
2742
+ /**
2743
+ * Method to set region of the app.
2744
+ * @param {Region} region region of the app.
2745
+ * @returns {void}
2746
+ */
2747
+ setRegion(region: Region): this;
2748
+ /**
2749
+ * Method to set host/domain of the app.
2750
+ * @param {string} host host/domain of the app.
2751
+ * @returns {void}
2752
+ */
2753
+ setHost(host: Host): this;
2754
+ /**
2755
+ * This method will return an object of the CallsAppSettings class.
2756
+ * @returns {CallAppSettings} Returns the CallsAppSettings instance
2757
+ */
2758
+ build(): CallAppSettings$1;
2759
+ }
2760
+ declare function validateCallAppSettings(appSettings: CallAppSettings$1): Promise<true>;
2761
+ //#endregion
2762
+ //#region src/v4/models/CallGroup.d.ts
2763
+ declare class CallGroup {
2764
+ protected guid: string;
2765
+ protected name: string;
2766
+ protected icon: string;
2767
+ constructor(object: any);
2768
+ getGuid(): string;
2769
+ setGuid(guid: string): void;
2770
+ getName(): string;
2771
+ setName(name: string): void;
2772
+ getIcon(): string;
2773
+ setIcon(icon: string): void;
2774
+ toString(): string;
2775
+ static getGroupFromJson(object: any): CallGroup;
2776
+ }
2777
+ //#endregion
2778
+ //#region src/v4/models/CallUser.d.ts
2779
+ declare class CallUser {
2780
+ protected uid: string;
2781
+ protected name: string;
2782
+ protected avatar: string;
2783
+ constructor(object: any);
2784
+ getUid(): string;
2785
+ setUid(uid: string): void;
2786
+ getName(): string;
2787
+ setName(name: string): void;
2788
+ getAvatar(): string;
2789
+ setAvatar(avatar: string): void;
2790
+ toString(): string;
2791
+ static getUserFromJson(object: any): CallUser;
2792
+ }
2793
+ //#endregion
2794
+ //#region src/v4/models/Participant.d.ts
2795
+ /**
2796
+ * Represents a participant in a call.
2797
+ */
2798
+ declare class Participant {
2799
+ /**
2800
+ * The unique identifier of the participant.
2801
+ */
2802
+ private uid;
2803
+ /**
2804
+ * The name of the participant.
2805
+ */
2806
+ private name;
2807
+ /**
2808
+ * The avatar of the participant.
2809
+ */
2810
+ private avatar;
2811
+ /**
2812
+ * The total audio minutes of the participant.
2813
+ */
2814
+ private totalAudioMinutes;
2815
+ /**
2816
+ * The total video minutes of the participant.
2817
+ */
2818
+ private totalVideoMinutes;
2819
+ /**
2820
+ * The total duration in minutes of the participant.
2821
+ */
2822
+ private totalDurationInMinutes;
2823
+ /**
2824
+ * The device ID of the participant.
2825
+ */
2826
+ private deviceID;
2827
+ /**
2828
+ * Whether the participant has joined the call or not.
2829
+ */
2830
+ private hasJoined;
2831
+ /**
2832
+ * The timestamp when the participant joined the call.
2833
+ */
2834
+ private joinedAt;
2835
+ /**
2836
+ * The timestamp when the participant left the call.
2837
+ */
2838
+ private leftAt;
2839
+ /**
2840
+ * The media ID of the participant.
2841
+ */
2842
+ private mid;
2843
+ /**
2844
+ * The state of the participant.
2845
+ */
2846
+ private state;
2847
+ /**
2848
+ * Creates a new instance of Participant.
2849
+ * @param object - The object containing the participant data.
2850
+ */
2851
+ constructor(object: any);
2852
+ /**
2853
+ * Gets the unique identifier of the participant.
2854
+ * @returns The unique identifier of the participant.
2855
+ */
2856
+ getUid(): string;
2857
+ /**
2858
+ * Sets the unique identifier of the participant.
2859
+ * @param value - The unique identifier of the participant.
2860
+ */
2861
+ setUid(value: string): void;
2862
+ /**
2863
+ * Gets the name of the participant.
2864
+ * @returns The name of the participant.
2865
+ */
2866
+ getName(): string;
2867
+ /**
2868
+ * Sets the name of the participant.
2869
+ * @param value - The name of the participant.
2870
+ */
2871
+ setName(value: string): void;
2872
+ /**
2873
+ * Gets the avatar of the participant.
2874
+ * @returns The avatar of the participant.
2875
+ */
2876
+ getAvatar(): string;
2877
+ /**
2878
+ * Sets the avatar of the participant.
2879
+ * @param value - The avatar of the participant.
2880
+ */
2881
+ setAvatar(value: string): void;
2882
+ /**
2883
+ * Gets the total audio minutes of the participant.
2884
+ * @returns The total audio minutes of the participant.
2885
+ */
2886
+ getTotalAudioMinutes(): number;
2887
+ /**
2888
+ * Sets the total audio minutes of the participant.
2889
+ * @param value - The total audio minutes of the participant.
2890
+ */
2891
+ setTotalAudioMinutes(value: number): void;
2892
+ /**
2893
+ * Gets the total video minutes of the participant.
2894
+ * @returns The total video minutes of the participant.
2895
+ */
2896
+ getTotalVideoMinutes(): number;
2897
+ /**
2898
+ * Sets the total video minutes of the participant.
2899
+ * @param value - The total video minutes of the participant.
2900
+ */
2901
+ setTotalVideoMinutes(value: number): void;
2902
+ /**
2903
+ * Gets the total duration in minutes of the participant.
2904
+ * @returns The total duration in minutes of the participant.
2905
+ */
2906
+ getTotalDurationInMinutes(): number;
2907
+ /**
2908
+ * Sets the total duration in minutes of the participant.
2909
+ * @param value - The total duration in minutes of the participant.
2910
+ */
2911
+ setTotalDurationInMinutes(value: number): void;
2912
+ /**
2913
+ * Gets the device ID of the participant.
2914
+ * @returns The device ID of the participant.
2915
+ */
2916
+ getDeviceID(): string;
2917
+ /**
2918
+ * Sets the device ID of the participant.
2919
+ * @param value - The device ID of the participant.
2920
+ */
2921
+ setDeviceID(value: string): void;
2922
+ /**
2923
+ * Gets whether the participant has joined the call or not.
2924
+ * @returns Whether the participant has joined the call or not.
2925
+ */
2926
+ getHasJoined(): boolean;
2927
+ /**
2928
+ * Sets whether the participant has joined the call or not.
2929
+ * @param value - Whether the participant has joined the call or not.
2930
+ */
2931
+ setHasJoined(value: boolean): void;
2932
+ /**
2933
+ * Gets the timestamp when the participant joined the call.
2934
+ * @returns The timestamp when the participant joined the call.
2935
+ */
2936
+ getJoinedAt(): number;
2937
+ /**
2938
+ * Sets the timestamp when the participant joined the call.
2939
+ * @param value - The timestamp when the participant joined the call.
2940
+ */
2941
+ setJoinedAt(value: number): void;
2942
+ /**
2943
+ * Gets the timestamp when the participant left the call.
2944
+ * @returns The timestamp when the participant left the call.
2945
+ */
2946
+ getLeftAt(): number;
2947
+ /**
2948
+ * Sets the timestamp when the participant left the call.
2949
+ * @param value - The timestamp when the participant left the call.
2950
+ */
2951
+ setLeftAt(value: number): void;
2952
+ /**
2953
+ * Gets the media ID of the participant.
2954
+ * @returns The media ID of the participant.
2955
+ */
2956
+ getMid(): string;
2957
+ /**
2958
+ * Sets the media ID of the participant.
2959
+ * @param value - The media ID of the participant.
2960
+ */
2961
+ setMid(value: string): void;
2962
+ /**
2963
+ * Gets the state of the participant.
2964
+ * @returns The state of the participant.
2965
+ */
2966
+ getState(): string;
2967
+ /**
2968
+ * Sets the state of the participant.
2969
+ * @param value - The state of the participant.
2970
+ */
2971
+ setState(value: string): void;
2972
+ /**
2973
+ * Creates a new instance of Participant from a JSON object.
2974
+ * @param object - The JSON object containing the participant data.
2975
+ * @returns A new instance of Participant.
2976
+ */
2977
+ static getParticipantFromJson(object: any): Participant;
2978
+ }
2979
+ //#endregion
2980
+ //#region src/v4/models/Recording.d.ts
2981
+ /**
2982
+ * Represents a recording object.
2983
+ */
2984
+ declare class Recording {
2985
+ /**
2986
+ * The recording ID.
2987
+ */
2988
+ private rid;
2989
+ /**
2990
+ * The URL of the recording.
2991
+ */
2992
+ private recording_url;
2993
+ /**
2994
+ * The start time of the recording.
2995
+ */
2996
+ private startTime;
2997
+ /**
2998
+ * The end time of the recording.
2999
+ */
3000
+ private endTime;
3001
+ /**
3002
+ * The duration of the recording.
3003
+ */
3004
+ private duration;
3005
+ /**
3006
+ * Creates a new instance of the Recording class.
3007
+ * @param data - The data to initialize the recording object.
3008
+ */
3009
+ constructor(data: any);
3010
+ /**
3011
+ * Gets the recording ID.
3012
+ * @returns The recording ID.
3013
+ */
3014
+ getRid(): string;
3015
+ /**
3016
+ * Sets the recording ID.
3017
+ * @param value - The recording ID to set.
3018
+ */
3019
+ setRid(value: string): void;
3020
+ /**
3021
+ * Gets the recording URL.
3022
+ * @returns The recording URL.
3023
+ */
3024
+ getRecordingURL(): string;
3025
+ /**
3026
+ * Sets the recording URL.
3027
+ * @param value - The recording URL to set.
3028
+ */
3029
+ setRecordingURL(value: string): void;
3030
+ /**
3031
+ * Gets the start time of the recording.
3032
+ * @returns The start time of the recording.
3033
+ */
3034
+ getStartTime(): number;
3035
+ /**
3036
+ * Sets the start time of the recording.
3037
+ * @param value - The start time of the recording to set.
3038
+ */
3039
+ setStartTime(value: number): void;
3040
+ /**
3041
+ * Gets the end time of the recording.
3042
+ * @returns The end time of the recording.
3043
+ */
3044
+ getEndTime(): number;
3045
+ /**
3046
+ * Sets the end time of the recording.
3047
+ * @param value - The end time of the recording to set.
3048
+ */
3049
+ setEndTime(value: number): void;
3050
+ /**
3051
+ * Gets the duration of the recording.
3052
+ * @returns The duration of the recording.
3053
+ */
3054
+ getDuration(): number;
3055
+ /**
3056
+ * Sets the duration of the recording.
3057
+ * @param value - The duration of the recording to set.
3058
+ */
3059
+ setDuration(value: number): void;
3060
+ /**
3061
+ * Creates a new Recording object from the given JSON data.
3062
+ * @param data - The JSON data to create the Recording object from.
3063
+ * @returns A new Recording object.
3064
+ */
3065
+ static getRecordingFromJson(data: any): Recording;
3066
+ }
3067
+ //#endregion
3068
+ //#region src/v4/models/CallLog.d.ts
3069
+ /**
3070
+ * Represents a call log.
3071
+ */
3072
+ declare class CallLog {
3073
+ /**
3074
+ * The session ID of the call log.
3075
+ */
3076
+ private sessionId;
3077
+ /**
3078
+ * The total audio minutes of the call log.
3079
+ */
3080
+ private totalAudioMinutes;
3081
+ /**
3082
+ * The total video minutes of the call log.
3083
+ */
3084
+ private totalVideoMinutes;
3085
+ /**
3086
+ * The total duration of the call log.
3087
+ */
3088
+ private totalDuration;
3089
+ /**
3090
+ * Whether the call log has a recording.
3091
+ */
3092
+ private hasRecording;
3093
+ /**
3094
+ * The time the call was initiated at.
3095
+ */
3096
+ private initiatedAt;
3097
+ /**
3098
+ * The call category of the call log.
3099
+ */
3100
+ private callCategory;
3101
+ /**
3102
+ * @type {CallUser}
3103
+ * The initiator of the call log.
3104
+ */
3105
+ private initiator;
3106
+ /**
3107
+ * @type {CallUser | CallGroup}
3108
+ * The receiver of the call log.
3109
+ */
3110
+ private receiver;
3111
+ /**
3112
+ * The receiver type of the call log.
3113
+ */
3114
+ private receiverType;
3115
+ /**
3116
+ * The status of the call log.
3117
+ */
3118
+ private status;
3119
+ /**
3120
+ * The total duration in minutes of the call log.
3121
+ */
3122
+ private totalDurationInMinutes;
3123
+ /**
3124
+ * The total number of participants in the call log.
3125
+ */
3126
+ private totalParticipants;
3127
+ /**
3128
+ * The type of the call log.
3129
+ */
3130
+ private type;
3131
+ /**
3132
+ * The message ID of the call log.
3133
+ */
3134
+ private mid;
3135
+ /**
3136
+ * The time the call ended at.
3137
+ */
3138
+ private endedAt;
3139
+ /**
3140
+ * @type {Participant[]}
3141
+ * The participants of the call log.
3142
+ */
3143
+ private participants;
3144
+ /**
3145
+ * @type {Recording[]}
3146
+ * The recordings of the call log.
3147
+ */
3148
+ private recordings;
3149
+ /**
3150
+ * Creates a new instance of CallLog.
3151
+ * @param data - The data to initialize the call log with.
3152
+ */
3153
+ constructor(data: any);
3154
+ /**
3155
+ * Gets the session ID of the call log.
3156
+ * @returns The session ID of the call log.
3157
+ */
3158
+ getSessionID(): string;
3159
+ /**
3160
+ * Sets the session ID of the call log.
3161
+ * @param value - The session ID to set.
3162
+ */
3163
+ setSessionID(value: string): void;
3164
+ /**
3165
+ * Gets the total audio minutes of the call log.
3166
+ * @returns The total audio minutes of the call log.
3167
+ */
3168
+ getTotalAudioMinutes(): number;
3169
+ /**
3170
+ * Sets the total audio minutes of the call log.
3171
+ * @param value - The total audio minutes to set.
3172
+ */
3173
+ setTotalAudioMinutes(value: number): void;
3174
+ /**
3175
+ * Gets the total video minutes of the call log.
3176
+ * @returns The total video minutes of the call log.
3177
+ */
3178
+ getTotalVideoMinutes(): number;
3179
+ /**
3180
+ * Sets the total video minutes of the call log.
3181
+ * @param value - The total video minutes to set.
3182
+ */
3183
+ setTotalVideoMinutes(value: number): void;
3184
+ /**
3185
+ * Gets the total duration of the call log.
3186
+ * @returns The total duration of the call log.
3187
+ */
3188
+ getTotalDuration(): string;
3189
+ /**
3190
+ * Sets the total duration of the call log.
3191
+ * @param value - The total duration to set.
3192
+ */
3193
+ setTotalDuration(value: string): void;
3194
+ /**
3195
+ * Gets whether the call log has a recording.
3196
+ * @returns Whether the call log has a recording.
3197
+ */
3198
+ getHasRecording(): boolean;
3199
+ /**
3200
+ * Sets whether the call log has a recording.
3201
+ * @param value - Whether the call log has a recording.
3202
+ */
3203
+ setHasRecording(value: boolean): void;
3204
+ /**
3205
+ * Gets the time the call was initiated at.
3206
+ * @returns The time the call was initiated at.
3207
+ */
3208
+ getInitiatedAt(): number;
3209
+ /**
3210
+ * Sets the time the call was initiated at.
3211
+ * @param value - The time the call was initiated at.
3212
+ */
3213
+ setInitiatedAt(value: number): void;
3214
+ /**
3215
+ * Gets the call category of the call log.
3216
+ * @returns The call category of the call log.
3217
+ */
3218
+ getCallCategory(): string;
3219
+ /**
3220
+ * Sets the call category of the call log.
3221
+ * @param value - The call category to set.
3222
+ */
3223
+ setCallCategory(value: string): void;
3224
+ /**
3225
+ * Gets the initiator of the call log.
3226
+ * @returns The initiator of the call log.
3227
+ */
3228
+ getInitiator(): CallUser;
3229
+ /**
3230
+ * Sets the initiator of the call log.
3231
+ * @param value - The initiator to set.
3232
+ */
3233
+ setInitiator(value: CallUser): void;
3234
+ /**
3235
+ * Gets the receiver of the call log.
3236
+ * @returns The receiver of the call log.
3237
+ */
3238
+ getReceiver(): CallUser | CallGroup;
3239
+ /**
3240
+ * Sets the receiver of the call log.
3241
+ * @param value - The receiver to set.
3242
+ */
3243
+ setReceiver(value: CallUser | CallGroup): void;
3244
+ /**
3245
+ * Gets the receiver type of the call log.
3246
+ * @returns The receiver type of the call log.
3247
+ */
3248
+ getReceiverType(): string;
3249
+ /**
3250
+ * Sets the receiver type of the call log.
3251
+ * @param value - The receiver type to set.
3252
+ */
3253
+ setReceiverType(value: string): void;
3254
+ /**
3255
+ * Gets the status of the call log.
3256
+ * @returns The status of the call log.
3257
+ */
3258
+ getStatus(): string;
3259
+ /**
3260
+ * Sets the status of the call log.
3261
+ * @param value - The status to set.
3262
+ */
3263
+ setStatus(value: string): void;
3264
+ /**
3265
+ * Gets the total duration in minutes of the call log.
3266
+ * @returns The total duration in minutes of the call log.
3267
+ */
3268
+ getTotalDurationInMinutes(): number;
3269
+ /**
3270
+ * Sets the total duration in minutes of the call log.
3271
+ * @param value - The total duration in minutes to set.
3272
+ */
3273
+ setTotalDurationInMinutes(value: number): void;
3274
+ /**
3275
+ * Gets the total number of participants in the call log.
3276
+ * @returns The total number of participants in the call log.
3277
+ */
3278
+ getTotalParticipants(): number;
3279
+ /**
3280
+ * Sets the total number of participants in the call log.
3281
+ * @param value - The total number of participants to set.
3282
+ */
3283
+ setTotalParticipants(value: number): void;
3284
+ /**
3285
+ * Gets the type of the call log.
3286
+ * @returns The type of the call log.
3287
+ */
3288
+ getType(): string;
3289
+ /**
3290
+ * Sets the type of the call log.
3291
+ * @param value - The type to set.
3292
+ */
3293
+ setType(value: string): void;
3294
+ /**
3295
+ * Gets the message ID of the call log.
3296
+ * @returns The message ID of the call log.
3297
+ */
3298
+ getMid(): string;
3299
+ /**
3300
+ * Sets the message ID of the call log.
3301
+ * @param value - The message ID to set.
3302
+ */
3303
+ setMid(value: string): void;
3304
+ /**
3305
+ * Gets the time the call ended at.
3306
+ * @returns The time the call ended at.
3307
+ */
3308
+ getEndedAt(): number;
3309
+ /**
3310
+ * Sets the time the call ended at.
3311
+ * @param value - The time the call ended at.
3312
+ */
3313
+ setEndedAt(value: number): void;
3314
+ /**
3315
+ * Gets the participants of the call log.
3316
+ * @returns The participants of the call log.
3317
+ */
3318
+ getParticipants(): Participant[];
3319
+ /**
3320
+ * Sets the participants of the call log.
3321
+ * @param value - The participants to set.
3322
+ */
3323
+ setParticipants(value: Participant[]): void;
3324
+ /**
3325
+ * Gets the recordings of the call log.
3326
+ * @returns The recordings of the call log.
3327
+ */
3328
+ getRecordings(): Recording[];
3329
+ /**
3330
+ * Sets the recordings of the call log.
3331
+ * @param value - The recordings to set.
3332
+ */
3333
+ setRecordings(value: Recording[]): void;
3334
+ /**
3335
+ * Creates a new instance of CallLog from JSON data.
3336
+ * @param data - The JSON data to create the call log from.
3337
+ * @returns A new instance of CallLog created from the JSON data.
3338
+ */
3339
+ static callLogFromJson(data: any): CallLog;
3340
+ }
3341
+ //#endregion
3342
+ //#region src/v4/models/CometChatCallLogs.d.ts
3343
+ /**
3344
+ * Represents a request to fetch call logs.
3345
+ */
3346
+ declare class CallLogRequest {
3347
+ /**
3348
+ * The maximum number of call logs to fetch.
3349
+ */
3350
+ private limit;
3351
+ /**
3352
+ * The total number of pages of call logs.
3353
+ */
3354
+ private totalPages;
3355
+ /**
3356
+ * The current page of call logs.
3357
+ */
3358
+ private currentPage;
3359
+ /**
3360
+ * The type of call to filter by.
3361
+ */
3362
+ private callType;
3363
+ /**
3364
+ * The status of call to filter by.
3365
+ */
3366
+ private callStatus;
3367
+ /**
3368
+ * Whether the call has a recording or not.
3369
+ */
3370
+ private hasRecording;
3371
+ /**
3372
+ * The category of call to filter by.
3373
+ */
3374
+ private callCategory;
3375
+ /**
3376
+ * The direction of call to filter by.
3377
+ */
3378
+ private callDirection;
3379
+ /**
3380
+ * The user ID to filter by.
3381
+ */
3382
+ private uid;
3383
+ /**
3384
+ * The group ID to filter by.
3385
+ */
3386
+ private guid;
3387
+ /**
3388
+ * The authentication token to use for the API call.
3389
+ */
3390
+ private authToken;
3391
+ /**
3392
+ * Whether an API call is currently in progress.
3393
+ */
3394
+ private inProgress;
3395
+ /**
3396
+ * The timestamp of the last update.
3397
+ */
3398
+ private updatedAt;
3399
+ /**
3400
+ * Whether to only fetch updates.
3401
+ */
3402
+ private onlyUpdates;
3403
+ /**
3404
+ * The timestamp of the call log.
3405
+ */
3406
+ private timestamp?;
3407
+ /**
3408
+ * The ID of the call log.
3409
+ */
3410
+ private id?;
3411
+ /**
3412
+ * The affix of the call log.
3413
+ */
3414
+ private affix;
3415
+ /**
3416
+ * The last affix of the call log.
3417
+ */
3418
+ private lastAffix;
3419
+ /**
3420
+ * The current method of the call log.
3421
+ */
3422
+ private currentMethod;
3423
+ /**
3424
+ * The pagination metadata of the call log.
3425
+ */
3426
+ private paginationMeta;
3427
+ /**
3428
+ * Creates a new CallLogRequest instance.
3429
+ * @param builder The builder object to use for constructing the request.
3430
+ */
3431
+ constructor(builder: CallLogRequestBuilder);
3432
+ /**
3433
+ * Fetches the next page of call logs.
3434
+ * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
3435
+ */
3436
+ fetchNext(): Promise<CallLog[]>;
3437
+ /**
3438
+ * Fetches the previous page of call logs.
3439
+ * @returns A promise that resolves to an array of CallLog objects, or an empty array if there are no previous pages, or rejects with a CometChatCallsException if there was an error..
3440
+ */
3441
+ fetchPrevious(): Promise<CallLog[] | []>;
3442
+ /**
3443
+ * Makes an API call to fetch call logs.
3444
+ * @param isFetchNext Whether to fetch the next page of call logs.
3445
+ * @returns A promise that resolves to an array of CallLog objects, or rejects with a CometChatCallsException if there was an error.
3446
+ */
3447
+ private makeAPICall;
3448
+ /**
3449
+ * Gets the filter parameters for the API call.
3450
+ * @param isNext Whether to fetch the next page of call logs.
3451
+ * @returns The filter parameters object.
3452
+ */
3453
+ private getParams;
3454
+ /**
3455
+ * Parses the API response and returns an array of CallLog objects.
3456
+ * @param response The API response string.
3457
+ * @returns An array of CallLog objects.
3458
+ */
3459
+ private getCallLogList;
3460
+ }
3461
+ /**
3462
+ * A builder class for creating a request to fetch call logs.
3463
+ */
3464
+ declare class CallLogRequestBuilder {
3465
+ limit: number;
3466
+ callType: string;
3467
+ callStatus: string;
3468
+ hasRecording: boolean;
3469
+ callCategory: string;
3470
+ callDirection: string;
3471
+ uid: string;
3472
+ guid: string;
3473
+ authToken: string;
3474
+ /**
3475
+ * Sets the limit of call logs to be fetched.
3476
+ * @param limit - The number of call logs to be fetched.
3477
+ * @returns The CallLogRequestBuilder object.
3478
+ */
3479
+ setLimit(limit: number): this;
3480
+ /**
3481
+ * Sets the type of call to be fetched.
3482
+ * @param callType - The type of call to be fetched. Can be either 'video' or 'audio'.
3483
+ * @returns The CallLogRequestBuilder object.
3484
+ */
3485
+ setCallType(callType: 'video' | 'audio'): this;
3486
+ /**
3487
+ * Sets the status of call to be fetched.
3488
+ * @param callStatus - The status of call to be fetched. Can be either 'ongoing', 'busy', 'rejected', 'cancelled', 'ended' or 'missed'.
3489
+ * @returns The CallLogRequestBuilder object.
3490
+ */
3491
+ setCallStatus(callStatus: 'ongoing' | 'busy' | 'rejected' | 'cancelled' | 'ended' | 'missed'): this;
3492
+ /**
3493
+ * Sets whether the call has recording or not.
3494
+ * @param hasRecording - Whether the call has recording or not.
3495
+ * @returns The CallLogRequestBuilder object.
3496
+ */
3497
+ setHasRecording(hasRecording: boolean): this;
3498
+ /**
3499
+ * Sets the category of call to be fetched.
3500
+ * @param callCategory - The category of call to be fetched. Can be either 'call' or 'meet'.
3501
+ * @returns The CallLogRequestBuilder object.
3502
+ */
3503
+ setCallCategory(callCategory: 'call' | 'meet'): this;
3504
+ /**
3505
+ * Sets the direction of call to be fetched.
3506
+ * @param callDirection - The direction of call to be fetched. Can be either 'incoming' or 'outgoing'.
3507
+ * @returns The CallLogRequestBuilder object.
3508
+ */
3509
+ setCallDirection(callDirection: 'incoming' | 'outgoing'): this;
3510
+ /**
3511
+ * Sets the user ID of the call logs to be fetched.
3512
+ * @param uid - The user ID of the call logs to be fetched.
3513
+ * @returns The CallLogRequestBuilder object.
3514
+ */
3515
+ setUid(uid: string): this;
3516
+ /**
3517
+ * Sets the group ID of the call logs to be fetched.
3518
+ * @param guid - The group ID of the call logs to be fetched.
3519
+ * @returns The CallLogRequestBuilder object.
3520
+ */
3521
+ setGuid(guid: string): this;
3522
+ /**
3523
+ * Sets the authorization token for the request.
3524
+ * @param authToken - The authorization token for the request.
3525
+ * @returns The CallLogRequestBuilder object.
3526
+ */
3527
+ setAuthToken(authToken: string): this;
3528
+ /**
3529
+ * Builds and returns the CallLogRequest object.
3530
+ * @returns The CallLogRequest object.
3531
+ */
3532
+ build(): CallLogRequest;
3533
+ }
3534
+ //#endregion
3535
+ //#region src/v4/models/PresenterSettings.d.ts
3536
+ declare class PresenterSettings {
3537
+ static readonly POSITION_TOP_LEFT = "top-left";
3538
+ static readonly POSITION_TOP_RIGHT = "top-right";
3539
+ static readonly POSITION_BOTTOM_LEFT = "bottom-left";
3540
+ static readonly POSITION_BOTTOM_RIGHT = "bottom-right";
3541
+ static readonly ASPECT_RATIO_DEFAULT = "default";
3542
+ static readonly ASPECT_RATIO_CONTAIN = "contain";
3543
+ static readonly ASPECT_RATIO_COVER = "cover";
3544
+ static readonly POSITION: {
3545
+ readonly TOP_LEFT: "top-left";
3546
+ readonly TOP_RIGHT: "top-right";
3547
+ readonly BOTTOM_LEFT: "bottom-left";
3548
+ readonly BOTTOM_RIGHT: "bottom-right";
3549
+ };
3550
+ static readonly ASPECT_RATIO: {
3551
+ readonly DEFAULT: "default";
3552
+ readonly CONTAIN: "contain";
3553
+ readonly COVER: "cover";
3554
+ };
3555
+ private defaultLayout;
3556
+ private isAudioOnly;
3557
+ private isPresenter;
3558
+ private listener;
3559
+ private ShowEndCallButton;
3560
+ private ShowSwitchCameraButton;
3561
+ private ShowMuteAudioButton;
3562
+ private ShowPauseVideoButton;
3563
+ private ShowAudioModeButton;
3564
+ private StartAudioMuted;
3565
+ private StartVideoMuted;
3566
+ private defaultAudioMode;
3567
+ private ShowRecordingButton;
3568
+ private idleTimeoutPeriod;
3569
+ constructor(builder: PresenterSettingsBuilder);
3570
+ isAudioOnlyCall(): boolean;
3571
+ getIsPresenter(): boolean;
3572
+ isDefaultLayoutEnabled(): boolean;
3573
+ getCallEventListener(): OngoingCallListener;
3574
+ isEndCallButtonEnabled(): boolean;
3575
+ isSwitchCameraButtonEnabled(): boolean;
3576
+ isMuteAudioButtonEnabled(): boolean;
3577
+ isPauseVideoButtonEnabled(): boolean;
3578
+ isAudioModeButtonEnabled(): boolean;
3579
+ getStartWithAudioMuted(): boolean;
3580
+ getStartWithVideoMuted(): boolean;
3581
+ getDefaultAudioMode(): string;
3582
+ isRecordingButtonEnabled(): boolean;
3583
+ getIdleTimeoutPeriod(): number;
3584
+ }
3585
+ declare class PresenterSettingsBuilder {
3586
+ /** @private */defaultLayout: boolean;
3587
+ /** @private */
3588
+ isAudioOnly: boolean;
3589
+ /** @private */
3590
+ isPresenter: boolean;
3591
+ /** @private */
3592
+ listener: OngoingCallListener;
3593
+ /** @private */
3594
+ ShowEndCallButton: boolean;
3595
+ /** @private */
3596
+ ShowSwitchCameraButton: boolean;
3597
+ /** @private */
3598
+ ShowMuteAudioButton: boolean;
3599
+ /** @private */
3600
+ ShowPauseVideoButton: boolean;
3601
+ /** @private */
3602
+ ShowAudioModeButton: boolean;
3603
+ /** @private */
3604
+ StartAudioMuted: boolean;
3605
+ /** @private */
3606
+ StartVideoMuted: boolean;
3607
+ /** @private */
3608
+ defaultAudioMode: (typeof CallConstants.AUDIO_MODE)[keyof typeof CallConstants.AUDIO_MODE];
3609
+ /** @private */
3610
+ ShowRecordingButton: boolean;
3611
+ /** @private */
3612
+ idleTimeoutPeriod: number;
3613
+ /**
3614
+ *
3615
+ * @param {boolean} defaultLayout
3616
+ * This methods shows/hides the default button layout.
3617
+ * If set to true the default button layout will be shown.
3618
+ * If set to false the default button layout will be hidden.
3619
+ * Default value is true
3620
+ * @returns
3621
+ */
3622
+ enableDefaultLayout(defaultLayout: boolean): this;
3623
+ /**
3624
+ *
3625
+ * @param {boolean} isAudioOnly
3626
+ * This methods sets the type(audio/video) of the call.
3627
+ * If set to true, the call will be strictly an audio call.
3628
+ * If set to false, the call will be an audio-video call.
3629
+ * Default value is false
3630
+ * @returns
3631
+ */
3632
+ setIsAudioOnlyCall(isAudioOnly: boolean): this;
3633
+ /**
3634
+ *
3635
+ * @param {boolean} isPresenter
3636
+ * This methods sets if the user is a presenter.
3637
+ * If set to true, the user will be a presenter (allowed to share video/audio).
3638
+ * If set to false, the user will not be a presenter (restricted).
3639
+ * Default value is false
3640
+ * @returns
3641
+ */
3642
+ setIsPresenter(isPresenter: boolean): this;
3643
+ /**
3644
+ *
3645
+ * @param {OngoingCallListener} listener
3646
+ * This method sets the call event listener.
3647
+ * @returns
3648
+ */
3649
+ setCallEventListener(listener: OngoingCallListener): this;
3650
+ /**
3651
+ *
3652
+ * @param {boolean} showEndCallButton
3653
+ * This method shows/hides the end call button.
3654
+ * If set to true it will display the end call button.
3655
+ * If set to false it will hide the end call button.
3656
+ * Default value is true.
3657
+ * @returns
3658
+ */
3659
+ showEndCallButton(showEndCallButton?: boolean): this;
3660
+ /**
3661
+ *
3662
+ * @param {boolean} showSwitchCameraButton
3663
+ * This method shows/hides the switch camera button.
3664
+ * If set to true it will display the switch camera button.
3665
+ * If set to false it will hide the switch camera button.
3666
+ * Note: For video call it remains hidden regardless of its value.
3667
+ * Default value is true.
3668
+ * @returns
3669
+ */
3670
+ showSwitchCameraButton(showSwitchCameraButton?: boolean): this;
3671
+ /**
3672
+ *
3673
+ * @param {boolean} showMuteAudioButton
3674
+ * This method shows/hides the mute audio button.
3675
+ * If set to true it will display the mute audio button.
3676
+ * If set to false it will hide the mute audio button.
3677
+ * Default value is true.
3678
+ * @returns
3679
+ */
3680
+ showMuteAudioButton(showMuteAudioButton?: boolean): this;
3681
+ /**
3682
+ *
3683
+ * @param {boolean} showPauseVideoButton
3684
+ * This method shows/hides the pause video button.
3685
+ * If set to true it will display the pause video button.
3686
+ * If set to false it will hide the pause video button.
3687
+ * Note: For video call it remains hidden regardless of its value.
3688
+ * Default value is true.
3689
+ * @returns
3690
+ */
3691
+ showPauseVideoButton(showPauseVideoButton?: boolean): this;
3692
+ /**
3693
+ *
3694
+ * @param {boolean} showAudioModeButton
3695
+ * This method shows/hides the audio mode button.
3696
+ * If set to true it will display the audio mode button.
3697
+ * If set to false it will hide the audio mode button.
3698
+ * Default value is true.
3699
+ * @returns
3700
+ */
3701
+ showAudioModeButton(showAudioModeButton?: boolean): this;
3702
+ /**
3703
+ *
3704
+ * @param {boolean} audioMuted
3705
+ * This method allows the call to be started with audio muted.
3706
+ * If set to true, the call will start with audio muted.
3707
+ * Default value is false.
3708
+ * @returns
3709
+ */
3710
+ startWithAudioMuted(audioMuted?: boolean): this;
3711
+ /**
3712
+ *
3713
+ * @param {boolean} videoMuted
3714
+ * This method allows the call to be started with video muted.
3715
+ * If set to true, the call will start with video muted.
3716
+ * Note: This method has no effect for audio calls.
3717
+ * Default value is false.
3718
+ * @returns
3719
+ */
3720
+ startWithVideoMuted(videoMuted?: boolean): this;
3721
+ /**
3722
+ *
3723
+ * @param {string} audioMode
3724
+ * This method will set the default audio mode.
3725
+ * @returns
3726
+ */
3727
+ setDefaultAudioMode(audioMode: (typeof CallConstants.AUDIO_MODE)[keyof typeof CallConstants.AUDIO_MODE]): this;
3728
+ /**
3729
+ *
3730
+ * @param {boolean} showRecordingButton
3731
+ * This method shows/hides the recording button.
3732
+ * If set to true it will display the recording button.
3733
+ * If set to false it will hide the recording button.
3734
+ * Default value is false.
3735
+ * @returns
3736
+ */
3737
+ showRecordingButton(showRecordingButton?: boolean): this;
3738
+ /**
3739
+ *
3740
+ * @param {number} idleTimeoutPeriod
3741
+ * This method sets the idle timeout period for the call.
3742
+ * If set and you are the only one in call, the call will end
3743
+ * after the idle timeout period, giving you the option to
3744
+ * extend the call 60 seconds before the call ends.
3745
+ * Default value is 180 seconds.
3746
+ * @returns
3747
+ */
3748
+ setIdleTimeoutPeriod(idleTimeoutPeriod: number): this;
3749
+ /**
3750
+ * This method will return an object of the CallSettings class.
3751
+ * @returns {PresenterSettings}
3752
+ */
3753
+ build(): PresenterSettings;
3754
+ }
3755
+ //#endregion
3756
+ //#region src/v4/models/CometChatCallsComponentCore.d.ts
3757
+ type MyState$1 = {
3758
+ shouldLoad: boolean;
3759
+ errored: boolean;
3760
+ };
3761
+ declare class CometChatCallsComponentCore extends React.Component<{
3762
+ callSettings: CallSettings | PresenterSettings;
3763
+ callToken: string;
3764
+ presenterMode?: boolean;
3765
+ }, MyState$1> {
3766
+ static ref: any;
3767
+ callsettings: CallSettings | PresenterSettings;
3768
+ constructor(props: any);
3769
+ render(): React.JSX.Element;
3770
+ }
3771
+ //#endregion
3772
+ //#region src/v4/models/CometChatPresenterComponent.d.ts
3773
+ type MyState = {
3774
+ errored: boolean;
3775
+ };
3776
+ declare class CometChatPresenterComponent extends React.Component<{
3777
+ presenterSettings: PresenterSettings;
3778
+ callToken: string;
3779
+ }, MyState> {
3780
+ constructor(props: any);
3781
+ render(): React.JSX.Element;
3782
+ }
3783
+ //#endregion
3784
+ //#region src/v4/models/CometChatCalls.d.ts
3785
+ declare class CometChatCalls$1 {
3786
+ private static appSettings;
3787
+ private static inProgress;
3788
+ static CALL_MODE: {
3789
+ readonly DEFAULT: "DEFAULT";
3790
+ readonly SPOTLIGHT: "SPOTLIGHT";
3791
+ };
3792
+ static AUDIO_MODE: {
3793
+ readonly SPEAKER: "SPEAKER";
3794
+ readonly EARPIECE: "EARPIECE";
3795
+ readonly BLUETOOTH: "BLUETOOTH";
3796
+ readonly HEADPHONES: "HEADPHONES";
3797
+ };
3798
+ static addCallEventListener: typeof ListenerHandlers.addCallEventListener;
3799
+ static removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
3800
+ static OngoingCallListener: typeof OngoingCallListener;
3801
+ static CallSettingsBuilder: typeof CallSettingsBuilder;
3802
+ static CallSettings: typeof CallSettings;
3803
+ static PresenterSettingsBuilder: typeof PresenterSettingsBuilder;
3804
+ static PresenterSettings: typeof PresenterSettings;
3805
+ static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
3806
+ static CallAppSettings: typeof CallAppSettings$1;
3807
+ static Component: typeof CometChatCallsComponentCore;
3808
+ static PresenterComponent: typeof CometChatPresenterComponent;
3809
+ static CallLogRequestBuilder: typeof CallLogRequestBuilder;
3810
+ static CallLog: typeof CallLog;
3811
+ static CallUser: typeof CallUser;
3812
+ static CallGroup: typeof CallGroup;
3813
+ static Participant: typeof Participant;
3814
+ static Recording: typeof Recording;
3815
+ static generateToken(sessionID: string, authToken: string): Promise<{
3816
+ token: string;
3817
+ }>;
3818
+ static init(appSettings: CallAppSettings$1): Promise<void>;
3819
+ /**
3820
+ * Method end on-going call.
3821
+ * @returns {void}
3822
+ */
3823
+ static endSession(): void;
3824
+ /**
3825
+ * Method to mute/unmute audio stream.
3826
+ * @param {boolean} muteAudio
3827
+ * @returns {void}
3828
+ */
3829
+ static muteAudio(muteAudio: boolean): void;
3830
+ /**
3831
+ * Method to pause/unpause video stream.
3832
+ * @param {boolean} pauseVideo
3833
+ * @returns {void}
3834
+ */
3835
+ static pauseVideo(pauseVideo: boolean): void;
3836
+ /**
3837
+ * Method to resume video stream.
3838
+ * @returns {void}
3839
+ */
3840
+ static resumeVideo(): void;
3841
+ /**
3842
+ * Method to set audio mode.
3843
+ * @param {string} mode
3844
+ * @returns {void}
3845
+ */
3846
+ static setAudioMode(mode: string): void;
3847
+ /**
3848
+ * Method to switch camera.
3849
+ * @returns {void}
3850
+ */
3851
+ static switchCamera(): void;
3852
+ /**
3853
+ * Method to get all the available audio output devices.
3854
+ * @returns {Promise<AudioMode[]>}
3855
+ */
3856
+ static getAudioOutputModes(): Promise<AudioMode$1[]>;
3857
+ /**
3858
+ * Method to switch from audio call to video call.
3859
+ * @returns {void}
3860
+ */
3861
+ static switchToVideoCall(): void;
3862
+ /**
3863
+ * Method to Start Call Recording.
3864
+ * @returns {void}
3865
+ */
3866
+ static startRecording(): void;
3867
+ /**
3868
+ * Method to Stop Call Recording.
3869
+ * @returns {void}
3870
+ */
3871
+ static stopRecording(): void;
3872
+ /** @internal */
3873
+ static getAppSettings(): CallAppSettings$1;
3874
+ /**
3875
+ * Retrieves call details for a given session ID and auth token.
3876
+ * @param sessionID - The session ID of the call.
3877
+ * @param authToken - The authentication token required to make the API call.
3878
+ * @returns A Promise that resolves to a CallLog object containing the call details.
3879
+ * @throws {CometChatCallsException} If there is an error retrieving the call details.
3880
+ */
3881
+ static getCallDetails(sessionID: string, authToken: string): Promise<Array<CallLog>>;
3882
+ }
3883
+ //#endregion
3884
+ //#region src/v4/models/RTCUser.d.ts
3885
+ declare class RTCUser {
3886
+ private uid;
3887
+ private avatar;
3888
+ private name;
3889
+ private jwt;
3890
+ private resource;
3891
+ constructor(uid: string);
3892
+ setUID(uid: string): void;
3893
+ getUID(): string;
3894
+ setName(name: string): void;
3895
+ getName(): string;
3896
+ setAvatar(avatar: string): void;
3897
+ getAvatar(): string;
3898
+ setJWT(jwt: string): void;
3899
+ getJWT(): string;
3900
+ setResource(resource: string): void;
3901
+ getResource(): string;
3902
+ }
3903
+ //#endregion
3904
+ //#region src/v4/models/CallLogFilterParams.d.ts
3905
+ /**
3906
+ * Represents the parameters used to filter call logs.
3907
+ */
3908
+ declare class CallLogFilterParams {
3909
+ /**
3910
+ * The number of items to display per page.
3911
+ */
3912
+ private perPage;
3913
+ /**
3914
+ * The page number to display.
3915
+ */
3916
+ private page;
3917
+ /**
3918
+ * The mode of the call.
3919
+ */
3920
+ private mode;
3921
+ /**
3922
+ * The type of the call.
3923
+ */
3924
+ private type;
3925
+ /**
3926
+ * The status of the call.
3927
+ */
3928
+ private status;
3929
+ /**
3930
+ * The direction of the call.
3931
+ */
3932
+ private direction;
3933
+ /**
3934
+ * Whether the call has recordings.
3935
+ */
3936
+ private hasRecording;
3937
+ /**
3938
+ * The user ID.
3939
+ */
3940
+ private uid;
3941
+ /**
3942
+ * The group ID.
3943
+ */
3944
+ private guid;
3945
+ /**
3946
+ * Creates a new instance of the CallLogFilterParams class.
3947
+ * @param data - The data to initialize the call log filter parameters object.
3948
+ */
3949
+ /**
3950
+ * Sets the direction of the call.
3951
+ * @param value - The direction of the call.
3952
+ */
3953
+ setDirection(value: string): void;
3954
+ /**
3955
+ * Sets the status of the call.
3956
+ * @param value - The status of the call.
3957
+ */
3958
+ setStatus(value: string): void;
3959
+ /**
3960
+ * Sets the type of the call.
3961
+ * @param value - The type of the call.
3962
+ */
3963
+ setType(value: string): void;
3964
+ /**
3965
+ * Sets the number of items to display per page.
3966
+ * @param value - The number of items to display per page.
3967
+ */
3968
+ setPerPage(value: number): void;
3969
+ /**
3970
+ * Sets the page number to display.
3971
+ * @param value - The page number to display.
3972
+ */
3973
+ setPage(value: number): void;
3974
+ /**
3975
+ * Sets the mode of the call.
3976
+ * @param value - The mode of the call.
3977
+ */
3978
+ setMode(value: string): void;
3979
+ /**
3980
+ * Sets whether the call has recordings.
3981
+ * @param value - Whether the call has recordings.
3982
+ */
3983
+ setHasRecordings(value: boolean): void;
3984
+ /**
3985
+ * Sets the user ID.
3986
+ * @param value - The user ID.
3987
+ */
3988
+ setUid(value: string): void;
3989
+ /**
3990
+ * Sets the group ID.
3991
+ * @param value - The group ID.
3992
+ */
3993
+ setGuid(value: string): void;
3994
+ /**
3995
+ * Converts the filter parameters to a map of key-value pairs.
3996
+ * @returns A map of key-value pairs representing the filter parameters.
3997
+ */
3998
+ toMap(): {
3999
+ [key: string]: string;
4000
+ };
4001
+ }
4002
+ //#endregion
4003
+ //#region src/v4/models/index.d.ts
4004
+ declare const addCallEventListener: typeof ListenerHandlers.addCallEventListener;
4005
+ declare const removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
4006
+ //#endregion
4007
+ //#region src/CometChatCalls.d.ts
4008
+ interface User {
4009
+ uid: string;
4010
+ name: string;
4011
+ status?: string;
4012
+ authToken?: string;
4013
+ lastActiveAt?: number;
4014
+ avatar?: string;
4015
+ role?: string;
4016
+ hasBlockedMe?: boolean;
4017
+ blockedByMe?: boolean;
4018
+ deactivatedAt?: number;
4019
+ wsChannel?: {
4020
+ identity: string;
4021
+ };
4022
+ jwt?: string;
4023
+ }
4024
+ interface CometChatException {
4025
+ errorCode: string;
4026
+ errorDescription: string;
4027
+ message?: string;
4028
+ }
4029
+ interface LoginListener {
4030
+ onLoginSuccess?: (user: User) => void;
4031
+ onLoginFailure?: (error: CometChatException) => void;
4032
+ onLogoutSuccess?: () => void;
4033
+ onLogoutFailure?: (error: CometChatException) => void;
4034
+ }
4035
+ declare class CometChatCalls extends SessionMethodsCore {
4036
+ private static appSettings;
4037
+ private static isInitialized;
4038
+ private static loginInProgress;
4039
+ private static loggedInUser;
4040
+ private static loginListeners;
4041
+ static CALL_MODE: {
4042
+ readonly DEFAULT: "DEFAULT";
4043
+ readonly SPOTLIGHT: "SPOTLIGHT";
4044
+ };
4045
+ static AUDIO_MODE: {
4046
+ readonly SPEAKER: "SPEAKER";
4047
+ readonly EARPIECE: "EARPIECE";
4048
+ readonly BLUETOOTH: "BLUETOOTH";
4049
+ readonly HEADPHONES: "HEADPHONES";
4050
+ };
4051
+ static OngoingCallListener: typeof OngoingCallListener;
4052
+ static CallSettingsBuilder: typeof CallSettingsBuilder;
4053
+ static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
4054
+ static Component: typeof AppReactNativeSDK;
4055
+ /**
4056
+ * Initializes the CometChat Calls SDK with the provided app settings.
4057
+ * Must be called before any other SDK methods.
4058
+ * @param appSettings - The application settings for configuring the SDK.
4059
+ * @returns An object indicating success or failure with error details.
4060
+ */
4061
+ static init(appSettings: CallAppSettings | CallAppSettings$1): Promise<{
4062
+ readonly success: false;
4063
+ readonly error: {
4064
+ readonly name: "VALIDATION_ERROR";
4065
+ readonly message: `Invalid app settings: ${string}`;
4066
+ readonly timestamp: number;
4067
+ };
4068
+ } | {
4069
+ readonly success: true;
4070
+ readonly error: null;
4071
+ }>;
4072
+ /**
4073
+ * Logs in a user with their UID and an optional auth key.
4074
+ * If no auth key is provided, the one from app settings is used.
4075
+ * @param uid - The unique identifier of the user.
4076
+ * @param authKey - The authentication key. Falls back to the key provided in app settings.
4077
+ * @returns A Promise that resolves to the logged-in User object.
4078
+ * @throws {CometChatException} If login fails or validation errors occur.
4079
+ */
4080
+ static login(uid: string, authKey?: string): Promise<User>;
4081
+ /**
4082
+ * Logs in a user directly with an auth token.
4083
+ * @param authToken - The authentication token for the user.
4084
+ * @returns A Promise that resolves to the logged-in User object.
4085
+ * @throws {CometChatException} If login fails or the token is invalid.
4086
+ */
4087
+ static loginWithAuthToken(authToken: string): Promise<User>;
4088
+ /**
4089
+ * Logs out the currently logged-in user and clears local session data.
4090
+ * @returns A Promise that resolves to a success message string.
4091
+ * @throws {CometChatException} If no user is logged in or logout fails.
4092
+ */
4093
+ static logout(): Promise<string>;
4094
+ /**
4095
+ * Retrieves the currently logged-in user.
4096
+ * @returns The logged-in User object, or null if no user is logged in.
4097
+ */
4098
+ static getLoggedInUser(): User | null;
4099
+ /**
4100
+ * Retrieves the auth token of the currently logged-in user.
4101
+ * @returns The auth token string, or null if no user is logged in.
4102
+ */
4103
+ static getUserAuthToken(): string | null;
4104
+ /**
4105
+ * Checks whether a user is currently logged in.
4106
+ * @returns True if a user is logged in with a valid auth token, false otherwise.
4107
+ */
4108
+ static isUserLoggedIn(): boolean;
4109
+ /**
4110
+ * Registers a login listener to receive login/logout lifecycle callbacks.
4111
+ * @param listenerId - A unique identifier for the listener.
4112
+ * @param listener - The listener object with callback methods.
4113
+ */
4114
+ static addLoginListener(listenerId: string, listener: LoginListener): void;
4115
+ /**
4116
+ * Removes a previously registered login listener.
4117
+ * @param listenerId - The unique identifier of the listener to remove.
4118
+ */
4119
+ static removeLoginListener(listenerId: string): void;
4120
+ /**
4121
+ * Generates a call token for the given session.
4122
+ * Uses the provided auth token or falls back to the logged-in user's token.
4123
+ * @param sessionId - The session ID to generate a token for.
4124
+ * @param authToken - Optional auth token. If omitted, the logged-in user's token is used.
4125
+ * @returns A Promise that resolves to an object containing the generated token.
4126
+ * @throws {CometChatException} If the session ID is missing, no auth token is available, or the SDK is not initialized.
4127
+ */
4128
+ static generateToken(sessionId: string, authToken?: string): Promise<{
4129
+ token: string;
4130
+ }>;
4131
+ private static getBaseURL;
4132
+ private static loginWithUID;
4133
+ private static authenticateWithToken;
4134
+ private static logoutInternal;
4135
+ private static callGenerateTokenAPI;
4136
+ private static callVerifyTokenAPI;
4137
+ private static getStorageKey;
4138
+ private static saveUser;
4139
+ private static getSavedUser;
4140
+ private static clearSavedUser;
4141
+ private static generateDeviceId;
4142
+ private static createError;
4143
+ private static notifyLoginSuccess;
4144
+ private static notifyLoginFailure;
4145
+ private static notifyLogoutSuccess;
4146
+ private static notifyLogoutFailure;
4147
+ /**
4148
+ * Adds an event listener for SDK events.
4149
+ * @param eventType - The type of event to listen for.
4150
+ * @param listener - The callback function to invoke when the event fires.
4151
+ * @param options - Optional configuration including an AbortSignal for automatic cleanup.
4152
+ * @returns An unsubscribe function to remove the listener.
4153
+ */
4154
+ static addEventListener<K$1 extends keyof MobileSDKEvents>(eventType: K$1, listener: MobileSDKEvents[K$1], options?: {
4155
+ signal?: AbortSignal;
4156
+ }): () => void;
4157
+ /**
4158
+ * Sets the audio output mode (mobile only).
4159
+ * @param mode - The audio mode to set (e.g., 'SPEAKER', 'EARPIECE', 'BLUETOOTH', 'HEADPHONES').
4160
+ */
4161
+ static setAudioMode(mode: AudioMode['type']): void;
4162
+ /**
4163
+ * Enables Picture-in-Picture (PIP) layout during the call.
4164
+ */
4165
+ static enablePictureInPictureLayout(): void;
4166
+ /**
4167
+ * Disables Picture-in-Picture (PIP) layout.
4168
+ */
4169
+ static disablePictureInPictureLayout(): void;
4170
+ }
4171
+ //#endregion
4172
+ export { CometChatCalls };