ToursIndexDocumentDeletedPayload tours.index_document.deleted@1

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

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

tours.index_document.deleted v1 (OpenVibe.Tours server/search-index.js, via openvibe-publishing/search-feed). A Search tombstone for a Tours page (a place, a city or a walk) that is no longer listed or whose row is gone. Only sent for a page Search was sent before, and only when the tombstone's revision moved. Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type, id, revision }, visibility internal, actor service:tours.

Fields

FieldTypeRequiredDescriptionConstraints
typeenumyes
  • one of "place", "city", "route"
idstringyes
  • pattern ^((plc|rte)_[0-9A-HJKMNP-TV-Z]{26}|[a-z0-9][a-z0-9-]{0,89})$
revisionintegeryesIndex revision of the tombstone; wins over any document at the same or an older revision.
  • minimum 1
  • maximum 9007199254740991

Examples

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

Valid: tombstone
{
  "type": "city",
  "id": "chongqing",
  "revision": 3
}
Rejected: full-document
{
  "owner": "tours",
  "visibility": "public",
  "authorship": "imported",
  "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,
  "type": "place",
  "id": "plc_00XKTK1QC3YQG6T8HQ6VVGESWT",
  "canonical_url": "https://openvibe.tours/place/plc_00XKTK1QC3YQG6T8HQ6VVGESWT",
  "title": "Hongya Cave",
  "summary": "An attraction in Chongqing, China. Free to visit; step-free.",
  "body": "Hongya Cave\nAttraction in Chongqing, China",
  "facets": {
    "city": "chongqing",
    "country": "China",
    "kind": "attraction"
  }
}
Rejected: other-type
{
  "type": "quest",
  "id": "chongqing",
  "revision": 3
}

Validate

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