ScriptState
A Lua script for the sandboxed scripting environment
Fields
Unique identifier
Script name (unique within tenant)
Script role used for runtime loading behavior
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
Lua script source code
Creation timestamp (ISO8601)
Last update timestamp (ISO8601)
Referenced by (5)
Exact type 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
}