Skip to content

KNOWN_LECTURE_ATTACHMENT_KINDS

const KNOWN_LECTURE_ATTACHMENT_KINDS: readonly ["text", "native_comments", "video", "audio", "image", "pdf", "pdf_embed", "embed", "quiz", "code_display", "code_embed", "upsell"]

Defined in: v1/schemas.ts:309

Lecture attachment kinds observed in live Teachable API responses.

This list is descriptive, not exhaustive. Teachable’s OpenAPI definition types kind as an unconstrained string and enumerates values only by example, so new kinds can appear at any time without a version change or changelog entry. pdf_embed and embed were both discovered this way — neither is mentioned in the published documentation.

For that reason LectureAttachmentSchema validates kind as an open string rather than a closed enum: an unrecognised kind must not fail the parse and take the entire lecture down with it. Use this array with isKnownAttachmentKind when you need to branch on recognised values, and handle the unknown case explicitly.