ChatSiteDailyResult chat.site-daily-result@1
Generated at from
openvibe-contracts v0.107.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/site-daily-result.v1.json
chat.site-daily-result@1: the answer of POST /internal/chat/stats with kind site-daily on OpenVibe.Chat (capability chat.stats.read), for OpenVibe.Live's home series: every non-deleted message across all channels and the distinct chatters (COALESCE(user_id, anon_id, source_platform || username)) per UTC day in [since, until), one entry per day with zero-filled gaps, at most 400 days. 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: two-days
{
"ok": true,
"days": [
{
"day": "2026-10-03",
"messages": 1834,
"chatters": 96
},
{
"day": "2026-10-04",
"messages": 0,
"chatters": 0
}
]
}Rejected: negative-messages
{
"days": [
{
"day": "2026-10-03",
"messages": -1,
"chatters": 96
}
]
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('chat.site-daily-result@1', value); // { valid, errors: [{ path, message }] }