SpaceBuildPreview space.build-preview@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- space
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/space/build-preview.v1.json
space.build-preview@1: where a person's space can be seen right now, as their agent sees it (OpenVibe.Space's builder API; plan 2026-10-22 §Z stage Z1). GET /api/v1/spaces/:id/preview answers { url, files, published }: the address to open (the editor with its live preview while the space is a draft, its own address once it is published), the paths of the files it is made of, and whether it is live.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
url | string | yes | Where the space can be seen now. |
|
files | array of string | yes | The paths of the files the space is made of. |
|
published | boolean | yes |
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: draft
{
"url": "https://openvibe.space/spaces/my-podcast/edit",
"files": [
"index.html",
"style.css"
],
"published": false
}Rejected: not-a-boolean
{
"url": "https://openvibe.space/spaces/my-podcast/edit",
"files": [],
"published": "yes"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('space.build-preview@1', value); // { valid, errors: [{ path, message }] }