---
title: "common.resource-summary@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/common.resource-summary"
updated: null
---

# common.resource-summary@1 · OpenVibe.Services

HTML: [common.resource-summary@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/common.resource-summary)

# ResourceSummary `common.resource-summary@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.1.0
- Owner: contracts
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/common/resource-summary.v1.json`](/docs/contracts/common.resource-summary.json)

One resource of any service, as the resource index lists it (roadmap WS-Z7): every service answers GET /api/v1/resources with these, so OpenVibe.Services shows any resource without owning its data.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  |  |
| `kind` | string | yes | service.kind, e.g. watch.watch, actor.actor, media.object, events.subscription |  |
| `service` | string | yes |  |  |
| `project_id` | string |  |  | - `pattern ^prj_[0-9A-HJKMNP-TV-Z]{26}$` |
| `ovrn` | string |  | Optional resource name (ADR-034 section 2), the name grants, audit, events, usage records and bills use: ovrn:<service>:<project\_id>:<type>/<id>, e.g. ovrn:watch:<project\_id>:watch/<wch\_id>, with the pattern of common.usage-recorded@1 resource. Its service, project and id are this summary's service, project\_id and id. Added in 1.1.0. | - `pattern ^ovrn:[a-z][a-z0-9-]{0,31}:prj_[0-9A-HJKMNP-TV-Z]{26}:[a-z][a-z0-9-]{0,39}/[a-z]{3}_[0-9A-HJKMNP-TV-Z]{26}$`<br>- `maxLength 200` |
| `owner` | [identity.subject-ref](/docs/contracts/identity.subject-ref) |  |  |  |
| `name` | string |  |  |  |
| `state` | string | yes |  |  |
| `created_at` | string | yes |  | - `format date-time` |
| `updated_at` | string |  |  | - `format date-time` |
| `usage` | object |  | cost units by name (WS-Z1) |  |
| `links` | object |  |  | - `no other fields` |
| `links.self` | string |  |  | - `format uri` |
| `links.console` | string |  |  | - `format uri` |
| `links.docs` | string |  |  | - `format uri` |

## Examples

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

 Valid: watch

~~~~
{
  "id": "wch_01J0000000000000000000000A",
  "kind": "watch.watch",
  "service": "watch",
  "project_id": "prj_01J0000000000000000000000A",
  "owner": {
    "type": "user",
    "id": "usr_01J0000000000000000000000A"
  },
  "name": "Price of a camera",
  "state": "active",
  "created_at": "2026-09-28T23:00:00Z",
  "usage": {
    "watch-check": 120
  },
  "links": {
    "self": "https://openvibe.watch/api/v1/watches/wch_01J0000000000000000000000A"
  }
}
~~~~

Valid: with-ovrn

~~~~
{
  "id": "wch_01J0000000000000000000000A",
  "kind": "watch.watch",
  "service": "watch",
  "project_id": "prj_01J0000000000000000000000A",
  "ovrn": "ovrn:watch:prj_01J0000000000000000000000A:watch/wch_01J0000000000000000000000A",
  "owner": {
    "type": "user",
    "id": "usr_01J0000000000000000000000A"
  },
  "name": "Price of a camera",
  "state": "active",
  "created_at": "2026-09-28T23:00:00Z",
  "usage": {
    "watch-check": 120
  },
  "links": {
    "self": "https://openvibe.watch/api/v1/watches/wch_01J0000000000000000000000A"
  }
}
~~~~

Rejected: no-state

~~~~
{
  "id": "x",
  "kind": "watch.watch",
  "service": "watch",
  "created_at": "2026-09-28T23:00:00Z"
}
~~~~

Rejected: ovrn-without-project

~~~~
{
  "id": "wch_01J0000000000000000000000A",
  "kind": "watch.watch",
  "service": "watch",
  "project_id": "prj_01J0000000000000000000000A",
  "ovrn": "ovrn:watch:watch/wch_01J0000000000000000000000A",
  "owner": {
    "type": "user",
    "id": "usr_01J0000000000000000000000A"
  },
  "name": "Price of a camera",
  "state": "active",
  "created_at": "2026-09-28T23:00:00Z",
  "usage": {
    "watch-check": 120
  },
  "links": {
    "self": "https://openvibe.watch/api/v1/watches/wch_01J0000000000000000000000A"
  }
}
~~~~

## Validate

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