@webex/plugin-meetings 3.13.0-next.13 → 3.13.0-next.14

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 (100) hide show
  1. package/.repo-context.json +577 -0
  2. package/.sdd/manifest.json +1320 -428
  3. package/AGENTS.md +528 -72
  4. package/dist/aiEnableRequest/index.js +1 -1
  5. package/dist/breakouts/breakout.js +1 -1
  6. package/dist/breakouts/index.js +1 -1
  7. package/dist/config.js +1 -1
  8. package/dist/interpretation/index.js +1 -1
  9. package/dist/interpretation/siLanguage.js +1 -1
  10. package/dist/webinar/index.js +1 -1
  11. package/docs/adr/0001-migrate-existing-docs-into-sdd.md +141 -0
  12. package/docs/adr/index.md +26 -0
  13. package/docs/architecture.md +816 -0
  14. package/docs/getting-started.md +177 -0
  15. package/docs/index.md +53 -0
  16. package/docs/specs/README.md +126 -0
  17. package/package.json +21 -21
  18. package/schemas/repo-context.schema.json +796 -0
  19. package/src/aiEnableRequest/docs/README.md +376 -0
  20. package/src/annotation/docs/README.md +402 -0
  21. package/src/breakouts/docs/README.md +643 -0
  22. package/src/controls-options-manager/docs/README.md +365 -0
  23. package/src/hashTree/docs/README.md +566 -0
  24. package/src/interceptors/docs/README.md +434 -0
  25. package/src/interpretation/docs/README.md +420 -0
  26. package/src/locus-info/docs/README.md +609 -0
  27. package/src/media/docs/README.md +488 -0
  28. package/src/meeting/docs/README.md +834 -0
  29. package/src/meeting-info/docs/README.md +352 -0
  30. package/src/meetings/docs/README.md +549 -0
  31. package/src/member/docs/README.md +347 -0
  32. package/src/members/docs/README.md +514 -0
  33. package/src/metrics/docs/README.md +287 -0
  34. package/src/multistream/docs/README.md +523 -0
  35. package/src/personal-meeting-room/docs/README.md +322 -0
  36. package/src/reachability/docs/README.md +548 -0
  37. package/src/reactions/docs/README.md +296 -0
  38. package/src/reconnection-manager/docs/README.md +485 -0
  39. package/src/recording-controller/docs/README.md +335 -0
  40. package/src/roap/docs/README.md +444 -0
  41. package/src/webinar/docs/README.md +425 -0
  42. package/.sdd/templates/.source.json +0 -30
  43. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +0 -111
  44. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +0 -321
  45. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +0 -59
  46. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +0 -49
  47. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +0 -42
  48. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +0 -120
  49. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +0 -206
  50. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +0 -90
  51. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +0 -68
  52. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +0 -111
  53. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +0 -57
  54. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +0 -69
  55. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +0 -96
  56. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +0 -84
  57. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +0 -82
  58. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +0 -94
  59. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +0 -64
  60. package/.sdd/templates/component-repo/template-map.json +0 -112
  61. package/ai-docs/ARCHITECTURE.md +0 -208
  62. package/ai-docs/CONTRACTS.md +0 -267
  63. package/ai-docs/DATA_MODEL.md +0 -64
  64. package/ai-docs/GETTING_STARTED.md +0 -73
  65. package/ai-docs/GLOSSARY.md +0 -56
  66. package/ai-docs/REVIEW_CHECKLIST.md +0 -45
  67. package/ai-docs/RULES.md +0 -79
  68. package/ai-docs/SECURITY.md +0 -74
  69. package/ai-docs/SERVICE_STATE.md +0 -59
  70. package/ai-docs/SPEC_INDEX.md +0 -85
  71. package/ai-docs/TEST_INDEX.md +0 -45
  72. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +0 -61
  73. package/ai-docs/patterns/defensive-error-propagation.md +0 -55
  74. package/ai-docs/patterns/event-scope-emission.md +0 -46
  75. package/ai-docs/patterns/source-to-test-path-mirroring.md +0 -45
  76. package/ai-docs/patterns/stateless-plugin-request-classes.md +0 -53
  77. package/ai-docs/patterns/typed-constants-and-enum-values.md +0 -47
  78. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +0 -223
  79. package/src/annotation/ai-docs/annotation-spec.md +0 -236
  80. package/src/breakouts/ai-docs/breakouts-spec.md +0 -324
  81. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +0 -243
  82. package/src/hashTree/ai-docs/hash-tree-spec.md +0 -267
  83. package/src/interceptors/ai-docs/interceptors-spec.md +0 -247
  84. package/src/interpretation/ai-docs/interpretation-spec.md +0 -256
  85. package/src/locus-info/ai-docs/locus-info-spec.md +0 -293
  86. package/src/media/ai-docs/media-spec.md +0 -267
  87. package/src/meeting/ai-docs/meeting-spec.md +0 -404
  88. package/src/meeting-info/ai-docs/meeting-info-spec.md +0 -261
  89. package/src/meetings/ai-docs/meetings-spec.md +0 -298
  90. package/src/member/ai-docs/member-spec.md +0 -196
  91. package/src/members/ai-docs/members-spec.md +0 -256
  92. package/src/metrics/ai-docs/metrics-spec.md +0 -185
  93. package/src/multistream/ai-docs/multistream-spec.md +0 -295
  94. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +0 -234
  95. package/src/reachability/ai-docs/reachability-spec.md +0 -261
  96. package/src/reactions/ai-docs/reactions-spec.md +0 -198
  97. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +0 -272
  98. package/src/recording-controller/ai-docs/recording-controller-spec.md +0 -223
  99. package/src/roap/ai-docs/roap-spec.md +0 -241
  100. package/src/webinar/ai-docs/webinar-spec.md +0 -243
