ReportIndexDocumentUpsertedPayload report.index_document.upserted@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
report
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/events/payloads/report.index_document.upserted.v1.json

report.index_document.upserted v1 (OpenVibe.Report server/search-index.js, via openvibe-publishing/search-feed). The OpenVibe.Search document of a Rundown topic page (type topic, /rundown/t/<slug>, the slug as the id): the topic's title, headline and summary of what streamers said about it, from OpenVibe.Live's Rundown. Live's own topic pages are noindex; Report's are the public copy. Sent by the sweep at boot and on a timer; a topic that left the Rundown becomes a tombstone. The sequencer (report_index_revisions) gives an unchanged document its old revision and nothing is sent. Always visibility public and publication_state published. Facets: kind, takes. Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type, id, revision }, visibility internal, actor service:report.

Fields

This schema has no named fields.

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: noindex
{
  "visibility": "public",
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "noindex",
    "reasons": [
      "thin_content"
    ]
  },
  "deleted": false,
  "revision": 1,
  "owner": "report",
  "type": "topic",
  "id": "taking-a-break",
  "canonical_url": "https://openvibe.report/rundown/t/taking-a-break",
  "title": "Taking a break",
  "summary": "Streamers debate stepping away: fresh air, robot faces and emotional breaks.",
  "body": "Taking a break\nStreamers debate stepping away.",
  "facets": {
    "kind": "life",
    "takes": 4
  }
}
Valid: topic
{
  "visibility": "public",
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "deleted": false,
  "revision": 1,
  "owner": "report",
  "type": "topic",
  "id": "taking-a-break",
  "canonical_url": "https://openvibe.report/rundown/t/taking-a-break",
  "title": "Taking a break",
  "summary": "Streamers debate stepping away: fresh air, robot faces and emotional breaks.",
  "body": "Taking a break\nStreamers debate stepping away.",
  "facets": {
    "kind": "life",
    "takes": 4
  }
}
Rejected: bad-id
{
  "visibility": "public",
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "deleted": false,
  "revision": 1,
  "owner": "report",
  "type": "topic",
  "id": "Not A Slug",
  "canonical_url": "https://openvibe.report/rundown/t/taking-a-break",
  "title": "Taking a break",
  "summary": "Streamers debate stepping away: fresh air, robot faces and emotional breaks.",
  "body": "Taking a break\nStreamers debate stepping away.",
  "facets": {
    "kind": "life",
    "takes": 4
  }
}
Rejected: other-owner
{
  "visibility": "public",
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "deleted": false,
  "revision": 1,
  "owner": "rent",
  "type": "topic",
  "id": "taking-a-break",
  "canonical_url": "https://openvibe.report/rundown/t/taking-a-break",
  "title": "Taking a break",
  "summary": "Streamers debate stepping away: fresh air, robot faces and emotional breaks.",
  "body": "Taking a break\nStreamers debate stepping away.",
  "facets": {
    "kind": "life",
    "takes": 4
  }
}
Rejected: other-type
{
  "visibility": "public",
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "deleted": false,
  "revision": 1,
  "owner": "report",
  "type": "episode",
  "id": "taking-a-break",
  "canonical_url": "https://openvibe.report/rundown/t/taking-a-break",
  "title": "Taking a break",
  "summary": "Streamers debate stepping away: fresh air, robot faces and emotional breaks.",
  "body": "Taking a break\nStreamers debate stepping away.",
  "facets": {
    "kind": "life",
    "takes": 4
  }
}
Rejected: tombstone-as-upsert
{
  "owner": "report",
  "type": "topic",
  "id": "taking-a-break",
  "revision": 2,
  "deleted": true
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('report.index_document.upserted@1', value);   // { valid, errors: [{ path, message }] }