GamesModManageResult games.mod-manage-result@1
Generated at from
openvibe-contracts v0.53.0 and
openvibe-sdk v0.11.0.
- Version
- 1.0.0
- Owner
- games
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/games/mod-manage-result.v1.json
games.mod-manage-result@1: answers of games.mod.manage on OpenVibe.Games (staff: an owner/admin session, or a service token with games.mod.manage). POST /api/v1/mods → 201 the installed mod's public view; POST /api/v1/mods/:id/enable|disable|revoke, POST /api/v1/mods/:id/grants and DELETE /api/v1/mods/:id/grants/:capability → 200 the mod's public view after the change (revoke is terminal); GET /api/v1/mods/:id/audit?limit= → { audit } (install, grant, use, deny and revoke entries, at most 500). Errors are problem+json (mod.not_found, mod.invalid_request, capability.denied, …).
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: audit
{
"audit": [
{
"id": 41,
"modId": "mod_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"action": "grant",
"capability": "games.prop.place",
"actor": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
"detail": null,
"at": 1790370001000
}
]
}Valid: view
{
"id": "mod_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"name": "Harbor Lights",
"version": "1.2.0",
"target": "games.browser",
"runtime": "games-content@1",
"trust_tier": "reviewed",
"status": "enabled",
"requested": [
"games.prop.place",
"games.world.announce"
],
"granted": [
"games.prop.place"
],
"installed_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-09-25T18:00:00.000Z"
}Rejected: unknown-tier
{
"id": "mod_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"name": "x",
"version": "1",
"target": "games.browser",
"runtime": "games-content@1",
"trust_tier": "verified",
"status": "enabled",
"requested": [],
"granted": [],
"installed_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-09-20T10:00:00.000Z"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('games.mod-manage-result@1', value); // { valid, errors: [{ path, message }] }