← All types
Ob Object

ScriptVersionState

One saved state of a script. Immutable once written.

Fields

Unique identifier

The script this version belongs to

version

Int!Non-null

Sequential version number within the script

name

String!Non-null

The script's name at the time of the save

The script's role at the time of the save

Possible values (4)
SCRIPT

General-purpose script

ML_DATA_QUERY

ML data query script that returns training data rows

JDF_TEMPLATE

JDF template script loaded via ctx.jdf.loadTemplate

JMF_TEMPLATE

JMF template script loaded via ctx.jmf.loadTemplate

content

String!Non-null

The saved Lua source

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

Who saved it, when known

When it was saved (ISO8601)

Referenced by (2)
Exact type 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!
}