@webex/plugin-meetings 3.12.0-task-refactor.1 → 3.12.0-webex-services-ready.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/AGENTS.md +9 -0
- package/dist/aiEnableRequest/index.js +197 -0
- package/dist/aiEnableRequest/index.js.map +1 -0
- package/dist/aiEnableRequest/utils.js +36 -0
- package/dist/aiEnableRequest/utils.js.map +1 -0
- package/dist/annotation/index.js +14 -5
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/index.js +26 -2
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +9 -3
- package/dist/config.js.map +1 -1
- package/dist/constants.js +59 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +34 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +533 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +2068 -36
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +13 -3
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +111 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/constant.js +12 -0
- package/dist/interceptors/constant.js.map +1 -0
- package/dist/interceptors/dataChannelAuthToken.js +350 -0
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
- package/dist/interceptors/index.js +7 -0
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +27 -5
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interceptors/utils.js +27 -0
- package/dist/interceptors/utils.js.map +1 -0
- package/dist/interpretation/index.js +11 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +11 -4
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +896 -277
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/selfUtils.js +1 -0
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +19 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +72 -3
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +5 -2
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +11 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2075 -1096
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +55 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +168 -5
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +2 -2
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +369 -173
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +127 -25
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +20 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +40 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +11 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +64 -68
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +11 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +116 -2
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js +171 -18
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +142 -94
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +1 -1
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +0 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/types/aiEnableRequest/index.d.ts +5 -0
- package/dist/types/aiEnableRequest/utils.d.ts +2 -0
- package/dist/types/common/browser-detection.d.ts +1 -0
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/common/events/events-scope.d.ts +1 -0
- package/dist/types/common/events/events.d.ts +1 -0
- package/dist/types/config.d.ts +7 -2
- package/dist/types/constants.d.ts +35 -1
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +11 -0
- package/dist/types/hashTree/hashTree.d.ts +136 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +392 -14
- package/dist/types/hashTree/types.d.ts +20 -0
- package/dist/types/hashTree/utils.d.ts +40 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/constant.d.ts +5 -0
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
- package/dist/types/interceptors/index.d.ts +2 -1
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interceptors/locusRouteToken.d.ts +2 -0
- package/dist/types/interceptors/utils.d.ts +1 -0
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +116 -51
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +48 -12
- package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
- package/dist/types/media/properties.d.ts +3 -1
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +196 -15
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +17 -1
- package/dist/types/meeting/request.type.d.ts +5 -0
- package/dist/types/meeting/util.d.ts +40 -0
- package/dist/types/meeting-info/util.d.ts +1 -0
- package/dist/types/meeting-info/utilv2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +34 -20
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +2 -0
- package/dist/types/member/types.d.ts +5 -4
- package/dist/types/member/util.d.ts +14 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +10 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
- package/dist/types/multistream/sendSlotManager.d.ts +23 -1
- package/dist/types/reachability/clusterReachability.d.ts +33 -6
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +4 -0
- package/dist/types/recording-controller/util.d.ts +5 -5
- package/dist/types/roap/index.d.ts +1 -1
- package/dist/types/webinar/utils.d.ts +6 -0
- package/dist/webinar/index.js +585 -164
- package/dist/webinar/index.js.map +1 -1
- package/dist/webinar/utils.js +25 -0
- package/dist/webinar/utils.js.map +1 -0
- package/package.json +26 -24
- package/src/aiEnableRequest/README.md +84 -0
- package/src/aiEnableRequest/index.ts +186 -0
- package/src/aiEnableRequest/utils.ts +25 -0
- package/src/annotation/index.ts +27 -7
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/index.ts +31 -0
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +7 -2
- package/src/constants.ts +49 -3
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/hashTree/constants.ts +26 -0
- package/src/hashTree/hashTree.ts +480 -0
- package/src/hashTree/hashTreeParser.ts +1911 -29
- package/src/hashTree/types.ts +24 -1
- package/src/hashTree/utils.ts +98 -0
- package/src/index.ts +14 -1
- package/src/interceptors/constant.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +246 -0
- package/src/interceptors/index.ts +2 -1
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interceptors/locusRouteToken.ts +22 -5
- package/src/interceptors/utils.ts +16 -0
- package/src/interpretation/index.ts +29 -11
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/controlsUtils.ts +20 -1
- package/src/locus-info/index.ts +958 -250
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/selfUtils.ts +1 -0
- package/src/locus-info/types.ts +51 -12
- package/src/media/MediaConnectionAwaiter.ts +62 -5
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +4 -1
- package/src/meeting/in-meeting-actions.ts +20 -0
- package/src/meeting/index.ts +1025 -146
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +53 -0
- package/src/meeting/request.type.ts +6 -0
- package/src/meeting/util.ts +207 -7
- package/src/meeting-info/meeting-info-v2.ts +4 -2
- package/src/meetings/index.ts +307 -132
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +127 -13
- package/src/member/index.ts +20 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +41 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/constants.ts +11 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +117 -76
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +13 -0
- package/src/multistream/sendSlotManager.ts +97 -3
- package/src/reachability/clusterReachability.ts +156 -29
- package/src/reachability/index.ts +62 -17
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/reachabilityPeerConnection.ts +3 -1
- package/src/reachability/util.ts +36 -0
- package/src/reactions/reactions.type.ts +4 -0
- package/src/reconnection-manager/index.ts +0 -1
- package/src/recording-controller/index.ts +1 -2
- package/src/webinar/index.ts +448 -11
- package/src/webinar/utils.ts +16 -0
- package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
- package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
- package/test/unit/spec/annotation/index.ts +69 -7
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/index.ts +49 -0
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/hashTree/hashTree.ts +721 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +5328 -0
- package/test/unit/spec/hashTree/utils.ts +264 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- package/test/unit/spec/interceptors/locusRouteToken.ts +44 -0
- package/test/unit/spec/interceptors/utils.ts +75 -0
- package/test/unit/spec/interpretation/index.ts +26 -4
- package/test/unit/spec/locus-info/controlsUtils.js +222 -52
- package/test/unit/spec/locus-info/index.js +2000 -171
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +12 -3
- package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
- package/test/unit/spec/meeting/index.js +2925 -209
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +82 -0
- package/test/unit/spec/meeting/utils.js +595 -27
- package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
- package/test/unit/spec/meetings/index.js +1214 -75
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +453 -52
- package/test/unit/spec/member/index.js +35 -4
- package/test/unit/spec/member/util.js +154 -27
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
- package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
- package/test/unit/spec/reachability/clusterReachability.ts +125 -1
- package/test/unit/spec/reachability/index.ts +154 -49
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/reconnection-manager/index.js +4 -8
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/webinar/index.ts +837 -39
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -8,7 +8,7 @@ import 'webrtc-adapter';
|
|
|
8
8
|
import { LOCUSEVENT, DESTINATION_TYPE } from '../constants';
|
|
9
9
|
import { CallStateForMetrics } from '../meeting';
|
|
10
10
|
import Reachability from '../reachability';
|
|
11
|
-
import { INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus } from './meetings.types';
|
|
11
|
+
import { FetchSitePreferencesMeViaSiteOptions, INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus, SitePreferencesResponse } from './meetings.types';
|
|
12
12
|
import { HashTreeMessage } from '../hashTree/hashTreeParser';
|
|
13
13
|
export type LocusEvent = {
|
|
14
14
|
eventType: LOCUSEVENT;
|
|
@@ -95,6 +95,8 @@ export default class Meetings extends WebexPlugin {
|
|
|
95
95
|
preferredWebexSite: any;
|
|
96
96
|
reachability: Reachability;
|
|
97
97
|
registered: any;
|
|
98
|
+
registrationPromise: Promise<void>;
|
|
99
|
+
unregistrationPromise: Promise<void>;
|
|
98
100
|
request: any;
|
|
99
101
|
geoHintInfo: any;
|
|
100
102
|
meetingInfo: any;
|
|
@@ -150,7 +152,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
150
152
|
*/
|
|
151
153
|
private handleLocusEvent;
|
|
152
154
|
/**
|
|
153
|
-
* handles locus events through mercury that are not roap
|
|
155
|
+
* handles locus events through mercury that are not roap or approval request events
|
|
154
156
|
* @param {Object} envelope
|
|
155
157
|
* @param {Object} envelope.data
|
|
156
158
|
* @param {String} envelope.data.eventType
|
|
@@ -209,22 +211,6 @@ export default class Meetings extends WebexPlugin {
|
|
|
209
211
|
* @returns {undefined}
|
|
210
212
|
*/
|
|
211
213
|
private _toggleAdhocMeetings;
|
|
212
|
-
/**
|
|
213
|
-
* API to toggle TCP reachability, needs to be called before webex.meetings.register()
|
|
214
|
-
* @param {Boolean} newValue
|
|
215
|
-
* @private
|
|
216
|
-
* @memberof Meetings
|
|
217
|
-
* @returns {undefined}
|
|
218
|
-
*/
|
|
219
|
-
private _toggleTcpReachability;
|
|
220
|
-
/**
|
|
221
|
-
* API to toggle TLS reachability, needs to be called before webex.meetings.register()
|
|
222
|
-
* @param {Boolean} newValue
|
|
223
|
-
* @private
|
|
224
|
-
* @memberof Meetings
|
|
225
|
-
* @returns {undefined}
|
|
226
|
-
*/
|
|
227
|
-
private _toggleTlsReachability;
|
|
228
214
|
/**
|
|
229
215
|
* API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
|
|
230
216
|
*
|
|
@@ -252,6 +238,16 @@ export default class Meetings extends WebexPlugin {
|
|
|
252
238
|
* @returns {undefined}
|
|
253
239
|
*/
|
|
254
240
|
private _toggleEnableAudioTwccForMultistream;
|
|
241
|
+
/**
|
|
242
|
+
* API to toggle AV1 codec support for video slides in multistream,
|
|
243
|
+
* needs to be called before webex.meetings.joinWithMedia()
|
|
244
|
+
*
|
|
245
|
+
* @param {Boolean} newValue
|
|
246
|
+
* @private
|
|
247
|
+
* @memberof Meetings
|
|
248
|
+
* @returns {undefined}
|
|
249
|
+
*/
|
|
250
|
+
private _toggleEnableAv1SlidesSupport;
|
|
255
251
|
/**
|
|
256
252
|
* API to toggle stopping ICE Candidates Gathering after first relay candidate,
|
|
257
253
|
* needs to be called before webex.meetings.joinWithMedia()
|
|
@@ -287,7 +283,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
287
283
|
* @public
|
|
288
284
|
* @memberof Meetings
|
|
289
285
|
*/
|
|
290
|
-
unregister():
|
|
286
|
+
unregister(): Promise<void>;
|
|
291
287
|
/**
|
|
292
288
|
* Creates a noise reduction effect
|
|
293
289
|
*
|
|
@@ -366,6 +362,23 @@ export default class Meetings extends WebexPlugin {
|
|
|
366
362
|
* @memberof Meetings
|
|
367
363
|
*/
|
|
368
364
|
getPersonalMeetingRoom(): any;
|
|
365
|
+
/**
|
|
366
|
+
* Fetches site preferences for the provided Webex site, or the preferred Webex site.
|
|
367
|
+
* This is used to determine capabilities of the site, such as whether scheduling a webinar is supported.
|
|
368
|
+
*
|
|
369
|
+
* @param {object} [options]
|
|
370
|
+
* @param {string} [options.siteUrl] - Webex site URL. Defaults to preferredWebexSite, for example "cisco.webex.com".
|
|
371
|
+
* @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from siteUrl, for example "cisco" for "cisco.webex.com".
|
|
372
|
+
* @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
|
|
373
|
+
* @returns {Promise<SitePreferencesResponse>} site preferences response body
|
|
374
|
+
* @throws {ParameterError}
|
|
375
|
+
* @public
|
|
376
|
+
* @memberof Meetings
|
|
377
|
+
* @example
|
|
378
|
+
* const preferences = await webex.meetings.fetchSitePreferencesMeViaSite();
|
|
379
|
+
* const supportScheduleWebinar = preferences?.scheduling?.supportScheduleWebinar;
|
|
380
|
+
*/
|
|
381
|
+
fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
|
|
369
382
|
/**
|
|
370
383
|
* Returns basic information about a meeting that exists or
|
|
371
384
|
* used to exist in the MeetingCollection
|
|
@@ -475,8 +488,9 @@ export default class Meetings extends WebexPlugin {
|
|
|
475
488
|
* @public
|
|
476
489
|
* @memberof Meetings
|
|
477
490
|
*/
|
|
478
|
-
syncMeetings({ keepOnlyLocusMeetings }?: {
|
|
491
|
+
syncMeetings({ keepOnlyLocusMeetings, skipHashTreeSync, }?: {
|
|
479
492
|
keepOnlyLocusMeetings?: boolean;
|
|
493
|
+
skipHashTreeSync?: boolean;
|
|
480
494
|
}): Promise<void>;
|
|
481
495
|
/**
|
|
482
496
|
* sort out locus array for initial creating
|
|
@@ -19,3 +19,18 @@ export type MeetingRegistrationStatus = {
|
|
|
19
19
|
mercuryConnect: boolean;
|
|
20
20
|
checkH264Support: boolean;
|
|
21
21
|
};
|
|
22
|
+
export declare enum SitePreferenceSelectOption {
|
|
23
|
+
SCHEDULING = "scheduling"
|
|
24
|
+
}
|
|
25
|
+
export type FetchSitePreferencesMeViaSiteOptions = {
|
|
26
|
+
siteUrl?: string;
|
|
27
|
+
siteName?: string;
|
|
28
|
+
selectOptions?: SitePreferenceSelectOption[];
|
|
29
|
+
};
|
|
30
|
+
export declare const DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS: SitePreferenceSelectOption[];
|
|
31
|
+
export type SitePreferencesResponse = {
|
|
32
|
+
scheduling?: {
|
|
33
|
+
supportScheduleWebinar?: boolean;
|
|
34
|
+
webinarWebLink?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
|
+
import { type FetchSitePreferencesMeViaSiteOptions, type SitePreferencesResponse } from './meetings.types';
|
|
2
3
|
/**
|
|
3
4
|
* @class MeetingRequest
|
|
4
5
|
*/
|
|
@@ -18,6 +19,19 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
18
19
|
* @returns {Promise<object>} getMeetingPreferences
|
|
19
20
|
*/
|
|
20
21
|
getMeetingPreferences(): any;
|
|
22
|
+
/**
|
|
23
|
+
* Fetches site preferences from a given site given a select option and a siteUrl with an optional siteName. If siteName is not provided, it will be derived from the siteUrl. If siteUrl is not provided, it will throw an error. If selectOptions is not provided, it will default to scheduling.
|
|
24
|
+
*
|
|
25
|
+
* @param {object} [options]
|
|
26
|
+
* @param {string} [options.siteUrl] - Webex site URL, for example "cisco.webex.com".
|
|
27
|
+
* @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from options.siteUrl, e.g., "cisco".
|
|
28
|
+
* @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
|
|
29
|
+
* @returns {Promise<SitePreferencesResponse>} site preferences response body
|
|
30
|
+
* @throws {ParameterError}
|
|
31
|
+
* @public
|
|
32
|
+
* @memberof MeetingRequest
|
|
33
|
+
*/
|
|
34
|
+
fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
|
|
21
35
|
/**
|
|
22
36
|
* Fetches indivdual locus rather then getting all at once
|
|
23
37
|
* @param {object} responseBody determine the locus and fetch them if a remoteUrl is given
|
|
@@ -6,6 +6,7 @@ export type MemberId = string;
|
|
|
6
6
|
export default class Member {
|
|
7
7
|
associatedUser: MemberId | null;
|
|
8
8
|
associatedUsers: Set<MemberId>;
|
|
9
|
+
canApproveAIEnablement: boolean;
|
|
9
10
|
canReclaimHost: boolean;
|
|
10
11
|
id: MemberId;
|
|
11
12
|
isAudioMuted: any;
|
|
@@ -19,6 +20,7 @@ export default class Member {
|
|
|
19
20
|
isModerator: any;
|
|
20
21
|
isModeratorAssignmentProhibited: any;
|
|
21
22
|
isPresenterAssignmentProhibited: any;
|
|
23
|
+
isAttendeeAssignmentProhibited: any;
|
|
22
24
|
isMutable: any;
|
|
23
25
|
isNotAdmitted: any;
|
|
24
26
|
isRecording: any;
|
|
@@ -13,10 +13,10 @@ export type ServerRoleShape = {
|
|
|
13
13
|
hasRole: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare enum MediaStatus {
|
|
16
|
-
RECVONLY = "RECVONLY"
|
|
17
|
-
SENDONLY = "SENDONLY"
|
|
18
|
-
SENDRECV = "SENDRECV"
|
|
19
|
-
INACTIVE = "INACTIVE"
|
|
16
|
+
RECVONLY = "RECVONLY",
|
|
17
|
+
SENDONLY = "SENDONLY",
|
|
18
|
+
SENDRECV = "SENDRECV",
|
|
19
|
+
INACTIVE = "INACTIVE",
|
|
20
20
|
UNKNOWN = "UNKNOWN"
|
|
21
21
|
}
|
|
22
22
|
export interface IMediaStatus {
|
|
@@ -89,6 +89,7 @@ export interface Participant {
|
|
|
89
89
|
moderator: boolean;
|
|
90
90
|
moderatorAssignmentNotAllowed: boolean;
|
|
91
91
|
presenterAssignmentNotAllowed: boolean;
|
|
92
|
+
attendeeAssignmentNotAllowed?: boolean;
|
|
92
93
|
person: ParticipantPerson;
|
|
93
94
|
resourceGuest: boolean;
|
|
94
95
|
state: string;
|
|
@@ -5,6 +5,11 @@ declare const MemberUtil: {
|
|
|
5
5
|
* @returns {Boolean}
|
|
6
6
|
*/
|
|
7
7
|
canReclaimHost: (participant: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* @param {Object} participant - The locus participant object.
|
|
10
|
+
* @returns {Boolean}
|
|
11
|
+
*/
|
|
12
|
+
canApproveAIEnablement: (participant: any) => boolean;
|
|
8
13
|
/**
|
|
9
14
|
* @param {Object} participant - The locus participant object.
|
|
10
15
|
* @returns {[ServerRoleShape]}
|
|
@@ -61,6 +66,7 @@ declare const MemberUtil: {
|
|
|
61
66
|
isDevice: (participant: Participant) => boolean;
|
|
62
67
|
isModeratorAssignmentProhibited: (participant: Participant) => boolean;
|
|
63
68
|
isPresenterAssignmentProhibited: (participant: Participant) => boolean;
|
|
69
|
+
isAttendeeAssignmentProhibited: (participant: Participant) => boolean;
|
|
64
70
|
/**
|
|
65
71
|
* checks to see if the participant id is the same as the passed id
|
|
66
72
|
* there are multiple ids that can be used
|
|
@@ -158,5 +164,13 @@ declare const MemberUtil: {
|
|
|
158
164
|
* @returns {String}
|
|
159
165
|
*/
|
|
160
166
|
extractPairedWithParticipantUrl: (participant: Participant) => ParticipantUrl | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Collects all CSIs reported for a participant across all their devices,
|
|
169
|
+
* looking at both the top-level `csis` array and any `mediaSessions[].csi` values.
|
|
170
|
+
*
|
|
171
|
+
* @param {Object} participant - The locus participant object.
|
|
172
|
+
* @returns {Array<number>} unique CSIs for this participant
|
|
173
|
+
*/
|
|
174
|
+
extractCsis: (participant: Participant) => number[];
|
|
161
175
|
};
|
|
162
176
|
export default MemberUtil;
|
|
@@ -23,6 +23,14 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
23
23
|
recordingId: any;
|
|
24
24
|
selfId: any;
|
|
25
25
|
type: any;
|
|
26
|
+
/**
|
|
27
|
+
* Map of CSI -> memberId that previously used the CSI in a Locus update.
|
|
28
|
+
* Keyed by CSI so findMemberByCsi can resolve it in O(1).
|
|
29
|
+
* Kept here (rather than on each Member) so it survives members being removed
|
|
30
|
+
* and re-added (e.g. when entering/leaving a breakout session).
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
private memberIdByHistoryCsi;
|
|
26
34
|
namespace: string;
|
|
27
35
|
/**
|
|
28
36
|
*
|
|
@@ -313,11 +321,13 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
313
321
|
* Transfers the host to another member
|
|
314
322
|
* @param {String} memberId
|
|
315
323
|
* @param {boolean} [moderator] default true
|
|
324
|
+
* @param {String} [breakoutLocusUrl] when provided, the request is sent against this locus url
|
|
325
|
+
* (i.e. the breakout session's locus) instead of the main session's locus url
|
|
316
326
|
* @returns {Promise}
|
|
317
327
|
* @public
|
|
318
328
|
* @memberof Members
|
|
319
329
|
*/
|
|
320
|
-
transferHostToMember(memberId: string, moderator?: boolean): any;
|
|
330
|
+
transferHostToMember(memberId: string, moderator?: boolean, breakoutLocusUrl?: string): any;
|
|
321
331
|
/**
|
|
322
332
|
* Sends DTMF tones for the PSTN member of a meeting
|
|
323
333
|
* @param {String} tones a string of one or more DTMF tones to send
|
|
@@ -327,7 +337,10 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
327
337
|
* @memberof Members
|
|
328
338
|
*/
|
|
329
339
|
sendDialPadKey(tones?: string, memberId?: string): any;
|
|
330
|
-
/** Finds a member that has any device with a csi matching provided value
|
|
340
|
+
/** Finds a member that has any device with a csi matching provided value.
|
|
341
|
+
* Falls back to the `memberIdByHistoryCsi` map so that a CSI a member used in
|
|
342
|
+
* a previous Locus update can still be resolved even if it is no longer
|
|
343
|
+
* present in `participant.devices[].csis`.
|
|
331
344
|
*
|
|
332
345
|
* @param {number} csi
|
|
333
346
|
* @returns {Member}
|
|
@@ -188,11 +188,7 @@ declare const MembersUtil: {
|
|
|
188
188
|
getTransferHostToMemberRequestParams: (options: any) => {
|
|
189
189
|
method: string;
|
|
190
190
|
uri: string;
|
|
191
|
-
body:
|
|
192
|
-
role: {
|
|
193
|
-
moderator: any;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
191
|
+
body: Record<string, any>;
|
|
196
192
|
};
|
|
197
193
|
genderateSendDTMFOptions: (url: any, tones: any, memberId: any, locusUrl: any) => {
|
|
198
194
|
url: any;
|
|
@@ -9,6 +9,7 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
9
9
|
ADD_MEDIA_SUCCESS: string;
|
|
10
10
|
ADD_MEDIA_FAILURE: string;
|
|
11
11
|
ADD_MEDIA_RETRY: string;
|
|
12
|
+
LOCUS_MEDIA_REQUEST_RETRY: string;
|
|
12
13
|
ROAP_MERCURY_EVENT_RECEIVED: string;
|
|
13
14
|
CONNECTION_SUCCESS: string;
|
|
14
15
|
CONNECTION_FAILURE: string;
|
|
@@ -19,6 +20,7 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
19
20
|
GET_DISPLAY_MEDIA_FAILURE: string;
|
|
20
21
|
JOIN_WITH_MEDIA_FAILURE: string;
|
|
21
22
|
LLM_CONNECTION_AFTER_JOIN_FAILURE: string;
|
|
23
|
+
LLM_HEALTHCHECK_FAILURE: string;
|
|
22
24
|
RECEIVE_TRANSCRIPTION_AFTER_JOIN_FAILURE: string;
|
|
23
25
|
DISCONNECT_DUE_TO_INACTIVITY: string;
|
|
24
26
|
MEETING_MEDIA_INACTIVE: string;
|
|
@@ -86,5 +88,13 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
86
88
|
MEDIA_ISSUE_DETECTED: string;
|
|
87
89
|
LOCUS_CLASSIC_VS_HASH_TREE_MISMATCH: string;
|
|
88
90
|
LOCUS_HASH_TREE_UNSUPPORTED_OPERATION: string;
|
|
91
|
+
MEDIA_STILL_NOT_CONNECTED: string;
|
|
92
|
+
DEPRECATED_SET_CODEC_PARAMETERS_USED: string;
|
|
93
|
+
DEPRECATED_DELETE_CODEC_PARAMETERS_USED: string;
|
|
94
|
+
SET_CUSTOM_CODEC_PARAMETERS_USED: string;
|
|
95
|
+
MARK_CUSTOM_CODEC_PARAMETERS_FOR_DELETION_USED: string;
|
|
96
|
+
HASH_TREE_SYNC_FAILURE: string;
|
|
97
|
+
HASH_TREE_HEARTBEAT_WATCHDOG_EXPIRED: string;
|
|
98
|
+
HASH_TREE_EMPTY_LOCUS_STATE_ELEMENTS: string;
|
|
89
99
|
};
|
|
90
100
|
export { BEHAVIORAL_METRICS as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AV1EncodingParams, SupportedResolution } from '@webex/internal-media-core';
|
|
2
|
+
export declare const AV1_CODEC_PARAMETERS: Record<SupportedResolution, AV1EncodingParams>;
|
|
3
|
+
export declare const H264_CODEC_PARAMETERS: {
|
|
4
|
+
maxFs: number;
|
|
5
|
+
maxFps: number;
|
|
6
|
+
maxMbps: number;
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamRequest, NamedMediaGroup } from '@webex/internal-media-core';
|
|
1
|
+
import { StreamRequest, NamedMediaGroup, MediaType, MediaCodecMimeType } from '@webex/internal-media-core';
|
|
2
2
|
import { ReceiveSlot } from './receiveSlot';
|
|
3
3
|
export interface ActiveSpeakerPolicyInfo {
|
|
4
4
|
policy: 'active-speaker';
|
|
@@ -36,43 +36,35 @@ type DegradationPreferences = {
|
|
|
36
36
|
maxMacroblocksLimit: number;
|
|
37
37
|
};
|
|
38
38
|
type SendMediaRequestsCallback = (streamRequests: StreamRequest[]) => void;
|
|
39
|
-
type
|
|
40
|
-
type
|
|
39
|
+
type GetIngressPayloadTypeCallback = (mediaType: MediaType, codecMimeType: MediaCodecMimeType) => number | undefined;
|
|
40
|
+
type AudioMediaRequestManagerOptions = {
|
|
41
41
|
degradationPreferences: DegradationPreferences;
|
|
42
|
-
kind:
|
|
42
|
+
kind: 'audio';
|
|
43
43
|
trimRequestsToNumOfSources: boolean;
|
|
44
44
|
};
|
|
45
|
+
type VideoMediaRequestManagerOptions = {
|
|
46
|
+
degradationPreferences: DegradationPreferences;
|
|
47
|
+
kind: 'video';
|
|
48
|
+
trimRequestsToNumOfSources: boolean;
|
|
49
|
+
enableAv1?: boolean;
|
|
50
|
+
};
|
|
51
|
+
type Options = AudioMediaRequestManagerOptions | VideoMediaRequestManagerOptions;
|
|
45
52
|
export declare class MediaRequestManager {
|
|
46
53
|
private sendMediaRequestsCallback;
|
|
54
|
+
private getIngressPayloadTypeCallback;
|
|
47
55
|
private kind;
|
|
48
56
|
private counter;
|
|
49
57
|
private clientRequests;
|
|
50
58
|
private degradationPreferences;
|
|
51
59
|
private sourceUpdateListener;
|
|
52
60
|
private debouncedSourceUpdateListener;
|
|
53
|
-
private previousStreamRequests;
|
|
54
61
|
private trimRequestsToNumOfSources;
|
|
62
|
+
private enableAv1;
|
|
55
63
|
private numTotalSources;
|
|
56
64
|
private numLiveSources;
|
|
57
|
-
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, options: Options);
|
|
65
|
+
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, getIngressPayloadTypeCallback: GetIngressPayloadTypeCallback, options: Options);
|
|
58
66
|
setDegradationPreferences(degradationPreferences: DegradationPreferences): void;
|
|
59
67
|
private getDegradedClientRequests;
|
|
60
|
-
/**
|
|
61
|
-
* Returns true if two stream requests are the same, false otherwise.
|
|
62
|
-
*
|
|
63
|
-
* @param {StreamRequest} streamRequestA - Stream request A for comparison.
|
|
64
|
-
* @param {StreamRequest} streamRequestB - Stream request B for comparison.
|
|
65
|
-
* @returns {boolean} - Whether they are equal.
|
|
66
|
-
*/
|
|
67
|
-
isEqual(streamRequestA: StreamRequest, streamRequestB: StreamRequest): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Compares new stream requests to previous ones and determines
|
|
70
|
-
* if they are the same.
|
|
71
|
-
*
|
|
72
|
-
* @param {StreamRequest[]} newRequests - Array with new requests.
|
|
73
|
-
* @returns {boolean} - True if they are equal, false otherwise.
|
|
74
|
-
*/
|
|
75
|
-
private checkIsNewRequestsEqualToPrev;
|
|
76
68
|
/**
|
|
77
69
|
* Returns the maxPayloadBitsPerSecond per Stream
|
|
78
70
|
*
|
|
@@ -95,11 +87,13 @@ export declare class MediaRequestManager {
|
|
|
95
87
|
*/
|
|
96
88
|
private getH264MaxMbps;
|
|
97
89
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @returns {
|
|
90
|
+
* Returns the AV1 encoding parameters for a media request
|
|
91
|
+
* @param mediaRequest - The media request to get the AV1 encoding parameters for
|
|
92
|
+
* @returns {AV1EncodingParams} The AV1 encoding parameters
|
|
101
93
|
*/
|
|
102
|
-
|
|
94
|
+
private getAv1EncodingParams;
|
|
95
|
+
private buildH264CodecInfo;
|
|
96
|
+
private buildAv1CodecInfo;
|
|
103
97
|
/** Modifies the passed in clientRequests and makes sure that in total they don't ask
|
|
104
98
|
* for more streams than there are available.
|
|
105
99
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState } from '@webex/internal-media-core';
|
|
1
|
+
import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState, MediaCodecMimeType, CodecParameters } from '@webex/internal-media-core';
|
|
2
2
|
/**
|
|
3
3
|
* This class is used to manage the sendSlots for the given media types.
|
|
4
4
|
*/
|
|
@@ -69,6 +69,8 @@ export default class SendSlotManager {
|
|
|
69
69
|
*/
|
|
70
70
|
setActive(mediaType: MediaType, active?: boolean): void;
|
|
71
71
|
/**
|
|
72
|
+
* @deprecated Use {@link setCustomCodecParameters} instead, which requires specifying the codec MIME type.
|
|
73
|
+
*
|
|
72
74
|
* This method is used to set the codec parameters for the sendSlot of the given mediaType
|
|
73
75
|
* @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be set (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
|
|
74
76
|
* @param {Object} codecParameters
|
|
@@ -78,12 +80,32 @@ export default class SendSlotManager {
|
|
|
78
80
|
[key: string]: string | undefined;
|
|
79
81
|
}): Promise<void>;
|
|
80
82
|
/**
|
|
83
|
+
* @deprecated Use {@link markCustomCodecParametersForDeletion} instead, which requires specifying the codec MIME type.
|
|
84
|
+
*
|
|
81
85
|
* This method is used to delete the codec parameters for the sendSlot of the given mediaType
|
|
82
86
|
* @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be deleted (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
|
|
83
87
|
* @param {Array<String>} parameters Array of keys of the codec parameters to be deleted
|
|
84
88
|
* @returns {Promise<void>}
|
|
85
89
|
*/
|
|
86
90
|
deleteCodecParameters(mediaType: MediaType, parameters: string[]): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Sets custom codec parameters for the sendSlot of the given mediaType, scoped to a specific codec MIME type.
|
|
93
|
+
* Delegates to WCME's setCustomCodecParameters API.
|
|
94
|
+
* @param {MediaType} mediaType MediaType of the sendSlot
|
|
95
|
+
* @param {MediaCodecMimeType} codecMimeType The codec MIME type to apply parameters to (e.g. OPUS, H264, AV1)
|
|
96
|
+
* @param {CodecParameters} parameters Key-value pairs of codec parameters to set
|
|
97
|
+
* @returns {Promise<void>}
|
|
98
|
+
*/
|
|
99
|
+
setCustomCodecParameters(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: CodecParameters): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Marks custom codec parameters for deletion on the sendSlot of the given mediaType, scoped to a specific codec MIME type.
|
|
102
|
+
* Delegates to WCME's markCustomCodecParametersForDeletion API.
|
|
103
|
+
* @param {MediaType} mediaType MediaType of the sendSlot
|
|
104
|
+
* @param {MediaCodecMimeType} codecMimeType The codec MIME type whose parameters should be deleted (e.g. OPUS, H264, AV1)
|
|
105
|
+
* @param {string[]} parameters Array of parameter keys to delete
|
|
106
|
+
* @returns {Promise<void>}
|
|
107
|
+
*/
|
|
108
|
+
markCustomCodecParametersForDeletion(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: string[]): Promise<void>;
|
|
87
109
|
/**
|
|
88
110
|
* This method is used to reset the SendSlotsManager by deleting all the sendSlots
|
|
89
111
|
* @returns {undefined}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ClusterNode } from './request';
|
|
2
2
|
import EventsScope from '../common/events/events-scope';
|
|
3
3
|
import { Enum } from '../constants';
|
|
4
|
-
import { ClusterReachabilityResult, NatType } from './reachability.types';
|
|
4
|
+
import { ClusterReachabilityResult, NatType, Protocol } from './reachability.types';
|
|
5
5
|
export type ResultEventData = {
|
|
6
|
-
protocol:
|
|
6
|
+
protocol: Protocol;
|
|
7
7
|
result: 'reachable' | 'unreachable' | 'untested';
|
|
8
8
|
latencyInMilliseconds: number;
|
|
9
9
|
clientMediaIPs?: string[];
|
|
10
10
|
};
|
|
11
11
|
export type ClientMediaIpsUpdatedEventData = {
|
|
12
|
-
protocol:
|
|
12
|
+
protocol: Protocol;
|
|
13
13
|
clientMediaIPs: string[];
|
|
14
14
|
};
|
|
15
15
|
export type NatTypeUpdatedEventData = {
|
|
@@ -23,26 +23,53 @@ export declare const Events: {
|
|
|
23
23
|
export type Events = Enum<typeof Events>;
|
|
24
24
|
/**
|
|
25
25
|
* A class that handles reachability checks for a single cluster.
|
|
26
|
-
* Creates and orchestrates
|
|
26
|
+
* Creates and orchestrates ReachabilityPeerConnection instance(s).
|
|
27
27
|
* Listens to events and emits them to consumers.
|
|
28
|
+
*
|
|
29
|
+
* When enablePerUdpUrlReachability is true:
|
|
30
|
+
* - Creates one ReachabilityPeerConnection for each UDP URL
|
|
31
|
+
* - Creates one ReachabilityPeerConnection for all TCP and TLS URLs together
|
|
32
|
+
* Otherwise:
|
|
33
|
+
* - Creates a single ReachabilityPeerConnection for all URLs
|
|
28
34
|
*/
|
|
29
35
|
export declare class ClusterReachability extends EventsScope {
|
|
30
36
|
private reachabilityPeerConnection;
|
|
37
|
+
private reachabilityPeerConnectionsForUdp;
|
|
31
38
|
readonly isVideoMesh: boolean;
|
|
32
39
|
readonly name: any;
|
|
33
40
|
readonly reachedSubnets: Set<string>;
|
|
41
|
+
private enablePerUdpUrlReachability;
|
|
42
|
+
private udpResultEmitted;
|
|
34
43
|
/**
|
|
35
44
|
* Constructor for ClusterReachability
|
|
36
45
|
* @param {string} name cluster name
|
|
37
46
|
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
47
|
+
* @param {boolean} enablePerUdpUrlReachability whether to create separate peer connections per UDP URL
|
|
38
48
|
*/
|
|
39
|
-
constructor(name: string, clusterInfo: ClusterNode);
|
|
49
|
+
constructor(name: string, clusterInfo: ClusterNode, enablePerUdpUrlReachability?: boolean);
|
|
40
50
|
/**
|
|
41
|
-
*
|
|
51
|
+
* Initializes a single ReachabilityPeerConnection for all protocols
|
|
52
|
+
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
53
|
+
* @returns {void}
|
|
54
|
+
*/
|
|
55
|
+
private initializeSingleReachabilityPeerConnection;
|
|
56
|
+
/**
|
|
57
|
+
* Initializes per-URL UDP reachability checks:
|
|
58
|
+
* - One ReachabilityPeerConnection per UDP URL
|
|
59
|
+
* - One ReachabilityPeerConnection for all TCP and TLS URLs together
|
|
60
|
+
* @param {ClusterNode} clusterInfo information about the media cluster
|
|
61
|
+
* @returns {void}
|
|
62
|
+
*/
|
|
63
|
+
private initializePerUdpUrlReachabilityCheck;
|
|
64
|
+
/**
|
|
65
|
+
* Sets up event listeners for a ReachabilityPeerConnection instance
|
|
66
|
+
* @param {ReachabilityPeerConnection} rpc the ReachabilityPeerConnection instance
|
|
67
|
+
* @param {boolean} isUdpPerUrl whether this is a per-URL UDP instance
|
|
42
68
|
* @returns {void}
|
|
43
69
|
*/
|
|
44
70
|
private setupReachabilityPeerConnectionEventListeners;
|
|
45
71
|
/**
|
|
72
|
+
* Gets the aggregated reachability result for this cluster.
|
|
46
73
|
* @returns {ClusterReachabilityResult} reachability result for this cluster
|
|
47
74
|
*/
|
|
48
75
|
getResult(): ClusterReachabilityResult;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Defer } from '@webex/common';
|
|
5
5
|
import { IP_VERSION } from '../constants';
|
|
6
6
|
import ReachabilityRequest, { ClusterList } from './request';
|
|
7
|
-
import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType } from './reachability.types';
|
|
7
|
+
import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType, Protocol } from './reachability.types';
|
|
8
8
|
import { ClusterReachability } from './clusterReachability';
|
|
9
9
|
import EventsScope from '../common/events/events-scope';
|
|
10
10
|
/**
|
|
@@ -145,13 +145,20 @@ export default class Reachability extends EventsScope {
|
|
|
145
145
|
* Returns true only if ALL protocols (UDP, TCP and TLS) have been tested and none
|
|
146
146
|
* of the media clusters where reachable with any of the protocols. This is done
|
|
147
147
|
* irrespective of the config, so for example:
|
|
148
|
-
* if config.meetings.
|
|
148
|
+
* if config.meetings.enableReachabilityChecks disables TLS,
|
|
149
149
|
* it will return false, because TLS reachability won't be tested,
|
|
150
150
|
* so we can't say for sure that media backend is unreachable over TLS.
|
|
151
151
|
*
|
|
152
152
|
* @returns {boolean}
|
|
153
153
|
*/
|
|
154
154
|
isWebexMediaBackendUnreachable(): Promise<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Checks if any cluster is reachable via the given protocol based on stored reachability results.
|
|
157
|
+
*
|
|
158
|
+
* @param {string} protocol - the protocol to check ('udp', 'tcp', or 'xtls')
|
|
159
|
+
* @returns {Promise<boolean>} true if at least one cluster has a 'reachable' result for the given protocol
|
|
160
|
+
*/
|
|
161
|
+
isAnyClusterReachableViaProtocol(protocol: Protocol): Promise<boolean>;
|
|
155
162
|
/**
|
|
156
163
|
* Get list of all unreachable clusters
|
|
157
164
|
* @returns {array} Unreachable clusters
|
|
@@ -209,7 +216,7 @@ export default class Reachability extends EventsScope {
|
|
|
209
216
|
*/
|
|
210
217
|
protected getStatistics(results: Array<ClusterReachabilityResult & {
|
|
211
218
|
isVideoMesh: boolean;
|
|
212
|
-
}>, protocol:
|
|
219
|
+
}>, protocol: Protocol, isVideoMesh: boolean): {
|
|
213
220
|
min: number;
|
|
214
221
|
max: number;
|
|
215
222
|
average: number;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IP_VERSION, Enum } from '../constants';
|
|
2
2
|
export type Protocol = 'udp' | 'tcp' | 'xtls';
|
|
3
|
+
export type ResolvedReachabilityProtocols = {
|
|
4
|
+
udp: boolean;
|
|
5
|
+
tcp: boolean;
|
|
6
|
+
tls: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ReachabilityProtocolConfig = Partial<Omit<ResolvedReachabilityProtocols, 'udp'>>;
|
|
9
|
+
export type EnableReachabilityChecksConfig = boolean | ReachabilityProtocolConfig;
|
|
3
10
|
/**
|
|
4
11
|
* Events emitted by ReachabilityPeerConnection
|
|
5
12
|
*/
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import { EnableReachabilityChecksConfig, ResolvedReachabilityProtocols } from './reachability.types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves `enableReachabilityChecks` into explicit per-protocol flags.
|
|
4
|
+
* Defaults to all protocols enabled when not configured.
|
|
5
|
+
* UDP is always tested unless reachability is disabled entirely (`false`).
|
|
6
|
+
*
|
|
7
|
+
* @param {EnableReachabilityChecksConfig} enabled value of config.meetings.enableReachabilityChecks
|
|
8
|
+
* @returns {ResolvedReachabilityProtocols} resolved per-protocol flags
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveReachabilityProtocols(enabled?: EnableReachabilityChecksConfig): ResolvedReachabilityProtocols;
|
|
11
|
+
/**
|
|
12
|
+
* Whether any reachability protocol is enabled.
|
|
13
|
+
*
|
|
14
|
+
* @param {EnableReachabilityChecksConfig} config value of config.meetings.enableReachabilityChecks
|
|
15
|
+
* @returns {boolean} true if any protocol is enabled
|
|
16
|
+
*/
|
|
17
|
+
export declare function isReachabilityEnabled(config?: EnableReachabilityChecksConfig): boolean;
|
|
1
18
|
/**
|
|
2
19
|
* Converts a stun url to a turn url
|
|
3
20
|
*
|
|
@@ -32,6 +32,7 @@ export declare enum SkinToneType {
|
|
|
32
32
|
dark = "dark"
|
|
33
33
|
}
|
|
34
34
|
export type Sender = {
|
|
35
|
+
displayName: string;
|
|
35
36
|
participantId: string;
|
|
36
37
|
};
|
|
37
38
|
export type ProcessedReaction = {
|
|
@@ -48,5 +49,8 @@ type RelayEventData = {
|
|
|
48
49
|
};
|
|
49
50
|
export type RelayEvent = {
|
|
50
51
|
data: RelayEventData;
|
|
52
|
+
headers?: {
|
|
53
|
+
route?: string;
|
|
54
|
+
};
|
|
51
55
|
};
|
|
52
56
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SELF_POLICY } from '../constants';
|
|
2
2
|
import { RecordingAction } from './enums';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
canUserStart: (displayHints:
|
|
5
|
-
canUserPause: (displayHints:
|
|
6
|
-
canUserResume: (displayHints:
|
|
7
|
-
canUserStop: (displayHints:
|
|
8
|
-
isPremiseRecordingEnabled: (displayHints:
|
|
4
|
+
canUserStart: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
5
|
+
canUserPause: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
6
|
+
canUserResume: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
7
|
+
canUserStop: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
8
|
+
isPremiseRecordingEnabled: (displayHints: string[], userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
9
9
|
deriveRecordingStates: (action: RecordingAction) => {
|
|
10
10
|
recording: boolean;
|
|
11
11
|
paused: boolean;
|
|
@@ -80,7 +80,7 @@ export default class Roap extends StatelessWebexPlugin {
|
|
|
80
80
|
doTurnDiscovery(meeting: Meeting, isReconnecting: boolean, isForced?: boolean): Promise<TurnDiscoveryResult>;
|
|
81
81
|
generateTurnDiscoveryRequestMessage(meeting: Meeting, isForced: boolean): Promise<{
|
|
82
82
|
roapMessage?: object;
|
|
83
|
-
turnDiscoverySkippedReason:
|
|
83
|
+
turnDiscoverySkippedReason: string;
|
|
84
84
|
}>;
|
|
85
85
|
handleTurnDiscoveryHttpResponse(meeting: Meeting, httpResponse: object): Promise<TurnDiscoveryResult>;
|
|
86
86
|
abortTurnDiscovery(): void;
|