AiDefinitionVersionResult ai.definition-version-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- ai
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/ai/definition-version-result.v1.json
ai.definition-version-result@1: answers of ai.workflow.manage on OpenVibe.AI. POST …/:key/versions → 201 { template | workflow | route } (the new version, whole: prompts and schemas for a template, steps for a workflow, primary/fallbacks for a route); POST …/versions/:version/status → { template | workflow | route: { key, version, status } }.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: route-status
{
"route": {
"key": "default.chat",
"version": 3,
"status": "disabled"
}
}Valid: template
{
"template": {
"key": "live.clip_title",
"version": 4,
"status": "active",
"name": "Clip title"
}
}Rejected: no-version
{
"workflow": {
"key": "live.clip_title",
"status": "active"
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('ai.definition-version-result@1', value); // { valid, errors: [{ path, message }] }