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

# network.mod.grants\_changed@1 · OpenVibe.Services

HTML: [network.mod.grants\_changed@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.mod.grants_changed)

# NetworkModGrantsChangedPayload `network.mod.grants_changed@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: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-013](/docs/adr/ADR-013)
- Schema: [`https://openvibe.network/contracts/events/payloads/network.mod.grants_changed.v1.json`](/docs/contracts/network.mod.grants_changed.json)

network.mod.grants\_changed v1 (OpenVibe.Network; roadmap WS-M task 3, ADR-013): a mod principal's grants changed: registered, a capability approved or revoked, or the whole install revoked. \`approved\` is the complete approved set after the change, so the owning runtime sets its copy to it (idempotent by revision: an older revision changes nothing). \`by\` says whether the owning runtime or Network staff made the change; a runtime applies both.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `mod_id` | string | yes |  | - `pattern ^mod_[0-9A-HJKMNP-TV-Z]{26}$` |
| `owner` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{1,31}$` |
| `status` | enum | yes |  | - `one of "active", "revoked"` |
| `approved` | array of string | yes |  | - `maxItems 64`<br>- `unique items`<br>- `items: pattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+){2,}$` |
| `pending` | array of string |  |  | - `maxItems 64`<br>- `unique items`<br>- `items: pattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+){2,}$` |
| `revision` | integer | yes |  | - `minimum 1` |
| `change` | object | yes |  | - `no other fields` |
| `change.action` | enum | yes |  | - `one of "register", "approve", "revoke", "revoke_all"` |
| `change.capability` | string |  |  | - `pattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+){2,}$` |
| `by` | enum | yes |  | - `one of "runtime", "staff"` |
| `reason` | string |  |  | - `maxLength 500` |

## Examples

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

 Valid: staff-revoke

~~~~
{
  "mod_id": "mod_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "owner": "games",
  "status": "active",
  "approved": [],
  "pending": [
    "games.prop.place"
  ],
  "revision": 3,
  "change": {
    "action": "revoke",
    "capability": "games.world.announce"
  },
  "by": "staff",
  "reason": "spawned items in a safe zone"
}
~~~~

Rejected: unknown-action

~~~~
{
  "mod_id": "mod_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "owner": "games",
  "status": "active",
  "approved": [],
  "revision": 3,
  "change": {
    "action": "delete"
  },
  "by": "staff"
}
~~~~

## Validate

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