@helyx/module-moderation 1.0.1
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/CHANGELOG.md +41 -0
- package/LICENSE +725 -0
- package/README.md +107 -0
- package/dist/action-support.d.ts +48 -0
- package/dist/action-support.js +201 -0
- package/dist/case-actions.d.ts +9 -0
- package/dist/case-actions.js +311 -0
- package/dist/case-naming.d.ts +4 -0
- package/dist/case-naming.js +9 -0
- package/dist/case-repository.d.ts +29 -0
- package/dist/case-repository.js +199 -0
- package/dist/channel-actions.d.ts +3 -0
- package/dist/channel-actions.js +267 -0
- package/dist/commands.d.ts +4 -0
- package/dist/commands.js +309 -0
- package/dist/components.d.ts +15 -0
- package/dist/components.js +381 -0
- package/dist/configuration.d.ts +16 -0
- package/dist/configuration.js +94 -0
- package/dist/constants.d.ts +53 -0
- package/dist/constants.js +53 -0
- package/dist/contracts.d.ts +109 -0
- package/dist/contracts.js +84 -0
- package/dist/domain.d.ts +29 -0
- package/dist/domain.js +101 -0
- package/dist/events.d.ts +3 -0
- package/dist/events.js +60 -0
- package/dist/health.d.ts +10 -0
- package/dist/health.js +56 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +92 -0
- package/dist/moderation-cases-resource.d.ts +14 -0
- package/dist/moderation-cases-resource.js +226 -0
- package/dist/presentation.d.ts +8 -0
- package/dist/presentation.js +69 -0
- package/dist/privacy.d.ts +8 -0
- package/dist/privacy.js +38 -0
- package/dist/provider.d.ts +4 -0
- package/dist/provider.js +335 -0
- package/dist/receipt-repository.d.ts +9 -0
- package/dist/receipt-repository.js +36 -0
- package/dist/records.d.ts +399 -0
- package/dist/records.js +303 -0
- package/dist/repository-model.d.ts +131 -0
- package/dist/repository-model.js +318 -0
- package/dist/repository.d.ts +21 -0
- package/dist/repository.js +41 -0
- package/dist/service.d.ts +75 -0
- package/dist/service.js +329 -0
- package/dist/tasks.d.ts +49 -0
- package/dist/tasks.js +391 -0
- package/dist/thread-controls.d.ts +23 -0
- package/dist/thread-controls.js +376 -0
- package/dist/thread-deletion-recovery.d.ts +13 -0
- package/dist/thread-deletion-recovery.js +46 -0
- package/dist/thread-delivery.d.ts +11 -0
- package/dist/thread-delivery.js +427 -0
- package/dist/thread-reconciliation.d.ts +24 -0
- package/dist/thread-reconciliation.js +181 -0
- package/dist/thread-repository.d.ts +16 -0
- package/dist/thread-repository.js +70 -0
- package/manifest.json +999 -0
- package/migrations/0001_moderation_foundation.sql +552 -0
- package/migrations/0002_staff_attempt_parameters.sql +27 -0
- package/package.json +56 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
First public release preserves the previously applied unpublished `1.0.1` migration watermark. This is a retained-version exception, not another version increment; downgrading to `1.0.0` would prevent safe startup against existing installations.
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- Add separately permission-checked Close and delete controls after staff resolution, including deletion of an already-closed thread from the dashboard. Preserve nondestructive Close, exact bot-owned private-thread binding, access-role cleanup, case records and immutable audit history; retain explicit retry/reconciliation for uncertain deletion.
|
|
10
|
+
|
|
11
|
+
- Add five selectable thread-message layouts with a fictional dashboard preview. Keep evidence and staff controls in the same first message where Discord's text budget allows, preserve existing-case layouts during control refresh, and deliver overflow evidence separately without truncation.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @helyx/module-manifest@0.11.0
|
|
15
|
+
- @helyx/sdk@0.13.0
|
|
16
|
+
|
|
17
|
+
- Add bounded individual staff notification users alongside roles, with fresh server-membership validation, least-privilege parent access, private-thread invitations and explicit mention allowlists. Pair thread setup and notification settings in responsive half-width groups.
|
|
18
|
+
|
|
19
|
+
- Add permission-checked dashboard Mute, Unmute, Kick, Ban, Demote, No Further Action and conditional Close thread actions, with durable attempt parameters and recovery that never repeats uncertain enforcement.
|
|
20
|
+
- Combine mentions, configurable opening text and buttons in the first thread message; show the rule name, honest confidence information and original message text in the chosen violation layout.
|
|
21
|
+
- Explain private-note availability and preserve opening text when refreshing staff controls.
|
|
22
|
+
|
|
23
|
+
- Recover the Close control after a confirmed staff resolution if Discord fails to edit the buttons, without repeating the moderation action.
|
|
24
|
+
|
|
25
|
+
- Add a configurable case-name prefix, pad displayed case titles and new thread numbers to at least three digits, and keep operation hashes out of new case thread names while preserving legacy and restart recovery.
|
|
26
|
+
|
|
27
|
+
- Place moderator and subject mentions above the opening message, followed by a violation embed with the original channel/message reference and captured evidence; omit User Details and preserve staff-control behaviour.
|
|
28
|
+
|
|
29
|
+
- Allow bounded transient evidence to survive the Discord role and private-thread setup calls while retaining the five-second admission deadline and no persisted content.
|
|
30
|
+
|
|
31
|
+
- Fix nullable thread and warning-DM receipt writes through the platform record service.
|
|
32
|
+
- Preserve existing thread identities during concurrent creation and clear stale retry markers after recovery.
|
|
33
|
+
- Remove explicitly blocked Enhanced messages independently of the selected offence action and expose secondary delivery failures safely.
|
|
34
|
+
|
|
35
|
+
- Preserve the full bounded channel permission checklist through API action and inspection responses instead of reporting configuration as unavailable.
|
|
36
|
+
|
|
37
|
+
- Remove the duplicate severity-level thread switches; integrated rules own the thread decision.
|
|
38
|
+
- Allow staged channel setup and return actionable configuration validation errors.
|
|
39
|
+
- Verify channel configuration against fresh Discord state, prevent self-lockout and explain partial failures safely.
|
|
40
|
+
|
|
41
|
+
- Initial public Moderation release, including the accountable action and case foundations.
|