InventoryEquippedBatch inventory.equipped-batch@1

Generated at from openvibe-contracts v0.127.0 and openvibe-sdk v0.37.0.

Version
1.0.0
Owner
inventory
Visibility
public
Status
active
Compatibility
backward
Decision
ADR-054
Schema
https://openvibe.network/contracts/inventory/equipped-batch.v1.json

The equipped sets of many people at once (GET /api/v1/equipped?subjects=…, up to 100): one query on the authority, one call per chat render batch.

Fields

FieldTypeRequiredDescriptionConstraints
equippedinventory.equippedyes
  • maxItems 100

Examples

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

Valid: two
{
  "equipped": [
    {
      "subject": "usr_01JZ0000000000000000000AAA",
      "slots": {
        "live.name_effect:name_effect": {
          "instance_id": "inv_01JZ00000000000000000001NV",
          "definition_id": "itd_01JZ00000000000000000001TD",
          "token": "name-fx-rainbow"
        }
      },
      "updated_at": "2026-10-09T03:00:00Z"
    },
    {
      "subject": "usr_01JZ0000000000000000000BBB",
      "slots": {},
      "updated_at": "2026-10-09T03:00:00Z"
    }
  ]
}
Rejected: not-array
{
  "equipped": {
    "subject": "usr_01JZ0000000000000000000AAA",
    "slots": {
      "live.name_effect:name_effect": {
        "instance_id": "inv_01JZ00000000000000000001NV",
        "definition_id": "itd_01JZ00000000000000000001TD",
        "token": "name-fx-rainbow"
      }
    },
    "updated_at": "2026-10-09T03:00:00Z"
  }
}

Validate

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