CommunityModerationResult community.moderation-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- community
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/community/moderation-result.v1.json
community.moderation-result@1: answers of the discussion moderation routes on OpenVibe.Community. PUT …/comments/threads/:id/visibility → { thread } (a comment thread: id, access_id, ref, visibility, comment_count); PUT …/threads/:slug/state → { thread } (a forum thread); PUT /api/v1/posts/:id → { post }; DELETE /api/v1/comments/:commentId and DELETE /api/v1/posts/:id → { ok, id }; deleting a thread (or its opening post) → { ok, id, deleted: 'thread' }; relay: GET /deliveries → { enabled, deliveries }, GET /mappings → { enabled, mappings }, POST|PUT /mappings → { mapping }, POST /deliveries/:id/retry → { ok }. Relay answers never carry a webhook URL.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: comment-thread
{
"thread": {
"id": 311,
"access_id": "cth_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"ref": {
"service": "live",
"type": "vod",
"id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"visibility": "locked",
"comment_count": 14,
"created_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-09-25T18:00:00.000Z"
}
}Valid: mapping
{
"mapping": {
"id": 3,
"space": "announcements",
"direction": "out",
"webhook_url_ref": "DISCORD_WEBHOOK_ANNOUNCEMENTS",
"webhook_configured": true,
"enabled": true,
"created_at": "2026-09-25T18:00:00.000Z"
}
}Valid: thread-deleted
{
"ok": true,
"id": 77,
"deleted": "thread"
}Rejected: not-ok
{
"ok": false
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('community.moderation-result@1', value); // { valid, errors: [{ path, message }] }