@webex/plugin-webhooks 3.13.0-next.4 → 3.13.0-next.6
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 +421 -0
- package/.sdd/manifest.json +357 -0
- package/AGENTS.md +208 -0
- package/dist/webhooks.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +96 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +234 -0
- package/docs/getting-started.md +117 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +68 -0
- package/package.json +9 -9
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +313 -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-13T02:40:15Z
|
|
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-13
|
|
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,234 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: '@webex/plugin-webhooks 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-13T02:40:15Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# @webex/plugin-webhooks architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Flow behavior lives in the
|
|
19
|
+
[Webhooks plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
|
|
20
|
+
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/webhooks.js` | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | N/A | `src/webhooks.js` sets no instance property and caches no webhook record | Client state model |
|
|
31
|
+
| `repo.components_interact` | Applicable | `src/index.js` imports `src/webhooks.js` and registers it through webex-core, whose request and Page the plugin calls | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | Applicable | Webhook records pass from Hydra through webex-core and `src/webhooks.js` to callers | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | N/A | Nothing is kept after a call settles in `src/webhooks.js` | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | N/A | `src/webhooks.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/webhooks.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-webhooks and deploy:npm publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API in `src/webhooks.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 webhooks resource (`src/webhooks.js`) | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | A webhook created through `src/webhooks.js` makes the service send Webex event data to a caller-chosen targetUrl outside the SDK, and the plugin checks neither the URL nor the filter | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`@webex/plugin-webhooks` is a published JavaScript library with one module. Importing it registers
|
|
48
|
+
`Webhooks` as the public plugin `webhooks`, reached as `webex.webhooks`. The `webex` and `webex-node`
|
|
49
|
+
bundles require it to register it; no other workspace package calls it from its source or tests.
|
|
50
|
+
|
|
51
|
+
A webhook is a registration held by the Webex REST API: it names a `resource` (for example
|
|
52
|
+
`messages`), an `event` (for example `created`), a `filter` that scopes it (for example
|
|
53
|
+
`roomId=<id>`), and a `targetUrl`. When a matching event happens, the service sends an HTTP POST to
|
|
54
|
+
that URL. The SDK reaches the `webhooks` resource as catalog service `hydra`. The plugin offers five
|
|
55
|
+
calls on that resource — create, get, list, remove, and update — and returns what the service answers.
|
|
56
|
+
|
|
57
|
+
The package serves no routes and never receives the event deliveries: those go from the service to the
|
|
58
|
+
caller's own server. It caches nothing, persists nothing, and emits no SDK events.
|
|
59
|
+
|
|
60
|
+
## Resource inventory and responsibilities
|
|
61
|
+
|
|
62
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
63
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
64
|
+
| Webhooks plugin | package (one module) | Registration; webhook 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 registers a webhook for new messages in a room, lists
|
|
69
|
+
its webhooks page by page, and removes the webhook; meanwhile the service delivers events to the
|
|
70
|
+
target URL.
|
|
71
|
+
|
|
72
|
+
```mermaid
|
|
73
|
+
flowchart LR
|
|
74
|
+
App[application] -->|create, get, list, update, remove| Plugin[webex.webhooks]
|
|
75
|
+
Plugin -->|request service hydra| Core[webex-core request]
|
|
76
|
+
Core -->|HTTPS| Hydra[Webex REST API webhooks]
|
|
77
|
+
Plugin -->|new Page| Page[webex-core Page]
|
|
78
|
+
App -->|next, previous| Page
|
|
79
|
+
Page -->|request linked URL| Core
|
|
80
|
+
Hydra -.->|POST per event, outside the SDK| Target[caller server at targetUrl]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
84
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
85
|
+
| Application | `webex.webhooks` | In-process calls | Webhook records | Rejections propagate; a missing argument to `get`, `remove`, or `update` throws |
|
|
86
|
+
| `Webhooks` | Webex REST API | HTTPS through `webex.request`, service `hydra` | Webhook records | No retry here |
|
|
87
|
+
| Application | webex-core `Page` | `next()`, `previous()`, iteration | Further pages of `list` | Rejections propagate |
|
|
88
|
+
| Webex REST API | Caller's server at `targetUrl` | HTTP POST per matching event | Event delivery | Not seen by this package |
|
|
89
|
+
|
|
90
|
+
## Dependency topology
|
|
91
|
+
|
|
92
|
+
| Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
|
|
93
|
+
| ---------- | ---- | ------- | ------- | ------------------------------------ |
|
|
94
|
+
| `@webex/webex-core` | Internal | `src/index.js`, `src/webhooks.js` | Registration, plugin base, `Page`, `webex.request` | `workspace:*` in `package.json` |
|
|
95
|
+
| `@webex/internal-plugin-device` | Internal | The integration spec only | Declared in `dependencies` but not imported by `src/` | `workspace:*` |
|
|
96
|
+
| `@webex/plugin-rooms`, `@webex/plugin-logger` | Internal peer | The integration spec only | The room its webhooks filter on | Peer dependencies; not reached by `src/` |
|
|
97
|
+
| Webex REST API webhooks resource | External service | `src/webhooks.js` | Webhook records and event delivery | Resolved through the service catalog |
|
|
98
|
+
|
|
99
|
+
No import cycle exists: `@webex/webex-core` does not import this package.
|
|
100
|
+
|
|
101
|
+
## Public and consumer surfaces
|
|
102
|
+
|
|
103
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
104
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
105
|
+
| `webhooks-public-sdk` — package @webex/plugin-webhooks, `webex.webhooks` with its five methods | SDK, published to npm, public | Webhooks plugin | `webex`, `webex-node` (registration); applications (calls) | No versioning or deprecation rule is declared in the package | `package.json`, `src/index.js`, `src/webhooks.js` |
|
|
106
|
+
|
|
107
|
+
The webhooks requests and the webhook object are a protocol this package speaks, described under
|
|
108
|
+
*Protocol and wire format* in the
|
|
109
|
+
[module specification](../src/docs/README.md#protocol-and-wire-format). The other contracts this
|
|
110
|
+
package requires are registered in `.sdd/manifest.json` `contract_catalog`.
|
|
111
|
+
|
|
112
|
+
## Cross-cutting architecture
|
|
113
|
+
|
|
114
|
+
### Security
|
|
115
|
+
|
|
116
|
+
- Trust boundaries, scopes, and identity flow: see [Security architecture](#security-architecture).
|
|
117
|
+
- Sensitive surfaces and data classes: target URLs, filters (which can carry room ids), webhook names,
|
|
118
|
+
and webhook ids.
|
|
119
|
+
|
|
120
|
+
### Observability and operations
|
|
121
|
+
|
|
122
|
+
- Logging and correlation: the package logs nothing. Request tracking comes from the webex-core
|
|
123
|
+
interceptors, and a failed request's `WebexHttpError` message names the method, service, and
|
|
124
|
+
resource.
|
|
125
|
+
- Metrics, traces, and audit signals: none.
|
|
126
|
+
- Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root has no line for
|
|
127
|
+
`packages/@webex/plugin-webhooks`, so its default rule assigns it to `@webex/web-sdk`. No dashboards
|
|
128
|
+
or runbooks are recorded in this package.
|
|
129
|
+
|
|
130
|
+
### Quality attributes
|
|
131
|
+
|
|
132
|
+
- Compatibility: callers rely on the registered name `webhooks`, `get` and `remove` accepting an object
|
|
133
|
+
or an id, the webhook object as the service returns it, `list().items` through `Page`, and `remove`
|
|
134
|
+
resolving `undefined` on a 204.
|
|
135
|
+
- Latency: one request per call; `list` returns one page at a time.
|
|
136
|
+
- Test confidence: the package has no unit tests, and the integration spec is skipped and not run by
|
|
137
|
+
any script. No coverage threshold is enforced.
|
|
138
|
+
|
|
139
|
+
## Dependency and interaction topology
|
|
140
|
+
|
|
141
|
+
```mermaid
|
|
142
|
+
flowchart LR
|
|
143
|
+
Index[src/index.js] -->|registerPlugin webhooks| Core[webex-core]
|
|
144
|
+
Index --> Webhooks[src/webhooks.js]
|
|
145
|
+
Webhooks -->|WebexPlugin, Page, request| Core
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
| From | To | Kind | Purpose | Ordering or failure boundary |
|
|
149
|
+
| ---- | -- | ---- | ------- | ---------------------------- |
|
|
150
|
+
| `src/index.js` | `src/webhooks.js` | Import | The plugin class | — |
|
|
151
|
+
| `src/index.js` | webex-core | Call at import | Register `webhooks` | First registration wins |
|
|
152
|
+
| `src/webhooks.js` | webex-core | Import and calls | Base class, request, paging | Request failures reject the method |
|
|
153
|
+
|
|
154
|
+
## Object and data ownership
|
|
155
|
+
|
|
156
|
+
| Object or state | System of record | May write | May read | Movement or lifecycle |
|
|
157
|
+
| --------------- | ---------------- | --------- | -------- | --------------------- |
|
|
158
|
+
| Webhook record (`id`, `resource`, `event`, `filter`, `targetUrl`, `name`, `created`, and other fields) | Webex REST API | Callers, through `create`, `update`, and `remove` | Callers, through `get` and `list` | Fetched per call; never kept here |
|
|
159
|
+
| Page of webhooks | webex-core `Page` held by the caller | Not this package | Callers | Built per `list` or `next()` call |
|
|
160
|
+
| Event delivery | Webex REST API | The service | The caller's server at `targetUrl` | Never passes through this package |
|
|
161
|
+
|
|
162
|
+
## Shared and base libraries
|
|
163
|
+
|
|
164
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
165
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
166
|
+
| `@webex/webex-core` `WebexPlugin` | `webex` and `request` | `Webhooks` | `workspace:*` | Keep the registered name `webhooks` |
|
|
167
|
+
| `@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 |
|
|
168
|
+
|
|
169
|
+
## Release and versioning
|
|
170
|
+
|
|
171
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
172
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
173
|
+
| @webex/plugin-webhooks | npm through `deploy:npm` | None declared in the package | None declared | None declared in the package; the workspace owns changelog generation |
|
|
174
|
+
|
|
175
|
+
## Commands and generated artifacts
|
|
176
|
+
|
|
177
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
178
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
179
|
+
| `yarn workspace @webex/plugin-webhooks build:src` | Package scripts | `src` | Writes `dist/` (JavaScript and source maps) through `webex-legacy-tools` | `dist/` is generated and never edited by hand |
|
|
180
|
+
| `yarn workspace @webex/plugin-webhooks build` | Package scripts | `src` | Runs `build:src` | Same output |
|
|
181
|
+
| `yarn workspace @webex/plugin-webhooks test:style` | Package scripts | `src` | ESLint run | The shared config ignores `docs/**` and `*.md` |
|
|
182
|
+
|
|
183
|
+
## Cross-repository topology
|
|
184
|
+
|
|
185
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
186
|
+
| ----------------------------- | ------------- | ------------------------------ | ----- | --------------------- |
|
|
187
|
+
| `@webex/webex-core` (workspace sibling; module spec consulted) | Consumes | `registerPlugin`, `WebexPlugin`, `Page`, `request` | @webex/web-client, @webex/web-sdk | Registered before the first instance |
|
|
188
|
+
| `webex`, `webex-node` (workspace siblings) | Consumed by | The plugin registration | @webex/web-sdk | None |
|
|
189
|
+
| Webex REST API webhooks resource | Consumes | Webhook records | Not recorded in this repository | None |
|
|
190
|
+
| The caller's server at `targetUrl` | Receives deliveries the service sends for webhooks made here | Event POSTs | The application | Must be reachable by the service; not checked here |
|
|
191
|
+
|
|
192
|
+
## Security architecture
|
|
193
|
+
|
|
194
|
+
```mermaid
|
|
195
|
+
flowchart LR
|
|
196
|
+
Caller[caller] -->|webhook body: resource, event, filter, targetUrl, name| Plugin[webex.webhooks]
|
|
197
|
+
Plugin -->|SDK token| Hydra[Webex REST API]
|
|
198
|
+
Hydra -->|webhook records| Plugin
|
|
199
|
+
Plugin -->|webhook records| Caller
|
|
200
|
+
Hydra -.->|event data per matching event| Target[targetUrl chosen by the caller]
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
- This package holds no credential and no key. Every request carries the SDK authorization that
|
|
204
|
+
webex-core adds; neither the README nor the JSDoc names the scopes the webhooks resource requires.
|
|
205
|
+
What a caller may register, see, or change is decided by the service for the authorized user.
|
|
206
|
+
- A webhook opens a data path that does not pass through the SDK: the service sends event data to the
|
|
207
|
+
`targetUrl` in the body. The plugin forwards `targetUrl`, `filter`, and every other field unchanged,
|
|
208
|
+
so it neither restricts the URL's scheme or host nor narrows the filter; that is the caller's and
|
|
209
|
+
the service's responsibility.
|
|
210
|
+
- The package does not receive deliveries, so it offers no way to authenticate them; a caller's server
|
|
211
|
+
must verify deliveries by its own means.
|
|
212
|
+
- Webhook ids go into request paths and options into query strings. The package logs none of them
|
|
213
|
+
through `webex.logger`; its logging is described under
|
|
214
|
+
[Observability and operations](#observability-and-operations).
|
|
215
|
+
|
|
216
|
+
## Domain language
|
|
217
|
+
|
|
218
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
219
|
+
| ---- | --------------------------- | -------------------- |
|
|
220
|
+
| Webhook | A Hydra registration that makes the service POST to `targetUrl` when a matching event occurs | `src/webhooks.js` |
|
|
221
|
+
| Resource | The Hydra resource type a webhook watches, for example `messages` | `src/webhooks.js` |
|
|
222
|
+
| Event | The event type a webhook watches, for example `created`; not an SDK event | `src/webhooks.js` |
|
|
223
|
+
| Filter | The query-style scope of a webhook, for example `roomId=<id>` | `src/webhooks.js` |
|
|
224
|
+
| Target URL | The URL that receives a POST for each matching event | `src/webhooks.js` |
|
|
225
|
+
| Hydra | The Webex REST API, reached as catalog service `hydra` | `src/webhooks.js` |
|
|
226
|
+
| Page | The webex-core wrapper `list` resolves, with `items`, `length`, `hasNext`, and `next` | `src/webhooks.js` |
|
|
227
|
+
|
|
228
|
+
## References and maintenance
|
|
229
|
+
|
|
230
|
+
- Decisions: [adr/](adr/index.md)
|
|
231
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
232
|
+
- Repository rules and patterns: [package agent instructions](../AGENTS.md)
|
|
233
|
+
- Update this document in the same change that alters package boundaries, resource ownership,
|
|
234
|
+
cross-resource interaction, or cross-cutting architecture.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for @webex/plugin-webhooks.
|
|
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-13T02:40:15Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/plugin-webhooks**, a package inside the `webex-js-sdk` Yarn workspace.
|
|
19
|
+
Run `yarn` and the package scripts from the workspace root, as `yarn workspace @webex/plugin-webhooks <script>`.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
| Tool or access | Version or requirement |
|
|
24
|
+
| -------------- | ---------------------- |
|
|
25
|
+
| 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 |
|
|
26
|
+
| Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
|
|
27
|
+
| Registry or account access | N/A for building and linting |
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The workspace `deploy.yml` workflow installs with the same command.
|
|
36
|
+
|
|
37
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see [Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
38
|
+
|
|
39
|
+
## Build
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn workspace @webex/plugin-webhooks build:src
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`build:src` writes JavaScript and source maps for the two source files to `dist/` through
|
|
46
|
+
`webex-legacy-tools`. `dist/` is ignored by Git. The `build` script runs `build:src`; the package
|
|
47
|
+
emits no type declarations.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
yarn workspace @webex/plugin-webhooks build
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Run
|
|
54
|
+
|
|
55
|
+
N/A — this is a library with no start script. Importing `@webex/plugin-webhooks` registers
|
|
56
|
+
`webex.webhooks`. Receiving the event deliveries a webhook triggers needs a server of the
|
|
57
|
+
application's own at the webhook's `targetUrl`; this package provides none.
|
|
58
|
+
|
|
59
|
+
## Tests
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
yarn workspace @webex/plugin-webhooks test:style
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
66
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
67
|
+
| Unit | N/A — `package.json` defines no `test:unit` script | none | N/A | N/A |
|
|
68
|
+
|
|
69
|
+
`test:style` lints `src/` with eslint through `@webex/eslint-config-legacy`.
|
|
70
|
+
|
|
71
|
+
- Coverage or quality gate: none; the package defines no unit test, no coverage script, and the legacy
|
|
72
|
+
Jest configuration it re-exports sets no threshold
|
|
73
|
+
- Enforcement source: N/A
|
|
74
|
+
- Test environment or QA dependencies: none for lint
|
|
75
|
+
|
|
76
|
+
This package has no unit tests: `package.json` defines no `test:unit` script and there is no
|
|
77
|
+
`test/unit` directory. Add both together when you add the first unit case; sibling legacy packages
|
|
78
|
+
define `test:unit` as `webex-legacy-tools test --unit --runner jest`.
|
|
79
|
+
|
|
80
|
+
`yarn workspace @webex/plugin-webhooks test:browser` (manifest command `browser-test`) runs `webex-legacy-tools test --integration
|
|
81
|
+
--runner karma` over `test/integration/spec/webhooks.js`, whose 7 cases create a test user, a room,
|
|
82
|
+
and webhooks against the live services. The whole suite is wrapped in `describe.skip`, so it would run
|
|
83
|
+
no case even if it bundled. On 2026-11-13 under Node 22.14 the karma bundle failed to parse `isbot`
|
|
84
|
+
(an ES module in the workspace `node_modules`), so the run reported a bundle error in Chrome and
|
|
85
|
+
Firefox headless, completed 0 tests, and still exited zero. It is not listed in the table above
|
|
86
|
+
because it verifies nothing today, and its exit code is not a test result.
|
|
87
|
+
|
|
88
|
+
Do not run the aggregate `test` script in `package.json`. It runs `test:style`, then exits 1 with
|
|
89
|
+
`Couldn't find a script named "test:unit"` (checked 2026-11-13); it would also call
|
|
90
|
+
`test:integration`, which this package does not define either. It is deliberately not a manifest
|
|
91
|
+
command; run the commands above instead.
|
|
92
|
+
|
|
93
|
+
## Configuration and secrets
|
|
94
|
+
|
|
95
|
+
- Required configuration: none. The plugin registers no config of its own
|
|
96
|
+
- Environment overrides: none read by this package
|
|
97
|
+
- Secret source: N/A; the package holds no secret
|
|
98
|
+
- Package or artifact access: N/A
|
|
99
|
+
- Required neighboring packages: `@webex/webex-core` resolves through the workspace. The integration
|
|
100
|
+
spec also needs `@webex/internal-plugin-device` and the peer dependencies `@webex/plugin-logger` and
|
|
101
|
+
`@webex/plugin-rooms`; `src/` uses none of them
|
|
102
|
+
- Platform, simulator, device, or SDK setup: none
|
|
103
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
104
|
+
|
|
105
|
+
## First-run verification
|
|
106
|
+
|
|
107
|
+
1. Run `yarn workspace @webex/plugin-webhooks build:src` and check that it reports `Built plugin-webhooks: 2 files`.
|
|
108
|
+
2. Run `yarn workspace @webex/plugin-webhooks test:style`.
|
|
109
|
+
|
|
110
|
+
Expected result: both commands exit zero. `test:style` prints no warning for `src/webhooks.js` or
|
|
111
|
+
`src/index.js`, only "File ignored" for `src/docs/README.md`.
|
|
112
|
+
|
|
113
|
+
## Next steps
|
|
114
|
+
|
|
115
|
+
- [Package architecture](architecture.md)
|
|
116
|
+
- [Specification registry](specs/README.md)
|
|
117
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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-13T02:40:15Z
|
|
10
|
+
validation_status: pass
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/plugin-webhooks documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the Webhooks 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 Webhooks plugin specification beside its code
|
|
31
|
+
- [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
|
|
32
|
+
monorepo root `.sdd/`
|
|
33
|
+
|
|
34
|
+
This package is a library, so there is no service specification and no OpenAPI document. Exact
|
|
35
|
+
contract details live in the native sources linked from the architecture index: `package.json` and
|
|
36
|
+
`src/index.js` for the package and its registration, and `src/webhooks.js` for the API.
|
|
37
|
+
|
|
38
|
+
## Related repository resources
|
|
39
|
+
|
|
40
|
+
- [`README.md`](../README.md) — retained npm page; context only, it shows only `get(id)`, see
|
|
41
|
+
[ADR-0001](adr/0001-retain-product-readme.md)
|
|
42
|
+
- [`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-13T02:40:15Z
|
|
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-13 |
|
|
38
|
+
| Webhooks plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-11-13 |
|
|
39
|
+
| Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-sdk | Accepted | 2026-11-13 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | `webex.webhooks`: webhook create, read, list, delete, and update through Hydra | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement for the module is complete (100%, assessed 2026-11-13). Independent
|
|
48
|
+
semantic validation passed on 2026-11-13 (0 Blocking, 0 warnings; runtime 01a1d2c3-25b2-7a93-a84a-c3d3b83a8df1). No runnable unit suite exists. A
|
|
49
|
+
characterization baseline and promotion past Partial remain pending.
|
|
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 workspace @webex/plugin-webhooks 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, the webhook object, the 204 handling of `remove`, or the registration | The owning architecture section, `src/docs/README.md`, and the native definition in `src/webhooks.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 skipped |
|
|
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
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
25
25
|
"@webex/jest-config-legacy": "0.0.0",
|
|
26
26
|
"@webex/legacy-tools": "0.0.0",
|
|
27
|
-
"@webex/test-helper-chai": "3.13.0-next.
|
|
28
|
-
"@webex/test-helper-mocha": "3.13.0-next.
|
|
29
|
-
"@webex/test-helper-mock-webex": "3.13.0-next.
|
|
30
|
-
"@webex/test-helper-test-users": "3.13.0-next.
|
|
27
|
+
"@webex/test-helper-chai": "3.13.0-next.2",
|
|
28
|
+
"@webex/test-helper-mocha": "3.13.0-next.2",
|
|
29
|
+
"@webex/test-helper-mock-webex": "3.13.0-next.2",
|
|
30
|
+
"@webex/test-helper-test-users": "3.13.0-next.2",
|
|
31
31
|
"eslint": "^8.24.0",
|
|
32
32
|
"prettier": "^2.7.1",
|
|
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.6",
|
|
37
|
+
"@webex/webex-core": "3.13.0-next.6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@webex/plugin-logger": "3.13.0-next.
|
|
41
|
-
"@webex/plugin-rooms": "3.13.0-next.
|
|
40
|
+
"@webex/plugin-logger": "3.13.0-next.6",
|
|
41
|
+
"@webex/plugin-rooms": "3.13.0-next.10"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "yarn build:src",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"test:browser": "webex-legacy-tools test --integration --runner karma",
|
|
49
49
|
"test:style": "eslint ./src/**/*.*"
|
|
50
50
|
},
|
|
51
|
-
"version": "3.13.0-next.
|
|
51
|
+
"version": "3.13.0-next.6"
|
|
52
52
|
}
|