UploadedTemplate

sealed interface UploadedTemplate

Result of POST /template. Shape depends on whether versioning was requested.

Inheritors

Types

Link copied to clipboard
data class Legacy(val id: TemplateId) : UploadedTemplate

Versioning off: id is the SHA-256 of the uploaded content.

Link copied to clipboard
data class Versioned(val id: TemplateId, val versionId: TemplateId, val type: String?, val size: Long?, val createdAt: Instant?, val deployedAt: Instant?) : UploadedTemplate

Versioning on: stable template id plus the content-hash versionId.

Properties

Link copied to clipboard
abstract val id: TemplateId

Template id to use for subsequent renders and lookups.