---
title: "capabilities.capability@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/capabilities.capability"
updated: null
---

# capabilities.capability@1 · OpenVibe.Services

HTML: [capabilities.capability@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/capabilities.capability)

# Capability `capabilities.capability@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-003](/docs/adr/ADR-003)
- Schema: [`https://openvibe.network/contracts/capabilities/capability.v1.json`](/docs/contracts/capabilities.capability.json)

An action a principal may invoke. Authorization is checked at the owner's boundary against the grant, never inferred from the caller's route.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+){2,}$` |
| `version` | string | yes |  | - `pattern ^\d+\.\d+$` |
| `owner` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{1,39}$` |
| `status` | enum | yes |  | - `one of "planned", "active", "deprecated", "retired"` |
| `visibility` | enum | yes |  | - `one of "public", "partner", "first-party", "internal"` |
| `description` | string |  |  |  |
| `inputSchema` | string |  |  |  |
| `outputSchema` | string |  |  |  |
| `permissions` | array of string | yes |  |  |
| `resourceConstraints` | array of enum | yes |  | - `items: one of "namespace", "owner", "room_member", "space_member", "inbox_member", "project", "none"` |
| `quotaClass` | string | yes |  |  |
| `events` | array of string | yes |  |  |
| `implementedBy` | array of string |  | Current route(s) that perform this action today, e.g. 'POST /api/v1/:app/files'. |  |
| `routeSchemas` | object |  | Input and output contract overrides for a route when one capability covers several operations. |  |
| `sensitive` | boolean |  | The action has an external side effect (money, sending as the person, publishing, applying, deleting, physical control): an agent needs its owner's confirmation unless a standing rule covers it (roadmap WS-Z2). |  |

## Examples

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

 Valid: upload

~~~~
{
  "id": "media.object.upload",
  "version": "1.0",
  "owner": "media",
  "status": "active",
  "visibility": "public",
  "description": "Upload a file object into an app namespace.",
  "outputSchema": "media.media-ref@1",
  "permissions": [
    "media:write"
  ],
  "resourceConstraints": [
    "namespace",
    "owner"
  ],
  "quotaClass": "media-upload",
  "events": [
    "media.object.uploaded"
  ],
  "implementedBy": [
    "POST /api/v1/:app/files"
  ]
}
~~~~

Rejected: two-segment-id

~~~~
{
  "id": "media.upload",
  "version": "1.0",
  "owner": "media",
  "status": "active",
  "visibility": "public",
  "permissions": [],
  "resourceConstraints": [],
  "quotaClass": "x",
  "events": []
}
~~~~

## Validate

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