---
title: "wiki.revision.created@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/wiki.revision.created"
updated: null
---

# wiki.revision.created@1 · OpenVibe.Services

HTML: [wiki.revision.created@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/wiki.revision.created)

# WikiRevisionCreatedPayload `wiki.revision.created@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: wiki
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/wiki.revision.created.v1.json`](/docs/contracts/wiki.revision.created.json)

wiki.revision.created v1 (OpenVibe.Wiki server/wiki/service.js revisionEvent). Emitted when a page gets a new immutable revision: an edit, a revert or an AI proposal. A new revision is a draft until it is published (then wiki.page.published|updated follows). Envelope: subject { type: page, id: pg\_…, revision: <number> }, visibility internal, priority important, actor the person or service.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `space_id` | string | yes |  | - `pattern ^spc_[0-9A-HJKMNP-TV-Z]{26}$` |
| `space` | string | yes | Space slug. | - `pattern ^[a-z0-9][a-z0-9-]{1,62}$` |
| `slug` | string | yes | Page slug. | - `minLength 1`<br>- `maxLength 80` |
| `number` | integer | yes | The new revision number. | - `minimum 1` |
| `kind` | enum | yes |  | - `one of "edit", "revert", "import"` |
| `parent_number` | integer \| null | yes |  | - `minimum 1` |
| `reverted_to` | integer \| null | yes | The revision a revert restored; null otherwise. | - `minimum 1` |
| `authorship` | enum | yes | Search's authorship vocabulary; null when the revision has no authorship record. | - `one of "human", "ai_assisted", "ai_generated", "imported", null` |
| `author` | string \| null | yes | Who wrote it: a subject id (usr\_…) or a service (svc:<id>). | - `maxLength 200` |
| `message` | string \| null | yes |  | - `maxLength 2000` |
| `proposal_id` | string |  | Present when the revision is an AI proposal awaiting a person's approval. | - `pattern ^prp_[0-9A-HJKMNP-TV-Z]{26}$` |

## Examples

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

 Valid: ai-proposal

~~~~
{
  "space_id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPV",
  "space": "food",
  "slug": "ramen",
  "number": 3,
  "kind": "edit",
  "parent_number": 2,
  "reverted_to": null,
  "authorship": "ai_generated",
  "author": "svc:ai",
  "message": "AI proposal",
  "proposal_id": "prp_01JAB2C3D4E5F6G7H8J9K0MNPW"
}
~~~~

Valid: edit

~~~~
{
  "space_id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPV",
  "space": "food",
  "slug": "ramen",
  "number": 2,
  "kind": "edit",
  "parent_number": 1,
  "reverted_to": null,
  "authorship": "human",
  "author": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "message": "Add broth section"
}
~~~~

Rejected: carries-content

~~~~
{
  "space_id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPV",
  "space": "food",
  "slug": "ramen",
  "number": 2,
  "kind": "edit",
  "parent_number": 1,
  "reverted_to": null,
  "authorship": "human",
  "author": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "message": null,
  "content": "# Ramen"
}
~~~~

## Validate

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