@webex/plugin-meetings 3.12.0-task-refactor.1 → 3.12.0-webex-services-ready.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/index.js +26 -2
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +9 -3
- package/dist/config.js.map +1 -1
- package/dist/constants.js +59 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +34 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +533 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +2068 -36
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +13 -3
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +111 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/constant.js +12 -0
- package/dist/interceptors/constant.js.map +1 -0
- package/dist/interceptors/dataChannelAuthToken.js +350 -0
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
- package/dist/interceptors/index.js +7 -0
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +27 -5
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interceptors/utils.js +27 -0
- package/dist/interceptors/utils.js.map +1 -0
- package/dist/interpretation/index.js +11 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +11 -4
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +896 -277
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/selfUtils.js +1 -0
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +19 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +72 -3
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +5 -2
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +11 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2075 -1096
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +55 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +168 -5
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +2 -2
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +369 -173
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +127 -25
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +20 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +40 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +11 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +64 -68
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +11 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +116 -2
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js +171 -18
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +142 -94
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +1 -1
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +0 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/types/aiEnableRequest/index.d.ts +5 -0
- package/dist/types/aiEnableRequest/utils.d.ts +2 -0
- package/dist/types/common/browser-detection.d.ts +1 -0
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/common/events/events-scope.d.ts +1 -0
- package/dist/types/common/events/events.d.ts +1 -0
- package/dist/types/config.d.ts +7 -2
- package/dist/types/constants.d.ts +35 -1
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +11 -0
- package/dist/types/hashTree/hashTree.d.ts +136 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +392 -14
- package/dist/types/hashTree/types.d.ts +20 -0
- package/dist/types/hashTree/utils.d.ts +40 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/constant.d.ts +5 -0
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
- package/dist/types/interceptors/index.d.ts +2 -1
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interceptors/locusRouteToken.d.ts +2 -0
- package/dist/types/interceptors/utils.d.ts +1 -0
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +116 -51
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +48 -12
- package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
- package/dist/types/media/properties.d.ts +3 -1
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +196 -15
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +17 -1
- package/dist/types/meeting/request.type.d.ts +5 -0
- package/dist/types/meeting/util.d.ts +40 -0
- package/dist/types/meeting-info/util.d.ts +1 -0
- package/dist/types/meeting-info/utilv2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +34 -20
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +2 -0
- package/dist/types/member/types.d.ts +5 -4
- package/dist/types/member/util.d.ts +14 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +10 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
- package/dist/types/multistream/sendSlotManager.d.ts +23 -1
- package/dist/types/reachability/clusterReachability.d.ts +33 -6
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +4 -0
- package/dist/types/recording-controller/util.d.ts +5 -5
- package/dist/types/roap/index.d.ts +1 -1
- package/dist/types/webinar/utils.d.ts +6 -0
- package/dist/webinar/index.js +585 -164
- package/dist/webinar/index.js.map +1 -1
- package/dist/webinar/utils.js +25 -0
- package/dist/webinar/utils.js.map +1 -0
- package/package.json +26 -24
- package/src/aiEnableRequest/README.md +84 -0
- package/src/aiEnableRequest/index.ts +186 -0
- package/src/aiEnableRequest/utils.ts +25 -0
- package/src/annotation/index.ts +27 -7
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/index.ts +31 -0
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +7 -2
- package/src/constants.ts +49 -3
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/hashTree/constants.ts +26 -0
- package/src/hashTree/hashTree.ts +480 -0
- package/src/hashTree/hashTreeParser.ts +1911 -29
- package/src/hashTree/types.ts +24 -1
- package/src/hashTree/utils.ts +98 -0
- package/src/index.ts +14 -1
- package/src/interceptors/constant.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +246 -0
- package/src/interceptors/index.ts +2 -1
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interceptors/locusRouteToken.ts +22 -5
- package/src/interceptors/utils.ts +16 -0
- package/src/interpretation/index.ts +29 -11
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/controlsUtils.ts +20 -1
- package/src/locus-info/index.ts +958 -250
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/selfUtils.ts +1 -0
- package/src/locus-info/types.ts +51 -12
- package/src/media/MediaConnectionAwaiter.ts +62 -5
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +4 -1
- package/src/meeting/in-meeting-actions.ts +20 -0
- package/src/meeting/index.ts +1025 -146
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +53 -0
- package/src/meeting/request.type.ts +6 -0
- package/src/meeting/util.ts +207 -7
- package/src/meeting-info/meeting-info-v2.ts +4 -2
- package/src/meetings/index.ts +307 -132
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +127 -13
- package/src/member/index.ts +20 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +41 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/constants.ts +11 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +117 -76
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +13 -0
- package/src/multistream/sendSlotManager.ts +97 -3
- package/src/reachability/clusterReachability.ts +156 -29
- package/src/reachability/index.ts +62 -17
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/reachabilityPeerConnection.ts +3 -1
- package/src/reachability/util.ts +36 -0
- package/src/reactions/reactions.type.ts +4 -0
- package/src/reconnection-manager/index.ts +0 -1
- package/src/recording-controller/index.ts +1 -2
- package/src/webinar/index.ts +448 -11
- package/src/webinar/utils.ts +16 -0
- package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
- package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
- package/test/unit/spec/annotation/index.ts +69 -7
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/index.ts +49 -0
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/hashTree/hashTree.ts +721 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +5328 -0
- package/test/unit/spec/hashTree/utils.ts +264 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- package/test/unit/spec/interceptors/locusRouteToken.ts +44 -0
- package/test/unit/spec/interceptors/utils.ts +75 -0
- package/test/unit/spec/interpretation/index.ts +26 -4
- package/test/unit/spec/locus-info/controlsUtils.js +222 -52
- package/test/unit/spec/locus-info/index.js +2000 -171
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +12 -3
- package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
- package/test/unit/spec/meeting/index.js +2925 -209
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +82 -0
- package/test/unit/spec/meeting/utils.js +595 -27
- package/test/unit/spec/meeting-info/meetinginfov2.js +19 -10
- package/test/unit/spec/meetings/index.js +1214 -75
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +453 -52
- package/test/unit/spec/member/index.js +35 -4
- package/test/unit/spec/member/util.js +154 -27
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
- package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
- package/test/unit/spec/reachability/clusterReachability.ts +125 -1
- package/test/unit/spec/reachability/index.ts +154 -49
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/reconnection-manager/index.js +4 -8
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/webinar/index.ts +837 -39
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -28,6 +28,7 @@ interface IInMeetingActions {
|
|
|
28
28
|
canLowerAllHands?: boolean;
|
|
29
29
|
canLowerSomeoneElsesHand?: boolean;
|
|
30
30
|
bothLeaveAndEndMeetingAvailable?: boolean;
|
|
31
|
+
requireHostEndMeetingBeforeLeave?: boolean;
|
|
31
32
|
canEnableClosedCaption?: boolean;
|
|
32
33
|
canStartTranscribing?: boolean;
|
|
33
34
|
canStopTranscribing?: boolean;
|
|
@@ -112,6 +113,10 @@ interface IInMeetingActions {
|
|
|
112
113
|
canMoveToLobby?: boolean;
|
|
113
114
|
canEnablePollingQA?: boolean;
|
|
114
115
|
canDisablePollingQA?: boolean;
|
|
116
|
+
canAttendeeRequestAiAssistantEnabled?: boolean;
|
|
117
|
+
isAttendeeRequestAiAssistantDeclinedAll?: boolean;
|
|
118
|
+
isAnonymizeDisplayNamesEnabled?: boolean;
|
|
119
|
+
canViewTheParticipantList?: boolean;
|
|
115
120
|
}
|
|
116
121
|
/**
|
|
117
122
|
* @class InMeetingActions
|
|
@@ -140,6 +145,7 @@ export default class InMeetingActions implements IInMeetingActions {
|
|
|
140
145
|
canLowerAllHands: any;
|
|
141
146
|
canLowerSomeoneElsesHand: any;
|
|
142
147
|
bothLeaveAndEndMeetingAvailable: any;
|
|
148
|
+
requireHostEndMeetingBeforeLeave: any;
|
|
143
149
|
canEnableClosedCaption: any;
|
|
144
150
|
canStartTranscribing: any;
|
|
145
151
|
canStopTranscribing: any;
|
|
@@ -224,6 +230,10 @@ export default class InMeetingActions implements IInMeetingActions {
|
|
|
224
230
|
canMoveToLobby: any;
|
|
225
231
|
canEnablePollingQA: any;
|
|
226
232
|
canDisablePollingQA: any;
|
|
233
|
+
canAttendeeRequestAiAssistantEnabled: any;
|
|
234
|
+
isAttendeeRequestAiAssistantDeclinedAll: any;
|
|
235
|
+
isAnonymizeDisplayNamesEnabled: any;
|
|
236
|
+
canViewTheParticipantList: any;
|
|
227
237
|
/**
|
|
228
238
|
* Returns all meeting action options
|
|
229
239
|
* @returns {Object}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
3
|
import { ClientEvent, ClientEventLeaveReason } from '@webex/internal-plugin-metrics';
|
|
3
|
-
import { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
4
|
+
import type { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
4
5
|
import { MediaType, StatsAnalyzer, NetworkQualityMonitor, StatsMonitor } from '@webex/internal-media-core';
|
|
6
|
+
import { DataChannelTokenType } from '@webex/internal-plugin-llm';
|
|
5
7
|
import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
6
8
|
import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
7
9
|
import { type TurnServerInfo } from '../roap/types';
|
|
@@ -14,7 +16,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
|
|
|
14
16
|
import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
|
|
15
17
|
import { MediaRequestManager } from '../multistream/mediaRequestManager';
|
|
16
18
|
import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
|
|
17
|
-
import {
|
|
19
|
+
import { SkinToneType } from '../reactions/reactions.type';
|
|
18
20
|
import InMeetingActions from './in-meeting-actions';
|
|
19
21
|
import RecordingController from '../recording-controller';
|
|
20
22
|
import ControlsOptionsManager from '../controls-options-manager';
|
|
@@ -22,7 +24,7 @@ import { LocusMediaRequest } from './locusMediaRequest';
|
|
|
22
24
|
import { BrbState } from './brbState';
|
|
23
25
|
import { SetStageOptions } from './request.type';
|
|
24
26
|
import { Invitee } from './type';
|
|
25
|
-
import { DataSet } from '../hashTree/hashTreeParser';
|
|
27
|
+
import { DataSet, HashTreeMessage, Metadata } from '../hashTree/hashTreeParser';
|
|
26
28
|
import { LocusDTO } from '../locus-info/types';
|
|
27
29
|
export type CaptionData = {
|
|
28
30
|
id: string;
|
|
@@ -69,6 +71,7 @@ export type AddMediaOptions = {
|
|
|
69
71
|
remoteMediaManagerConfig?: RemoteMediaManagerConfiguration;
|
|
70
72
|
bundlePolicy?: BundlePolicy;
|
|
71
73
|
allowMediaInLobby?: boolean;
|
|
74
|
+
allowPublishMediaInLobby?: boolean;
|
|
72
75
|
additionalMediaOptions?: AdditionalMediaOptions;
|
|
73
76
|
};
|
|
74
77
|
export type AdditionalMediaOptions = {
|
|
@@ -345,6 +348,16 @@ type FetchMeetingInfoParams = {
|
|
|
345
348
|
* @property {number} networkQualityScore - {1|0} 1 indicates acceptable uplink 0 indicates unacceptable uplink based on threshold
|
|
346
349
|
* @memberof Meeting
|
|
347
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;
|
|
348
361
|
/**
|
|
349
362
|
* @description Meeting is the crux of the plugin
|
|
350
363
|
* @export
|
|
@@ -357,10 +370,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
357
370
|
breakouts: any;
|
|
358
371
|
simultaneousInterpretation: any;
|
|
359
372
|
annotation: any;
|
|
373
|
+
aiEnableRequest: any;
|
|
360
374
|
webinar: any;
|
|
361
375
|
conversationUrl: string;
|
|
362
376
|
callStateForMetrics: CallStateForMetrics;
|
|
363
|
-
destination: string;
|
|
377
|
+
destination: string | LocusDTO;
|
|
364
378
|
destinationType: DESTINATION_TYPE;
|
|
365
379
|
deviceUrl: string;
|
|
366
380
|
hostId: string;
|
|
@@ -398,12 +412,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
398
412
|
floorGrantPending: boolean;
|
|
399
413
|
hasJoinedOnce: boolean;
|
|
400
414
|
hasWebsocketConnected: boolean;
|
|
415
|
+
private mercuryOnlineHandler?;
|
|
416
|
+
private mercuryOfflineHandler?;
|
|
401
417
|
inMeetingActions: InMeetingActions;
|
|
402
418
|
isLocalShareLive: boolean;
|
|
403
419
|
isRoapInProgress: boolean;
|
|
404
420
|
keepAliveTimerId: NodeJS.Timeout;
|
|
405
421
|
lastVideoLayoutInfo: any;
|
|
406
422
|
locusInfo: any;
|
|
423
|
+
isUserUnadmitted?: boolean;
|
|
424
|
+
joinedWith?: any;
|
|
425
|
+
selfId?: string;
|
|
426
|
+
roles: any[];
|
|
427
|
+
canNotViewTheParticipantList?: boolean;
|
|
407
428
|
locusMediaRequest?: LocusMediaRequest;
|
|
408
429
|
mediaProperties: MediaProperties;
|
|
409
430
|
mediaRequestManagers: {
|
|
@@ -437,7 +458,6 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
437
458
|
endCallInitJoinReq: any;
|
|
438
459
|
endJoinReqResp: any;
|
|
439
460
|
endLocalSDPGenRemoteSDPRecvDelay: any;
|
|
440
|
-
joinedWith: any;
|
|
441
461
|
locusId: any;
|
|
442
462
|
startCallInitJoinReq: any;
|
|
443
463
|
startJoinReqResp: any;
|
|
@@ -452,12 +472,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
452
472
|
permissionTokenReceivedLocalTime: number;
|
|
453
473
|
resourceId: any;
|
|
454
474
|
resourceUrl: string;
|
|
455
|
-
selfId: string;
|
|
456
475
|
state: any;
|
|
457
476
|
localAudioStreamMuteStateHandler: () => void;
|
|
458
477
|
localVideoStreamMuteStateHandler: () => void;
|
|
459
478
|
localOutputTrackChangeHandler: () => void;
|
|
460
|
-
|
|
479
|
+
localConstraintsChangeHandler: () => void;
|
|
461
480
|
environment: string;
|
|
462
481
|
namespace: string;
|
|
463
482
|
allowMediaInLobby: boolean;
|
|
@@ -475,13 +494,14 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
475
494
|
isMoveToInProgress: boolean;
|
|
476
495
|
registrationIdStatus: string;
|
|
477
496
|
brbState: BrbState;
|
|
497
|
+
private promisesWaitingForPropUpdate;
|
|
478
498
|
voiceaListenerCallbacks: object;
|
|
479
499
|
private addMediaData;
|
|
480
500
|
private sendSlotManager;
|
|
481
501
|
private deferSDPAnswer?;
|
|
482
502
|
private sdpResponseTimer?;
|
|
483
503
|
private hasMediaConnectionConnectedAtLeastOnce;
|
|
484
|
-
private joinWithMediaRetryInfo
|
|
504
|
+
private joinWithMediaRetryInfo;
|
|
485
505
|
private connectionStateHandler?;
|
|
486
506
|
private iceCandidateErrors;
|
|
487
507
|
private iceCandidatesCount;
|
|
@@ -489,6 +509,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
489
509
|
private uploadLogsTimer?;
|
|
490
510
|
private logUploadIntervalIndex;
|
|
491
511
|
private mediaServerIp;
|
|
512
|
+
private llmHealthCheckTimer?;
|
|
492
513
|
/**
|
|
493
514
|
* @param {Object} attrs
|
|
494
515
|
* @param {Object} options
|
|
@@ -497,6 +518,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
497
518
|
* @memberof Meeting
|
|
498
519
|
*/
|
|
499
520
|
constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
|
|
521
|
+
/**
|
|
522
|
+
* Get the ingress payload type for a given media type and codec mime type
|
|
523
|
+
* @param {MediaType} mediaType - The media type
|
|
524
|
+
* @param {MediaCodecMimeType} codecMimeType - The codec mime type
|
|
525
|
+
* @returns {number | undefined} - The ingress payload type
|
|
526
|
+
* @private
|
|
527
|
+
* @memberof Meeting
|
|
528
|
+
*/
|
|
529
|
+
private getIngressPayloadTypeCallback;
|
|
500
530
|
/**
|
|
501
531
|
* returns meeting is joined
|
|
502
532
|
* @private
|
|
@@ -953,7 +983,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
953
983
|
*/
|
|
954
984
|
mute(memberId: string, mute?: boolean): any;
|
|
955
985
|
/**
|
|
956
|
-
* Transfer the moderator role to another eligible member
|
|
986
|
+
* Transfer the moderator role to another eligible member.
|
|
987
|
+
*
|
|
988
|
+
* If the target member is currently joined in the current session, the request is
|
|
989
|
+
* sent against the current locus. Otherwise, we search the breakout sessions and,
|
|
990
|
+
* when the member is found in one, we send the request against that breakout
|
|
991
|
+
* session's locus url instead.
|
|
957
992
|
* @param {String} memberId
|
|
958
993
|
* @param {Boolean} moderator
|
|
959
994
|
* @returns {Promise} see #members.transferHostToMember
|
|
@@ -1034,6 +1069,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1034
1069
|
* @memberof Meeting
|
|
1035
1070
|
*/
|
|
1036
1071
|
setSipUri(sipUri: string): void;
|
|
1072
|
+
/**
|
|
1073
|
+
* After initial locus setup, refreshes destination with synced locus data and optionally
|
|
1074
|
+
* performs deferred meeting info fetch when initial locus was incomplete.
|
|
1075
|
+
* @param {LocusDTO} locus
|
|
1076
|
+
* @returns {void}
|
|
1077
|
+
*/
|
|
1078
|
+
finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
|
|
1037
1079
|
/**
|
|
1038
1080
|
* Set the locus info the class instance. Should be called with the parsed locus
|
|
1039
1081
|
* we got in the join response.
|
|
@@ -1058,6 +1100,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1058
1100
|
host: object;
|
|
1059
1101
|
selfId: string;
|
|
1060
1102
|
dataSets: DataSet[];
|
|
1103
|
+
metadata: Metadata;
|
|
1061
1104
|
}): void;
|
|
1062
1105
|
/**
|
|
1063
1106
|
* Upload logs for the current meeting
|
|
@@ -1145,6 +1188,22 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1145
1188
|
* @memberof Meeting
|
|
1146
1189
|
*/
|
|
1147
1190
|
setMercuryListener(): void;
|
|
1191
|
+
/**
|
|
1192
|
+
* Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
|
|
1193
|
+
* by setMercuryListener(). Must be called before Locus /leave to avoid
|
|
1194
|
+
* unnecessary syncs/metrics triggered by events received while leaving
|
|
1195
|
+
* (per Locus team recommendation).
|
|
1196
|
+
*
|
|
1197
|
+
* Mercury is a process-wide singleton shared with other plugins, so we
|
|
1198
|
+
* pass the bound handler refs to .off() to avoid clearing every listener
|
|
1199
|
+
* for ONLINE/OFFLINE on the shared emitter.
|
|
1200
|
+
*
|
|
1201
|
+
* Idempotent: subsequent calls are no-ops because the handler refs are
|
|
1202
|
+
* cleared after detaching.
|
|
1203
|
+
* @private
|
|
1204
|
+
* @returns {void}
|
|
1205
|
+
*/
|
|
1206
|
+
private stopListeningForMercuryEvents;
|
|
1148
1207
|
/**
|
|
1149
1208
|
* Close the peer connections and remove them from the class.
|
|
1150
1209
|
* Cleanup any media connection related things.
|
|
@@ -1281,6 +1340,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1281
1340
|
* @returns {void}
|
|
1282
1341
|
*/
|
|
1283
1342
|
private processLocusLLMEvent;
|
|
1343
|
+
/**
|
|
1344
|
+
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1345
|
+
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1346
|
+
* @returns {boolean}
|
|
1347
|
+
*/
|
|
1348
|
+
private isRelayEventRouteValid;
|
|
1284
1349
|
/**
|
|
1285
1350
|
* Callback called when a relay event is received from meeting LLM Connection
|
|
1286
1351
|
* @param {RelayEvent} e Event object coming from LLM Connection
|
|
@@ -1300,6 +1365,11 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1300
1365
|
* @returns{void}
|
|
1301
1366
|
*/
|
|
1302
1367
|
private triggerStopReceivingTranscriptionEvent;
|
|
1368
|
+
/**
|
|
1369
|
+
* Restores LLM subchannel subscriptions after reconnect when captions are active.
|
|
1370
|
+
* @returns {void}
|
|
1371
|
+
*/
|
|
1372
|
+
private restoreLLMSubscriptionsIfNeeded;
|
|
1303
1373
|
/**
|
|
1304
1374
|
* This is a callback for the LLM event that is triggered when it comes online
|
|
1305
1375
|
* This method in turn will trigger an event to the developers that the LLM is connected
|
|
@@ -1321,10 +1391,81 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1321
1391
|
* Scenario D: Joining any other way (sip, pstn, conversationUrl, link just need to specify resourceId)
|
|
1322
1392
|
*/
|
|
1323
1393
|
join(options?: any): Promise<any>;
|
|
1394
|
+
/** starts a timer that after a few minutes checks if
|
|
1395
|
+
* the LLM connection is connected, if not it sends a metric
|
|
1396
|
+
* @private
|
|
1397
|
+
* @returns {void}
|
|
1398
|
+
*/
|
|
1399
|
+
private startLLMHealthCheckTimer;
|
|
1400
|
+
/**
|
|
1401
|
+
* Clears the LLM health check timer
|
|
1402
|
+
* @private
|
|
1403
|
+
* @returns {void}
|
|
1404
|
+
*/
|
|
1405
|
+
private clearLLMHealthCheckTimer;
|
|
1406
|
+
/**
|
|
1407
|
+
* Removes LLM event listeners and clears the health check timer.
|
|
1408
|
+
* Must be called before Locus /leave to avoid unnecessary syncs triggered
|
|
1409
|
+
* by events received while leaving (per Locus team recommendation).
|
|
1410
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1411
|
+
* matching listener is registered.
|
|
1412
|
+
* @private
|
|
1413
|
+
* @returns {void}
|
|
1414
|
+
*/
|
|
1415
|
+
private stopListeningForLLMEvents;
|
|
1416
|
+
/**
|
|
1417
|
+
* Stops listening on every event bus (LLM, Mercury, voicea/transcription,
|
|
1418
|
+
* annotation) that could otherwise deliver events to this meeting while
|
|
1419
|
+
* Locus is processing /leave or /end. Per the Locus team recommendation,
|
|
1420
|
+
* this must run before the Locus request is dispatched to avoid
|
|
1421
|
+
* unnecessary syncs triggered by in-flight events.
|
|
1422
|
+
*
|
|
1423
|
+
* Voicea (transcription) subscribes to llm 'event:relay.event' internally,
|
|
1424
|
+
* and the annotation plugin subscribes to both mercury and llm, so both
|
|
1425
|
+
* must be torn down alongside the direct LLM/Mercury listeners.
|
|
1426
|
+
*
|
|
1427
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1428
|
+
* matching listener is registered, and stopTranscription is guarded.
|
|
1429
|
+
* @private
|
|
1430
|
+
* @returns {void}
|
|
1431
|
+
*/
|
|
1432
|
+
private stopListeningForMeetingEvents;
|
|
1433
|
+
/**
|
|
1434
|
+
* Disconnects and cleans up the default LLM session listeners/timers.
|
|
1435
|
+
*
|
|
1436
|
+
* Ownership-aware: only calls `disconnectLLM` when this meeting is the
|
|
1437
|
+
* current owner of the default LLM session (or when no owner is recorded).
|
|
1438
|
+
* Event listeners belonging to this meeting instance are always detached
|
|
1439
|
+
* so they do not receive another meeting's relay events.
|
|
1440
|
+
*
|
|
1441
|
+
* @param {Object} options
|
|
1442
|
+
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
1443
|
+
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1444
|
+
* @returns {Promise<void>}
|
|
1445
|
+
*/
|
|
1446
|
+
private cleanupLLMConneciton;
|
|
1447
|
+
/**
|
|
1448
|
+
* Clears data channel tokens associated with this meeting ownership.
|
|
1449
|
+
* Ownership checks are enforced in internal-plugin-llm.
|
|
1450
|
+
* @returns {void}
|
|
1451
|
+
*/
|
|
1452
|
+
clearDataChannelToken(): void;
|
|
1453
|
+
/**
|
|
1454
|
+
* Saves the data channel tokens from the join response into LLM so that
|
|
1455
|
+
* updateLLMConnection / updatePSDataChannel don't need to fetch them from locusInfo.
|
|
1456
|
+
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1457
|
+
* @returns {void}
|
|
1458
|
+
*/
|
|
1459
|
+
saveDataChannelToken(join: any): void;
|
|
1460
|
+
/**
|
|
1461
|
+
* Ensures default-session data channel token exists after lobby admission.
|
|
1462
|
+
* Some lobby users do not receive a token until they are admitted.
|
|
1463
|
+
* @returns {Promise<boolean>} true when a new token is fetched and cached
|
|
1464
|
+
*/
|
|
1465
|
+
private ensureDefaultDatachannelTokenAfterAdmit;
|
|
1324
1466
|
/**
|
|
1325
1467
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
1326
1468
|
* It will also disconnect if called when the meeting has ended
|
|
1327
|
-
* @param {String} datachannelUrl
|
|
1328
1469
|
* @returns {Promise}
|
|
1329
1470
|
*/
|
|
1330
1471
|
updateLLMConnection(): Promise<any>;
|
|
@@ -1405,12 +1546,26 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1405
1546
|
*/
|
|
1406
1547
|
setupStatsAnalyzerEventHandlers: () => void;
|
|
1407
1548
|
getMediaConnectionDebugId(): string;
|
|
1549
|
+
/**
|
|
1550
|
+
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1551
|
+
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
1552
|
+
* transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
|
|
1553
|
+
* other UDP traffic.
|
|
1554
|
+
*
|
|
1555
|
+
* For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
|
|
1556
|
+
* but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
|
|
1557
|
+
* see the code in establishMediaConnection()
|
|
1558
|
+
*
|
|
1559
|
+
* @param {Error} prevError - The error from the previous addMedia attempt
|
|
1560
|
+
* @returns {Promise<boolean>}
|
|
1561
|
+
*/
|
|
1562
|
+
private shouldRetryMediaWithOnlyTurnTLS;
|
|
1408
1563
|
/**
|
|
1409
1564
|
* Creates a webrtc media connection and publishes streams to it
|
|
1410
1565
|
*
|
|
1411
1566
|
* @param {Object} turnServerInfo TURN server information
|
|
1412
1567
|
* @param {BundlePolicy} [bundlePolicy] Bundle policy settings
|
|
1413
|
-
* @param {
|
|
1568
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
|
|
1414
1569
|
* @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
|
|
1415
1570
|
*/
|
|
1416
1571
|
private createMediaConnection;
|
|
@@ -1536,6 +1691,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1536
1691
|
* @returns {void}
|
|
1537
1692
|
*/
|
|
1538
1693
|
private setupLocusMediaRequest;
|
|
1694
|
+
/**
|
|
1695
|
+
* Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
|
|
1696
|
+
* @returns {Promise<void>}
|
|
1697
|
+
* @private
|
|
1698
|
+
* @memberof Meeting
|
|
1699
|
+
*/
|
|
1700
|
+
private waitForSelfUrlChange;
|
|
1539
1701
|
/**
|
|
1540
1702
|
* Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
|
|
1541
1703
|
*
|
|
@@ -1549,14 +1711,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1549
1711
|
* Internal version of addMedia() with some more arguments for finer control of its behavior
|
|
1550
1712
|
*
|
|
1551
1713
|
* @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
|
|
1552
|
-
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1553
1714
|
* @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
|
|
1715
|
+
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1716
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
|
|
1554
1717
|
* @param {AddMediaOptions} options - same as options of the public addMedia() method
|
|
1555
1718
|
* @returns {Promise<void>}
|
|
1556
1719
|
* @protected
|
|
1557
1720
|
* @memberof Meeting
|
|
1558
1721
|
*/
|
|
1559
|
-
protected addMediaInternal(icePhaseCallback: () => string,
|
|
1722
|
+
protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
|
|
1560
1723
|
/**
|
|
1561
1724
|
* Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
|
|
1562
1725
|
* @returns {Boolean}
|
|
@@ -1895,7 +2058,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1895
2058
|
* @public
|
|
1896
2059
|
* @memberof Meeting
|
|
1897
2060
|
*/
|
|
1898
|
-
clearMeetingData: () => void
|
|
2061
|
+
clearMeetingData: () => Promise<void>;
|
|
1899
2062
|
/**
|
|
1900
2063
|
* starts keepAlives being sent
|
|
1901
2064
|
* @returns {void}
|
|
@@ -1919,7 +2082,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1919
2082
|
* @public
|
|
1920
2083
|
* @memberof Meeting
|
|
1921
2084
|
*/
|
|
1922
|
-
sendReaction(reactionType:
|
|
2085
|
+
sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
|
|
1923
2086
|
/**
|
|
1924
2087
|
* Extend the current meeting duration.
|
|
1925
2088
|
*
|
|
@@ -2073,5 +2236,23 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2073
2236
|
* @memberof Meetings
|
|
2074
2237
|
*/
|
|
2075
2238
|
cancelSipCallOut(participantId: string): Promise<any>;
|
|
2239
|
+
/**
|
|
2240
|
+
* Method to get new data
|
|
2241
|
+
* @returns {Promise}
|
|
2242
|
+
*/
|
|
2243
|
+
refreshDataChannelToken(): Promise<{
|
|
2244
|
+
body: {
|
|
2245
|
+
datachannelToken: any;
|
|
2246
|
+
dataChannelTokenType: DataChannelTokenType;
|
|
2247
|
+
};
|
|
2248
|
+
}>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Determines the current data channel token type based on the meeting state.
|
|
2251
|
+
*
|
|
2252
|
+
* variant should be used when connecting to the LLM data channel.
|
|
2253
|
+
*
|
|
2254
|
+
* @returns {DataChannelTokenType} The token type representing the current session mode.
|
|
2255
|
+
*/
|
|
2256
|
+
getDataChannelTokenType(): DataChannelTokenType;
|
|
2076
2257
|
}
|
|
2077
2258
|
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
|
/**
|