ChatTimelineResult chat.timeline-result@1
Generated at from
openvibe-contracts v0.97.0 and
openvibe-sdk v0.26.0.
- Version
- 1.0.0
- Owner
- chat
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/chat/timeline-result.v1.json
chat.timeline-result@1: the answer of GET /internal/chat/timeline on OpenVibe.Chat (capability chat.analysis.read): non-deleted chat_messages of one channel (channel_user_id) or stream (stream_id) counted per bucket between since and until (epoch ms), bucket_ms wide, for OpenVibe.Live's AI moments, chat spikes and activity. Empty buckets are left out; buckets are oldest first. max_id is the highest message id in the window, null when none. A failure is chat.ingress-ack@1's error.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: buckets
{
"buckets": [
{
"t": 1759612440000,
"count": 12
},
{
"t": 1759612500000,
"count": 31
}
],
"max_id": 90214
}Valid: quiet
{
"buckets": [],
"max_id": null
}Rejected: bucket-without-t
{
"buckets": [
{
"count": 12
}
],
"max_id": 90214
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('chat.timeline-result@1', value); // { valid, errors: [{ path, message }] }