@webex/plugin-meetings 3.11.0 → 3.12.0-metrics-init-fix-3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +9 -0
- package/dist/aiEnableRequest/index.js +197 -0
- package/dist/aiEnableRequest/index.js.map +1 -0
- package/dist/aiEnableRequest/utils.js +36 -0
- package/dist/aiEnableRequest/utils.js.map +1 -0
- package/dist/annotation/index.js +14 -5
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +90 -3
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +8 -3
- package/dist/config.js.map +1 -1
- package/dist/constants.js +60 -11
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +16 -2
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTree.js +18 -0
- package/dist/hashTree/hashTree.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1655 -538
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +4 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +52 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/constant.js +12 -0
- package/dist/interceptors/constant.js.map +1 -0
- package/dist/interceptors/dataChannelAuthToken.js +350 -0
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
- package/dist/interceptors/index.js +7 -0
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/utils.js +27 -0
- package/dist/interceptors/utils.js.map +1 -0
- package/dist/interpretation/index.js +11 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +9 -4
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +911 -211
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/selfUtils.js +1 -0
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +19 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +72 -3
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +8 -7
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +11 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2276 -1067
- 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 +139 -93
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +0 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/aiEnableRequest/index.d.ts +5 -0
- package/dist/types/aiEnableRequest/utils.d.ts +2 -0
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +6 -2
- package/dist/types/constants.d.ts +35 -1
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +3 -0
- package/dist/types/hashTree/hashTree.d.ts +7 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +315 -30
- package/dist/types/hashTree/types.d.ts +3 -0
- package/dist/types/hashTree/utils.d.ts +24 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/constant.d.ts +5 -0
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
- package/dist/types/interceptors/index.d.ts +2 -1
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interceptors/utils.d.ts +1 -0
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +126 -15
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +28 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
- package/dist/types/media/properties.d.ts +8 -3
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +245 -16
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +17 -1
- package/dist/types/meeting/request.type.d.ts +5 -0
- package/dist/types/meeting/util.d.ts +40 -0
- package/dist/types/meetings/index.d.ts +42 -20
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +2 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +14 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +11 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
- package/dist/types/multistream/sendSlotManager.d.ts +23 -1
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +4 -0
- package/dist/types/webinar/utils.d.ts +6 -0
- package/dist/webinar/index.js +585 -164
- package/dist/webinar/index.js.map +1 -1
- package/dist/webinar/utils.js +25 -0
- package/dist/webinar/utils.js.map +1 -0
- package/package.json +24 -23
- package/src/aiEnableRequest/README.md +84 -0
- package/src/aiEnableRequest/index.ts +186 -0
- package/src/aiEnableRequest/utils.ts +25 -0
- package/src/annotation/index.ts +27 -7
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +110 -1
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +6 -2
- package/src/constants.ts +49 -3
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/hashTree/constants.ts +17 -0
- package/src/hashTree/hashTree.ts +17 -0
- package/src/hashTree/hashTreeParser.ts +1482 -361
- package/src/hashTree/types.ts +4 -0
- package/src/hashTree/utils.ts +45 -0
- package/src/index.ts +14 -1
- package/src/interceptors/constant.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +246 -0
- package/src/interceptors/index.ts +2 -1
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interceptors/utils.ts +16 -0
- package/src/interpretation/index.ts +29 -11
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/controlsUtils.ts +14 -1
- package/src/locus-info/index.ts +975 -203
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/selfUtils.ts +1 -0
- package/src/locus-info/types.ts +33 -1
- package/src/media/MediaConnectionAwaiter.ts +62 -5
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +11 -4
- package/src/meeting/in-meeting-actions.ts +20 -0
- package/src/meeting/index.ts +1272 -164
- 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 +56 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/reactions.type.ts +4 -0
- package/src/reconnection-manager/index.ts +0 -1
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/index.ts +448 -11
- package/src/webinar/utils.ts +16 -0
- package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
- package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
- package/test/unit/spec/annotation/index.ts +69 -7
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +191 -2
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/hashTree/hashTree.ts +66 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +4528 -171
- package/test/unit/spec/hashTree/utils.ts +125 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- package/test/unit/spec/interceptors/utils.ts +75 -0
- package/test/unit/spec/interpretation/index.ts +26 -4
- package/test/unit/spec/locus-info/controlsUtils.js +200 -56
- package/test/unit/spec/locus-info/index.js +1848 -164
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +35 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
- package/test/unit/spec/meeting/index.js +3706 -405
- 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 +151 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/reconnection-manager/index.js +4 -8
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +837 -39
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import EventsScope from '../common/events/events-scope';
|
|
2
2
|
import { LOCUSEVENT } from '../constants';
|
|
3
|
-
import HashTreeParser, { DataSet, HashTreeMessage } from '../hashTree/hashTreeParser';
|
|
3
|
+
import HashTreeParser, { DataSet, HashTreeMessage, Metadata, SyncLatencyTracker } from '../hashTree/hashTreeParser';
|
|
4
4
|
import { HashTreeObject } from '../hashTree/types';
|
|
5
5
|
import { Links, LocusDTO } from './types';
|
|
6
|
+
import MeetingCollection from '../meetings/collection';
|
|
6
7
|
export type LocusLLMEvent = {
|
|
8
|
+
trackingId?: string;
|
|
7
9
|
data: {
|
|
8
10
|
eventType: typeof LOCUSEVENT.HASH_TREE_DATA_UPDATED;
|
|
9
11
|
stateElementsMessage: HashTreeMessage;
|
|
@@ -12,6 +14,36 @@ export type LocusLLMEvent = {
|
|
|
12
14
|
export type LocusApiResponseBody = {
|
|
13
15
|
dataSets?: DataSet[];
|
|
14
16
|
locus: LocusDTO;
|
|
17
|
+
metadata?: Metadata;
|
|
18
|
+
} | LocusDTO;
|
|
19
|
+
export type HashTreeParserEntry = {
|
|
20
|
+
parser: HashTreeParser;
|
|
21
|
+
replacedAt?: string;
|
|
22
|
+
initializedFromHashTree: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type LocusInfoCallbacks = {
|
|
25
|
+
updateMeeting: (object: any) => void;
|
|
26
|
+
syncLatencyTracker?: SyncLatencyTracker;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Finds a meeting for a given hash tree message.
|
|
30
|
+
*
|
|
31
|
+
* @param {HashTreeMessage} message - The hash tree message to find the meeting for
|
|
32
|
+
* @param {MeetingCollection} meetingCollection - The collection of meetings to search
|
|
33
|
+
* @returns {any} The meeting if found, otherwise undefined
|
|
34
|
+
*/
|
|
35
|
+
export declare function findMeetingForHashTreeMessage(message: HashTreeMessage | undefined, meetingCollection: MeetingCollection): any;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a locus object from the objects received in a hash tree message. It usually will be
|
|
38
|
+
* incomplete, because hash tree messages only contain the parts of locus that have changed,
|
|
39
|
+
* and some updates come separately over Mercury or LLM in separate messages.
|
|
40
|
+
*
|
|
41
|
+
* @param {HashTreeMessage} message hash tree message to created the locus from
|
|
42
|
+
* @returns {Object} the created locus object and metadata if present
|
|
43
|
+
*/
|
|
44
|
+
export declare function createLocusFromHashTreeMessage(message: HashTreeMessage): {
|
|
45
|
+
locus: LocusDTO;
|
|
46
|
+
metadata?: Metadata;
|
|
15
47
|
};
|
|
16
48
|
/**
|
|
17
49
|
* @description LocusInfo extends ChildEmitter to convert locusInfo info a private emitter to parent object
|
|
@@ -25,7 +57,6 @@ export default class LocusInfo extends EventsScope {
|
|
|
25
57
|
locusParser: any;
|
|
26
58
|
meetingId: any;
|
|
27
59
|
parsedLocus: any;
|
|
28
|
-
updateMeeting: any;
|
|
29
60
|
webex: any;
|
|
30
61
|
aclUrl: any;
|
|
31
62
|
baseSequence: any;
|
|
@@ -46,17 +77,20 @@ export default class LocusInfo extends EventsScope {
|
|
|
46
77
|
links?: Links;
|
|
47
78
|
mainSessionLocusCache: any;
|
|
48
79
|
self: any;
|
|
49
|
-
|
|
80
|
+
hashTreeParsers: Map<string, HashTreeParserEntry>;
|
|
50
81
|
hashTreeObjectId2ParticipantId: Map<number, string>;
|
|
51
82
|
classicVsHashTreeMismatchMetricCounter: number;
|
|
83
|
+
private callbacks;
|
|
84
|
+
private destroyMeetingSuspended;
|
|
52
85
|
/**
|
|
53
86
|
* Constructor
|
|
54
|
-
* @param {
|
|
87
|
+
* @param {Object} callbacks callbacks used by LocusInfo
|
|
88
|
+
* @param {function} callbacks.updateMeeting callback to update the meeting object from an object
|
|
55
89
|
* @param {object} webex
|
|
56
90
|
* @param {string} meetingId
|
|
57
91
|
* @returns {undefined}
|
|
58
92
|
*/
|
|
59
|
-
constructor(
|
|
93
|
+
constructor(callbacks: LocusInfoCallbacks, webex: any, meetingId: any);
|
|
60
94
|
/**
|
|
61
95
|
* Does a Locus sync. It tries to get the latest delta DTO or if it can't, it falls back to getting the full Locus DTO.
|
|
62
96
|
* WARNING: This function must not be used for hash tree based Locus meetings.
|
|
@@ -91,13 +125,18 @@ export default class LocusInfo extends EventsScope {
|
|
|
91
125
|
*/
|
|
92
126
|
init(locus?: any): void;
|
|
93
127
|
/**
|
|
94
|
-
* Creates
|
|
95
|
-
* @param {Object}
|
|
96
|
-
* @
|
|
128
|
+
* Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
|
|
129
|
+
* @param {Object} params
|
|
130
|
+
* @param {string} params.locusUrl - the locus URL used as the map key
|
|
131
|
+
* @param {Object} params.initialLocus - initial locus data
|
|
132
|
+
* @param {Object} params.metadata - hash tree metadata
|
|
133
|
+
* @param {string} params.replacedAt - timestamp from Locus indicating when the replacement happened
|
|
134
|
+
* @returns {HashTreeParser} the newly created parser
|
|
97
135
|
*/
|
|
98
136
|
private createHashTreeParser;
|
|
99
137
|
/**
|
|
100
138
|
* @param {Object} data - data to initialize locus info with. It may be from a join or GET /loci response or from a Mercury event that triggers a creation of meeting object
|
|
139
|
+
* @param {Function} [onLocusSynced] - optional callback that will be called at the end of initial setup, when locus info is fully synced. It will be called with the full locus snapshot as an argument (which may be null if we haven't received any full locus DTOs during the initial setup, for example in case we receive only hash tree messages without full locus DTOs)
|
|
101
140
|
* @returns {undefined}
|
|
102
141
|
* @memberof LocusInfo
|
|
103
142
|
*/
|
|
@@ -105,6 +144,7 @@ export default class LocusInfo extends EventsScope {
|
|
|
105
144
|
trigger: 'join-response';
|
|
106
145
|
locus: LocusDTO;
|
|
107
146
|
dataSets?: DataSet[];
|
|
147
|
+
metadata?: Metadata;
|
|
108
148
|
} | {
|
|
109
149
|
trigger: 'locus-message';
|
|
110
150
|
locus?: LocusDTO;
|
|
@@ -112,7 +152,13 @@ export default class LocusInfo extends EventsScope {
|
|
|
112
152
|
} | {
|
|
113
153
|
trigger: 'get-loci-response';
|
|
114
154
|
locus?: LocusDTO;
|
|
115
|
-
}): Promise<void>;
|
|
155
|
+
}, onLocusSynced?: (locus: LocusDTO) => void): Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Builds a full locus DTO snapshot from current internal locus state.
|
|
158
|
+
*
|
|
159
|
+
* @returns {LocusDTO}
|
|
160
|
+
*/
|
|
161
|
+
private getCurrentLocusSnapshot;
|
|
116
162
|
/**
|
|
117
163
|
* Handles HTTP response from Locus API call.
|
|
118
164
|
* @param {Meeting} meeting meeting object
|
|
@@ -121,7 +167,6 @@ export default class LocusInfo extends EventsScope {
|
|
|
121
167
|
*/
|
|
122
168
|
handleLocusAPIResponse(meeting: any, responseBody: LocusApiResponseBody): void;
|
|
123
169
|
/**
|
|
124
|
-
*
|
|
125
170
|
* @param {HashTreeObject} object data set object
|
|
126
171
|
* @param {any} locus
|
|
127
172
|
* @returns {void}
|
|
@@ -135,6 +180,35 @@ export default class LocusInfo extends EventsScope {
|
|
|
135
180
|
* @returns {void}
|
|
136
181
|
*/
|
|
137
182
|
sendClassicVsHashTreeMismatchMetric(meeting: any, message: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* Helper that handles the common logic for reactivating a stopped HashTreeParser when
|
|
185
|
+
* a newer "replaces" is detected. Used by both the message and API response parser switch methods.
|
|
186
|
+
*
|
|
187
|
+
* @param {string} callerName - name of the calling method, used in log messages
|
|
188
|
+
* @param {string} locusUrl - the locus URL of the stopped parser
|
|
189
|
+
* @param {HashTreeParserEntry} stoppedEntry - the stopped parser entry
|
|
190
|
+
* @param {ReplacesInfo} replaces - replacement info extracted from self
|
|
191
|
+
* @param {Function} resumeCallback - callback to invoke after reactivation to resume the parser
|
|
192
|
+
* @returns {void}
|
|
193
|
+
*/
|
|
194
|
+
private resumeStoppedParser;
|
|
195
|
+
/**
|
|
196
|
+
* Handles an API response whose locusUrl doesn't match any active HashTreeParser
|
|
197
|
+
* (either no entry exists, or the existing entry is stopped).
|
|
198
|
+
* Creates a new parser or reactivates a stopped one using initializeFromGetLociResponse.
|
|
199
|
+
*
|
|
200
|
+
* @param {string} locusUrl - the locus URL from the API response
|
|
201
|
+
* @param {LocusDTO} locus - the locus DTO from the API response
|
|
202
|
+
* @returns {void}
|
|
203
|
+
*/
|
|
204
|
+
private handleHashTreeParserSwitchForAPIResponse;
|
|
205
|
+
/**
|
|
206
|
+
* Checks if the hash tree message should trigger a switch to a different HashTreeParser
|
|
207
|
+
*
|
|
208
|
+
* @param {HashTreeMessage} message incoming hash tree message
|
|
209
|
+
* @returns {boolean} true if the message was handled as a parser switch, false otherwise
|
|
210
|
+
*/
|
|
211
|
+
private handleHashTreeParserSwitch;
|
|
138
212
|
/**
|
|
139
213
|
* Handles a hash tree message received from Locus.
|
|
140
214
|
*
|
|
@@ -144,12 +218,23 @@ export default class LocusInfo extends EventsScope {
|
|
|
144
218
|
* @returns {void}
|
|
145
219
|
*/
|
|
146
220
|
private handleHashTreeMessage;
|
|
221
|
+
/**
|
|
222
|
+
* Triggers a sync of all hash tree datasets for all hash tree parsers associated with this meeting.
|
|
223
|
+
* The syncs are executed sequentially within each parser.
|
|
224
|
+
*
|
|
225
|
+
* @param {Object} [options={}] - Options for syncing
|
|
226
|
+
* @param {boolean} [options.onlyLLM=false] - Whether to sync only LLM based data sets
|
|
227
|
+
* @returns {Promise<void>}
|
|
228
|
+
*/
|
|
229
|
+
syncAllHashTreeDatasets(options?: {
|
|
230
|
+
onlyLLM?: boolean;
|
|
231
|
+
}): Promise<void>;
|
|
147
232
|
/**
|
|
148
233
|
* Callback registered with HashTreeParser to receive locus info updates.
|
|
149
234
|
* Updates our locus info based on the data parsed by the hash tree parser.
|
|
150
235
|
*
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
236
|
+
* @param {string} locusUrl - the locus URL for which the update is received
|
|
237
|
+
* @param {LocusInfoUpdate} update - Details about the update.
|
|
153
238
|
* @returns {void}
|
|
154
239
|
*/
|
|
155
240
|
private updateFromHashTree;
|
|
@@ -171,15 +256,18 @@ export default class LocusInfo extends EventsScope {
|
|
|
171
256
|
/**
|
|
172
257
|
* Function for handling full locus when it's using hash trees (so not the "classic" one).
|
|
173
258
|
*
|
|
259
|
+
* @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
|
|
174
260
|
* @param {object} locus locus object
|
|
175
|
-
* @param {
|
|
261
|
+
* @param {object} metadata locus hash trees metadata
|
|
176
262
|
* @param {DataSet[]} dataSets
|
|
263
|
+
* @param {string} eventType locus event
|
|
177
264
|
* @returns {void}
|
|
178
265
|
*/
|
|
179
266
|
private onFullLocusWithHashTrees;
|
|
180
267
|
/**
|
|
181
268
|
* Function for handling full locus when it's the "classic" one (not hash trees)
|
|
182
269
|
*
|
|
270
|
+
* @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
|
|
183
271
|
* @param {object} locus locus object
|
|
184
272
|
* @param {string} eventType locus event
|
|
185
273
|
* @returns {void}
|
|
@@ -187,13 +275,15 @@ export default class LocusInfo extends EventsScope {
|
|
|
187
275
|
private onFullLocusClassic;
|
|
188
276
|
/**
|
|
189
277
|
* updates the locus with full locus object
|
|
278
|
+
* @param {string} debugText string explaining the trigger for this call, added to logs for debugging purposes
|
|
190
279
|
* @param {object} locus locus object
|
|
191
280
|
* @param {string} eventType locus event
|
|
192
281
|
* @param {DataSet[]} dataSets
|
|
282
|
+
* @param {object} metadata locus hash trees metadata
|
|
193
283
|
* @returns {object} null
|
|
194
284
|
* @memberof LocusInfo
|
|
195
285
|
*/
|
|
196
|
-
onFullLocus(locus: any, eventType?: string, dataSets?: Array<DataSet
|
|
286
|
+
onFullLocus(debugText: string, locus: any, eventType?: string, dataSets?: Array<DataSet>, metadata?: Metadata): void;
|
|
197
287
|
/**
|
|
198
288
|
* Common part of handling full locus, used by both classic and hash tree based locus handling
|
|
199
289
|
* @param {object} locus locus object
|
|
@@ -207,6 +297,13 @@ export default class LocusInfo extends EventsScope {
|
|
|
207
297
|
* @memberof LocusInfo
|
|
208
298
|
*/
|
|
209
299
|
handleOneOnOneEvent(eventType: string): void;
|
|
300
|
+
/**
|
|
301
|
+
* Makes sure that passed in locus object has a participant object for self.
|
|
302
|
+
*
|
|
303
|
+
* @param {LocusDTO} locus The locus object to check and modify if needed
|
|
304
|
+
* @returns {void}
|
|
305
|
+
*/
|
|
306
|
+
ensureSelfParticipantExists(locus: any): void;
|
|
210
307
|
/**
|
|
211
308
|
* @param {Object} locus
|
|
212
309
|
* @returns {undefined}
|
|
@@ -218,7 +315,7 @@ export default class LocusInfo extends EventsScope {
|
|
|
218
315
|
* @returns {undefined}
|
|
219
316
|
* @memberof LocusInfo
|
|
220
317
|
*/
|
|
221
|
-
updateLocusInfo(locus: any):
|
|
318
|
+
updateLocusInfo(locus: any): boolean;
|
|
222
319
|
/**
|
|
223
320
|
* @param {Array} participants
|
|
224
321
|
* @param {Object} self
|
|
@@ -231,6 +328,14 @@ export default class LocusInfo extends EventsScope {
|
|
|
231
328
|
* @memberof LocusInfo
|
|
232
329
|
*/
|
|
233
330
|
isMeetingActive(): void;
|
|
331
|
+
/**
|
|
332
|
+
* Suspends or resumes the emission of DESTROY_MEETING events in certain situations.
|
|
333
|
+
* Used by joinWithMedia to prevent meeting destruction during retry flows.
|
|
334
|
+
* @param {boolean} suspend - true to suppress, false to resume
|
|
335
|
+
* @returns {undefined}
|
|
336
|
+
* @memberof LocusInfo
|
|
337
|
+
*/
|
|
338
|
+
suspendDestroyMeeting(suspend: boolean): void;
|
|
234
339
|
/**
|
|
235
340
|
* checks if the host permissions have changed while in the meeting
|
|
236
341
|
* This would be the case if your role as host or moderator has been updated
|
|
@@ -392,4 +497,10 @@ export default class LocusInfo extends EventsScope {
|
|
|
392
497
|
* @memberof LocusInfo
|
|
393
498
|
*/
|
|
394
499
|
clearMainSessionLocusCache(): void;
|
|
500
|
+
/**
|
|
501
|
+
* Cleans up all hash tree parsers and clears internal maps.
|
|
502
|
+
* @returns {void}
|
|
503
|
+
* @memberof LocusInfo
|
|
504
|
+
*/
|
|
505
|
+
cleanUp(): void;
|
|
395
506
|
}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
|
+
import { Enum } from '../constants';
|
|
1
2
|
import { HtMeta } from '../hashTree/types';
|
|
3
|
+
export declare const EndMeetingReason: {
|
|
4
|
+
readonly maxMeetingDuration: "MAX_MEETING_DURATION";
|
|
5
|
+
readonly allParticipantsLeft: "ALL_PARTICIPANTS_LEFT";
|
|
6
|
+
readonly sipHostLeft: "SIP_HOST_LEFT";
|
|
7
|
+
readonly noHost: "NO_HOST";
|
|
8
|
+
readonly waitingForMpsEndMeetingTimeout: "WAITING_FOR_MPS_END_MEETING_TIMEOUT";
|
|
9
|
+
readonly fraudDetection: "FRAUD_DETECTION";
|
|
10
|
+
readonly meetingEndedByHost: "MEETING_ENDED_BY_HOST";
|
|
11
|
+
readonly meetingUpdated: "MEETING_UPDATED";
|
|
12
|
+
readonly meetingCancelled: "MEETING_CANCELLED";
|
|
13
|
+
readonly autoEndWithSingleParticipant: "AUTO_END_WITH_SINGLE_PARTICIPANT";
|
|
14
|
+
readonly breakoutEnded: "BREAKOUT_ENDED";
|
|
15
|
+
};
|
|
16
|
+
export type EndMeetingReason = Enum<typeof EndMeetingReason>;
|
|
2
17
|
export type LocusFullState = {
|
|
3
18
|
active: boolean;
|
|
4
19
|
count: number;
|
|
5
20
|
lastActive: string;
|
|
6
21
|
locked: boolean;
|
|
7
22
|
sessionId: string;
|
|
8
|
-
|
|
23
|
+
sessionIds: string[];
|
|
9
24
|
startTime: number;
|
|
10
25
|
state: string;
|
|
11
26
|
type: string;
|
|
27
|
+
endMeetingReason?: EndMeetingReason;
|
|
12
28
|
};
|
|
13
29
|
export type Links = {
|
|
14
30
|
services: Record<'breakout' | 'record', {
|
|
@@ -20,6 +36,7 @@ export type Links = {
|
|
|
20
36
|
};
|
|
21
37
|
export type LocusDTO = {
|
|
22
38
|
controls?: any;
|
|
39
|
+
embeddedApps?: any[];
|
|
23
40
|
fullState?: LocusFullState;
|
|
24
41
|
host?: {
|
|
25
42
|
id: string;
|
|
@@ -32,6 +49,7 @@ export type LocusDTO = {
|
|
|
32
49
|
info?: any;
|
|
33
50
|
jsSdkMeta?: {
|
|
34
51
|
removedParticipantIds: string[];
|
|
52
|
+
forceReplaceMembers?: boolean;
|
|
35
53
|
};
|
|
36
54
|
links?: Links;
|
|
37
55
|
mediaShares?: any[];
|
|
@@ -52,3 +70,12 @@ export type LocusDTO = {
|
|
|
52
70
|
syncUrl?: string;
|
|
53
71
|
url?: string;
|
|
54
72
|
};
|
|
73
|
+
export type ReplacesInfo = {
|
|
74
|
+
locusUrl: string;
|
|
75
|
+
replacedAt: string;
|
|
76
|
+
sessionId: string;
|
|
77
|
+
};
|
|
78
|
+
export declare const LocusErrorCodes: {
|
|
79
|
+
readonly LOCUS_INACTIVE: 2403004;
|
|
80
|
+
};
|
|
81
|
+
export type LocusErrorCodes = Enum<typeof LocusErrorCodes>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface MediaConnectionAwaiterProps {
|
|
2
2
|
webrtcMediaConnection: any;
|
|
3
|
+
correlationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface FailureResult {
|
|
6
|
+
iceConnected: boolean;
|
|
3
7
|
}
|
|
4
8
|
/**
|
|
5
9
|
* @class MediaConnectionAwaiter
|
|
@@ -10,6 +14,7 @@ export default class MediaConnectionAwaiter {
|
|
|
10
14
|
private defer;
|
|
11
15
|
private retried;
|
|
12
16
|
private iceConnected;
|
|
17
|
+
private correlationId;
|
|
13
18
|
private onTimeoutCallback;
|
|
14
19
|
private peerConnectionStateCallback;
|
|
15
20
|
private iceConnectionStateCallback;
|
|
@@ -17,7 +22,7 @@ export default class MediaConnectionAwaiter {
|
|
|
17
22
|
/**
|
|
18
23
|
* @param {MediaConnectionAwaiterProps} mediaConnectionAwaiterProps
|
|
19
24
|
*/
|
|
20
|
-
constructor({ webrtcMediaConnection }: MediaConnectionAwaiterProps);
|
|
25
|
+
constructor({ webrtcMediaConnection, correlationId }: MediaConnectionAwaiterProps);
|
|
21
26
|
/**
|
|
22
27
|
* Returns true if the connection is connected, false otherwise.
|
|
23
28
|
*
|
|
@@ -30,6 +35,12 @@ export default class MediaConnectionAwaiter {
|
|
|
30
35
|
* @returns {boolean}
|
|
31
36
|
*/
|
|
32
37
|
private isFailed;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if ICE connection state indicates connectivity.
|
|
40
|
+
*
|
|
41
|
+
* @returns {boolean}
|
|
42
|
+
*/
|
|
43
|
+
private isIceConnected;
|
|
33
44
|
/**
|
|
34
45
|
* Returns true if the ICE Gathering is completed, false otherwise.
|
|
35
46
|
*
|
|
@@ -66,6 +77,13 @@ export default class MediaConnectionAwaiter {
|
|
|
66
77
|
* @returns {void}
|
|
67
78
|
*/
|
|
68
79
|
iceGatheringStateHandler(): void;
|
|
80
|
+
/**
|
|
81
|
+
* sends a metric with some additional info that might help debugging
|
|
82
|
+
* issues where browser doesn't update the RTCPeerConnection's iceConnectionState or connectionState
|
|
83
|
+
*
|
|
84
|
+
* @returns {void}
|
|
85
|
+
*/
|
|
86
|
+
sendMetric(): Promise<void>;
|
|
69
87
|
/**
|
|
70
88
|
* Function called when the timeout is reached.
|
|
71
89
|
*
|
|
@@ -75,7 +93,7 @@ export default class MediaConnectionAwaiter {
|
|
|
75
93
|
/**
|
|
76
94
|
* Waits for the webrtc media connection to be connected.
|
|
77
95
|
*
|
|
78
|
-
* @returns {Promise}
|
|
96
|
+
* @returns {Promise<void>} In case of failure, the promise is rejected with FailureResult
|
|
79
97
|
*/
|
|
80
98
|
waitForMediaConnectionConnected(): Promise<void>;
|
|
81
99
|
}
|
|
@@ -26,6 +26,7 @@ export default class MediaProperties {
|
|
|
26
26
|
shareAudioStream?: LocalSystemAudioStream;
|
|
27
27
|
videoDeviceId: any;
|
|
28
28
|
videoStream?: LocalCameraStream;
|
|
29
|
+
srtpCipher: string | undefined;
|
|
29
30
|
namespace: string;
|
|
30
31
|
mediaIssueCounters: {
|
|
31
32
|
[key: string]: number;
|
|
@@ -93,9 +94,10 @@ export default class MediaProperties {
|
|
|
93
94
|
/**
|
|
94
95
|
* Waits for the webrtc media connection to be connected.
|
|
95
96
|
*
|
|
97
|
+
* @param {string} correlationId
|
|
96
98
|
* @returns {Promise<void>}
|
|
97
99
|
*/
|
|
98
|
-
waitForMediaConnectionConnected(): Promise<void>;
|
|
100
|
+
waitForMediaConnectionConnected(correlationId: string): Promise<void>;
|
|
99
101
|
/**
|
|
100
102
|
* Returns ICE transport information:
|
|
101
103
|
* - selectedCandidatePairChanges - number of times the selected candidate pair was changed, it should be at least 1 for successful connections
|
|
@@ -146,8 +148,11 @@ export default class MediaProperties {
|
|
|
146
148
|
*
|
|
147
149
|
* @param {string} issueType
|
|
148
150
|
* @param {string} issueSubType
|
|
149
|
-
* @param {
|
|
151
|
+
* @param {Object} metadata
|
|
150
152
|
* @returns {void}
|
|
151
153
|
*/
|
|
152
|
-
sendMediaIssueMetric(issueType: string, issueSubType: string,
|
|
154
|
+
sendMediaIssueMetric(issueType: string, issueSubType: string, metadata: {
|
|
155
|
+
correlationId: string;
|
|
156
|
+
isMultistream: boolean;
|
|
157
|
+
}): void;
|
|
153
158
|
}
|
|
@@ -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}
|