@webex/plugin-meetings 3.12.0-next.18 → 3.12.0-next.181
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/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +207 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/assets/README.md +26 -0
- package/assets/e2ee-0.0.1.js +2 -0
- package/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +55 -19
- package/dist/annotation/index.js.map +1 -1
- package/dist/assets/e2ee-0.0.1.js +2 -0
- package/dist/assets/e2ee-0.0.1.wasm +0 -0
- 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 +128 -7
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +54 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +39 -11
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +46 -10
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/hashTree/constants.js +4 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1096 -391
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +20 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +58 -16
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- 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 +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +615 -176
- 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/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +229 -166
- 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 +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1844 -959
- 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 +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +42 -4
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -5
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +304 -129
- 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 +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -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 +7 -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 +62 -15
- 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 +32 -4
- package/dist/multistream/remoteMediaManager.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/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/annotation/index.d.ts +19 -0
- package/dist/types/common/errors/webex-errors.d.ts +36 -2
- package/dist/types/config.d.ts +3 -2
- package/dist/types/constants.d.ts +15 -2
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
- package/dist/types/hashTree/utils.d.ts +7 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +106 -8
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +22 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +66 -49
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
- package/dist/types/meeting/index.d.ts +217 -16
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +12 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +40 -19
- 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 +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -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 +6 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- 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 +3 -0
- package/dist/webinar/index.js +441 -252
- package/dist/webinar/index.js.map +1 -1
- package/package.json +26 -24
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +61 -29
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +145 -3
- package/src/common/errors/webex-errors.ts +56 -3
- package/src/config.ts +3 -2
- package/src/constants.ts +23 -4
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/index.ts +62 -10
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +861 -193
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +7 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +59 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +566 -164
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +26 -1
- package/src/media/MediaConnectionAwaiter.ts +229 -196
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +1085 -252
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +53 -9
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +11 -4
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +202 -81
- 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/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +6 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- 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/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +247 -89
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +214 -182
- 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 +336 -15
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +139 -32
- package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1014 -58
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +479 -17
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +26 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +3462 -493
- 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 +12 -0
- package/test/unit/spec/meeting/utils.js +205 -19
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
- package/test/unit/spec/meetings/index.js +549 -49
- 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 +7 -0
- package/test/unit/spec/member/util.js +89 -0
- 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 +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- 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 +935 -466
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable valid-jsdoc */
|
|
2
2
|
import {defer} from 'lodash';
|
|
3
|
-
import {Defer
|
|
3
|
+
import {Defer} from '@webex/common';
|
|
4
4
|
import {EventEmitter} from 'events';
|
|
5
5
|
import {WebexPlugin} from '@webex/webex-core';
|
|
6
6
|
import {MEDIA, HTTP_VERBS, ROAP} from '../constants';
|
|
7
7
|
import LoggerProxy from '../common/logs/logger-proxy';
|
|
8
8
|
import {ClientMediaPreferences} from '../reachability/reachability.types';
|
|
9
|
+
import Metrics from '../metrics';
|
|
10
|
+
import BEHAVIORAL_METRICS from '../metrics/constants';
|
|
9
11
|
|
|
10
12
|
export type MediaRequestType = 'RoapMessage' | 'LocalMute';
|
|
11
13
|
export type RequestResult = any;
|
|
@@ -37,13 +39,13 @@ export type Request = RoapRequest | LocalMuteRequest;
|
|
|
37
39
|
class InternalRequestInfo {
|
|
38
40
|
public readonly request: Request;
|
|
39
41
|
private pendingPromises: Defer[];
|
|
40
|
-
private sendRequestFn: (request: Request) => Promise<RequestResult>;
|
|
42
|
+
private sendRequestFn: (request: Request, selfUrlRetryCount: number) => Promise<RequestResult>;
|
|
41
43
|
|
|
42
44
|
/** Constructor */
|
|
43
45
|
constructor(
|
|
44
46
|
request: Request,
|
|
45
47
|
pendingPromise: Defer,
|
|
46
|
-
sendRequestFn: (request: Request) => Promise<RequestResult>
|
|
48
|
+
sendRequestFn: (request: Request, selfUrlRetryCount: number) => Promise<RequestResult>
|
|
47
49
|
) {
|
|
48
50
|
this.request = request;
|
|
49
51
|
this.pendingPromises = [pendingPromise];
|
|
@@ -69,7 +71,7 @@ class InternalRequestInfo {
|
|
|
69
71
|
* is completed (no matter if it succeeded or failed).
|
|
70
72
|
*/
|
|
71
73
|
public execute(): Promise<void> {
|
|
72
|
-
return this.sendRequestFn(this.request)
|
|
74
|
+
return this.sendRequestFn(this.request, 0)
|
|
73
75
|
.then((result) => {
|
|
74
76
|
// resolve all the pending promises associated with this request
|
|
75
77
|
this.pendingPromises.forEach((d) => d.resolve(result));
|
|
@@ -91,8 +93,12 @@ export type Config = {
|
|
|
91
93
|
correlationId: string;
|
|
92
94
|
meetingId: string;
|
|
93
95
|
preferTranscoding: boolean;
|
|
96
|
+
getCurrentSelfUrl: () => string | undefined;
|
|
97
|
+
waitForSelfUrlChange: () => Promise<void>;
|
|
94
98
|
};
|
|
95
99
|
|
|
100
|
+
const MAX_SELF_URL_RETRY_COUNT = 2;
|
|
101
|
+
|
|
96
102
|
/**
|
|
97
103
|
* Returns true if the request is triggering confluence creation in the server
|
|
98
104
|
*/
|
|
@@ -194,7 +200,13 @@ export class LocusMediaRequest extends WebexPlugin {
|
|
|
194
200
|
/**
|
|
195
201
|
* Prepares the uri and body for the media request to be sent to Locus
|
|
196
202
|
*/
|
|
197
|
-
private sendHttpRequest(request: Request) {
|
|
203
|
+
private async sendHttpRequest(request: Request, selfUrlRetryCount = 0) {
|
|
204
|
+
// Resolve selfUrl lazily at send time. Locus rotates it on session
|
|
205
|
+
// transitions (breakout end, move-to, lobby admit) and the value
|
|
206
|
+
// captured upstream in roap/index.ts may be stale by the time we
|
|
207
|
+
// leave the queue. Persist the resolved URL on the request so a
|
|
208
|
+
// retry can detect a further rotation.
|
|
209
|
+
request.selfUrl = this.getCurrentSelfUrl(request);
|
|
198
210
|
const uri = `${request.selfUrl}/${MEDIA}`;
|
|
199
211
|
|
|
200
212
|
const {audioMuted, videoMuted} = this.getLatestMuteState();
|
|
@@ -263,7 +275,21 @@ export class LocusMediaRequest extends WebexPlugin {
|
|
|
263
275
|
|
|
264
276
|
return result;
|
|
265
277
|
})
|
|
266
|
-
.catch((e) => {
|
|
278
|
+
.catch(async (e) => {
|
|
279
|
+
if (
|
|
280
|
+
(e?.statusCode === 409 || e?.statusCode === 403) &&
|
|
281
|
+
(await this.shouldRetryOnSelfUrlChange(request, selfUrlRetryCount))
|
|
282
|
+
) {
|
|
283
|
+
// In-flight race: selfUrl rotated after we left the queue but
|
|
284
|
+
// before Locus rejected the request. Re-send; getCurrentSelfUrl
|
|
285
|
+
// will pick up the new URL. The returned promise replaces the
|
|
286
|
+
// rejection, so the caller's pendingPromise resolves correctly.
|
|
287
|
+
// Advance the retry count here so the guard in
|
|
288
|
+
// shouldRetryOnSelfUrlChange eventually stops after
|
|
289
|
+
// MAX_SELF_URL_RETRY_COUNT attempts.
|
|
290
|
+
return this.sendHttpRequest(request, selfUrlRetryCount + 1);
|
|
291
|
+
}
|
|
292
|
+
|
|
267
293
|
if (
|
|
268
294
|
isRequestAffectingConfluenceState(request) &&
|
|
269
295
|
this.confluenceState === 'creation in progress'
|
|
@@ -301,6 +327,80 @@ export class LocusMediaRequest extends WebexPlugin {
|
|
|
301
327
|
return promise;
|
|
302
328
|
}
|
|
303
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Returns the latest selfUrl for this meeting, falling back to the value
|
|
332
|
+
* captured when the request was enqueued.
|
|
333
|
+
*/
|
|
334
|
+
private getCurrentSelfUrl(request: Request): string {
|
|
335
|
+
const currentSelfUrl = this.config.getCurrentSelfUrl();
|
|
336
|
+
|
|
337
|
+
if (currentSelfUrl && currentSelfUrl !== request.selfUrl) {
|
|
338
|
+
LoggerProxy.logger.info(
|
|
339
|
+
`Meeting:LocusMediaRequest#getCurrentSelfUrl --> resolved updated selfUrl, using ${currentSelfUrl}`
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.LOCUS_MEDIA_REQUEST_RETRY, {
|
|
343
|
+
correlation_id: this.config.correlationId,
|
|
344
|
+
reason: 'selfUrlUpdatedBeforeMediaRequest',
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
return currentSelfUrl;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
return request.selfUrl;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Decides whether a 409 warrants a retry against the meeting's latest
|
|
355
|
+
* selfUrl.
|
|
356
|
+
*/
|
|
357
|
+
private async shouldRetryOnSelfUrlChange(
|
|
358
|
+
request: Request,
|
|
359
|
+
selfUrlRetryCount: number
|
|
360
|
+
): Promise<boolean> {
|
|
361
|
+
if (selfUrlRetryCount >= MAX_SELF_URL_RETRY_COUNT) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const roapMessageType =
|
|
366
|
+
request.type === 'RoapMessage' ? request.roapMessage?.messageType : undefined;
|
|
367
|
+
|
|
368
|
+
const currentSelfUrl = this.getCurrentSelfUrl(request);
|
|
369
|
+
|
|
370
|
+
if (!currentSelfUrl || currentSelfUrl === request.selfUrl) {
|
|
371
|
+
await this.config.waitForSelfUrlChange();
|
|
372
|
+
|
|
373
|
+
const latestSelfUrl = this.getCurrentSelfUrl(request);
|
|
374
|
+
|
|
375
|
+
if (!latestSelfUrl || latestSelfUrl === request.selfUrl) {
|
|
376
|
+
Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.LOCUS_MEDIA_REQUEST_RETRY, {
|
|
377
|
+
correlation_id: this.config.correlationId,
|
|
378
|
+
reason: 'selfUrlNotChangedAfterWait',
|
|
379
|
+
retryAttempt: selfUrlRetryCount,
|
|
380
|
+
roapMessageType,
|
|
381
|
+
});
|
|
382
|
+
LoggerProxy.logger.info(
|
|
383
|
+
'Meeting:LocusMediaRequest#sendHttpRequest --> 409 conflict, no new selfUrl even after waiting'
|
|
384
|
+
);
|
|
385
|
+
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.LOCUS_MEDIA_REQUEST_RETRY, {
|
|
390
|
+
correlation_id: this.config.correlationId,
|
|
391
|
+
reason: 'selfUrlChangedAfterWait',
|
|
392
|
+
retryAttempt: selfUrlRetryCount,
|
|
393
|
+
roapMessageType,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
LoggerProxy.logger.info(
|
|
398
|
+
`Meeting:LocusMediaRequest#sendHttpRequest --> 409 conflict, retrying ${request.type} with updated selfUrl`
|
|
399
|
+
);
|
|
400
|
+
|
|
401
|
+
return true;
|
|
402
|
+
}
|
|
403
|
+
|
|
304
404
|
/**
|
|
305
405
|
* Sends a media request to Locus
|
|
306
406
|
*/
|
package/src/meeting/muteState.ts
CHANGED
|
@@ -375,7 +375,16 @@ export class MuteState {
|
|
|
375
375
|
}
|
|
376
376
|
if (muted !== undefined) {
|
|
377
377
|
this.state.server.remoteMute = muted;
|
|
378
|
-
|
|
378
|
+
// BO->Main may replay a stale remoteMute=false from the locus cache.
|
|
379
|
+
// Only enforce the mute on muted=true (also locking client.localMute so a later stale
|
|
380
|
+
// false can't flip isMuted()), and never touch the stream on muted=false — the
|
|
381
|
+
// legitimate server-driven unmute path is LOCAL_UNMUTE_REQUIRED. Always sync client
|
|
382
|
+
// intent back so other participants' tiles still show the mute icon.
|
|
383
|
+
if (muted) {
|
|
384
|
+
this.state.client.localMute = true;
|
|
385
|
+
this.muteLocalStream(meeting, true, 'remotelyMuted');
|
|
386
|
+
}
|
|
387
|
+
this.applyClientStateToServer(meeting);
|
|
379
388
|
}
|
|
380
389
|
}
|
|
381
390
|
|
package/src/meeting/request.ts
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
SEND_DTMF_ENDPOINT,
|
|
27
27
|
_SLIDES_,
|
|
28
28
|
ANNOTATION,
|
|
29
|
+
INTERPRETATION,
|
|
29
30
|
} from '../constants';
|
|
30
31
|
import {
|
|
31
32
|
SendReactionOptions,
|
|
@@ -135,6 +136,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
135
136
|
locale?: string;
|
|
136
137
|
deviceCapabilities?: Array<string>;
|
|
137
138
|
liveAnnotationSupported: boolean;
|
|
139
|
+
enableSimultaneousInterpretation: boolean;
|
|
138
140
|
alias?: string;
|
|
139
141
|
clientMediaPreferences: ClientMediaPreferences;
|
|
140
142
|
}) {
|
|
@@ -158,6 +160,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
158
160
|
locale,
|
|
159
161
|
deviceCapabilities = [],
|
|
160
162
|
liveAnnotationSupported,
|
|
163
|
+
enableSimultaneousInterpretation,
|
|
161
164
|
clientMediaPreferences,
|
|
162
165
|
alias,
|
|
163
166
|
} = options;
|
|
@@ -193,6 +196,14 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
193
196
|
if (liveAnnotationSupported) {
|
|
194
197
|
deviceCapabilities.push(ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
|
|
195
198
|
}
|
|
199
|
+
if (enableSimultaneousInterpretation) {
|
|
200
|
+
deviceCapabilities.push(
|
|
201
|
+
INTERPRETATION.CAPABILITIES.HOST_CONTROL_SI_SUPPORTED,
|
|
202
|
+
INTERPRETATION.CAPABILITIES.INTERPRETER_CONTROL_SI_SUPPORTED,
|
|
203
|
+
INTERPRETATION.CAPABILITIES.SI_HANDOVER_SUPPORTED,
|
|
204
|
+
INTERPRETATION.CAPABILITIES.SIGN_INTERPRETER_SUPPORTED
|
|
205
|
+
);
|
|
206
|
+
}
|
|
196
207
|
|
|
197
208
|
// append installationId to device config if it exists
|
|
198
209
|
// @ts-ignore
|
package/src/meeting/util.ts
CHANGED
|
@@ -317,6 +317,7 @@ const MeetingUtil = {
|
|
|
317
317
|
locale: options.locale,
|
|
318
318
|
deviceCapabilities: options.deviceCapabilities,
|
|
319
319
|
liveAnnotationSupported: options.liveAnnotationSupported,
|
|
320
|
+
enableSimultaneousInterpretation: options.enableSimultaneousInterpretation,
|
|
320
321
|
clientMediaPreferences,
|
|
321
322
|
alias: options.alias,
|
|
322
323
|
})
|
|
@@ -364,14 +365,13 @@ const MeetingUtil = {
|
|
|
364
365
|
});
|
|
365
366
|
},
|
|
366
367
|
|
|
367
|
-
cleanUp: (meeting) => {
|
|
368
|
+
cleanUp: (meeting, {preserveVoiceaChannel = true}: {preserveVoiceaChannel?: boolean} = {}) => {
|
|
368
369
|
meeting.getWebexObject().internal.device.meetingEnded();
|
|
369
370
|
meeting.stopPeriodicLogUpload();
|
|
370
371
|
|
|
371
372
|
meeting.breakouts.cleanUp();
|
|
372
373
|
meeting.webinar.cleanUp();
|
|
373
374
|
meeting.simultaneousInterpretation.cleanUp();
|
|
374
|
-
meeting.locusInfo.cleanUp();
|
|
375
375
|
meeting.locusMediaRequest = undefined;
|
|
376
376
|
|
|
377
377
|
meeting.webex?.internal?.newMetrics?.callDiagnosticMetrics?.clearEventLimitsForCorrelationId(
|
|
@@ -395,7 +395,7 @@ const MeetingUtil = {
|
|
|
395
395
|
.then(() => meeting.stopKeepAlive())
|
|
396
396
|
.then(() => {
|
|
397
397
|
if (meeting.config?.enableAutomaticLLM) {
|
|
398
|
-
return meeting.cleanupLLMConneciton({throwOnError: false});
|
|
398
|
+
return meeting.cleanupLLMConneciton({throwOnError: false, preserveVoiceaChannel});
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
return undefined;
|
|
@@ -846,6 +846,19 @@ const MeetingUtil = {
|
|
|
846
846
|
requestBody.sequence = sequence;
|
|
847
847
|
},
|
|
848
848
|
|
|
849
|
+
/**
|
|
850
|
+
* Checks if Locus API response contains a Locus DTO
|
|
851
|
+
*
|
|
852
|
+
* @param {any} response http response from Locus API call
|
|
853
|
+
* @returns {boolean} true if response contains a Locus DTO
|
|
854
|
+
*/
|
|
855
|
+
isLocusDtoInAPIResponse(response: any) {
|
|
856
|
+
return (
|
|
857
|
+
response?.body?.locus || // for APIs called on our participant - locus is one of props in the response body
|
|
858
|
+
response?.body?.url // for APIs that act on locus itself (like mute all), the body is the locus
|
|
859
|
+
);
|
|
860
|
+
},
|
|
861
|
+
|
|
849
862
|
/**
|
|
850
863
|
* Updates the locus info for the meeting with the locus
|
|
851
864
|
* information returned from API requests made to Locus
|
|
@@ -854,12 +867,13 @@ const MeetingUtil = {
|
|
|
854
867
|
* @param {Object} response The response of the http request
|
|
855
868
|
* @returns {Object}
|
|
856
869
|
*/
|
|
857
|
-
updateLocusFromApiResponse: (meeting, response) => {
|
|
870
|
+
updateLocusFromApiResponse: (meeting: any, response: any) => {
|
|
858
871
|
if (!meeting) {
|
|
859
872
|
return response;
|
|
860
873
|
}
|
|
861
874
|
|
|
862
|
-
|
|
875
|
+
// locus API responses can come in different shapes:
|
|
876
|
+
if (MeetingUtil.isLocusDtoInAPIResponse(response)) {
|
|
863
877
|
meeting.locusInfo.handleLocusAPIResponse(meeting, response.body);
|
|
864
878
|
}
|
|
865
879
|
|
|
@@ -905,9 +919,20 @@ const MeetingUtil = {
|
|
|
905
919
|
|
|
906
920
|
const options = buildLocusDeltaRequestOptions(originalOptions);
|
|
907
921
|
|
|
908
|
-
return meeting
|
|
909
|
-
|
|
910
|
-
|
|
922
|
+
return meeting.request(options).then((response) => {
|
|
923
|
+
const requestUri = options?.uri;
|
|
924
|
+
const meetingLocusUrl = meeting.locusUrl;
|
|
925
|
+
|
|
926
|
+
if (!requestUri || !meetingLocusUrl || !requestUri.startsWith(meetingLocusUrl)) {
|
|
927
|
+
LoggerProxy.logger.info(
|
|
928
|
+
`Meeting:util#generateLocusDeltaRequest --> skipping updateLocusFromApiResponse, request uri "${requestUri}" does not match meeting locusUrl "${meetingLocusUrl}"`
|
|
929
|
+
);
|
|
930
|
+
|
|
931
|
+
return response;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
return MeetingUtil.updateLocusFromApiResponse(meeting, response);
|
|
935
|
+
});
|
|
911
936
|
};
|
|
912
937
|
|
|
913
938
|
return locusDeltaRequest;
|
|
@@ -931,6 +956,21 @@ const MeetingUtil = {
|
|
|
931
956
|
attendeeRequestAiAssistantDeclinedAll: (displayHints = []) =>
|
|
932
957
|
displayHints.includes(DISPLAY_HINTS.ATTENDEE_REQUEST_AI_ASSISTANT_DECLINED_ALL),
|
|
933
958
|
|
|
959
|
+
isAnonymizeDisplayNamesEnabled: (displayHints) =>
|
|
960
|
+
displayHints.includes(DISPLAY_HINTS.ANONYMOUS_DISPLAY_NAMES_ENABLED),
|
|
961
|
+
|
|
962
|
+
canViewTheParticipantList: (displayHints, canNotViewTheParticipantList: boolean) => {
|
|
963
|
+
if (!displayHints.includes(DISPLAY_HINTS.VIEW_THE_PARTICIPANT_LIST)) {
|
|
964
|
+
return false;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
if (canNotViewTheParticipantList) {
|
|
968
|
+
return false;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
return displayHints.includes(DISPLAY_HINTS.CAN_VIEW_THE_PARTICIPANT_LIST);
|
|
972
|
+
},
|
|
973
|
+
|
|
934
974
|
selfSupportsFeature: (feature: SELF_POLICY, userPolicies: Record<SELF_POLICY, boolean>) => {
|
|
935
975
|
if (!userPolicies) {
|
|
936
976
|
return true;
|
|
@@ -967,7 +1007,11 @@ const MeetingUtil = {
|
|
|
967
1007
|
renameKey(language, 'languageGroupId', 'languageCode');
|
|
968
1008
|
}
|
|
969
1009
|
if (!meeting.simultaneousInterpretation?.siLanguages?.length) {
|
|
970
|
-
|
|
1010
|
+
// Meeting-info only carries siLanguages; preserve siEnabled owned by locus controls.
|
|
1011
|
+
meeting.simultaneousInterpretation.updateInterpretation(
|
|
1012
|
+
{siLanguages: lanuagesInfo},
|
|
1013
|
+
{preserveSiEnabled: true}
|
|
1014
|
+
);
|
|
971
1015
|
}
|
|
972
1016
|
}
|
|
973
1017
|
Trigger.trigger(
|
|
@@ -102,7 +102,7 @@ export const processNewCaptions = ({
|
|
|
102
102
|
|
|
103
103
|
interimTranscriptionIds.push(interimId);
|
|
104
104
|
} else {
|
|
105
|
-
transcriptData.interimCaptions[transcriptId].forEach((innerInterimId) => {
|
|
105
|
+
(transcriptData.interimCaptions[transcriptId] ?? []).forEach((innerInterimId) => {
|
|
106
106
|
const interimTranscriptIndex = transcriptData.captions.findIndex(
|
|
107
107
|
(transcript) => transcript.id === innerInterimId
|
|
108
108
|
);
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: module-spec
|
|
3
|
+
generated_from: module-spec@0.2.2
|
|
4
|
+
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
+
generated_by: codex
|
|
6
|
+
approved_by: repository user
|
|
7
|
+
updated_at: 2026-10-08T00:00:00Z
|
|
8
|
+
validation_status: pass-with-warnings
|
|
9
|
+
-->
|
|
10
|
+
# MEETING INFO — SPEC
|
|
11
|
+
|
|
12
|
+
> Start here → root [`AGENTS.md`](../../../AGENTS.md) · router [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md). This is the canonical source-local spec for `src/meeting-info/`.
|
|
13
|
+
|
|
14
|
+
## Metadata
|
|
15
|
+
|
|
16
|
+
| Field | Value |
|
|
17
|
+
|---|---|
|
|
18
|
+
| Module id | `meeting-info` |
|
|
19
|
+
| Source path(s) | `src/meeting-info/` |
|
|
20
|
+
| Parent spec | — |
|
|
21
|
+
| Doc kind | Module spec |
|
|
22
|
+
| Coverage score | 93% assessed 2026-08-22; 13/14 mandatory fields present; all critical and Important fields present; one noncritical polish gap remains; pending independent validation of the participant-role repair |
|
|
23
|
+
| Generated from | `module-spec` @ SDLC template library `0.2.2` |
|
|
24
|
+
| generated_by / approved_by / updated_at | codex / repository user / 2026-09-08T00:00:00Z |
|
|
25
|
+
| Revalidated against | `b7b93b443e` (manual diff review of `f9a29f61..b7b93b443e`; not a generator/validator tool run) |
|
|
26
|
+
| Validation status | pass-with-warnings |
|
|
27
|
+
|
|
28
|
+
## Evidence Rules
|
|
29
|
+
|
|
30
|
+
Requirements cite current implementation and mirrored unit-test paths. Current code wins over retained prose when they conflict; commit and PR history are excluded by repository-owner decision. Missing test evidence is stated as a gap rather than inferred.
|
|
31
|
+
|
|
32
|
+
## Source Material Register
|
|
33
|
+
|
|
34
|
+
| Source material | Scope | Decision | Detail location or disposition |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| No routed legacy module spec | overview / API / behavior / tests | none; generated from current source and mirrored tests |
|
|
37
|
+
| Current source and mirrored tests | implementation / tests | verified | requirements, flows, failures, and test strategy below |
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
|
|
41
|
+
`src/meeting-info/` contains 6 direct source/reference file(s) and has 5 mirrored unit-test file(s). This spec separates its public operations, runtime data movement, component ownership, state applicability, and verification boundary.
|
|
42
|
+
|
|
43
|
+
## Purpose / Responsibility
|
|
44
|
+
|
|
45
|
+
Resolves meeting destinations into normalized meeting metadata and maps service-specific errors into caller-actionable failures.
|
|
46
|
+
|
|
47
|
+
## Stack
|
|
48
|
+
|
|
49
|
+
TypeScript/JavaScript in the Node 22.14 Yarn workspace; Webex core/plugin abstractions and Mocha/Sinon/`@webex/test-helper-chai` tests. Build target: `yarn workspace @webex/plugin-meetings build:src`.
|
|
50
|
+
|
|
51
|
+
## Folder / Package Structure
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
src/meeting-info/
|
|
55
|
+
├── collection.ts — module-owned collection
|
|
56
|
+
├── index.ts — module facade/controller or primary exports
|
|
57
|
+
├── meeting-info-v2.ts — meeting-info-v2 implementation responsibility
|
|
58
|
+
├── request.ts — HTTP request boundary
|
|
59
|
+
├── util.ts — normalization/helper functions
|
|
60
|
+
├── utilv2.ts — utilv2 implementation responsibility
|
|
61
|
+
└── ai-docs/meeting-info-spec.md — canonical module specification
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Key Files (source of truth)
|
|
65
|
+
|
|
66
|
+
| File | Holds |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `src/meeting-info/collection.ts` | module-owned collection |
|
|
69
|
+
| `src/meeting-info/index.ts` | module facade/controller or primary exports |
|
|
70
|
+
| `src/meeting-info/meeting-info-v2.ts` | meeting-info-v2 implementation responsibility |
|
|
71
|
+
| `src/meeting-info/request.ts` | HTTP request boundary |
|
|
72
|
+
| `src/meeting-info/util.ts` | normalization/helper functions |
|
|
73
|
+
| `src/meeting-info/utilv2.ts` | utilv2 implementation responsibility |
|
|
74
|
+
| `test/unit/spec/meeting-info/index.js` and 4 sibling test file(s) | mirrored characterization/unit coverage |
|
|
75
|
+
|
|
76
|
+
## Public Surface
|
|
77
|
+
|
|
78
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
79
|
+
|---|---|---|---|---|---|---|
|
|
80
|
+
| `meeting-info.1` | SDK collection/model | `MeetingInfoCollection.get()` and `MeetingInfo.getMeetingInfo()`, `setMeetingInfo()`, `fetchMeetingInfo()` | Cache destination-keyed meeting information and refresh it through the selected request path. | Preserve collection identity, cache updates, and request rejection. | `src/meeting-info/collection.ts`, `src/meeting-info/index.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
81
|
+
| `meeting-info.2` | SDK / V2 remote | `MeetingInfoV2.fetchInfoOptions()` and `fetchMeetingInfo()` | Build V2 lookup options and normalize supported destination responses into meeting information. | Preserve password/captcha/registration inputs and typed error mapping. | `src/meeting-info/meeting-info-v2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
82
|
+
| `meeting-info.3` | SDK / V2 remote | `createAdhocSpaceMeetingOrEnableStaticMeetingLink()`, `createAdhocSpaceMeeting()`, and `fetchStaticMeetingLink()` | Select existing static-link lookup versus ad-hoc creation/enablement for a space destination. | Preserve branch conditions and direct service outcomes. | `src/meeting-info/meeting-info-v2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
83
|
+
| `meeting-info.4` | SDK / V2 remote | `enableStaticMeetingLink()` and `disableStaticMeetingLink()` | Mutate the static meeting-link state for the supplied space/context. | Preserve request route/body and typed V2 error behavior. | `src/meeting-info/meeting-info-v2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
84
|
+
| `meeting-info.5` | request adapter | `MeetingInfoRequest.fetchMeetingInfo()` | Perform the legacy meeting-info request selected by the facade. | Preserve HTTP request parameters and direct response/rejection propagation. | `src/meeting-info/request.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
85
|
+
| `meeting-info.6` | package-exported utilities | `MeetingInfoUtil.getParsedUrl()`, `isMeetingLink()`, `isConversationUrl()`, `isSipUri()`, `isPhoneNumber()`, `getHydraId()`, `getSipUriFromHydraPersonId()`, `getDestinationType()`, `getRequestBody()`, `getWebexSite()`, and `getDirectMeetingInfoURI()` | Expose the destination classification and V2 request-body helpers exported as `MeetingInfoUtil` by `src/index.ts`. | Preserve classification precedence, URL parsing, and generated V2 body/URI shapes; methods that exist only on legacy `util.ts` are not package exports. | `src/index.ts`, `src/meeting-info/utilv2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
86
|
+
| `meeting-info.7` | exported errors | `MeetingInfoV2PasswordError`, `MeetingInfoV2AdhocMeetingError`, `MeetingInfoV2PolicyError`, `MeetingInfoV2CaptchaError`, `MeetingInfoV2JoinWebinarError`, `MeetingInfoV2JoinForbiddenError`, `MeetingInfoV2StaticLinkDoesNotExistError`, `MeetingInfoV2MeetingIsInProgressError`, and `MeetingInfoV2StaticMeetingLinkAlreadyExists` | Give callers typed outcomes for service-specific meeting-info failures. | Preserve class identity and mapping from current service status/body conditions. | `src/meeting-info/meeting-info-v2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
87
|
+
| `meeting-info.8` | V2 error mapping | `MeetingInfoV2.handlePolicyError()`, `handleJoinWebinarError()`, and `handleForbiddenError()` | Convert service policy/webinar/forbidden responses into the exported typed error classes. | Preserve response-condition precedence and error identity. | `src/meeting-info/meeting-info-v2.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
88
|
+
|
|
89
|
+
### Emitted events
|
|
90
|
+
|
|
91
|
+
Current source emits or forwards these observable literals for this operation boundary. Preserve literal values, scope, payload shape, and emission timing; a constant name alone is not a substitute for the consumer-visible value.
|
|
92
|
+
|
|
93
|
+
| Event literal | Constant / expression | Emission evidence |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| `meeting:meetingInfoAvailable` | `EVENT_TRIGGERS.MEETING_INFO_AVAILABLE` | `src/meeting/index.ts` |
|
|
96
|
+
| `meeting:meetingInfoUpdated` | `EVENT_TRIGGERS.MEETING_INFO_UPDATED` | `src/meeting/index.ts` |
|
|
97
|
+
|
|
98
|
+
Compatibility notes:
|
|
99
|
+
- Prefer additive options and payload fields. Preserve method/event names, rejection semantics, and cleanup timing; route public changes through `src/index.ts` or the documented owning object.
|
|
100
|
+
|
|
101
|
+
## Requires (dependencies)
|
|
102
|
+
|
|
103
|
+
Webex request/service access plus meeting, conversation, people, and webinar service responses.
|
|
104
|
+
|
|
105
|
+
## Requirements
|
|
106
|
+
|
|
107
|
+
| ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
|
|
108
|
+
|---|---|---|---|---|---|---|
|
|
109
|
+
| `MEETING-INFO-R-001` | fetch meeting information for a destination/type. | Resolves meeting destinations into normalized meeting metadata and maps service-specific errors into caller-actionable failures. | `src/meeting-info/index.ts` | `test/unit/spec/meeting-info/index.js` | none | PRESENT |
|
|
110
|
+
| `MEETING-INFO-R-002` | resolve, enable, and disable static meeting links. | Static-link lookup and mutation select different V2 endpoints and typed error outcomes. | `src/meeting-info/index.ts`, `src/meeting-info/meeting-info-v2.ts` | `test/unit/spec/meeting-info/index.js` | static-link conflict and in-progress error mappings need a complete V2 matrix | PRESENT |
|
|
111
|
+
| `MEETING-INFO-R-003` | `MeetingInfoRequest.fetchMeetingInfo()` throws `ParameterError` synchronously when its options lack a type or destination. When the legacy facade invokes that helper inside its promise chain, the throw becomes the facade's returned rejection; V2 password, captcha, permission, and request failures also remain typed caller-visible promise outcomes. Request helpers own no persistent listeners or timers. | Callers must distinguish the direct request helper's synchronous validation boundary from facade/V2 promise failures while still retaining actionable typed errors. | `src/meeting-info/request.ts`, `src/meeting-info/index.ts`, `src/meeting-info/meeting-info-v2.ts` | `test/unit/spec/meeting-info/request.js`, `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js` | none | PRESENT |
|
|
112
|
+
| `MEETING-INFO-R-004` | Emit CA request/response events only when both `meetingId` and `sendCAevents` are supplied, and emit the operation-specific behavioral success/failure metric on V2 outcomes. `MeetingInfoV2.fetchMeetingInfo()` additionally accepts `options.correlationId` and sets the request header `{correlationId}` only when `meetingId`, `sendCAevents`, and `correlationId` are all present; any missing one leaves `requestOptions.headers` unset. `Meeting` supplies `this.correlationId` on that option. The V2 success `client.meetinginfo.response` sets `identifiers.meetingLookupUrl` from the response URL and passes `globalMeetingId`, `webexConferenceIdStr`, and `locusCluster` (from `response.body.locusClusterUrl`) as options, which the metrics plugin applies to the event identifiers when the meeting's own meeting info does not yet provide them. | Conditional correlation avoids unscoped CA telemetry, while stable behavioral metrics preserve operation-level observability for lookup and link-management failures. Propagating the correlation id as a header lets the service join its own trace to the client's CA events, and gating it on the same three inputs keeps the header from leaking on requests that emit no CA events. Meeting info is not on the `Meeting` yet when the response event fires, so the identifiers come from the response itself. | `src/meeting-info/index.ts`, `src/meeting-info/meeting-info-v2.ts`, `src/metrics/constants.ts` | `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js` | none | PRESENT |
|
|
113
|
+
|
|
114
|
+
## Design Overview
|
|
115
|
+
|
|
116
|
+
`index.ts` provides the legacy meeting-info facade, `request.ts` performs that facade's HTTP calls, and `collection.ts` caches its meeting-info objects. `meeting-info-v2.ts` implements the V2 pipeline and calls `webex.request` directly after using `utilv2.ts` for destination/response handling.
|
|
117
|
+
|
|
118
|
+
## Data Flow
|
|
119
|
+
|
|
120
|
+
```mermaid
|
|
121
|
+
flowchart LR
|
|
122
|
+
Caller[Meetings / consumer] --> Legacy[index.ts legacy facade]
|
|
123
|
+
Caller --> V2[meeting-info-v2.ts]
|
|
124
|
+
Legacy --> Normalize1[util.ts]
|
|
125
|
+
Legacy --> Request[request.ts]
|
|
126
|
+
V2 --> Normalize2[utilv2.ts]
|
|
127
|
+
Request --> Service[meeting info service URL]
|
|
128
|
+
V2 --> Service
|
|
129
|
+
Service --> Request
|
|
130
|
+
Request --> Legacy
|
|
131
|
+
Legacy --> Collection[collection.ts cache]
|
|
132
|
+
Collection --> Caller
|
|
133
|
+
Service --> V2
|
|
134
|
+
V2 --> Caller
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Sequence Diagram(s)
|
|
138
|
+
|
|
139
|
+
Sequence coverage:
|
|
140
|
+
|
|
141
|
+
| Operation group | Diagram | Failure coverage |
|
|
142
|
+
|---|---|---|
|
|
143
|
+
| UC-1…UC-5 — meeting-info lookup and static-link operation groups | Meeting-info lookup and static-link primary sequence | destination validation plus typed password/captcha/policy/static-link request failures |
|
|
144
|
+
| UC-1…UC-5 — meeting-info lookup and static-link alternate/failure paths | Meeting-info lookup and static-link alternate/failure sequence | unsupported destination, password/captcha challenge, permission error, or meeting-info service rejection |
|
|
145
|
+
|
|
146
|
+
### Meeting-info lookup and static-link primary sequence
|
|
147
|
+
|
|
148
|
+
```mermaid
|
|
149
|
+
sequenceDiagram
|
|
150
|
+
participant C as Meetings / consumer
|
|
151
|
+
participant V as MeetingInfoV2
|
|
152
|
+
participant U as utilv2.ts
|
|
153
|
+
participant S as Webex request / meeting-info service
|
|
154
|
+
C->>V: fetchMeetingInfo(destination, type, password, captcha, ...)
|
|
155
|
+
V->>U: classify and normalize destination
|
|
156
|
+
V->>S: webex.request with selected V2 endpoint/options
|
|
157
|
+
S-->>V: response or typed rejection
|
|
158
|
+
V->>U: normalize response
|
|
159
|
+
V-->>C: meeting info result
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Meeting-info lookup and static-link alternate/failure sequence
|
|
163
|
+
|
|
164
|
+
```mermaid
|
|
165
|
+
sequenceDiagram
|
|
166
|
+
participant C as Consumer
|
|
167
|
+
participant M as MeetingInfo
|
|
168
|
+
participant V as MeetingInfoV2 / request helper
|
|
169
|
+
participant S as Meeting-info service
|
|
170
|
+
C->>M: fetch destination or static-link operation
|
|
171
|
+
M->>M: validate destination/type and choose request path
|
|
172
|
+
M->>V: build normalized service request
|
|
173
|
+
V->>S: HTTP request
|
|
174
|
+
alt accepted response
|
|
175
|
+
S-->>V: meeting metadata
|
|
176
|
+
V-->>M: normalized body
|
|
177
|
+
M-->>C: resolved meeting information
|
|
178
|
+
else service or typed challenge error
|
|
179
|
+
S--xV: rejection
|
|
180
|
+
V--xM: typed failure through the selected helper
|
|
181
|
+
M--xC: facade promise rejection
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Class / Component Relationships
|
|
186
|
+
|
|
187
|
+
```mermaid
|
|
188
|
+
classDiagram
|
|
189
|
+
class Caller
|
|
190
|
+
class LegacyFacade
|
|
191
|
+
class V2Facade
|
|
192
|
+
class LegacyNormalize
|
|
193
|
+
class V2Normalize
|
|
194
|
+
class Request
|
|
195
|
+
class Service
|
|
196
|
+
class Collection
|
|
197
|
+
Caller --> LegacyFacade
|
|
198
|
+
Caller --> V2Facade
|
|
199
|
+
LegacyFacade --> LegacyNormalize
|
|
200
|
+
V2Facade --> V2Normalize
|
|
201
|
+
LegacyFacade --> Request
|
|
202
|
+
V2Facade --> Service
|
|
203
|
+
Request --> Service
|
|
204
|
+
Request --> LegacyFacade
|
|
205
|
+
LegacyFacade --> Collection
|
|
206
|
+
Collection --> Caller
|
|
207
|
+
V2Facade --> Caller
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
The arrows identify ownership and delegation inside `src/meeting-info/`; files that only declare types or constants are not presented as transports.
|
|
211
|
+
|
|
212
|
+
## Use Cases
|
|
213
|
+
|
|
214
|
+
- **UC-1:** Classify a SIP URI, meeting URL, conversation URL, phone number, or Hydra identity and construct the corresponding request inputs. Evidence: `src/meeting-info/util.ts`, `src/meeting-info/utilv2.ts`.
|
|
215
|
+
- **UC-2:** Resolve a destination through the legacy `MeetingInfoRequest` or V2 path selected by Meetings configuration and cache the normalized result. Evidence: `src/meeting-info/index.ts`, `src/meeting-info/request.ts`, `src/meeting-info/meeting-info-v2.ts`.
|
|
216
|
+
- **UC-3:** Supply password, captcha, registration, webinar, or policy context and preserve the matching typed V2 error outcome. Evidence: `src/meeting-info/meeting-info-v2.ts`.
|
|
217
|
+
- **UC-4:** Fetch or create an ad-hoc/static meeting link for a space, including the branch that enables an existing static link. Evidence: `src/meeting-info/meeting-info-v2.ts`.
|
|
218
|
+
- **UC-5:** Enable or disable a static meeting link and return the service result without substituting a legacy lookup. Evidence: `src/meeting-info/meeting-info-v2.ts`.
|
|
219
|
+
|
|
220
|
+
## State Model
|
|
221
|
+
|
|
222
|
+
A small in-memory collection may retain resolved meeting-info objects; remote services remain authoritative.
|
|
223
|
+
|
|
224
|
+
## Business Rules & Invariants
|
|
225
|
+
|
|
226
|
+
- Destination type and response error codes determine the correct request and typed error; invalid or forbidden meetings are never returned as successful metadata. Enforced by `src/meeting-info/index.ts` and supporting code under `src/meeting-info/`.
|
|
227
|
+
|
|
228
|
+
## Concurrency & Reactive Flow
|
|
229
|
+
|
|
230
|
+
- Each meeting-info/static-link call owns only its returned request promise; the helpers retain no listeners or timers. The V2 request path fetches directly and therefore does not imply that the legacy collection cache was populated.
|
|
231
|
+
|
|
232
|
+
## Error Handling & Failure Modes
|
|
233
|
+
|
|
234
|
+
| Condition | Signal | Caller recovery |
|
|
235
|
+
|---|---|---|
|
|
236
|
+
| Direct `MeetingInfoRequest.fetchMeetingInfo()` options omit type or destination | The helper throws `ParameterError` synchronously before issuing a request. The legacy `MeetingInfo.fetchMeetingInfo()` promise chain converts that helper throw into its returned rejection. | Validate direct-helper inputs synchronously; when using the facade, handle its returned rejection. |
|
|
237
|
+
| Service requires password/captcha, denies permission, or rejects the request | The module maps or propagates the typed caller-visible rejection. | Satisfy the challenge/permission requirement or handle the request failure. |
|
|
238
|
+
| Meeting-info response is accepted | The returned promise resolves with normalized meeting metadata; V2 lookup does not claim a legacy collection-cache update. | Use the resolved response as the current operation result. |
|
|
239
|
+
| `meetingId`, `sendCAevents`, or `correlationId` is absent on a V2 lookup | No `correlationId` request header is set and the lookup proceeds normally; this is not an error. | Supply all three when the service trace must be correlated to client CA events. |
|
|
240
|
+
|
|
241
|
+
## Pitfalls
|
|
242
|
+
|
|
243
|
+
- Meeting-info v1 and v2 paths have different response/error mappings; do not assume one parser covers both.
|
|
244
|
+
- Public behavior may be reachable through a parent `Meeting`/`Meetings` object even when the source helper is not exported directly.
|
|
245
|
+
- The current `MeetingInfoV2PolicyError` and `MeetingInfoV2CaptchaError` constructors assign `name` values associated with other typed errors. Preserve and test the current behavior until a separately reviewed implementation/spec change intentionally corrects it; callers should prefer the actual error instance and documented fields over `name` alone. Evidence: `src/meeting-info/meeting-info-v2.ts`, `test/unit/spec/meeting-info/meetinginfov2.js`.
|
|
246
|
+
|
|
247
|
+
## Test-Case Strategy (module)
|
|
248
|
+
|
|
249
|
+
Use the current mirrored suites: `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js`, `test/unit/spec/meeting-info/request.js`, `test/unit/spec/meeting-info/util.js`, `test/unit/spec/meeting-info/utilv2.js`. Characterize the meeting-info-specific use cases above and each listed failure condition; add cleanup or transition cases only for resources and state this module actually owns.
|
|
250
|
+
|
|
251
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
252
|
+
|---|---|---|
|
|
253
|
+
| `MEETING-INFO-R-001` | `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js`, `test/unit/spec/meeting-info/request.js` | no mandatory coverage gap identified |
|
|
254
|
+
| `MEETING-INFO-R-002` | `test/unit/spec/meeting-info/meetinginfov2.js` | no mandatory coverage gap identified |
|
|
255
|
+
| `MEETING-INFO-R-003` | `test/unit/spec/meeting-info/meetinginfov2.js` | error-name inconsistencies are characterized as current behavior, not corrected here |
|
|
256
|
+
| `MEETING-INFO-R-004` | `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js` | the `correlationId` header is covered by the table-driven cases asserting it is sent only for the all-three-present combination |
|
|
257
|
+
|
|
258
|
+
## Traceability
|
|
259
|
+
|
|
260
|
+
- Repo architecture: [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md) · Registry: [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md)
|
|
261
|
+
- Coverage state and contracts baseline: `../../../.sdd/manifest.json`
|