WikiRevision wiki.revision@1

Generated at from openvibe-contracts v0.53.0 and openvibe-sdk v0.11.0.

Version
1.0.0
Owner
wiki
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/wiki/revision.v1.json

wiki.revision@1: one revision of a wiki page (server/http/api.js serializeRevision): its number, kind, parent, fields, Markdown body and authorship (human, AI-assisted or AI with the workflow and run). History lists leave the body out.

Fields

FieldTypeRequiredDescriptionConstraints
numberintegeryes
  • minimum 1
idstringyes
kindstringyes
parent_numberinteger | null
reverted_tointeger | null
titlestringyes
summarystring | null
infoboxarray
bodystring
authorshipobject | null
authorstring | nullyes
messagestring | null
created_atstring | integeryes
publishedboolean
citation_countinteger
proposalobject | null

Examples

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

Valid: edit
{
  "number": 3,
  "id": "rev_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "kind": "edit",
  "parent_number": 2,
  "reverted_to": null,
  "title": "Restreaming",
  "summary": "Sending one stream to several platforms.",
  "infobox": [],
  "body": "Restreaming sends one encoder feed to several platforms.",
  "authorship": {
    "mode": "human"
  },
  "author": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "message": "clarify",
  "created_at": "2026-09-24T10:00:00.000Z"
}
Rejected: zero
{
  "number": 0,
  "id": "x",
  "kind": "edit",
  "title": "t",
  "author": null,
  "created_at": "x"
}

Validate

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