@molecule/api-ai-moderation-pipeline 1.0.4 → 1.0.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/README.md +3 -4
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-11-25T20:13:19.676Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-ai-moderation-pipeline
|
|
@@ -38,7 +38,7 @@ if (decision.action === 'flag') void notifyMods(decision)
|
|
|
38
38
|
## Installation
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npm install @molecule/api-ai-moderation-pipeline @molecule/api-ai @molecule/api-
|
|
41
|
+
npm install @molecule/api-ai-moderation-pipeline @molecule/api-ai @molecule/api-database @molecule/api-i18n @molecule/api-logger @molecule/api-middleware-validation
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## API
|
|
@@ -229,6 +229,7 @@ function moderate(opts: {
|
|
|
229
229
|
policy?: ModerationPolicy
|
|
230
230
|
ownerId?: string | null
|
|
231
231
|
resource?: { type: string; id: string }
|
|
232
|
+
/** Whether to write the audit log row. Defaults to true. */
|
|
232
233
|
audit?: boolean
|
|
233
234
|
}): Promise<ModerationDecision>
|
|
234
235
|
```
|
|
@@ -249,7 +250,6 @@ const DEFAULT_POLICY: ModerationPolicy
|
|
|
249
250
|
|
|
250
251
|
Peer dependencies:
|
|
251
252
|
|
|
252
|
-
- `@molecule/api-bonds-default-express` ^1.0.1
|
|
253
253
|
- `@molecule/api-database` ^1.0.1
|
|
254
254
|
- `@molecule/api-i18n` ^1.0.1
|
|
255
255
|
- `@molecule/api-logger` ^1.0.1
|
|
@@ -259,7 +259,6 @@ Peer dependencies:
|
|
|
259
259
|
### Runtime Dependencies
|
|
260
260
|
|
|
261
261
|
- `@molecule/api-ai`
|
|
262
|
-
- `@molecule/api-bonds-default-express`
|
|
263
262
|
- `@molecule/api-database`
|
|
264
263
|
- `@molecule/api-i18n`
|
|
265
264
|
- `@molecule/api-logger`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-ai-moderation-pipeline",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "Classify + policy match + action + audit log",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/api-ai-moderation-pipeline",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"vitest": "4.1.12"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@molecule/api-bonds-default-express": "^1.0.1",
|
|
47
46
|
"@molecule/api-database": "^1.0.1",
|
|
48
47
|
"@molecule/api-i18n": "^1.0.1",
|
|
49
48
|
"@molecule/api-logger": "^1.0.1",
|