Chat command registration result chat.command-registration-result@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
chat
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/chat/command-registration-result.v1.json

chat.command-registration-result@1: the command Chat stored for an approved app or Actor agent, with source and application_id derived from the verified service token.

Fields

FieldTypeRequiredDescriptionConstraints
commandchat.commandyes

Examples

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

Valid: hello
{
  "command": {
    "name": "hello",
    "description": "Say hello",
    "options": [],
    "source": "app",
    "application_id": "app:app_01J8Z3Q4R5S6T7V8W9X0Y1Z2A3"
  }
}
Rejected: no-command
{}

Validate

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