@webex/plugin-team-memberships 3.13.0-next.4 → 3.13.0-next.5
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 +422 -0
- package/.sdd/manifest.json +364 -0
- package/AGENTS.md +207 -0
- package/dist/team-memberships.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +99 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +216 -0
- package/docs/getting-started.md +126 -0
- package/docs/index.md +43 -0
- package/docs/specs/README.md +68 -0
- package/package.json +6 -6
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +322 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: adr-index@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rarajes2@cisco.com
|
|
6
|
+
updated_at: 2026-11-12T17:50:02Z
|
|
7
|
+
validation_status: pass
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions affecting this package and its documentation.
|
|
13
|
+
Add a concrete ADR (for example, `0042-cache-policy.md`) when a decision is non-obvious, hard to
|
|
14
|
+
reverse, or worth explaining to a future contributor. Do not edit an accepted decision in place when
|
|
15
|
+
its outcome changes; supersede it with a new ADR and link both records.
|
|
16
|
+
|
|
17
|
+
## Index
|
|
18
|
+
|
|
19
|
+
- [ADR-0001 - Retain the product README](0001-retain-product-readme.md) — accepted 2026-11-12
|
|
20
|
+
|
|
21
|
+
Add new entries as ADRs are accepted. Keep this list in numeric order.
|
|
22
|
+
|
|
23
|
+
Each ADR should state its context, decision, alternatives, consequences, and the condition that would
|
|
24
|
+
cause the team to revisit it. Record the deciders, any superseded decision, and the constraint future
|
|
25
|
+
changes must preserve.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: '@webex/plugin-team-memberships architecture'
|
|
4
|
+
description: Package-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture.
|
|
5
|
+
tags: [architecture]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: architecture@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T17:50:02Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# @webex/plugin-team-memberships architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Flow behavior lives in the
|
|
19
|
+
[Team Memberships plugin specification](../src/docs/README.md). This page owns package boundaries, the
|
|
20
|
+
plugin registration, the contract index, and how the package meets the rest of the SDK.
|
|
21
|
+
|
|
22
|
+
Related context: [specification registry](specs/README.md) ·
|
|
23
|
+
[package agent instructions](../AGENTS.md)
|
|
24
|
+
|
|
25
|
+
## Applicability
|
|
26
|
+
|
|
27
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
28
|
+
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
29
|
+
| `repo.owns_datastore` | N/A | No database, file store, or migration in `src/team-memberships.js` | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | N/A | `src/team-memberships.js` sets no instance property and caches no record | Client state model |
|
|
31
|
+
| `repo.components_interact` | Applicable | `src/index.js` registers the class from `src/team-memberships.js`, which extends the webex-core plugin base | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | Applicable | Team membership records pass from Hydra through `src/team-memberships.js` to callers | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | N/A | Nothing is kept after a call settles in `src/team-memberships.js` | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | N/A | `src/team-memberships.js` logs nothing and emits no metric or trace | Observability patterns |
|
|
35
|
+
| `repo.deploys_to_infra` | N/A | Library published to npm (`package.json`). No service runtime | Runtime and infrastructure |
|
|
36
|
+
| `repo.shared_base_libs` | Applicable | Extends WebexPlugin and uses the legacy build and lint stack (`babel.config.js`, `.eslintrc.js`) | Shared and base libraries |
|
|
37
|
+
| `repo.is_monorepo` | N/A | This SDD root is one package. The workspace around it is out of scope | Package map and inter-package dependencies |
|
|
38
|
+
| `repo.multi_platform` | N/A | `src/team-memberships.js` has no platform branch; `process` declares {browser: true} and is not imported | Platform matrix |
|
|
39
|
+
| `repo.published_package` | Applicable | `package.json` name is @webex/plugin-team-memberships and deploy:npm publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API in `src/team-memberships.js` | Host integration and theming |
|
|
41
|
+
| `repo.exposes_commands_or_artifacts` | Applicable | build:src in `package.json` writes dist | Commands and generated artifacts |
|
|
42
|
+
| `repo.cross_repo_deps_material` | Applicable | Behavior depends on the Webex REST API team memberships resource (`src/team-memberships.js`) | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | Person emails, person ids, and team ids pass through `src/team-memberships.js` with the SDK authorization | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`@webex/plugin-team-memberships` is a published JavaScript library with one module. Importing it
|
|
48
|
+
registers `TeamMemberships` as the public plugin `teamMemberships`, reached as
|
|
49
|
+
`webex.teamMemberships`. The `webex` and `webex-node` bundles import it to register it; no other
|
|
50
|
+
workspace package calls it from its source.
|
|
51
|
+
|
|
52
|
+
A team membership is a person's relationship to a Webex team, served to applications by the
|
|
53
|
+
`team/memberships` resource of the Webex REST API, which the SDK reaches as catalog service `hydra`.
|
|
54
|
+
The plugin adds a person to a team (by person id or email, optionally as a moderator), reads and lists
|
|
55
|
+
memberships, changes a membership's moderator flag, and removes a person from a team. Each method is
|
|
56
|
+
one request that passes the caller's object to the service and the service's answer back.
|
|
57
|
+
|
|
58
|
+
The package serves no routes, caches nothing, persists nothing, and logs nothing.
|
|
59
|
+
|
|
60
|
+
## Resource inventory and responsibilities
|
|
61
|
+
|
|
62
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
63
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
64
|
+
| Team Memberships plugin | package (one module) | Registration; team membership records | @webex/web-sdk | src | [`src/docs/README.md`](../src/docs/README.md) |
|
|
65
|
+
|
|
66
|
+
## Interaction and execution flows
|
|
67
|
+
|
|
68
|
+
Representative end-to-end flow: an application adds a person to a team, lists the team's members page
|
|
69
|
+
by page, and later removes the person.
|
|
70
|
+
|
|
71
|
+
```mermaid
|
|
72
|
+
flowchart LR
|
|
73
|
+
App[application] -->|create, get, list, update, remove| Plugin[webex.teamMemberships]
|
|
74
|
+
Plugin -->|request, service hydra| Core[webex-core request pipeline]
|
|
75
|
+
Core -->|team/memberships requests| Hydra[Webex REST API team memberships]
|
|
76
|
+
Plugin -->|list result| Page[webex-core Page]
|
|
77
|
+
Page -->|next, previous| Core
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
81
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
82
|
+
| Application | `webex.teamMemberships` | In-process calls | Team membership records | Rejections propagate; a missing argument throws |
|
|
83
|
+
| `TeamMemberships` | Webex REST API | HTTPS through `webex.request`, service `hydra` | Team membership records | No retry here |
|
|
84
|
+
| `TeamMemberships` | webex-core `Page` | `new Page(res, webex)` | Paging of `list` | Page requests reject on failure |
|
|
85
|
+
|
|
86
|
+
## Dependency topology
|
|
87
|
+
|
|
88
|
+
| Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
|
|
89
|
+
| ---------- | ---- | ------- | ------- | ------------------------------------ |
|
|
90
|
+
| `@webex/webex-core` | Internal | `src/index.js`, `src/team-memberships.js` | Registration, plugin base, `Page`, `webex.request` | `workspace:*` in `package.json` |
|
|
91
|
+
| `@webex/internal-plugin-device` | Internal | The integration spec only | Registers `webex.internal.device` for the live tests | `workspace:*` dependency; not imported by `src/` |
|
|
92
|
+
| `@webex/plugin-teams`, `@webex/plugin-rooms`, `@webex/plugin-logger` | Internal peer | The integration spec only | Team and room setup and the logger for the live tests | Peer dependencies; not imported by `src/` |
|
|
93
|
+
| Webex REST API team memberships resource | External service | `src/team-memberships.js` | Team membership records | Resolved through the service catalog |
|
|
94
|
+
|
|
95
|
+
No import cycle exists: `@webex/webex-core` does not import this package.
|
|
96
|
+
|
|
97
|
+
## Public and consumer surfaces
|
|
98
|
+
|
|
99
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
100
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
101
|
+
| `team-memberships-public-sdk` — package @webex/plugin-team-memberships, `webex.teamMemberships` with its five methods | SDK, published to npm, public | Team Memberships plugin | `webex`, `webex-node` (registration); applications (calls) | No versioning or deprecation rule is declared in the package | `package.json`, `src/index.js`, `src/team-memberships.js` |
|
|
102
|
+
|
|
103
|
+
The team memberships requests are a protocol this package speaks, described under *Protocol and wire
|
|
104
|
+
format* in the [module specification](../src/docs/README.md#protocol-and-wire-format). The other
|
|
105
|
+
contracts this package requires are registered in `.sdd/manifest.json` `contract_catalog`.
|
|
106
|
+
|
|
107
|
+
## Cross-cutting architecture
|
|
108
|
+
|
|
109
|
+
### Security
|
|
110
|
+
|
|
111
|
+
- Trust boundaries, scopes, and identity flow: see [Security architecture](#security-architecture).
|
|
112
|
+
- Sensitive surfaces and data classes: person emails, person and team ids, and the moderator flag.
|
|
113
|
+
|
|
114
|
+
### Observability and operations
|
|
115
|
+
|
|
116
|
+
- Logging and correlation: the package logs nothing. Request tracking comes from the webex-core
|
|
117
|
+
interceptors.
|
|
118
|
+
- Metrics, traces, and audit signals: none.
|
|
119
|
+
- Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root has no line for
|
|
120
|
+
this package, so its default `*` rule assigns it to `@webex/web-sdk`. No dashboards or runbooks are
|
|
121
|
+
recorded in this package.
|
|
122
|
+
|
|
123
|
+
### Quality attributes
|
|
124
|
+
|
|
125
|
+
- Compatibility: callers rely on the registered name `teamMemberships`, the Hydra team membership
|
|
126
|
+
object, `list()` resolving a `Page`, and `remove` resolving `undefined` on 204.
|
|
127
|
+
- Latency: one request per call; `list` returns one page at a time, sized by `max`.
|
|
128
|
+
- Test confidence: the package has no unit tests, and the integration spec is not run by any script.
|
|
129
|
+
No coverage threshold is enforced.
|
|
130
|
+
|
|
131
|
+
## Dependency and interaction topology
|
|
132
|
+
|
|
133
|
+
```mermaid
|
|
134
|
+
flowchart LR
|
|
135
|
+
Index[src/index.js] -->|registerPlugin teamMemberships| Core[webex-core]
|
|
136
|
+
Index --> TM[src/team-memberships.js]
|
|
137
|
+
TM -->|WebexPlugin, Page, request| Core
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
| From | To | Kind | Purpose | Ordering or failure boundary |
|
|
141
|
+
| ---- | -- | ---- | ------- | ---------------------------- |
|
|
142
|
+
| `src/index.js` | webex-core | Call at import | Register `teamMemberships` | First registration wins |
|
|
143
|
+
| `src/team-memberships.js` | webex-core | Import and inheritance | Plugin base, `request`, `Page` | Request errors reject the method |
|
|
144
|
+
|
|
145
|
+
## Object and data ownership
|
|
146
|
+
|
|
147
|
+
| Object or state | System of record | May write | May read | Movement or lifecycle |
|
|
148
|
+
| --------------- | ---------------- | --------- | -------- | --------------------- |
|
|
149
|
+
| Team membership (`id`, `teamId`, `personId`, `personEmail`, `isModerator`, `created`) | Webex REST API | Callers, through `create`, `update`, `remove` | Callers, through `get` and `list` | Fetched per call; never kept here |
|
|
150
|
+
|
|
151
|
+
## Shared and base libraries
|
|
152
|
+
|
|
153
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
154
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
155
|
+
| `@webex/webex-core` `WebexPlugin` | `webex` and `request` | `TeamMemberships` | `workspace:*` | Keep the registered name `teamMemberships` |
|
|
156
|
+
| `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy`, `@webex/legacy-tools` | Build, lint, and test stack through one-line config files | Package tooling | `workspace:*` | Do not fork the config locally |
|
|
157
|
+
|
|
158
|
+
## Release and versioning
|
|
159
|
+
|
|
160
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
161
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
162
|
+
| @webex/plugin-team-memberships | npm through `deploy:npm` | None declared in the package | None declared | None declared in the package; the workspace owns changelog generation |
|
|
163
|
+
|
|
164
|
+
## Commands and generated artifacts
|
|
165
|
+
|
|
166
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
167
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
168
|
+
| `yarn build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
169
|
+
| `yarn build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
170
|
+
| `yarn test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
171
|
+
|
|
172
|
+
## Cross-repository topology
|
|
173
|
+
|
|
174
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
175
|
+
| ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
|
|
176
|
+
| `@webex/webex-core` (workspace sibling; module spec consulted) | Consumes | `registerPlugin`, `WebexPlugin`, `Page`, `request` | @webex/web-sdk | Registered before the first instance |
|
|
177
|
+
| `webex`, `webex-node` (workspace siblings) | Consumed by | The plugin registration | @webex/web-sdk | None |
|
|
178
|
+
| `@webex/plugin-teams`, `@webex/plugin-rooms` (workspace siblings; teams code and rooms spec consulted) | Test setup only | `teams.create`, `rooms.create` in the integration spec | @webex/web-sdk (teams); @webex/web-client and @webex/web-sdk (rooms) | None |
|
|
179
|
+
| Webex REST API team memberships resource | Consumes | Team membership records | Not recorded in this repository | None |
|
|
180
|
+
|
|
181
|
+
## Security architecture
|
|
182
|
+
|
|
183
|
+
```mermaid
|
|
184
|
+
flowchart LR
|
|
185
|
+
Caller[caller] -->|membership bodies, ids, options| Plugin[webex.teamMemberships]
|
|
186
|
+
Plugin -->|SDK token| Hydra[Webex REST API]
|
|
187
|
+
Hydra -->|team membership records| Plugin
|
|
188
|
+
Plugin -->|records| Caller
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- This package holds no credential and no key. Every request carries the SDK authorization added by
|
|
192
|
+
webex-core. Neither the package nor its README names the OAuth scopes the team memberships resource
|
|
193
|
+
needs.
|
|
194
|
+
- Membership ids go into request paths, options into query strings, and membership objects, with
|
|
195
|
+
person emails, into request bodies. Logging is described under
|
|
196
|
+
[Observability and operations](#observability-and-operations).
|
|
197
|
+
- What a caller may see or change is decided by the service for the authorized user: the JSDoc says the
|
|
198
|
+
user must be a member of a team to list its memberships or invite people. The package passes records
|
|
199
|
+
through and keeps no copy.
|
|
200
|
+
|
|
201
|
+
## Domain language
|
|
202
|
+
|
|
203
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
204
|
+
| ---- | --------------------------- | -------------------- |
|
|
205
|
+
| Team | A Webex group of rooms and people; created through `@webex/plugin-teams` | `src/team-memberships.js` |
|
|
206
|
+
| Team membership | A person's relationship to a team, with a moderator flag | `src/team-memberships.js` |
|
|
207
|
+
| Moderator | A team member whose `isModerator` is `true` | `src/team-memberships.js` |
|
|
208
|
+
| Hydra | The Webex REST API, reached as catalog service `hydra` | `src/team-memberships.js` |
|
|
209
|
+
|
|
210
|
+
## References and maintenance
|
|
211
|
+
|
|
212
|
+
- Decisions: [adr/](adr/index.md)
|
|
213
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
214
|
+
- Repository rules and patterns: [package agent instructions](../AGENTS.md)
|
|
215
|
+
- Update this document in the same change that alters package boundaries, resource ownership,
|
|
216
|
+
cross-resource interaction, or cross-cutting architecture.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for @webex/plugin-team-memberships.
|
|
5
|
+
tags: [onboarding]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: getting-started@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T17:50:02Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/plugin-team-memberships**, a package inside the `webex-js-sdk` Yarn
|
|
19
|
+
workspace. Run `yarn` and `yarn prebuild:modules` at the workspace root, and the package scripts from
|
|
20
|
+
this package directory, `packages/@webex/plugin-team-memberships`, where `package.json` defines them.
|
|
21
|
+
From the workspace root, `yarn workspace @webex/plugin-team-memberships <script>` runs the same script.
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
| Tool or access | Version or requirement |
|
|
26
|
+
| -------------- | ---------------------- |
|
|
27
|
+
| Node.js | Use 22.14: the workspace root `AGENTS.md` requires it and the workspace `.nvmrc` selects `lts/jod` (Node 22). This package's `engines` accepts `>=18`. The workspace root `package.json` `engines.node` reads `18.x`, which conflicts with the other pins; the build and lint pass on 22.14 |
|
|
28
|
+
| Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
|
|
29
|
+
| Registry or account access | N/A for building and linting |
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
yarn
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The workspace `deploy.yml` workflow installs with the same command.
|
|
38
|
+
|
|
39
|
+
On a fresh checkout, prebuild the workspace before the first package build. `yarn` does not build
|
|
40
|
+
`@webex/legacy-tools`, whose `webex-legacy-tools` binary runs this package's build, or the sibling
|
|
41
|
+
packages' `dist/`:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
yarn prebuild:modules
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
It runs `yarn`, then builds the tools, the legacy tools, `@webex/webex-core`, and every package, in
|
|
48
|
+
that order (root `package.json`; see the workspace `CONTRIBUTING.md` "Prebuilding").
|
|
49
|
+
|
|
50
|
+
## Build
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
yarn build:src
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`build:src` writes JavaScript and source maps for the two source files to `dist/` through
|
|
57
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `yarn build:src`; the package
|
|
58
|
+
emits no type declarations.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
yarn build
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Run
|
|
65
|
+
|
|
66
|
+
N/A — this is a library with no start script. Importing `@webex/plugin-team-memberships` registers
|
|
67
|
+
`webex.teamMemberships`.
|
|
68
|
+
|
|
69
|
+
## Tests
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
yarn test:style
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
76
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
77
|
+
| Unit | N/A — `package.json` defines no `test:unit` script | none | N/A | N/A |
|
|
78
|
+
|
|
79
|
+
`test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
|
|
80
|
+
|
|
81
|
+
- Coverage or quality gate: none; the package defines no unit test, no coverage script, and the legacy
|
|
82
|
+
Jest configuration it re-exports sets no threshold
|
|
83
|
+
- Enforcement source: N/A
|
|
84
|
+
- Test environment or QA dependencies: none for lint
|
|
85
|
+
|
|
86
|
+
This package has no unit tests: `package.json` defines no `test:unit` script and there is no
|
|
87
|
+
`test/unit` directory. Add both together when you add the first unit case; sibling legacy packages
|
|
88
|
+
define `test:unit` as `webex-legacy-tools test --unit --runner jest`.
|
|
89
|
+
|
|
90
|
+
`yarn test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
91
|
+
--runner karma` over `test/integration/spec/team-memberships.js`, whose 8 cases create test users, a
|
|
92
|
+
team, and a team room and call the live services. On 2026-11-12 under Node 22.14 the karma bundle
|
|
93
|
+
failed to parse `isbot` (an ES module in the workspace `node_modules`), so the run reported a bundle
|
|
94
|
+
error in Chrome and Firefox headless, ran no case, and still exited zero. It is not listed in the table
|
|
95
|
+
above because it verifies nothing today, and its exit code is not a test result.
|
|
96
|
+
|
|
97
|
+
Do not run the aggregate `test` script in `package.json`. It runs `test:style`, then exits 1 with
|
|
98
|
+
`Couldn't find a script named "test:unit"` (checked 2026-11-12); it would also call
|
|
99
|
+
`test:integration`, which this package does not define either. It is deliberately not a manifest
|
|
100
|
+
command; run the commands above instead.
|
|
101
|
+
|
|
102
|
+
## Configuration and secrets
|
|
103
|
+
|
|
104
|
+
- Required configuration: none. The plugin registers no config of its own
|
|
105
|
+
- Environment overrides: none read by this package
|
|
106
|
+
- Secret source: N/A; the package holds no secret
|
|
107
|
+
- Package or artifact access: N/A
|
|
108
|
+
- Required neighboring packages: `@webex/webex-core` resolves through the workspace; the integration
|
|
109
|
+
spec also needs `@webex/internal-plugin-device`, `@webex/plugin-logger`, `@webex/plugin-rooms`, and
|
|
110
|
+
`@webex/plugin-teams`, which `src/` does not import
|
|
111
|
+
- Platform, simulator, device, or SDK setup: none
|
|
112
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
113
|
+
|
|
114
|
+
## First-run verification
|
|
115
|
+
|
|
116
|
+
1. Run `yarn build:src` and check that it reports `Built plugin-team-memberships: 2 files`.
|
|
117
|
+
2. Run `yarn test:style`.
|
|
118
|
+
|
|
119
|
+
Expected result: both commands exit zero. `test:style` reports no warning or error in `src/`; it prints
|
|
120
|
+
"File ignored" for `src/docs/README.md`.
|
|
121
|
+
|
|
122
|
+
## Next steps
|
|
123
|
+
|
|
124
|
+
- [Package architecture](architecture.md)
|
|
125
|
+
- [Specification registry](specs/README.md)
|
|
126
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
okf_version: '0.1'
|
|
3
|
+
---
|
|
4
|
+
<!-- sdd-generated-metadata
|
|
5
|
+
doc_kind: standing-doc
|
|
6
|
+
generated_from: docs-index@0.3.0
|
|
7
|
+
generated_by: claude-code
|
|
8
|
+
approved_by: rarajes2@cisco.com
|
|
9
|
+
updated_at: 2026-11-12T17:50:02Z
|
|
10
|
+
validation_status: pass
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/plugin-team-memberships documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the Team Memberships plugin.
|
|
16
|
+
|
|
17
|
+
## Start here
|
|
18
|
+
|
|
19
|
+
- [Getting started](getting-started.md)
|
|
20
|
+
- [Package architecture](architecture.md)
|
|
21
|
+
|
|
22
|
+
## Decisions
|
|
23
|
+
|
|
24
|
+
- [adr/](adr/index.md) — architectural decision records
|
|
25
|
+
|
|
26
|
+
## Specifications and contracts
|
|
27
|
+
|
|
28
|
+
- [architecture.md](architecture.md) — canonical package architecture and contract index
|
|
29
|
+
- [specs/README.md](specs/README.md) — manifest-backed module and contract registry
|
|
30
|
+
- [`src/docs/README.md`](../src/docs/README.md) — the Team Memberships plugin specification beside its
|
|
31
|
+
code
|
|
32
|
+
- [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
|
|
33
|
+
monorepo root `.sdd/`
|
|
34
|
+
|
|
35
|
+
This package is a library, so there is no service specification and no OpenAPI document. Exact
|
|
36
|
+
contract details live in the native sources linked from the architecture index: `package.json` and
|
|
37
|
+
`src/index.js` for the package and its registration, and `src/team-memberships.js` for the API.
|
|
38
|
+
|
|
39
|
+
## Related repository resources
|
|
40
|
+
|
|
41
|
+
- [`README.md`](../README.md) — retained npm page; context only, its Usage block is not valid
|
|
42
|
+
JavaScript, see [ADR-0001](adr/0001-retain-product-readme.md)
|
|
43
|
+
- [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Reference
|
|
3
|
+
title: Specification registry
|
|
4
|
+
description: Canonical specification registry and change-routing guide.
|
|
5
|
+
tags: [specifications, registry]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: standing-doc
|
|
9
|
+
generated_from: spec-index@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T17:50:02Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Specification registry
|
|
17
|
+
|
|
18
|
+
Use this page to find the canonical package architecture and every instantiated module specification
|
|
19
|
+
plus native contract. Keep technical facts in one owning document and use this page only for
|
|
20
|
+
navigation, ownership, status, and change/test routing.
|
|
21
|
+
|
|
22
|
+
Start with the [package architecture](../architecture.md). No service specification exists because this
|
|
23
|
+
package is a library.
|
|
24
|
+
|
|
25
|
+
## Document roles
|
|
26
|
+
|
|
27
|
+
| Document | Canonical ownership |
|
|
28
|
+
| -------- | ------------------- |
|
|
29
|
+
| [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, and cross-cutting architecture |
|
|
30
|
+
| Module specifications | Stable behavior and design at each manifest-routed `<module-path>/docs/README.md` |
|
|
31
|
+
| [ADR](../adr/index.md) | A durable decision, its deciders, rationale, consequences, and supersession lineage |
|
|
32
|
+
|
|
33
|
+
## Instantiated specification registry
|
|
34
|
+
|
|
35
|
+
| Resource | Role | Canonical path | Owner | Status | Last verified |
|
|
36
|
+
| -------- | ---- | -------------- | ----- | ------ | ------------- |
|
|
37
|
+
| Package | Architecture | `docs/architecture.md` | @webex/web-sdk | Draft | 2026-11-12 |
|
|
38
|
+
| Team Memberships plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-11-12 |
|
|
39
|
+
| Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-sdk | Accepted | 2026-11-12 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | `webex.teamMemberships`: add a person to a team, read, list, update, and remove team memberships through Hydra | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement is complete (100%, assessed 2026-11-12). Independent semantic
|
|
48
|
+
validation passed on 2026-11-12 under validator runtime 01a1d0de-3a7e-7e50-a7bb-141639802749, with no findings. The module
|
|
49
|
+
remains Partial pending a unit suite, a characterization baseline, and promotion review.
|
|
50
|
+
|
|
51
|
+
## Change and verification routing
|
|
52
|
+
|
|
53
|
+
| Change affects | Load and update | Verification route |
|
|
54
|
+
| -------------- | --------------- | ------------------ |
|
|
55
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn build:src` and `test:style`, and the module spec |
|
|
56
|
+
| A stable code, package, or component boundary | `src/docs/README.md` | Build and lint |
|
|
57
|
+
| A public method, request path, result handling, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/team-memberships.js`, `src/index.js`, or `package.json` | Build and lint; add a `test/unit/spec` case and a `test:unit` script for the changed path, since the package has no unit tests and the integration spec is not run |
|
|
58
|
+
|
|
59
|
+
## Module and contract registration
|
|
60
|
+
|
|
61
|
+
The module specification is generated at the exact `modules[].canonical_spec` path recorded in
|
|
62
|
+
`.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
|
|
63
|
+
order.
|
|
64
|
+
|
|
65
|
+
Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
|
|
66
|
+
[`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
|
|
67
|
+
state, native source, and owning module. This page provides navigation and ownership rather than a copied
|
|
68
|
+
contract.
|
package/package.json
CHANGED
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"sinon": "^9.2.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@webex/internal-plugin-device": "3.13.0-next.
|
|
37
|
-
"@webex/webex-core": "3.13.0-next.
|
|
36
|
+
"@webex/internal-plugin-device": "3.13.0-next.5",
|
|
37
|
+
"@webex/webex-core": "3.13.0-next.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@webex/plugin-logger": "3.13.0-next.
|
|
41
|
-
"@webex/plugin-rooms": "3.13.0-next.
|
|
42
|
-
"@webex/plugin-teams": "3.13.0-next.
|
|
40
|
+
"@webex/plugin-logger": "3.13.0-next.5",
|
|
41
|
+
"@webex/plugin-rooms": "3.13.0-next.9",
|
|
42
|
+
"@webex/plugin-teams": "3.13.0-next.5"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "yarn build:src",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"test:browser": "webex-legacy-tools test --integration --runner karma",
|
|
50
50
|
"test:style": "eslint ./src/**/*.*"
|
|
51
51
|
},
|
|
52
|
-
"version": "3.13.0-next.
|
|
52
|
+
"version": "3.13.0-next.5"
|
|
53
53
|
}
|