/** * Planning types for server-side question generation and plan creation */ export interface QuestionOption { id: string; label: string; description?: string; isOther?: boolean; } export interface Question { id: string; prompt: string; options: QuestionOption[]; allowMultiple: boolean; } export interface Answer { questionId: string; selectedOptionIds: string[]; notes: string; } export interface QuestionBatch { batchNumber: number; questions: Question[]; answers: Answer[]; } export interface GeneratedPlan { title: string; suggestedFilename: string; content: string; extends?: string[]; } export interface GenerateQuestionsRequest { planName: string; planDescription?: string; previousBatches?: QuestionBatch[]; } export interface GenerateQuestionsResponse { questions: Question[]; readyToGenerate: boolean; } export interface GeneratePlanRequest { planName: string; planDescription?: string; questionHistory: QuestionBatch[]; additionalInstructions?: string; } export interface GeneratePlanResponse { plan: GeneratedPlan; } export interface PlanningStreamEvent { type: "text" | "questions" | "plan" | "done" | "error"; text?: string; questions?: Question[]; readyToGenerate?: boolean; plan?: GeneratedPlan; error?: string; } export interface QuestionGeneratorResponse { questions: Array<{ id: string; prompt: string; options: Array<{ id: string; label: string; description?: string; isOther?: boolean; }>; allowMultiple?: boolean; }>; readyToGenerate: boolean; } export interface PlanGeneratorResponse { title: string; suggestedFilename: string; content: string; extends?: string[]; } //# sourceMappingURL=types.d.ts.map