NetworkMachineOfflinePayload network.machine.offline@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.offline.v1.json

network.machine.offline v1 (OpenVibe.Network, plan L34: the machines hub). A machine of a person went offline: it is no longer connected to Bot. Network republishes Bot's change, so a consumer of the network's events hears about a machine once, in one place. 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 has one.
  • pattern ^lnk_[0-9A-HJKMNP-TV-Z]{26}$
ownerstringyesThe person the machine belongs to.
  • pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$
atstringyes
  • format date-time

Examples

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

Valid: machine
{
  "machine_id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "principal_id": "lnk_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "owner": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "at": "2026-10-31T09:00:00.000Z"
}
Rejected: bad-owner
{
  "machine_id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "principal_id": "lnk_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "owner": "usr_x",
  "at": "2026-10-31T09:00:00.000Z"
}

Validate

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