@webex/plugin-meetings 3.13.0-next.12 → 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
package/ai-docs/ARCHITECTURE.md
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
<!-- sdd-generated-metadata
|
|
2
|
-
doc_kind: standing-doc
|
|
3
|
-
generated_from: architecture@0.2.2
|
|
4
|
-
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
-
generated_by: codex
|
|
6
|
-
approved_by: repository user
|
|
7
|
-
updated_at: 2026-09-08T00:00:00Z
|
|
8
|
-
validation_status: not-run
|
|
9
|
-
-->
|
|
10
|
-
# ARCHITECTURE — @webex/plugin-meetings
|
|
11
|
-
|
|
12
|
-
> Start here → root [`AGENTS.md`](../AGENTS.md) · router [`SPEC_INDEX.md`](SPEC_INDEX.md). This document describes package-level ownership; source-local module specs hold detailed behavior.
|
|
13
|
-
|
|
14
|
-
## Design Overview
|
|
15
|
-
|
|
16
|
-
The package is a browser-oriented library embedded in a Webex SDK instance. `src/index.ts` registers `Meetings` as `webex.meetings`, installs request interceptors, and exports the selected public types, helpers, stream factories, and errors. The registered `Meetings` plugin owns discovery, device/Mercury registration, the meeting collection, and construction of `Meeting` objects.
|
|
17
|
-
|
|
18
|
-
A `Meeting` is the central per-call coordinator. It combines normalized Locus state, members, feature controllers, local and remote media, ROAP negotiation, reachability, reconnection, requests, events, and telemetry. Capability modules remain separate so their state and server contracts can be tested independently, but they are composed by the meeting object and consume the same Webex host and Locus identity.
|
|
19
|
-
|
|
20
|
-
The package persists no datastore. It maintains in-memory client projections and caches that are refreshed by Webex HTTP responses, Mercury events, Locus full/delta/hash-tree updates, and media callbacks. This split keeps remote services authoritative while making the SDK responsive to realtime change.
|
|
21
|
-
|
|
22
|
-
## Component Inventory & Responsibilities
|
|
23
|
-
|
|
24
|
-
| Component | Responsibility | Docs |
|
|
25
|
-
|---|---|---|
|
|
26
|
-
| `src/meetings/` | Plugin registration lifecycle, discovery, and meeting collection | `src/meetings/ai-docs/meetings-spec.md` |
|
|
27
|
-
| `src/meeting/` | One meeting's lifecycle, controls, media, state, and events | `src/meeting/ai-docs/meeting-spec.md` |
|
|
28
|
-
| `src/meeting-info/` | Resolve destinations and normalize meeting metadata | `src/meeting-info/ai-docs/meeting-info-spec.md` |
|
|
29
|
-
| `src/locus-info/` | Convert Locus inputs into scoped client-state callbacks | `src/locus-info/ai-docs/locus-info-spec.md` |
|
|
30
|
-
| `src/hashTree/` | Reconcile incremental Locus datasets | `src/hashTree/ai-docs/hash-tree-spec.md` |
|
|
31
|
-
| `src/member/`, `src/members/` | Represent one participant and manage the roster | `src/member/ai-docs/member-spec.md`, `src/members/ai-docs/members-spec.md` |
|
|
32
|
-
| `src/media/`, `src/multistream/`, `src/roap/` | Construct connections, allocate streams, and negotiate SDP | `src/media/ai-docs/media-spec.md`, `src/multistream/ai-docs/multistream-spec.md`, `src/roap/ai-docs/roap-spec.md` |
|
|
33
|
-
| `src/reachability/`, `src/reconnection-manager/` | Probe routes and recover failed media/meetings | `src/reachability/ai-docs/reachability-spec.md`, `src/reconnection-manager/ai-docs/reconnection-manager-spec.md` |
|
|
34
|
-
| `src/breakouts/`, `src/interpretation/`, `src/annotation/`, `src/aiEnableRequest/`, `src/webinar/` | Feature-specific meeting workflows | owning source-local specs |
|
|
35
|
-
| `src/recording-controller/`, `src/controls-options-manager/`, `src/personal-meeting-room/`, `src/reactions/` | Focused meeting controls and data catalogs | owning source-local specs |
|
|
36
|
-
| `src/interceptors/`, `src/metrics/` | Request middleware and behavioral telemetry | owning source-local specs |
|
|
37
|
-
|
|
38
|
-
## Component Interaction
|
|
39
|
-
|
|
40
|
-
```mermaid
|
|
41
|
-
flowchart LR
|
|
42
|
-
App[SDK consumer] --> Entry[src/index.ts]
|
|
43
|
-
Entry --> Meetings[Meetings]
|
|
44
|
-
Meetings --> Info[meeting-info]
|
|
45
|
-
Meetings --> Meeting[Meeting]
|
|
46
|
-
Meetings --> Device[device and Mercury]
|
|
47
|
-
Meeting --> Locus[locus-info and hashTree]
|
|
48
|
-
Locus --> Members[member and members]
|
|
49
|
-
Meeting --> Media[media]
|
|
50
|
-
Media --> ROAP[roap]
|
|
51
|
-
Media --> Multi[multistream]
|
|
52
|
-
Media --> Reach[reachability]
|
|
53
|
-
Meeting --> Recovery[reconnection-manager]
|
|
54
|
-
Meeting --> Features[breakouts / interpretation / annotation / AI / webinar / controls]
|
|
55
|
-
Entry --> Middleware[interceptors]
|
|
56
|
-
Meetings --> Metrics[metrics]
|
|
57
|
-
Meeting --> Metrics
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Consumers enter through the registered `webex.meetings` plugin or package exports. `Meetings` resolves a destination, creates or finds a `Meeting`, and coordinates registration and Mercury delivery. The meeting applies Locus updates, updates roster and feature projections, negotiates media through ROAP/internal-media-core, emits scoped events, and records behavioral metrics.
|
|
61
|
-
|
|
62
|
-
## Execution & Flow
|
|
63
|
-
|
|
64
|
-
1. Importing `src/index.ts` registers the plugin and three request interceptors with `@webex/webex-core`.
|
|
65
|
-
2. The SDK initializes `Meetings`, which builds collections/request helpers and registers device and Mercury listeners.
|
|
66
|
-
3. A consumer creates or receives a meeting; meeting-info resolution supplies Locus/meeting identity and a `Meeting` enters the collection.
|
|
67
|
-
4. Join and media operations call Webex services, apply the returned Locus state, negotiate ROAP/SDP, and publish local/remote stream readiness.
|
|
68
|
-
5. Mercury/Locus updates flow through `locus-info` and feature controllers; teardown removes listeners, timers, media connections, and collection entries.
|
|
69
|
-
|
|
70
|
-
Evidence: `src/index.ts`, `src/meetings/index.ts`, `src/meeting/index.ts`, `src/locus-info/index.ts`, `src/media/index.ts`.
|
|
71
|
-
|
|
72
|
-
## Dependencies
|
|
73
|
-
|
|
74
|
-
| Dependency | Type | How used | Failure / version handling |
|
|
75
|
-
|---|---|---|---|
|
|
76
|
-
| `@webex/webex-core` | workspace peer/internal | Plugin host, requests, services, interceptors, base classes | Request failures propagate through typed errors/interceptors |
|
|
77
|
-
| Device and Mercury plugins | workspace internal | Device identity and realtime event delivery | Registration is staged and failure-aware; teardown unregisters listeners |
|
|
78
|
-
| `@webex/internal-media-core` | pinned external | WebRTC media connections and multistream primitives | Media errors/timeouts are surfaced and reconnection is bounded |
|
|
79
|
-
| `@webex/media-helpers` | workspace internal | Public local/remote stream factories and types | Public re-exports are semver-sensitive |
|
|
80
|
-
| Locus/meeting/webinar/AI services | external Webex services | Meeting state and mutations | HTTP errors are not converted into success; retry only where explicitly implemented |
|
|
81
|
-
| `jose`, `jwt-decode` | external libraries | Data-channel token inspection/authentication | Expiry is checked; refresh retries are bounded |
|
|
82
|
-
|
|
83
|
-
### State Model
|
|
84
|
-
|
|
85
|
-
- `Meetings` owns registration state and maps meeting keys/identifiers to `Meeting` instances.
|
|
86
|
-
- Each `Meeting` owns its Locus projection, members, feature controllers, media connections/streams, mute/BRB/control state, and timers.
|
|
87
|
-
- Locus full state, delta events, and hash-tree datasets converge into the same projection; the remote Locus service remains authoritative.
|
|
88
|
-
- Feature modules derive state from meeting/Locus data and clear listeners and collections when the meeting is destroyed.
|
|
89
|
-
|
|
90
|
-
## Cross-Cutting Concerns
|
|
91
|
-
|
|
92
|
-
- **Security:** Webex credentials and data-channel tokens enter through the host/request layer; identity, participant data, meeting URLs, media, and transcripts are sensitive. Authorization remains enforced by remote services and capability/policy fields.
|
|
93
|
-
- **Observability:** modules use the shared logger proxy and metrics helpers with correlation identifiers. Behavioral and call-analyzer telemetry should describe outcomes without logging tokens or raw sensitive payloads.
|
|
94
|
-
|
|
95
|
-
## Non-Functional Posture
|
|
96
|
-
|
|
97
|
-
This is a published client library used in browsers and SDK hosts. Preserve package exports, event names/payloads, async semantics, and browser compatibility. Avoid new runtime dependencies and unbounded timers/listeners; measure performance-critical media or event-path changes rather than inventing targets.
|
|
98
|
-
|
|
99
|
-
## Dependency / Interaction Topology
|
|
100
|
-
|
|
101
|
-
```mermaid
|
|
102
|
-
flowchart TD
|
|
103
|
-
Meetings -->|constructs/calls| Meeting
|
|
104
|
-
Meetings -->|HTTP| MeetingInfo
|
|
105
|
-
Meetings -->|events| Mercury
|
|
106
|
-
Meeting -->|state| LocusInfo
|
|
107
|
-
LocusInfo -->|incremental data| HashTree
|
|
108
|
-
LocusInfo -->|roster changes| Members
|
|
109
|
-
Meeting -->|connect/close| Media
|
|
110
|
-
Media -->|offer/answer| Roap
|
|
111
|
-
Media -->|remote tracks| Multistream
|
|
112
|
-
Meeting -->|recover| Reconnection
|
|
113
|
-
Meeting -->|compose| Features
|
|
114
|
-
Meetings -->|telemetry| Metrics
|
|
115
|
-
Meeting -->|telemetry| Metrics
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
| From | To | Kind | Purpose |
|
|
119
|
-
|---|---|---|---|
|
|
120
|
-
| SDK consumer | `Meetings`/`Meeting` | call/event | Create, join, control, observe, and leave meetings |
|
|
121
|
-
| `Meetings` | device/Mercury/meeting-info | call/event | Register and discover meetings and realtime updates |
|
|
122
|
-
| `Meeting` | Locus/member/feature modules | call/event | Apply remote state and expose scoped capability state |
|
|
123
|
-
| `Meeting` | media/ROAP/multistream | async call/event | Establish and update WebRTC media |
|
|
124
|
-
| media callbacks | reconnection manager | event/call | Start bounded recovery or rejoin |
|
|
125
|
-
| core modules | metrics | call | Submit outcome and diagnostic telemetry |
|
|
126
|
-
|
|
127
|
-
## Object / Data Ownership
|
|
128
|
-
|
|
129
|
-
| Domain object | System-of-record / owning component | Read by |
|
|
130
|
-
|---|---|---|
|
|
131
|
-
| Remote meeting/Locus state | Webex Locus service; projected by `locus-info` | `Meeting`, members, features, consumer events |
|
|
132
|
-
| Meeting collection and registration state | `meetings` in memory | SDK consumers and event routing |
|
|
133
|
-
| Per-meeting client state | `meeting` in memory | feature/media controllers and consumers |
|
|
134
|
-
| Participant projection | `member`/`members` from Locus | meeting, breakouts, interpretation, Voicea/transcription helpers |
|
|
135
|
-
| Media connection and slots | `media`/`multistream` | meeting and stream consumers |
|
|
136
|
-
| Feature projection | owning feature module | meeting and SDK consumer |
|
|
137
|
-
|
|
138
|
-
## Caching Catalog
|
|
139
|
-
|
|
140
|
-
| Cache | Backend | What it holds | TTL | Invalidation trigger |
|
|
141
|
-
|---|---|---|---|---|
|
|
142
|
-
| Meeting collection | in-memory collection | active `Meeting` instances by meeting identifiers | meeting lifetime | leave/destroy/unregister and collection removal |
|
|
143
|
-
| Meeting-info collection | in-memory collection | resolved metadata | process lifetime/explicit replacement | a refreshed response or collection lifecycle |
|
|
144
|
-
| Locus route token map | interceptor memory | route tokens keyed by Locus id | process lifetime | response update or interceptor lifecycle |
|
|
145
|
-
| Feature collections | in-memory collections | breakout, interpretation, webinar, and roster projections | meeting lifetime | Locus update or feature cleanup |
|
|
146
|
-
|
|
147
|
-
## Observability Patterns
|
|
148
|
-
|
|
149
|
-
- **Logging:** use `src/common/logs/logger-proxy.ts` and correlation-aware context; do not use console logging or record credentials, tokens, participant PII, raw transcript/media, or full sensitive URLs.
|
|
150
|
-
- **Metrics:** use `src/metrics/index.ts` and existing call-analyzer helpers/constants; retain established names and flatten fields predictably.
|
|
151
|
-
- **Audit:** privileged actions are represented by remote Locus/service mutations and their outcome metrics; the package owns no durable audit store.
|
|
152
|
-
|
|
153
|
-
## Infrastructure Matrix
|
|
154
|
-
|
|
155
|
-
| Category | In use | Notes |
|
|
156
|
-
|---|---|---|
|
|
157
|
-
| Datastores | none owned | Client projections are in memory; Webex services own persistence |
|
|
158
|
-
| Messaging / streaming | Mercury events, data channels, WebRTC media | Host plugins and internal-media-core provide transport |
|
|
159
|
-
| Cloud / platform services | Webex device, Locus, meeting-info, webinar, reachability, metrics | Accessed through Webex core request/service abstractions |
|
|
160
|
-
|
|
161
|
-
## Shared / Base Libraries
|
|
162
|
-
|
|
163
|
-
| Library | What modules inherit/use | Version floor |
|
|
164
|
-
|---|---|---|
|
|
165
|
-
| `@webex/webex-core` | plugin registration, request and service access, base plugin/interceptor classes | workspace version |
|
|
166
|
-
| package `src/common/` | collections, events, logging, queue, errors, browser/config helpers | package-local |
|
|
167
|
-
| `lodash` | guarded collection/object utilities | package manifest range |
|
|
168
|
-
| `@webex/internal-media-core` | WebRTC/media primitives | pinned exact version in `package.json` (`dependencies`) |
|
|
169
|
-
|
|
170
|
-
## Package Map & Inter-Package Dependencies
|
|
171
|
-
|
|
172
|
-
- Workspace packages live under repository package globs; this package is the published meetings capability.
|
|
173
|
-
- It consumes internal device, Mercury, metrics, user, support, conversation, Voicea/LLM, people/rooms, media-helper, common, and core packages listed in `package.json`.
|
|
174
|
-
- Workspace dependencies use `workspace:*`; external pinned/ranged dependencies follow the root release process. The package must not introduce cycles through reverse imports.
|
|
175
|
-
|
|
176
|
-
## Release & Versioning
|
|
177
|
-
|
|
178
|
-
- `@webex/plugin-meetings` builds to `dist/index.js` with declarations under `dist/types` and publishes through the repository npm release workflow.
|
|
179
|
-
- The default `meetings.assetsBaseUrl` uses `/assets/plugin-meetings/` in development and versionless local builds. SDK releases use `SDK_VERSION` to resolve assets from the matching `webex` UMD package on unpkg. Standalone plugin npm releases fall back to `PACKAGE_VERSION` and resolve assets from that plugin's package.
|
|
180
|
-
- Treat exports in `src/index.ts`, consumer-visible class methods, events, types, and error shapes as semver-sensitive. Deprecate before removal and update consumer docs/specs and changelog material in the same release change.
|
|
181
|
-
|
|
182
|
-
## Host Integration & Theming
|
|
183
|
-
|
|
184
|
-
- The host imports the package, after which `registerPlugin('meetings', Meetings, ...)` mounts `webex.meetings` and request interceptors.
|
|
185
|
-
- The host must provide initialized core/device/Mercury/request services and browser media capabilities. This package has no theming or UI-provider contract.
|
|
186
|
-
|
|
187
|
-
## Cross-Repo Dependency Graph
|
|
188
|
-
|
|
189
|
-
- **Internal:** Webex SDK workspace packages provide core hosting, identity/device, Mercury, metrics, media helpers, people/rooms, support, Voicea, and LLM integration.
|
|
190
|
-
- **Cross-project:** published `@webex/*` and media packages exchange TypeScript/JavaScript APIs and event/request payloads.
|
|
191
|
-
- **External read-only:** developer/API documentation and sample application are consumer references, not behavior truth for this bootstrap.
|
|
192
|
-
- **External services:** Webex Locus, meeting-info, device, webinar, AI approval, reachability, and telemetry services.
|
|
193
|
-
|
|
194
|
-
## Security Architecture
|
|
195
|
-
|
|
196
|
-
The application/SDK host owns authentication and supplies credentialed request access. Interceptors attach or refresh route/data-channel tokens at request boundaries; modules use remote capability and policy fields before privileged actions. TLS/WebRTC transports are supplied by the browser and Webex infrastructure. The package keeps only in-memory projections and must redact identity, tokens, participant data, transcript/media content, and sensitive meeting URLs from diagnostics.
|
|
197
|
-
|
|
198
|
-
## Architecture Reference Links
|
|
199
|
-
|
|
200
|
-
| Reference | Location | When to read |
|
|
201
|
-
|---|---|---|
|
|
202
|
-
| Migration decision | `adr/0001-migrate-existing-docs-into-sdd.md` | Why legacy docs are retained while canonical specs are generated |
|
|
203
|
-
| Repo patterns | `patterns/` | Before adding requests, event emitters, constants, or tests |
|
|
204
|
-
| Enforceable rules | `RULES.md` | Before any code or contract change |
|
|
205
|
-
|
|
206
|
-
## WS6 References
|
|
207
|
-
|
|
208
|
-
No repository-local WS6/platform architecture artifact was found or supplied. Current local code and tests remain the package-level evidence source.
|
package/ai-docs/CONTRACTS.md
DELETED
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
<!-- sdd-generated-metadata
|
|
2
|
-
doc_kind: standing-doc
|
|
3
|
-
generated_from: contracts@0.2.2
|
|
4
|
-
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
-
generated_by: codex
|
|
6
|
-
approved_by: repository user
|
|
7
|
-
updated_at: 2026-09-08T00:00:00Z
|
|
8
|
-
validation_status: not-run
|
|
9
|
-
-->
|
|
10
|
-
# CONTRACTS — @webex/plugin-meetings
|
|
11
|
-
|
|
12
|
-
> Root [`AGENTS.md`](../AGENTS.md) · router [`SPEC_INDEX.md`](SPEC_INDEX.md). This is the compact package boundary; owning module specs contain operation and failure detail.
|
|
13
|
-
|
|
14
|
-
### Exported API & Types
|
|
15
|
-
|
|
16
|
-
`src/index.ts` is the package export authority. It registers the default `Meetings` plugin and exports `Meeting`, selected meeting-info/error helpers, constants, reactions, annotation/interpretation types, `RemoteMedia`, `TriggerProxy`, AI approver selection, and media-helper stream factories/types. A symbol existing below `src/` is not public unless it is reachable through this entry point or a documented public object such as `webex.meetings`/`Meeting`.
|
|
17
|
-
|
|
18
|
-
| Contract ID | Surface | Purpose | Compatibility |
|
|
19
|
-
|---|---|---|---|
|
|
20
|
-
| `package.default` | default `Meetings` | plugin constructor registered as `webex.meetings` | semver-sensitive |
|
|
21
|
-
| `package.meeting` | `Meeting` | per-meeting lifecycle/control object | semver-sensitive methods/events |
|
|
22
|
-
| `package.streams` | media-helper stream classes/factories/types | acquire and represent local/remote media | follows package re-export contract |
|
|
23
|
-
| `package.constants` | `CONSTANTS`, `REACTIONS`, selected enums/types | stable consumer values and payload typing | never silently change wire values |
|
|
24
|
-
| `package.errors` | join, captcha, password, permission, reclaim-host, SDP timeout errors | actionable consumer failure branches | preserve class identity and relevant fields |
|
|
25
|
-
| `package.utilities` | `MeetingInfoUtil`, `TriggerProxy`, `getAIEnablementApprover` | selected advanced integration helpers | semver-sensitive |
|
|
26
|
-
| `meetings.site-preferences` | `Meetings.fetchSitePreferencesMeViaSite(options?)` | fetch the selected preference sections from a site's `/wbxappapi/v1/users/me/preference` resource, using an explicit site or the preferred site established during registration | semver-sensitive method, option, and response shape |
|
|
27
|
-
|
|
28
|
-
The retained `README.md` contains extensive usage examples for registration, creating/finding meetings, joining, media, PMR, members, and events. Those examples are migration source material; validate them against current source before copying into new consumer code.
|
|
29
|
-
|
|
30
|
-
### Events
|
|
31
|
-
|
|
32
|
-
Events are emitted in process through package event scopes, with some inputs originating from Mercury, Locus, media, or data channels. Event constants in `src/constants.ts` and feature event files are authoritative.
|
|
33
|
-
|
|
34
|
-
| Family | Owner | Examples / role | Compatibility rule |
|
|
35
|
-
|---|---|---|---|
|
|
36
|
-
| meetings | `src/meetings/` | added/removed, incoming, registration and sync lifecycle | preserve name, payload shape, and timing |
|
|
37
|
-
| meeting | `src/meeting/` | state, media ready/stopped, mute, sharing, transcription, controls | preserve scope and cleanup; document payload changes |
|
|
38
|
-
| members | `src/members/` | roster added/updated/removed and host/member changes | participant PII restrictions apply |
|
|
39
|
-
| breakouts | `src/breakouts/events.ts` | session, roster, broadcast, help, return-to-main changes | stale README implementation notes do not override code |
|
|
40
|
-
| interpretation / AI / webinar / annotation | owning modules | approval, handoff, role/status, relay/data-channel changes | capability-gated, meeting-scoped |
|
|
41
|
-
|
|
42
|
-
Event caveat retained from consumer guidance: do not assume every event is globally emitted or ordered independently of meeting/Locus state. Subscribe through the documented object/scope, tolerate async updates, and remove listeners during teardown.
|
|
43
|
-
|
|
44
|
-
### Current emitted-event inventory
|
|
45
|
-
|
|
46
|
-
This table is generated from current public emission call sites. The local mechanical gate resolves constants, conditional expressions, local assignments, `TriggerProxy`, inline literals, and thin forwarding wrappers. It distinguishes the emitted literal, its defining expression, and the file that emits or forwards it; the four private plumbing signals excluded from the public-event count remain documented only in their owning module flows.
|
|
47
|
-
|
|
48
|
-
| Event literal | Constant / expression | Emission evidence |
|
|
49
|
-
|---|---|---|
|
|
50
|
-
| `ASK_FOR_HELP` | `BREAKOUTS.EVENTS.ASK_FOR_HELP` | `src/breakouts/index.ts` |
|
|
51
|
-
| `ASK_RETURN_TO_MAIN` | `BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN` | `src/breakouts/index.ts` |
|
|
52
|
-
| `BREAKOUTS_CLOSING` | `BREAKOUTS.EVENTS.BREAKOUTS_CLOSING` | `src/breakouts/index.ts` |
|
|
53
|
-
| `HANDOFF_REQUESTS_ARRIVED` | `INTERPRETATION.EVENTS.HANDOFF_REQUESTS_ARRIVED` | `src/interpretation/index.ts` |
|
|
54
|
-
| `LEAVE_BREAKOUT` | `BREAKOUTS.EVENTS.LEAVE_BREAKOUT` | `src/breakouts/index.ts` |
|
|
55
|
-
| `annotation:command` | `EVENT_TRIGGERS.ANNOTATION_COMMAND` | `src/annotation/index.ts` |
|
|
56
|
-
| `annotation:strokeData` | `EVENT_TRIGGERS.ANNOTATION_STROKE_DATA` | `src/annotation/index.ts` |
|
|
57
|
-
| `media:activeSpeakerChanged` | `EVENT_TRIGGERS.ACTIVE_SPEAKER_CHANGED` | `src/meeting/index.ts` |
|
|
58
|
-
| `media:codec:loaded` | `EVENT_TRIGGERS.MEDIA_CODEC_LOADED` | `src/meetings/util.ts` |
|
|
59
|
-
| `media:codec:missing` | `EVENT_TRIGGERS.MEDIA_CODEC_MISSING` | `src/meetings/util.ts` |
|
|
60
|
-
| `media:inboundAudio:issueDetected` | `EVENT_TRIGGERS.MEDIA_INBOUND_AUDIO_ISSUE_DETECTED` | `src/meeting/index.ts` |
|
|
61
|
-
| `media:negotiated` | `EVENT_TRIGGERS.MEDIA_NEGOTIATED` | `src/meeting/index.ts` |
|
|
62
|
-
| `media:ready` | `EVENT_TRIGGERS.MEDIA_READY` | `src/meeting/index.ts` |
|
|
63
|
-
| `media:remoteAudio:created` | `EVENT_TRIGGERS.REMOTE_MEDIA_AUDIO_CREATED` | `src/meeting/index.ts` |
|
|
64
|
-
| `media:remoteInterpretationAudio:created` | `EVENT_TRIGGERS.REMOTE_MEDIA_INTERPRETATION_AUDIO_CREATED` | `src/meeting/index.ts` |
|
|
65
|
-
| `media:remoteScreenShareAudio:created` | `EVENT_TRIGGERS.REMOTE_MEDIA_SCREEN_SHARE_AUDIO_CREATED` | `src/meeting/index.ts` |
|
|
66
|
-
| `media:remoteVideo:layoutChanged` | `EVENT_TRIGGERS.REMOTE_MEDIA_VIDEO_LAYOUT_CHANGED` | `src/meeting/index.ts` |
|
|
67
|
-
| `media:remoteAudioSourceCountChanged` | `EVENT_TRIGGERS.REMOTE_AUDIO_SOURCE_COUNT_CHANGED` | `src/meeting/index.ts` |
|
|
68
|
-
| `media:remoteVideoSourceCountChanged` | `EVENT_TRIGGERS.REMOTE_VIDEO_SOURCE_COUNT_CHANGED` | `src/meeting/index.ts` |
|
|
69
|
-
| `media:stopped` | `EVENT_TRIGGERS.MEDIA_STOPPED` | `src/meeting/index.ts` |
|
|
70
|
-
| `meeting:actionsUpdate` | `EVENT_TRIGGERS.MEETING_ACTIONS_UPDATE` | `src/meeting/index.ts` |
|
|
71
|
-
| `meeting:added` | `EVENT_TRIGGERS.MEETING_ADDED` | `src/meetings/index.ts` |
|
|
72
|
-
| `meeting:breakouts:askForHelp` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_ASK_FOR_HELP` | `src/meeting/index.ts` |
|
|
73
|
-
| `meeting:breakouts:askReturnToMain` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_ASK_RETURN_TO_MAIN` | `src/meeting/index.ts` |
|
|
74
|
-
| `meeting:breakouts:closing` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_CLOSING` | `src/meeting/index.ts` |
|
|
75
|
-
| `meeting:breakouts:leave` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_LEAVE` | `src/meeting/index.ts` |
|
|
76
|
-
| `meeting:breakouts:message` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_MESSAGE` | `src/meeting/index.ts` |
|
|
77
|
-
| `meeting:breakouts:preAssignmentsUpdate` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_PRE_ASSIGNMENTS_UPDATE` | `src/meeting/index.ts` |
|
|
78
|
-
| `meeting:breakouts:update` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE` | `src/meeting/index.ts` |
|
|
79
|
-
| `meeting:caption-received` | `EVENT_TRIGGERS.MEETING_CAPTION_RECEIVED` | `src/meeting/index.ts` |
|
|
80
|
-
| `meeting:controls:ai-summary-notification:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AI_SUMMARY_NOTIFICATION_UPDATED` | `src/meeting/index.ts` |
|
|
81
|
-
| `meeting:controls:annotation:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_ANNOTATION_UPDATED` | `src/meeting/index.ts` |
|
|
82
|
-
| `meeting:controls:auto-end-meeting-warning:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AUTO_END_MEETING_WARNING_UPDATED` | `src/meeting/index.ts` |
|
|
83
|
-
| `meeting:controls:disallow-unmute:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_DISALLOW_UNMUTE_UPDATED` | `src/meeting/index.ts` |
|
|
84
|
-
| `meeting:controls:meeting-full:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MEETING_FULL_UPDATED` | `src/meeting/index.ts` |
|
|
85
|
-
| `meeting:controls:mute-on-entry:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MUTE_ON_ENTRY_UPDATED` | `src/meeting/index.ts` |
|
|
86
|
-
| `meeting:controls:polling-qa:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_POLLING_QA_UPDATED` | `src/meeting/index.ts` |
|
|
87
|
-
| `meeting:controls:practice-session-status:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_PRACTICE_SESSION_STATUS_UPDATED` | `src/meeting/index.ts` |
|
|
88
|
-
| `meeting:controls:raise-hand:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_RAISE_HAND_UPDATED` | `src/meeting/index.ts` |
|
|
89
|
-
| `meeting:controls:reactions:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REACTIONS_UPDATED` | `src/meeting/index.ts` |
|
|
90
|
-
| `meeting:controls:remote-desktop-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REMOTE_DESKTOP_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
91
|
-
| `meeting:controls:share-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_SHARE_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
92
|
-
| `meeting:controls:stage-view:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_STAGE_VIEW_UPDATED` | `src/meeting/index.ts` |
|
|
93
|
-
| `meeting:controls:video:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIDEO_UPDATED` | `src/meeting/index.ts` |
|
|
94
|
-
| `meeting:controls:view-the-participants-list:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIEW_THE_PARTICIPANTS_LIST_UPDATED` | `src/meeting/index.ts` |
|
|
95
|
-
| `meeting:controls:webcast:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_WEBCAST_UPDATED` | `src/meeting/index.ts` |
|
|
96
|
-
| `meeting:embeddedApps:update` | `EVENT_TRIGGERS.MEETING_EMBEDDED_APPS_UPDATE` | `src/meeting/index.ts` |
|
|
97
|
-
| `meeting:entryExitTone:update` | `EVENT_TRIGGERS.MEETING_ENTRY_EXIT_TONE_UPDATE` | `src/meeting/index.ts` |
|
|
98
|
-
| `meeting:interpretation:handoffRequestsArrived` | `EVENT_TRIGGERS.MEETING_INTERPRETATION_HANDOFF_REQUESTS_ARRIVED` | `src/meeting/index.ts` |
|
|
99
|
-
| `meeting:interpretation:supportLanguagesUpdate` | `EVENT_TRIGGERS.MEETING_INTERPRETATION_SUPPORT_LANGUAGES_UPDATE` | `src/meeting/index.ts` |
|
|
100
|
-
| `meeting:interpretation:update` | `EVENT_TRIGGERS.MEETING_INTERPRETATION_UPDATE` | `src/meeting/index.ts`, `src/meeting/util.ts` |
|
|
101
|
-
| `meeting:layout:update` | `EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE` | `src/meeting/index.ts` |
|
|
102
|
-
| `meeting:locked` | `EVENT_TRIGGERS.MEETING_LOCKED` | `src/meeting/index.ts` |
|
|
103
|
-
| `meeting:locus:locusUrl:update` | `EVENT_TRIGGERS.MEETING_LOCUS_URL_UPDATE` | `src/meeting/index.ts` |
|
|
104
|
-
| `meeting:logUpload:failure` | `EVENT_TRIGGERS.MEETING_LOG_UPLOAD_FAILURE` | `src/meetings/index.ts` |
|
|
105
|
-
| `meeting:logUpload:success` | `EVENT_TRIGGERS.MEETING_LOG_UPLOAD_SUCCESS` | `src/meetings/index.ts` |
|
|
106
|
-
| `meeting:manualCaptionControl:updated` | `EVENT_TRIGGERS.MEETING_MANUAL_CAPTION_UPDATED` | `src/meeting/index.ts` |
|
|
107
|
-
| `meeting:media:local:start` | `EVENT_TRIGGERS.MEETING_MEDIA_LOCAL_STARTED` | `src/meeting/index.ts` |
|
|
108
|
-
| `meeting:media:remote:start` | `EVENT_TRIGGERS.MEETING_MEDIA_REMOTE_STARTED` | `src/meeting/index.ts` |
|
|
109
|
-
| `meeting:meetingContainer:update` | `EVENT_TRIGGERS.MEETING_MEETING_CONTAINER_UPDATE` | `src/meeting/index.ts` |
|
|
110
|
-
| `meeting:meetingInfoAvailable` | `EVENT_TRIGGERS.MEETING_INFO_AVAILABLE` | `src/meeting/index.ts` |
|
|
111
|
-
| `meeting:meetingInfoUpdated` | `EVENT_TRIGGERS.MEETING_INFO_UPDATED` | `src/meeting/index.ts` |
|
|
112
|
-
| `meeting:participant-reason-changed` | `EVENT_TRIGGERS.MEETING_PARTICIPANT_REASON_CHANGED` | `src/meeting/index.ts` |
|
|
113
|
-
| `meeting:receiveReactions` | `EVENT_TRIGGERS.MEETING_RECEIVE_REACTIONS` | `src/meeting/index.ts` |
|
|
114
|
-
| `meeting:receiveTranscription:started` | `EVENT_TRIGGERS.MEETING_STARTED_RECEIVING_TRANSCRIPTION` | `src/meeting/index.ts` |
|
|
115
|
-
| `meeting:receiveTranscription:stopped` | `EVENT_TRIGGERS.MEETING_STOPPED_RECEIVING_TRANSCRIPTION` | `src/meeting/index.ts` |
|
|
116
|
-
| `meeting:recording:paused` | `EVENT_TRIGGERS.MEETING_PAUSED_RECORDING` | `src/meeting/index.ts` |
|
|
117
|
-
| `meeting:recording:resumed` | `EVENT_TRIGGERS.MEETING_RESUMED_RECORDING` | `src/meeting/index.ts` |
|
|
118
|
-
| `meeting:recording:started` | `EVENT_TRIGGERS.MEETING_STARTED_RECORDING` | `src/meeting/index.ts` |
|
|
119
|
-
| `meeting:recording:stopped` | `EVENT_TRIGGERS.MEETING_STOPPED_RECORDING` | `src/meeting/index.ts` |
|
|
120
|
-
| `meeting:removed` | `EVENT_TRIGGERS.MEETING_REMOVED` | `src/meetings/index.ts` |
|
|
121
|
-
| `meeting:resourceLinks:update` | `EVENT_TRIGGERS.MEETING_RESOURCE_LINKS_UPDATE` | `src/meeting/index.ts` |
|
|
122
|
-
| `meeting:ringing` | `EVENT_TRIGGERS.MEETING_RINGING` | `src/meeting/state.ts` |
|
|
123
|
-
| `meeting:ringingStop` | `EVENT_TRIGGERS.MEETING_RINGING_STOP` | `src/meeting/state.ts` |
|
|
124
|
-
| `meeting:self:brbUpdate` | `EVENT_TRIGGERS.MEETING_SELF_BRB_UPDATE` | `src/meeting/index.ts` |
|
|
125
|
-
| `meeting:self:cannotViewParticipantList` | `EVENT_TRIGGERS.MEETING_SELF_CANNOT_VIEW_PARTICIPANT_LIST` | `src/meeting/index.ts` |
|
|
126
|
-
| `meeting:self:guestAdmitted` | `EVENT_TRIGGERS.MEETING_SELF_GUEST_ADMITTED` | `src/meeting/index.ts` |
|
|
127
|
-
| `meeting:self:isSharingBlocked` | `EVENT_TRIGGERS.MEETING_SELF_IS_SHARING_BLOCKED` | `src/meeting/index.ts` |
|
|
128
|
-
| `meeting:self:left` | `EVENT_TRIGGERS.MEETING_SELF_LEFT` | `src/meeting/index.ts` |
|
|
129
|
-
| `meeting:self:lobbyWaiting` | `EVENT_TRIGGERS.MEETING_SELF_LOBBY_WAITING` | `src/meeting/index.ts` |
|
|
130
|
-
| `meeting:self:mutedByOthers` | `EVENT_TRIGGERS.MEETING_SELF_MUTED_BY_OTHERS` | `src/meeting/index.ts` |
|
|
131
|
-
| `meeting:self:phoneAudioUpdate` | `EVENT_TRIGGERS.MEETING_SELF_PHONE_AUDIO_UPDATE` | `src/meeting/index.ts` |
|
|
132
|
-
| `meeting:self:requestedToUnmute` | `EVENT_TRIGGERS.MEETING_SELF_REQUESTED_TO_UNMUTE` | `src/meeting/index.ts` |
|
|
133
|
-
| `meeting:self:rolesChanged` | `EVENT_TRIGGERS.MEETING_SELF_ROLES_CHANGED` | `src/meeting/index.ts` |
|
|
134
|
-
| `meeting:self:unmutedByOthers` | `EVENT_TRIGGERS.MEETING_SELF_UNMUTED_BY_OTHERS` | `src/meeting/index.ts` |
|
|
135
|
-
| `meeting:self:videoMutedByOthers` | `EVENT_TRIGGERS.MEETING_SELF_VIDEO_MUTED_BY_OTHERS` | `src/meeting/index.ts` |
|
|
136
|
-
| `meeting:self:videoUnmutedByOthers` | `EVENT_TRIGGERS.MEETING_SELF_VIDEO_UNMUTED_BY_OTHERS` | `src/meeting/index.ts` |
|
|
137
|
-
| `meeting:srtpCipher:updated` | `EVENT_TRIGGERS.MEETING_SRTP_CIPHER_UPDATED` | `src/meeting/index.ts` |
|
|
138
|
-
| `meeting:startedSharingLocal` | `EVENT_TRIGGERS.MEETING_STARTED_SHARING_LOCAL` | `src/meeting/index.ts` |
|
|
139
|
-
| `meeting:startedSharingRemote` | `EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE` | `src/meeting/index.ts` |
|
|
140
|
-
| `meeting:startedSharingWhiteboard` | `EVENT_TRIGGERS.MEETING_STARTED_SHARING_WHITEBOARD` | `src/meeting/index.ts` |
|
|
141
|
-
| `meeting:stateChange` | `EVENT_TRIGGERS.MEETING_STATE_CHANGE` | `src/meeting/index.ts` |
|
|
142
|
-
| `meeting:reconnectionFailure` | `EVENT_TRIGGERS.MEETING_RECONNECTION_FAILURE` | `src/reconnection-manager/index.ts` |
|
|
143
|
-
| `meeting:reconnectionStarting` | `EVENT_TRIGGERS.MEETING_RECONNECTION_STARTING` | `src/reconnection-manager/index.ts` |
|
|
144
|
-
| `meeting:reconnectionSuccess` | `EVENT_TRIGGERS.MEETING_RECONNECTION_SUCCESS` | `src/reconnection-manager/index.ts` |
|
|
145
|
-
| `meeting:stoppedSharingLocal` | `EVENT_TRIGGERS.MEETING_STOPPED_SHARING_LOCAL` | `src/meeting/index.ts`, `src/reconnection-manager/index.ts` |
|
|
146
|
-
| `meeting:stoppedSharingRemote` | `EVENT_TRIGGERS.MEETING_STOPPED_SHARING_REMOTE` | `src/meeting/index.ts` |
|
|
147
|
-
| `meeting:stoppedSharingWhiteboard` | `EVENT_TRIGGERS.MEETING_STOPPED_SHARING_WHITEBOARD` | `src/meeting/index.ts` |
|
|
148
|
-
| `meeting:streamPublishStateChanged` | `EVENT_TRIGGERS.MEETING_STREAM_PUBLISH_STATE_CHANGED` | `src/meeting/index.ts` |
|
|
149
|
-
| `meeting:transcription:connected` | `EVENT_TRIGGERS.MEETING_TRANSCRIPTION_CONNECTED` | `src/meeting/index.ts` |
|
|
150
|
-
| `meeting:transcription:spokenLanguageUpdate` | `EVENT_TRIGGERS.MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED` | `src/meeting/index.ts` |
|
|
151
|
-
| `meeting:unlocked` | `EVENT_TRIGGERS.MEETING_UNLOCKED` | `src/meeting/index.ts` |
|
|
152
|
-
| `meeting:updateAnnotationInfo` | `EVENT_TRIGGERS.MEETING_UPDATE_ANNOTATION_INFO` | `src/meeting/index.ts` |
|
|
153
|
-
| `meetings:ready` | `EVENT_TRIGGERS.MEETINGS_READY` | `src/meetings/index.ts` |
|
|
154
|
-
| `meetings:registered` | `EVENT_TRIGGERS.MEETINGS_REGISTERED` | `src/meetings/index.ts` |
|
|
155
|
-
| `meetings:unregistered` | `EVENT_TRIGGERS.MEETINGS_UNREGISTERED` | `src/meetings/index.ts` |
|
|
156
|
-
| `MEMBERS_UPDATE` | `BREAKOUTS.EVENTS.MEMBERS_UPDATE` | `src/breakouts/index.ts` |
|
|
157
|
-
| `members:clear` | `EVENT_TRIGGERS.MEMBERS_CLEAR` | `src/members/index.ts` |
|
|
158
|
-
| `members:content:update` | `EVENT_TRIGGERS.MEMBERS_CONTENT_UPDATE` | `src/members/index.ts` |
|
|
159
|
-
| `members:host:update` | `EVENT_TRIGGERS.MEMBERS_HOST_UPDATE` | `src/members/index.ts` |
|
|
160
|
-
| `members:self:update` | `EVENT_TRIGGERS.MEMBERS_SELF_UPDATE` | `src/members/index.ts` |
|
|
161
|
-
| `members:update` | `EVENT_TRIGGERS.MEMBERS_UPDATE` | `src/members/index.ts` |
|
|
162
|
-
| `MESSAGE` | `BREAKOUTS.EVENTS.MESSAGE` | `src/breakouts/index.ts` |
|
|
163
|
-
| `network:connected` | `EVENT_TRIGGERS.MEETINGS_NETWORK_CONNECTED` | `src/meeting/index.ts` |
|
|
164
|
-
| `network:disconnected` | `EVENT_TRIGGERS.MEETINGS_NETWORK_DISCONNECTED` | `src/meeting/index.ts`, `src/meetings/index.ts` |
|
|
165
|
-
| `network:quality` | `EVENT_TRIGGERS.NETWORK_QUALITY` | `src/meeting/index.ts` |
|
|
166
|
-
| `PRE_ASSIGNMENTS_UPDATE` | `BREAKOUTS.EVENTS.PRE_ASSIGNMENTS_UPDATE` | `src/breakouts/index.ts` |
|
|
167
|
-
| `reachability:done` | inline literal | `src/reachability/index.ts` |
|
|
168
|
-
| `reachability:firstResultAvailable` | inline literal | `src/reachability/index.ts` |
|
|
169
|
-
| `reachability:stopped` | inline literal | `src/reachability/index.ts` |
|
|
170
|
-
| `SUPPORT_LANGUAGES_UPDATE` | `INTERPRETATION.EVENTS.SUPPORT_LANGUAGES_UPDATE` | `src/interpretation/index.ts` |
|
|
171
|
-
|
|
172
|
-
### Declared but not emitted
|
|
173
|
-
|
|
174
|
-
These root constants are consumer-visible declarations in `src/constants.ts`, but current package source has no reachable public emission call for them. They are not part of the emitted-event count and must not be presented as live notifications.
|
|
175
|
-
|
|
176
|
-
| Declared literal | Constant | Current classification |
|
|
177
|
-
|---|---|---|
|
|
178
|
-
| `media:quality` | `EVENT_TRIGGERS.MEDIA_QUALITY` | declared but not emitted |
|
|
179
|
-
| `media:update` | `EVENT_TRIGGERS.MEDIA_UPDATE` | declared but not emitted |
|
|
180
|
-
| `meeting:aiEnableRequest` | `EVENT_TRIGGERS.MEETING_AI_ENABLE_REQUEST` | declared but not emitted |
|
|
181
|
-
|
|
182
|
-
### Migrated meetings-event catalog
|
|
183
|
-
|
|
184
|
-
| Event name | Observable meaning retained from consumer guidance |
|
|
185
|
-
|---|---|
|
|
186
|
-
| `meetings:ready` | plugin initialization completed; no payload |
|
|
187
|
-
| `meeting:added` | a joinable incoming/outgoing meeting entered the collection; payload identifies meeting and type |
|
|
188
|
-
| `meeting:removed` | a meeting left the collection and cannot be rejoined through that object; payload includes id/response |
|
|
189
|
-
| `media:codec:loaded` | browser H.264 codec became available; no payload |
|
|
190
|
-
| `media:codec:missing` | browser H.264 codec appears unavailable; no payload |
|
|
191
|
-
|
|
192
|
-
### Migrated meeting-event catalog
|
|
193
|
-
|
|
194
|
-
| Event name | Observable meaning / payload category |
|
|
195
|
-
|---|---|
|
|
196
|
-
| `meetings:registered` / `meetings:unregistered` | device and websocket registration lifecycle; no payload |
|
|
197
|
-
| `media:ready` | local or remote media became available; payload contains media `type` and `stream` |
|
|
198
|
-
| `media:stopped` | local or remote media was torn down; payload identifies media `type` |
|
|
199
|
-
| `meeting:media:local:start` / `meeting:media:remote:start` | local bytes began sending or remote bytes began arriving |
|
|
200
|
-
| `meeting:ringing` / `meeting:ringingStop` | ringing starts/stops; payload identifies meeting/type and remote answer/decline state |
|
|
201
|
-
| `meeting:startedSharingLocal` / `meeting:stoppedSharingLocal` | local share lifecycle; no payload |
|
|
202
|
-
| `meeting:startedSharingRemote` / `meeting:stoppedSharingRemote` | remote share lifecycle |
|
|
203
|
-
| `meeting:self:lobbyWaiting` / `meeting:self:guestAdmitted` | self lobby/admission transition; payload carries the self projection |
|
|
204
|
-
| `meeting:self:mutedByOthers` | self was remotely muted; payload carries the self projection |
|
|
205
|
-
| `meeting:reconnectionStarting` | reconnection began; no payload |
|
|
206
|
-
| `meeting:reconnectionSuccess` / `meeting:reconnectionFailure` | recovery completed with media result or error |
|
|
207
|
-
| `meeting:unlocked` / `meeting:locked` | host lock state changed; payload carries lock info |
|
|
208
|
-
| `meeting:actionsUpdate` | available actions changed, including invite/admit/lock/host/recording/hand controls |
|
|
209
|
-
| `meeting:logUpload:success` / `meeting:logUpload:failure` | diagnostic log upload outcome |
|
|
210
|
-
| `meeting:recording:started` / `stopped` / `paused` / `resumed` | recording state changed; payload includes state, modifier, and modification time |
|
|
211
|
-
| `meeting:receiveTranscription:started` / `stopped` | transcript reception lifecycle |
|
|
212
|
-
| `meeting:meetingContainer:update` | meeting-container URL changed |
|
|
213
|
-
|
|
214
|
-
### Migrated members-event catalog
|
|
215
|
-
|
|
216
|
-
| Event name | Observable meaning / payload category |
|
|
217
|
-
|---|---|
|
|
218
|
-
| `members:update` | roster delta (`updated`, `added`) plus full collection |
|
|
219
|
-
| `members:content:update` | active/ended content-sharing member ids |
|
|
220
|
-
| `members:host:update` | active/ended host member ids |
|
|
221
|
-
| `members:self:update` | active/ended self member ids |
|
|
222
|
-
|
|
223
|
-
Remote-share caveat: register `media:ready` before join, request `receiveShare` during media setup, and use the `remoteShare` stream plus current `meeting.shareStatus`. A host may start sharing before the participant can attach `meeting:startedSharingRemote`, so the current projection is required in addition to edge-triggered events. Evidence: `README.md`, `src/meeting/index.ts`.
|
|
224
|
-
|
|
225
|
-
### Migrated consumer operation map
|
|
226
|
-
|
|
227
|
-
| Consumer goal | Canonical operation family | Owning spec |
|
|
228
|
-
|---|---|---|
|
|
229
|
-
| register/unregister the device and realtime connection | `Meetings.register()` / `unregister()` lifecycle | `src/meetings/ai-docs/meetings-spec.md` |
|
|
230
|
-
| create/get/list a meeting from room, person, conversation, SIP, Locus, or active-call data | meeting discovery and collection lookup | `src/meetings/ai-docs/meetings-spec.md` |
|
|
231
|
-
| join basic, group, incoming, or PMR meetings | staged create → join → optional media | `src/meeting/ai-docs/meeting-spec.md` |
|
|
232
|
-
| acquire microphone/camera/display streams and attach/update/stop media | media-helper factories plus Meeting media operations | `src/media/ai-docs/media-spec.md` and `src/meeting/ai-docs/meeting-spec.md` |
|
|
233
|
-
| receive realtime transcripts/captions | enable receiving and consume meeting transcript events | `src/meeting/ai-docs/meeting-spec.md` |
|
|
234
|
-
| mute/unmute, share/unshare, lock/unlock, transfer host, recording, and available-action checks | Meeting/controller mutations gated by Locus capabilities | owning meeting/control specs |
|
|
235
|
-
| use a paired Webex device, move a meeting, wireless share, or reconnect media | Meeting device/media lifecycle | `src/meeting/ai-docs/meeting-spec.md` |
|
|
236
|
-
| inspect/mutate members and subscribe to roster events | Members collection/request/event surface | `src/members/ai-docs/members-spec.md` |
|
|
237
|
-
|
|
238
|
-
## Requires — what this repo depends on
|
|
239
|
-
|
|
240
|
-
The package exposes no server endpoint or CLI of its own. It calls Webex services through `@webex/webex-core` request/service abstractions; exact route construction remains in request classes rather than this catalog.
|
|
241
|
-
|
|
242
|
-
| Dependency | What is consumed | Schema / detail link | Availability assumption | Fallback on failure | Version floor |
|
|
243
|
-
|---|---|---|---|---|---|
|
|
244
|
-
| Webex SDK host | credentialed request, device, Mercury, discovery, logging, metrics | `src/index.ts`, `src/meetings/index.ts` | host initialized before meeting work | staged error/rejection; cleanup listeners | workspace version |
|
|
245
|
-
| Webex Locus and meeting services | state, discovery, lifecycle, controls | owning request classes/specs | network service may fail or reject | preserve current projection; bounded retry only where implemented | service-discovered contract |
|
|
246
|
-
| browser media and media libraries | WebRTC, streams, media-core negotiation | `src/media/`, `src/roap/`, `src/multistream/` | browser capability/permission dependent | media error and bounded recovery/rejoin | `@webex/internal-media-core` at the exact version pinned in `package.json` |
|
|
247
|
-
| workspace feature packages | identity, people/rooms, support, Voicea/LLM and helpers | `package.json` | resolved by Yarn workspace | caller-visible capability absence/error | `workspace:*` |
|
|
248
|
-
|
|
249
|
-
## Compatibility & Deprecation Policy
|
|
250
|
-
|
|
251
|
-
- Treat `src/index.ts` exports, `webex.meetings`, public `Meetings`/`Meeting` methods, event names/payloads, typed errors, and documented constants as consumer contracts.
|
|
252
|
-
- Prefer additive changes. A removal, rename, changed default, wire-value change, or altered event/error timing requires explicit approval, migration guidance, and the repository release process.
|
|
253
|
-
- Retain the privacy behavior documented since version `0.109.0`: participant email is not a roster convenience field; consumers resolve identity details through the appropriate People API.
|
|
254
|
-
- Spec and implementation changes land together; canonical specs must be reconciled before overwriting.
|
|
255
|
-
|
|
256
|
-
## Detailed Interface Docs
|
|
257
|
-
|
|
258
|
-
- Package registration/exports: `src/index.ts`
|
|
259
|
-
- Collection and lifecycle APIs: `src/meetings/index.ts`, `src/meeting/index.ts`
|
|
260
|
-
- Requests: `src/meetings/request.ts`, `src/meeting/request.ts`, and owning feature request files
|
|
261
|
-
- Constants/events: `src/constants.ts`, `src/common/events/`, feature constants/events files
|
|
262
|
-
- Consumer examples and upgrade mapping: retained `README.md` and `UPGRADING.md`
|
|
263
|
-
- Operation-level contracts: source-local module specs listed in `SPEC_INDEX.md`
|
|
264
|
-
|
|
265
|
-
## Maintenance
|
|
266
|
-
|
|
267
|
-
Update this index when a public export, event family, request family, command, or dependency boundary changes. Put detailed payload/operation behavior in the owning module spec and cite current source/test paths only.
|
package/ai-docs/DATA_MODEL.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<!-- sdd-generated-metadata
|
|
2
|
-
doc_kind: standing-doc
|
|
3
|
-
generated_from: data-model@0.2.2
|
|
4
|
-
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
-
generated_by: codex
|
|
6
|
-
approved_by: repository user
|
|
7
|
-
updated_at: 2026-08-18T15:33:39Z
|
|
8
|
-
validation_status: not-run
|
|
9
|
-
-->
|
|
10
|
-
# DATA MODEL — @webex/plugin-meetings
|
|
11
|
-
|
|
12
|
-
> The package owns client-side projections only. Remote Webex services remain authoritative.
|
|
13
|
-
|
|
14
|
-
## Entity Catalog
|
|
15
|
-
|
|
16
|
-
| Entity | Client owner | Source / lifecycle |
|
|
17
|
-
|---|---|---|
|
|
18
|
-
| meeting collection | `src/meetings/` | created from discovery/incoming events; removed on teardown |
|
|
19
|
-
| meeting | `src/meeting/` | one active/planned call; identity and state derive from meeting-info/Locus |
|
|
20
|
-
| meeting info | `src/meeting-info/` | normalized destination lookup response |
|
|
21
|
-
| Locus projection | `src/locus-info/`, `src/hashTree/` | full/delta/dataset updates from Locus |
|
|
22
|
-
| participant/member roster | `src/member/`, `src/members/` | normalized Locus participants and controls |
|
|
23
|
-
| media connection/streams/slots | `src/media/`, `src/multistream/`, `src/roap/` | browser and media-core lifecycle |
|
|
24
|
-
| feature state | owning feature controller | derived from Locus/service/data-channel updates |
|
|
25
|
-
| route/data-channel token cache | `src/interceptors/` | in-memory request middleware state |
|
|
26
|
-
|
|
27
|
-
## Relationships
|
|
28
|
-
|
|
29
|
-
```mermaid
|
|
30
|
-
erDiagram
|
|
31
|
-
MEETINGS ||--o{ MEETING : contains
|
|
32
|
-
MEETING ||--|| LOCUS_PROJECTION : observes
|
|
33
|
-
LOCUS_PROJECTION ||--o{ MEMBER : contains
|
|
34
|
-
MEETING ||--o{ MEDIA_CONNECTION : controls
|
|
35
|
-
MEDIA_CONNECTION ||--o{ REMOTE_MEDIA : exposes
|
|
36
|
-
MEETING ||--o{ FEATURE_STATE : composes
|
|
37
|
-
MEETING_INFO ||--o| MEETING : initializes
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Ownership & Access Rules
|
|
41
|
-
|
|
42
|
-
- `Meetings` is the only package component that adds/removes top-level meeting instances.
|
|
43
|
-
- `LocusInfo`/hash-tree parsing updates the shared remote-state projection; feature controllers consume derived values rather than inventing server state.
|
|
44
|
-
- `Members` owns roster collection mutation and constructs `Member` projections.
|
|
45
|
-
- Media modules own media-core connection and stream/slot objects; consumers observe them through meeting/public media surfaces.
|
|
46
|
-
- Remote mutations always go through existing request/controller methods so identity, routing, interceptors, and errors remain consistent.
|
|
47
|
-
|
|
48
|
-
## Caching
|
|
49
|
-
|
|
50
|
-
All caches are process-local and bounded by SDK, plugin, or meeting lifetime. Meeting and feature teardown invalidates associated collections, listeners, timers, tokens, and media references. No durable cache or migration mechanism exists in this package.
|
|
51
|
-
|
|
52
|
-
## Migration Discipline
|
|
53
|
-
|
|
54
|
-
There is no database schema. Changes to public TypeScript shapes, event payloads, constants/wire values, and normalized Locus/member/media projections are contract migrations: make additive changes when possible, update parsers and tests together, and document consumer transitions before removals.
|
|
55
|
-
|
|
56
|
-
## Sensitive Data
|
|
57
|
-
|
|
58
|
-
- Treat credentials, route/data-channel tokens, meeting URLs/passwords, device identity, participant identity, transcripts, captions, media, and diagnostic payloads as sensitive.
|
|
59
|
-
- Do not restore participant email as a convenience field; consumer documentation directs identity lookup through the People API.
|
|
60
|
-
- Keep sensitive projections in memory only for their operational lifetime and exclude them from logs/metric tags.
|
|
61
|
-
|
|
62
|
-
## Maintenance
|
|
63
|
-
|
|
64
|
-
Update this document when entity ownership, cache lifetime, or sensitive-data handling changes. Field-level details belong in source types and owning module specs.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<!-- sdd-generated-metadata
|
|
2
|
-
doc_kind: standing-doc
|
|
3
|
-
generated_from: getting-started@0.2.2
|
|
4
|
-
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
-
generated_by: codex
|
|
6
|
-
approved_by: repository user
|
|
7
|
-
updated_at: 2026-08-18T15:33:39Z
|
|
8
|
-
validation_status: not-run
|
|
9
|
-
-->
|
|
10
|
-
# GETTING STARTED — @webex/plugin-meetings
|
|
11
|
-
|
|
12
|
-
## Prerequisites
|
|
13
|
-
|
|
14
|
-
- Use Node.js `22.14` for this repository (`nvm use 22.14`) and the repository Yarn version.
|
|
15
|
-
- Install from the repository root with `yarn install`.
|
|
16
|
-
- Unit work is local/mocked. Browser or integration flows can require Webex test users, remote services, media permissions, and environment credentials; never commit these values.
|
|
17
|
-
|
|
18
|
-
## Clone & Install
|
|
19
|
-
|
|
20
|
-
From the repository root:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
nvm use 22.14
|
|
24
|
-
yarn install
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
The retained `internal-README.md` contains historical branch, npm, sample, and Sauce Labs instructions. Current root configuration and package scripts take precedence where those instructions differ.
|
|
28
|
-
|
|
29
|
-
## Build / Run / Test
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
yarn workspace @webex/plugin-meetings build:src
|
|
33
|
-
yarn workspace @webex/plugin-meetings test:style
|
|
34
|
-
yarn workspace @webex/plugin-meetings test:unit
|
|
35
|
-
yarn workspace @webex/plugin-meetings test:unit --targets meeting/brbState.ts
|
|
36
|
-
yarn workspace @webex/plugin-meetings test:browser
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
`--targets` is relative to `test/unit/spec/` for unit tests. The package is a library, not a standalone service; sample applications elsewhere in the repository host it.
|
|
40
|
-
|
|
41
|
-
## First-Run Verification
|
|
42
|
-
|
|
43
|
-
1. Confirm `node --version` reports the repository-required runtime.
|
|
44
|
-
2. Build the package.
|
|
45
|
-
3. Run the smallest mirrored unit-test target for the module you will change.
|
|
46
|
-
4. Run lint on the package.
|
|
47
|
-
5. Before finishing, confirm no temporary Mocha `.only` remains.
|
|
48
|
-
|
|
49
|
-
## Configuration & Secrets
|
|
50
|
-
|
|
51
|
-
- Environment files and CI/test credentials are local/managed inputs. Never add credentials, Webex user secrets, Sauce Labs keys, or tokens to source control.
|
|
52
|
-
- npm/workspace resolution is controlled by repository configuration and `package.json`; do not replace workspace dependencies with ad-hoc source paths.
|
|
53
|
-
- Public consumption is through `@webex/plugin-meetings`; local development normally uses the workspace build rather than publishing.
|
|
54
|
-
|
|
55
|
-
## Multi-Repo Workspace Layout
|
|
56
|
-
|
|
57
|
-
This package lives at `packages/@webex/plugin-meetings/` inside the `webex-js-sdk` monorepo. Shared packages are resolved through Yarn workspaces. Run package-scoped commands from the repository root and avoid modifying neighboring packages unless the approved task requires their contract.
|
|
58
|
-
|
|
59
|
-
## Dev Environment
|
|
60
|
-
|
|
61
|
-
- Source is under `src/`; unit tests mirror it under `test/unit/spec/`.
|
|
62
|
-
- Browser/integration tests live under `test/integration/spec/` and use the package test runner.
|
|
63
|
-
- Build output is `dist/`; do not hand-edit generated output.
|
|
64
|
-
- Use Sinon for mocks/stubs and assertions from `@webex/test-helper-chai`. Prefer `calledOnceWithExactly`, fake timers for time, and parameterized tests for more than three similar cases.
|
|
65
|
-
|
|
66
|
-
## Where to Go Next
|
|
67
|
-
|
|
68
|
-
- Orientation and rules: `../AGENTS.md`
|
|
69
|
-
- Module routing: `SPEC_INDEX.md`
|
|
70
|
-
- Architecture: `ARCHITECTURE.md`
|
|
71
|
-
- Tests: `TEST_INDEX.md`
|
|
72
|
-
- Public/event boundaries: `CONTRACTS.md`
|
|
73
|
-
- Retained consumer examples: `../README.md` and `../UPGRADING.md`
|