@webex/plugin-meetings 3.11.0-webex-services-ready.1 → 3.12.0-llmrefactor.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 +58 -13
- 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 +124 -7
- 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 +332 -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 +914 -212
- 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 +2286 -1129
- 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/annotation/index.d.ts +19 -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 +271 -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 +611 -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 +62 -12
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +143 -3
- 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 +217 -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 +976 -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 +1244 -224
- 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 +415 -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 +228 -134
- 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 +305 -18
- 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 +388 -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 +1861 -149
- 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 +3573 -353
- 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 +1087 -167
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -1,9 +1,11 @@
|
|
|
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';
|
|
8
|
+
import { type VoiceaChannel } from '@webex/internal-plugin-voicea';
|
|
7
9
|
import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
8
10
|
import { type TurnServerInfo } from '../roap/types';
|
|
9
11
|
import { type BundlePolicy } from '../media';
|
|
@@ -15,7 +17,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
|
|
|
15
17
|
import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
|
|
16
18
|
import { MediaRequestManager } from '../multistream/mediaRequestManager';
|
|
17
19
|
import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
|
|
18
|
-
import {
|
|
20
|
+
import { SkinToneType } from '../reactions/reactions.type';
|
|
19
21
|
import InMeetingActions from './in-meeting-actions';
|
|
20
22
|
import RecordingController from '../recording-controller';
|
|
21
23
|
import ControlsOptionsManager from '../controls-options-manager';
|
|
@@ -23,7 +25,7 @@ import { LocusMediaRequest } from './locusMediaRequest';
|
|
|
23
25
|
import { BrbState } from './brbState';
|
|
24
26
|
import { SetStageOptions } from './request.type';
|
|
25
27
|
import { Invitee } from './type';
|
|
26
|
-
import { DataSet } from '../hashTree/hashTreeParser';
|
|
28
|
+
import { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
|
|
27
29
|
import { LocusDTO } from '../locus-info/types';
|
|
28
30
|
export type CaptionData = {
|
|
29
31
|
id: string;
|
|
@@ -70,6 +72,7 @@ export type AddMediaOptions = {
|
|
|
70
72
|
remoteMediaManagerConfig?: RemoteMediaManagerConfiguration;
|
|
71
73
|
bundlePolicy?: BundlePolicy;
|
|
72
74
|
allowMediaInLobby?: boolean;
|
|
75
|
+
allowPublishMediaInLobby?: boolean;
|
|
73
76
|
additionalMediaOptions?: AdditionalMediaOptions;
|
|
74
77
|
};
|
|
75
78
|
export type AdditionalMediaOptions = {
|
|
@@ -346,6 +349,16 @@ type FetchMeetingInfoParams = {
|
|
|
346
349
|
* @property {number} networkQualityScore - {1|0} 1 indicates acceptable uplink 0 indicates unacceptable uplink based on threshold
|
|
347
350
|
* @memberof Meeting
|
|
348
351
|
*/
|
|
352
|
+
/**
|
|
353
|
+
* Stores an event so all events can be later retrieved via a console command for debugging.
|
|
354
|
+
* @param {string} type
|
|
355
|
+
* @param {Object} data
|
|
356
|
+
* @returns {void}
|
|
357
|
+
*/
|
|
358
|
+
export declare function storeEventForDebugging(type: string, data: {
|
|
359
|
+
eventType: any;
|
|
360
|
+
stateElementsMessage?: HashTreeMessage;
|
|
361
|
+
}): void;
|
|
349
362
|
/**
|
|
350
363
|
* @description Meeting is the crux of the plugin
|
|
351
364
|
* @export
|
|
@@ -358,10 +371,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
358
371
|
breakouts: any;
|
|
359
372
|
simultaneousInterpretation: any;
|
|
360
373
|
annotation: any;
|
|
374
|
+
aiEnableRequest: any;
|
|
361
375
|
webinar: any;
|
|
362
376
|
conversationUrl: string;
|
|
363
377
|
callStateForMetrics: CallStateForMetrics;
|
|
364
|
-
destination: string;
|
|
378
|
+
destination: string | LocusDTO;
|
|
365
379
|
destinationType: DESTINATION_TYPE;
|
|
366
380
|
deviceUrl: string;
|
|
367
381
|
hostId: string;
|
|
@@ -399,12 +413,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
399
413
|
floorGrantPending: boolean;
|
|
400
414
|
hasJoinedOnce: boolean;
|
|
401
415
|
hasWebsocketConnected: boolean;
|
|
416
|
+
private mercuryOnlineHandler?;
|
|
417
|
+
private mercuryOfflineHandler?;
|
|
402
418
|
inMeetingActions: InMeetingActions;
|
|
403
419
|
isLocalShareLive: boolean;
|
|
404
420
|
isRoapInProgress: boolean;
|
|
405
421
|
keepAliveTimerId: NodeJS.Timeout;
|
|
406
422
|
lastVideoLayoutInfo: any;
|
|
407
423
|
locusInfo: any;
|
|
424
|
+
isUserUnadmitted?: boolean;
|
|
425
|
+
joinedWith?: any;
|
|
426
|
+
selfId?: string;
|
|
427
|
+
roles: any[];
|
|
428
|
+
canNotViewTheParticipantList?: boolean;
|
|
408
429
|
locusMediaRequest?: LocusMediaRequest;
|
|
409
430
|
mediaProperties: MediaProperties;
|
|
410
431
|
mediaRequestManagers: {
|
|
@@ -438,7 +459,6 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
438
459
|
endCallInitJoinReq: any;
|
|
439
460
|
endJoinReqResp: any;
|
|
440
461
|
endLocalSDPGenRemoteSDPRecvDelay: any;
|
|
441
|
-
joinedWith: any;
|
|
442
462
|
locusId: any;
|
|
443
463
|
startCallInitJoinReq: any;
|
|
444
464
|
startJoinReqResp: any;
|
|
@@ -453,12 +473,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
453
473
|
permissionTokenReceivedLocalTime: number;
|
|
454
474
|
resourceId: any;
|
|
455
475
|
resourceUrl: string;
|
|
456
|
-
selfId: string;
|
|
457
476
|
state: any;
|
|
458
477
|
localAudioStreamMuteStateHandler: () => void;
|
|
459
478
|
localVideoStreamMuteStateHandler: () => void;
|
|
460
479
|
localOutputTrackChangeHandler: () => void;
|
|
461
|
-
|
|
480
|
+
localConstraintsChangeHandler: () => void;
|
|
462
481
|
environment: string;
|
|
463
482
|
namespace: string;
|
|
464
483
|
allowMediaInLobby: boolean;
|
|
@@ -476,13 +495,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
476
495
|
isMoveToInProgress: boolean;
|
|
477
496
|
registrationIdStatus: string;
|
|
478
497
|
brbState: BrbState;
|
|
498
|
+
private emittedBreakoutJoinResponseMoveIds;
|
|
499
|
+
private promisesWaitingForPropUpdate;
|
|
479
500
|
voiceaListenerCallbacks: object;
|
|
480
501
|
private addMediaData;
|
|
481
502
|
private sendSlotManager;
|
|
482
503
|
private deferSDPAnswer?;
|
|
483
504
|
private sdpResponseTimer?;
|
|
484
505
|
private hasMediaConnectionConnectedAtLeastOnce;
|
|
485
|
-
private joinWithMediaRetryInfo
|
|
506
|
+
private joinWithMediaRetryInfo;
|
|
486
507
|
private connectionStateHandler?;
|
|
487
508
|
private iceCandidateErrors;
|
|
488
509
|
private iceCandidatesCount;
|
|
@@ -491,6 +512,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
491
512
|
private logUploadIntervalIndex;
|
|
492
513
|
private mediaServerIp;
|
|
493
514
|
private llmHealthCheckTimer?;
|
|
515
|
+
/**
|
|
516
|
+
* The LLM channel owned by this meeting for datachannel communication.
|
|
517
|
+
* Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
|
|
518
|
+
*/
|
|
519
|
+
private llmChannel?;
|
|
520
|
+
/**
|
|
521
|
+
* The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
|
|
522
|
+
*/
|
|
523
|
+
voiceaChannel?: VoiceaChannel;
|
|
524
|
+
/**
|
|
525
|
+
* Pending datachannel token saved from join response, used when creating the LLM channel.
|
|
526
|
+
*/
|
|
527
|
+
private _pendingDatachannelToken?;
|
|
494
528
|
/**
|
|
495
529
|
* @param {Object} attrs
|
|
496
530
|
* @param {Object} options
|
|
@@ -499,6 +533,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
499
533
|
* @memberof Meeting
|
|
500
534
|
*/
|
|
501
535
|
constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
|
|
536
|
+
/**
|
|
537
|
+
* Get the ingress payload type for a given media type and codec mime type
|
|
538
|
+
* @param {MediaType} mediaType - The media type
|
|
539
|
+
* @param {MediaCodecMimeType} codecMimeType - The codec mime type
|
|
540
|
+
* @returns {number | undefined} - The ingress payload type
|
|
541
|
+
* @private
|
|
542
|
+
* @memberof Meeting
|
|
543
|
+
*/
|
|
544
|
+
private getIngressPayloadTypeCallback;
|
|
502
545
|
/**
|
|
503
546
|
* returns meeting is joined
|
|
504
547
|
* @private
|
|
@@ -681,6 +724,40 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
681
724
|
* @returns {Promise}
|
|
682
725
|
*/
|
|
683
726
|
postMetrics(eventName: ClientEvent['name']): void;
|
|
727
|
+
/**
|
|
728
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
729
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
730
|
+
* flows) and then tries to complete the metric.
|
|
731
|
+
* @param {string} meetingId meeting id
|
|
732
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
733
|
+
* @returns {void}
|
|
734
|
+
* @private
|
|
735
|
+
* @memberof Meeting
|
|
736
|
+
*/
|
|
737
|
+
private onLocusSyncLlmMessage;
|
|
738
|
+
/**
|
|
739
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
740
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
741
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
742
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
743
|
+
* metric fires as soon as the second milestone is in.
|
|
744
|
+
* @param {string} meetingId meeting id
|
|
745
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
746
|
+
* @returns {void}
|
|
747
|
+
* @private
|
|
748
|
+
* @memberof Meeting
|
|
749
|
+
*/
|
|
750
|
+
private tryCompleteLocusSyncLatency;
|
|
751
|
+
/**
|
|
752
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
753
|
+
* measurement.
|
|
754
|
+
* @param {string} meetingId meeting id
|
|
755
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
756
|
+
* @returns {void}
|
|
757
|
+
* @private
|
|
758
|
+
* @memberof Meeting
|
|
759
|
+
*/
|
|
760
|
+
private emitLocusSyncCompleteMetric;
|
|
684
761
|
/**
|
|
685
762
|
* Proxy function for all the listener set ups
|
|
686
763
|
* @returns {undefined}
|
|
@@ -955,7 +1032,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
955
1032
|
*/
|
|
956
1033
|
mute(memberId: string, mute?: boolean): any;
|
|
957
1034
|
/**
|
|
958
|
-
* Transfer the moderator role to another eligible member
|
|
1035
|
+
* Transfer the moderator role to another eligible member.
|
|
1036
|
+
*
|
|
1037
|
+
* If the target member is currently joined in the current session, the request is
|
|
1038
|
+
* sent against the current locus. Otherwise, we search the breakout sessions and,
|
|
1039
|
+
* when the member is found in one, we send the request against that breakout
|
|
1040
|
+
* session's locus url instead.
|
|
959
1041
|
* @param {String} memberId
|
|
960
1042
|
* @param {Boolean} moderator
|
|
961
1043
|
* @returns {Promise} see #members.transferHostToMember
|
|
@@ -1036,6 +1118,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1036
1118
|
* @memberof Meeting
|
|
1037
1119
|
*/
|
|
1038
1120
|
setSipUri(sipUri: string): void;
|
|
1121
|
+
/**
|
|
1122
|
+
* After initial locus setup, refreshes destination with synced locus data and optionally
|
|
1123
|
+
* performs deferred meeting info fetch when initial locus was incomplete.
|
|
1124
|
+
* @param {LocusDTO} locus
|
|
1125
|
+
* @returns {void}
|
|
1126
|
+
*/
|
|
1127
|
+
finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
|
|
1039
1128
|
/**
|
|
1040
1129
|
* Set the locus info the class instance. Should be called with the parsed locus
|
|
1041
1130
|
* we got in the join response.
|
|
@@ -1060,6 +1149,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1060
1149
|
host: object;
|
|
1061
1150
|
selfId: string;
|
|
1062
1151
|
dataSets: DataSet[];
|
|
1152
|
+
metadata: Metadata;
|
|
1063
1153
|
}): void;
|
|
1064
1154
|
/**
|
|
1065
1155
|
* Upload logs for the current meeting
|
|
@@ -1147,6 +1237,22 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1147
1237
|
* @memberof Meeting
|
|
1148
1238
|
*/
|
|
1149
1239
|
setMercuryListener(): void;
|
|
1240
|
+
/**
|
|
1241
|
+
* Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
|
|
1242
|
+
* by setMercuryListener(). Must be called before Locus /leave to avoid
|
|
1243
|
+
* unnecessary syncs/metrics triggered by events received while leaving
|
|
1244
|
+
* (per Locus team recommendation).
|
|
1245
|
+
*
|
|
1246
|
+
* Mercury is a process-wide singleton shared with other plugins, so we
|
|
1247
|
+
* pass the bound handler refs to .off() to avoid clearing every listener
|
|
1248
|
+
* for ONLINE/OFFLINE on the shared emitter.
|
|
1249
|
+
*
|
|
1250
|
+
* Idempotent: subsequent calls are no-ops because the handler refs are
|
|
1251
|
+
* cleared after detaching.
|
|
1252
|
+
* @private
|
|
1253
|
+
* @returns {void}
|
|
1254
|
+
*/
|
|
1255
|
+
private stopListeningForMercuryEvents;
|
|
1150
1256
|
/**
|
|
1151
1257
|
* Close the peer connections and remove them from the class.
|
|
1152
1258
|
* Cleanup any media connection related things.
|
|
@@ -1283,6 +1389,14 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1283
1389
|
* @returns {void}
|
|
1284
1390
|
*/
|
|
1285
1391
|
private processLocusLLMEvent;
|
|
1392
|
+
/**
|
|
1393
|
+
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1394
|
+
* With the factory pattern, each meeting owns its channel, so we just verify
|
|
1395
|
+
* the route matches our channel's binding or the practice session binding.
|
|
1396
|
+
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1397
|
+
* @returns {boolean}
|
|
1398
|
+
*/
|
|
1399
|
+
private isRelayEventRouteValid;
|
|
1286
1400
|
/**
|
|
1287
1401
|
* Callback called when a relay event is received from meeting LLM Connection
|
|
1288
1402
|
* @param {RelayEvent} e Event object coming from LLM Connection
|
|
@@ -1302,6 +1416,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1302
1416
|
* @returns{void}
|
|
1303
1417
|
*/
|
|
1304
1418
|
private triggerStopReceivingTranscriptionEvent;
|
|
1419
|
+
/**
|
|
1420
|
+
* Restores LLM subchannel subscriptions after reconnect when captions are active.
|
|
1421
|
+
* @returns {void}
|
|
1422
|
+
*/
|
|
1423
|
+
private restoreLLMSubscriptionsIfNeeded;
|
|
1305
1424
|
/**
|
|
1306
1425
|
* This is a callback for the LLM event that is triggered when it comes online
|
|
1307
1426
|
* This method in turn will trigger an event to the developers that the LLM is connected
|
|
@@ -1335,13 +1454,86 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1335
1454
|
* @returns {void}
|
|
1336
1455
|
*/
|
|
1337
1456
|
private clearLLMHealthCheckTimer;
|
|
1457
|
+
/**
|
|
1458
|
+
* Removes LLM event listeners and clears the health check timer.
|
|
1459
|
+
* Must be called before Locus /leave to avoid unnecessary syncs triggered
|
|
1460
|
+
* by events received while leaving (per Locus team recommendation).
|
|
1461
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1462
|
+
* matching listener is registered.
|
|
1463
|
+
* @private
|
|
1464
|
+
* @returns {void}
|
|
1465
|
+
*/
|
|
1466
|
+
private stopListeningForLLMEvents;
|
|
1467
|
+
/**
|
|
1468
|
+
* Stops listening on every event bus (LLM, Mercury, voicea/transcription,
|
|
1469
|
+
* annotation) that could otherwise deliver events to this meeting while
|
|
1470
|
+
* Locus is processing /leave or /end. Per the Locus team recommendation,
|
|
1471
|
+
* this must run before the Locus request is dispatched to avoid
|
|
1472
|
+
* unnecessary syncs triggered by in-flight events.
|
|
1473
|
+
*
|
|
1474
|
+
* Voicea (transcription) subscribes to llm 'event:relay.event' internally,
|
|
1475
|
+
* and the annotation plugin subscribes to both mercury and llm, so both
|
|
1476
|
+
* must be torn down alongside the direct LLM/Mercury listeners.
|
|
1477
|
+
*
|
|
1478
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1479
|
+
* matching listener is registered, and stopTranscription is guarded.
|
|
1480
|
+
* @private
|
|
1481
|
+
* @returns {void}
|
|
1482
|
+
*/
|
|
1483
|
+
private stopListeningForMeetingEvents;
|
|
1484
|
+
/**
|
|
1485
|
+
* Disconnects and cleans up the LLM channel owned by this meeting.
|
|
1486
|
+
*
|
|
1487
|
+
* @param {Object} options
|
|
1488
|
+
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1489
|
+
* @returns {Promise<void>}
|
|
1490
|
+
*/
|
|
1491
|
+
private cleanupLLMConneciton;
|
|
1492
|
+
/**
|
|
1493
|
+
* Sets the datachannel token on the meeting's LLM channel.
|
|
1494
|
+
* Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
|
|
1495
|
+
* @param {string} token - The new datachannel token
|
|
1496
|
+
* @returns {void}
|
|
1497
|
+
*/
|
|
1498
|
+
setLLMChannelDataToken(token: string): void;
|
|
1499
|
+
/**
|
|
1500
|
+
* Saves the data channel tokens from the join response.
|
|
1501
|
+
* Default session token is stored on this.llmChannel when available.
|
|
1502
|
+
* Practice session token is stored on the webinar's practice LLM channel.
|
|
1503
|
+
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1504
|
+
* @returns {void}
|
|
1505
|
+
*/
|
|
1506
|
+
saveDataChannelToken(join: any): void;
|
|
1507
|
+
/**
|
|
1508
|
+
* Ensures default-session data channel token exists after lobby admission.
|
|
1509
|
+
* Some lobby users do not receive a token until they are admitted.
|
|
1510
|
+
* @returns {Promise<boolean>} true when a new token is fetched and cached
|
|
1511
|
+
*/
|
|
1512
|
+
private ensureDefaultDatachannelTokenAfterAdmit;
|
|
1338
1513
|
/**
|
|
1339
1514
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
1340
1515
|
* It will also disconnect if called when the meeting has ended
|
|
1341
|
-
* @param {
|
|
1516
|
+
* @param {Object} [options]
|
|
1517
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
1342
1518
|
* @returns {Promise}
|
|
1343
1519
|
*/
|
|
1344
|
-
updateLLMConnection(
|
|
1520
|
+
updateLLMConnection({ isInitialJoinPhase }?: {
|
|
1521
|
+
isInitialJoinPhase?: boolean;
|
|
1522
|
+
}): Promise<any>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
1525
|
+
* @param {string | undefined} breakoutMoveId
|
|
1526
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
1527
|
+
* @returns {boolean}
|
|
1528
|
+
*/
|
|
1529
|
+
private shouldEmitBreakoutJoinResponseMetric;
|
|
1530
|
+
/**
|
|
1531
|
+
* Sends LLM connect latencies for initial join flow.
|
|
1532
|
+
* @param {RegisterAndConnectTiming} timings
|
|
1533
|
+
* @param {any} [error]
|
|
1534
|
+
* @returns {void}
|
|
1535
|
+
*/
|
|
1536
|
+
private sendLLMConnectMetric;
|
|
1345
1537
|
/**
|
|
1346
1538
|
* Use phone for meeting audio
|
|
1347
1539
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -1419,12 +1611,35 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1419
1611
|
*/
|
|
1420
1612
|
setupStatsAnalyzerEventHandlers: () => void;
|
|
1421
1613
|
getMediaConnectionDebugId(): string;
|
|
1614
|
+
/**
|
|
1615
|
+
* Checks if the error indicates that Locus dropped us from the meeting,
|
|
1616
|
+
* either directly on the error or wrapped inside an AddMediaFailed cause.
|
|
1617
|
+
* This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Error} error
|
|
1620
|
+
* @returns {boolean}
|
|
1621
|
+
*/
|
|
1622
|
+
private isErrorMeaningLocusDroppedUs;
|
|
1623
|
+
/**
|
|
1624
|
+
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1625
|
+
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
1626
|
+
* transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
|
|
1627
|
+
* other UDP traffic.
|
|
1628
|
+
*
|
|
1629
|
+
* For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
|
|
1630
|
+
* but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
|
|
1631
|
+
* see the code in establishMediaConnection()
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Error} prevError - The error from the previous addMedia attempt
|
|
1634
|
+
* @returns {Promise<boolean>}
|
|
1635
|
+
*/
|
|
1636
|
+
private shouldRetryMediaWithOnlyTurnTLS;
|
|
1422
1637
|
/**
|
|
1423
1638
|
* Creates a webrtc media connection and publishes streams to it
|
|
1424
1639
|
*
|
|
1425
1640
|
* @param {Object} turnServerInfo TURN server information
|
|
1426
1641
|
* @param {BundlePolicy} [bundlePolicy] Bundle policy settings
|
|
1427
|
-
* @param {
|
|
1642
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
|
|
1428
1643
|
* @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
|
|
1429
1644
|
*/
|
|
1430
1645
|
private createMediaConnection;
|
|
@@ -1550,6 +1765,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1550
1765
|
* @returns {void}
|
|
1551
1766
|
*/
|
|
1552
1767
|
private setupLocusMediaRequest;
|
|
1768
|
+
/**
|
|
1769
|
+
* Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
|
|
1770
|
+
* @returns {Promise<void>}
|
|
1771
|
+
* @private
|
|
1772
|
+
* @memberof Meeting
|
|
1773
|
+
*/
|
|
1774
|
+
private waitForSelfUrlChange;
|
|
1553
1775
|
/**
|
|
1554
1776
|
* Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
|
|
1555
1777
|
*
|
|
@@ -1563,14 +1785,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1563
1785
|
* Internal version of addMedia() with some more arguments for finer control of its behavior
|
|
1564
1786
|
*
|
|
1565
1787
|
* @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
|
|
1566
|
-
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1567
1788
|
* @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
|
|
1789
|
+
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1790
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
|
|
1568
1791
|
* @param {AddMediaOptions} options - same as options of the public addMedia() method
|
|
1569
1792
|
* @returns {Promise<void>}
|
|
1570
1793
|
* @protected
|
|
1571
1794
|
* @memberof Meeting
|
|
1572
1795
|
*/
|
|
1573
|
-
protected addMediaInternal(icePhaseCallback: () => string,
|
|
1796
|
+
protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
|
|
1574
1797
|
/**
|
|
1575
1798
|
* Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
|
|
1576
1799
|
* @returns {Boolean}
|
|
@@ -1909,7 +2132,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1909
2132
|
* @public
|
|
1910
2133
|
* @memberof Meeting
|
|
1911
2134
|
*/
|
|
1912
|
-
clearMeetingData: () => void
|
|
2135
|
+
clearMeetingData: () => Promise<void>;
|
|
1913
2136
|
/**
|
|
1914
2137
|
* starts keepAlives being sent
|
|
1915
2138
|
* @returns {void}
|
|
@@ -1933,7 +2156,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1933
2156
|
* @public
|
|
1934
2157
|
* @memberof Meeting
|
|
1935
2158
|
*/
|
|
1936
|
-
sendReaction(reactionType:
|
|
2159
|
+
sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
|
|
1937
2160
|
/**
|
|
1938
2161
|
* Extend the current meeting duration.
|
|
1939
2162
|
*
|
|
@@ -2087,5 +2310,37 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2087
2310
|
* @memberof Meetings
|
|
2088
2311
|
*/
|
|
2089
2312
|
cancelSipCallOut(participantId: string): Promise<any>;
|
|
2313
|
+
/**
|
|
2314
|
+
* Method to get new data
|
|
2315
|
+
* @returns {Promise}
|
|
2316
|
+
*/
|
|
2317
|
+
refreshDataChannelToken(): Promise<{
|
|
2318
|
+
body: {
|
|
2319
|
+
datachannelToken: any;
|
|
2320
|
+
dataChannelTokenType: DataChannelTokenType;
|
|
2321
|
+
};
|
|
2322
|
+
}>;
|
|
2323
|
+
/**
|
|
2324
|
+
* Checks if the LLM channel is connected.
|
|
2325
|
+
* Handles practice session context automatically - returns practice session
|
|
2326
|
+
* LLM channel status when in practice session, main LLM channel status otherwise.
|
|
2327
|
+
* @returns {boolean} True if the appropriate LLM channel is connected
|
|
2328
|
+
*/
|
|
2329
|
+
isLLMConnected(): boolean;
|
|
2330
|
+
/**
|
|
2331
|
+
* Gets the locus URL from the LLM channel.
|
|
2332
|
+
* Handles practice session context automatically - returns practice session
|
|
2333
|
+
* LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
|
|
2334
|
+
* @returns {string | undefined} The locus URL or undefined
|
|
2335
|
+
*/
|
|
2336
|
+
getLLMLocusUrl(): string | undefined;
|
|
2337
|
+
/**
|
|
2338
|
+
* Determines the current data channel token type based on the meeting state.
|
|
2339
|
+
*
|
|
2340
|
+
* variant should be used when connecting to the LLM data channel.
|
|
2341
|
+
*
|
|
2342
|
+
* @returns {DataChannelTokenType} The token type representing the current session mode.
|
|
2343
|
+
*/
|
|
2344
|
+
getDataChannelTokenType(): DataChannelTokenType;
|
|
2090
2345
|
}
|
|
2091
2346
|
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
|
/**
|