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