WikiIndexDocumentUpsertedPayload wiki.index_document.upserted@1
Generated at from
openvibe-contracts v0.33.0 and
openvibe-sdk v0.5.0.
- Version
- 1.0.0
- Owner
- wiki
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/events/payloads/wiki.index_document.upserted.v1.json
wiki.index_document.upserted v1 (OpenVibe.Wiki server/wiki/service.js sync, via openvibe-publishing/index-hooks indexEvent). The OpenVibe.Search document of a published, public, listable page, sent whenever what Search should hold changed (the revision grows with every change). Consumed by OpenVibe.Search ('*.index_document.*'). Envelope: subject { type: page, id, revision: <document revision> }, visibility internal, priority important, actor service:wiki.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: page
{
"owner": "wiki",
"type": "page",
"id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
"revision": 3,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.wiki/w/food/ramen",
"title": "Ramen",
"summary": "Noodle soup.",
"body": "Ramen is a noodle soup.",
"facets": {
"space": "food",
"space_kind": "user"
},
"authorship": "human",
"provenance": [
{
"service": "sources",
"type": "item",
"id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPX",
"retrieved_at": "2026-09-22T12:00:00.000Z"
}
],
"publication_state": "published",
"published_at": "2026-09-22T12:00:00.000Z",
"updated_at": "2026-09-23T08:00:00.000Z",
"indexability": {
"decision": "index",
"reasons": []
}
}Rejected: other-owner
{
"owner": "blog",
"type": "page",
"id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
"revision": 3,
"deleted": false,
"visibility": "public",
"canonical_url": "https://openvibe.wiki/w/food/ramen",
"title": "Ramen",
"publication_state": "published",
"indexability": {
"decision": "index",
"reasons": []
}
}Rejected: tombstone-as-upsert
{
"owner": "wiki",
"type": "page",
"id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPR",
"revision": 4,
"deleted": true
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('wiki.index_document.upserted@1', value); // { valid, errors: [{ path, message }] }