WikiPublishResult wiki.publish-result@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/publish-result.v1.json

wiki.publish-result@1: answers of wiki.revision.publish on OpenVibe.Wiki. POST …/publish and …/unpublish → { page, action }; POST …/schedule → { job, created } (201 when created); POST …/revisions/:n/review → 201 { review, page, action, indexable, reasons }; POST /api/v1/proposals/:id/review → { proposal, published }.

Fields

This schema has no named fields.

Examples

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

Valid: proposal-approved
{
  "proposal": {
    "id": "prp_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "status": "approved"
  },
  "published": true
}
Valid: published
{
  "page": {
    "id": "pg_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "space": "openvibe",
    "slug": "restreaming",
    "title": "Restreaming",
    "parent_id": null,
    "state": "published",
    "visibility": "public",
    "noindex": false,
    "published_revision": 3,
    "published_at": "2026-09-20T10:00:00.000Z",
    "revision_published_at": "2026-09-24T10:00:00.000Z",
    "updated_at": "2026-09-24T10:00:00.000Z",
    "url": "https://openvibe.wiki/openvibe/restreaming"
  },
  "action": "published"
}
Rejected: partial-job
{
  "job": {}
}

Validate

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