/** * An enrollment record for a student in a course, including progress and completion metrics. */ export interface CourseStudent { /** The total number of lessons this student has marked as completed in the course. */ completed_lessons_count: number; /** The percentage of available lessons the student has completed, as a value from 0 to 100 rounded to two decimal places. */ completion_rate: number; /** The course this student is enrolled in. */ course: CourseStudent.Course; /** The timestamp when the student first interacted with this course, as a Unix timestamp. */ first_interaction_at: string; /** The unique identifier for the course student type. */ id: string; /** The timestamp when the student most recently interacted with this course, as a Unix timestamp. */ last_interaction_at: string; /** The total number of visible lessons available to this student in the course. */ total_lessons_count: number; /** The user profile of the enrolled student. */ user: CourseStudent.User; } export declare namespace CourseStudent { /** * The course this student is enrolled in. */ interface Course { /** The parent experience that this course belongs to. */ experience: Course.Experience; /** The unique identifier for the course. */ id: string; /** The display name of the course shown to students. Null if no title has been set. */ title: string | null; } namespace Course { /** * The parent experience that this course belongs to. */ interface Experience { /** The unique identifier for the experience. */ id: string; } } /** * The user profile of the enrolled student. */ interface User { /** The unique identifier for the user. */ id: string; /** The user's display name shown on their public profile. */ name: string | null; /** The user's unique username shown on their public profile. */ username: string; } }