NetworkPresenceChangedPayload network.presence.changed@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.presence.changed.v1.json

network.presence.changed v1 (OpenVibe.Network server/presence; plan 2026-10-22 track X item 9). A person's public presence changed: their chosen state, status line, emoji, the show_status switch, or the derived online/away/offline state. OpenVibe.Network writes it to its outbox beside the presence row, at most once per person per 30 seconds (the debounce), and only for a real change. The payload is the public view in network.presence@1: invisible and show_status off are sent as offline with no status text or emoji, so the event never carries what the person hid. Envelope: subject { type: user, id: <usr_…> }, visibility internal, actor the person. A presence change is not a reason to notify anyone.

Fields

FieldTypeRequiredDescriptionConstraints
subjectstringyes
  • pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$
stateenumyesThe public state. Never invisible: an invisible person is sent as offline, without their status text or emoji.
  • one of "online", "away", "dnd", "offline"
status_textstring | null
  • maxLength 80
emojistring | null
  • maxLength 16
livebooleanStreaming on OpenVibe.Live now; false while invisible or with show_status off.
  • default false
updated_atstringyes
  • format date-time

Examples

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

Valid: offline
{
  "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "state": "offline",
  "status_text": null,
  "emoji": null,
  "live": false,
  "updated_at": "2026-11-07T09:00:00.000Z"
}
Valid: online
{
  "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "state": "online",
  "status_text": "Building presence",
  "emoji": "🟢",
  "live": true,
  "updated_at": "2026-11-07T09:00:00.000Z"
}
Rejected: bad-subject
{
  "subject": "ann",
  "state": "online",
  "updated_at": "2026-11-07T09:00:00.000Z"
}
Rejected: invisible
{
  "subject": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "state": "invisible",
  "updated_at": "2026-11-07T09:00:00.000Z"
}

Validate

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