RunFillCommand run.fill-command@1

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

Version
1.0.0
Owner
run
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/run/fill-command.v1.json

Machine-side blind fill command. Contains only the request id and sealed bytes.

Fields

FieldTypeRequiredDescriptionConstraints
request_idstringyes
  • pattern ^fr_[A-Za-z0-9_-]{16,64}$
envelopestringyes
  • pattern ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
  • minLength 12
  • maxLength 16384

Examples

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

Valid: example
{
  "request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
  "envelope": "T1ZMSwAAAAAAAAA="
}
Rejected: password
{
  "request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
  "envelope": "T1ZMSwAAAAAAAAA=",
  "password": "must-not-be-here"
}

Validate

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