---
title: "games.mod.disabled@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/games.mod.disabled"
updated: null
---

# games.mod.disabled@1 · OpenVibe.Services

HTML: [games.mod.disabled@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/games.mod.disabled)

# GamesModDisabledPayload `games.mod.disabled@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: games
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/games.mod.disabled.v1.json`](/docs/contracts/games.mod.disabled.json)

games.mod.disabled v1 (OpenVibe.Games apps/server/src/platform/gameEvents.ts modEvent, via ModRegistry.disable in mods/registry.ts; POST /api/v1/mods/:id/disable). An enabled install was disabled: no capability check passes for it until it is enabled again, grants are kept. Not emitted when it was already disabled; a revoked install cannot change status. The payload is the mod only. Written to Games' event\_outbox in the same SQLite transaction as the registry and mod\_audit rows (mods/registry.ts). The manifest, content pack, audit actor string and installer are left out. No consumer yet. Envelope: subject { type: mod, id: <mod.id> }, visibility internal, priority low, actor the staff member who made the change (user:<usr\_...>), service:<client> for a principal token carrying games.mod.manage, or service:games (pre-subject staff token, editor key).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `mod` | object | yes | The install, from its validated mods/mod-manifest.v1 manifest. | - `no other fields` |
| `mod.id` | string | yes | Mod id (manifest id). Also the envelope subject id. | - `pattern ^mod_[0-9A-HJKMNP-TV-Z]{26}$` |
| `mod.name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `mod.version` | string | yes | Semantic version of the installed release. | - `pattern ^(0\|[1-9][0-9]*)\.(0\|[1-9][0-9]*)\.(0\|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$` |
| `mod.target` | string | yes | Manifest target. Games only accepts games.browser today (mods/manifest.ts checkForGames). | - `pattern ^[a-z][a-z0-9-]{1,39}\.[a-z][a-z0-9-]{1,39}$` |
| `mod.trust_tier` | enum | yes | Install metadata set at install; never consulted by a grant check. | - `one of "unreviewed", "reviewed", "first-party"` |

## Examples

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

 Valid: disabled

~~~~
{
  "mod": {
    "id": "mod_01JAD3F5G7H9K1M3N5P7Q9R1S3",
    "name": "Town Square",
    "version": "1.0.0",
    "target": "games.browser",
    "trust_tier": "first-party"
  }
}
~~~~

Rejected: bad-version

~~~~
{
  "mod": {
    "id": "mod_01JAD3F5G7H9K1M3N5P7Q9R1S3",
    "name": "Town Square",
    "version": "v1",
    "target": "games.browser",
    "trust_tier": "unreviewed"
  }
}
~~~~

Rejected: extra-property

~~~~
{
  "mod": {
    "id": "mod_01JAD3F5G7H9K1M3N5P7Q9R1S3",
    "name": "Town Square",
    "version": "1.0.0",
    "target": "games.browser",
    "trust_tier": "unreviewed"
  },
  "granted": []
}
~~~~

Rejected: missing-mod-version

~~~~
{
  "mod": {
    "id": "mod_01JAD3F5G7H9K1M3N5P7Q9R1S3",
    "name": "Town Square",
    "target": "games.browser",
    "trust_tier": "unreviewed"
  }
}
~~~~

## Validate

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