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

# network.setup-grant-saved@1 · OpenVibe.Services

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

# NetworkSetupGrantSaved `network.setup-grant-saved@1`

Generated at 2026-11-17 06:52:56 UTC from [`openvibe-contracts v0.443.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.443.0) and [`openvibe-sdk v0.177.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.177.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/network/setup-grant-saved.v1.json`](/docs/contracts/network.setup-grant-saved.json)

network.setup-grant-saved@1: what a one-time setup grant saved (plan §AB.44): the row and each key's last four characters only, never a value. The grant is spent.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `saved` | const | yes |  | - `= true` |
| `service` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{0,39}$` |
| `namespace` | string | yes |  | - `pattern ^[a-z][a-z0-9_.-]{0,79}$` |
| `keys` | array of object | yes |  | - `minItems 1`<br>- `maxItems 4`<br>- `items: no other fields` |
| `keys[].key` | string | yes |  | - `pattern ^[a-z][a-z0-9_.-]{0,79}$` |
| `keys[].hint` | string | yes |  | - `maxLength 8` |

## Examples

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

 Valid: saved

~~~~
{
  "saved": true,
  "service": "ai",
  "namespace": "ai.providers",
  "keys": [
    {
      "key": "deepseek.api_key",
      "hint": "…page"
    }
  ]
}
~~~~

Rejected: carries-a-value

~~~~
{
  "saved": true,
  "service": "ai",
  "namespace": "ai.providers",
  "keys": [
    {
      "key": "deepseek.api_key",
      "hint": "…page",
      "value": "pasted-from-the-provider-page"
    }
  ]
}
~~~~

## Validate

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