@webex/plugin-meetings 3.11.0-webex-services-ready.1 → 3.12.0-metrics-init-fix-2.1
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/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +90 -3
- 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 +8 -3
- package/dist/config.js.map +1 -1
- package/dist/constants.js +60 -11
- 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 +16 -2
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTree.js +18 -0
- package/dist/hashTree/hashTree.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1655 -538
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +4 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +52 -0
- package/dist/hashTree/utils.js.map +1 -1
- 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/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 +9 -4
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +911 -211
- 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 +8 -7
- 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 +2266 -1069
- 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 -162
- 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 +116 -18
- 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 +12 -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.map +1 -1
- package/dist/reachability/index.js +121 -83
- 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/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/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.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/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +6 -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 +3 -0
- package/dist/types/hashTree/hashTree.d.ts +7 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +315 -30
- package/dist/types/hashTree/types.d.ts +3 -0
- package/dist/types/hashTree/utils.d.ts +24 -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/utils.d.ts +1 -0
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +126 -15
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +28 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
- package/dist/types/media/properties.d.ts +8 -3
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +245 -16
- 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/meetings/index.d.ts +42 -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 +1 -0
- 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 +11 -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 +3 -3
- 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/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 +24 -23
- 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/events.ts +33 -11
- package/src/breakouts/index.ts +110 -1
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +6 -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 +17 -0
- package/src/hashTree/hashTree.ts +17 -0
- package/src/hashTree/hashTreeParser.ts +1482 -361
- package/src/hashTree/types.ts +4 -0
- package/src/hashTree/utils.ts +45 -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/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 +14 -1
- package/src/locus-info/index.ts +975 -203
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/selfUtils.ts +1 -0
- package/src/locus-info/types.ts +33 -1
- package/src/media/MediaConnectionAwaiter.ts +62 -5
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +11 -4
- package/src/meeting/in-meeting-actions.ts +20 -0
- package/src/meeting/index.ts +1258 -166
- 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 +319 -117
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- 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 +12 -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 +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- 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/roap/turnDiscovery.ts +9 -1
- 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/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +191 -2
- 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 +66 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +4528 -171
- package/test/unit/spec/hashTree/utils.ts +125 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- 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 +200 -56
- package/test/unit/spec/locus-info/index.js +1848 -164
- 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 +35 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
- package/test/unit/spec/meeting/index.js +3611 -334
- 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 +1138 -86
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- 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/index.ts +128 -46
- 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/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +837 -39
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
3
3
|
import { ClientEvent, ClientEventLeaveReason } from '@webex/internal-plugin-metrics';
|
|
4
|
-
import { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
4
|
+
import type { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
5
5
|
import { MediaType, StatsAnalyzer, NetworkQualityMonitor, StatsMonitor } from '@webex/internal-media-core';
|
|
6
|
+
import { DataChannelTokenType } from '@webex/internal-plugin-llm';
|
|
6
7
|
import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
7
8
|
import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
8
9
|
import { type TurnServerInfo } from '../roap/types';
|
|
@@ -15,7 +16,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
|
|
|
15
16
|
import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
|
|
16
17
|
import { MediaRequestManager } from '../multistream/mediaRequestManager';
|
|
17
18
|
import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
|
|
18
|
-
import {
|
|
19
|
+
import { SkinToneType } from '../reactions/reactions.type';
|
|
19
20
|
import InMeetingActions from './in-meeting-actions';
|
|
20
21
|
import RecordingController from '../recording-controller';
|
|
21
22
|
import ControlsOptionsManager from '../controls-options-manager';
|
|
@@ -23,7 +24,7 @@ import { LocusMediaRequest } from './locusMediaRequest';
|
|
|
23
24
|
import { BrbState } from './brbState';
|
|
24
25
|
import { SetStageOptions } from './request.type';
|
|
25
26
|
import { Invitee } from './type';
|
|
26
|
-
import { DataSet } from '../hashTree/hashTreeParser';
|
|
27
|
+
import { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
|
|
27
28
|
import { LocusDTO } from '../locus-info/types';
|
|
28
29
|
export type CaptionData = {
|
|
29
30
|
id: string;
|
|
@@ -70,6 +71,7 @@ export type AddMediaOptions = {
|
|
|
70
71
|
remoteMediaManagerConfig?: RemoteMediaManagerConfiguration;
|
|
71
72
|
bundlePolicy?: BundlePolicy;
|
|
72
73
|
allowMediaInLobby?: boolean;
|
|
74
|
+
allowPublishMediaInLobby?: boolean;
|
|
73
75
|
additionalMediaOptions?: AdditionalMediaOptions;
|
|
74
76
|
};
|
|
75
77
|
export type AdditionalMediaOptions = {
|
|
@@ -346,6 +348,16 @@ type FetchMeetingInfoParams = {
|
|
|
346
348
|
* @property {number} networkQualityScore - {1|0} 1 indicates acceptable uplink 0 indicates unacceptable uplink based on threshold
|
|
347
349
|
* @memberof Meeting
|
|
348
350
|
*/
|
|
351
|
+
/**
|
|
352
|
+
* Stores an event so all events can be later retrieved via a console command for debugging.
|
|
353
|
+
* @param {string} type
|
|
354
|
+
* @param {Object} data
|
|
355
|
+
* @returns {void}
|
|
356
|
+
*/
|
|
357
|
+
export declare function storeEventForDebugging(type: string, data: {
|
|
358
|
+
eventType: any;
|
|
359
|
+
stateElementsMessage?: HashTreeMessage;
|
|
360
|
+
}): void;
|
|
349
361
|
/**
|
|
350
362
|
* @description Meeting is the crux of the plugin
|
|
351
363
|
* @export
|
|
@@ -358,10 +370,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
358
370
|
breakouts: any;
|
|
359
371
|
simultaneousInterpretation: any;
|
|
360
372
|
annotation: any;
|
|
373
|
+
aiEnableRequest: any;
|
|
361
374
|
webinar: any;
|
|
362
375
|
conversationUrl: string;
|
|
363
376
|
callStateForMetrics: CallStateForMetrics;
|
|
364
|
-
destination: string;
|
|
377
|
+
destination: string | LocusDTO;
|
|
365
378
|
destinationType: DESTINATION_TYPE;
|
|
366
379
|
deviceUrl: string;
|
|
367
380
|
hostId: string;
|
|
@@ -399,12 +412,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
399
412
|
floorGrantPending: boolean;
|
|
400
413
|
hasJoinedOnce: boolean;
|
|
401
414
|
hasWebsocketConnected: boolean;
|
|
415
|
+
private mercuryOnlineHandler?;
|
|
416
|
+
private mercuryOfflineHandler?;
|
|
402
417
|
inMeetingActions: InMeetingActions;
|
|
403
418
|
isLocalShareLive: boolean;
|
|
404
419
|
isRoapInProgress: boolean;
|
|
405
420
|
keepAliveTimerId: NodeJS.Timeout;
|
|
406
421
|
lastVideoLayoutInfo: any;
|
|
407
422
|
locusInfo: any;
|
|
423
|
+
isUserUnadmitted?: boolean;
|
|
424
|
+
joinedWith?: any;
|
|
425
|
+
selfId?: string;
|
|
426
|
+
roles: any[];
|
|
427
|
+
canNotViewTheParticipantList?: boolean;
|
|
408
428
|
locusMediaRequest?: LocusMediaRequest;
|
|
409
429
|
mediaProperties: MediaProperties;
|
|
410
430
|
mediaRequestManagers: {
|
|
@@ -438,7 +458,6 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
438
458
|
endCallInitJoinReq: any;
|
|
439
459
|
endJoinReqResp: any;
|
|
440
460
|
endLocalSDPGenRemoteSDPRecvDelay: any;
|
|
441
|
-
joinedWith: any;
|
|
442
461
|
locusId: any;
|
|
443
462
|
startCallInitJoinReq: any;
|
|
444
463
|
startJoinReqResp: any;
|
|
@@ -453,12 +472,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
453
472
|
permissionTokenReceivedLocalTime: number;
|
|
454
473
|
resourceId: any;
|
|
455
474
|
resourceUrl: string;
|
|
456
|
-
selfId: string;
|
|
457
475
|
state: any;
|
|
458
476
|
localAudioStreamMuteStateHandler: () => void;
|
|
459
477
|
localVideoStreamMuteStateHandler: () => void;
|
|
460
478
|
localOutputTrackChangeHandler: () => void;
|
|
461
|
-
|
|
479
|
+
localConstraintsChangeHandler: () => void;
|
|
462
480
|
environment: string;
|
|
463
481
|
namespace: string;
|
|
464
482
|
allowMediaInLobby: boolean;
|
|
@@ -476,13 +494,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
476
494
|
isMoveToInProgress: boolean;
|
|
477
495
|
registrationIdStatus: string;
|
|
478
496
|
brbState: BrbState;
|
|
497
|
+
private emittedBreakoutJoinResponseMoveIds;
|
|
498
|
+
private promisesWaitingForPropUpdate;
|
|
479
499
|
voiceaListenerCallbacks: object;
|
|
480
500
|
private addMediaData;
|
|
481
501
|
private sendSlotManager;
|
|
482
502
|
private deferSDPAnswer?;
|
|
483
503
|
private sdpResponseTimer?;
|
|
484
504
|
private hasMediaConnectionConnectedAtLeastOnce;
|
|
485
|
-
private joinWithMediaRetryInfo
|
|
505
|
+
private joinWithMediaRetryInfo;
|
|
486
506
|
private connectionStateHandler?;
|
|
487
507
|
private iceCandidateErrors;
|
|
488
508
|
private iceCandidatesCount;
|
|
@@ -499,6 +519,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
499
519
|
* @memberof Meeting
|
|
500
520
|
*/
|
|
501
521
|
constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
|
|
522
|
+
/**
|
|
523
|
+
* Get the ingress payload type for a given media type and codec mime type
|
|
524
|
+
* @param {MediaType} mediaType - The media type
|
|
525
|
+
* @param {MediaCodecMimeType} codecMimeType - The codec mime type
|
|
526
|
+
* @returns {number | undefined} - The ingress payload type
|
|
527
|
+
* @private
|
|
528
|
+
* @memberof Meeting
|
|
529
|
+
*/
|
|
530
|
+
private getIngressPayloadTypeCallback;
|
|
502
531
|
/**
|
|
503
532
|
* returns meeting is joined
|
|
504
533
|
* @private
|
|
@@ -681,6 +710,40 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
681
710
|
* @returns {Promise}
|
|
682
711
|
*/
|
|
683
712
|
postMetrics(eventName: ClientEvent['name']): void;
|
|
713
|
+
/**
|
|
714
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
715
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
716
|
+
* flows) and then tries to complete the metric.
|
|
717
|
+
* @param {string} meetingId meeting id
|
|
718
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
719
|
+
* @returns {void}
|
|
720
|
+
* @private
|
|
721
|
+
* @memberof Meeting
|
|
722
|
+
*/
|
|
723
|
+
private onLocusSyncLlmMessage;
|
|
724
|
+
/**
|
|
725
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
726
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
727
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
728
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
729
|
+
* metric fires as soon as the second milestone is in.
|
|
730
|
+
* @param {string} meetingId meeting id
|
|
731
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
732
|
+
* @returns {void}
|
|
733
|
+
* @private
|
|
734
|
+
* @memberof Meeting
|
|
735
|
+
*/
|
|
736
|
+
private tryCompleteLocusSyncLatency;
|
|
737
|
+
/**
|
|
738
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
739
|
+
* measurement.
|
|
740
|
+
* @param {string} meetingId meeting id
|
|
741
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
742
|
+
* @returns {void}
|
|
743
|
+
* @private
|
|
744
|
+
* @memberof Meeting
|
|
745
|
+
*/
|
|
746
|
+
private emitLocusSyncCompleteMetric;
|
|
684
747
|
/**
|
|
685
748
|
* Proxy function for all the listener set ups
|
|
686
749
|
* @returns {undefined}
|
|
@@ -955,7 +1018,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
955
1018
|
*/
|
|
956
1019
|
mute(memberId: string, mute?: boolean): any;
|
|
957
1020
|
/**
|
|
958
|
-
* Transfer the moderator role to another eligible member
|
|
1021
|
+
* Transfer the moderator role to another eligible member.
|
|
1022
|
+
*
|
|
1023
|
+
* If the target member is currently joined in the current session, the request is
|
|
1024
|
+
* sent against the current locus. Otherwise, we search the breakout sessions and,
|
|
1025
|
+
* when the member is found in one, we send the request against that breakout
|
|
1026
|
+
* session's locus url instead.
|
|
959
1027
|
* @param {String} memberId
|
|
960
1028
|
* @param {Boolean} moderator
|
|
961
1029
|
* @returns {Promise} see #members.transferHostToMember
|
|
@@ -1036,6 +1104,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1036
1104
|
* @memberof Meeting
|
|
1037
1105
|
*/
|
|
1038
1106
|
setSipUri(sipUri: string): void;
|
|
1107
|
+
/**
|
|
1108
|
+
* After initial locus setup, refreshes destination with synced locus data and optionally
|
|
1109
|
+
* performs deferred meeting info fetch when initial locus was incomplete.
|
|
1110
|
+
* @param {LocusDTO} locus
|
|
1111
|
+
* @returns {void}
|
|
1112
|
+
*/
|
|
1113
|
+
finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
|
|
1039
1114
|
/**
|
|
1040
1115
|
* Set the locus info the class instance. Should be called with the parsed locus
|
|
1041
1116
|
* we got in the join response.
|
|
@@ -1060,6 +1135,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1060
1135
|
host: object;
|
|
1061
1136
|
selfId: string;
|
|
1062
1137
|
dataSets: DataSet[];
|
|
1138
|
+
metadata: Metadata;
|
|
1063
1139
|
}): void;
|
|
1064
1140
|
/**
|
|
1065
1141
|
* Upload logs for the current meeting
|
|
@@ -1147,6 +1223,22 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1147
1223
|
* @memberof Meeting
|
|
1148
1224
|
*/
|
|
1149
1225
|
setMercuryListener(): void;
|
|
1226
|
+
/**
|
|
1227
|
+
* Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
|
|
1228
|
+
* by setMercuryListener(). Must be called before Locus /leave to avoid
|
|
1229
|
+
* unnecessary syncs/metrics triggered by events received while leaving
|
|
1230
|
+
* (per Locus team recommendation).
|
|
1231
|
+
*
|
|
1232
|
+
* Mercury is a process-wide singleton shared with other plugins, so we
|
|
1233
|
+
* pass the bound handler refs to .off() to avoid clearing every listener
|
|
1234
|
+
* for ONLINE/OFFLINE on the shared emitter.
|
|
1235
|
+
*
|
|
1236
|
+
* Idempotent: subsequent calls are no-ops because the handler refs are
|
|
1237
|
+
* cleared after detaching.
|
|
1238
|
+
* @private
|
|
1239
|
+
* @returns {void}
|
|
1240
|
+
*/
|
|
1241
|
+
private stopListeningForMercuryEvents;
|
|
1150
1242
|
/**
|
|
1151
1243
|
* Close the peer connections and remove them from the class.
|
|
1152
1244
|
* Cleanup any media connection related things.
|
|
@@ -1283,6 +1375,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1283
1375
|
* @returns {void}
|
|
1284
1376
|
*/
|
|
1285
1377
|
private processLocusLLMEvent;
|
|
1378
|
+
/**
|
|
1379
|
+
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1380
|
+
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1381
|
+
* @returns {boolean}
|
|
1382
|
+
*/
|
|
1383
|
+
private isRelayEventRouteValid;
|
|
1286
1384
|
/**
|
|
1287
1385
|
* Callback called when a relay event is received from meeting LLM Connection
|
|
1288
1386
|
* @param {RelayEvent} e Event object coming from LLM Connection
|
|
@@ -1302,6 +1400,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1302
1400
|
* @returns{void}
|
|
1303
1401
|
*/
|
|
1304
1402
|
private triggerStopReceivingTranscriptionEvent;
|
|
1403
|
+
/**
|
|
1404
|
+
* Restores LLM subchannel subscriptions after reconnect when captions are active.
|
|
1405
|
+
* @returns {void}
|
|
1406
|
+
*/
|
|
1407
|
+
private restoreLLMSubscriptionsIfNeeded;
|
|
1305
1408
|
/**
|
|
1306
1409
|
* This is a callback for the LLM event that is triggered when it comes online
|
|
1307
1410
|
* This method in turn will trigger an event to the developers that the LLM is connected
|
|
@@ -1335,13 +1438,90 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1335
1438
|
* @returns {void}
|
|
1336
1439
|
*/
|
|
1337
1440
|
private clearLLMHealthCheckTimer;
|
|
1441
|
+
/**
|
|
1442
|
+
* Removes LLM event listeners and clears the health check timer.
|
|
1443
|
+
* Must be called before Locus /leave to avoid unnecessary syncs triggered
|
|
1444
|
+
* by events received while leaving (per Locus team recommendation).
|
|
1445
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1446
|
+
* matching listener is registered.
|
|
1447
|
+
* @private
|
|
1448
|
+
* @returns {void}
|
|
1449
|
+
*/
|
|
1450
|
+
private stopListeningForLLMEvents;
|
|
1451
|
+
/**
|
|
1452
|
+
* Stops listening on every event bus (LLM, Mercury, voicea/transcription,
|
|
1453
|
+
* annotation) that could otherwise deliver events to this meeting while
|
|
1454
|
+
* Locus is processing /leave or /end. Per the Locus team recommendation,
|
|
1455
|
+
* this must run before the Locus request is dispatched to avoid
|
|
1456
|
+
* unnecessary syncs triggered by in-flight events.
|
|
1457
|
+
*
|
|
1458
|
+
* Voicea (transcription) subscribes to llm 'event:relay.event' internally,
|
|
1459
|
+
* and the annotation plugin subscribes to both mercury and llm, so both
|
|
1460
|
+
* must be torn down alongside the direct LLM/Mercury listeners.
|
|
1461
|
+
*
|
|
1462
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1463
|
+
* matching listener is registered, and stopTranscription is guarded.
|
|
1464
|
+
* @private
|
|
1465
|
+
* @returns {void}
|
|
1466
|
+
*/
|
|
1467
|
+
private stopListeningForMeetingEvents;
|
|
1468
|
+
/**
|
|
1469
|
+
* Disconnects and cleans up the default LLM session listeners/timers.
|
|
1470
|
+
*
|
|
1471
|
+
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
1472
|
+
* current owner of the default LLM session (or when no owner is recorded).
|
|
1473
|
+
* Event listeners belonging to this meeting instance are always detached
|
|
1474
|
+
* so they do not receive another meeting's relay events.
|
|
1475
|
+
*
|
|
1476
|
+
* @param {Object} options
|
|
1477
|
+
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
1478
|
+
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1479
|
+
* @returns {Promise<void>}
|
|
1480
|
+
*/
|
|
1481
|
+
private cleanupLLMConneciton;
|
|
1482
|
+
/**
|
|
1483
|
+
* Clears data channel tokens associated with this meeting ownership.
|
|
1484
|
+
* Ownership checks are enforced in internal-plugin-llm.
|
|
1485
|
+
* @returns {void}
|
|
1486
|
+
*/
|
|
1487
|
+
clearDataChannelToken(): void;
|
|
1488
|
+
/**
|
|
1489
|
+
* Saves the data channel tokens from the join response into LLM so that
|
|
1490
|
+
* updateLLMConnection / updatePSDataChannel don't need to fetch them from locusInfo.
|
|
1491
|
+
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1492
|
+
* @returns {void}
|
|
1493
|
+
*/
|
|
1494
|
+
saveDataChannelToken(join: any): void;
|
|
1495
|
+
/**
|
|
1496
|
+
* Ensures default-session data channel token exists after lobby admission.
|
|
1497
|
+
* Some lobby users do not receive a token until they are admitted.
|
|
1498
|
+
* @returns {Promise<boolean>} true when a new token is fetched and cached
|
|
1499
|
+
*/
|
|
1500
|
+
private ensureDefaultDatachannelTokenAfterAdmit;
|
|
1338
1501
|
/**
|
|
1339
1502
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
1340
1503
|
* It will also disconnect if called when the meeting has ended
|
|
1341
|
-
* @param {
|
|
1504
|
+
* @param {Object} [options]
|
|
1505
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
1342
1506
|
* @returns {Promise}
|
|
1343
1507
|
*/
|
|
1344
|
-
updateLLMConnection(
|
|
1508
|
+
updateLLMConnection({ isInitialJoinPhase }?: {
|
|
1509
|
+
isInitialJoinPhase?: boolean;
|
|
1510
|
+
}): Promise<any>;
|
|
1511
|
+
/**
|
|
1512
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
1513
|
+
* @param {string | undefined} breakoutMoveId
|
|
1514
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
1515
|
+
* @returns {boolean}
|
|
1516
|
+
*/
|
|
1517
|
+
private shouldEmitBreakoutJoinResponseMetric;
|
|
1518
|
+
/**
|
|
1519
|
+
* Sends LLM connect latencies for initial join flow.
|
|
1520
|
+
* @param {RegisterAndConnectTiming} timings
|
|
1521
|
+
* @param {any} [error]
|
|
1522
|
+
* @returns {void}
|
|
1523
|
+
*/
|
|
1524
|
+
private sendLLMConnectMetric;
|
|
1345
1525
|
/**
|
|
1346
1526
|
* Use phone for meeting audio
|
|
1347
1527
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -1419,12 +1599,35 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1419
1599
|
*/
|
|
1420
1600
|
setupStatsAnalyzerEventHandlers: () => void;
|
|
1421
1601
|
getMediaConnectionDebugId(): string;
|
|
1602
|
+
/**
|
|
1603
|
+
* Checks if the error indicates that Locus dropped us from the meeting,
|
|
1604
|
+
* either directly on the error or wrapped inside an AddMediaFailed cause.
|
|
1605
|
+
* This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
|
|
1606
|
+
*
|
|
1607
|
+
* @param {Error} error
|
|
1608
|
+
* @returns {boolean}
|
|
1609
|
+
*/
|
|
1610
|
+
private isErrorMeaningLocusDroppedUs;
|
|
1611
|
+
/**
|
|
1612
|
+
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1613
|
+
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
1614
|
+
* transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
|
|
1615
|
+
* other UDP traffic.
|
|
1616
|
+
*
|
|
1617
|
+
* For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
|
|
1618
|
+
* but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
|
|
1619
|
+
* see the code in establishMediaConnection()
|
|
1620
|
+
*
|
|
1621
|
+
* @param {Error} prevError - The error from the previous addMedia attempt
|
|
1622
|
+
* @returns {Promise<boolean>}
|
|
1623
|
+
*/
|
|
1624
|
+
private shouldRetryMediaWithOnlyTurnTLS;
|
|
1422
1625
|
/**
|
|
1423
1626
|
* Creates a webrtc media connection and publishes streams to it
|
|
1424
1627
|
*
|
|
1425
1628
|
* @param {Object} turnServerInfo TURN server information
|
|
1426
1629
|
* @param {BundlePolicy} [bundlePolicy] Bundle policy settings
|
|
1427
|
-
* @param {
|
|
1630
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
|
|
1428
1631
|
* @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
|
|
1429
1632
|
*/
|
|
1430
1633
|
private createMediaConnection;
|
|
@@ -1550,6 +1753,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1550
1753
|
* @returns {void}
|
|
1551
1754
|
*/
|
|
1552
1755
|
private setupLocusMediaRequest;
|
|
1756
|
+
/**
|
|
1757
|
+
* Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
|
|
1758
|
+
* @returns {Promise<void>}
|
|
1759
|
+
* @private
|
|
1760
|
+
* @memberof Meeting
|
|
1761
|
+
*/
|
|
1762
|
+
private waitForSelfUrlChange;
|
|
1553
1763
|
/**
|
|
1554
1764
|
* Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
|
|
1555
1765
|
*
|
|
@@ -1563,14 +1773,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1563
1773
|
* Internal version of addMedia() with some more arguments for finer control of its behavior
|
|
1564
1774
|
*
|
|
1565
1775
|
* @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
|
|
1566
|
-
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1567
1776
|
* @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
|
|
1777
|
+
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1778
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
|
|
1568
1779
|
* @param {AddMediaOptions} options - same as options of the public addMedia() method
|
|
1569
1780
|
* @returns {Promise<void>}
|
|
1570
1781
|
* @protected
|
|
1571
1782
|
* @memberof Meeting
|
|
1572
1783
|
*/
|
|
1573
|
-
protected addMediaInternal(icePhaseCallback: () => string,
|
|
1784
|
+
protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
|
|
1574
1785
|
/**
|
|
1575
1786
|
* Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
|
|
1576
1787
|
* @returns {Boolean}
|
|
@@ -1909,7 +2120,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1909
2120
|
* @public
|
|
1910
2121
|
* @memberof Meeting
|
|
1911
2122
|
*/
|
|
1912
|
-
clearMeetingData: () => void
|
|
2123
|
+
clearMeetingData: () => Promise<void>;
|
|
1913
2124
|
/**
|
|
1914
2125
|
* starts keepAlives being sent
|
|
1915
2126
|
* @returns {void}
|
|
@@ -1933,7 +2144,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1933
2144
|
* @public
|
|
1934
2145
|
* @memberof Meeting
|
|
1935
2146
|
*/
|
|
1936
|
-
sendReaction(reactionType:
|
|
2147
|
+
sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
|
|
1937
2148
|
/**
|
|
1938
2149
|
* Extend the current meeting duration.
|
|
1939
2150
|
*
|
|
@@ -2087,5 +2298,23 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2087
2298
|
* @memberof Meetings
|
|
2088
2299
|
*/
|
|
2089
2300
|
cancelSipCallOut(participantId: string): Promise<any>;
|
|
2301
|
+
/**
|
|
2302
|
+
* Method to get new data
|
|
2303
|
+
* @returns {Promise}
|
|
2304
|
+
*/
|
|
2305
|
+
refreshDataChannelToken(): Promise<{
|
|
2306
|
+
body: {
|
|
2307
|
+
datachannelToken: any;
|
|
2308
|
+
dataChannelTokenType: DataChannelTokenType;
|
|
2309
|
+
};
|
|
2310
|
+
}>;
|
|
2311
|
+
/**
|
|
2312
|
+
* Determines the current data channel token type based on the meeting state.
|
|
2313
|
+
*
|
|
2314
|
+
* variant should be used when connecting to the LLM data channel.
|
|
2315
|
+
*
|
|
2316
|
+
* @returns {DataChannelTokenType} The token type representing the current session mode.
|
|
2317
|
+
*/
|
|
2318
|
+
getDataChannelTokenType(): DataChannelTokenType;
|
|
2090
2319
|
}
|
|
2091
2320
|
export {};
|
|
@@ -32,6 +32,8 @@ export type Config = {
|
|
|
32
32
|
correlationId: string;
|
|
33
33
|
meetingId: string;
|
|
34
34
|
preferTranscoding: boolean;
|
|
35
|
+
getCurrentSelfUrl: () => string | undefined;
|
|
36
|
+
waitForSelfUrlChange: () => Promise<void>;
|
|
35
37
|
};
|
|
36
38
|
/**
|
|
37
39
|
* This class manages all /media API requests to Locus. Every call to that
|
|
@@ -67,6 +69,16 @@ export declare class LocusMediaRequest extends WebexPlugin {
|
|
|
67
69
|
* Prepares the uri and body for the media request to be sent to Locus
|
|
68
70
|
*/
|
|
69
71
|
private sendHttpRequest;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the latest selfUrl for this meeting, falling back to the value
|
|
74
|
+
* captured when the request was enqueued.
|
|
75
|
+
*/
|
|
76
|
+
private getCurrentSelfUrl;
|
|
77
|
+
/**
|
|
78
|
+
* Decides whether a 409 warrants a retry against the meeting's latest
|
|
79
|
+
* selfUrl.
|
|
80
|
+
*/
|
|
81
|
+
private shouldRetryOnSelfUrlChange;
|
|
70
82
|
/**
|
|
71
83
|
* Sends a media request to Locus
|
|
72
84
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
|
-
import { SendReactionOptions, BrbOptions, ToggleReactionsOptions, PostMeetingDataConsentOptions, SynchronizeVideoLayout } from './request.type';
|
|
2
|
+
import { SendReactionOptions, BrbOptions, ToggleReactionsOptions, PostMeetingDataConsentOptions, SynchronizeVideoLayout, fetchDataChannelTokenOptions } from './request.type';
|
|
3
3
|
import { AnnotationInfo } from '../annotation/annotation.types';
|
|
4
4
|
import { ClientMediaPreferences } from '../reachability/reachability.types';
|
|
5
5
|
/**
|
|
@@ -63,6 +63,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
63
63
|
locale?: string;
|
|
64
64
|
deviceCapabilities?: Array<string>;
|
|
65
65
|
liveAnnotationSupported: boolean;
|
|
66
|
+
enableSimultaneousInterpretation: boolean;
|
|
66
67
|
alias?: string;
|
|
67
68
|
clientMediaPreferences: ClientMediaPreferences;
|
|
68
69
|
}): Promise<any>;
|
|
@@ -364,4 +365,19 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
364
365
|
* @returns {Promise} The API response
|
|
365
366
|
*/
|
|
366
367
|
cancelSipCallOut(participantId: any): Promise<any>;
|
|
368
|
+
/**
|
|
369
|
+
* Sends a request to retrieve the datachannel authorization token for a participant.
|
|
370
|
+
*
|
|
371
|
+
* For regular meeting data channel:
|
|
372
|
+
* GET /locus/api/v1/loci/{uuid:lid}/participant/{uuid:pid}/datachannel/token
|
|
373
|
+
*
|
|
374
|
+
* For practice session data channel:
|
|
375
|
+
* GET /locus/api/v1/loci/{uuid:lid}/participant/{uuid:pid}/practiceSession/datachannel/token
|
|
376
|
+
*
|
|
377
|
+
* @param {string} locusUrl - The locus url.
|
|
378
|
+
* @param {string} requestingParticipantId - The participant UUID.
|
|
379
|
+
* @param {boolean} [isPracticeSession=false] - Whether to get the practice session token.
|
|
380
|
+
* @returns {Promise<{datachannelToken: string}>}
|
|
381
|
+
*/
|
|
382
|
+
fetchDatachannelToken({ locusUrl, requestingParticipantId, isPracticeSession, }: fetchDataChannelTokenOptions): Promise<any>;
|
|
367
383
|
}
|
|
@@ -94,4 +94,9 @@ export type SetStageVideoLayout = {
|
|
|
94
94
|
export type UnsetStageVideoLayout = {
|
|
95
95
|
overrideDefault: false;
|
|
96
96
|
};
|
|
97
|
+
export type fetchDataChannelTokenOptions = {
|
|
98
|
+
locusUrl: string;
|
|
99
|
+
requestingParticipantId: string;
|
|
100
|
+
isPracticeSession: boolean;
|
|
101
|
+
};
|
|
97
102
|
export type SynchronizeVideoLayout = SetStageVideoLayout | UnsetStageVideoLayout;
|
|
@@ -2,6 +2,34 @@ import { LocalCameraStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
|
2
2
|
import { SELF_POLICY, IP_VERSION } from '../constants';
|
|
3
3
|
declare const MeetingUtil: {
|
|
4
4
|
parseLocusJoin: (response: any) => any;
|
|
5
|
+
/**
|
|
6
|
+
* Sanitizes a WebSocket URL by extracting only protocol, host, and pathname
|
|
7
|
+
* Returns concatenated protocol + host + pathname for safe logging
|
|
8
|
+
* Note: This is used for logging only; URL matching uses partial matching via _urlsPartiallyMatch
|
|
9
|
+
* @param {string} urlString - The URL to sanitize
|
|
10
|
+
* @returns {string} Sanitized URL or empty string if parsing fails
|
|
11
|
+
*/
|
|
12
|
+
sanitizeWebSocketUrl: (urlString: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if two URLs partially match using an endsWith approach
|
|
15
|
+
* Combines host and pathname, then checks if one ends with the other
|
|
16
|
+
* This handles cases where one URL goes through a proxy (e.g., /webproxy/) while the other is direct
|
|
17
|
+
* @param {string} url1 - First URL to compare
|
|
18
|
+
* @param {string} url2 - Second URL to compare
|
|
19
|
+
* @returns {boolean} True if one URL path ends with the other (partial match), false otherwise
|
|
20
|
+
*/
|
|
21
|
+
_urlsPartiallyMatch: (url1: string, url2: string) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Gets socket URL information for metrics, including whether the socket URLs match
|
|
24
|
+
* Uses partial matching to handle proxy URLs (e.g., URLs with /webproxy/ prefix)
|
|
25
|
+
* @param {Object} webex - The webex instance
|
|
26
|
+
* @returns {Object} Object with hasMismatchedSocket, mercurySocketUrl, and deviceSocketUrl properties
|
|
27
|
+
*/
|
|
28
|
+
getSocketUrlInfo: (webex: any) => {
|
|
29
|
+
hasMismatchedSocket: boolean;
|
|
30
|
+
mercurySocketUrl: string;
|
|
31
|
+
deviceSocketUrl: string;
|
|
32
|
+
};
|
|
5
33
|
remoteUpdateAudioVideo: (meeting: any, audioMuted?: boolean, videoMuted?: boolean) => any;
|
|
6
34
|
hasOwner: (info: any) => any;
|
|
7
35
|
isOwnerSelf: (owner: any, selfId: any) => boolean;
|
|
@@ -59,6 +87,7 @@ declare const MeetingUtil: {
|
|
|
59
87
|
canUserLowerAllHands: (displayHints: any) => any;
|
|
60
88
|
canUserLowerSomeoneElsesHand: (displayHints: any) => any;
|
|
61
89
|
bothLeaveAndEndMeetingAvailable: (displayHints: any) => any;
|
|
90
|
+
requireHostEndMeetingBeforeLeave: (displayHints: any) => any;
|
|
62
91
|
canManageBreakout: (displayHints: any) => any;
|
|
63
92
|
canStartBreakout: (displayHints: any) => boolean;
|
|
64
93
|
canBroadcastMessageToBreakout: (displayHints: any, policies?: {}) => boolean;
|
|
@@ -104,6 +133,13 @@ declare const MeetingUtil: {
|
|
|
104
133
|
* @returns {void}
|
|
105
134
|
*/
|
|
106
135
|
addSequence: (meeting: any, requestBody: any) => void;
|
|
136
|
+
/**
|
|
137
|
+
* Checks if Locus API response contains a Locus DTO
|
|
138
|
+
*
|
|
139
|
+
* @param {any} response http response from Locus API call
|
|
140
|
+
* @returns {boolean} true if response contains a Locus DTO
|
|
141
|
+
*/
|
|
142
|
+
isLocusDtoInAPIResponse(response: any): any;
|
|
107
143
|
/**
|
|
108
144
|
* Updates the locus info for the meeting with the locus
|
|
109
145
|
* information returned from API requests made to Locus
|
|
@@ -115,6 +151,10 @@ declare const MeetingUtil: {
|
|
|
115
151
|
updateLocusFromApiResponse: (meeting: any, response: any) => any;
|
|
116
152
|
generateBuildLocusDeltaRequestOptions: (originalMeeting: any) => (originalOptions: any) => any;
|
|
117
153
|
generateLocusDeltaRequest: (originalMeeting: any) => (originalOptions: any) => any;
|
|
154
|
+
canAttendeeRequestAiAssistantEnabled: (displayHints?: any[], roles?: any[]) => boolean;
|
|
155
|
+
attendeeRequestAiAssistantDeclinedAll: (displayHints?: any[]) => boolean;
|
|
156
|
+
isAnonymizeDisplayNamesEnabled: (displayHints: any) => any;
|
|
157
|
+
canViewTheParticipantList: (displayHints: any, canNotViewTheParticipantList: boolean) => any;
|
|
118
158
|
selfSupportsFeature: (feature: SELF_POLICY, userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
119
159
|
parseInterpretationInfo: (meeting: any, meetingInfo: any) => void;
|
|
120
160
|
/**
|