@webex/plugin-meetings 3.13.0-next.13 → 3.13.0-next.15
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/.repo-context.json +577 -0
- package/.sdd/manifest.json +1320 -428
- package/AGENTS.md +528 -72
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/config.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/webinar/index.js +1 -1
- package/docs/adr/0001-migrate-existing-docs-into-sdd.md +141 -0
- package/docs/adr/index.md +26 -0
- package/docs/architecture.md +816 -0
- package/docs/getting-started.md +177 -0
- package/docs/index.md +53 -0
- package/docs/specs/README.md +126 -0
- package/package.json +21 -21
- package/schemas/repo-context.schema.json +796 -0
- package/src/aiEnableRequest/docs/README.md +376 -0
- package/src/annotation/docs/README.md +402 -0
- package/src/breakouts/docs/README.md +643 -0
- package/src/controls-options-manager/docs/README.md +365 -0
- package/src/hashTree/docs/README.md +566 -0
- package/src/interceptors/docs/README.md +434 -0
- package/src/interpretation/docs/README.md +420 -0
- package/src/locus-info/docs/README.md +609 -0
- package/src/media/docs/README.md +488 -0
- package/src/meeting/docs/README.md +834 -0
- package/src/meeting-info/docs/README.md +352 -0
- package/src/meetings/docs/README.md +549 -0
- package/src/member/docs/README.md +347 -0
- package/src/members/docs/README.md +514 -0
- package/src/metrics/docs/README.md +287 -0
- package/src/multistream/docs/README.md +523 -0
- package/src/personal-meeting-room/docs/README.md +322 -0
- package/src/reachability/docs/README.md +548 -0
- package/src/reactions/docs/README.md +296 -0
- package/src/reconnection-manager/docs/README.md +485 -0
- package/src/recording-controller/docs/README.md +335 -0
- package/src/roap/docs/README.md +444 -0
- package/src/webinar/docs/README.md +425 -0
- package/.sdd/templates/.source.json +0 -30
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +0 -111
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +0 -321
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +0 -59
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +0 -49
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +0 -42
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +0 -120
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +0 -206
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +0 -90
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +0 -68
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +0 -111
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +0 -57
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +0 -69
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +0 -96
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +0 -84
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +0 -82
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +0 -94
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +0 -64
- package/.sdd/templates/component-repo/template-map.json +0 -112
- package/ai-docs/ARCHITECTURE.md +0 -208
- package/ai-docs/CONTRACTS.md +0 -267
- package/ai-docs/DATA_MODEL.md +0 -64
- package/ai-docs/GETTING_STARTED.md +0 -73
- package/ai-docs/GLOSSARY.md +0 -56
- package/ai-docs/REVIEW_CHECKLIST.md +0 -45
- package/ai-docs/RULES.md +0 -79
- package/ai-docs/SECURITY.md +0 -74
- package/ai-docs/SERVICE_STATE.md +0 -59
- package/ai-docs/SPEC_INDEX.md +0 -85
- package/ai-docs/TEST_INDEX.md +0 -45
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +0 -61
- package/ai-docs/patterns/defensive-error-propagation.md +0 -55
- package/ai-docs/patterns/event-scope-emission.md +0 -46
- package/ai-docs/patterns/source-to-test-path-mirroring.md +0 -45
- package/ai-docs/patterns/stateless-plugin-request-classes.md +0 -53
- package/ai-docs/patterns/typed-constants-and-enum-values.md +0 -47
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +0 -223
- package/src/annotation/ai-docs/annotation-spec.md +0 -236
- package/src/breakouts/ai-docs/breakouts-spec.md +0 -324
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +0 -243
- package/src/hashTree/ai-docs/hash-tree-spec.md +0 -267
- package/src/interceptors/ai-docs/interceptors-spec.md +0 -247
- package/src/interpretation/ai-docs/interpretation-spec.md +0 -256
- package/src/locus-info/ai-docs/locus-info-spec.md +0 -293
- package/src/media/ai-docs/media-spec.md +0 -267
- package/src/meeting/ai-docs/meeting-spec.md +0 -404
- package/src/meeting-info/ai-docs/meeting-info-spec.md +0 -261
- package/src/meetings/ai-docs/meetings-spec.md +0 -298
- package/src/member/ai-docs/member-spec.md +0 -196
- package/src/members/ai-docs/members-spec.md +0 -256
- package/src/metrics/ai-docs/metrics-spec.md +0 -185
- package/src/multistream/ai-docs/multistream-spec.md +0 -295
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +0 -234
- package/src/reachability/ai-docs/reachability-spec.md +0 -261
- package/src/reactions/ai-docs/reactions-spec.md +0 -198
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +0 -272
- package/src/recording-controller/ai-docs/recording-controller-spec.md +0 -223
- package/src/roap/ai-docs/roap-spec.md +0 -241
- package/src/webinar/ai-docs/webinar-spec.md +0 -243
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Module Spec
|
|
3
|
+
title: 'Personal meeting room specification'
|
|
4
|
+
description: Responsibilities, boundaries, design, invariants, and verification for the personal meeting room module (webex.meetings.personalMeetingRoom).
|
|
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
|
+
# Personal meeting room
|
|
17
|
+
|
|
18
|
+
This source-local document at `src/personal-meeting-room/docs/README.md` is the canonical
|
|
19
|
+
source-local spec for `src/personal-meeting-room/`: `PersonalMeetingRoom`, reached as
|
|
20
|
+
`webex.meetings.personalMeetingRoom` (or `getPersonalMeetingRoom()`), which looks up and claims the
|
|
21
|
+
user's Personal Meeting Room (PMR) and keeps the last accepted room on the instance. Ground every
|
|
22
|
+
claim in package evidence and link to the [package architecture](../../../docs/architecture.md)
|
|
23
|
+
instead of repeating broader facts. No service specification exists because this package is a
|
|
24
|
+
library.
|
|
25
|
+
|
|
26
|
+
Related context: start from the root [package agent instructions](../../../AGENTS.md) · router
|
|
27
|
+
[documentation index](../../../docs/index.md) · system [package architecture](../../../docs/architecture.md).
|
|
28
|
+
Related module specs: [Meetings plugin](../../meetings/docs/README.md) ·
|
|
29
|
+
[meeting-info](../../meeting-info/docs/README.md).
|
|
30
|
+
|
|
31
|
+
## Metadata
|
|
32
|
+
|
|
33
|
+
| Field | Value |
|
|
34
|
+
|---|---|
|
|
35
|
+
| Owner | @webex/web-client, @webex/web-sdk |
|
|
36
|
+
| Source path | `src/personal-meeting-room` |
|
|
37
|
+
| Resource kind | module |
|
|
38
|
+
| Status | Draft |
|
|
39
|
+
| Last verified | 2026-11-16 at `0b8c34db7f` |
|
|
40
|
+
| Module id | `plugin-meetings/personal-meeting-room` |
|
|
41
|
+
| Parent spec | — |
|
|
42
|
+
| Doc kind | Module spec |
|
|
43
|
+
| Coverage score | Pending coverage assessment |
|
|
44
|
+
| Validation status | not-run |
|
|
45
|
+
|
|
46
|
+
## Applicability
|
|
47
|
+
|
|
48
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
49
|
+
|---|---|---|---|
|
|
50
|
+
| `module.has_tiers` | N/A | No tier policy exists in `package.json` or `src/personal-meeting-room/index.ts` | Tier |
|
|
51
|
+
| `module.has_ui` | N/A | `src/personal-meeting-room/index.ts` returns promises; it renders nothing | UI use-case flow |
|
|
52
|
+
| `module.crosses_service_boundaries` | Applicable | `src/personal-meeting-room/request.ts` POSTs the claim to the hecate service; lookup goes through the meeting-info provider | Cross-boundary use-case flow |
|
|
53
|
+
| `module.holds_client_state` | Applicable | `src/personal-meeting-room/index.ts` keeps the last accepted PMR body and its derived fields | Client state model |
|
|
54
|
+
| `module.enforces_domain_rules` | Applicable | Claim option, pin, and link validation in `src/personal-meeting-room/request.ts` and `src/personal-meeting-room/util.ts`; the isPmr check in `src/personal-meeting-room/index.ts` | Business rules and invariants |
|
|
55
|
+
| `module.is_concurrent_async` | Applicable | Lookup and claim return independent promises that each overwrite the cached room (`src/personal-meeting-room/index.ts`) | Concurrency and reactive flow |
|
|
56
|
+
| `module.owns_persistence` | N/A | The cached room in `src/personal-meeting-room/index.ts` is in memory only | Data, schema, and migration discipline |
|
|
57
|
+
| `module.stateful_transitions` | N/A | No lifecycle state in `src/personal-meeting-room/index.ts` | State machine |
|
|
58
|
+
| `module.exposes_wire_protocol` | N/A | The claim body is built in `src/personal-meeting-room/util.ts` for a service-owned API | Protocol and wire format |
|
|
59
|
+
| `module.ui_multi_screen` | N/A | No UI | UI flow |
|
|
60
|
+
| `module.large_data_model` | N/A | Six cached fields in `src/personal-meeting-room/index.ts` | Data model |
|
|
61
|
+
| `module.returns_caller_errors` | Applicable | ParameterError and TypeError rejections and a synchronous ParameterError in `src/personal-meeting-room/index.ts` and `src/personal-meeting-room/request.ts` | Caller-visible failure modes |
|
|
62
|
+
| `module.module_specific_conventions` | N/A | Package-wide conventions apply; see `AGENTS.md` | Module-specific rules |
|
|
63
|
+
| `module.published_package` | N/A | Not exported by `src/index.ts`; reached through the Meetings instance | Export stability |
|
|
64
|
+
| `module.embedded_in_host` | N/A | Constructed by `src/meetings/index.ts`; no host theme or embed API | Host integration and theming |
|
|
65
|
+
| `module.has_design_tradeoff` | N/A | No recorded trade-off in `src/personal-meeting-room/index.ts` | Key design trade-off |
|
|
66
|
+
| `module.has_submodules` | N/A | The src/personal-meeting-room directory has no child module directory | Sub-modules |
|
|
67
|
+
|
|
68
|
+
## Evidence register
|
|
69
|
+
|
|
70
|
+
Requirements cite current source and mirrored tests. Current code wins over retained prose when they conflict; commit and PR history are excluded. Missing evidence stays a gap.
|
|
71
|
+
|
|
72
|
+
| Evidence | What it establishes |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `src/personal-meeting-room/index.ts` | `PersonalMeetingRoom` extends `StatelessWebexPlugin`: `claim(link, pin, preferred = true)`, `get()`, and the private `set(body)` |
|
|
75
|
+
| `src/personal-meeting-room/request.ts` | `PersonalMeetingRoomRequest.claimPmr(options)`: option, pin, and link validation, then one request |
|
|
76
|
+
| `src/personal-meeting-room/util.ts` | `getClaimPmrLink`, `getClaimPmrPin`, and `getClaimedRequestParams` (POST, api `hecate`, resource `/cmrmeetings/claim`) |
|
|
77
|
+
| `src/constants.ts` | `VALID_PIN`, `VALID_PMR_ADDRESS`, `VALID_PMR_LINK`, `HECATE`, `CMR_MEETINGS`, `CLAIM`, `WEBEX_DOT_COM` |
|
|
78
|
+
| `src/meetings/index.ts` | `Meetings` builds the instance at the Webex `ready` event with `{meetingInfo: this.meetingInfo}` and returns it from `getPersonalMeetingRoom()` |
|
|
79
|
+
| `src/meeting-info/meeting-info-v2.ts`, `src/meeting-info/index.ts`, `src/meeting-info/utilv2.ts`, `src/meeting-info/util.ts` | Both providers take `fetchMeetingInfo(destination, type, ...)` positionally; classification decodes a Hydra id from the destination before any other check |
|
|
80
|
+
| `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | One case: `get()` calls a stubbed `fetchMeetingInfo` once with `{type: PERSONAL_ROOM}` |
|
|
81
|
+
| Observation, no stated WHY | `get()` passes `{type: PERSONAL_ROOM}` as the destination argument of the provider's `fetchMeetingInfo(destination, type, ...)`, so no type is applied, the PERSONAL_ROOM branch of classification is skipped, and the Hydra id decode of an object destination fails, rejecting the lookup before any request; no comment or test states that this is intended, so it is recorded here rather than as a requirement |
|
|
82
|
+
| Observation, no stated WHY | `claim(link, pin, preferred = true)` sends `{userId, passcode: pin, preferred, meetingAddress}` as a POST to api `hecate` resource `/cmrmeetings/claim`; `meetingAddress` is the link itself when it matches `VALID_PMR_ADDRESS`, or `<user>@<site>.webex.com` built from a `VALID_PMR_LINK` match, and the pin must match `VALID_PIN` (`src/personal-meeting-room/util.ts`); no comment states why the link is converted, so it is recorded here rather than as a requirement. No unit case covers it |
|
|
83
|
+
|
|
84
|
+
## Purpose and boundary
|
|
85
|
+
|
|
86
|
+
- Responsibility: Retrieves a user's Personal Meeting Room information and performs the claim operation through the Webex service boundary.
|
|
87
|
+
- In scope: `get()` through the injected meeting-info provider and its `isPmr` check; `claim()` and the claim request, with pin and link validation and link conversion; the cached room fields.
|
|
88
|
+
- Out of scope: meeting-info lookup and classification (`src/meeting-info/meeting-info-v2.ts`); creating or joining a meeting for the room (`src/meetings/index.ts`, `src/meeting/index.ts`); the hecate claim service.
|
|
89
|
+
- Consumers: applications through `webex.meetings.personalMeetingRoom` or `webex.meetings.getPersonalMeetingRoom()`; nothing else in the package calls it.
|
|
90
|
+
|
|
91
|
+
## Structure and key files
|
|
92
|
+
|
|
93
|
+
`src/personal-meeting-room/` contains 3 direct source/reference file(s) and has 1 mirrored unit-test file(s). This spec separates its public operations, runtime data movement, component ownership, state applicability, and verification boundary.
|
|
94
|
+
|
|
95
|
+
TypeScript/JavaScript in the Node 22.14 Yarn workspace; Webex core/plugin abstractions and Mocha/Sinon/`@webex/test-helper-chai` tests.
|
|
96
|
+
|
|
97
|
+
| File | Holds |
|
|
98
|
+
|---|---|
|
|
99
|
+
| `src/personal-meeting-room/index.ts` | `PersonalMeetingRoom`, the module facade/controller and primary export |
|
|
100
|
+
| `src/personal-meeting-room/request.ts` | `PersonalMeetingRoomRequest`, the PMR-claim validation and HTTP request boundary |
|
|
101
|
+
| `src/personal-meeting-room/util.ts` | `PersonalMeetingRoomUtil` normalization/helper functions: pin and link validation and the claim request params |
|
|
102
|
+
| `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | mirrored characterization/unit coverage |
|
|
103
|
+
| `src/personal-meeting-room/docs/README.md` | This module specification |
|
|
104
|
+
|
|
105
|
+
## Public surface
|
|
106
|
+
|
|
107
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
108
|
+
|---|---|---|---|---|---|---|
|
|
109
|
+
| `personal-meeting-room-api` | SDK / remote | `PersonalMeetingRoom.get()` | Fetch the current user's room through the injected meeting-info service and store a valid PMR projection. | Reject absent/non-PMR results; preserve the returned model state. | `src/personal-meeting-room/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
110
|
+
| `personal-meeting-room-api` | SDK / remote | `PersonalMeetingRoom.claim()` | Claim the current PMR through the request dependency, cache accepted response fields, and return the response body. | Preserve request rejection and response-body return semantics. | `src/personal-meeting-room/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
111
|
+
| `personal-meeting-room-api` | request adapter | `PersonalMeetingRoomRequest.claimPmr()` | Issue the PMR claim request with current Webex identity/request context. | This adapter performs claim I/O only; room lookup belongs to the injected meeting-info service. | `src/personal-meeting-room/request.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
112
|
+
|
|
113
|
+
The instance also exposes the cached fields `pmr`, `sipUri`, `meetingLink`, `userId`, `name`, and
|
|
114
|
+
`number` (and a `link` field that nothing sets). Provided contract ID (manifest): `personal-meeting-room-api`. It is indexed
|
|
115
|
+
in the [package architecture](../../../docs/architecture.md#public-and-consumer-surfaces). Coverage
|
|
116
|
+
state and the contracts baseline are registered in `.sdd/manifest.json`.
|
|
117
|
+
|
|
118
|
+
Compatibility notes:
|
|
119
|
+
|
|
120
|
+
- Prefer additive fields/options and preserve current return and rejection semantics. Internal helpers are not public merely because they are exported within the source directory.
|
|
121
|
+
|
|
122
|
+
## Dependencies
|
|
123
|
+
|
|
124
|
+
Webex host/request access, user/device identity, PMR service discovery, meeting-info normalization, and request errors.
|
|
125
|
+
|
|
126
|
+
Required contract IDs (manifest): `webex-core-plugin-host` and `meeting-info-api`.
|
|
127
|
+
|
|
128
|
+
| Dependency | Why it is required | Failure behavior |
|
|
129
|
+
|---|---|---|
|
|
130
|
+
| `@webex/webex-core` (`webex-core-plugin-host`) | `StatelessWebexPlugin` and its `request` for the claim POST with `api: 'hecate'` | Request rejection rejects `claim()` |
|
|
131
|
+
| Meeting-info provider (`meeting-info-api`) | Injected as `attrs.meetingInfo` by `Meetings`; `get()` calls its `fetchMeetingInfo` | Rejection rejects `get()` |
|
|
132
|
+
| `webex.internal.device.userId` | The claim `userId` | A missing id makes `claimPmr` throw `ParameterError` |
|
|
133
|
+
| `src/common/errors/parameter.ts` | `ParameterError` for invalid options and a missing claim body | Thrown or rejected to the caller |
|
|
134
|
+
|
|
135
|
+
## Requirements
|
|
136
|
+
|
|
137
|
+
| ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
|
|
138
|
+
|---|---|---|---|---|---|---|
|
|
139
|
+
| `PERSONAL-MEETING-ROOM-R-001` | fetch the current user's Personal Meeting Room: `get()` calls the injected provider's `fetchMeetingInfo({type: PERSONAL_ROOM})` and resolves `pmr.body` only when `body.isPmr` is true. | Retrieves a user's Personal Meeting Room information and performs the claim operation through the Webex service boundary. | `src/personal-meeting-room/index.ts` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | the provider takes the object as its destination argument, so the lookup rejects before any request (Evidence register observation); the test stubs the provider | Weak |
|
|
140
|
+
| `PERSONAL-MEETING-ROOM-R-002` | Copy a validated PMR response into the instance's PMR, SIP URI, meeting link, owner, name, and number fields. | Both lookup and claim must expose the same current room projection without attributing lookup to the claim-only request helper. | `src/personal-meeting-room/index.ts` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | none | PRESENT |
|
|
141
|
+
| `PERSONAL-MEETING-ROOM-R-003` | `PersonalMeetingRoomRequest.claimPmr()` throws `ParameterError` synchronously when required claim options are absent, returns a rejected `ParameterError` promise for an invalid pin or link, and otherwise returns the request promise. Lookup/service failures and an accepted claim response without a body reject their returned chains; the instance owns no listener, timer, lock, or event cleanup. | Callers must distinguish the request builder's synchronous option validation from returned validation/service rejections while not confusing cached room metadata with an async lifecycle resource. | `src/personal-meeting-room/index.ts`, `src/personal-meeting-room/request.ts` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | none | PRESENT |
|
|
142
|
+
|
|
143
|
+
## Design overview
|
|
144
|
+
|
|
145
|
+
`PersonalMeetingRoom.get()` delegates lookup to the injected `meetingInfo.fetchMeetingInfo`; `claim()` delegates only the claim operation to `PersonalMeetingRoomRequest.claimPmr`. `request.ts` and `util.ts` validate/build the claim request, while `index.ts` copies accepted response fields into the instance. The module has no listeners, timers, or event-emission lifecycle.
|
|
146
|
+
|
|
147
|
+
`Meetings` constructs the instance once, at the Webex `ready` event, with the meeting-info provider
|
|
148
|
+
current at that moment; before `ready`, `getPersonalMeetingRoom()` returns `null`.
|
|
149
|
+
|
|
150
|
+
## Data flow and sequence coverage
|
|
151
|
+
|
|
152
|
+
Call style: in-process method calls; the claim is one HTTPS request through the plugin's `request`
|
|
153
|
+
(api `hecate`); the lookup is a call on the meeting-info provider.
|
|
154
|
+
|
|
155
|
+
```mermaid
|
|
156
|
+
flowchart LR
|
|
157
|
+
Caller[Meetings / consumer] --> PMR[index.ts]
|
|
158
|
+
PMR --> Lookup[meetingInfo.fetchMeetingInfo]
|
|
159
|
+
PMR --> Request[request.ts claimPmr]
|
|
160
|
+
Request --> Util[util.ts validate/build claim request]
|
|
161
|
+
Lookup --> Service[Meeting-info service]
|
|
162
|
+
Request --> Service2[PMR claim service]
|
|
163
|
+
Service --> PMR
|
|
164
|
+
Service2 --> Request
|
|
165
|
+
Request --> PMR
|
|
166
|
+
PMR --> Caller
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Sequence coverage:
|
|
170
|
+
|
|
171
|
+
| Operation group | Diagram | Failure coverage |
|
|
172
|
+
|---|---|---|
|
|
173
|
+
| UC-1, UC-3 — personal-room lookup operation group | Personal-room lookup sequence | absent/non-PMR lookup, unavailable PMR, provider rejection, and cache preservation |
|
|
174
|
+
| UC-2, UC-3 — personal-room claim operation group | Personal-room claim sequence | missing identity/site input, invalid pin or link, claim rejection, request failure, and cache preservation |
|
|
175
|
+
|
|
176
|
+
### Personal-room lookup sequence
|
|
177
|
+
|
|
178
|
+
```mermaid
|
|
179
|
+
sequenceDiagram
|
|
180
|
+
participant C as Meetings / consumer
|
|
181
|
+
participant P as PersonalMeetingRoom
|
|
182
|
+
participant I as meetingInfo
|
|
183
|
+
C->>P: get()
|
|
184
|
+
P->>I: fetchMeetingInfo({type: PERSONAL_ROOM})
|
|
185
|
+
alt body with isPmr true
|
|
186
|
+
I-->>P: PMR body
|
|
187
|
+
P->>P: copy accepted PMR fields (PMR/SIP/link/owner/name/number)
|
|
188
|
+
P-->>C: PMR body
|
|
189
|
+
else absent or non-PMR body
|
|
190
|
+
I-->>P: body
|
|
191
|
+
P--xC: TypeError, cached fields unchanged
|
|
192
|
+
else provider rejects
|
|
193
|
+
I--xP: rejection
|
|
194
|
+
P--xC: rejection, cached fields unchanged
|
|
195
|
+
end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Personal-room claim sequence
|
|
199
|
+
|
|
200
|
+
```mermaid
|
|
201
|
+
sequenceDiagram
|
|
202
|
+
participant C as Meetings / consumer
|
|
203
|
+
participant P as PersonalMeetingRoom
|
|
204
|
+
participant R as request.ts claimPmr
|
|
205
|
+
participant S as PMR service
|
|
206
|
+
C->>P: claim(link, pin, preferred)
|
|
207
|
+
P->>P: build identity context
|
|
208
|
+
P->>R: claimPmr(identity, pin, link, preferred)
|
|
209
|
+
R->>R: validate required options, pin, and link
|
|
210
|
+
alt required option is absent
|
|
211
|
+
R--xC: synchronous ParameterError
|
|
212
|
+
else pin/link is invalid
|
|
213
|
+
R--xC: rejected promise
|
|
214
|
+
else valid
|
|
215
|
+
R->>S: claim operation
|
|
216
|
+
alt accepted PMR response with body
|
|
217
|
+
S-->>P: PMR body
|
|
218
|
+
P->>P: copy accepted PMR fields (PMR/SIP/link/owner/name/number)
|
|
219
|
+
P-->>C: PMR body
|
|
220
|
+
else no body
|
|
221
|
+
P--xC: ParameterError, cached fields unchanged
|
|
222
|
+
else service rejects
|
|
223
|
+
S--xC: rejection
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Class and component relationships
|
|
229
|
+
|
|
230
|
+
```mermaid
|
|
231
|
+
classDiagram
|
|
232
|
+
class Caller
|
|
233
|
+
class PMR
|
|
234
|
+
class MeetingInfo
|
|
235
|
+
class Util
|
|
236
|
+
class Request
|
|
237
|
+
class LookupService
|
|
238
|
+
class ClaimService
|
|
239
|
+
Caller --> PMR
|
|
240
|
+
PMR --> MeetingInfo
|
|
241
|
+
MeetingInfo --> LookupService
|
|
242
|
+
PMR --> Request
|
|
243
|
+
Request --> Util
|
|
244
|
+
Request --> ClaimService
|
|
245
|
+
ClaimService --> Request
|
|
246
|
+
Request --> PMR
|
|
247
|
+
PMR --> Caller
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
The arrows identify ownership and delegation inside `src/personal-meeting-room/`; files that only declare types or constants are not presented as transports.
|
|
251
|
+
|
|
252
|
+
## Use cases and flows
|
|
253
|
+
|
|
254
|
+
| Use case | Actor or caller | Primary steps and outcome | Failure or boundary behavior | Evidence |
|
|
255
|
+
|---|---|---|---|---|
|
|
256
|
+
| `UC-1` | Application | Fetch personal-room information through the injected meeting-info service and reject a response that is absent or not a PMR. | Rejects with `TypeError` when the body is absent or not a PMR | `src/personal-meeting-room/index.ts` |
|
|
257
|
+
| `UC-2` | Application | Claim a PMR through `PersonalMeetingRoomRequest.claimPmr()`, cache accepted response fields, and return the response body. | Synchronous `ParameterError` for missing options; rejected `ParameterError` for a bad pin or link | `src/personal-meeting-room/index.ts`, `src/personal-meeting-room/request.ts` |
|
|
258
|
+
| `UC-3` | Application | Propagate lookup or claim failures without fabricating a cached room or fallback transport. | Cached fields keep their previous values | `src/personal-meeting-room/index.ts`, `src/personal-meeting-room/request.ts` |
|
|
259
|
+
|
|
260
|
+
### Cross-boundary use-case flow
|
|
261
|
+
|
|
262
|
+
| Boundary | Transport and ordering | Compatibility | Timeout, retry, and recovery |
|
|
263
|
+
|---|---|---|---|
|
|
264
|
+
| Hecate claim service (`UC-2`) | One POST `/cmrmeetings/claim` through `api: 'hecate'` after local validation | Body `{userId, passcode, preferred, meetingAddress}` | No retry |
|
|
265
|
+
| Meeting-info provider (`UC-1`) | One `fetchMeetingInfo` call | Provider signature is positional (see Pitfalls) | No retry |
|
|
266
|
+
|
|
267
|
+
## Client state model
|
|
268
|
+
|
|
269
|
+
The plugin retains current PMR information and request helper state for the owning SDK instance.
|
|
270
|
+
|
|
271
|
+
| State or slice | Owner | Initial state | Transition triggers | Reset or persistence boundary |
|
|
272
|
+
|---|---|---|---|---|
|
|
273
|
+
| `pmr`, `sipUri`, `meetingLink`, `userId`, `name`, `number` | `PersonalMeetingRoom` | `null` (`meetingLink` and `number` unset) | An accepted `get()` or `claim()` body | In memory; never cleared |
|
|
274
|
+
| `meetingInfo`, `personalMeetingRoomRequest` | `PersonalMeetingRoom` | Set in the constructor | None | Fixed for the instance |
|
|
275
|
+
|
|
276
|
+
## Business rules and invariants
|
|
277
|
+
|
|
278
|
+
| ID | Invariant | WHY | Enforcement source | Test evidence |
|
|
279
|
+
|---|---|---|---|---|
|
|
280
|
+
| `INV-001` | PMR data comes from the service response; claim uses current authenticated identity and never fabricates room ownership. | Cached room fields must reflect a service-accepted PMR (`PERSONAL-MEETING-ROOM-R-002`) | `src/personal-meeting-room/index.ts` | None found |
|
|
281
|
+
| `INV-002` | A lookup body is cached only when `isPmr` is true, and a claim response only when it has a body | Non-PMR results must not overwrite the cached room (`PERSONAL-MEETING-ROOM-R-003`) | `src/personal-meeting-room/index.ts` | None found |
|
|
282
|
+
|
|
283
|
+
## Concurrency and reactive flow
|
|
284
|
+
|
|
285
|
+
- Execution model: Lookup and claim calls are independent promises with no cancellation or response-order guard. Each accepted completion calls `set`, so the last completion to resolve overwrites the cached PMR fields.
|
|
286
|
+
- Ordering guarantees: within `claimPmr`, validation runs before the request.
|
|
287
|
+
- Idempotency and retry: none; each call issues its own request.
|
|
288
|
+
- Shared-state protection: none; last accepted completion wins.
|
|
289
|
+
- Blocking restrictions: none.
|
|
290
|
+
|
|
291
|
+
## Caller-visible failure modes
|
|
292
|
+
|
|
293
|
+
| Condition | Signal | Caller recovery |
|
|
294
|
+
|---|---|---|
|
|
295
|
+
| A required request-builder option is absent | `PersonalMeetingRoomRequest.claimPmr()` throws `ParameterError` synchronously before it returns a promise. | Supply user id, passcode, meeting address, and a truthy preferred flag before calling. |
|
|
296
|
+
| Pin or meeting link has an invalid format | `PersonalMeetingRoomRequest.claimPmr()` returns a rejected `ParameterError` promise. | Correct the formatted pin/link and handle the returned rejection. |
|
|
297
|
+
| Lookup returns no PMR or lookup/claim service rejects | The returned promise rejects; no listener/timer cleanup is involved. | Handle service availability or retry as a new lookup/claim. |
|
|
298
|
+
| Lookup or claim returns an accepted PMR body | `index.ts` copies the PMR, SIP URI, link, owner, name, and number fields and returns the body. | Read the instance's current cached room projection. |
|
|
299
|
+
|
|
300
|
+
## Pitfalls and constraints
|
|
301
|
+
|
|
302
|
+
- A PMR is meeting metadata, not an already joined Meeting. Consumers must still create/join through Meetings.
|
|
303
|
+
- Verify both typed constants/enums and raw wire values before changing a logical condition in this legacy package.
|
|
304
|
+
- `claim(link, pin, false)` throws `ParameterError` synchronously, because `claimPmr` treats a falsy `preferred` as a missing option; `claim()` is not `async`, so the throw escapes the call.
|
|
305
|
+
- `get()` passes its options object where both meeting-info providers expect a destination string (Evidence register observation); fixing it means passing `(undefined, DESTINATION_TYPE.PERSONAL_ROOM)` positionally.
|
|
306
|
+
- `set` writes `meetingLink`, not `link`; the declared `link` field stays `null`.
|
|
307
|
+
- The meeting-info provider is captured at `ready`; `Meetings._toggleUnifiedMeetings` does not update it.
|
|
308
|
+
|
|
309
|
+
## Verification
|
|
310
|
+
|
|
311
|
+
Use the current mirrored suites: `test/unit/spec/personal-meeting-room/personal-meeting-room.js`. Characterize the personal-meeting-room-specific use cases above and each listed failure condition; add cleanup or transition cases only for resources and state this module actually owns.
|
|
312
|
+
|
|
313
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
314
|
+
|---|---|---|
|
|
315
|
+
| `PERSONAL-MEETING-ROOM-R-001` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | only the call to a stubbed provider is asserted; cover valid/invalid lookup against a real provider signature and successful/failed claim as separate paths |
|
|
316
|
+
| `PERSONAL-MEETING-ROOM-R-002` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | cover accepted claim response fields and request-body forwarding together; no case asserts the copied fields |
|
|
317
|
+
| `PERSONAL-MEETING-ROOM-R-003` | `test/unit/spec/personal-meeting-room/personal-meeting-room.js` | distinguish synchronous missing-option throws from invalid pin/link and service promise rejections, and assert failures leave no fabricated cached state; no case covers `claimPmr` today |
|
|
318
|
+
|
|
319
|
+
Run the suite with
|
|
320
|
+
`yarn workspace @webex/plugin-meetings test:unit --targets personal-meeting-room/personal-meeting-room.js`.
|
|
321
|
+
A module specification is complete only when its public surface, invariants, failure modes, and test
|
|
322
|
+
evidence agree with the implementation.
|