@webex/internal-plugin-ediscovery 3.12.0 → 3.13.0-next.10

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.
@@ -0,0 +1,477 @@
1
+ {
2
+ "$schema": "./schemas/repo-context.schema.json",
3
+ "version": 1,
4
+ "repository": {
5
+ "name": "@webex/internal-plugin-ediscovery",
6
+ "purpose": "Internal Webex JS SDK plugin registered as webex.internal.ediscovery for first-party compliance clients. It creates, lists, reads, restarts, and deletes compliance reports on the eDiscovery service, reads the client config, posts the summary-download audit event, and pages report content and content containers by report UUID or remote report URL with an in-memory container cache. Payload transforms registered with webex-core encrypt report requests under a new KMS key before they are sent and decrypt report requests, activities, and containers on the way in, on behalf of each container's onBehalfOfUser, recording failures as error or warning properties instead of rejecting."
7
+ },
8
+ "commands": {
9
+ "install": "yarn",
10
+ "compile": "yarn workspace @webex/internal-plugin-ediscovery build:src",
11
+ "build": "yarn workspace @webex/internal-plugin-ediscovery build",
12
+ "unit-test": "yarn workspace @webex/internal-plugin-ediscovery test:unit",
13
+ "browser-test-broken": "yarn workspace @webex/internal-plugin-ediscovery test:browser:broken",
14
+ "lint": "yarn workspace @webex/internal-plugin-ediscovery test:style",
15
+ "deploy": "yarn workspace @webex/internal-plugin-ediscovery deploy:npm"
16
+ },
17
+ "public_interfaces": [
18
+ {
19
+ "name": "@webex/internal-plugin-ediscovery package entry",
20
+ "kind": "package_export",
21
+ "source": "src/index.js",
22
+ "entrypoints": [
23
+ "import EDiscovery from '@webex/internal-plugin-ediscovery'",
24
+ "import {ReportRequest, EdiscoveryError, InvalidEmailAddressError} from '@webex/internal-plugin-ediscovery'",
25
+ "import '@webex/internal-plugin-ediscovery'"
26
+ ],
27
+ "audience": "first-party compliance clients",
28
+ "notes": "Importing the package imports @webex/internal-plugin-encryption and @webex/internal-plugin-conversation and registers EDiscovery as internal plugin 'ediscovery' with seven payload predicates and transforms that join the module-level webex config. The named config export resolves to undefined because src/config.js has only a default export."
29
+ },
30
+ {
31
+ "name": "webex.internal.ediscovery runtime methods",
32
+ "kind": "plugin_api",
33
+ "source": "src/ediscovery.js",
34
+ "entrypoints": [
35
+ "webex.internal.ediscovery.createReport()",
36
+ "webex.internal.ediscovery.getReport()",
37
+ "webex.internal.ediscovery.getReports()",
38
+ "webex.internal.ediscovery.deleteReport()",
39
+ "webex.internal.ediscovery.restartReport()",
40
+ "webex.internal.ediscovery.getContent()",
41
+ "webex.internal.ediscovery.getContentContainer()",
42
+ "webex.internal.ediscovery.getContentContainerByContainerId()",
43
+ "webex.internal.ediscovery.getClientConfig()",
44
+ "webex.internal.ediscovery.postAuditLog()",
45
+ "webex.internal.ediscovery.clearCache()"
46
+ ],
47
+ "audience": "first-party compliance clients and the activity decryption transform",
48
+ "notes": "The three content methods accept a report UUID or a report URL and are decorated with oneFlight. Responses arrive decrypted, or with error and warning properties on items that could not be decrypted."
49
+ },
50
+ {
51
+ "name": "payload transforms",
52
+ "kind": "plugin_api",
53
+ "source": "src/index.js",
54
+ "entrypoints": [
55
+ "encryptReportRequest",
56
+ "decryptReportRequest",
57
+ "decryptReportRequestArray",
58
+ "decryptReportContent",
59
+ "decryptReportContentArray",
60
+ "decryptReportContentContainer",
61
+ "decryptReportContentContainerArray"
62
+ ],
63
+ "audience": "the webex-core payload-transformer pipeline",
64
+ "notes": "Predicates match by field name (keywords, spaceNames, emails outbound; reportRequest, activityId, containerId inbound) on every request and response of the webex instance. Implementations are in src/transforms.js."
65
+ },
66
+ {
67
+ "name": "ediscovery configuration",
68
+ "kind": "configuration",
69
+ "source": "src/config.js",
70
+ "entrypoints": [
71
+ "webex.config.ediscovery.defaultOptions.offset",
72
+ "webex.config.ediscovery.defaultOptions.size",
73
+ "webex.config.ediscovery.defaultOptions.timeoutMs",
74
+ "webex.config.ediscovery.defaultOptions.types"
75
+ ],
76
+ "audience": "integrators configuring the webex instance",
77
+ "notes": "Defaults offset 0, size 100, timeoutMs 30000, types empty; per-call options override them."
78
+ },
79
+ {
80
+ "name": "package scripts",
81
+ "kind": "npm_scripts",
82
+ "source": "package.json",
83
+ "entrypoints": [
84
+ "build",
85
+ "build:src",
86
+ "test:style",
87
+ "test:unit",
88
+ "test:browser:broken",
89
+ "deploy:npm"
90
+ ],
91
+ "audience": "contributors and CI",
92
+ "notes": "Run build:src before test:unit because the unit specs import the package by name and load dist. test:style does not lint src/ediscovery.js (shared ignore list) and src/index.js disables every rule. The aggregate test script chains test:integration and test:browser, which are not defined. No script runs test/integration/spec."
93
+ }
94
+ ],
95
+ "source_of_truth": [
96
+ {
97
+ "surface": "eDiscovery plugin implementation",
98
+ "paths": [
99
+ "src/index.js",
100
+ "src/ediscovery.js",
101
+ "src/transforms.js",
102
+ "src/retry.js",
103
+ "src/report-request.js",
104
+ "src/ediscovery-error.js",
105
+ "src/config.js"
106
+ ],
107
+ "generated_artifacts": [
108
+ "dist"
109
+ ],
110
+ "refresh_with": [
111
+ "yarn workspace @webex/internal-plugin-ediscovery build:src"
112
+ ],
113
+ "validate_with": [
114
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit",
115
+ "yarn workspace @webex/internal-plugin-ediscovery test:style"
116
+ ]
117
+ },
118
+ {
119
+ "surface": "module specification",
120
+ "paths": [
121
+ "src/docs/README.md"
122
+ ],
123
+ "generated_artifacts": [],
124
+ "refresh_with": [
125
+ "update alongside the behavior change in the same commit"
126
+ ],
127
+ "validate_with": [
128
+ "spec-validator on an independent runtime"
129
+ ]
130
+ }
131
+ ],
132
+ "generated_artifacts": [
133
+ {
134
+ "path": "dist",
135
+ "generated_from": "src",
136
+ "refresh_with": "yarn workspace @webex/internal-plugin-ediscovery build:src"
137
+ },
138
+ {
139
+ "path": "../../../.sdd/templates/repo-standards/template-map.json",
140
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
141
+ "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."
142
+ }
143
+ ],
144
+ "validation_matrix": [
145
+ {
146
+ "paths": [
147
+ "src/**"
148
+ ],
149
+ "minimum": [
150
+ "yarn workspace @webex/internal-plugin-ediscovery build:src",
151
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit"
152
+ ],
153
+ "recommended": [
154
+ "yarn workspace @webex/internal-plugin-ediscovery test:style"
155
+ ]
156
+ },
157
+ {
158
+ "paths": [
159
+ "src/index.js",
160
+ "src/transforms.js",
161
+ "src/retry.js"
162
+ ],
163
+ "minimum": [
164
+ "yarn workspace @webex/internal-plugin-ediscovery build:src",
165
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit"
166
+ ],
167
+ "recommended": [
168
+ "check which other plugins send or receive payloads with the field names the predicates in src/index.js match",
169
+ "review src/index.js and src/ediscovery.js by hand, because test:style does not lint them"
170
+ ]
171
+ }
172
+ ],
173
+ "change_impact": [
174
+ {
175
+ "paths": [
176
+ "src/transforms.js",
177
+ "src/retry.js"
178
+ ],
179
+ "affects": [
180
+ "report-request encryption before createReport",
181
+ "report, activity, and container decryption",
182
+ "the error and warning properties the downloader records",
183
+ "KMS retry behavior"
184
+ ],
185
+ "refresh_with": [
186
+ "yarn workspace @webex/internal-plugin-ediscovery build:src"
187
+ ],
188
+ "validate_with": [
189
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit"
190
+ ],
191
+ "avoid_direct_edits": [
192
+ "dist"
193
+ ],
194
+ "notes": "Decryption failures must annotate the payload and resolve; content is decrypted on behalf of the container's onBehalfOfUser."
195
+ },
196
+ {
197
+ "paths": [
198
+ "src/ediscovery.js"
199
+ ],
200
+ "affects": [
201
+ "report record calls",
202
+ "content and container reads by UUID or URL",
203
+ "the container cache used by activity decryption",
204
+ "oneFlight sharing of content requests"
205
+ ],
206
+ "refresh_with": [
207
+ "yarn workspace @webex/internal-plugin-ediscovery build:src"
208
+ ],
209
+ "validate_with": [
210
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit"
211
+ ],
212
+ "avoid_direct_edits": [
213
+ "dist"
214
+ ],
215
+ "notes": "Error code 14400001 maps to InvalidEmailAddressError; paging options must stay in oneFlight keys."
216
+ },
217
+ {
218
+ "paths": [
219
+ "src/index.js",
220
+ "src/config.js"
221
+ ],
222
+ "affects": [
223
+ "registration as webex.internal.ediscovery",
224
+ "the payload predicates applied to every webex request and response",
225
+ "default options"
226
+ ],
227
+ "refresh_with": [
228
+ "yarn workspace @webex/internal-plugin-ediscovery build:src"
229
+ ],
230
+ "validate_with": [
231
+ "yarn workspace @webex/internal-plugin-ediscovery test:unit"
232
+ ],
233
+ "avoid_direct_edits": [
234
+ "dist"
235
+ ],
236
+ "notes": "Predicates join the module-level webex config at import time."
237
+ }
238
+ ],
239
+ "evidence_rules": [
240
+ {
241
+ "claim_category": "command_name",
242
+ "sources": [
243
+ "package.json"
244
+ ],
245
+ "requirement": "The script must exist in package.json scripts.",
246
+ "notes": "test:integration and test:browser are referenced by the test script but not defined. test:browser:broken needs live services."
247
+ },
248
+ {
249
+ "claim_category": "import_path",
250
+ "sources": [
251
+ "src/index.js"
252
+ ],
253
+ "requirement": "A binding is public only if exported from src/index.js.",
254
+ "notes": "Exports: default EDiscovery, ReportRequest, EdiscoveryError, InvalidEmailAddressError, and config (undefined)."
255
+ },
256
+ {
257
+ "claim_category": "behavior_claim",
258
+ "sources": [
259
+ "src",
260
+ "test/unit/spec"
261
+ ],
262
+ "requirement": "Ground every behavioral claim in source or test evidence.",
263
+ "notes": "Commit history is not an evidence source for this package. README.md is context only (docs/adr/0001-retain-product-readme.md). Transport, transform orchestration, storage gating, and cryptography are owned by the sibling packages webex-core and internal-plugin-encryption."
264
+ }
265
+ ],
266
+ "negative_guidance": [
267
+ {
268
+ "rule": "Do not reject an inbound transform because one field failed to decrypt.",
269
+ "why": "The downloader records error and warning properties per item; a rejection would fail a whole page of content."
270
+ },
271
+ {
272
+ "rule": "Do not add a payload predicate on a field name other plugins use.",
273
+ "why": "Predicates run on every request and response of the webex instance once this package is imported."
274
+ },
275
+ {
276
+ "rule": "Do not bypass getContentContainerByContainerId when decrypting activities.",
277
+ "why": "It reads the container cache first, which avoids a network call per activity."
278
+ },
279
+ {
280
+ "rule": "Do not drop paging options from the oneFlight keys.",
281
+ "why": "Paged requests must not share a flight with another page."
282
+ },
283
+ {
284
+ "rule": "Do not treat README.md as the method list or the way to run tests.",
285
+ "why": "Its usage block is a placeholder and its test commands do not match package.json; see docs/adr/0001-retain-product-readme.md."
286
+ },
287
+ {
288
+ "rule": "Do not run test:unit against a stale dist.",
289
+ "why": "The unit specs import the package by name, which resolves main (dist/index.js)."
290
+ },
291
+ {
292
+ "rule": "Do not infer a coverage threshold for this package.",
293
+ "why": "The developer confirmed no coverage gate applies; the legacy Jest config sets no threshold."
294
+ }
295
+ ],
296
+ "confidence_policy": {
297
+ "high": {
298
+ "action": "update",
299
+ "expectation": "Source and unit test evidence both support the change, and the behavior has a case in test/unit/spec."
300
+ },
301
+ "medium": {
302
+ "action": "narrow-scope",
303
+ "expectation": "Only source evidence exists, for example registration, the array transforms, container decryption, or requestWithRetries. Pin current behavior with a characterization test before modifying."
304
+ },
305
+ "low": {
306
+ "action": "noop",
307
+ "expectation": "Neither source nor tests settle the question. Stop and report the gap."
308
+ }
309
+ },
310
+ "repository_topology": {
311
+ "main_entrypoints": [
312
+ {
313
+ "name": "package entry",
314
+ "path": "src/index.js",
315
+ "purpose": "Imports the encryption and conversation plugins, registers the ediscovery plugin and its payload transformer, and re-exports the public bindings",
316
+ "notes": "No subpath exports."
317
+ }
318
+ ],
319
+ "workspace_packages": [
320
+ {
321
+ "name": "@webex/internal-plugin-ediscovery",
322
+ "paths": [
323
+ "src",
324
+ "test"
325
+ ],
326
+ "notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
327
+ }
328
+ ],
329
+ "source_surfaces": [
330
+ {
331
+ "name": "eDiscovery plugin",
332
+ "paths": [
333
+ "src"
334
+ ],
335
+ "notes": "index.js, ediscovery.js, transforms.js, retry.js, report-request.js, ediscovery-error.js, config.js. Specified at src/docs/README.md."
336
+ },
337
+ {
338
+ "name": "tests",
339
+ "paths": [
340
+ "test/unit/spec",
341
+ "test/integration/spec"
342
+ ],
343
+ "notes": "Three unit specs (122 cases) run by Jest through webex-legacy-tools. The integration spec needs a compliance test user and the live eDiscovery service and has no package script."
344
+ }
345
+ ],
346
+ "generated_surfaces": [
347
+ {
348
+ "name": "build output",
349
+ "paths": [
350
+ "dist"
351
+ ],
352
+ "generated_from": "src",
353
+ "refresh_with": "yarn workspace @webex/internal-plugin-ediscovery build:src",
354
+ "notes": "Produced by webex-legacy-tools. Do not edit by hand. The unit specs load it."
355
+ },
356
+ {
357
+ "name": "repo-standards template map",
358
+ "paths": [
359
+ "../../../.sdd/templates/repo-standards"
360
+ ],
361
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
362
+ "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.",
363
+ "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."
364
+ }
365
+ ],
366
+ "validation_entrypoints": [
367
+ {
368
+ "name": "unit tests",
369
+ "command": "yarn workspace @webex/internal-plugin-ediscovery test:unit",
370
+ "scope": "test/unit/spec",
371
+ "notes": "jest via webex-legacy-tools --runner jest; run build:src first."
372
+ },
373
+ {
374
+ "name": "lint",
375
+ "command": "yarn workspace @webex/internal-plugin-ediscovery test:style",
376
+ "scope": "src",
377
+ "notes": "eslint via the local .eslintrc.js; the shared ignore patterns skip src/ediscovery.js, and src/index.js disables every rule."
378
+ }
379
+ ],
380
+ "sync_paths": [
381
+ {
382
+ "source": "src/ediscovery.js",
383
+ "targets": [
384
+ "src/docs/README.md"
385
+ ],
386
+ "mechanism": "Manual; update the module specification in the same change that alters observable behavior.",
387
+ "notes": "src/transforms.js and src/index.js follow the same rule."
388
+ },
389
+ {
390
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
391
+ "targets": [
392
+ "../../../.sdd/templates/repo-standards"
393
+ ],
394
+ "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.",
395
+ "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."
396
+ }
397
+ ]
398
+ },
399
+ "folder_readme_contract": {
400
+ "required_sections": [
401
+ "purpose",
402
+ "boundaries",
403
+ "key-files",
404
+ "common-tasks"
405
+ ],
406
+ "rules": [
407
+ "Orient the reader before describing detail.",
408
+ "Link to the module specification rather than duplicating it."
409
+ ],
410
+ "example_policy": "Examples are allowed only when verified against src/ or test/.",
411
+ "fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
412
+ },
413
+ "regression_feedback_rules": [
414
+ {
415
+ "trigger": "A payload predicate or transform in src/index.js or src/transforms.js changes.",
416
+ "required_followups": [
417
+ "Add a case to test/unit/spec/transforms.js",
418
+ "Update MOD-001 and MOD-012 to MOD-020 in src/docs/README.md as affected"
419
+ ],
420
+ "notes": "The downloader relies on the error and warning properties."
421
+ },
422
+ {
423
+ "trigger": "A request method, its URL handling, its oneFlight key, or the container cache changes.",
424
+ "required_followups": [
425
+ "Add a case to test/unit/spec/content.js or test/unit/spec/report.js",
426
+ "Update MOD-002 to MOD-011 in src/docs/README.md as affected"
427
+ ],
428
+ "notes": "Activity decryption depends on the cache."
429
+ }
430
+ ],
431
+ "surface_owners": [
432
+ {
433
+ "surface": "module implementation and specifications",
434
+ "owner": "@webex/web-sdk",
435
+ "edit_boundary": "Owner per the monorepo .github/CODEOWNERS default rule; the package has no explicit entry."
436
+ }
437
+ ],
438
+ "do_not_edit": [
439
+ "dist",
440
+ "../../../.sdd/templates/repo-standards"
441
+ ],
442
+ "marker_scopes": {
443
+ "sdd": [
444
+ ".sdd/manifest.json",
445
+ "src/docs/README.md",
446
+ "docs"
447
+ ]
448
+ },
449
+ "fallback_rules": [
450
+ "When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
451
+ "When neither source nor tests settle a question, report it as a gap instead of inferring.",
452
+ "Commit history is not a valid rationale source for this package."
453
+ ],
454
+ "downstream_context_pack": {
455
+ "required_human_surfaces": [
456
+ "README.md",
457
+ "docs/index.md",
458
+ "docs/architecture.md",
459
+ "src/docs/README.md"
460
+ ],
461
+ "required_agent_operational_surfaces": [
462
+ "AGENTS.md",
463
+ "docs/specs/README.md"
464
+ ],
465
+ "required_machine_readable_surface": ".sdd/manifest.json",
466
+ "recommended_machine_readable_sections": [
467
+ "public_interfaces",
468
+ "change_impact",
469
+ "evidence_rules",
470
+ "negative_guidance",
471
+ "confidence_policy",
472
+ "repository_topology",
473
+ "folder_readme_contract",
474
+ "regression_feedback_rules"
475
+ ]
476
+ }
477
+ }