WikiSpace wiki.space@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/space.v1.json

wiki.space@1: one wiki space as OpenVibe.Wiki's API shows it (server/http/api.js serializeSpace).

Fields

FieldTypeRequiredDescriptionConstraints
idstringyes
slugstringyes
  • pattern ^[a-z0-9][a-z0-9-]{1,62}$
namestringyes
descriptionstring | null
kindenumyes
  • one of "official", "user"
visibilityenumyes
  • one of "public", "members", "private"
created_atstringyes
  • format date-time
updated_atstringyes
  • format date-time

Examples

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

Valid: official
{
  "id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "openvibe",
  "name": "OpenVibe",
  "description": "How the network works.",
  "kind": "official",
  "visibility": "public",
  "created_at": "2026-09-01T10:00:00.000Z",
  "updated_at": "2026-09-25T18:00:00.000Z"
}
Rejected: unknown-kind
{
  "id": "spc_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "openvibe",
  "name": "OpenVibe",
  "description": "How the network works.",
  "kind": "team",
  "visibility": "public",
  "created_at": "2026-09-01T10:00:00.000Z",
  "updated_at": "2026-09-25T18:00:00.000Z"
}

Validate

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