GamesIndexDocumentDeletedPayload games.index_document.deleted@1

Generated at from openvibe-contracts v0.221.0 and openvibe-sdk v0.65.0.

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

games.index_document.deleted v1 (OpenVibe.Games apps/server/src/worlds/searchIndex.ts, via openvibe-publishing/search-feed). A Search tombstone for a creator world page (/worlds/<id>) that is no longer published (unpublished, taken down by staff, or deleted). 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: world, id, revision }, visibility internal, actor service:games.

Fields

FieldTypeRequiredDescriptionConstraints
typeconstyes
  • = "world"
idstringyes
  • pattern ^w[0-9a-z]{10}$
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": "world",
  "id": "wk3j9x0a2bq",
  "revision": 2
}
Rejected: full-document
{
  "owner": "games",
  "type": "world",
  "id": "wk3j9x0a2bq",
  "revision": 1,
  "deleted": false,
  "visibility": "public",
  "canonical_url": "https://openvibe.games/worlds/wk3j9x0a2bq",
  "title": "Moon base",
  "summary": "A low-gravity base on a crater rim, built by kim.",
  "body": "Moon base\nA low-gravity base on a crater rim, built by kim.\nA creator world on OpenVibe.Games: join it from your browser.",
  "facets": {
    "kind": "creator_world",
    "owner": "kim"
  },
  "authorship": "human",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-15T23:00:00.000Z",
  "updated_at": "2026-10-15T23:30:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
Rejected: other-type
{
  "type": "quest",
  "id": "wk3j9x0a2bq",
  "revision": 2
}

Validate

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