---
title: "modules.module-record@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/modules.module-record"
updated: null
---

# modules.module-record@1 · OpenVibe.Services

HTML: [modules.module-record@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/modules.module-record)

# ModuleRecord `modules.module-record@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
- Schema: [`https://openvibe.network/contracts/modules/module-record.v1.json`](/docs/contracts/modules.module-record.json)

One subject's value in one namespace, as returned by Network. revision increases by one on every write; a write names the revision it read (If-Match) and fails with 412 if it moved.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `subject` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `namespace` | string | yes |  |  |
| `version` | integer | yes |  | - `minimum 1` |
| `revision` | integer | yes |  | - `minimum 0` |
| `data` | object | yes |  |  |
| `updated_at` | string | yes |  |  |
| `updated_by` | string |  | user:<subject> or svc:<service> |  |

## Examples

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

 Valid: tts

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "namespace": "chat.tts_defaults",
  "version": 1,
  "revision": 3,
  "data": {
    "voice": "en-US-1",
    "rate": 1.2
  },
  "updated_at": "2026-09-22 21:40:00",
  "updated_by": "user:usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
}
~~~~

Rejected: negative-revision

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "namespace": "chat.tts_defaults",
  "version": 1,
  "revision": -1,
  "data": {},
  "updated_at": "x"
}
~~~~

## Validate

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