MediaIndexDocumentUpsertedPayload media.index_document.upserted@1
Generated at from
openvibe-contracts v0.44.0 and
openvibe-sdk v0.9.1.
- Version
- 1.0.0
- Owner
- media
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/events/payloads/media.index_document.upserted.v1.json
media.index_document.upserted v1 (OpenVibe.Media; roadmap WS-O task 10). The OpenVibe.Search document of A public, playable VOD or clip page on openvibe.media (readiness playable, visibility public). Sent whenever what Search should hold changed; a VOD or clip that is deleted, made private or stops being playable gets a tombstone. The revision grows with every change. Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type, id, revision: <document revision> }, visibility internal, actor service:media.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: vod
{
"owner": "media",
"type": "vod",
"id": "5628",
"revision": 2,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.media/v/5628",
"title": "Late night build stream",
"summary": "A VOD from alex's channel.",
"facets": {
"channel": "alex",
"duration_seconds": 3600
},
"authorship": "human",
"publication_state": "published",
"published_at": "2026-09-25T02:00:00.000Z",
"indexability": {
"decision": "index"
}
}Rejected: wrong-owner
{
"owner": "live",
"type": "vod",
"id": "5628",
"revision": 2,
"deleted": false,
"visibility": "public",
"title": "x",
"publication_state": "published",
"indexability": {
"decision": "index"
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('media.index_document.upserted@1', value); // { valid, errors: [{ path, message }] }