@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.
- 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,365 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Module Spec
|
|
3
|
+
title: 'Controls options manager specification'
|
|
4
|
+
description: Responsibilities, boundaries, design, state, invariants, and verification for the meeting controls options manager that gates and sends Locus meeting-control mutations.
|
|
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
|
+
# Controls options manager
|
|
17
|
+
|
|
18
|
+
This source-local document at `src/controls-options-manager/docs/README.md` owns the stable
|
|
19
|
+
canonical specification for the **controls options manager**: `ControlsOptionsManager`, reached as
|
|
20
|
+
`meeting.controlsOptionsManager` and behind `meeting.setMuteOnEntry()`, `setDisallowUnmute()`, and
|
|
21
|
+
`setMuteAll()`, plus the static `Utils` capability helpers. Ground every claim in repository evidence
|
|
22
|
+
and link to the [package architecture](../../../docs/architecture.md) instead of repeating broader
|
|
23
|
+
facts. No service specification exists because this package is a library.
|
|
24
|
+
|
|
25
|
+
Start here: root [package agent instructions](../../../AGENTS.md) · router
|
|
26
|
+
[documentation index](../../../docs/index.md) · system
|
|
27
|
+
[package architecture](../../../docs/architecture.md) · registry
|
|
28
|
+
[module registry](../../../docs/specs/README.md).
|
|
29
|
+
|
|
30
|
+
## Metadata
|
|
31
|
+
|
|
32
|
+
| Field | Value |
|
|
33
|
+
| ----------------- | ----- |
|
|
34
|
+
| Owner | @webex/web-client, @webex/web-sdk |
|
|
35
|
+
| Source path | `src/controls-options-manager` |
|
|
36
|
+
| Resource kind | module |
|
|
37
|
+
| Status | Draft |
|
|
38
|
+
| Last verified | 2026-11-16 at `0b8c34db7f` |
|
|
39
|
+
| Module id | `plugin-meetings/controls-options-manager` |
|
|
40
|
+
| Parent spec | — |
|
|
41
|
+
| Doc kind | Module spec |
|
|
42
|
+
| Coverage score | Pending coverage assessment |
|
|
43
|
+
| Validation status | not-run |
|
|
44
|
+
|
|
45
|
+
## Applicability
|
|
46
|
+
|
|
47
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
48
|
+
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
49
|
+
| `module.has_tiers` | N/A | No tier policy exists in `package.json` | Tier |
|
|
50
|
+
| `module.has_ui` | N/A | `src/controls-options-manager/index.ts` returns promises; it renders nothing | UI use-case flow |
|
|
51
|
+
| `module.crosses_service_boundaries` | Applicable | `src/controls-options-manager/index.ts` sends Locus controls PATCH requests, routed to the main Locus from a breakout | Cross-boundary use-case flow |
|
|
52
|
+
| `module.holds_client_state` | Applicable | `src/controls-options-manager/index.ts` keeps the current and main Locus URLs, display hints, and two callbacks | Client state model |
|
|
53
|
+
| `module.enforces_domain_rules` | Applicable | Display-hint capability rules in `src/controls-options-manager/util.ts` | Business rules and invariants |
|
|
54
|
+
| `module.is_concurrent_async` | N/A | No listener, timer, or shared async state; update chains its own requests (`src/controls-options-manager/index.ts`) | Concurrency and reactive flow |
|
|
55
|
+
| `module.owns_persistence` | N/A | Nothing is stored; control state is owned by Locus | Data, schema, and migration discipline |
|
|
56
|
+
| `module.stateful_transitions` | N/A | No control state is held in `src/controls-options-manager/index.ts` | State machine |
|
|
57
|
+
| `module.exposes_wire_protocol` | N/A | The PATCH bodies are listed under Cross-boundary use-case flow; property shapes are typed in `src/controls-options-manager/types.ts` | Protocol and wire format |
|
|
58
|
+
| `module.ui_multi_screen` | N/A | No UI | UI flow |
|
|
59
|
+
| `module.large_data_model` | N/A | Nine small property interfaces in `src/controls-options-manager/types.ts` | Data model |
|
|
60
|
+
| `module.returns_caller_errors` | Applicable | ParameterError and PermissionError rejections and synchronous throws in `src/controls-options-manager/index.ts` | Caller-visible failure modes |
|
|
61
|
+
| `module.module_specific_conventions` | N/A | No convention beyond the package rules in `src/controls-options-manager/index.ts` | Module-specific rules |
|
|
62
|
+
| `module.published_package` | N/A | Reached through Meeting; export stability is owned by the package architecture (`package.json`) | Export stability |
|
|
63
|
+
| `module.embedded_in_host` | N/A | No host embedding | Host integration and theming |
|
|
64
|
+
| `module.has_design_tradeoff` | N/A | No recorded trade-off in `src/controls-options-manager/index.ts` | Key design trade-off |
|
|
65
|
+
| `module.has_submodules` | N/A | The directory has no child module | Sub-modules |
|
|
66
|
+
|
|
67
|
+
## Evidence register
|
|
68
|
+
|
|
69
|
+
Requirements cite current source and mirrored tests. Current code wins over retained prose when they
|
|
70
|
+
conflict; commit and PR history are excluded. Missing evidence stays a gap.
|
|
71
|
+
|
|
72
|
+
| Evidence | What it establishes |
|
|
73
|
+
| -------- | ------------------- |
|
|
74
|
+
| `src/controls-options-manager/index.ts` | `ControlsOptionsManager` class: context setters and getters, `update`, `setControls`, `sendControlsRequest`, and the three audio setters; its header links Locus mute guides |
|
|
75
|
+
| `src/controls-options-manager/util.ts` | `Utils` static predicates, `canUpdate`, `isAudioControl`, `isBreakoutLocusUrl`, and `getControlsRequestParams`, whose JSDoc records the breakout audio routing rationale |
|
|
76
|
+
| `src/controls-options-manager/constants.ts` | `ENABLED`, `CAN_SET`, `CAN_UNSET`, and `AUDIO_CONTROL_BODY_KEYS` (`audio`, `muteOnEntry`, `disallowUnmute`) |
|
|
77
|
+
| `src/controls-options-manager/enums.ts` | `Control` (nine scopes) and `Setting` (`DisallowUnmute`, `MuteOnEntry`, `Muted`, `Roles`) |
|
|
78
|
+
| `src/controls-options-manager/types.ts` | `ControlConfig` and the per-scope property interfaces |
|
|
79
|
+
| `src/meeting/index.ts` | Meeting constructs the manager with `getControls` and `isWebinar` callbacks, feeds the Locus URL (with the main-Locus flag) and display hints, delegates its audio setters, and uses `Utils.hasHints` and `hasPolicies` for in-meeting actions |
|
|
80
|
+
| `src/constants.ts` | `DISPLAY_HINTS` names, `CONTROLS`, and the `EVENT_TRIGGERS` literals listed under Public surface |
|
|
81
|
+
| `src/common/errors/parameter.ts`, `src/common/errors/permission.ts` | `ParameterError` and `PermissionError` |
|
|
82
|
+
| `test/unit/spec/controls-options-manager/index.js` | 35 cases over the setters, `update`, breakout routing, the participant-list fill-in, and mute all |
|
|
83
|
+
| `test/unit/spec/controls-options-manager/util.js` | 86 cases over every predicate, `canUpdate`, and the routing helpers |
|
|
84
|
+
| Observation, no stated WHY | A `ControlConfig` whose properties set none of the checked booleans needs no display hint, because `hasHints` over an empty list is true (`src/controls-options-manager/util.ts`) |
|
|
85
|
+
| Observation, no stated WHY | In `setMuteAll`, once the `Muted` setting is processed the remaining settings skip their permission checks, so only `canSetMuted` or `canUnsetMuted` gates the request (`src/controls-options-manager/index.ts`) |
|
|
86
|
+
| Observation, no stated WHY | `update` fills missing `viewTheParticipantList` properties from the current Locus controls, and adds `panelistEnabled` and `attendeeCount` only when `isWebinar()` is true (`src/controls-options-manager/index.ts`) |
|
|
87
|
+
|
|
88
|
+
## Purpose and boundary
|
|
89
|
+
|
|
90
|
+
- Responsibility: validates requested meeting-control mutations against display hints, builds the
|
|
91
|
+
declared control bodies, and sends them through the owning Meeting request object.
|
|
92
|
+
- In scope: the current and main Locus URLs, display hints, the `update` batch API, the mute-on-entry,
|
|
93
|
+
disallow-unmute, and mute-all setters, the static capability predicates, and main-versus-breakout
|
|
94
|
+
request routing.
|
|
95
|
+
- Out of scope: the control state itself and its change events (Locus and `LocusInfo`, re-emitted by
|
|
96
|
+
Meeting); computing display hints; the HTTP pipeline and Locus delta handling (`MeetingRequest`).
|
|
97
|
+
- Consumers: `Meeting` (`src/meeting/index.ts`) and applications through `meeting.controlsOptionsManager`
|
|
98
|
+
and Meeting's audio setters.
|
|
99
|
+
|
|
100
|
+
## Structure and key files
|
|
101
|
+
|
|
102
|
+
`src/controls-options-manager/` contains 5 direct source files and has 2 mirrored unit-test files.
|
|
103
|
+
This spec separates its public operations, runtime data movement, component ownership, state
|
|
104
|
+
applicability, and verification boundary.
|
|
105
|
+
|
|
106
|
+
| File | Holds |
|
|
107
|
+
| ---- | ----- |
|
|
108
|
+
| `src/controls-options-manager/constants.ts` | module constants and body-key wire values |
|
|
109
|
+
| `src/controls-options-manager/enums.ts` | declared `Control` scope and `Setting` enum values |
|
|
110
|
+
| `src/controls-options-manager/index.ts` | `ControlsOptionsManager` class: context, validation, body building, and request dispatch |
|
|
111
|
+
| `src/controls-options-manager/types.ts` | module type declarations for `ControlConfig` and the per-scope properties |
|
|
112
|
+
| `src/controls-options-manager/util.ts` | `Utils` capability predicates and request-routing helpers |
|
|
113
|
+
| `test/unit/spec/controls-options-manager/index.js` and 1 sibling test file (`util.js`) | mirrored unit coverage |
|
|
114
|
+
| `src/controls-options-manager/docs/README.md` | this module specification |
|
|
115
|
+
|
|
116
|
+
## Public surface
|
|
117
|
+
|
|
118
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
119
|
+
| ----------- | ---- | ------- | ------- | --------------------------- | -------------------- | ---------- |
|
|
120
|
+
| `controls-options-api` | SDK / configuration | `set()`, `setLocusUrl(url, isMainLocus)`, `setDisplayHints()`, `getLocusUrl()`, and `getDisplayHints()` | Hold current/main Locus URLs and display hints used to authorize later control mutations. | Preserve current setter/getter semantics; the main Locus URL changes only when `isMainLocus` is true; no normalized query projection is exposed. | `src/controls-options-manager/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
121
|
+
| `controls-options-api` | SDK / remote | `update(...controls: ControlConfig[])` | Validate each scoped mutation with `Utils.canUpdate()` and send the generated requests sequentially. | Unknown scopes and denied capabilities both throw synchronously while the batch is mapped; preserve request ordering and the returned request promise. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
122
|
+
| `controls-options-api` | SDK / remote | `setMuteOnEntry()`, `setDisallowUnmute()`, and `setMuteAll()` | Build the audio-control bodies permitted by current display hints and send them to the current Locus, also from a breakout. | Preserve body keys, capability checks, and that audio bodies never carry `authorizingLocusUrl`. | `src/controls-options-manager/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
123
|
+
| `controls-options-api` | exported predicates | `Utils.canSetMuteOnEntry()`, `canUnsetMuteOnEntry()`, `canSetDisallowUnmute()`, `canUnsetDisallowUnmute()`, `canSetMuted()`, `canUnsetMuted()`, `hasHints()`, `hasPolicies()`, `canUpdateAudio()`, `canUpdateRaiseHand()`, `canUpdateReactions()`, `canUpdateShareControl()`, `canUpdateViewTheParticipantsList()`, `canUpdateVideo()`, `canUpdateAnnotation()`, `canUpdateRemoteDesktopControl()`, and `canUpdatePollingQA()` | Centralize capability interpretation for every supported control family. | These are static utilities (marked `@internal`), not manager instance query APIs; Meeting uses `hasHints` and `hasPolicies` for in-meeting actions. | `src/controls-options-manager/util.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
124
|
+
| `controls-options-api` | exported routing utilities | `Utils.canUpdate()`, `isAudioControl()`, `isBreakoutLocusUrl()`, and `getControlsRequestParams()` | Select the permitted control family, request URL, and request body for each mutation. | Preserve scope matching and main-versus-breakout routing rules. | `src/controls-options-manager/util.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
125
|
+
| `controls-options-api` | exported class/constants/types | `ControlsOptionsManager`, `ENABLED`, `CAN_SET`, `CAN_UNSET`, `AUDIO_CONTROL_BODY_KEYS`, `Control`, `Setting`, `ControlProperties`, `AudioProperties`, `RaiseHandProperties`, `ReactionsProperties`, `ShareControlProperties`, `VideoProperties`, `ViewTheParticipantListProperties`, `AnnotationProperties`, `RemoteDesktopControlProperties`, `PollingQAProperties`, `Properties`, and `ControlConfig` | Share the exact configuration vocabulary accepted by `update()`. | Raw control/setting/body-key values and discriminated property shapes are compatibility-sensitive; these are module exports, and the package root does not re-export them. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/constants.ts`, `src/controls-options-manager/enums.ts`, `src/controls-options-manager/types.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
126
|
+
|
|
127
|
+
Contract ID `controls-options-api` is indexed in the
|
|
128
|
+
[package architecture](../../../docs/architecture.md#public-and-consumer-surfaces) and registered in
|
|
129
|
+
`.sdd/manifest.json`; it requires `locus-http`.
|
|
130
|
+
|
|
131
|
+
The manager itself emits no events. Meeting emits or forwards these observable literals when Locus
|
|
132
|
+
reports the resulting control changes (and `meeting:actionsUpdate` when the in-meeting actions computed
|
|
133
|
+
with `Utils.hasHints` and `hasPolicies` change). Preserve literal values, scope, payload shape, and
|
|
134
|
+
emission timing; a constant name alone is not a substitute for the consumer-visible value.
|
|
135
|
+
|
|
136
|
+
| Event literal | Constant / expression | Emission evidence |
|
|
137
|
+
| ------------- | --------------------- | ----------------- |
|
|
138
|
+
| `meeting:actionsUpdate` | `EVENT_TRIGGERS.MEETING_ACTIONS_UPDATE` | `src/meeting/index.ts` |
|
|
139
|
+
| `meeting:controls:ai-summary-notification:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AI_SUMMARY_NOTIFICATION_UPDATED` | `src/meeting/index.ts` |
|
|
140
|
+
| `meeting:controls:annotation:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_ANNOTATION_UPDATED` | `src/meeting/index.ts` |
|
|
141
|
+
| `meeting:controls:auto-end-meeting-warning:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AUTO_END_MEETING_WARNING_UPDATED` | `src/meeting/index.ts` |
|
|
142
|
+
| `meeting:controls:disallow-unmute:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_DISALLOW_UNMUTE_UPDATED` | `src/meeting/index.ts` |
|
|
143
|
+
| `meeting:controls:meeting-full:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MEETING_FULL_UPDATED` | `src/meeting/index.ts` |
|
|
144
|
+
| `meeting:controls:mute-on-entry:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MUTE_ON_ENTRY_UPDATED` | `src/meeting/index.ts` |
|
|
145
|
+
| `meeting:controls:polling-qa:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_POLLING_QA_UPDATED` | `src/meeting/index.ts` |
|
|
146
|
+
| `meeting:controls:practice-session-status:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_PRACTICE_SESSION_STATUS_UPDATED` | `src/meeting/index.ts` |
|
|
147
|
+
| `meeting:controls:raise-hand:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_RAISE_HAND_UPDATED` | `src/meeting/index.ts` |
|
|
148
|
+
| `meeting:controls:reactions:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REACTIONS_UPDATED` | `src/meeting/index.ts` |
|
|
149
|
+
| `meeting:controls:remote-desktop-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REMOTE_DESKTOP_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
150
|
+
| `meeting:controls:share-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_SHARE_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
151
|
+
| `meeting:controls:stage-view:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_STAGE_VIEW_UPDATED` | `src/meeting/index.ts` |
|
|
152
|
+
| `meeting:controls:video:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIDEO_UPDATED` | `src/meeting/index.ts` |
|
|
153
|
+
| `meeting:controls:view-the-participants-list:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIEW_THE_PARTICIPANTS_LIST_UPDATED` | `src/meeting/index.ts` |
|
|
154
|
+
| `meeting:controls:webcast:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_WEBCAST_UPDATED` | `src/meeting/index.ts` |
|
|
155
|
+
| `meeting:layout:update` | `EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE` | `src/meeting/index.ts` |
|
|
156
|
+
|
|
157
|
+
Compatibility notes:
|
|
158
|
+
|
|
159
|
+
- Prefer additive fields/options and preserve current return and rejection semantics. Internal
|
|
160
|
+
helpers are not public merely because they are exported within the source directory; the private
|
|
161
|
+
`setControls` and `sendControlsRequest` methods are internal.
|
|
162
|
+
|
|
163
|
+
## Dependencies
|
|
164
|
+
|
|
165
|
+
The module requires Locus controls, control/setting enums, constants, utility normalization, parent
|
|
166
|
+
meeting request access, and role/capability state (display hints).
|
|
167
|
+
|
|
168
|
+
| Dependency | Why it is required | Failure behavior |
|
|
169
|
+
| ---------- | ------------------ | ---------------- |
|
|
170
|
+
| `MeetingRequest` (`src/meeting/request.ts`), contract `locus-http` | `locusDeltaRequest` for controls PATCHes on the current Locus; `request` for PATCHes that carry `authorizingLocusUrl` | Rejections are returned unchanged |
|
|
171
|
+
| `Meeting` (`src/meeting/index.ts`) | Initial Locus URL and `displayHints: []`; LOCUS_INFO_UPDATE_URL with `isMainLocus`; MEETING_INFO_UPDATED display hints; the `getControls` (`locusInfo.controls`) and `isWebinar` (`locusInfo.info.isWebinar`) callbacks | Until updated, the constructor values apply |
|
|
172
|
+
| `ParameterError`, `PermissionError`, `LoggerProxy`, lodash `camelCase`, `src/constants.ts` | Error types, the setControls log line, body-key casing, display-hint names | — |
|
|
173
|
+
|
|
174
|
+
## Requirements
|
|
175
|
+
|
|
176
|
+
| ID | WHAT | WHY | Source evidence | Test / example evidence | Assumptions / gaps | Confidence |
|
|
177
|
+
| --- | ---- | --- | --------------- | ----------------------- | ------------------ | ---------- |
|
|
178
|
+
| `MOD-001` | `update` validates each `ControlConfig` scope and display-hint capability, builds one request body per control (`{[scope]: properties}`), and sends them sequentially. | Invalid or unauthorized shared-control mutations must fail before they reach Locus, and accepted mutations must preserve caller order. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js` | none | Present |
|
|
179
|
+
| `MOD-002` | `ControlsOptionsManager` exposes URL/hint accessors and mutation methods; `canSet*`, `canUnset*`, and `canUpdate*` predicates are static methods of `Utils` in `util.ts`, not instance query APIs or normalized properties. | Consumers must not depend on an availability/current-value surface the manager does not implement. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js`, `test/unit/spec/controls-options-manager/util.js` | none | Present |
|
|
180
|
+
| `MOD-003` | Missing `locusUrl` returns a rejected `ParameterError` promise, an unknown scope or failed `canUpdate` check throws synchronously in `update`, and legacy audio setters return a rejected `PermissionError` for unauthorized values; the module allocates no listener or timer. | Callers must distinguish validation throws from returned request rejections and must not expect cleanup behavior the module does not own. | `src/controls-options-manager/index.ts` | `test/unit/spec/controls-options-manager/index.js` | none | Present |
|
|
181
|
+
| `MOD-004` | In a breakout (a main Locus URL is set and differs from the current one), a body whose keys are all audio keys (`audio`, `muteOnEntry`, `disallowUnmute`) goes to `<locusUrl>/controls`; any other body goes to `<mainLocusUrl>/controls` with `authorizingLocusUrl` set to the current Locus URL and is sent with a plain `request` instead of `locusDeltaRequest`. | The JSDoc: Locus does not support cross-locus authorization for audio controls, so they must target the Locus the user is in; and the response to an authorized request carries the main session Locus DTO, which must not be parsed as a delta for the breakout. | `src/controls-options-manager/util.ts`, `src/controls-options-manager/constants.ts`, `src/controls-options-manager/index.ts` | `test/unit/spec/controls-options-manager/index.js`, `test/unit/spec/controls-options-manager/util.js` | Meeting-wide audio actions across breakouts are not supported | Present |
|
|
182
|
+
| `MOD-005` | `setMuteOnEntry(enabled)` sends `{muteOnEntry: {enabled}}` and `setDisallowUnmute(enabled)` sends `{disallowUnmute: {enabled}}`, each gated by `canSet<Setting>` for true or `canUnset<Setting>` for false; `setMuteAll(muted, disallowUnmute, muteOnEntry, roles)` sends `{audio: {muted, disallowUnmute, muteOnEntry, roles}}` (roles only when an array). | Invalid or unauthorized shared-control mutations must fail before they reach Locus; Locus advertises enabling and disabling each setting through separate display hints (`ENABLE_*` and `DISABLE_*`, `MUTE_ALL` and `UNMUTE_ALL`). | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js` | none | Present |
|
|
183
|
+
|
|
184
|
+
## Design overview
|
|
185
|
+
|
|
186
|
+
`index.ts` stores request context, validates mutations using static predicates from `util.ts`, builds
|
|
187
|
+
control request bodies, and sends them through `request` or `locusDeltaRequest`. It exposes no
|
|
188
|
+
normalized-control property or enabled-state query surface and owns no listeners or timers.
|
|
189
|
+
|
|
190
|
+
The implementation is TypeScript/JavaScript in the Node 22.14 Yarn workspace, built on the Webex
|
|
191
|
+
core/plugin abstractions through `MeetingRequest` and tested with Mocha/Sinon/`@webex/test-helper-chai`.
|
|
192
|
+
It is a plain class, not a WebexPlugin; Meeting creates one per meeting. Two paths share one router:
|
|
193
|
+
`update` handles every `Control` scope through `Utils.canUpdate`, while the older `setControls` path
|
|
194
|
+
behind the three audio setters looks up `Utils.canSet<Setting>` or `canUnset<Setting>` by name
|
|
195
|
+
(`CAN_SET`, `CAN_UNSET`). Both pass their body to `getControlsRequestParams` and then
|
|
196
|
+
`sendControlsRequest` (MOD-004).
|
|
197
|
+
|
|
198
|
+
## Data flow and sequence coverage
|
|
199
|
+
|
|
200
|
+
Call style: in-process method calls on `meeting.controlsOptionsManager` and Meeting's audio setters;
|
|
201
|
+
outbound HTTPS PATCH through `MeetingRequest.locusDeltaRequest` or `MeetingRequest.request`.
|
|
202
|
+
The module has one asynchronous operation group, the control mutation (`update` and the audio setters); context refresh is synchronous setters, so one sequence diagram covers it.
|
|
203
|
+
|
|
204
|
+
```mermaid
|
|
205
|
+
flowchart LR
|
|
206
|
+
Caller[Meeting / consumer] --> Manager[index.ts mutation methods]
|
|
207
|
+
Hints[display hints + current controls callback] --> Manager
|
|
208
|
+
Types[constants.ts / enums.ts / types.ts] --> Util[util.ts capability and request helpers]
|
|
209
|
+
Manager --> Util
|
|
210
|
+
Util --> Body[control-setting request params]
|
|
211
|
+
Body --> Parent[Meeting request owner]
|
|
212
|
+
Parent --> Locus[Locus controls endpoint]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Sequence coverage:
|
|
216
|
+
|
|
217
|
+
| Operation group | Diagram | Failure coverage |
|
|
218
|
+
| --------------- | ------- | ---------------- |
|
|
219
|
+
| UC-002 to UC-004 — control mutation operation groups | Control mutation sequence | missing Locus URL, unknown scope, denied display hint or absent capability (thrown by update, rejected by the audio setters), main-versus-breakout routing, and request rejection |
|
|
220
|
+
| UC-001 — context refresh | `src/controls-options-manager/index.ts` (synchronous setters) | a `set()` without display hints leaves them undefined |
|
|
221
|
+
|
|
222
|
+
### Control mutation sequence
|
|
223
|
+
|
|
224
|
+
```mermaid
|
|
225
|
+
sequenceDiagram
|
|
226
|
+
participant P as Meeting parent or caller (current input owner)
|
|
227
|
+
participant M as ControlsOptionsManager
|
|
228
|
+
participant U as util.ts
|
|
229
|
+
P->>M: request control mutation with update(...ControlConfig) or an audio setter
|
|
230
|
+
alt locusUrl missing
|
|
231
|
+
M--xP: rejected ParameterError promise
|
|
232
|
+
else locusUrl set
|
|
233
|
+
M->>U: canUpdate(control, displayHints) or canSet/canUnset
|
|
234
|
+
U-->>M: allowed or denied
|
|
235
|
+
alt scope unknown or capability denied by update
|
|
236
|
+
M--xP: synchronous Error / PermissionError
|
|
237
|
+
else capability denied by an audio setter
|
|
238
|
+
M--xP: rejected PermissionError promise
|
|
239
|
+
else accepted
|
|
240
|
+
M->>U: getControlsRequestParams(body, locus URLs)
|
|
241
|
+
U-->>M: PATCH request params
|
|
242
|
+
alt body has authorizingLocusUrl (breakout, non-audio)
|
|
243
|
+
M->>P: request(params) to the main Locus
|
|
244
|
+
else current Locus
|
|
245
|
+
M->>P: locusDeltaRequest(params)
|
|
246
|
+
end
|
|
247
|
+
P-->>M: request outcome
|
|
248
|
+
M-->>P: sequential update promise outcome (owning request promise)
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
## Class and component relationships
|
|
254
|
+
|
|
255
|
+
```mermaid
|
|
256
|
+
classDiagram
|
|
257
|
+
class Manager {
|
|
258
|
+
-request
|
|
259
|
+
-displayHints
|
|
260
|
+
-locusUrl
|
|
261
|
+
-mainLocusUrl
|
|
262
|
+
-getControls()
|
|
263
|
+
-isWebinar()
|
|
264
|
+
+set(options)
|
|
265
|
+
+setLocusUrl(url, isMainLocus)
|
|
266
|
+
+update(controls)
|
|
267
|
+
+setMuteOnEntry(enabled)
|
|
268
|
+
+setDisallowUnmute(enabled)
|
|
269
|
+
+setMuteAll(muted, disallowUnmute, muteOnEntry, roles)
|
|
270
|
+
}
|
|
271
|
+
class Util
|
|
272
|
+
class Types
|
|
273
|
+
class Body
|
|
274
|
+
class Parent
|
|
275
|
+
class Locus
|
|
276
|
+
note for Manager "ControlsOptionsManager"
|
|
277
|
+
note for Parent "MeetingRequest"
|
|
278
|
+
Manager --> Util : static predicates and routing
|
|
279
|
+
Types --> Util
|
|
280
|
+
Manager --> Body : builds
|
|
281
|
+
Body --> Parent : request or locusDeltaRequest
|
|
282
|
+
Parent --> Locus
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
The arrows identify ownership and delegation inside `src/controls-options-manager/`; files that only
|
|
286
|
+
declare types or constants (`types.ts`, `enums.ts`, `constants.ts`) are not presented as transports.
|
|
287
|
+
|
|
288
|
+
## Use cases and flows
|
|
289
|
+
|
|
290
|
+
| Use case | Actor or caller | Primary steps and outcome | Failure or boundary behavior | Evidence |
|
|
291
|
+
| -------- | --------------- | ------------------------- | ---------------------------- | -------- |
|
|
292
|
+
| `UC-001` | Meeting | Refresh current/main Locus URLs and display hints, then read those raw values without expecting a normalized control projection | — | `src/controls-options-manager/index.ts`, `src/meeting/index.ts` |
|
|
293
|
+
| `UC-002` | Host application | Validate and sequentially send a batch of scoped `ControlConfig` mutations using `Utils.canUpdate()` and `getControlsRequestParams()` | Throws before any request on an unknown scope or denied capability | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`, `test/unit/spec/controls-options-manager/index.js` |
|
|
294
|
+
| `UC-003` | Host application through Meeting | Build mute-on-entry and disallow-unmute bodies only when the matching set/unset display hints permit the requested value | Rejects with PermissionError | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`, `test/unit/spec/controls-options-manager/index.js` |
|
|
295
|
+
| `UC-004` | Host application through Meeting | Route mute-all, an audio body, to the current main or breakout Locus without `authorizingLocusUrl`, and preserve permission/request failures | Rejects with PermissionError or the request error | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`, `test/unit/spec/controls-options-manager/index.js` |
|
|
296
|
+
|
|
297
|
+
### Cross-boundary use-case flow
|
|
298
|
+
|
|
299
|
+
| Boundary | Transport and ordering | Compatibility | Timeout, retry, and recovery |
|
|
300
|
+
| -------- | ---------------------- | ------------- | ---------------------------- |
|
|
301
|
+
| Locus controls, current Locus (`UC-002` to `UC-004`) | PATCH `<locusUrl>/controls` through `locusDeltaRequest`; `update` sends one request per control, each after the previous resolves | Body `{[scope]: properties}` from `update`; `{muteOnEntry: {enabled}}`, `{disallowUnmute: {enabled}}`, or `{audio: {...}}` from the audio setters | No retry; a failed request stops the rest of an `update` batch |
|
|
302
|
+
| Locus controls, main Locus from a breakout (`UC-002`) | PATCH `<mainLocusUrl>/controls` through `request` | Body plus `authorizingLocusUrl: <current locusUrl>`; audio bodies never take this route | The response is the main session DTO and is not applied as a delta |
|
|
303
|
+
|
|
304
|
+
## Client state model
|
|
305
|
+
|
|
306
|
+
The manager stores current/main Locus URLs, display hints, and callbacks for current controls/webinar
|
|
307
|
+
status. It does not maintain a normalized control projection.
|
|
308
|
+
|
|
309
|
+
| State or slice | Owner | Initial state | Transition triggers | Reset or persistence boundary |
|
|
310
|
+
| -------------- | ---------- | ------------- | ------------------- | ----------------------------- |
|
|
311
|
+
| `locusUrl` | `ControlsOptionsManager` | Meeting's Locus URL | `setLocusUrl`, `set` | Instance memory |
|
|
312
|
+
| `mainLocusUrl` | `ControlsOptionsManager` | undefined | `setLocusUrl(url, true)` | Never cleared by this module |
|
|
313
|
+
| `displayHints` | `ControlsOptionsManager` | `[]` from Meeting | `setDisplayHints`, `set` | Instance memory |
|
|
314
|
+
| `getControls`, `isWebinar` | `ControlsOptionsManager` | Return `{}` and `false` | `set` with the callbacks | Kept when a later `set` omits them |
|
|
315
|
+
|
|
316
|
+
## Business rules and invariants
|
|
317
|
+
|
|
318
|
+
| ID | Invariant | WHY | Enforcement source | Test evidence |
|
|
319
|
+
| --- | --------- | --- | ------------------ | ------------- |
|
|
320
|
+
| `INV-001` | A setting can be changed only when its control advertises the matching capability: each boolean property set to true or false requires its enable or disable display hint. | Invalid or unauthorized mutations must fail before they reach Locus (MOD-001). | `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/util.js` |
|
|
321
|
+
| `INV-002` | Request body keys use the declared control/setting map: `Control` values for `update`, camel-cased `Setting` values for the audio setters. | Raw control and setting values are compatibility-sensitive wire keys. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/enums.ts` | `test/unit/spec/controls-options-manager/index.js` |
|
|
322
|
+
| `INV-003` | Audio bodies always target the current Locus and never carry `authorizingLocusUrl`. | Locus ignores cross-locus authorization for audio controls (MOD-004). | `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js`, `test/unit/spec/controls-options-manager/util.js` |
|
|
323
|
+
| `INV-004` | For reactions, a defined `showDisplayNameWithReactions` decides the required hint and `enabled` is then not checked. | The code comment: the service blocks partial requests with this property only, which caused a display-hint discrepancy. | `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/util.js` |
|
|
324
|
+
|
|
325
|
+
## Caller-visible failure modes
|
|
326
|
+
|
|
327
|
+
| Condition | Signal | Caller recovery |
|
|
328
|
+
| --------- | ------ | --------------- |
|
|
329
|
+
| `locusUrl` is absent | Rejected `ParameterError` promise. | Set the current Locus URL before retrying. |
|
|
330
|
+
| Scope is unknown or `Util.canUpdate` denies it | Synchronous `Error` or `PermissionError` from `update`. | Correct the scope/properties or wait for matching display hints. |
|
|
331
|
+
| Request dependency rejects | Returned update/audio-control promise rejects. | Preserve the dependency error; retry only under caller policy. |
|
|
332
|
+
| An audio setter value is not permitted by display hints | Rejected `PermissionError` promise naming the setting and value. | Wait for matching display hints. |
|
|
333
|
+
|
|
334
|
+
Evidence: `src/controls-options-manager/index.ts` and the failure cases in
|
|
335
|
+
`test/unit/spec/controls-options-manager/index.js`.
|
|
336
|
+
|
|
337
|
+
## Pitfalls and constraints
|
|
338
|
+
|
|
339
|
+
- The static `Util.canSet*`/`canUnset*`/`canUpdate*` predicates are implementation helpers, not
|
|
340
|
+
instance query methods on `ControlsOptionsManager`.
|
|
341
|
+
- Verify both typed constants/enums and raw wire values before changing a logical condition in this
|
|
342
|
+
legacy package (`Control`, `Setting`, `AUDIO_CONTROL_BODY_KEYS`, and `DISPLAY_HINTS`).
|
|
343
|
+
- `getControlsRequestParams` treats a mixed audio and non-audio body as non-audio and sends it with
|
|
344
|
+
`authorizingLocusUrl`; callers must not produce mixed payloads (its JSDoc).
|
|
345
|
+
- In the participant-list fill-in, `Boolean(current?.attendeeCount) ?? false` never reaches its
|
|
346
|
+
`false` fallback.
|
|
347
|
+
- A `set()` without `displayHints` leaves them undefined, and the next permission check throws a
|
|
348
|
+
`TypeError`.
|
|
349
|
+
|
|
350
|
+
## Verification
|
|
351
|
+
|
|
352
|
+
Use the current mirrored suites: `test/unit/spec/controls-options-manager/index.js`,
|
|
353
|
+
`test/unit/spec/controls-options-manager/util.js`. Characterize the controls-options-manager-specific
|
|
354
|
+
use cases above and each listed failure condition; add cleanup or transition cases only for resources
|
|
355
|
+
and state this module actually owns.
|
|
356
|
+
|
|
357
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
358
|
+
| ---------------------- | ---------------------- | --- |
|
|
359
|
+
| `MOD-001`, `INV-001`, `INV-004` | `test/unit/spec/controls-options-manager/util.js` covers every Control/Setting capability predicate and canUpdate | none |
|
|
360
|
+
| `MOD-002`, `MOD-004`, `INV-003` | `test/unit/spec/controls-options-manager/index.js` covers mixed-control batches, request order, and main/breakout URL selection; `test/unit/spec/controls-options-manager/util.js` covers the routing helpers | none |
|
|
361
|
+
| `MOD-003` | `test/unit/spec/controls-options-manager/index.js` | distinguish synchronous unknown-scope and permission errors from missing-URL and dependency promise rejections: the dependency rejection has no case |
|
|
362
|
+
| `MOD-005`, `INV-002` | `test/unit/spec/controls-options-manager/index.js` covers each audio setter's hints, bodies, and breakout target | none |
|
|
363
|
+
|
|
364
|
+
Coverage state and the contracts baseline are recorded in `.sdd/manifest.json`. Coverage measurement
|
|
365
|
+
is pending; the module stays Partial until coverage review and independent validation run.
|