Skip to content

LectureDetail

Defined in: v1/schemas.ts:360

A detailed lecture object as returned from the /courses/:id/lectures/:id endpoint. Includes position, section reference, and all attachments.

  • output<typeof LectureDetailSchema>

optional attachments?: { file_extension?: string | null; file_size?: number | null; id: number; kind: "text" | "native_comments" | "video" | "audio" | "image" | "pdf" | "quiz" | "code_display" | "code_embed" | "upsell"; name: string | null; position: number | null; quiz?: { id: number; questions: { answers: string[]; correct_answers: string[]; graded: boolean; question: string; question_type: "single" | "multiple"; }[]; } | null; text?: string | null; url?: string | null; }[]

Defined in: v1/schemas.ts:353

optional file_extension?: string | null

optional file_size?: number | null

id: number

kind: "text" | "native_comments" | "video" | "audio" | "image" | "pdf" | "quiz" | "code_display" | "code_embed" | "upsell"

name: string | null

position: number | null

optional quiz?: { id: number; questions: { answers: string[]; correct_answers: string[]; graded: boolean; question: string; question_type: "single" | "multiple"; }[]; } | null

optional text?: string | null

optional url?: string | null

z.infer.attachments


id: number

Defined in: v1/schemas.ts:348

z.infer.id


optional is_published?: boolean

Defined in: v1/schemas.ts:350

z.infer.is_published


optional lecture_section_id?: number

Defined in: v1/schemas.ts:352

z.infer.lecture_section_id


optional name?: string

Defined in: v1/schemas.ts:349

z.infer.name


optional position?: number

Defined in: v1/schemas.ts:351

z.infer.position