@webex/plugin-meetings 3.12.0-webex-services-ready.4 → 3.13.0-next.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.
Files changed (165) hide show
  1. package/.sdd/manifest.json +1312 -0
  2. package/.sdd/templates/.source.json +30 -0
  3. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
  4. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
  5. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
  6. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
  7. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
  8. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
  9. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
  10. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
  11. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
  12. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
  13. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
  14. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
  15. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
  16. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
  17. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
  18. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
  19. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
  20. package/.sdd/templates/component-repo/template-map.json +112 -0
  21. package/AGENTS.md +130 -4
  22. package/ai-docs/ARCHITECTURE.md +208 -0
  23. package/ai-docs/CONTRACTS.md +267 -0
  24. package/ai-docs/DATA_MODEL.md +64 -0
  25. package/ai-docs/GETTING_STARTED.md +73 -0
  26. package/ai-docs/GLOSSARY.md +56 -0
  27. package/ai-docs/REVIEW_CHECKLIST.md +45 -0
  28. package/ai-docs/RULES.md +79 -0
  29. package/ai-docs/SECURITY.md +74 -0
  30. package/ai-docs/SERVICE_STATE.md +59 -0
  31. package/ai-docs/SPEC_INDEX.md +85 -0
  32. package/ai-docs/TEST_INDEX.md +45 -0
  33. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
  34. package/ai-docs/patterns/defensive-error-propagation.md +55 -0
  35. package/ai-docs/patterns/event-scope-emission.md +46 -0
  36. package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
  37. package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
  38. package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
  39. package/assets/README.md +28 -0
  40. package/assets/e2ee-0.0.1.js +2 -0
  41. package/assets/e2ee-0.0.1.wasm +0 -0
  42. package/dist/aiEnableRequest/index.js +1 -1
  43. package/dist/annotation/index.js +55 -19
  44. package/dist/annotation/index.js.map +1 -1
  45. package/dist/assets/e2ee-0.0.1.js +2 -0
  46. package/dist/assets/e2ee-0.0.1.wasm +0 -0
  47. package/dist/breakouts/breakout.js +1 -1
  48. package/dist/breakouts/index.js +39 -5
  49. package/dist/breakouts/index.js.map +1 -1
  50. package/dist/common/errors/webex-errors.js +7 -2
  51. package/dist/common/errors/webex-errors.js.map +1 -1
  52. package/dist/config.js +1 -0
  53. package/dist/config.js.map +1 -1
  54. package/dist/constants.js +6 -5
  55. package/dist/constants.js.map +1 -1
  56. package/dist/hashTree/hashTreeParser.js +101 -48
  57. package/dist/hashTree/hashTreeParser.js.map +1 -1
  58. package/dist/index.js +1 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/interceptors/dataChannelAuthToken.js +41 -59
  61. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  62. package/dist/interceptors/locusRetry.js +1 -1
  63. package/dist/interceptors/locusRetry.js.map +1 -1
  64. package/dist/interpretation/index.js +46 -12
  65. package/dist/interpretation/index.js.map +1 -1
  66. package/dist/interpretation/siLanguage.js +1 -1
  67. package/dist/locus-info/index.js +236 -80
  68. package/dist/locus-info/index.js.map +1 -1
  69. package/dist/locus-info/types.js +2 -1
  70. package/dist/locus-info/types.js.map +1 -1
  71. package/dist/media/MediaConnectionAwaiter.js +225 -175
  72. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  73. package/dist/meeting/index.js +355 -299
  74. package/dist/meeting/index.js.map +1 -1
  75. package/dist/meeting/util.js +8 -2
  76. package/dist/meeting/util.js.map +1 -1
  77. package/dist/meeting/voicea-meeting.js +2 -1
  78. package/dist/meeting/voicea-meeting.js.map +1 -1
  79. package/dist/meeting-info/meeting-info-v2.js +10 -3
  80. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  81. package/dist/meetings/index.js +72 -31
  82. package/dist/meetings/index.js.map +1 -1
  83. package/dist/multistream/remoteMediaManager.js +32 -4
  84. package/dist/multistream/remoteMediaManager.js.map +1 -1
  85. package/dist/multistream/sendSlotManager.js +11 -1
  86. package/dist/multistream/sendSlotManager.js.map +1 -1
  87. package/dist/types/annotation/index.d.ts +19 -0
  88. package/dist/types/common/errors/webex-errors.d.ts +6 -2
  89. package/dist/types/config.d.ts +1 -0
  90. package/dist/types/constants.d.ts +2 -1
  91. package/dist/types/hashTree/hashTreeParser.d.ts +12 -0
  92. package/dist/types/index.d.ts +1 -0
  93. package/dist/types/locus-info/index.d.ts +45 -1
  94. package/dist/types/locus-info/types.d.ts +1 -0
  95. package/dist/types/media/MediaConnectionAwaiter.d.ts +61 -53
  96. package/dist/types/meeting/index.d.ts +49 -12
  97. package/dist/types/meeting/util.d.ts +3 -1
  98. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  99. package/dist/types/meetings/index.d.ts +2 -1
  100. package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
  101. package/dist/types/multistream/sendSlotManager.d.ts +5 -1
  102. package/dist/webinar/index.js +298 -255
  103. package/dist/webinar/index.js.map +1 -1
  104. package/package.json +25 -23
  105. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  106. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  107. package/src/annotation/index.ts +61 -29
  108. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  109. package/src/breakouts/index.ts +35 -2
  110. package/src/common/errors/webex-errors.ts +8 -2
  111. package/src/config.ts +5 -1
  112. package/src/constants.ts +2 -1
  113. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  114. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  115. package/src/hashTree/hashTreeParser.ts +67 -3
  116. package/src/index.ts +1 -0
  117. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  118. package/src/interceptors/dataChannelAuthToken.ts +48 -77
  119. package/src/interceptors/locusRetry.ts +1 -1
  120. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  121. package/src/interpretation/index.ts +38 -1
  122. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  123. package/src/locus-info/index.ts +156 -35
  124. package/src/locus-info/types.ts +1 -0
  125. package/src/media/MediaConnectionAwaiter.ts +223 -207
  126. package/src/media/ai-docs/media-spec.md +267 -0
  127. package/src/meeting/ai-docs/meeting-spec.md +404 -0
  128. package/src/meeting/index.ts +332 -296
  129. package/src/meeting/util.ts +7 -4
  130. package/src/meeting/voicea-meeting.ts +1 -1
  131. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  132. package/src/meeting-info/meeting-info-v2.ts +7 -2
  133. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  134. package/src/meetings/index.ts +59 -23
  135. package/src/member/ai-docs/member-spec.md +196 -0
  136. package/src/members/ai-docs/members-spec.md +256 -0
  137. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  138. package/src/multistream/ai-docs/multistream-spec.md +295 -0
  139. package/src/multistream/remoteMediaManager.ts +23 -1
  140. package/src/multistream/sendSlotManager.ts +15 -1
  141. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  142. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  143. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  144. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  145. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  146. package/src/roap/ai-docs/roap-spec.md +241 -0
  147. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  148. package/src/webinar/index.ts +168 -188
  149. package/test/unit/spec/annotation/index.ts +214 -182
  150. package/test/unit/spec/breakouts/index.ts +145 -13
  151. package/test/unit/spec/hashTree/hashTreeParser.ts +212 -1
  152. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +81 -99
  153. package/test/unit/spec/interceptors/locusRetry.ts +29 -1
  154. package/test/unit/spec/interpretation/index.ts +93 -0
  155. package/test/unit/spec/locus-info/index.js +397 -0
  156. package/test/unit/spec/media/MediaConnectionAwaiter.ts +426 -19
  157. package/test/unit/spec/media/properties.ts +3 -3
  158. package/test/unit/spec/meeting/index.js +1219 -723
  159. package/test/unit/spec/meeting/utils.js +52 -18
  160. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  161. package/test/unit/spec/meeting-info/meetinginfov2.js +69 -1
  162. package/test/unit/spec/meetings/index.js +145 -43
  163. package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
  164. package/test/unit/spec/multistream/sendSlotManager.ts +30 -2
  165. package/test/unit/spec/webinar/index.ts +886 -718
