---
title: "live.element.state@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/live.element.state"
updated: null
---

# live.element.state@1 · OpenVibe.Services

HTML: [live.element.state@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/live.element.state)

# LiveElementStatePayload `live.element.state@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: live
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/live.element.state.v1.json`](/docs/contracts/live.element.state.json)

live.element.state v1 (OpenVibe.Live server/elements): an element's own store changed, broadcast to everyone watching through Live's existing events path. Carries the channel's public facts and the same store as ui.element-state@1: the element instance, a revision that grows by one per accepted change, the values themselves and when. It is public state (a counter, a score, a wheel's entries), never the presser's data: a value may not be an object, a markup string or a URL, and the payload carries no account.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `channel` | object | yes |  | - `no other fields` |
| `channel.username` | string | yes |  | - `pattern ^[A-Za-z0-9_][A-Za-z0-9_.-]{0,63}$` |
| `channel.display_name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `element_id` | string | yes |  | - `pattern ^el_[0-9A-HJKMNP-TV-Z]{26}$` |
| `revision` | integer | yes |  | - `minimum 0` |
| `values` | `https://openvibe.network/contracts/ui/element-state.v1.json#/$defs/values` | yes |  |  |
| `updated_at` | string | yes |  | - `format date-time` |

## Examples

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

 Valid: state

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "element_id": "el_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "revision": 4,
  "values": {
    "dances": 3,
    "last_presser": "Maticus",
    "wheel": [
      "a",
      "b",
      3
    ],
    "lit": true
  },
  "updated_at": "2026-11-11T20:31:00.000Z"
}
~~~~

Rejected: nested-value

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "element_id": "el_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "revision": 1,
  "values": {
    "wheel": {
      "entries": [
        "a"
      ]
    }
  },
  "updated_at": "2026-11-11T20:31:00.000Z"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('live.element.state@1', value);   // { valid, errors: [{ path, message }] }
~~~~
