WasmModule
A WASM compute module: developer-authored Rust compiled to sandboxed WASM on game-api instances. Holds metadata, the deployed version pointer, and circuit-breaker state; source lives in versions.
type WasmModule {
moduleId: String!
appId: BigInt!
name: String!
description: String
enabled: Boolean!
alwaysOn: Boolean!
currentVersionId: String
circuitState: String!
consecutiveFailures: Int!
cooldownUntil: DateTime
lastError: String
createdAt: DateTime!
updatedAt: DateTime!
}
Fields
WasmModule.moduleId ● String! non-null scalar
Unique module id (UUID).
WasmModule.appId ● BigInt! non-null scalar
The app (tenant) that owns the module.
WasmModule.name ● String! non-null scalar
Module name (unique per app); the upsert key.
WasmModule.description ● String scalar
Optional description.
WasmModule.enabled ● Boolean! non-null scalar
Whether the module may run. New modules start disabled; enable after a successful compile.
WasmModule.alwaysOn ● Boolean! non-null scalar
Whether the module runs without active players (world simulation). Policy-gated.
WasmModule.currentVersionId ● String scalar
The deployed version id (UUID). Null until first deploy.
WasmModule.circuitState ● String! non-null scalar
Circuit-breaker state: closed | open | half_open.
WasmModule.consecutiveFailures ● Int! non-null scalar
Current consecutive-failure count.
WasmModule.cooldownUntil ● DateTime scalar
When the open circuit may retry (half-open).
WasmModule.lastError ● String scalar
Last error recorded for this module.
WasmModule.createdAt ● DateTime! non-null scalar
When the module was created.
WasmModule.updatedAt ● DateTime! non-null scalar
When the module was last updated.
Returned By
computeDeployTemplate mutation ● computeModule query ● computeModules query ● computeSetModuleEnabled mutation ● computeUpsertModule mutation