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

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

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

# LiveElementPressedPayload `live.element.pressed@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.pressed.v1.json`](/docs/contracts/live.element.pressed.json)

live.element.pressed v1 (OpenVibe.Live server/elements): a viewer's element press was accepted and ran. It carries the public facts the stream should see: the channel, the element's id and name, the presser's public name and subject, the trigger that fired, the channel points it cost and the element-state revision it left behind. It never carries the presser's email, address, account balance or anything private; a refused press does not produce it. Envelope: subject { type: element, id: el\_… }, actor the presser's subject, visibility public, priority low. Also written to the channel's AI timeline as a moment, so the stream's own timeline can cite 'chat made the robot dance'.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `channel` | object | yes | The public channel facts (the channel page is public already). | - `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}$` |
| `element_name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `presser` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `presser_name` | string | yes | The display name the stream shows, never an email or an account id. | - `minLength 1`<br>- `maxLength 120` |
| `trigger` | [ui.trigger](/docs/contracts/ui.trigger) | yes |  |  |
| `points_spent` | integer |  | Channel points the press cost; 0 when it was free. | - `minimum 0` |
| `state_revision` | integer |  | The element-state revision after the actions ran; 0 when the element has no state yet. | - `minimum 0` |
| `at` | string | yes |  | - `format date-time` |

## Examples

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

 Valid: chat-command

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "element_id": "el_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "element_name": "Headlight tally",
  "presser": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "presser_name": "Maticus",
  "trigger": {
    "kind": "chat_command",
    "command": "!headlights"
  },
  "points_spent": 0,
  "state_revision": 2,
  "at": "2026-11-11T20:31:00.000Z"
}
~~~~

Valid: press

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "element_id": "el_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "element_name": "Make it dance",
  "presser": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "presser_name": "Maticus",
  "trigger": {
    "kind": "press"
  },
  "points_spent": 50,
  "state_revision": 4,
  "at": "2026-11-11T20:31:00.000Z"
}
~~~~

Rejected: bad-presser

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "element_id": "el_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "element_name": "Make it dance",
  "presser": {
    "type": "user",
    "id": "alice"
  },
  "presser_name": "Alice",
  "trigger": {
    "kind": "press"
  },
  "at": "2026-11-11T20:31:00.000Z"
}
~~~~

Rejected: missing-element

~~~~
{
  "channel": {
    "username": "ada",
    "display_name": "Ada"
  },
  "presser": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "presser_name": "Maticus",
  "trigger": {
    "kind": "press"
  },
  "at": "2026-11-11T20:31:00.000Z"
}
~~~~

## Validate

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