---
title: "inventory.definition.published@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/inventory.definition.published"
updated: null
---

# inventory.definition.published@1 · OpenVibe.Services

HTML: [inventory.definition.published@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/inventory.definition.published)

# InventoryDefinitionPublishedPayload `inventory.definition.published@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: inventory
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-054](/docs/adr/ADR-054)
- Schema: [`https://openvibe.network/contracts/events/payloads/inventory.definition.published.v1.json`](/docs/contracts/inventory.definition.published.json)

inventory.definition.published v1 (OpenVibe.Inventory, ADR-054). A definition became grantable (a service's on request, a creator's after review). Envelope: subject { type: item\_definition, id }, visibility public.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `definition_id` | string | yes |  | - `pattern ^itd_[0-9A-HJKMNP-TV-Z]{26}$` |
| `kind` | string | yes |  | - `pattern ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$` |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 200` |
| `rarity` | enum | yes |  | - `one of "common", "uncommon", "rare", "epic", "legendary"` |
| `issuer` | string | yes |  | - `pattern ^(service:[a-z][a-z0-9-]*\|app:app_[0-9A-HJKMNP-TV-Z]{26}\|user:usr_[0-9A-HJKMNP-TV-Z]{26})$` |

## Examples

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

 Valid: example

~~~~
{
  "definition_id": "itd_01JZ00000000000000000001T2",
  "kind": "network.profile_frame",
  "name": "Aurora frame",
  "rarity": "rare",
  "issuer": "user:usr_01JZ0000000000000000000AAA"
}
~~~~

Rejected: missing-field

~~~~
{
  "kind": "network.profile_frame",
  "name": "Aurora frame",
  "rarity": "rare",
  "issuer": "user:usr_01JZ0000000000000000000AAA"
}
~~~~

## Validate

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