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

# inventory.definition-request@1 · OpenVibe.Services

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

# InventoryDefinitionRequest `inventory.definition-request@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: public
- Status: active
- Compatibility: backward
- Decision: [ADR-054](/docs/adr/ADR-054)
- Schema: [`https://openvibe.network/contracts/inventory/definition-request.v1.json`](/docs/contracts/inventory.definition-request.json)

Create or edit a definition in the issuer's namespace (inventory.definition.manage). A service's or app's definition is published when it asks; a creator's goes to staff review (in\_review) first.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `kind` | string | yes |  | - `pattern ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$`<br>- `maxLength 64` |
| `name` | string | yes |  | - `minLength 1`<br>- `maxLength 80` |
| `description` | string |  |  | - `maxLength 500` |
| `art` | object | yes |  | - `no other fields` |
| `art.media_id` | string |  | An OpenVibe.Media object (an image, an animation). | - `pattern ^med_[0-9A-HJKMNP-TV-Z]{26}$` |
| `art.token` | string |  | A token the kind's renderers know (a CSS class, a speech preset). | - `minLength 1`<br>- `maxLength 80` |
| `art.emoji` | string |  |  | - `maxLength 16` |
| `rarity` | enum | yes |  | - `one of "common", "uncommon", "rare", "epic", "legendary"` |
| `attributes` | object |  |  |  |
| `supply_cap` | integer \| null |  |  | - `minimum 1` |
| `aliases` | array of string |  |  | - `maxItems 8`<br>- `unique items`<br>- `items: pattern ^[a-z0-9][a-z0-9_.-]{0,63}$` |
| `publish` | boolean |  | Ask for publication (a creator's definition goes to review). |  |
| `grantors` | array of string |  | Other services or apps the issuer lets grant this one item (ADR-054 §3): Quest giving Live's hats as quest rewards. They grant only (origin earned or granted, idempotent per key); defining, editing, consuming and revoking stay the issuer's. | - `maxItems 8`<br>- `unique items`<br>- `items: pattern ^(service:[a-z][a-z0-9-]*\|app:app_[0-9A-HJKMNP-TV-Z]{26})$` |

## Examples

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

 Valid: frame

~~~~
{
  "kind": "network.profile_frame",
  "name": "Aurora frame",
  "art": {
    "media_id": "med_01JZ0000000000000000000MED"
  },
  "rarity": "rare",
  "supply_cap": 500,
  "publish": true
}
~~~~

Rejected: no-art

~~~~
{
  "kind": "network.profile_frame",
  "name": "x",
  "rarity": "rare"
}
~~~~

## Validate

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