@thanh01.pmt/interactive-quiz-kit 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts DELETED
@@ -1,2062 +0,0 @@
1
- import { z } from 'zod';
2
- import { ClassValue } from 'clsx';
3
-
4
- type RichContentString = string;
5
- type MarkdownString = string;
6
- type QuestionTypeStrings = 'multiple_choice' | 'multiple_response' | 'fill_in_the_blanks' | 'drag_and_drop' | 'true_false' | 'short_answer' | 'numeric' | 'sequence' | 'matching' | 'hotspot' | 'blockly_programming' | 'scratch_programming';
7
- interface BaseQuestion {
8
- id: string;
9
- questionType: QuestionTypeStrings;
10
- prompt: RichContentString;
11
- points?: number;
12
- explanation?: RichContentString;
13
- learningObjective?: string;
14
- glossary?: string[];
15
- bloomLevel?: string;
16
- difficulty?: 'easy' | 'medium' | 'hard';
17
- contextCode?: string;
18
- gradeBand?: string;
19
- course?: string;
20
- category?: string;
21
- topic?: string;
22
- }
23
- interface MultipleChoiceQuestion extends BaseQuestion {
24
- questionType: 'multiple_choice';
25
- options: {
26
- id: string;
27
- text: RichContentString;
28
- }[];
29
- correctAnswerId: string;
30
- }
31
- interface MultipleResponseQuestion extends BaseQuestion {
32
- questionType: 'multiple_response';
33
- options: {
34
- id: string;
35
- text: RichContentString;
36
- }[];
37
- correctAnswerIds: string[];
38
- }
39
- interface FillInTheBlanksQuestion extends BaseQuestion {
40
- questionType: 'fill_in_the_blanks';
41
- segments: {
42
- type: 'text' | 'blank';
43
- content?: RichContentString;
44
- id?: string;
45
- }[];
46
- answers: {
47
- blankId: string;
48
- acceptedValues: string[];
49
- }[];
50
- isCaseSensitive?: boolean;
51
- }
52
- interface DraggableItem {
53
- id: string;
54
- content: RichContentString;
55
- }
56
- interface DropZone {
57
- id: string;
58
- label: RichContentString;
59
- }
60
- interface DragAndDropQuestion extends BaseQuestion {
61
- questionType: 'drag_and_drop';
62
- draggableItems: DraggableItem[];
63
- dropZones: DropZone[];
64
- answerMap: {
65
- draggableId: string;
66
- dropZoneId: string;
67
- }[];
68
- backgroundImageUrl?: string;
69
- imageAltText?: string;
70
- }
71
- interface TrueFalseQuestion extends BaseQuestion {
72
- questionType: 'true_false';
73
- correctAnswer: boolean;
74
- }
75
- interface ShortAnswerQuestion extends BaseQuestion {
76
- questionType: 'short_answer';
77
- acceptedAnswers: string[];
78
- isCaseSensitive?: boolean;
79
- }
80
- interface NumericQuestion extends BaseQuestion {
81
- questionType: 'numeric';
82
- answer: number;
83
- tolerance?: number;
84
- }
85
- interface SequenceItem {
86
- id: string;
87
- content: RichContentString;
88
- }
89
- interface SequenceQuestion extends BaseQuestion {
90
- questionType: 'sequence';
91
- items: SequenceItem[];
92
- correctOrder: string[];
93
- }
94
- interface MatchPromptItem {
95
- id: string;
96
- content: RichContentString;
97
- }
98
- interface MatchOptionItem {
99
- id: string;
100
- content: RichContentString;
101
- }
102
- interface MatchingQuestion extends BaseQuestion {
103
- questionType: 'matching';
104
- prompts: MatchPromptItem[];
105
- options: MatchOptionItem[];
106
- correctAnswerMap: {
107
- promptId: string;
108
- optionId: string;
109
- }[];
110
- shuffleOptions?: boolean;
111
- }
112
- interface HotspotArea {
113
- id: string;
114
- shape: 'rect' | 'circle';
115
- coords: number[];
116
- description?: RichContentString;
117
- }
118
- interface HotspotQuestion extends BaseQuestion {
119
- questionType: 'hotspot';
120
- imageUrl: string;
121
- imageAltText?: string;
122
- hotspots: HotspotArea[];
123
- correctHotspotIds: string[];
124
- }
125
- interface BlocklyProgrammingQuestion extends BaseQuestion {
126
- questionType: 'blockly_programming';
127
- toolboxDefinition: string;
128
- initialWorkspace?: string;
129
- solutionWorkspaceXML?: string;
130
- solutionGeneratedCode?: string;
131
- }
132
- interface ScratchProgrammingQuestion extends BaseQuestion {
133
- questionType: 'scratch_programming';
134
- toolboxDefinition: string;
135
- initialWorkspace?: string;
136
- solutionWorkspaceXML?: string;
137
- solutionGeneratedCode?: string;
138
- }
139
- type QuizQuestion = MultipleChoiceQuestion | MultipleResponseQuestion | FillInTheBlanksQuestion | DragAndDropQuestion | TrueFalseQuestion | ShortAnswerQuestion | NumericQuestion | SequenceQuestion | MatchingQuestion | HotspotQuestion | BlocklyProgrammingQuestion | ScratchProgrammingQuestion;
140
- interface QuizConfig {
141
- id: string;
142
- title: string;
143
- description?: RichContentString;
144
- questions: QuizQuestion[];
145
- settings?: QuizSettings;
146
- }
147
- interface SCORMSettings {
148
- version: "1.2" | "2004";
149
- setCompletionOnFinish?: boolean;
150
- setSuccessOnPass?: boolean;
151
- autoCommit?: boolean;
152
- studentNameVar?: string;
153
- lessonStatusVar?: string;
154
- scoreRawVar?: string;
155
- scoreMaxVar?: string;
156
- scoreMinVar?: string;
157
- sessionTimeVar?: string;
158
- exitVar?: string;
159
- suspendDataVar?: string;
160
- lessonStatusVar_1_2?: string;
161
- scoreRawVar_1_2?: string;
162
- scoreMaxVar_1_2?: string;
163
- scoreMinVar_1_2?: string;
164
- completionStatusVar_2004?: string;
165
- successStatusVar_2004?: string;
166
- scoreScaledVar_2004?: string;
167
- scoreRawVar_2004?: string;
168
- scoreMaxVar_2004?: string;
169
- scoreMinVar_2004?: string;
170
- }
171
- interface QuizSettings {
172
- language?: string;
173
- shuffleQuestions?: boolean;
174
- shuffleOptions?: boolean;
175
- timeLimitMinutes?: number;
176
- showCorrectAnswers?: 'immediately' | 'end_of_quiz' | 'never';
177
- passingScorePercent?: number;
178
- webhookUrl?: string;
179
- scorm?: SCORMSettings;
180
- }
181
- type UserAnswerType = string | string[] | Record<string, string> | boolean | null;
182
- type UserAnswers = Map<string, UserAnswerType>;
183
- interface PerformanceMetric {
184
- totalQuestions: number;
185
- correctQuestions: number;
186
- pointsEarned: number;
187
- maxPoints: number;
188
- percentage: number;
189
- }
190
- interface PerformanceByLearningObjective extends PerformanceMetric {
191
- learningObjective: string;
192
- }
193
- interface PerformanceByCategory extends PerformanceMetric {
194
- category: string;
195
- }
196
- interface PerformanceByTopic extends PerformanceMetric {
197
- topic: string;
198
- }
199
- interface PerformanceByDifficulty extends PerformanceMetric {
200
- difficulty: string;
201
- }
202
- interface PerformanceByBloomLevel extends PerformanceMetric {
203
- bloomLevel: string;
204
- }
205
- interface QuestionOption {
206
- id: string;
207
- text: RichContentString;
208
- }
209
- interface QuizResult {
210
- score: number;
211
- maxScore: number;
212
- percentage: number;
213
- answers: UserAnswers;
214
- passed?: boolean;
215
- questionResults: Array<{
216
- questionId: string;
217
- isCorrect: boolean;
218
- pointsEarned: number;
219
- userAnswer: UserAnswerType;
220
- correctAnswer: any;
221
- timeSpentSeconds?: number;
222
- }>;
223
- webhookStatus?: 'idle' | 'sending' | 'success' | 'error';
224
- webhookError?: string;
225
- scormStatus?: 'idle' | 'no_api' | 'initializing' | 'initialized' | 'sending_data' | 'committed' | 'terminated' | 'error';
226
- scormError?: string;
227
- studentName?: string;
228
- totalTimeSpentSeconds?: number;
229
- averageTimePerQuestionSeconds?: number;
230
- performanceByLearningObjective?: PerformanceByLearningObjective[];
231
- performanceByCategory?: PerformanceByCategory[];
232
- performanceByTopic?: PerformanceByTopic[];
233
- performanceByDifficulty?: PerformanceByDifficulty[];
234
- performanceByBloomLevel?: PerformanceByBloomLevel[];
235
- }
236
- interface QuizEngineCallbacks {
237
- onQuizStart?: (initialData: {
238
- initialQuestion: QuizQuestion | null;
239
- currentQuestionNumber: number;
240
- totalQuestions: number;
241
- timeLimitInSeconds: number | null;
242
- scormStatus?: QuizResult['scormStatus'];
243
- studentName?: string;
244
- }) => void;
245
- onQuestionChange?: (question: QuizQuestion | null, currentQuestionNumber: number, totalQuestions: number) => void;
246
- onAnswerSubmit?: (question: QuizQuestion, userAnswer: UserAnswerType) => void;
247
- onQuizFinish?: (results: QuizResult) => void;
248
- onTimeTick?: (timeLeftInSeconds: number) => void;
249
- onQuizTimeUp?: () => void;
250
- }
251
- interface QuizEngineConstructorOptions {
252
- config: QuizConfig;
253
- callbacks?: QuizEngineCallbacks;
254
- }
255
- interface ImportError {
256
- index: number;
257
- message: string;
258
- data: any;
259
- }
260
-
261
- declare class QuizEngine {
262
- private config;
263
- private userAnswers;
264
- private currentQuestionIndex;
265
- questions: QuizQuestion[];
266
- private callbacks;
267
- private timerId;
268
- private timeLeftInSeconds;
269
- private scormService;
270
- private quizResultState;
271
- private overallStartTime;
272
- private questionStartTime;
273
- private questionTimings;
274
- constructor(options: QuizEngineConstructorOptions);
275
- private _recordCurrentQuestionTime;
276
- private startTimer;
277
- private stopTimer;
278
- private handleTick;
279
- getTimeLeftInSeconds(): number | null;
280
- getCurrentQuestion(): QuizQuestion | null;
281
- getCurrentQuestionNumber(): number;
282
- getTotalQuestions(): number;
283
- submitAnswer(questionId: string, answer: UserAnswerType): void;
284
- getUserAnswer(questionId: string): UserAnswerType | undefined;
285
- nextQuestion(): QuizQuestion | null;
286
- previousQuestion(): QuizQuestion | null;
287
- goToQuestion(index: number): QuizQuestion | null;
288
- isQuizFinished(): boolean;
289
- private _sendResultsToWebhook;
290
- private _sendResultsToSCORM;
291
- private _calculateMetadataPerformance;
292
- calculateResults(): Promise<QuizResult>;
293
- private evaluateQuestion;
294
- getElapsedTime(): number;
295
- destroy(): void;
296
- }
297
-
298
- declare const generateLauncherHTML: (quizConfig: QuizConfig, // Used for title, but quizData is loaded from path
299
- libraryJSPath?: string, // Ensure this is a valid relative path in the ZIP
300
- quizDataPath?: string, // This path is relative to the launcher in the ZIP
301
- blocklyCSSPath?: string, // This path is relative to the launcher
302
- title?: string) => string;
303
-
304
- declare const generateSCORMManifest: (quizConfig: QuizConfig, scormVersion: "1.2" | "2004", // Explicitly take version
305
- launcherFile?: string, libraryJSPath?: string, quizDataPath?: string, blocklyCSSPath?: string) => string;
306
-
307
- declare class SCORMService {
308
- private scormAPI;
309
- private scormVersionFound;
310
- private settings;
311
- private isInitialized;
312
- private isTerminated;
313
- studentName: string | null;
314
- constructor(settings: SCORMSettings);
315
- private _findAPIRecursive;
316
- private _findAPI;
317
- hasAPI(): boolean;
318
- getSCORMVersion(): "1.2" | "2004" | null;
319
- initialize(): {
320
- success: boolean;
321
- error?: string;
322
- studentName?: string;
323
- };
324
- terminate(): {
325
- success: boolean;
326
- error?: string;
327
- };
328
- setValue(element: string, value: string | number | boolean): {
329
- success: boolean;
330
- error?: string;
331
- };
332
- getValue(element: string): string | null;
333
- commit(): {
334
- success: boolean;
335
- error?: string;
336
- };
337
- setScore(rawScore: number, maxScore: number, minScore?: number): void;
338
- setLessonStatus(status: 'passed' | 'failed' | 'completed' | 'incomplete' | 'browsed', passed?: boolean): void;
339
- getLastError(): {
340
- code: string;
341
- message: string;
342
- diagnostic?: string;
343
- };
344
- formatCMITime(totalSeconds: number): string;
345
- }
346
-
347
- declare const sampleQuiz: QuizConfig;
348
- declare const emptyQuiz: QuizConfig;
349
-
350
- interface SCORMExportOptions {
351
- scormVersion: "1.2" | "2004";
352
- }
353
- declare const exportQuizAsSCORMZip: (quiz: QuizConfig, options: SCORMExportOptions) => Promise<{
354
- success: boolean;
355
- error?: string;
356
- fileName?: string;
357
- }>;
358
-
359
- declare const GEMINI_API_KEY_SERVICE_NAME = "gemini";
360
- declare class APIKeyService {
361
- private static getStorageKey;
362
- /**
363
- * Saves an API key to localStorage. The key is mildly obfuscated using Base64.
364
- * @param serviceName - The name of the service (e.g., 'gemini').
365
- * @param apiKey - The API key to save.
366
- */
367
- static saveAPIKey(serviceName: string, apiKey: string): void;
368
- /**
369
- * Retrieves an API key from localStorage.
370
- * @param serviceName - The name of the service.
371
- * @returns The decoded API key, or null if not found or if localStorage is unavailable.
372
- */
373
- static getAPIKey(serviceName: string): string | null;
374
- /**
375
- * Removes an API key from localStorage.
376
- * @param serviceName - The name of the service.
377
- */
378
- static removeAPIKey(serviceName: string): void;
379
- /**
380
- * Checks if an API key exists in localStorage for the given service.
381
- * @param serviceName - The name of the service.
382
- * @returns True if a key exists, false otherwise.
383
- */
384
- static hasAPIKey(serviceName: string): boolean;
385
- }
386
-
387
- /**
388
- * A service class to manage and manipulate a QuizConfig object in a headless way.
389
- * This class operates on a deep copy of the initial quiz config to prevent side effects.
390
- */
391
- declare class QuizEditorService {
392
- private quiz;
393
- constructor(initialQuiz: QuizConfig);
394
- /**
395
- * Returns the current state of the quiz configuration.
396
- * @returns The current QuizConfig object.
397
- */
398
- getQuiz(): QuizConfig;
399
- /**
400
- * Creates a new, "empty" question object based on the specified question type.
401
- * @param type The type of question to create.
402
- * @returns A new QuizQuestion object with default values.
403
- */
404
- static createNewQuestionTemplate(type: QuestionTypeStrings): QuizQuestion;
405
- /**
406
- * Adds a new question to the quiz. If the question ID is temporary, a new permanent ID is generated.
407
- * @param question The question object to add.
408
- * @returns The updated QuizConfig.
409
- */
410
- addQuestion(question: QuizQuestion): QuizConfig;
411
- /**
412
- * Updates an existing question in the quiz.
413
- * @param updatedQuestion The full question object with changes.
414
- * @returns The updated QuizConfig.
415
- */
416
- updateQuestion(updatedQuestion: QuizQuestion): QuizConfig;
417
- /**
418
- * Deletes a question from the quiz by its index.
419
- * @param index The index of the question to delete.
420
- * @returns The updated QuizConfig.
421
- */
422
- deleteQuestionByIndex(index: number): QuizConfig;
423
- /**
424
- * Moves a question from one position to another.
425
- * @param fromIndex The current index of the question.
426
- * @param toIndex The target index for the question.
427
- * @returns The updated QuizConfig.
428
- */
429
- moveQuestion(fromIndex: number, toIndex: number): QuizConfig;
430
- }
431
-
432
- declare const GenerateFillInTheBlanksQuestionClientInputSchema: z.ZodObject<{
433
- topic: z.ZodString;
434
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
435
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
436
- numberOfBlanks: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
437
- isCaseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
438
- contextDescription: z.ZodOptional<z.ZodString>;
439
- selectedContextId: z.ZodOptional<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- topic: string;
442
- difficulty: "easy" | "medium" | "hard";
443
- language: string;
444
- numberOfBlanks: number;
445
- isCaseSensitive: boolean;
446
- contextDescription?: string | undefined;
447
- selectedContextId?: string | undefined;
448
- }, {
449
- topic: string;
450
- difficulty?: "easy" | "medium" | "hard" | undefined;
451
- language?: string | undefined;
452
- numberOfBlanks?: number | undefined;
453
- isCaseSensitive?: boolean | undefined;
454
- contextDescription?: string | undefined;
455
- selectedContextId?: string | undefined;
456
- }>;
457
- type GenerateFillInTheBlanksQuestionClientInput = z.infer<typeof GenerateFillInTheBlanksQuestionClientInputSchema>;
458
- declare const GenerateFillInTheBlanksQuestionOutputSchema: z.ZodObject<{
459
- question: z.ZodOptional<z.ZodEffects<z.ZodObject<{
460
- id: z.ZodString;
461
- questionType: z.ZodLiteral<"fill_in_the_blanks">;
462
- prompt: z.ZodString;
463
- segments: z.ZodArray<z.ZodObject<{
464
- type: z.ZodEnum<["text", "blank"]>;
465
- content: z.ZodOptional<z.ZodString>;
466
- id: z.ZodOptional<z.ZodString>;
467
- }, "strip", z.ZodTypeAny, {
468
- type: "text" | "blank";
469
- id?: string | undefined;
470
- content?: string | undefined;
471
- }, {
472
- type: "text" | "blank";
473
- id?: string | undefined;
474
- content?: string | undefined;
475
- }>, "many">;
476
- answers: z.ZodArray<z.ZodObject<{
477
- blankId: z.ZodString;
478
- acceptedValues: z.ZodArray<z.ZodString, "many">;
479
- }, "strip", z.ZodTypeAny, {
480
- blankId: string;
481
- acceptedValues: string[];
482
- }, {
483
- blankId: string;
484
- acceptedValues: string[];
485
- }>, "many">;
486
- isCaseSensitive: z.ZodOptional<z.ZodBoolean>;
487
- points: z.ZodOptional<z.ZodNumber>;
488
- explanation: z.ZodOptional<z.ZodString>;
489
- }, "strip", z.ZodTypeAny, {
490
- answers: {
491
- blankId: string;
492
- acceptedValues: string[];
493
- }[];
494
- prompt: string;
495
- id: string;
496
- questionType: "fill_in_the_blanks";
497
- segments: {
498
- type: "text" | "blank";
499
- id?: string | undefined;
500
- content?: string | undefined;
501
- }[];
502
- isCaseSensitive?: boolean | undefined;
503
- explanation?: string | undefined;
504
- points?: number | undefined;
505
- }, {
506
- answers: {
507
- blankId: string;
508
- acceptedValues: string[];
509
- }[];
510
- prompt: string;
511
- id: string;
512
- questionType: "fill_in_the_blanks";
513
- segments: {
514
- type: "text" | "blank";
515
- id?: string | undefined;
516
- content?: string | undefined;
517
- }[];
518
- isCaseSensitive?: boolean | undefined;
519
- explanation?: string | undefined;
520
- points?: number | undefined;
521
- }>, {
522
- answers: {
523
- blankId: string;
524
- acceptedValues: string[];
525
- }[];
526
- prompt: string;
527
- id: string;
528
- questionType: "fill_in_the_blanks";
529
- segments: {
530
- type: "text" | "blank";
531
- id?: string | undefined;
532
- content?: string | undefined;
533
- }[];
534
- isCaseSensitive?: boolean | undefined;
535
- explanation?: string | undefined;
536
- points?: number | undefined;
537
- }, {
538
- answers: {
539
- blankId: string;
540
- acceptedValues: string[];
541
- }[];
542
- prompt: string;
543
- id: string;
544
- questionType: "fill_in_the_blanks";
545
- segments: {
546
- type: "text" | "blank";
547
- id?: string | undefined;
548
- content?: string | undefined;
549
- }[];
550
- isCaseSensitive?: boolean | undefined;
551
- explanation?: string | undefined;
552
- points?: number | undefined;
553
- }>>;
554
- }, "strip", z.ZodTypeAny, {
555
- question?: {
556
- answers: {
557
- blankId: string;
558
- acceptedValues: string[];
559
- }[];
560
- prompt: string;
561
- id: string;
562
- questionType: "fill_in_the_blanks";
563
- segments: {
564
- type: "text" | "blank";
565
- id?: string | undefined;
566
- content?: string | undefined;
567
- }[];
568
- isCaseSensitive?: boolean | undefined;
569
- explanation?: string | undefined;
570
- points?: number | undefined;
571
- } | undefined;
572
- }, {
573
- question?: {
574
- answers: {
575
- blankId: string;
576
- acceptedValues: string[];
577
- }[];
578
- prompt: string;
579
- id: string;
580
- questionType: "fill_in_the_blanks";
581
- segments: {
582
- type: "text" | "blank";
583
- id?: string | undefined;
584
- content?: string | undefined;
585
- }[];
586
- isCaseSensitive?: boolean | undefined;
587
- explanation?: string | undefined;
588
- points?: number | undefined;
589
- } | undefined;
590
- }>;
591
- type GenerateFillInTheBlanksQuestionOutput = z.infer<typeof GenerateFillInTheBlanksQuestionOutputSchema>;
592
- declare function generateFillInTheBlanksQuestion(clientInput: GenerateFillInTheBlanksQuestionClientInput, apiKey: string): Promise<GenerateFillInTheBlanksQuestionOutput>;
593
-
594
- declare const GenerateMatchingQuestionClientInputSchema: z.ZodObject<{
595
- topic: z.ZodString;
596
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
597
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
598
- numberOfPairs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
599
- shuffleOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
600
- contextDescription: z.ZodOptional<z.ZodString>;
601
- selectedContextId: z.ZodOptional<z.ZodString>;
602
- }, "strip", z.ZodTypeAny, {
603
- topic: string;
604
- difficulty: "easy" | "medium" | "hard";
605
- shuffleOptions: boolean;
606
- language: string;
607
- numberOfPairs: number;
608
- contextDescription?: string | undefined;
609
- selectedContextId?: string | undefined;
610
- }, {
611
- topic: string;
612
- difficulty?: "easy" | "medium" | "hard" | undefined;
613
- shuffleOptions?: boolean | undefined;
614
- language?: string | undefined;
615
- contextDescription?: string | undefined;
616
- selectedContextId?: string | undefined;
617
- numberOfPairs?: number | undefined;
618
- }>;
619
- type GenerateMatchingQuestionClientInput = z.infer<typeof GenerateMatchingQuestionClientInputSchema>;
620
- declare const GenerateMatchingQuestionOutputSchema: z.ZodObject<{
621
- question: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
622
- id: z.ZodString;
623
- questionType: z.ZodLiteral<"matching">;
624
- prompt: z.ZodString;
625
- prompts: z.ZodArray<z.ZodObject<{
626
- id: z.ZodString;
627
- content: z.ZodString;
628
- }, "strip", z.ZodTypeAny, {
629
- id: string;
630
- content: string;
631
- }, {
632
- id: string;
633
- content: string;
634
- }>, "many">;
635
- options: z.ZodArray<z.ZodObject<{
636
- id: z.ZodString;
637
- content: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- id: string;
640
- content: string;
641
- }, {
642
- id: string;
643
- content: string;
644
- }>, "many">;
645
- correctAnswerMap: z.ZodArray<z.ZodObject<{
646
- promptId: z.ZodString;
647
- optionId: z.ZodString;
648
- }, "strip", z.ZodTypeAny, {
649
- promptId: string;
650
- optionId: string;
651
- }, {
652
- promptId: string;
653
- optionId: string;
654
- }>, "many">;
655
- shuffleOptions: z.ZodOptional<z.ZodBoolean>;
656
- points: z.ZodOptional<z.ZodNumber>;
657
- explanation: z.ZodOptional<z.ZodString>;
658
- }, "strip", z.ZodTypeAny, {
659
- options: {
660
- id: string;
661
- content: string;
662
- }[];
663
- prompt: string;
664
- id: string;
665
- questionType: "matching";
666
- prompts: {
667
- id: string;
668
- content: string;
669
- }[];
670
- correctAnswerMap: {
671
- promptId: string;
672
- optionId: string;
673
- }[];
674
- shuffleOptions?: boolean | undefined;
675
- explanation?: string | undefined;
676
- points?: number | undefined;
677
- }, {
678
- options: {
679
- id: string;
680
- content: string;
681
- }[];
682
- prompt: string;
683
- id: string;
684
- questionType: "matching";
685
- prompts: {
686
- id: string;
687
- content: string;
688
- }[];
689
- correctAnswerMap: {
690
- promptId: string;
691
- optionId: string;
692
- }[];
693
- shuffleOptions?: boolean | undefined;
694
- explanation?: string | undefined;
695
- points?: number | undefined;
696
- }>, {
697
- options: {
698
- id: string;
699
- content: string;
700
- }[];
701
- prompt: string;
702
- id: string;
703
- questionType: "matching";
704
- prompts: {
705
- id: string;
706
- content: string;
707
- }[];
708
- correctAnswerMap: {
709
- promptId: string;
710
- optionId: string;
711
- }[];
712
- shuffleOptions?: boolean | undefined;
713
- explanation?: string | undefined;
714
- points?: number | undefined;
715
- }, {
716
- options: {
717
- id: string;
718
- content: string;
719
- }[];
720
- prompt: string;
721
- id: string;
722
- questionType: "matching";
723
- prompts: {
724
- id: string;
725
- content: string;
726
- }[];
727
- correctAnswerMap: {
728
- promptId: string;
729
- optionId: string;
730
- }[];
731
- shuffleOptions?: boolean | undefined;
732
- explanation?: string | undefined;
733
- points?: number | undefined;
734
- }>, {
735
- options: {
736
- id: string;
737
- content: string;
738
- }[];
739
- prompt: string;
740
- id: string;
741
- questionType: "matching";
742
- prompts: {
743
- id: string;
744
- content: string;
745
- }[];
746
- correctAnswerMap: {
747
- promptId: string;
748
- optionId: string;
749
- }[];
750
- shuffleOptions?: boolean | undefined;
751
- explanation?: string | undefined;
752
- points?: number | undefined;
753
- }, {
754
- options: {
755
- id: string;
756
- content: string;
757
- }[];
758
- prompt: string;
759
- id: string;
760
- questionType: "matching";
761
- prompts: {
762
- id: string;
763
- content: string;
764
- }[];
765
- correctAnswerMap: {
766
- promptId: string;
767
- optionId: string;
768
- }[];
769
- shuffleOptions?: boolean | undefined;
770
- explanation?: string | undefined;
771
- points?: number | undefined;
772
- }>>;
773
- }, "strip", z.ZodTypeAny, {
774
- question?: {
775
- options: {
776
- id: string;
777
- content: string;
778
- }[];
779
- prompt: string;
780
- id: string;
781
- questionType: "matching";
782
- prompts: {
783
- id: string;
784
- content: string;
785
- }[];
786
- correctAnswerMap: {
787
- promptId: string;
788
- optionId: string;
789
- }[];
790
- shuffleOptions?: boolean | undefined;
791
- explanation?: string | undefined;
792
- points?: number | undefined;
793
- } | undefined;
794
- }, {
795
- question?: {
796
- options: {
797
- id: string;
798
- content: string;
799
- }[];
800
- prompt: string;
801
- id: string;
802
- questionType: "matching";
803
- prompts: {
804
- id: string;
805
- content: string;
806
- }[];
807
- correctAnswerMap: {
808
- promptId: string;
809
- optionId: string;
810
- }[];
811
- shuffleOptions?: boolean | undefined;
812
- explanation?: string | undefined;
813
- points?: number | undefined;
814
- } | undefined;
815
- }>;
816
- type GenerateMatchingQuestionOutput = z.infer<typeof GenerateMatchingQuestionOutputSchema>;
817
- declare function generateMatchingQuestion(clientInput: GenerateMatchingQuestionClientInput, apiKey: string): Promise<GenerateMatchingQuestionOutput>;
818
-
819
- declare const GenerateMCQQuestionClientInputSchema: z.ZodObject<{
820
- topic: z.ZodString;
821
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
822
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
823
- numberOfOptions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
824
- contextDescription: z.ZodOptional<z.ZodString>;
825
- selectedContextId: z.ZodOptional<z.ZodString>;
826
- }, "strip", z.ZodTypeAny, {
827
- topic: string;
828
- difficulty: "easy" | "medium" | "hard";
829
- language: string;
830
- numberOfOptions: number;
831
- contextDescription?: string | undefined;
832
- selectedContextId?: string | undefined;
833
- }, {
834
- topic: string;
835
- difficulty?: "easy" | "medium" | "hard" | undefined;
836
- language?: string | undefined;
837
- contextDescription?: string | undefined;
838
- selectedContextId?: string | undefined;
839
- numberOfOptions?: number | undefined;
840
- }>;
841
- type GenerateMCQQuestionClientInput = z.infer<typeof GenerateMCQQuestionClientInputSchema>;
842
- declare const GenerateMCQQuestionOutputSchema: z.ZodObject<{
843
- question: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
844
- id: z.ZodString;
845
- questionType: z.ZodLiteral<"multiple_choice">;
846
- prompt: z.ZodString;
847
- options: z.ZodArray<z.ZodObject<{
848
- id: z.ZodString;
849
- text: z.ZodString;
850
- }, "strip", z.ZodTypeAny, {
851
- text: string;
852
- id: string;
853
- }, {
854
- text: string;
855
- id: string;
856
- }>, "many">;
857
- correctAnswerId: z.ZodString;
858
- points: z.ZodOptional<z.ZodNumber>;
859
- explanation: z.ZodOptional<z.ZodString>;
860
- learningObjective: z.ZodOptional<z.ZodString>;
861
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
862
- bloomLevel: z.ZodOptional<z.ZodString>;
863
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
864
- contextCode: z.ZodOptional<z.ZodString>;
865
- gradeBand: z.ZodOptional<z.ZodString>;
866
- course: z.ZodOptional<z.ZodString>;
867
- category: z.ZodOptional<z.ZodString>;
868
- topic: z.ZodOptional<z.ZodString>;
869
- }, "strip", z.ZodTypeAny, {
870
- options: {
871
- text: string;
872
- id: string;
873
- }[];
874
- correctAnswerId: string;
875
- prompt: string;
876
- id: string;
877
- questionType: "multiple_choice";
878
- learningObjective?: string | undefined;
879
- category?: string | undefined;
880
- topic?: string | undefined;
881
- difficulty?: "easy" | "medium" | "hard" | undefined;
882
- bloomLevel?: string | undefined;
883
- explanation?: string | undefined;
884
- points?: number | undefined;
885
- glossary?: string[] | undefined;
886
- contextCode?: string | undefined;
887
- gradeBand?: string | undefined;
888
- course?: string | undefined;
889
- }, {
890
- options: {
891
- text: string;
892
- id: string;
893
- }[];
894
- correctAnswerId: string;
895
- prompt: string;
896
- id: string;
897
- questionType: "multiple_choice";
898
- learningObjective?: string | undefined;
899
- category?: string | undefined;
900
- topic?: string | undefined;
901
- difficulty?: "easy" | "medium" | "hard" | undefined;
902
- bloomLevel?: string | undefined;
903
- explanation?: string | undefined;
904
- points?: number | undefined;
905
- glossary?: string[] | undefined;
906
- contextCode?: string | undefined;
907
- gradeBand?: string | undefined;
908
- course?: string | undefined;
909
- }>, {
910
- options: {
911
- text: string;
912
- id: string;
913
- }[];
914
- correctAnswerId: string;
915
- prompt: string;
916
- id: string;
917
- questionType: "multiple_choice";
918
- learningObjective?: string | undefined;
919
- category?: string | undefined;
920
- topic?: string | undefined;
921
- difficulty?: "easy" | "medium" | "hard" | undefined;
922
- bloomLevel?: string | undefined;
923
- explanation?: string | undefined;
924
- points?: number | undefined;
925
- glossary?: string[] | undefined;
926
- contextCode?: string | undefined;
927
- gradeBand?: string | undefined;
928
- course?: string | undefined;
929
- }, {
930
- options: {
931
- text: string;
932
- id: string;
933
- }[];
934
- correctAnswerId: string;
935
- prompt: string;
936
- id: string;
937
- questionType: "multiple_choice";
938
- learningObjective?: string | undefined;
939
- category?: string | undefined;
940
- topic?: string | undefined;
941
- difficulty?: "easy" | "medium" | "hard" | undefined;
942
- bloomLevel?: string | undefined;
943
- explanation?: string | undefined;
944
- points?: number | undefined;
945
- glossary?: string[] | undefined;
946
- contextCode?: string | undefined;
947
- gradeBand?: string | undefined;
948
- course?: string | undefined;
949
- }>, {
950
- options: {
951
- text: string;
952
- id: string;
953
- }[];
954
- correctAnswerId: string;
955
- prompt: string;
956
- id: string;
957
- questionType: "multiple_choice";
958
- learningObjective?: string | undefined;
959
- category?: string | undefined;
960
- topic?: string | undefined;
961
- difficulty?: "easy" | "medium" | "hard" | undefined;
962
- bloomLevel?: string | undefined;
963
- explanation?: string | undefined;
964
- points?: number | undefined;
965
- glossary?: string[] | undefined;
966
- contextCode?: string | undefined;
967
- gradeBand?: string | undefined;
968
- course?: string | undefined;
969
- }, {
970
- options: {
971
- text: string;
972
- id: string;
973
- }[];
974
- correctAnswerId: string;
975
- prompt: string;
976
- id: string;
977
- questionType: "multiple_choice";
978
- learningObjective?: string | undefined;
979
- category?: string | undefined;
980
- topic?: string | undefined;
981
- difficulty?: "easy" | "medium" | "hard" | undefined;
982
- bloomLevel?: string | undefined;
983
- explanation?: string | undefined;
984
- points?: number | undefined;
985
- glossary?: string[] | undefined;
986
- contextCode?: string | undefined;
987
- gradeBand?: string | undefined;
988
- course?: string | undefined;
989
- }>>;
990
- }, "strip", z.ZodTypeAny, {
991
- question?: {
992
- options: {
993
- text: string;
994
- id: string;
995
- }[];
996
- correctAnswerId: string;
997
- prompt: string;
998
- id: string;
999
- questionType: "multiple_choice";
1000
- learningObjective?: string | undefined;
1001
- category?: string | undefined;
1002
- topic?: string | undefined;
1003
- difficulty?: "easy" | "medium" | "hard" | undefined;
1004
- bloomLevel?: string | undefined;
1005
- explanation?: string | undefined;
1006
- points?: number | undefined;
1007
- glossary?: string[] | undefined;
1008
- contextCode?: string | undefined;
1009
- gradeBand?: string | undefined;
1010
- course?: string | undefined;
1011
- } | undefined;
1012
- }, {
1013
- question?: {
1014
- options: {
1015
- text: string;
1016
- id: string;
1017
- }[];
1018
- correctAnswerId: string;
1019
- prompt: string;
1020
- id: string;
1021
- questionType: "multiple_choice";
1022
- learningObjective?: string | undefined;
1023
- category?: string | undefined;
1024
- topic?: string | undefined;
1025
- difficulty?: "easy" | "medium" | "hard" | undefined;
1026
- bloomLevel?: string | undefined;
1027
- explanation?: string | undefined;
1028
- points?: number | undefined;
1029
- glossary?: string[] | undefined;
1030
- contextCode?: string | undefined;
1031
- gradeBand?: string | undefined;
1032
- course?: string | undefined;
1033
- } | undefined;
1034
- }>;
1035
- type GenerateMCQQuestionOutput = z.infer<typeof GenerateMCQQuestionOutputSchema>;
1036
- declare function generateMCQQuestion(clientInput: GenerateMCQQuestionClientInput, apiKey: string): Promise<GenerateMCQQuestionOutput>;
1037
-
1038
- declare const GenerateMRQQuestionClientInputSchema: z.ZodObject<{
1039
- topic: z.ZodString;
1040
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1041
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
1042
- numberOfOptions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1043
- minCorrectAnswers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1044
- maxCorrectAnswers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1045
- contextDescription: z.ZodOptional<z.ZodString>;
1046
- selectedContextId: z.ZodOptional<z.ZodString>;
1047
- }, "strip", z.ZodTypeAny, {
1048
- topic: string;
1049
- difficulty: "easy" | "medium" | "hard";
1050
- language: string;
1051
- numberOfOptions: number;
1052
- minCorrectAnswers: number;
1053
- maxCorrectAnswers: number;
1054
- contextDescription?: string | undefined;
1055
- selectedContextId?: string | undefined;
1056
- }, {
1057
- topic: string;
1058
- difficulty?: "easy" | "medium" | "hard" | undefined;
1059
- language?: string | undefined;
1060
- contextDescription?: string | undefined;
1061
- selectedContextId?: string | undefined;
1062
- numberOfOptions?: number | undefined;
1063
- minCorrectAnswers?: number | undefined;
1064
- maxCorrectAnswers?: number | undefined;
1065
- }>;
1066
- type GenerateMRQQuestionClientInput = z.infer<typeof GenerateMRQQuestionClientInputSchema>;
1067
- declare const GenerateMRQQuestionOutputSchema: z.ZodObject<{
1068
- question: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1069
- id: z.ZodString;
1070
- questionType: z.ZodLiteral<"multiple_response">;
1071
- prompt: z.ZodString;
1072
- options: z.ZodArray<z.ZodObject<{
1073
- id: z.ZodString;
1074
- text: z.ZodString;
1075
- }, "strip", z.ZodTypeAny, {
1076
- text: string;
1077
- id: string;
1078
- }, {
1079
- text: string;
1080
- id: string;
1081
- }>, "many">;
1082
- correctAnswerIds: z.ZodArray<z.ZodString, "many">;
1083
- points: z.ZodOptional<z.ZodNumber>;
1084
- explanation: z.ZodOptional<z.ZodString>;
1085
- learningObjective: z.ZodOptional<z.ZodString>;
1086
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1087
- bloomLevel: z.ZodOptional<z.ZodString>;
1088
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
1089
- contextCode: z.ZodOptional<z.ZodString>;
1090
- gradeBand: z.ZodOptional<z.ZodString>;
1091
- course: z.ZodOptional<z.ZodString>;
1092
- category: z.ZodOptional<z.ZodString>;
1093
- topic: z.ZodOptional<z.ZodString>;
1094
- }, "strip", z.ZodTypeAny, {
1095
- options: {
1096
- text: string;
1097
- id: string;
1098
- }[];
1099
- prompt: string;
1100
- id: string;
1101
- questionType: "multiple_response";
1102
- correctAnswerIds: string[];
1103
- learningObjective?: string | undefined;
1104
- category?: string | undefined;
1105
- topic?: string | undefined;
1106
- difficulty?: "easy" | "medium" | "hard" | undefined;
1107
- bloomLevel?: string | undefined;
1108
- explanation?: string | undefined;
1109
- points?: number | undefined;
1110
- glossary?: string[] | undefined;
1111
- contextCode?: string | undefined;
1112
- gradeBand?: string | undefined;
1113
- course?: string | undefined;
1114
- }, {
1115
- options: {
1116
- text: string;
1117
- id: string;
1118
- }[];
1119
- prompt: string;
1120
- id: string;
1121
- questionType: "multiple_response";
1122
- correctAnswerIds: string[];
1123
- learningObjective?: string | undefined;
1124
- category?: string | undefined;
1125
- topic?: string | undefined;
1126
- difficulty?: "easy" | "medium" | "hard" | undefined;
1127
- bloomLevel?: string | undefined;
1128
- explanation?: string | undefined;
1129
- points?: number | undefined;
1130
- glossary?: string[] | undefined;
1131
- contextCode?: string | undefined;
1132
- gradeBand?: string | undefined;
1133
- course?: string | undefined;
1134
- }>, {
1135
- options: {
1136
- text: string;
1137
- id: string;
1138
- }[];
1139
- prompt: string;
1140
- id: string;
1141
- questionType: "multiple_response";
1142
- correctAnswerIds: string[];
1143
- learningObjective?: string | undefined;
1144
- category?: string | undefined;
1145
- topic?: string | undefined;
1146
- difficulty?: "easy" | "medium" | "hard" | undefined;
1147
- bloomLevel?: string | undefined;
1148
- explanation?: string | undefined;
1149
- points?: number | undefined;
1150
- glossary?: string[] | undefined;
1151
- contextCode?: string | undefined;
1152
- gradeBand?: string | undefined;
1153
- course?: string | undefined;
1154
- }, {
1155
- options: {
1156
- text: string;
1157
- id: string;
1158
- }[];
1159
- prompt: string;
1160
- id: string;
1161
- questionType: "multiple_response";
1162
- correctAnswerIds: string[];
1163
- learningObjective?: string | undefined;
1164
- category?: string | undefined;
1165
- topic?: string | undefined;
1166
- difficulty?: "easy" | "medium" | "hard" | undefined;
1167
- bloomLevel?: string | undefined;
1168
- explanation?: string | undefined;
1169
- points?: number | undefined;
1170
- glossary?: string[] | undefined;
1171
- contextCode?: string | undefined;
1172
- gradeBand?: string | undefined;
1173
- course?: string | undefined;
1174
- }>, {
1175
- options: {
1176
- text: string;
1177
- id: string;
1178
- }[];
1179
- prompt: string;
1180
- id: string;
1181
- questionType: "multiple_response";
1182
- correctAnswerIds: string[];
1183
- learningObjective?: string | undefined;
1184
- category?: string | undefined;
1185
- topic?: string | undefined;
1186
- difficulty?: "easy" | "medium" | "hard" | undefined;
1187
- bloomLevel?: string | undefined;
1188
- explanation?: string | undefined;
1189
- points?: number | undefined;
1190
- glossary?: string[] | undefined;
1191
- contextCode?: string | undefined;
1192
- gradeBand?: string | undefined;
1193
- course?: string | undefined;
1194
- }, {
1195
- options: {
1196
- text: string;
1197
- id: string;
1198
- }[];
1199
- prompt: string;
1200
- id: string;
1201
- questionType: "multiple_response";
1202
- correctAnswerIds: string[];
1203
- learningObjective?: string | undefined;
1204
- category?: string | undefined;
1205
- topic?: string | undefined;
1206
- difficulty?: "easy" | "medium" | "hard" | undefined;
1207
- bloomLevel?: string | undefined;
1208
- explanation?: string | undefined;
1209
- points?: number | undefined;
1210
- glossary?: string[] | undefined;
1211
- contextCode?: string | undefined;
1212
- gradeBand?: string | undefined;
1213
- course?: string | undefined;
1214
- }>>;
1215
- }, "strip", z.ZodTypeAny, {
1216
- question?: {
1217
- options: {
1218
- text: string;
1219
- id: string;
1220
- }[];
1221
- prompt: string;
1222
- id: string;
1223
- questionType: "multiple_response";
1224
- correctAnswerIds: string[];
1225
- learningObjective?: string | undefined;
1226
- category?: string | undefined;
1227
- topic?: string | undefined;
1228
- difficulty?: "easy" | "medium" | "hard" | undefined;
1229
- bloomLevel?: string | undefined;
1230
- explanation?: string | undefined;
1231
- points?: number | undefined;
1232
- glossary?: string[] | undefined;
1233
- contextCode?: string | undefined;
1234
- gradeBand?: string | undefined;
1235
- course?: string | undefined;
1236
- } | undefined;
1237
- }, {
1238
- question?: {
1239
- options: {
1240
- text: string;
1241
- id: string;
1242
- }[];
1243
- prompt: string;
1244
- id: string;
1245
- questionType: "multiple_response";
1246
- correctAnswerIds: string[];
1247
- learningObjective?: string | undefined;
1248
- category?: string | undefined;
1249
- topic?: string | undefined;
1250
- difficulty?: "easy" | "medium" | "hard" | undefined;
1251
- bloomLevel?: string | undefined;
1252
- explanation?: string | undefined;
1253
- points?: number | undefined;
1254
- glossary?: string[] | undefined;
1255
- contextCode?: string | undefined;
1256
- gradeBand?: string | undefined;
1257
- course?: string | undefined;
1258
- } | undefined;
1259
- }>;
1260
- type GenerateMRQQuestionOutput = z.infer<typeof GenerateMRQQuestionOutputSchema>;
1261
- declare function generateMRQQuestion(clientInput: GenerateMRQQuestionClientInput, apiKey: string): Promise<GenerateMRQQuestionOutput>;
1262
-
1263
- declare const GenerateNumericQuestionClientInputSchema: z.ZodObject<{
1264
- topic: z.ZodString;
1265
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1266
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
1267
- allowDecimals: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1268
- minRange: z.ZodOptional<z.ZodNumber>;
1269
- maxRange: z.ZodOptional<z.ZodNumber>;
1270
- contextDescription: z.ZodOptional<z.ZodString>;
1271
- selectedContextId: z.ZodOptional<z.ZodString>;
1272
- }, "strip", z.ZodTypeAny, {
1273
- topic: string;
1274
- difficulty: "easy" | "medium" | "hard";
1275
- language: string;
1276
- allowDecimals: boolean;
1277
- contextDescription?: string | undefined;
1278
- selectedContextId?: string | undefined;
1279
- minRange?: number | undefined;
1280
- maxRange?: number | undefined;
1281
- }, {
1282
- topic: string;
1283
- difficulty?: "easy" | "medium" | "hard" | undefined;
1284
- language?: string | undefined;
1285
- contextDescription?: string | undefined;
1286
- selectedContextId?: string | undefined;
1287
- allowDecimals?: boolean | undefined;
1288
- minRange?: number | undefined;
1289
- maxRange?: number | undefined;
1290
- }>;
1291
- type GenerateNumericQuestionClientInput = z.infer<typeof GenerateNumericQuestionClientInputSchema>;
1292
- declare const GenerateNumericQuestionOutputSchema: z.ZodObject<{
1293
- question: z.ZodOptional<z.ZodObject<{
1294
- id: z.ZodString;
1295
- questionType: z.ZodLiteral<"numeric">;
1296
- prompt: z.ZodString;
1297
- answer: z.ZodNumber;
1298
- tolerance: z.ZodOptional<z.ZodNumber>;
1299
- points: z.ZodOptional<z.ZodNumber>;
1300
- explanation: z.ZodOptional<z.ZodString>;
1301
- learningObjective: z.ZodOptional<z.ZodString>;
1302
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1303
- bloomLevel: z.ZodOptional<z.ZodString>;
1304
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
1305
- contextCode: z.ZodOptional<z.ZodString>;
1306
- gradeBand: z.ZodOptional<z.ZodString>;
1307
- course: z.ZodOptional<z.ZodString>;
1308
- category: z.ZodOptional<z.ZodString>;
1309
- topic: z.ZodOptional<z.ZodString>;
1310
- }, "strip", z.ZodTypeAny, {
1311
- prompt: string;
1312
- id: string;
1313
- questionType: "numeric";
1314
- answer: number;
1315
- learningObjective?: string | undefined;
1316
- category?: string | undefined;
1317
- topic?: string | undefined;
1318
- difficulty?: "easy" | "medium" | "hard" | undefined;
1319
- bloomLevel?: string | undefined;
1320
- explanation?: string | undefined;
1321
- points?: number | undefined;
1322
- glossary?: string[] | undefined;
1323
- contextCode?: string | undefined;
1324
- gradeBand?: string | undefined;
1325
- course?: string | undefined;
1326
- tolerance?: number | undefined;
1327
- }, {
1328
- prompt: string;
1329
- id: string;
1330
- questionType: "numeric";
1331
- answer: number;
1332
- learningObjective?: string | undefined;
1333
- category?: string | undefined;
1334
- topic?: string | undefined;
1335
- difficulty?: "easy" | "medium" | "hard" | undefined;
1336
- bloomLevel?: string | undefined;
1337
- explanation?: string | undefined;
1338
- points?: number | undefined;
1339
- glossary?: string[] | undefined;
1340
- contextCode?: string | undefined;
1341
- gradeBand?: string | undefined;
1342
- course?: string | undefined;
1343
- tolerance?: number | undefined;
1344
- }>>;
1345
- }, "strip", z.ZodTypeAny, {
1346
- question?: {
1347
- prompt: string;
1348
- id: string;
1349
- questionType: "numeric";
1350
- answer: number;
1351
- learningObjective?: string | undefined;
1352
- category?: string | undefined;
1353
- topic?: string | undefined;
1354
- difficulty?: "easy" | "medium" | "hard" | undefined;
1355
- bloomLevel?: string | undefined;
1356
- explanation?: string | undefined;
1357
- points?: number | undefined;
1358
- glossary?: string[] | undefined;
1359
- contextCode?: string | undefined;
1360
- gradeBand?: string | undefined;
1361
- course?: string | undefined;
1362
- tolerance?: number | undefined;
1363
- } | undefined;
1364
- }, {
1365
- question?: {
1366
- prompt: string;
1367
- id: string;
1368
- questionType: "numeric";
1369
- answer: number;
1370
- learningObjective?: string | undefined;
1371
- category?: string | undefined;
1372
- topic?: string | undefined;
1373
- difficulty?: "easy" | "medium" | "hard" | undefined;
1374
- bloomLevel?: string | undefined;
1375
- explanation?: string | undefined;
1376
- points?: number | undefined;
1377
- glossary?: string[] | undefined;
1378
- contextCode?: string | undefined;
1379
- gradeBand?: string | undefined;
1380
- course?: string | undefined;
1381
- tolerance?: number | undefined;
1382
- } | undefined;
1383
- }>;
1384
- type GenerateNumericQuestionOutput = z.infer<typeof GenerateNumericQuestionOutputSchema>;
1385
- declare function generateNumericQuestion(clientInput: GenerateNumericQuestionClientInput, apiKey: string): Promise<GenerateNumericQuestionOutput>;
1386
-
1387
- declare const BloomLevelStringsEnum: z.ZodEnum<["remembering", "understanding", "applying"]>;
1388
- type BloomLevelStringsForAI = z.infer<typeof BloomLevelStringsEnum>;
1389
- declare const GenerateQuizPlanClientInputSchema: z.ZodObject<{
1390
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1391
- totalQuestions: z.ZodNumber;
1392
- topics: z.ZodArray<z.ZodObject<{
1393
- topic: z.ZodString;
1394
- ratio: z.ZodNumber;
1395
- }, "strip", z.ZodTypeAny, {
1396
- topic: string;
1397
- ratio: number;
1398
- }, {
1399
- topic: string;
1400
- ratio: number;
1401
- }>, "many">;
1402
- bloomLevels: z.ZodArray<z.ZodObject<{
1403
- level: z.ZodEnum<["remembering", "understanding", "applying"]>;
1404
- ratio: z.ZodNumber;
1405
- }, "strip", z.ZodTypeAny, {
1406
- ratio: number;
1407
- level: "remembering" | "understanding" | "applying";
1408
- }, {
1409
- ratio: number;
1410
- level: "remembering" | "understanding" | "applying";
1411
- }>, "many">;
1412
- selectedContextIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1413
- selectedQuestionTypes: z.ZodArray<z.ZodEnum<[QuestionTypeStrings, ...QuestionTypeStrings[]]>, "many">;
1414
- }, "strip", z.ZodTypeAny, {
1415
- totalQuestions: number;
1416
- language: string;
1417
- topics: {
1418
- topic: string;
1419
- ratio: number;
1420
- }[];
1421
- bloomLevels: {
1422
- ratio: number;
1423
- level: "remembering" | "understanding" | "applying";
1424
- }[];
1425
- selectedQuestionTypes: QuestionTypeStrings[];
1426
- selectedContextIds?: string[] | undefined;
1427
- }, {
1428
- totalQuestions: number;
1429
- topics: {
1430
- topic: string;
1431
- ratio: number;
1432
- }[];
1433
- bloomLevels: {
1434
- ratio: number;
1435
- level: "remembering" | "understanding" | "applying";
1436
- }[];
1437
- selectedQuestionTypes: QuestionTypeStrings[];
1438
- language?: string | undefined;
1439
- selectedContextIds?: string[] | undefined;
1440
- }>;
1441
- type GenerateQuizPlanClientInput = z.infer<typeof GenerateQuizPlanClientInputSchema>;
1442
- declare const PlannedQuestionSchema: z.ZodObject<{
1443
- plannedTopic: z.ZodString;
1444
- plannedQuestionType: z.ZodEnum<[QuestionTypeStrings, ...QuestionTypeStrings[]]>;
1445
- plannedBloomLevel: z.ZodEnum<["remembering", "understanding", "applying"]>;
1446
- }, "strip", z.ZodTypeAny, {
1447
- plannedTopic: string;
1448
- plannedQuestionType: QuestionTypeStrings;
1449
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1450
- }, {
1451
- plannedTopic: string;
1452
- plannedQuestionType: QuestionTypeStrings;
1453
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1454
- }>;
1455
- type PlannedQuestion = z.infer<typeof PlannedQuestionSchema>;
1456
- declare const GenerateQuizPlanOutputSchema: z.ZodObject<{
1457
- quizPlan: z.ZodArray<z.ZodObject<{
1458
- plannedTopic: z.ZodString;
1459
- plannedQuestionType: z.ZodEnum<[QuestionTypeStrings, ...QuestionTypeStrings[]]>;
1460
- plannedBloomLevel: z.ZodEnum<["remembering", "understanding", "applying"]>;
1461
- }, "strip", z.ZodTypeAny, {
1462
- plannedTopic: string;
1463
- plannedQuestionType: QuestionTypeStrings;
1464
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1465
- }, {
1466
- plannedTopic: string;
1467
- plannedQuestionType: QuestionTypeStrings;
1468
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1469
- }>, "many">;
1470
- }, "strip", z.ZodTypeAny, {
1471
- quizPlan: {
1472
- plannedTopic: string;
1473
- plannedQuestionType: QuestionTypeStrings;
1474
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1475
- }[];
1476
- }, {
1477
- quizPlan: {
1478
- plannedTopic: string;
1479
- plannedQuestionType: QuestionTypeStrings;
1480
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1481
- }[];
1482
- }>;
1483
- type GenerateQuizPlanOutput = z.infer<typeof GenerateQuizPlanOutputSchema>;
1484
- declare function generateQuizPlan(clientInput: GenerateQuizPlanClientInput, apiKey: string): Promise<GenerateQuizPlanOutput>;
1485
-
1486
- declare const GenerateSequenceQuestionClientInputSchema: z.ZodObject<{
1487
- topic: z.ZodString;
1488
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1489
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
1490
- numberOfItems: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1491
- contextDescription: z.ZodOptional<z.ZodString>;
1492
- selectedContextId: z.ZodOptional<z.ZodString>;
1493
- }, "strip", z.ZodTypeAny, {
1494
- topic: string;
1495
- difficulty: "easy" | "medium" | "hard";
1496
- language: string;
1497
- numberOfItems: number;
1498
- contextDescription?: string | undefined;
1499
- selectedContextId?: string | undefined;
1500
- }, {
1501
- topic: string;
1502
- difficulty?: "easy" | "medium" | "hard" | undefined;
1503
- language?: string | undefined;
1504
- contextDescription?: string | undefined;
1505
- selectedContextId?: string | undefined;
1506
- numberOfItems?: number | undefined;
1507
- }>;
1508
- type GenerateSequenceQuestionClientInput = z.infer<typeof GenerateSequenceQuestionClientInputSchema>;
1509
- declare const GenerateSequenceQuestionOutputSchema: z.ZodObject<{
1510
- question: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1511
- id: z.ZodString;
1512
- questionType: z.ZodLiteral<"sequence">;
1513
- prompt: z.ZodString;
1514
- items: z.ZodArray<z.ZodObject<{
1515
- id: z.ZodString;
1516
- content: z.ZodString;
1517
- }, "strip", z.ZodTypeAny, {
1518
- id: string;
1519
- content: string;
1520
- }, {
1521
- id: string;
1522
- content: string;
1523
- }>, "many">;
1524
- correctOrder: z.ZodArray<z.ZodString, "many">;
1525
- points: z.ZodOptional<z.ZodNumber>;
1526
- explanation: z.ZodOptional<z.ZodString>;
1527
- learningObjective: z.ZodOptional<z.ZodString>;
1528
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1529
- bloomLevel: z.ZodOptional<z.ZodString>;
1530
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
1531
- contextCode: z.ZodOptional<z.ZodString>;
1532
- gradeBand: z.ZodOptional<z.ZodString>;
1533
- course: z.ZodOptional<z.ZodString>;
1534
- category: z.ZodOptional<z.ZodString>;
1535
- topic: z.ZodOptional<z.ZodString>;
1536
- }, "strip", z.ZodTypeAny, {
1537
- prompt: string;
1538
- id: string;
1539
- questionType: "sequence";
1540
- items: {
1541
- id: string;
1542
- content: string;
1543
- }[];
1544
- correctOrder: string[];
1545
- learningObjective?: string | undefined;
1546
- category?: string | undefined;
1547
- topic?: string | undefined;
1548
- difficulty?: "easy" | "medium" | "hard" | undefined;
1549
- bloomLevel?: string | undefined;
1550
- explanation?: string | undefined;
1551
- points?: number | undefined;
1552
- glossary?: string[] | undefined;
1553
- contextCode?: string | undefined;
1554
- gradeBand?: string | undefined;
1555
- course?: string | undefined;
1556
- }, {
1557
- prompt: string;
1558
- id: string;
1559
- questionType: "sequence";
1560
- items: {
1561
- id: string;
1562
- content: string;
1563
- }[];
1564
- correctOrder: string[];
1565
- learningObjective?: string | undefined;
1566
- category?: string | undefined;
1567
- topic?: string | undefined;
1568
- difficulty?: "easy" | "medium" | "hard" | undefined;
1569
- bloomLevel?: string | undefined;
1570
- explanation?: string | undefined;
1571
- points?: number | undefined;
1572
- glossary?: string[] | undefined;
1573
- contextCode?: string | undefined;
1574
- gradeBand?: string | undefined;
1575
- course?: string | undefined;
1576
- }>, {
1577
- prompt: string;
1578
- id: string;
1579
- questionType: "sequence";
1580
- items: {
1581
- id: string;
1582
- content: string;
1583
- }[];
1584
- correctOrder: string[];
1585
- learningObjective?: string | undefined;
1586
- category?: string | undefined;
1587
- topic?: string | undefined;
1588
- difficulty?: "easy" | "medium" | "hard" | undefined;
1589
- bloomLevel?: string | undefined;
1590
- explanation?: string | undefined;
1591
- points?: number | undefined;
1592
- glossary?: string[] | undefined;
1593
- contextCode?: string | undefined;
1594
- gradeBand?: string | undefined;
1595
- course?: string | undefined;
1596
- }, {
1597
- prompt: string;
1598
- id: string;
1599
- questionType: "sequence";
1600
- items: {
1601
- id: string;
1602
- content: string;
1603
- }[];
1604
- correctOrder: string[];
1605
- learningObjective?: string | undefined;
1606
- category?: string | undefined;
1607
- topic?: string | undefined;
1608
- difficulty?: "easy" | "medium" | "hard" | undefined;
1609
- bloomLevel?: string | undefined;
1610
- explanation?: string | undefined;
1611
- points?: number | undefined;
1612
- glossary?: string[] | undefined;
1613
- contextCode?: string | undefined;
1614
- gradeBand?: string | undefined;
1615
- course?: string | undefined;
1616
- }>, {
1617
- prompt: string;
1618
- id: string;
1619
- questionType: "sequence";
1620
- items: {
1621
- id: string;
1622
- content: string;
1623
- }[];
1624
- correctOrder: string[];
1625
- learningObjective?: string | undefined;
1626
- category?: string | undefined;
1627
- topic?: string | undefined;
1628
- difficulty?: "easy" | "medium" | "hard" | undefined;
1629
- bloomLevel?: string | undefined;
1630
- explanation?: string | undefined;
1631
- points?: number | undefined;
1632
- glossary?: string[] | undefined;
1633
- contextCode?: string | undefined;
1634
- gradeBand?: string | undefined;
1635
- course?: string | undefined;
1636
- }, {
1637
- prompt: string;
1638
- id: string;
1639
- questionType: "sequence";
1640
- items: {
1641
- id: string;
1642
- content: string;
1643
- }[];
1644
- correctOrder: string[];
1645
- learningObjective?: string | undefined;
1646
- category?: string | undefined;
1647
- topic?: string | undefined;
1648
- difficulty?: "easy" | "medium" | "hard" | undefined;
1649
- bloomLevel?: string | undefined;
1650
- explanation?: string | undefined;
1651
- points?: number | undefined;
1652
- glossary?: string[] | undefined;
1653
- contextCode?: string | undefined;
1654
- gradeBand?: string | undefined;
1655
- course?: string | undefined;
1656
- }>, {
1657
- prompt: string;
1658
- id: string;
1659
- questionType: "sequence";
1660
- items: {
1661
- id: string;
1662
- content: string;
1663
- }[];
1664
- correctOrder: string[];
1665
- learningObjective?: string | undefined;
1666
- category?: string | undefined;
1667
- topic?: string | undefined;
1668
- difficulty?: "easy" | "medium" | "hard" | undefined;
1669
- bloomLevel?: string | undefined;
1670
- explanation?: string | undefined;
1671
- points?: number | undefined;
1672
- glossary?: string[] | undefined;
1673
- contextCode?: string | undefined;
1674
- gradeBand?: string | undefined;
1675
- course?: string | undefined;
1676
- }, {
1677
- prompt: string;
1678
- id: string;
1679
- questionType: "sequence";
1680
- items: {
1681
- id: string;
1682
- content: string;
1683
- }[];
1684
- correctOrder: string[];
1685
- learningObjective?: string | undefined;
1686
- category?: string | undefined;
1687
- topic?: string | undefined;
1688
- difficulty?: "easy" | "medium" | "hard" | undefined;
1689
- bloomLevel?: string | undefined;
1690
- explanation?: string | undefined;
1691
- points?: number | undefined;
1692
- glossary?: string[] | undefined;
1693
- contextCode?: string | undefined;
1694
- gradeBand?: string | undefined;
1695
- course?: string | undefined;
1696
- }>>;
1697
- }, "strip", z.ZodTypeAny, {
1698
- question?: {
1699
- prompt: string;
1700
- id: string;
1701
- questionType: "sequence";
1702
- items: {
1703
- id: string;
1704
- content: string;
1705
- }[];
1706
- correctOrder: string[];
1707
- learningObjective?: string | undefined;
1708
- category?: string | undefined;
1709
- topic?: string | undefined;
1710
- difficulty?: "easy" | "medium" | "hard" | undefined;
1711
- bloomLevel?: string | undefined;
1712
- explanation?: string | undefined;
1713
- points?: number | undefined;
1714
- glossary?: string[] | undefined;
1715
- contextCode?: string | undefined;
1716
- gradeBand?: string | undefined;
1717
- course?: string | undefined;
1718
- } | undefined;
1719
- }, {
1720
- question?: {
1721
- prompt: string;
1722
- id: string;
1723
- questionType: "sequence";
1724
- items: {
1725
- id: string;
1726
- content: string;
1727
- }[];
1728
- correctOrder: string[];
1729
- learningObjective?: string | undefined;
1730
- category?: string | undefined;
1731
- topic?: string | undefined;
1732
- difficulty?: "easy" | "medium" | "hard" | undefined;
1733
- bloomLevel?: string | undefined;
1734
- explanation?: string | undefined;
1735
- points?: number | undefined;
1736
- glossary?: string[] | undefined;
1737
- contextCode?: string | undefined;
1738
- gradeBand?: string | undefined;
1739
- course?: string | undefined;
1740
- } | undefined;
1741
- }>;
1742
- type GenerateSequenceQuestionOutput = z.infer<typeof GenerateSequenceQuestionOutputSchema>;
1743
- declare function generateSequenceQuestion(clientInput: GenerateSequenceQuestionClientInput, apiKey: string): Promise<GenerateSequenceQuestionOutput>;
1744
-
1745
- declare const GenerateShortAnswerQuestionClientInputSchema: z.ZodObject<{
1746
- topic: z.ZodString;
1747
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1748
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
1749
- isCaseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1750
- contextDescription: z.ZodOptional<z.ZodString>;
1751
- selectedContextId: z.ZodOptional<z.ZodString>;
1752
- }, "strip", z.ZodTypeAny, {
1753
- topic: string;
1754
- difficulty: "easy" | "medium" | "hard";
1755
- language: string;
1756
- isCaseSensitive: boolean;
1757
- contextDescription?: string | undefined;
1758
- selectedContextId?: string | undefined;
1759
- }, {
1760
- topic: string;
1761
- difficulty?: "easy" | "medium" | "hard" | undefined;
1762
- language?: string | undefined;
1763
- isCaseSensitive?: boolean | undefined;
1764
- contextDescription?: string | undefined;
1765
- selectedContextId?: string | undefined;
1766
- }>;
1767
- type GenerateShortAnswerQuestionClientInput = z.infer<typeof GenerateShortAnswerQuestionClientInputSchema>;
1768
- declare const GenerateShortAnswerQuestionOutputSchema: z.ZodObject<{
1769
- question: z.ZodOptional<z.ZodObject<{
1770
- id: z.ZodString;
1771
- questionType: z.ZodLiteral<"short_answer">;
1772
- prompt: z.ZodString;
1773
- acceptedAnswers: z.ZodArray<z.ZodString, "many">;
1774
- isCaseSensitive: z.ZodOptional<z.ZodBoolean>;
1775
- points: z.ZodOptional<z.ZodNumber>;
1776
- explanation: z.ZodOptional<z.ZodString>;
1777
- learningObjective: z.ZodOptional<z.ZodString>;
1778
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1779
- bloomLevel: z.ZodOptional<z.ZodString>;
1780
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
1781
- contextCode: z.ZodOptional<z.ZodString>;
1782
- gradeBand: z.ZodOptional<z.ZodString>;
1783
- course: z.ZodOptional<z.ZodString>;
1784
- category: z.ZodOptional<z.ZodString>;
1785
- topic: z.ZodOptional<z.ZodString>;
1786
- }, "strip", z.ZodTypeAny, {
1787
- prompt: string;
1788
- acceptedAnswers: string[];
1789
- id: string;
1790
- questionType: "short_answer";
1791
- learningObjective?: string | undefined;
1792
- category?: string | undefined;
1793
- topic?: string | undefined;
1794
- difficulty?: "easy" | "medium" | "hard" | undefined;
1795
- bloomLevel?: string | undefined;
1796
- isCaseSensitive?: boolean | undefined;
1797
- explanation?: string | undefined;
1798
- points?: number | undefined;
1799
- glossary?: string[] | undefined;
1800
- contextCode?: string | undefined;
1801
- gradeBand?: string | undefined;
1802
- course?: string | undefined;
1803
- }, {
1804
- prompt: string;
1805
- acceptedAnswers: string[];
1806
- id: string;
1807
- questionType: "short_answer";
1808
- learningObjective?: string | undefined;
1809
- category?: string | undefined;
1810
- topic?: string | undefined;
1811
- difficulty?: "easy" | "medium" | "hard" | undefined;
1812
- bloomLevel?: string | undefined;
1813
- isCaseSensitive?: boolean | undefined;
1814
- explanation?: string | undefined;
1815
- points?: number | undefined;
1816
- glossary?: string[] | undefined;
1817
- contextCode?: string | undefined;
1818
- gradeBand?: string | undefined;
1819
- course?: string | undefined;
1820
- }>>;
1821
- }, "strip", z.ZodTypeAny, {
1822
- question?: {
1823
- prompt: string;
1824
- acceptedAnswers: string[];
1825
- id: string;
1826
- questionType: "short_answer";
1827
- learningObjective?: string | undefined;
1828
- category?: string | undefined;
1829
- topic?: string | undefined;
1830
- difficulty?: "easy" | "medium" | "hard" | undefined;
1831
- bloomLevel?: string | undefined;
1832
- isCaseSensitive?: boolean | undefined;
1833
- explanation?: string | undefined;
1834
- points?: number | undefined;
1835
- glossary?: string[] | undefined;
1836
- contextCode?: string | undefined;
1837
- gradeBand?: string | undefined;
1838
- course?: string | undefined;
1839
- } | undefined;
1840
- }, {
1841
- question?: {
1842
- prompt: string;
1843
- acceptedAnswers: string[];
1844
- id: string;
1845
- questionType: "short_answer";
1846
- learningObjective?: string | undefined;
1847
- category?: string | undefined;
1848
- topic?: string | undefined;
1849
- difficulty?: "easy" | "medium" | "hard" | undefined;
1850
- bloomLevel?: string | undefined;
1851
- isCaseSensitive?: boolean | undefined;
1852
- explanation?: string | undefined;
1853
- points?: number | undefined;
1854
- glossary?: string[] | undefined;
1855
- contextCode?: string | undefined;
1856
- gradeBand?: string | undefined;
1857
- course?: string | undefined;
1858
- } | undefined;
1859
- }>;
1860
- type GenerateShortAnswerQuestionOutput = z.infer<typeof GenerateShortAnswerQuestionOutputSchema>;
1861
- declare function generateShortAnswerQuestion(clientInput: GenerateShortAnswerQuestionClientInput, apiKey: string): Promise<GenerateShortAnswerQuestionOutput>;
1862
-
1863
- declare const GenerateTrueFalseQuestionClientInputSchema: z.ZodObject<{
1864
- topic: z.ZodString;
1865
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1866
- difficulty: z.ZodDefault<z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>>;
1867
- contextDescription: z.ZodOptional<z.ZodString>;
1868
- selectedContextId: z.ZodOptional<z.ZodString>;
1869
- }, "strip", z.ZodTypeAny, {
1870
- topic: string;
1871
- difficulty: "easy" | "medium" | "hard";
1872
- language: string;
1873
- contextDescription?: string | undefined;
1874
- selectedContextId?: string | undefined;
1875
- }, {
1876
- topic: string;
1877
- difficulty?: "easy" | "medium" | "hard" | undefined;
1878
- language?: string | undefined;
1879
- contextDescription?: string | undefined;
1880
- selectedContextId?: string | undefined;
1881
- }>;
1882
- type GenerateTrueFalseQuestionClientInput = z.infer<typeof GenerateTrueFalseQuestionClientInputSchema>;
1883
- declare const GenerateTrueFalseQuestionOutputSchema: z.ZodObject<{
1884
- question: z.ZodOptional<z.ZodObject<{
1885
- id: z.ZodString;
1886
- questionType: z.ZodLiteral<"true_false">;
1887
- prompt: z.ZodString;
1888
- correctAnswer: z.ZodBoolean;
1889
- points: z.ZodOptional<z.ZodNumber>;
1890
- explanation: z.ZodOptional<z.ZodString>;
1891
- learningObjective: z.ZodOptional<z.ZodString>;
1892
- glossary: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1893
- bloomLevel: z.ZodOptional<z.ZodString>;
1894
- difficulty: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
1895
- contextCode: z.ZodOptional<z.ZodString>;
1896
- gradeBand: z.ZodOptional<z.ZodString>;
1897
- course: z.ZodOptional<z.ZodString>;
1898
- category: z.ZodOptional<z.ZodString>;
1899
- topic: z.ZodOptional<z.ZodString>;
1900
- }, "strip", z.ZodTypeAny, {
1901
- correctAnswer: boolean;
1902
- prompt: string;
1903
- id: string;
1904
- questionType: "true_false";
1905
- learningObjective?: string | undefined;
1906
- category?: string | undefined;
1907
- topic?: string | undefined;
1908
- difficulty?: "easy" | "medium" | "hard" | undefined;
1909
- bloomLevel?: string | undefined;
1910
- explanation?: string | undefined;
1911
- points?: number | undefined;
1912
- glossary?: string[] | undefined;
1913
- contextCode?: string | undefined;
1914
- gradeBand?: string | undefined;
1915
- course?: string | undefined;
1916
- }, {
1917
- correctAnswer: boolean;
1918
- prompt: string;
1919
- id: string;
1920
- questionType: "true_false";
1921
- learningObjective?: string | undefined;
1922
- category?: string | undefined;
1923
- topic?: string | undefined;
1924
- difficulty?: "easy" | "medium" | "hard" | undefined;
1925
- bloomLevel?: string | undefined;
1926
- explanation?: string | undefined;
1927
- points?: number | undefined;
1928
- glossary?: string[] | undefined;
1929
- contextCode?: string | undefined;
1930
- gradeBand?: string | undefined;
1931
- course?: string | undefined;
1932
- }>>;
1933
- }, "strip", z.ZodTypeAny, {
1934
- question?: {
1935
- correctAnswer: boolean;
1936
- prompt: string;
1937
- id: string;
1938
- questionType: "true_false";
1939
- learningObjective?: string | undefined;
1940
- category?: string | undefined;
1941
- topic?: string | undefined;
1942
- difficulty?: "easy" | "medium" | "hard" | undefined;
1943
- bloomLevel?: string | undefined;
1944
- explanation?: string | undefined;
1945
- points?: number | undefined;
1946
- glossary?: string[] | undefined;
1947
- contextCode?: string | undefined;
1948
- gradeBand?: string | undefined;
1949
- course?: string | undefined;
1950
- } | undefined;
1951
- }, {
1952
- question?: {
1953
- correctAnswer: boolean;
1954
- prompt: string;
1955
- id: string;
1956
- questionType: "true_false";
1957
- learningObjective?: string | undefined;
1958
- category?: string | undefined;
1959
- topic?: string | undefined;
1960
- difficulty?: "easy" | "medium" | "hard" | undefined;
1961
- bloomLevel?: string | undefined;
1962
- explanation?: string | undefined;
1963
- points?: number | undefined;
1964
- glossary?: string[] | undefined;
1965
- contextCode?: string | undefined;
1966
- gradeBand?: string | undefined;
1967
- course?: string | undefined;
1968
- } | undefined;
1969
- }>;
1970
- type GenerateTrueFalseQuestionOutput = z.infer<typeof GenerateTrueFalseQuestionOutputSchema>;
1971
- declare function generateTrueFalseQuestion(clientInput: GenerateTrueFalseQuestionClientInput, apiKey: string): Promise<GenerateTrueFalseQuestionOutput>;
1972
-
1973
- declare const GenerateQuestionsFromQuizPlanClientInputSchema: z.ZodObject<{
1974
- quizPlan: z.ZodArray<z.ZodObject<{
1975
- plannedTopic: z.ZodString;
1976
- plannedQuestionType: z.ZodString;
1977
- plannedBloomLevel: z.ZodEnum<["remembering", "understanding", "applying"]>;
1978
- plannedContextId: z.ZodOptional<z.ZodString>;
1979
- }, "strip", z.ZodTypeAny, {
1980
- plannedTopic: string;
1981
- plannedQuestionType: string;
1982
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1983
- plannedContextId?: string | undefined;
1984
- }, {
1985
- plannedTopic: string;
1986
- plannedQuestionType: string;
1987
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1988
- plannedContextId?: string | undefined;
1989
- }>, "many">;
1990
- language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1991
- selectedContextIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1992
- customContextInput: z.ZodOptional<z.ZodString>;
1993
- }, "strip", z.ZodTypeAny, {
1994
- language: string;
1995
- quizPlan: {
1996
- plannedTopic: string;
1997
- plannedQuestionType: string;
1998
- plannedBloomLevel: "remembering" | "understanding" | "applying";
1999
- plannedContextId?: string | undefined;
2000
- }[];
2001
- selectedContextIds?: string[] | undefined;
2002
- customContextInput?: string | undefined;
2003
- }, {
2004
- quizPlan: {
2005
- plannedTopic: string;
2006
- plannedQuestionType: string;
2007
- plannedBloomLevel: "remembering" | "understanding" | "applying";
2008
- plannedContextId?: string | undefined;
2009
- }[];
2010
- language?: string | undefined;
2011
- selectedContextIds?: string[] | undefined;
2012
- customContextInput?: string | undefined;
2013
- }>;
2014
- type GenerateQuestionsFromQuizPlanClientInput = z.infer<typeof GenerateQuestionsFromQuizPlanClientInputSchema>;
2015
- declare const GenerateQuestionsFromQuizPlanOutputSchema: z.ZodObject<{
2016
- generatedQuestions: z.ZodArray<z.ZodAny, "many">;
2017
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2018
- plannedQuestionIndex: z.ZodNumber;
2019
- plannedTopic: z.ZodString;
2020
- plannedQuestionType: z.ZodString;
2021
- error: z.ZodString;
2022
- }, "strip", z.ZodTypeAny, {
2023
- error: string;
2024
- plannedTopic: string;
2025
- plannedQuestionType: string;
2026
- plannedQuestionIndex: number;
2027
- }, {
2028
- error: string;
2029
- plannedTopic: string;
2030
- plannedQuestionType: string;
2031
- plannedQuestionIndex: number;
2032
- }>, "many">>;
2033
- }, "strip", z.ZodTypeAny, {
2034
- generatedQuestions: any[];
2035
- errors?: {
2036
- error: string;
2037
- plannedTopic: string;
2038
- plannedQuestionType: string;
2039
- plannedQuestionIndex: number;
2040
- }[] | undefined;
2041
- }, {
2042
- generatedQuestions: any[];
2043
- errors?: {
2044
- error: string;
2045
- plannedTopic: string;
2046
- plannedQuestionType: string;
2047
- plannedQuestionIndex: number;
2048
- }[] | undefined;
2049
- }>;
2050
- type GenerateQuestionsFromQuizPlanOutput = z.infer<typeof GenerateQuestionsFromQuizPlanOutputSchema>;
2051
- declare function generateQuestionsFromQuizPlan(clientInput: GenerateQuestionsFromQuizPlanClientInput, apiKey: string): Promise<GenerateQuestionsFromQuizPlanOutput>;
2052
-
2053
- /**
2054
- * Generates a simple unique ID.
2055
- * @param prefix Optional prefix for the ID.
2056
- * @returns A string representing the unique ID.
2057
- */
2058
- declare function generateUniqueId(prefix?: string): string;
2059
-
2060
- declare function cn(...inputs: ClassValue[]): string;
2061
-
2062
- export { APIKeyService, type BaseQuestion, type BlocklyProgrammingQuestion, type BloomLevelStringsForAI, type DragAndDropQuestion, type DraggableItem, type DropZone, type FillInTheBlanksQuestion, GEMINI_API_KEY_SERVICE_NAME, type GenerateFillInTheBlanksQuestionClientInput, type GenerateFillInTheBlanksQuestionOutput, type GenerateMCQQuestionClientInput, type GenerateMCQQuestionOutput, type GenerateMRQQuestionClientInput, type GenerateMRQQuestionOutput, type GenerateMatchingQuestionClientInput, type GenerateMatchingQuestionOutput, type GenerateNumericQuestionClientInput, type GenerateNumericQuestionOutput, type GenerateQuestionsFromQuizPlanClientInput, type GenerateQuestionsFromQuizPlanOutput, type GenerateQuizPlanClientInput, type GenerateQuizPlanOutput, type GenerateSequenceQuestionClientInput, type GenerateSequenceQuestionOutput, type GenerateShortAnswerQuestionClientInput, type GenerateShortAnswerQuestionOutput, type GenerateTrueFalseQuestionClientInput, type GenerateTrueFalseQuestionOutput, type HotspotArea, type HotspotQuestion, type ImportError, type MarkdownString, type MatchOptionItem, type MatchPromptItem, type MatchingQuestion, type MultipleChoiceQuestion, type MultipleResponseQuestion, type NumericQuestion, type PerformanceByBloomLevel, type PerformanceByCategory, type PerformanceByDifficulty, type PerformanceByLearningObjective, type PerformanceByTopic, type PerformanceMetric, type PlannedQuestion, type QuestionOption, type QuestionTypeStrings, type QuizConfig, QuizEditorService, QuizEngine, type QuizEngineCallbacks, type QuizEngineConstructorOptions, type QuizQuestion, type QuizResult, type QuizSettings, type RichContentString, SCORMService, type SCORMSettings, type ScratchProgrammingQuestion, type SequenceItem, type SequenceQuestion, type ShortAnswerQuestion, type TrueFalseQuestion, type UserAnswerType, type UserAnswers, cn, emptyQuiz, exportQuizAsSCORMZip, generateFillInTheBlanksQuestion, generateLauncherHTML, generateMCQQuestion, generateMRQQuestion, generateMatchingQuestion, generateNumericQuestion, generateQuestionsFromQuizPlan, generateQuizPlan, generateSCORMManifest, generateSequenceQuestion, generateShortAnswerQuestion, generateTrueFalseQuestion, generateUniqueId, sampleQuiz };