@@ -365,14 +365,13 @@ const MeetingUtil = {
365
365
  });
366
366
  },
367
367
 
368
- cleanUp: (meeting) => {
368
+ cleanUp: (meeting, {preserveVoiceaChannel = true}: {preserveVoiceaChannel?: boolean} = {}) => {
369
369
  meeting.getWebexObject().internal.device.meetingEnded();
370
370
  meeting.stopPeriodicLogUpload();
371
371
 
372
372
  meeting.breakouts.cleanUp();
373
373
  meeting.webinar.cleanUp();
374
374
  meeting.simultaneousInterpretation.cleanUp();
375
- meeting.locusInfo.cleanUp();
376
375
  meeting.locusMediaRequest = undefined;
377
376
 
378
377
  meeting.webex?.internal?.newMetrics?.callDiagnosticMetrics?.clearEventLimitsForCorrelationId(
@@ -396,7 +395,7 @@ const MeetingUtil = {
396
395
  .then(() => meeting.stopKeepAlive())
397
396
  .then(() => {
398
397
  if (meeting.config?.enableAutomaticLLM) {
399
- return meeting.cleanupLLMConneciton({throwOnError: false});
398
+ return meeting.cleanupLLMConneciton({throwOnError: false, preserveVoiceaChannel});
400
399
  }
401
400
 
402
401
  return undefined;
@@ -1008,7 +1007,11 @@ const MeetingUtil = {
1008
1007
  renameKey(language, 'languageGroupId', 'languageCode');
1009
1008
  }
1010
1009
  if (!meeting.simultaneousInterpretation?.siLanguages?.length) {
1011
- meeting.simultaneousInterpretation.updateInterpretation({siLanguages: lanuagesInfo});
1010
+ // Meeting-info only carries siLanguages; preserve siEnabled owned by locus controls.
1011
+ meeting.simultaneousInterpretation.updateInterpretation(
1012
+ {siLanguages: lanuagesInfo},
1013
+ {preserveSiEnabled: true}
1014
+ );
1012
1015
  }
1013
1016
  }
1014
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`
@@ -649,12 +649,12 @@ export default class MeetingInfoV2 {
649
649
  installedOrgID = null,
650
650
  locusId = null,
651
651
  extraParams: object = {},
652
- options: {meetingId?: string; sendCAevents?: boolean} = {},
652
+ options: {meetingId?: string; sendCAevents?: boolean; correlationId?: string} = {},
653
653
  registrationId: string = null,
654
654
  fullSiteUrl: string = null,
655
655
  classificationId: string = null
656
656
  ) {
657
- const {meetingId, sendCAevents} = options;
657
+ const {meetingId, sendCAevents, correlationId} = options;
658
658
 
659
659
  const destinationType = await MeetingInfoUtil.getDestinationType({
660
660
  destination,
@@ -706,6 +706,10 @@ export default class MeetingInfoV2 {
706
706
  body,
707
707
  };
708
708
 
709
+ if (meetingId && sendCAevents && correlationId) {
710
+ requestOptions.headers = {correlationId};
711
+ }
712
+
709
713
  const directURI = await MeetingInfoUtil.getDirectMeetingInfoURI(destinationType);
710
714
 
711
715
  if (fullSiteUrl) {
@@ -749,6 +753,7 @@ export default class MeetingInfoV2 {
749
753
  meetingId,
750
754
  webexConferenceIdStr: response?.body?.confIdStr || response?.body?.confID,
751
755
  globalMeetingId: response?.body?.meetingId,
756
+ locusCluster: response?.body?.locusClusterUrl,
752
757
  },
753
758
  });
754
759
  }