← API reference
CANONICAL TYPE REFERENCE

ScriptVersionState

One saved state of a script. Immutable once written.

Unique identifier

The script this version belongs to

Sequential version number within the script

nameString!

The script's name at the time of the save

The script's role at the time of the save

contentString!

The saved Lua source

Why this version exists, e.g. "Restored version 3"

Who saved it, when known

When it was saved (ISO8601)

View exact SDL
"""One saved state of a script. Immutable once written."""
type ScriptVersionState {
  """Unique identifier"""
  id: ScriptVersionID!
  """The script this version belongs to"""
  scriptId: ScriptID!
  """Sequential version number within the script"""
  version: Int!
  """The script's name at the time of the save"""
  name: String!
  """The script's role at the time of the save"""
  role: ScriptRole!
  """The saved Lua source"""
  content: String!
  """
  Why this version exists, e.g. "Restored version 3"
  """
  description: String
  """Who saved it, when known"""
  createdByUserId: UserID
  """When it was saved (ISO8601)"""
  createdAt: ISO8601!
}

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