NetworkMachineRevokedPayload network.machine.revoked@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
network
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/events/payloads/network.machine.revoked.v1.json

network.machine.revoked v1 (OpenVibe.Network, plan L34: the machines hub). A machine of a person was revoked: it is no longer theirs and its credential is dead. The machine's credential and its hash are never carried. A second revoke changes nothing and emits nothing. Envelope: subject { type: machine, id: <dev_…> }, visibility internal, actor service:network.

Fields

FieldTypeRequiredDescriptionConstraints
machine_idstringyes
  • pattern ^dev_[0-9A-HJKMNP-TV-Z]{26}$
principal_idstringThe machine's node principal on Network, when it had one.
  • pattern ^lnk_[0-9A-HJKMNP-TV-Z]{26}$
ownerstringyesThe person the machine belonged to.
  • pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$
reasonstringWhy it was revoked, when the caller gave one. Absent otherwise.
  • minLength 1
  • maxLength 500
atstringyes
  • format date-time

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: revoked
{
  "machine_id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "principal_id": "lnk_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "owner": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "reason": "the owner removed it",
  "at": "2026-10-31T09:00:00.000Z"
}
Rejected: missing-owner
{
  "machine_id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "at": "2026-10-31T09:00:00.000Z"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('network.machine.revoked@1', value);   // { valid, errors: [{ path, message }] }