NetworkBlockChangedPayload network.block.changed@1
Generated at from
openvibe-contracts v0.51.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/events/payloads/network.block.changed.v1.json
network.block.changed v1 (OpenVibe.Network; roadmap WS-E task 5). A person blocked or unblocked someone. Blocks are the network's: kept by Network, keyed by subjects, and honoured by every product — Chat (no DM, no mention notification from someone who blocked you), Community (no reply to their threads or comments) and notifications (none from a person the recipient blocked). Written to Network's outbox in the transaction that changes the block. Consumers keep a projection and apply the latest `revision` per (blocker, blocked); a service may also read the current list at GET /internal/blocks (network.blocks.read). Envelope: subject { type: user, id: <blocker> }, visibility internal, actor the blocker.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
blocker | string | yes | Who blocked. |
|
blocked | string | yes | Who is blocked. |
|
active | boolean | yes | true: blocked; false: unblocked. | |
revision | integer | yes | Grows with every change of this pair; a consumer ignores an older one. |
|
at | string |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: block
{
"blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"blocked": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
"active": true,
"revision": 1,
"at": "2026-09-25T22:00:00.000Z"
}Valid: unblock
{
"blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"blocked": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
"active": false,
"revision": 2
}Rejected: not-a-subject
{
"blocker": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"blocked": "bob",
"active": true,
"revision": 1
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('network.block.changed@1', value); // { valid, errors: [{ path, message }] }