VipPlanPublishedPayload vip.plan.published@1
Generated at from
openvibe-contracts v0.33.0 and
openvibe-sdk v0.5.0.
- Version
- 1.0.0
- Owner
- vip
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Decision
- ADR-012
- Schema
https://openvibe.network/contracts/events/payloads/vip.plan.published.v1.json
vip.plan.published v1 (OpenVibe.VIP server/domain/plans.js emitPublished). A plan version became what new members buy: the plan was published, or a published plan was edited (a new immutable version). Carries the version's full terms, never a price (Billing prices and charges). Envelope: subject { type: plan, id: vpl_…, revision: <version> }, visibility public, priority important, actor service:vip.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
plan_id | string | yes |
| |
slug | string | yes |
| |
version | integer | yes |
| |
version_id | string | yes |
| |
creator | object | yes |
| |
creator.id | string | yes | vcr_… or network. | |
creator.kind | enum | yes |
| |
creator.subject | one of | yes | null for the network creator. | |
creator.username | string | null | yes | ||
creator.display_name | string | null | yes | ||
creator.bio | string | null | yes | ||
creator.status | enum | yes |
| |
billing_kind | enum | yes | The Billing product that sells it; null for a plan Billing does not sell (network plans). |
|
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 |
| |
terms.perks[].scope | enum | yes |
| |
terms.billing_kind | enum | yes |
| |
terms.price | string | null | yes | Never an amount: a note that Billing sets and charges the price, or null. | |
terms.digest | string | yes | sha256 prefix of name, description, benefits, perks and billing_kind. |
|
published_at | string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: channel-plan
{
"plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
"slug": "supporters",
"version": 2,
"version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
"creator": {
"id": "vcr_01JAB3C4D5E6F7G8H9J0K1MNPX",
"kind": "creator",
"subject": {
"type": "user",
"id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"username": "japaneseoldguy",
"display_name": "JapaneseOldGuy",
"bio": null,
"status": "active"
},
"billing_kind": "channel_subscription",
"terms": {
"name": "Supporters",
"description": "Back the channel.",
"benefits": [
"Sub badge",
"Emote-only chat"
],
"perks": [
{
"key": "badge",
"name": "Sub badge",
"kind": "badge",
"scope": "creator"
}
],
"billing_kind": "channel_subscription",
"price": "set and charged by OpenVibe.Billing",
"digest": "3f9a0c1d2e4b5a67"
},
"published_at": "2026-09-23T10:00:00.000Z"
}Valid: network-plan
{
"plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
"slug": "supporters",
"version": 2,
"version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
"creator": {
"id": "network",
"kind": "network",
"subject": null,
"username": null,
"display_name": "OpenVibe",
"bio": null,
"status": "active"
},
"billing_kind": null,
"terms": {
"name": "Supporters",
"description": "Back the channel.",
"benefits": null,
"perks": [],
"billing_kind": null,
"price": null,
"digest": "3f9a0c1d2e4b5a67"
},
"published_at": "2026-09-23T10:00:00.000Z"
}Rejected: price-in-terms
{
"plan_id": "vpl_01JAB3C4D5E6F7G8H9J0K1MNPV",
"slug": "supporters",
"version": 2,
"version_id": "vpv_01JAB3C4D5E6F7G8H9J0K1MNPW",
"creator": {
"id": "vcr_01JAB3C4D5E6F7G8H9J0K1MNPX",
"kind": "creator",
"subject": {
"type": "user",
"id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
},
"username": "japaneseoldguy",
"display_name": "JapaneseOldGuy",
"bio": null,
"status": "active"
},
"billing_kind": "channel_subscription",
"terms": {
"name": "Supporters",
"description": "Back the channel.",
"benefits": [
"Sub badge",
"Emote-only chat"
],
"perks": [
{
"key": "badge",
"name": "Sub badge",
"kind": "badge",
"scope": "creator"
}
],
"billing_kind": "channel_subscription",
"price": "set and charged by OpenVibe.Billing",
"digest": "3f9a0c1d2e4b5a67",
"price_cents": 499
},
"published_at": "2026-09-23T10:00:00.000Z"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('vip.plan.published@1', value); // { valid, errors: [{ path, message }] }