BotTurnStartedPayload bot.turn.started@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.0.0
- Owner
- bot
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-043
- Schema
https://openvibe.network/contracts/events/payloads/bot.turn.started.v1.json
bot.turn.started v1 (OpenVibe.Bot server/domain/index.js currentTurn). A queue robot's next person in line got their turn. It never names the person (no member ever learns the active driver's subject): guest says whether a signed-out viewer holds it. Envelope: subject { type: robot, id: <robot id> }, visibility internal, priority normal, actor service:bot.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
robot_id | string | yes |
| |
owner | string | The robot owner's user subject. |
| |
ends_at | string | yes | When the turn ends unless it pauses (an owner's takeover, or the robot not ready). |
|
guest | boolean | yes | A signed-out viewer holds the turn (the owner let guests take turns). | |
waiting | integer | yes | How many people are still in line. |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: guest
{
"robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
"owner": "usr_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
"ends_at": "2026-11-23T21:40:00.000Z",
"guest": true,
"waiting": 2
}Rejected: names-the-person
{
"robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
"ends_at": "2026-11-23T21:40:00.000Z",
"guest": false,
"waiting": 0,
"subject": "usr_01J8Z4M2Q0R7T9YV3K6N8P1W2X"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('bot.turn.started@1', value); // { valid, errors: [{ path, message }] }