← API reference
CANONICAL TYPE REFERENCE

CustomAppVersionState

An immutable snapshot of a custom app at a specific version

Unique identifier

The custom app this version belongs to

Sequential version number (1, 2, 3, ...)

Chat session that generated this version (if AI-generated)

Chat message that triggered this version (if AI-generated)

templateString!

Vue template HTML at this version

scriptString!

JavaScript/TypeScript script at this version

serverApiString

Optional Lua server API script at this version

Version description/commit message

useDaisyUIBoolean!

Include bundled DaisyUI styles with host theme colours. Optional for engine 3; legacy engines always include their existing styles.

Custom-app engine version this snapshot runs on (1, 2, or 3)

Creation timestamp (ISO8601)

View exact SDL
"""An immutable snapshot of a custom app at a specific version"""
type CustomAppVersionState @iac_resource(name: "custom_app_version") @iac_guide(ref: "custom-app-guide") @iac_ops(create: "createCustomAppVersion", read: "getCustomAppVersion", delete: "deleteCustomAppVersion") {
  """Unique identifier"""
  id: CustomAppVersionID! @iac_identity(assignedBy: SERVER) @iac_computed
  """The custom app this version belongs to"""
  customAppId: CustomAppID! @iac_ref(resource: "custom_app") @iac_createOnly
  """Sequential version number (1, 2, 3, ...)"""
  version: Int! @iac_computed
  """Chat session that generated this version (if AI-generated)"""
  chatSessionId: ChatSessionID
  """Chat message that triggered this version (if AI-generated)"""
  chatMessageId: ChatMessageID
  """Vue template HTML at this version"""
  template: String! @iac_input(path: "config.template") @iac_artifact(language: VUE) @iac_guide(ref: "custom-app-guide")
  """JavaScript/TypeScript script at this version"""
  script: String! @iac_input(path: "config.script") @iac_artifact(language: JAVASCRIPT) @iac_guide(ref: "custom-app-guide")
  """Optional Lua server API script at this version"""
  serverApi: String @iac_input(path: "config.serverApi") @iac_artifact(language: LUA, testContract: "lua-normal.testing.json", validators: ["lua-customapp"])
  """Version description/commit message"""
  description: String
  """
  Include bundled DaisyUI styles with host theme colours. Optional for engine 3; legacy engines always include their existing styles.
  """
  useDaisyUI: Boolean! @iac_input(path: "config.useDaisyUI")
  """Custom-app engine version this snapshot runs on (1, 2, or 3)"""
  engineVersion: Int! @iac_input(path: "config.engineVersion")
  """Creation timestamp (ISO8601)"""
  createdAt: ISO8601! @iac_computed
}

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