@@ -0,0 +1,352 @@
1
+ ---
2
+ type: Module Spec
3
+ title: 'Meeting info specification'
4
+ description: Responsibilities, boundaries, design, invariants, and verification for the meeting-info module (legacy MeetingInfo and MeetingInfoV2).
5
+ tags: [module, specification]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: module-spec
9
+ generated_from: module-spec@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rarajes2@cisco.com
12
+ updated_at: 2026-11-17T03:14:21Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Meeting info
17
+
18
+ This source-local document at `src/meeting-info/docs/README.md` is the canonical source-local spec
19
+ for `src/meeting-info/`: the legacy `MeetingInfo` facade and `MeetingInfoV2`, which resolve a meeting
20
+ destination into meeting metadata and map service failures into typed errors. Ground every claim in
21
+ package evidence and link to the [package architecture](../../../docs/architecture.md) instead of
22
+ repeating broader facts. No service specification exists because this package is a library.
23
+
24
+ Related context: start from the root [package agent instructions](../../../AGENTS.md) · router
25
+ [documentation index](../../../docs/index.md) · system [package architecture](../../../docs/architecture.md).
26
+ Related module specs: [Meetings plugin](../../meetings/docs/README.md) ·
27
+ [personal meeting room](../../personal-meeting-room/docs/README.md).
28
+
29
+ ## Metadata
30
+
31
+ | Field | Value |
32
+ |---|---|
33
+ | Owner | @webex/web-client, @webex/web-sdk |
34
+ | Source path | `src/meeting-info` |
35
+ | Resource kind | module |
36
+ | Status | Draft |
37
+ | Last verified | 2026-11-16 at `0b8c34db7f` |
38
+ | Module id | `plugin-meetings/meeting-info` |
39
+ | Parent spec | — |
40
+ | Doc kind | Module spec |
41
+ | Coverage score | Pending coverage assessment |
42
+ | Validation status | not-run |
43
+
44
+ ## Applicability
45
+
46
+ | Condition ID | Status | Evidence or reason | Owned section |
47
+ |---|---|---|---|
48
+ | `module.has_tiers` | N/A | No tier policy exists in `package.json` or `src/meeting-info/meeting-info-v2.ts` | Tier |
49
+ | `module.has_ui` | N/A | `src/meeting-info/meeting-info-v2.ts` returns promises and error classes; it renders nothing | UI use-case flow |
50
+ | `module.crosses_service_boundaries` | Applicable | `src/meeting-info/meeting-info-v2.ts` calls the Webex meeting-info (wbxappapi), conversation, and people services; `src/meeting-info/request.ts` calls Locus | Cross-boundary use-case flow |
51
+ | `module.holds_client_state` | Applicable | `src/meeting-info/collection.ts` caches meeting-info bodies for the legacy facade in `src/meeting-info/index.ts` | Client state model |
52
+ | `module.enforces_domain_rules` | Applicable | Destination classification in `src/meeting-info/utilv2.ts` and error-code mapping in `src/meeting-info/meeting-info-v2.ts` | Business rules and invariants |
53
+ | `module.is_concurrent_async` | Applicable | Every lookup returns a promise; classification may await a people or Hydra lookup (`src/meeting-info/utilv2.ts`) | Concurrency and reactive flow |
54
+ | `module.owns_persistence` | N/A | The cache in `src/meeting-info/collection.ts` is in memory only | Data, schema, and migration discipline |
55
+ | `module.stateful_transitions` | N/A | No lifecycle state in `src/meeting-info/meeting-info-v2.ts` or `src/meeting-info/index.ts` | State machine |
56
+ | `module.exposes_wire_protocol` | N/A | Request bodies are built in `src/meeting-info/utilv2.ts` for a service-owned API; no wire format is owned here | Protocol and wire format |
57
+ | `module.ui_multi_screen` | N/A | No UI | UI flow |
58
+ | `module.large_data_model` | N/A | Meeting-info bodies are service responses passed through unchanged by `src/meeting-info/meeting-info-v2.ts` | Data model |
59
+ | `module.returns_caller_errors` | Applicable | Typed error classes and rejections in `src/meeting-info/meeting-info-v2.ts`; ParameterError in `src/meeting-info/request.ts` and `src/meeting-info/utilv2.ts` | Caller-visible failure modes |
60
+ | `module.module_specific_conventions` | N/A | Package-wide conventions apply; see `AGENTS.md` | Module-specific rules |
61
+ | `module.published_package` | N/A | The module is not a package; MeetingInfoV2 and MeetingInfoUtil are exported by `src/index.ts` | Export stability |
62
+ | `module.embedded_in_host` | N/A | Constructed by `src/meetings/index.ts` with the webex instance; no host theme or embed API | Host integration and theming |
63
+ | `module.has_design_tradeoff` | N/A | No recorded trade-off beyond the two providers, covered under Pitfalls (`src/meetings/index.ts` selects the provider) | Key design trade-off |
64
+ | `module.has_submodules` | N/A | The src/meeting-info directory has no child module directory | Sub-modules |
65
+
66
+ ## Evidence register
67
+
68
+ 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.
69
+
70
+ | Evidence | What it establishes |
71
+ |---|---|
72
+ | `src/meeting-info/meeting-info-v2.ts` | `MeetingInfoV2`: `fetchInfoOptions`, `fetchMeetingInfo`, the ad-hoc and static-link methods, the three error handlers, and the nine exported error classes with their code lists |
73
+ | `src/meeting-info/utilv2.ts` | `MeetingInfoUtil` (V2): destination classification, request body, Webex site, and direct meeting-info URI helpers |
74
+ | `src/meeting-info/index.ts` | Legacy `MeetingInfo` facade: `getMeetingInfo`, `setMeetingInfo`, `fetchMeetingInfo`, CA events, and the meeting-link retry |
75
+ | `src/meeting-info/request.ts` | `MeetingInfoRequest.fetchMeetingInfo`: option validation and one `webex.request` to Locus |
76
+ | `src/meeting-info/util.ts` | Legacy `MeetingInfoUtil`: classification, link-to-SIP conversion, resource URL, and request params |
77
+ | `src/meeting-info/collection.ts` | `MeetingInfoCollection` with lookup by id, `sipUrl`, `locusId`, `userId`, or `meetingLink` |
78
+ | `src/index.ts` | `export * as MeetingInfoV2` and `MeetingInfoUtil` from `utilv2.ts` |
79
+ | `src/meetings/index.ts`, `src/meeting/index.ts` | Provider selection by `experimental.enableUnifiedMeetings`; `Meeting` passes `{meetingId, sendCAevents, correlationId}` to `fetchMeetingInfo` |
80
+ | `src/metrics/constants.ts`, `src/constants.ts` | Behavioral metric names, `WBXAPPAPI_SERVICE`, and `DEFAULT_MEETING_INFO_REQUEST_BODY` |
81
+ | `test/unit/spec/meeting-info/meetinginfov2.js`, `test/unit/spec/meeting-info/utilv2.js` | V2 lookup, static links, ad-hoc, error mapping, CA events, header, and `locusCluster` cases; V2 helper cases |
82
+ | `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/request.js`, `test/unit/spec/meeting-info/util.js` | Legacy facade CA events, the request call, and two legacy helper cases |
83
+ | Observation, no stated WHY | The legacy meeting-link retry in `src/meeting-info/index.ts` spreads the promise returned by `fetchInfoOptions` into the retry options, so the retry carries only `meetingId` and `sendCAevents` and `MeetingInfoRequest` throws its ParameterError, which rejects the facade promise; no comment or test states that this is intended, so it is recorded here rather than as a requirement |
84
+
85
+ ## Purpose and boundary
86
+
87
+ - Responsibility: Resolves meeting destinations into normalized meeting metadata and maps service-specific errors into caller-actionable failures.
88
+ - In scope: destination classification (SIP URI, phone number, meeting link, conversation URL, Hydra person or room id, personal room, Locus); the V2 lookup request and its URI choice; ad-hoc space meetings; static meeting-link fetch, enable, and disable; the typed V2 errors and their behavioral metrics; CA meeting-info events; the legacy facade, request, and cache.
89
+ - Out of scope: when and how a Meeting fetches or applies meeting info (`src/meeting/index.ts`); the Meetings facade methods and provider selection (`src/meetings/index.ts`); the PMR claim (`src/personal-meeting-room/index.ts`); the meeting-info service itself.
90
+ - Consumers: `Meetings` (`fetchInfoOptions` in `create()`, static links), each `Meeting` as its `meetingInfoProvider`, `PersonalMeetingRoom.get()`, and applications through the `MeetingInfoV2` and `MeetingInfoUtil` package exports.
91
+
92
+ ## Structure and key files
93
+
94
+ `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.
95
+
96
+ 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`.
97
+
98
+ | File | Holds |
99
+ |---|---|
100
+ | `src/meeting-info/collection.ts` | `MeetingInfoCollection`, the module-owned collection of legacy meeting-info bodies |
101
+ | `src/meeting-info/index.ts` | `MeetingInfo`, the legacy module facade/controller and its CA events |
102
+ | `src/meeting-info/meeting-info-v2.ts` | `MeetingInfoV2`, the meeting-info-v2 implementation responsibility: lookup, ad-hoc, static links, and the typed errors |
103
+ | `src/meeting-info/request.ts` | `MeetingInfoRequest`, the HTTP request boundary of the legacy facade |
104
+ | `src/meeting-info/util.ts` | legacy `MeetingInfoUtil` normalization/helper functions |
105
+ | `src/meeting-info/utilv2.ts` | V2 `MeetingInfoUtil`, the utilv2 implementation responsibility: classification, request body, and direct URI; exported by the package |
106
+ | `test/unit/spec/meeting-info/index.js` and 4 sibling test file(s) (`meetinginfov2.js`, `request.js`, `util.js`, `utilv2.js`) | mirrored characterization/unit coverage |
107
+ | `src/meeting-info/docs/README.md` | This module specification |
108
+
109
+ ## Public surface
110
+
111
+ | Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
112
+ |---|---|---|---|---|---|---|
113
+ | `meeting-info-api` | 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; the legacy facade is used only when `experimental.enableUnifiedMeetings` is false. | `src/meeting-info/collection.ts`, `src/meeting-info/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
114
+ | `meeting-info-api`, `meeting-info-http` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
115
+ | `meeting-info-api`, `meeting-info-http` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
116
+ | `meeting-info-api`, `meeting-info-http` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
117
+ | `meeting-info-http` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
118
+ | `meeting-info-api` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
119
+ | `meeting-info-api` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
120
+ | `meeting-info-api` | 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` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
121
+
122
+ Provided contract IDs (manifest): `meeting-info-api` and `meeting-info-http`. They are indexed in the
123
+ [package architecture](../../../docs/architecture.md#public-and-consumer-surfaces). Coverage state
124
+ and the contracts baseline are registered in `.sdd/manifest.json`.
125
+
126
+ ### Emitted events
127
+
128
+ 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.
129
+
130
+ | Event literal | Constant / expression | Emission evidence |
131
+ |---|---|---|
132
+ | `meeting:meetingInfoAvailable` | `EVENT_TRIGGERS.MEETING_INFO_AVAILABLE` | `src/meeting/index.ts` |
133
+ | `meeting:meetingInfoUpdated` | `EVENT_TRIGGERS.MEETING_INFO_UPDATED` | `src/meeting/index.ts` |
134
+
135
+ Both events are emitted by the `Meeting` that applies the meeting info, not by this module. This
136
+ module itself submits only telemetry: the CA events `internal.client.meetinginfo.request`,
137
+ `client.meetinginfo.request`, `internal.client.meetinginfo.response`, and
138
+ `client.meetinginfo.response` through `webex.internal.newMetrics`, and V2 behavioral metrics.
139
+
140
+ Compatibility notes:
141
+
142
+ - 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.
143
+
144
+ ## Dependencies
145
+
146
+ Webex request/service access plus meeting, conversation, people, and webinar service responses.
147
+
148
+ Required contract IDs (manifest): `webex-core-plugin-host` and `meetings-metrics`.
149
+
150
+ | Dependency | Why it is required | Failure behavior |
151
+ |---|---|---|
152
+ | `@webex/webex-core` (`webex-core-plugin-host`) | `webex.request` for every lookup and the conversation fetch; `webex.internal.services.getClusterId` for conversation URLs | Request rejections are mapped to typed errors or rethrown |
153
+ | Webex meeting-info service (`webex-appapi-service`, or `https://<site>/wbxappapi/...`) | Meeting-info lookup, `spaceInstant`, `spaceInstant/query`, and `spaceInstant/deletePersistentMeeting` | Status 403, 409, and 423 map to typed errors; other errors rethrow |
154
+ | Conversation service | `GET <conversationUrl>?includeParticipants=true` before an ad-hoc meeting or static-link enable | Rejection maps to `MeetingInfoV2AdhocMeetingError` for ad-hoc, or the static-link mapping |
155
+ | `webex.people.list` and Hydra id decoding | Personal-room destinations given as an email or id, and Hydra person ids converted to a SIP URI | Rejections propagate |
156
+ | `webex.meetings.preferredWebexSite` | The host of the ad-hoc and static-link URIs | Missing site rejects with `No preferred webex site found` |
157
+ | `src/metrics/index.ts` (`meetings-metrics`) and `webex.internal.newMetrics` | Behavioral metrics and CA events | Not awaited |
158
+ | `src/common/errors/parameter.ts`, `src/common/errors/webex-errors.ts` | `ParameterError` and `SpaceIDDeprecatedError` | Thrown to the caller |
159
+
160
+ ## Requirements
161
+
162
+ | ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
163
+ |---|---|---|---|---|---|---|
164
+ | `MEETING-INFO-R-001` | fetch meeting information for a destination/type. `MeetingInfoV2.fetchMeetingInfo()` classifies the destination, starts an ad-hoc space meeting instead for a conversation URL when `enableAdhocMeetings` and a preferred site are set, builds the body with `disableWebRedirect: true`, and POSTs it to `https://<fullSiteUrl>/wbxappapi/v1/meetingInfo`, else the direct site URI, else service `webex-appapi-service` resource `meetingInfo`; it resolves the raw response. | Resolves meeting destinations into normalized meeting metadata and maps service-specific errors into caller-actionable failures; the direct URI avoids a redirect (JSDoc of `getDirectMeetingInfoURI`). | `src/meeting-info/index.ts`, `src/meeting-info/meeting-info-v2.ts`, `src/meeting-info/utilv2.ts` | `test/unit/spec/meeting-info/index.js`, `test/unit/spec/meeting-info/meetinginfov2.js` | none | PRESENT |
165
+ | `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/meetinginfov2.js` | the 403 in-progress (enable and disable), 409 already-exists, and 403 does-not-exist mappings have cases | PRESENT |
166
+ | `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 |
167
+ | `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 |
168
+ | `MEETING-INFO-R-005` | A V2 lookup that fails with status 403 first runs the policy (codes 403049, 403104, 403103, 403048, 403102, 403101), webinar (403021, 403022, 403024, 403137, 423007, 403026, 403037, 403106), and forbidden (403003) handlers in that order, each throwing its typed error after its metric, and otherwise throws `MeetingInfoV2PasswordError` with `body.data.meetingInfo`; status 423 throws `MeetingInfoV2CaptchaError` with the captcha id and URLs, `isPasswordRequired` for 423005, 423006, and 423008, and `isRegistrationIdRequired` for 423007; any other failure is rethrown after `FETCH_MEETING_INFO_V1_FAILURE`. | Give callers typed outcomes for service-specific meeting-info failures, so a password, captcha, registration, policy, or forbidden join can be answered rather than treated as a generic failure. | `src/meeting-info/meeting-info-v2.ts` | `test/unit/spec/meeting-info/meetinginfov2.js` | none | Present |
169
+ | `MEETING-INFO-R-006` | `createAdhocSpaceMeeting`, `fetchStaticMeetingLink`, `enableStaticMeetingLink`, and `disableStaticMeetingLink` reject with `Error('No preferred webex site found')` before any request when `webex.meetings.preferredWebexSite` is empty. | Their endpoints are on the preferred site's wbxappapi host, which the URI is built from. | `src/meeting-info/meeting-info-v2.ts` | `test/unit/spec/meeting-info/meetinginfov2.js` | none | Present |
170
+ | `MEETING-INFO-R-007` | When the built body has only the `DEFAULT_MEETING_INFO_REQUEST_BODY` keys (`supportHostKey`, `supportCountryList`), `MeetingInfoV2.fetchMeetingInfo()` rejects with `Not enough information to fetch meeting info` and sends `FETCH_MEETING_INFO_V1_FAILURE` without a request. | Without destination fields there is not enough to fetch the meeting info, so the request is not tried (code comment). | `src/meeting-info/meeting-info-v2.ts`, `src/constants.ts` | `test/unit/spec/meeting-info/meetinginfov2.js` | none | Present |
171
+
172
+ ## Design overview
173
+
174
+ `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 classification and request-body handling; it returns the service response without reshaping it.
175
+
176
+ `Meetings` builds one provider at the Webex `ready` event: `MeetingInfoV2` by default, or the legacy
177
+ `MeetingInfo` when `experimental.enableUnifiedMeetings` is false (`src/meetings/index.ts`). The
178
+ legacy facade has no ad-hoc or static-link methods. The V2 class holds only the `webex` reference;
179
+ its three error handlers are arrow-function properties that return when the error has no body and
180
+ throw a typed error when the body code is in their list.
181
+
182
+ ## Data flow and sequence coverage
183
+
184
+ Call style: in-process method calls; outbound HTTPS through `webex.request` to the meeting-info
185
+ service (by service name or absolute site URI), the conversation service, and Locus (legacy).
186
+
187
+ ```mermaid
188
+ flowchart LR
189
+ Caller[Meetings / consumer] --> Legacy[index.ts legacy facade]
190
+ Caller --> V2[meeting-info-v2.ts]
191
+ Legacy --> Normalize1[util.ts]
192
+ Legacy --> Request[request.ts]
193
+ V2 --> Normalize2[utilv2.ts]
194
+ Request --> Service[meeting info service URL]
195
+ V2 --> Service
196
+ Service --> Request
197
+ Request --> Legacy
198
+ Legacy --> Collection[collection.ts cache]
199
+ Collection --> Caller
200
+ Service --> V2
201
+ V2 --> Caller
202
+ ```
203
+
204
+ Sequence coverage:
205
+
206
+ | Operation group | Diagram | Failure coverage |
207
+ |---|---|---|
208
+ | UC-1…UC-5 — meeting-info lookup and static-link operation groups | Meeting-info lookup and static-link sequence | destination validation, the ad-hoc branch, the empty-body rejection, plus typed password/captcha/policy/static-link request failures, unsupported destination, permission error, or meeting-info service rejection |
209
+ | UC-4, UC-5 — static links | `src/meeting-info/meeting-info-v2.ts` (one request each; Caller-visible failure modes) | missing preferred site, 403 and 409 mappings, other errors rethrown |
210
+
211
+ ### Meeting-info lookup and static-link sequence
212
+
213
+ This one diagram covers lookup and static-link operations for both providers: the legacy
214
+ `MeetingInfo` facade goes through `MeetingInfoRequest` and its cache, and `MeetingInfoV2` calls the
215
+ service directly.
216
+
217
+ ```mermaid
218
+ sequenceDiagram
219
+ participant C as Meetings / consumer
220
+ participant V as MeetingInfoV2 or MeetingInfo facade
221
+ participant U as utilv2.ts or util.ts
222
+ participant S as Webex request / meeting-info service
223
+ C->>V: fetchMeetingInfo(destination, type, password, captcha, ...) or static-link operation
224
+ V->>U: classify and normalize destination, validate destination/type, choose request path
225
+ alt conversation URL with enableAdhocMeetings and preferred site
226
+ V->>S: createAdhocSpaceMeeting (conversation GET, spaceInstant POST)
227
+ else meeting lookup
228
+ V->>U: build request body and direct URI
229
+ opt body has only default keys
230
+ V--xC: Not enough information to fetch meeting info
231
+ end
232
+ V->>S: webex.request with selected V2 endpoint/options, or the legacy HTTP request
233
+ end
234
+ alt accepted response
235
+ S-->>V: meeting metadata
236
+ V-->>C: meeting info result, cached by the legacy facade only
237
+ else service or typed challenge error
238
+ S--xV: rejection
239
+ V--xC: typed failure through the selected helper, as a facade promise rejection
240
+ end
241
+ ```
242
+
243
+ ## Class and component relationships
244
+
245
+ ```mermaid
246
+ classDiagram
247
+ class Caller
248
+ class LegacyFacade
249
+ class V2Facade
250
+ class LegacyNormalize
251
+ class V2Normalize
252
+ class Request
253
+ class Service
254
+ class Collection
255
+ Caller --> LegacyFacade
256
+ Caller --> V2Facade
257
+ LegacyFacade --> LegacyNormalize
258
+ V2Facade --> V2Normalize
259
+ LegacyFacade --> Request
260
+ V2Facade --> Service
261
+ Request --> Service
262
+ Request --> LegacyFacade
263
+ LegacyFacade --> Collection
264
+ Collection --> Caller
265
+ V2Facade --> Caller
266
+ ```
267
+
268
+ The arrows identify ownership and delegation inside `src/meeting-info/`; files that only declare types or constants are not presented as transports.
269
+
270
+ ## Use cases and flows
271
+
272
+ | Use case | Actor or caller | Primary steps and outcome | Failure or boundary behavior | Evidence |
273
+ |---|---|---|---|---|
274
+ | `UC-1` | `Meetings.create()`, applications | Classify a SIP URI, meeting URL, conversation URL, phone number, or Hydra identity and construct the corresponding request inputs. | A Hydra room id throws `SpaceIDDeprecatedError`; an unclassifiable destination throws `ParameterError` | `src/meeting-info/util.ts`, `src/meeting-info/utilv2.ts` |
275
+ | `UC-2` | `Meeting`, `PersonalMeetingRoom` | Resolve a destination through the legacy `MeetingInfoRequest` or V2 path selected by Meetings configuration; the legacy path caches the normalized result. | Typed V2 errors; the legacy facade rejects | `src/meeting-info/index.ts`, `src/meeting-info/request.ts`, `src/meeting-info/meeting-info-v2.ts` |
276
+ | `UC-3` | `Meeting` (join with a password, captcha, or registration id) | Supply password, captcha, registration, webinar, or policy context and preserve the matching typed V2 error outcome. | 403 and 423 mappings (`MEETING-INFO-R-005`) | `src/meeting-info/meeting-info-v2.ts` |
277
+ | `UC-4` | `Meetings` static-link facade, `fetchMeetingInfo` | Fetch or create an ad-hoc/static meeting link for a space, including the branch that enables an existing static link. | Missing preferred site rejects | `src/meeting-info/meeting-info-v2.ts` |
278
+ | `UC-5` | `Meetings` static-link facade | Enable or disable a static meeting link and return the service result without substituting a legacy lookup. | 403 and 409 map to typed errors | `src/meeting-info/meeting-info-v2.ts` |
279
+
280
+ ### Cross-boundary use-case flow
281
+
282
+ | Boundary | Transport and ordering | Compatibility | Timeout, retry, and recovery |
283
+ |---|---|---|---|
284
+ | Meeting-info service (`UC-2`, `UC-3`) | One POST per lookup, after any people or Hydra lookup needed to classify | Body built by `getRequestBody`; optional `correlationId` header | No retry in V2; the legacy facade retries a failed meeting link once (see Pitfalls) |
285
+ | Conversation and spaceInstant (`UC-4`) | GET the conversation, then POST `spaceInstant` on the preferred site | `schedule: true` requests a static link | No retry |
286
+ | Static-link endpoints (`UC-4`, `UC-5`) | One POST to `spaceInstant/query` or `spaceInstant/deletePersistentMeeting` | Body `{spaceUrl}` | No retry |
287
+ | Locus (legacy `UC-2`) | One `webex.request` built by `getRequestParams` with `API.LOCUS` | Legacy resource URLs | No retry |
288
+
289
+ ## Client state model
290
+
291
+ A small in-memory collection may retain resolved meeting-info objects; remote services remain authoritative.
292
+
293
+ | State or slice | Owner | Initial state | Transition triggers | Reset or persistence boundary |
294
+ |---|---|---|---|---|
295
+ | `meetingInfoCollection` | Legacy `MeetingInfo` | Empty | A legacy lookup with a body stores it under `sipMeetingUri` or `meetingLink` | In memory; replaced with the provider |
296
+ | `MeetingInfoV2` | — | Holds only `webex` | None | No cache |
297
+
298
+ ## Business rules and invariants
299
+
300
+ | ID | Invariant | WHY | Enforcement source | Test evidence |
301
+ |---|---|---|---|---|
302
+ | `INV-001` | Destination type and response error codes determine the correct request and typed error; invalid or forbidden meetings are never returned as successful metadata. | Callers act on the typed error (`MEETING-INFO-R-005`) | `src/meeting-info/meeting-info-v2.ts`, `src/meeting-info/utilv2.ts` | `test/unit/spec/meeting-info/meetinginfov2.js` |
303
+ | `INV-002` | An explicit `type` skips classification, except that `PERSONAL_ROOM` first resolves the destination to `{userId, orgId}` (from the device when empty, otherwise by people lookup) | A personal room is addressed by user and org, not by a string destination | `src/meeting-info/utilv2.ts` | `test/unit/spec/meeting-info/utilv2.js` |
304
+
305
+ ## Concurrency and reactive flow
306
+
307
+ - Execution model: 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.
308
+ - Ordering guarantees: within one lookup, classification (with any people or Hydra lookup) completes before the request; separate lookups are independent.
309
+ - Idempotency and retry: lookups are reads; ad-hoc creation and static-link enable or disable are not deduplicated here.
310
+ - Shared-state protection: none needed; the legacy cache is last-write-wins.
311
+ - Blocking restrictions: none.
312
+
313
+ ## Caller-visible failure modes
314
+
315
+ | Condition | Signal | Caller recovery |
316
+ |---|---|---|
317
+ | 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. |
318
+ | 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. |
319
+ | 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. |
320
+ | `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. |
321
+ | Destination is a Hydra room id, or cannot be classified | V2 throws `SpaceIDDeprecatedError` or `ParameterError` from classification; the returned promise rejects. | Use a meeting ID or SIP address. |
322
+ | No preferred Webex site for ad-hoc or static-link calls | Rejects with `Error('No preferred webex site found')`. | Register Meetings first so the preferred site is fetched. |
323
+ | `fetchStaticMeetingLink` gets 403; enable gets 403 or 409; disable gets 403 | `MeetingInfoV2StaticLinkDoesNotExistError`; `MeetingInfoV2MeetingIsInProgressError` or `MeetingInfoV2StaticMeetingLinkAlreadyExists`; `MeetingInfoV2MeetingIsInProgressError`. | Act on the error type; other statuses are rethrown unchanged. |
324
+ | Ad-hoc meeting creation fails | Policy, webinar, or forbidden typed errors first; otherwise `MeetingInfoV2AdhocMeetingError` with the service code and message. | Act on the error type. |
325
+
326
+ ## Pitfalls and constraints
327
+
328
+ - Meeting-info v1 and v2 paths have different response/error mappings; do not assume one parser covers both.
329
+ - Public behavior may be reachable through a parent `Meeting`/`Meetings` object even when the source helper is not exported directly.
330
+ - The current `MeetingInfoV2PolicyError` and `MeetingInfoV2CaptchaError` constructors assign `name` values associated with other typed errors (`MeetingInfoV2AdhocMeetingError` and `MeetingInfoV2PasswordError`). Preserve 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`; no unit case asserts these `name` values.
331
+ - Code 423007 is listed as a webinar error code, but the webinar handler runs only for status 403; a 423 with code 423007 becomes `MeetingInfoV2CaptchaError` with `isRegistrationIdRequired` true.
332
+ - The legacy meeting-link retry never reaches the service as a SIP lookup (Evidence register observation), and its four unit cases call the async helper without awaiting it, so they pass without checking anything (`test/unit/spec/meeting-info/index.js`).
333
+
334
+ ## Verification
335
+
336
+ 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.
337
+
338
+ | Behavior / Requirement | Existing test evidence | Gap |
339
+ |---|---|---|
340
+ | `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 |
341
+ | `MEETING-INFO-R-002` | `test/unit/spec/meeting-info/meetinginfov2.js` | no mandatory coverage gap identified |
342
+ | `MEETING-INFO-R-003` | `test/unit/spec/meeting-info/meetinginfov2.js` | no case asserts the synchronous `ParameterError` from `MeetingInfoRequest` or its conversion into the facade rejection; error-name inconsistencies are current behavior and are not asserted |
343
+ | `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 |
344
+ | `MEETING-INFO-R-005` | `test/unit/spec/meeting-info/meetinginfov2.js` | none |
345
+ | `MEETING-INFO-R-006` | `test/unit/spec/meeting-info/meetinginfov2.js` | none for the static-link methods; `createAdhocSpaceMeeting` without a site is not asserted |
346
+ | `MEETING-INFO-R-007` | `test/unit/spec/meeting-info/meetinginfov2.js` | none |
347
+ | `INV-002` | `test/unit/spec/meeting-info/utilv2.js` | none |
348
+
349
+ Run a single suite with
350
+ `yarn workspace @webex/plugin-meetings test:unit --targets meeting-info/meetinginfov2.js`. A module
351
+ specification is complete only when its public surface, invariants, failure modes, and test evidence
352
+ agree with the implementation.