NetworkMachineListResult network.machine-list-result@1

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

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

network.machine-list-result@1: a person's machines, as the network's hub lists them (plan L34, step M2: GET /api/v1/machines). Only the caller's own machines are ever in it.

Fields

FieldTypeRequiredDescriptionConstraints
machinesnetwork.machineyes

Examples

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

Valid: two-machines
{
  "machines": [
    {
      "id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "name": "Kitchen server",
      "kind": "server",
      "os": "linux",
      "online": true,
      "last_seen_at": "2026-10-31T09:00:00.000Z",
      "node_version": "0.15.0",
      "roles": [
        "codes.worker"
      ],
      "running": [
        {
          "kind": "codes.jobs",
          "count": 1
        }
      ]
    },
    {
      "id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPQ",
      "kind": "onboard",
      "online": false,
      "roles": [],
      "running": []
    }
  ]
}
Rejected: missing
{}
Rejected: not-a-list
{
  "machines": {
    "id": "dev_01JAB2C3D4E5F6G7H8J9K0MNPS"
  }
}

Validate

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