/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { XblockTypeEnum } from './XblockTypeEnum'; /** * Validate input for creating an xblock under a parent. */ export type CreateXblock = { /** * The xblock locator of the parent block. */ parent_xblock_id: string; /** * The type of block to create (section, subsection, unit, html, problem, video). * * * `section` - section * * `subsection` - subsection * * `unit` - unit * * `html` - html * * `problem` - problem * * `video` - video */ xblock_type: XblockTypeEnum; /** * Display name for the new block. */ display_name: string; /** * Position within the parent ('first', 'last', or a 1-based index). */ position?: string; /** * HTML content body. Only used for html/problem component types. */ content?: string; /** * Markdown source. Only used for problem (multiplechoice) components. */ markdown?: string; };