ScriptVersionState
One saved state of a script. Immutable once written.
Fields
Unique identifier
The script this version belongs to
Sequential version number within the script
The script's name at the time of the save
The script's role at the time of the save
Possible values (4)
SCRIPTGeneral-purpose script
ML_DATA_QUERYML data query script that returns training data rows
JDF_TEMPLATEJDF template script loaded via ctx.jdf.loadTemplate
JMF_TEMPLATEJMF template script loaded via ctx.jmf.loadTemplate
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!
}