ReportMeStatsPublish report.me-stats-publish@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- report
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/report/me-stats-publish.v1.json
report.me-stats-publish@1: the body of PUT /api/v1/me/stats/published, the person's per-section switch (the owner, 2026-11-09: 'you can make them public if you want, but private by default'). Every switch is named, so a request can never leave one to chance; the route answers the same report.me-stats@1 document, recomputed at that moment.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
published | object | yes |
| |
published.sites | boolean | yes | ||
published.activity | boolean | yes | ||
published.made | boolean | yes | ||
published.ai | boolean | yes | ||
published.money | boolean | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: all
{
"published": {
"sites": true,
"activity": false,
"made": true,
"ai": false,
"money": false
}
}Rejected: missing-ai
{
"published": {
"sites": true,
"activity": true,
"made": true,
"money": false
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('report.me-stats-publish@1', value); // { valid, errors: [{ path, message }] }