OpenVibe.Games API
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
Server https://openvibe.games. 12 routes performing 9 capabilities. OpenAPI 3.1 document.
POST /api/mods
Run a staff-installed script mod (games-quickjs@1, one or more module files in its content pack, imports resolved inside the pack only) in its own QuickJS sandbox per place, under the pack's CPU and m
- Capabilities
- games.script.run
- Visibility
- public
- Request body
application/jsongames.script-call@1- Response
application/jsongames.script-call-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.script.run</strong> (public): Run a staff-installed script mod (games-quickjs@1, one or more module files in its content pack, imports resolved inside the pack only) in its own QuickJS sandbox per place, under the pack's CPU and memory budgets; a staff hot reload replaces the code and keeps its storage, and a reload that fails to start keeps the previous version running. The script sees only the bindings its install was granted.</p> <p>Route note: install, staff</p>POST /api/mods/{id}/reload
Run a staff-installed script mod (games-quickjs@1, one or more module files in its content pack, imports resolved inside the pack only) in its own QuickJS sandbox per place, under the pack's CPU and m
- Capabilities
- games.script.run
- Visibility
- public
- Parameters
id(path, required)
- Request body
application/jsongames.script-call@1- Response
application/jsongames.script-call-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.script.run</strong> (public): Run a staff-installed script mod (games-quickjs@1, one or more module files in its content pack, imports resolved inside the pack only) in its own QuickJS sandbox per place, under the pack's CPU and memory budgets; a staff hot reload replaces the code and keeps its storage, and a reload that fails to start keeps the previous version running. The script sees only the bindings its install was granted.</p> <p>Route note: staff</p>GET /api/v1/mods
Read the browser game's installed mods: manifest, content pack, status, trust tier, requested and granted capabilities.
- Capabilities
- games.mod.read
- Visibility
- public
- Response
application/jsongames.mod-read-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.read</strong> (public): Read the browser game's installed mods: manifest, content pack, status, trust tier, requested and granted capabilities. Public; no token needed.</p>POST /api/v1/mods
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>GET /api/v1/mods/{id}
Read the browser game's installed mods: manifest, content pack, status, trust tier, requested and granted capabilities.
- Capabilities
- games.mod.read
- Visibility
- public
- Parameters
id(path, required)
- Response
application/jsongames.mod-read-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.read</strong> (public): Read the browser game's installed mods: manifest, content pack, status, trust tier, requested and granted capabilities. Public; no token needed.</p>GET /api/v1/mods/{id}/audit
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Input
- games.mod-manage-request@1
- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>POST /api/v1/mods/{id}/disable
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>POST /api/v1/mods/{id}/enable
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>POST /api/v1/mods/{id}/grants
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>DELETE /api/v1/mods/{id}/grants/{capability}
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)capability(path, required)
- Input
- games.mod-manage-request@1
- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>POST /api/v1/mods/{id}/reload
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>POST /api/v1/mods/{id}/revoke
Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, di
- Capabilities
- games.mod.manage
- Visibility
- first-party
- Parameters
id(path, required)
- Request body
application/jsongames.mod-manage-request@1- Response
application/jsongames.mod-manage-result@1- Errors
- errors.problem@1 (application/problem+json)
Description
<p><strong>games.mod.manage</strong> (first-party): Manage mod installs in the browser game's registry (ADR-013): install a mods/mod-manifest.v1 manifest with its games-content@1 pack, approve or revoke individual capabilities of an install, enable, disable, and revoke an install for good (its effects end on the next server tick). Every action is audited and published as a games.mod.* event. Trust tiers are metadata and never grant anything. Also accepted from an openvibe.network owner/admin session. Reload replaces a running script mod's code (games-quickjs@1) and keeps its storage; a reload that fails to start keeps the previous version.</p>Other bindings
- games.player.message:
mod runtime binding game.message (apps/server/src/mods/script/host.ts) - games.players.read:
mod runtime binding game.players / game.player (apps/server/src/mods/script/host.ts) - games.prop.place:
mod runtime binding ModApi.placeProp / ModApi.removeProp (apps/server/src/mods/runtime.ts) - games.script.run:
mod runtime: games-quickjs@1 sandbox (apps/server/src/mods/script/host.ts, quickjs.ts) - games.storage.kv:
mod runtime binding game.storage (apps/server/src/mods/script/host.ts, storage.ts) - games.world.announce:
mod runtime binding ModApi.announce (apps/server/src/mods/runtime.ts) - games.world.emit:
mod runtime binding game.emit (apps/server/src/mods/script/host.ts)