---
title: "vip.plan-version@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/vip.plan-version"
updated: null
---

# vip.plan-version@1 · OpenVibe.Services

HTML: [vip.plan-version@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/vip.plan-version)

# VipPlanVersion `vip.plan-version@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: vip
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/vip/plan-version.v1.json`](/docs/contracts/vip.plan-version.json)

vip.plan-version@1: one immutable version of a membership plan on OpenVibe.VIP (server/domain/plans.js presentVersion). An edit always creates version N+1; members keep the version they joined under. terms is the snapshot a member buys (never a price: OpenVibe.Billing prices and charges); perks lists the perks this version includes, by the id, key and name they had when it was written.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^vpv_[0-9A-HJKMNP-TV-Z]{26}$` |
| `version` | integer | yes |  | - `minimum 1` |
| `name` | string | yes |  | - `maxLength 80` |
| `description` | string \| null | yes |  | - `maxLength 2000` |
| `benefits` | array of string | yes |  | - `maxItems 20`<br>- `items: maxLength 200` |
| `perks` | array of object | yes |  |  |
| `perks[].id` | string | yes |  | - `pattern ^vpk_[0-9A-HJKMNP-TV-Z]{26}$` |
| `perks[].key` | string | yes |  |  |
| `perks[].name` | string | yes |  |  |
| `terms` | object | yes |  |  |
| `terms.name` | string | yes |  |  |
| `terms.description` | string \| null | yes |  |  |
| `terms.benefits` | array \| null | yes |  |  |
| `terms.perks` | array of object | yes |  |  |
| `terms.perks[].key` | string | yes |  |  |
| `terms.perks[].name` | string | yes |  |  |
| `terms.perks[].kind` | enum | yes |  | - `one of "badge", "emote", "gated_content", "room", "role", "other"` |
| `terms.perks[].scope` | enum | yes |  | - `one of "creator", "network"` |
| `terms.billing_kind` | enum | yes |  | - `one of "channel_subscription", null` |
| `terms.price` | string \| null | yes | Never an amount: a note that Billing sets and charges the price, or null. |  |
| `terms.digest` | string | yes |  | - `pattern ^[0-9a-f]{16}$` |
| `change_note` | string \| null | yes |  |  |
| `created_at` | string | yes |  | - `format date-time` |
| `published_at` | string \| null | yes | null while a draft. | - `format date-time` |

## Examples

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

 Valid: published

~~~~
{
  "id": "vpv_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "version": 2,
  "name": "Supporter",
  "description": "Back the stream every month.",
  "benefits": [
    "Supporter badge in chat",
    "Members-only VOD chapters"
  ],
  "perks": [
    {
      "id": "vpk_01JAB2C3D4E5F6G7H8J9K0MNPV",
      "key": "chat-badge",
      "name": "Chat badge"
    }
  ],
  "terms": {
    "name": "Supporter",
    "description": "Back the stream every month.",
    "benefits": [
      "Supporter badge in chat",
      "Members-only VOD chapters"
    ],
    "perks": [
      {
        "key": "chat-badge",
        "name": "Chat badge",
        "kind": "badge",
        "scope": "creator"
      }
    ],
    "billing_kind": "channel_subscription",
    "price": "set and charged by OpenVibe.Billing",
    "digest": "3fa9c0d27e5b8814"
  },
  "change_note": "added VOD chapters",
  "created_at": "2026-09-20T18:04:11.402Z",
  "published_at": "2026-09-20T18:04:11.402Z"
}
~~~~

Rejected: version-zero

~~~~
{
  "id": "vpv_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "version": 0,
  "name": "Supporter",
  "description": "Back the stream every month.",
  "benefits": [
    "Supporter badge in chat",
    "Members-only VOD chapters"
  ],
  "perks": [
    {
      "id": "vpk_01JAB2C3D4E5F6G7H8J9K0MNPV",
      "key": "chat-badge",
      "name": "Chat badge"
    }
  ],
  "terms": {
    "name": "Supporter",
    "description": "Back the stream every month.",
    "benefits": [
      "Supporter badge in chat",
      "Members-only VOD chapters"
    ],
    "perks": [
      {
        "key": "chat-badge",
        "name": "Chat badge",
        "kind": "badge",
        "scope": "creator"
      }
    ],
    "billing_kind": "channel_subscription",
    "price": "set and charged by OpenVibe.Billing",
    "digest": "3fa9c0d27e5b8814"
  },
  "change_note": "added VOD chapters",
  "created_at": "2026-09-20T18:04:11.402Z",
  "published_at": "2026-09-20T18:04:11.402Z"
}
~~~~

## Validate

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