CommunityPulseWriteRequest community.pulse-write-request@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.0.0
- Owner
- community
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/community/pulse-write-request.v1.json
community.pulse-write-request@1: the body of POST /api/v1/pulse/items on OpenVibe.Community (community.pulse.write; service tokens only): an item about one of the calling service's own entities, with a title and an absolute http(s) URL. Optional media carries an HTTPS thumbnail, preview video, aspect ratio and duration for Feed cards. Visibility is public by default; followers requires origin user and X-OV-Subject and is shown only to that person's followers. Private, unlisted and members items are refused. The same ref updates the item. DELETE /api/v1/pulse/items/:service/:type/:id retracts it.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: clip
{
"ref": {
"service": "live",
"type": "clip",
"id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"title": "Alice clipped a clean 1v3",
"url": "https://openvibe.live/clip/med_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"origin": "user",
"occurred_at": "2026-09-25T18:00:00Z",
"visibility": "public",
"media": {
"thumb": "https://openvibe.media/clip.webp",
"preview": "https://openvibe.media/clip.mp4",
"ratio": 1.7778,
"length": 22
}
}Valid: retract
{}Rejected: bad-ref-and-url
{
"ref": {
"service": "live",
"type": "clip"
},
"title": "t",
"url": "ftp://x"
}Rejected: http-media
{
"ref": {
"service": "live",
"type": "clip",
"id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"title": "Bad clip media",
"url": "https://openvibe.live/clip/1",
"media": {
"thumb": "http://openvibe.media/clip.webp",
"ratio": 1.7
}
}Rejected: not-public
{
"ref": {
"service": "live",
"type": "clip",
"id": "x"
},
"title": "t",
"url": "https://openvibe.live/clip/x",
"visibility": "unlisted"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('community.pulse-write-request@1', value); // { valid, errors: [{ path, message }] }