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

# network.grant.changed@1 · OpenVibe.Services

HTML: [network.grant.changed@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.grant.changed)

# NetworkGrantChangedPayload `network.grant.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
- Schema: [`https://openvibe.network/contracts/events/payloads/network.grant.changed.v1.json`](/docs/contracts/network.grant.changed.json)

network.grant.changed v1 (OpenVibe.Network server/developer/store.js grantEvent; ADR-014). A developer app's capability grant changed state: requested, approved, denied or revoked. Written through Network's developer event relay beside the project audit row. OpenVibe.Events stops an app's subscriptions at once when its events.app.subscribe grant leaves approved. Envelope: subject { type: app, id: <app\_…> }, visibility internal. (A first-party service principal's grant is network.principal\_grant.changed.)

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `project_id` | string | yes |  | - `pattern ^prj_[0-9A-HJKMNP-TV-Z]{26}$` |
| `capability` | string | yes |  | - `pattern ^[a-z][a-z0-9_]*\.[a-z][a-z0-9_*]*(\.[a-z][a-z0-9_*]*)?$` |
| `audience` | string | yes |  | - `maxLength 200` |
| `from` | enum | yes |  | - `one of "none", "requested", "approved", "denied", "revoked"` |
| `to` | enum | yes |  | - `one of "requested", "approved", "denied", "revoked"` |

## Examples

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

 Valid: revoked

~~~~
{
  "project_id": "prj_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "capability": "events.app.subscribe",
  "audience": "openvibe.events",
  "from": "approved",
  "to": "revoked"
}
~~~~

Rejected: bad-to

~~~~
{
  "project_id": "prj_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "capability": "events.app.subscribe",
  "audience": "openvibe.events",
  "from": "none",
  "to": "granted"
}
~~~~

## Validate

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