@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,422 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/plugin-team-memberships",
|
|
6
|
+
"purpose": "Public plugin registered as webex.teamMemberships that manages Webex team memberships through the Webex REST API team/memberships resource (catalog service hydra): create POSTs the caller's membership object (teamId plus personId or personEmail, optionally isModerator), get and remove take a membership object or its id, list sends its options as the query and resolves a webex-core Page, update PUTs the whole membership object, and remove resolves undefined on 204. Each method sends one request through webex.request and resolves the response; nothing is validated, cached, persisted, or logged."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"prebuild": "yarn prebuild:modules",
|
|
11
|
+
"compile": "yarn build",
|
|
12
|
+
"build": "yarn build:src",
|
|
13
|
+
"unit-test": "[NEEDS HUMAN INPUT] -- package.json defines no test:unit script and the package has no test/unit directory; its only spec, test/integration/spec/team-memberships.js, runs only under test:browser, which currently bundles nothing. Add a unit suite and script before recording a command here.",
|
|
14
|
+
"lint": "yarn test:style",
|
|
15
|
+
"browser-test": "yarn test:browser",
|
|
16
|
+
"deploy": "yarn deploy:npm"
|
|
17
|
+
},
|
|
18
|
+
"public_interfaces": [
|
|
19
|
+
{
|
|
20
|
+
"name": "@webex/plugin-team-memberships package entry",
|
|
21
|
+
"kind": "package_export",
|
|
22
|
+
"source": "src/index.js",
|
|
23
|
+
"entrypoints": [
|
|
24
|
+
"import '@webex/plugin-team-memberships'",
|
|
25
|
+
"import TeamMemberships from '@webex/plugin-team-memberships'"
|
|
26
|
+
],
|
|
27
|
+
"audience": "SDK bundles (webex, webex-node) and applications that build their own webex instance",
|
|
28
|
+
"notes": "Importing the package registers TeamMemberships as public plugin 'teamMemberships' with no config; the first registration of the name wins. The default export TeamMemberships is the only export."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "webex.teamMemberships methods",
|
|
32
|
+
"kind": "plugin_api",
|
|
33
|
+
"source": "src/team-memberships.js",
|
|
34
|
+
"entrypoints": [
|
|
35
|
+
"webex.teamMemberships.create(membership)",
|
|
36
|
+
"webex.teamMemberships.get(membership)",
|
|
37
|
+
"webex.teamMemberships.list(options)",
|
|
38
|
+
"webex.teamMemberships.update(membership)",
|
|
39
|
+
"webex.teamMemberships.remove(membership)"
|
|
40
|
+
],
|
|
41
|
+
"audience": "applications",
|
|
42
|
+
"notes": "Each method sends one hydra team/memberships request. create POSTs the caller's object unchanged; get, update, and remove take membership.id, else the argument, and throw a TypeError synchronously on null or undefined; update also sends a string argument as the body; list resolves a webex-core Page; remove resolves undefined on 204. Nothing is validated or cached."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "package scripts",
|
|
46
|
+
"kind": "npm_scripts",
|
|
47
|
+
"source": "package.json",
|
|
48
|
+
"entrypoints": [
|
|
49
|
+
"build",
|
|
50
|
+
"build:src",
|
|
51
|
+
"test:style",
|
|
52
|
+
"test:browser",
|
|
53
|
+
"test",
|
|
54
|
+
"deploy:npm"
|
|
55
|
+
],
|
|
56
|
+
"audience": "contributors and CI",
|
|
57
|
+
"notes": "build runs build:src, which writes dist. There is no test:unit script and no unit test. test:browser (commands.browser-test) runs karma over test/integration/spec but bundles nothing today (no case run, exit 0). The aggregate test script runs test:style, then exits 1 because test:unit is not defined (it also names test:integration, which is not defined either); it is deliberately not a manifest command."
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"source_of_truth": [
|
|
61
|
+
{
|
|
62
|
+
"surface": "Team Memberships plugin implementation",
|
|
63
|
+
"paths": [
|
|
64
|
+
"src/index.js",
|
|
65
|
+
"src/team-memberships.js"
|
|
66
|
+
],
|
|
67
|
+
"generated_artifacts": [
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"refresh_with": [
|
|
71
|
+
"yarn build:src"
|
|
72
|
+
],
|
|
73
|
+
"validate_with": [
|
|
74
|
+
"yarn test:style"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"surface": "module specification",
|
|
79
|
+
"paths": [
|
|
80
|
+
"src/docs/README.md"
|
|
81
|
+
],
|
|
82
|
+
"generated_artifacts": [],
|
|
83
|
+
"refresh_with": [
|
|
84
|
+
"update alongside the behavior change in the same commit"
|
|
85
|
+
],
|
|
86
|
+
"validate_with": [
|
|
87
|
+
"spec-validator on an independent runtime"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"generated_artifacts": [
|
|
92
|
+
{
|
|
93
|
+
"path": "dist",
|
|
94
|
+
"generated_from": "src",
|
|
95
|
+
"refresh_with": "yarn build:src"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
99
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
100
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"validation_matrix": [
|
|
104
|
+
{
|
|
105
|
+
"paths": [
|
|
106
|
+
"src/**"
|
|
107
|
+
],
|
|
108
|
+
"minimum": [
|
|
109
|
+
"yarn build:src",
|
|
110
|
+
"yarn test:style"
|
|
111
|
+
],
|
|
112
|
+
"recommended": [
|
|
113
|
+
"add a test/unit/spec case and a test:unit script for the changed behavior; the package has no unit tests"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"paths": [
|
|
118
|
+
"src/team-memberships.js"
|
|
119
|
+
],
|
|
120
|
+
"minimum": [
|
|
121
|
+
"yarn build:src",
|
|
122
|
+
"yarn test:style"
|
|
123
|
+
],
|
|
124
|
+
"recommended": [
|
|
125
|
+
"pin the request options, the object-or-id rule, and the 204 branch with unit cases before changing them"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"paths": [
|
|
130
|
+
"src/index.js"
|
|
131
|
+
],
|
|
132
|
+
"minimum": [
|
|
133
|
+
"yarn build:src",
|
|
134
|
+
"yarn test:style"
|
|
135
|
+
],
|
|
136
|
+
"recommended": [
|
|
137
|
+
"check the bundles that register the plugin (webex, webex-node) and the webex integration spec commonjs.js when the registered name changes"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"change_impact": [
|
|
142
|
+
{
|
|
143
|
+
"paths": [
|
|
144
|
+
"src/team-memberships.js"
|
|
145
|
+
],
|
|
146
|
+
"affects": [
|
|
147
|
+
"the hydra team/memberships requests and their result shapes",
|
|
148
|
+
"the object-or-id argument of get, update, and remove",
|
|
149
|
+
"the undefined result of remove on 204"
|
|
150
|
+
],
|
|
151
|
+
"refresh_with": [
|
|
152
|
+
"yarn build:src"
|
|
153
|
+
],
|
|
154
|
+
"validate_with": [
|
|
155
|
+
"yarn test:style"
|
|
156
|
+
],
|
|
157
|
+
"avoid_direct_edits": [
|
|
158
|
+
"dist"
|
|
159
|
+
],
|
|
160
|
+
"notes": "No unit case covers any method; add one before changing behavior."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"paths": [
|
|
164
|
+
"src/index.js"
|
|
165
|
+
],
|
|
166
|
+
"affects": [
|
|
167
|
+
"the registered plugin name"
|
|
168
|
+
],
|
|
169
|
+
"refresh_with": [
|
|
170
|
+
"yarn build:src"
|
|
171
|
+
],
|
|
172
|
+
"validate_with": [
|
|
173
|
+
"yarn test:style"
|
|
174
|
+
],
|
|
175
|
+
"avoid_direct_edits": [
|
|
176
|
+
"dist"
|
|
177
|
+
],
|
|
178
|
+
"notes": "webex and webex-node register the plugin by import, and the webex integration spec checks webex.teamMemberships (MOD-001)."
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"evidence_rules": [
|
|
182
|
+
{
|
|
183
|
+
"claim_category": "command_name",
|
|
184
|
+
"sources": [
|
|
185
|
+
"package.json"
|
|
186
|
+
],
|
|
187
|
+
"requirement": "The script must exist in package.json scripts.",
|
|
188
|
+
"notes": "test:unit and test:integration do not exist, so the aggregate test script fails; test:browser currently verifies nothing."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"claim_category": "import_path",
|
|
192
|
+
"sources": [
|
|
193
|
+
"src/index.js"
|
|
194
|
+
],
|
|
195
|
+
"requirement": "A binding is public only if exported from src/index.js.",
|
|
196
|
+
"notes": "The only export is the default TeamMemberships."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"claim_category": "behavior_claim",
|
|
200
|
+
"sources": [
|
|
201
|
+
"src"
|
|
202
|
+
],
|
|
203
|
+
"requirement": "Ground every behavioral claim in source evidence.",
|
|
204
|
+
"notes": "Commit history is not an evidence source for this package. README.md is context only (docs/adr/0001-retain-product-readme.md). The integration spec under test/integration/spec states intended behavior but no script runs it. The webex-core, plugin-rooms, internal-plugin-device, and plugin-logger specs were consulted; plugin-teams and test-helper-chai have no spec, so their code was read."
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"negative_guidance": [
|
|
208
|
+
{
|
|
209
|
+
"rule": "Do not send team membership requests other than through this.request with service hydra.",
|
|
210
|
+
"why": "webex-core interceptors add authorization, resolve the catalog, and convert errors (INV-001)."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"rule": "Do not drop the object-or-id argument of get, update, or remove.",
|
|
214
|
+
"why": "The JSDoc and callers pass either form (INV-002)."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"rule": "Do not validate or rewrite the caller's membership object without a change request.",
|
|
218
|
+
"why": "The service owns membership rules and callers rely on the body passing through (INV-004)."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"rule": "Do not log person emails, person ids, or team ids through webex.logger.",
|
|
222
|
+
"why": "They identify users and teams; the plugin logs nothing today."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"rule": "Do not treat README.md as the behavior reference.",
|
|
226
|
+
"why": "Its only example uses webex.team-memberships, which is not valid JavaScript; see docs/adr/0001-retain-product-readme.md."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"rule": "Do not infer a coverage threshold or a unit-test command for this package.",
|
|
230
|
+
"why": "No unit test, test:unit script, coverage script, or threshold exists."
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"confidence_policy": {
|
|
234
|
+
"high": {
|
|
235
|
+
"action": "update",
|
|
236
|
+
"expectation": "Source and a unit case agree; no such case exists in this package yet."
|
|
237
|
+
},
|
|
238
|
+
"medium": {
|
|
239
|
+
"action": "narrow-scope",
|
|
240
|
+
"expectation": "Only source evidence exists, or only the unrun integration spec, as for every method today. Pin current behavior with a unit case before modifying."
|
|
241
|
+
},
|
|
242
|
+
"low": {
|
|
243
|
+
"action": "noop",
|
|
244
|
+
"expectation": "Neither source, tests, nor a dependency's spec or code settles the question, as for what Hydra answers to a duplicate create or a string update body. Stop and report the gap."
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"repository_topology": {
|
|
248
|
+
"main_entrypoints": [
|
|
249
|
+
{
|
|
250
|
+
"name": "package entry",
|
|
251
|
+
"path": "src/index.js",
|
|
252
|
+
"purpose": "Registers the teamMemberships plugin and exports the class",
|
|
253
|
+
"notes": "No subpath exports; package.json main is dist/index.js and devMain is src/index.js."
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"workspace_packages": [
|
|
257
|
+
{
|
|
258
|
+
"name": "@webex/plugin-team-memberships",
|
|
259
|
+
"paths": [
|
|
260
|
+
"src",
|
|
261
|
+
"test"
|
|
262
|
+
],
|
|
263
|
+
"notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"source_surfaces": [
|
|
267
|
+
{
|
|
268
|
+
"name": "Team Memberships plugin",
|
|
269
|
+
"paths": [
|
|
270
|
+
"src"
|
|
271
|
+
],
|
|
272
|
+
"notes": "index.js and team-memberships.js. Specified at src/docs/README.md."
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "tests",
|
|
276
|
+
"paths": [
|
|
277
|
+
"test/integration/spec"
|
|
278
|
+
],
|
|
279
|
+
"notes": "One live-service integration spec that only test:browser would run, and it bundles nothing today. There is no unit spec."
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"generated_surfaces": [
|
|
283
|
+
{
|
|
284
|
+
"name": "build output",
|
|
285
|
+
"paths": [
|
|
286
|
+
"dist"
|
|
287
|
+
],
|
|
288
|
+
"generated_from": "src",
|
|
289
|
+
"refresh_with": "yarn build:src",
|
|
290
|
+
"notes": "JavaScript and source maps from webex-legacy-tools; no type declarations. Do not edit by hand."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "repo-standards template map",
|
|
294
|
+
"paths": [
|
|
295
|
+
"../../../.sdd/templates/repo-standards"
|
|
296
|
+
],
|
|
297
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
298
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
299
|
+
"notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"validation_entrypoints": [
|
|
303
|
+
{
|
|
304
|
+
"name": "compile",
|
|
305
|
+
"command": "yarn build",
|
|
306
|
+
"scope": "src",
|
|
307
|
+
"notes": "Runs build:src."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "lint",
|
|
311
|
+
"command": "yarn test:style",
|
|
312
|
+
"scope": "src",
|
|
313
|
+
"notes": "eslint via the local .eslintrc.js; docs/** and *.md are ignored."
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"sync_paths": [
|
|
317
|
+
{
|
|
318
|
+
"source": "src/team-memberships.js",
|
|
319
|
+
"targets": [
|
|
320
|
+
"src/docs/README.md"
|
|
321
|
+
],
|
|
322
|
+
"mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
|
|
323
|
+
"notes": "Keep the request, result, failure-mode, and wire rows of the specification aligned with src/team-memberships.js and src/index.js."
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
327
|
+
"targets": [
|
|
328
|
+
"../../../.sdd/templates/repo-standards"
|
|
329
|
+
],
|
|
330
|
+
"mechanism": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
331
|
+
"notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"folder_readme_contract": {
|
|
336
|
+
"required_sections": [
|
|
337
|
+
"purpose",
|
|
338
|
+
"boundaries",
|
|
339
|
+
"key-files",
|
|
340
|
+
"common-tasks"
|
|
341
|
+
],
|
|
342
|
+
"rules": [
|
|
343
|
+
"Orient the reader before describing detail.",
|
|
344
|
+
"Link to the module specification rather than duplicating it."
|
|
345
|
+
],
|
|
346
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
347
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
348
|
+
},
|
|
349
|
+
"regression_feedback_rules": [
|
|
350
|
+
{
|
|
351
|
+
"trigger": "A team memberships request or its result handling in src/team-memberships.js changes.",
|
|
352
|
+
"required_followups": [
|
|
353
|
+
"Add a test:unit script and a test/unit/spec case asserting the request options and the resolved value",
|
|
354
|
+
"Update MOD-002 to MOD-006 in src/docs/README.md"
|
|
355
|
+
],
|
|
356
|
+
"notes": "No unit case exists for any method today."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"trigger": "The id resolution of get, update, or remove, or the 204 branch of remove, changes.",
|
|
360
|
+
"required_followups": [
|
|
361
|
+
"Add parametrized unit cases for an object, an id string, an object without id, and a missing argument",
|
|
362
|
+
"Update INV-002 and INV-003 and the Caller-visible failure modes in src/docs/README.md"
|
|
363
|
+
],
|
|
364
|
+
"notes": "A missing argument throws synchronously today."
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"trigger": "The registration in src/index.js changes.",
|
|
368
|
+
"required_followups": [
|
|
369
|
+
"Check webex, webex-node, and the webex integration spec commonjs.js",
|
|
370
|
+
"Update MOD-001 in src/docs/README.md"
|
|
371
|
+
],
|
|
372
|
+
"notes": "Applications reach the plugin as webex.teamMemberships."
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"surface_owners": [
|
|
376
|
+
{
|
|
377
|
+
"surface": "module implementation and specifications",
|
|
378
|
+
"owner": "@webex/web-sdk",
|
|
379
|
+
"edit_boundary": "No packages/@webex/plugin-team-memberships line exists in the monorepo .github/CODEOWNERS, so its default * rule assigns @webex/web-sdk."
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"do_not_edit": [
|
|
383
|
+
"dist",
|
|
384
|
+
"../../../.sdd/templates/repo-standards"
|
|
385
|
+
],
|
|
386
|
+
"marker_scopes": {
|
|
387
|
+
"sdd": [
|
|
388
|
+
".sdd/manifest.json",
|
|
389
|
+
"src/docs/README.md",
|
|
390
|
+
"docs"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"fallback_rules": [
|
|
394
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
395
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
396
|
+
"Commit history is not a valid rationale source for this package.",
|
|
397
|
+
"When a dependency's specification disagrees with that dependency's code, use the code and record the disagreement; when a dependency has no specification, use its code."
|
|
398
|
+
],
|
|
399
|
+
"downstream_context_pack": {
|
|
400
|
+
"required_human_surfaces": [
|
|
401
|
+
"README.md",
|
|
402
|
+
"docs/index.md",
|
|
403
|
+
"docs/architecture.md",
|
|
404
|
+
"src/docs/README.md"
|
|
405
|
+
],
|
|
406
|
+
"required_agent_operational_surfaces": [
|
|
407
|
+
"AGENTS.md",
|
|
408
|
+
"docs/specs/README.md"
|
|
409
|
+
],
|
|
410
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
411
|
+
"recommended_machine_readable_sections": [
|
|
412
|
+
"public_interfaces",
|
|
413
|
+
"change_impact",
|
|
414
|
+
"evidence_rules",
|
|
415
|
+
"negative_guidance",
|
|
416
|
+
"confidence_policy",
|
|
417
|
+
"repository_topology",
|
|
418
|
+
"folder_readme_contract",
|
|
419
|
+
"regression_feedback_rules"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
}
|