import type * as Whop from "../../../../index.js"; /** * @example * { * id: "cors_xxxxxxxxxxxxx" * } */ export interface UpdateCoursesRequest { /** The unique identifier of the course to update (e.g., "course_XXXXX"). */ id: string; /** Whether the course awards students a PDF certificate after completing all lessons. */ certificate_after_completion_enabled?: boolean | null; /** A list of chapters with nested lessons to reorder or rename in bulk. */ chapters?: UpdateCoursesRequest.Chapters.Item[] | null; /** A short description of the course displayed to students on the course page. */ description?: string | null; /** The primary language spoken in the video content of the course. */ language?: Whop.Languages | null; /** The decimal order position of the course within its experience. Use fractional values (e.g., "1.5") to place between existing courses. */ order?: string | null; /** Whether students must complete each lesson sequentially before advancing to the next one. */ require_completing_lessons_in_order?: boolean | null; /** A short tagline displayed beneath the course title (e.g., "Master the fundamentals of design"). */ tagline?: string | null; /** The thumbnail image for the course in PNG, JPEG, or GIF format. */ thumbnail?: UpdateCoursesRequest.Thumbnail | null; /** The display title of the course (e.g., "Introduction to Web Development"). */ title?: string | null; /** Controls whether this course is visible to students or hidden as a draft. */ visibility?: Whop.CourseVisibilities | null; } export declare namespace UpdateCoursesRequest { type Chapters = Chapters.Item[]; namespace Chapters { /** * Input for updating a chapter while updating a course */ interface Item { /** The ID of the chapter to update */ id: string; /** The lessons to update within this chapter */ lessons?: (Item.Lessons.Item[] | null) | undefined; /** The order of the chapter within its course */ order: number; /** The title of the chapter */ title: string; } namespace Item { type Lessons = Lessons.Item[]; namespace Lessons { /** * Input for updating a lesson while updating a course */ interface Item { /** The ID of the chapter this lesson belongs to (for moving between chapters) */ chapter_id: string; /** The ID of the lesson to update */ id: string; /** The order of the lesson within its chapter */ order: number; /** The title of the lesson */ title: string; } } } } /** * The thumbnail image for the course in PNG, JPEG, or GIF format. */ interface Thumbnail { /** The ID of an existing file object. */ id: string; } }