← API reference
CANONICAL TYPE REFERENCE

ScriptState

A Lua script for the sandboxed scripting environment

Unique identifier

nameString!

Script name (unique within tenant)

Script role used for runtime loading behavior

contentString!

Lua script source code

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

View exact SDL
"""A Lua script for the sandboxed scripting environment"""
type ScriptState @iac_resource(name: "script") @iac_guide(ref: "lua-scripting-guide") @iac_ops(create: "createScript", read: "getScript", update: "updateScript", delete: "deleteScript") @iac_replace(strategy: DESTROY_BEFORE_CREATE) {
  """Unique identifier"""
  id: ScriptID! @iac_identity(assignedBy: SERVER) @iac_computed
  """Script name (unique within tenant)"""
  name: String! @iac_forcesReplace
  """Script role used for runtime loading behavior"""
  role: ScriptRole!
  """Lua script source code"""
  content: String! @iac_artifact(language: LUA, testContract: "lua-script.testing.json", validators: ["lua-typecheck"])
  """Creation timestamp (ISO8601)"""
  createdAt: ISO8601! @iac_computed
  """Last update timestamp (ISO8601)"""
  updatedAt: ISO8601! @iac_computed
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.