← All types
Ob Object

ScriptState

A Lua script for the sandboxed scripting environment

Fields

id

ScriptID!Non-null

Unique identifier

name

String!Non-null

Script name (unique within tenant)

Script role used for runtime loading behavior

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

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
}