@beanchain/handbook-lms 0.1.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +149 -0
  3. package/dist/adapter/index.cjs +4 -0
  4. package/dist/adapter/index.cjs.map +1 -0
  5. package/dist/adapter/index.d.cts +1 -0
  6. package/dist/adapter/index.d.ts +1 -0
  7. package/dist/adapter/index.js +3 -0
  8. package/dist/adapter/index.js.map +1 -0
  9. package/dist/chunk-6Z77HGDR.js +2384 -0
  10. package/dist/chunk-6Z77HGDR.js.map +1 -0
  11. package/dist/chunk-GZIXEHPW.js +268 -0
  12. package/dist/chunk-GZIXEHPW.js.map +1 -0
  13. package/dist/chunk-HOQRIQ33.js +3 -0
  14. package/dist/chunk-HOQRIQ33.js.map +1 -0
  15. package/dist/chunk-N4WYUTCR.js +264 -0
  16. package/dist/chunk-N4WYUTCR.js.map +1 -0
  17. package/dist/chunk-PYWAXMRT.js +6 -0
  18. package/dist/chunk-PYWAXMRT.js.map +1 -0
  19. package/dist/chunk-UVF7B4L2.js +73 -0
  20. package/dist/chunk-UVF7B4L2.js.map +1 -0
  21. package/dist/chunk-VRHNGFUG.js +90 -0
  22. package/dist/chunk-VRHNGFUG.js.map +1 -0
  23. package/dist/config/index.cjs +8 -0
  24. package/dist/config/index.cjs.map +1 -0
  25. package/dist/config/index.d.cts +52 -0
  26. package/dist/config/index.d.ts +52 -0
  27. package/dist/config/index.js +3 -0
  28. package/dist/config/index.js.map +1 -0
  29. package/dist/contracts/index.cjs +307 -0
  30. package/dist/contracts/index.cjs.map +1 -0
  31. package/dist/contracts/index.d.cts +3034 -0
  32. package/dist/contracts/index.d.ts +3034 -0
  33. package/dist/contracts/index.js +3 -0
  34. package/dist/contracts/index.js.map +1 -0
  35. package/dist/core/index.cjs +107 -0
  36. package/dist/core/index.cjs.map +1 -0
  37. package/dist/core/index.d.cts +293 -0
  38. package/dist/core/index.d.ts +293 -0
  39. package/dist/core/index.js +3 -0
  40. package/dist/core/index.js.map +1 -0
  41. package/dist/index-caUTkZqX.d.cts +321 -0
  42. package/dist/index-caUTkZqX.d.ts +321 -0
  43. package/dist/index.cjs +3129 -0
  44. package/dist/index.cjs.map +1 -0
  45. package/dist/index.d.cts +10 -0
  46. package/dist/index.d.ts +10 -0
  47. package/dist/index.js +9 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/react/index.cjs +77 -0
  50. package/dist/react/index.cjs.map +1 -0
  51. package/dist/react/index.d.cts +18 -0
  52. package/dist/react/index.d.ts +18 -0
  53. package/dist/react/index.js +3 -0
  54. package/dist/react/index.js.map +1 -0
  55. package/dist/react-headless/index.cjs +268 -0
  56. package/dist/react-headless/index.cjs.map +1 -0
  57. package/dist/react-headless/index.d.cts +181 -0
  58. package/dist/react-headless/index.d.ts +181 -0
  59. package/dist/react-headless/index.js +3 -0
  60. package/dist/react-headless/index.js.map +1 -0
  61. package/dist/react-mui/index.cjs +2653 -0
  62. package/dist/react-mui/index.cjs.map +1 -0
  63. package/dist/react-mui/index.d.cts +53 -0
  64. package/dist/react-mui/index.d.ts +53 -0
  65. package/dist/react-mui/index.js +4 -0
  66. package/dist/react-mui/index.js.map +1 -0
  67. package/package.json +85 -0
  68. package/sql/README.md +80 -0
  69. package/sql/blueprint.sql +7 -0
@@ -0,0 +1,3034 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const handbookLmsRoutes: {
4
+ readonly courses: "/api/lms-courses";
5
+ readonly courseCurriculum: (slug: string) => string;
6
+ readonly courseProgress: (slug: string) => string;
7
+ readonly questionProgress: (slug: string, moduleId: string, questionId: string) => string;
8
+ readonly submitModule: (slug: string, moduleId: string) => string;
9
+ readonly reviewModule: (slug: string, moduleId: string) => string;
10
+ readonly assignmentProgress: (slug: string, assignmentId: string) => string;
11
+ readonly adminCourses: "/api/lms-courses-admin";
12
+ readonly adminCourseCurriculum: (slug: string) => string;
13
+ };
14
+
15
+ declare const handbookLmsOwnerScopeSchema: z.ZodEnum<["global", "handbook"]>;
16
+ declare const handbookLmsProgressStatusSchema: z.ZodEnum<["pending", "in_progress", "submitted", "passed", "revision_required"]>;
17
+ declare const handbookLmsModuleModeSchema: z.ZodEnum<["single_stage", "multi_stage"]>;
18
+ declare const handbookLmsAssignmentResponseModeSchema: z.ZodEnum<["written", "in_person"]>;
19
+ declare const handbookLmsAssignmentStatusSchema: z.ZodEnum<["pending", "submitted", "completed"]>;
20
+ declare const handbookLmsQuestionResponseTypeSchema: z.ZodEnum<["short_text", "long_text", "checklist"]>;
21
+ declare const handbookLmsQuestionSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ module_id: z.ZodString;
24
+ stage_id: z.ZodString;
25
+ prompt: z.ZodString;
26
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
27
+ display_order: z.ZodNumber;
28
+ active: z.ZodBoolean;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id: string;
31
+ active: boolean;
32
+ display_order: number;
33
+ stage_id: string;
34
+ module_id: string;
35
+ prompt: string;
36
+ response_type: "short_text" | "long_text" | "checklist";
37
+ }, {
38
+ id: string;
39
+ active: boolean;
40
+ display_order: number;
41
+ stage_id: string;
42
+ module_id: string;
43
+ prompt: string;
44
+ response_type: "short_text" | "long_text" | "checklist";
45
+ }>;
46
+ declare const handbookLmsSectionSummarySchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ course_id: z.ZodString;
49
+ slug: z.ZodString;
50
+ title: z.ZodString;
51
+ description: z.ZodNullable<z.ZodString>;
52
+ display_order: z.ZodNumber;
53
+ active: z.ZodBoolean;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ slug: string;
57
+ title: string;
58
+ description: string | null;
59
+ active: boolean;
60
+ display_order: number;
61
+ course_id: string;
62
+ }, {
63
+ id: string;
64
+ slug: string;
65
+ title: string;
66
+ description: string | null;
67
+ active: boolean;
68
+ display_order: number;
69
+ course_id: string;
70
+ }>;
71
+ declare const handbookLmsStageSchema: z.ZodObject<{
72
+ id: z.ZodString;
73
+ module_id: z.ZodString;
74
+ title: z.ZodString;
75
+ content_md: z.ZodString;
76
+ display_order: z.ZodNumber;
77
+ active: z.ZodBoolean;
78
+ questions: z.ZodArray<z.ZodObject<{
79
+ id: z.ZodString;
80
+ module_id: z.ZodString;
81
+ stage_id: z.ZodString;
82
+ prompt: z.ZodString;
83
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
84
+ display_order: z.ZodNumber;
85
+ active: z.ZodBoolean;
86
+ }, "strip", z.ZodTypeAny, {
87
+ id: string;
88
+ active: boolean;
89
+ display_order: number;
90
+ stage_id: string;
91
+ module_id: string;
92
+ prompt: string;
93
+ response_type: "short_text" | "long_text" | "checklist";
94
+ }, {
95
+ id: string;
96
+ active: boolean;
97
+ display_order: number;
98
+ stage_id: string;
99
+ module_id: string;
100
+ prompt: string;
101
+ response_type: "short_text" | "long_text" | "checklist";
102
+ }>, "many">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ id: string;
105
+ title: string;
106
+ active: boolean;
107
+ display_order: number;
108
+ content_md: string;
109
+ module_id: string;
110
+ questions: {
111
+ id: string;
112
+ active: boolean;
113
+ display_order: number;
114
+ stage_id: string;
115
+ module_id: string;
116
+ prompt: string;
117
+ response_type: "short_text" | "long_text" | "checklist";
118
+ }[];
119
+ }, {
120
+ id: string;
121
+ title: string;
122
+ active: boolean;
123
+ display_order: number;
124
+ content_md: string;
125
+ module_id: string;
126
+ questions: {
127
+ id: string;
128
+ active: boolean;
129
+ display_order: number;
130
+ stage_id: string;
131
+ module_id: string;
132
+ prompt: string;
133
+ response_type: "short_text" | "long_text" | "checklist";
134
+ }[];
135
+ }>;
136
+ declare const handbookLmsModuleSchema: z.ZodObject<{
137
+ id: z.ZodString;
138
+ course_id: z.ZodString;
139
+ section_id: z.ZodString;
140
+ slug: z.ZodString;
141
+ module_type: z.ZodString;
142
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
143
+ title: z.ZodString;
144
+ summary: z.ZodString;
145
+ display_order: z.ZodNumber;
146
+ active: z.ZodBoolean;
147
+ archived_at: z.ZodNullable<z.ZodString>;
148
+ section: z.ZodOptional<z.ZodNullable<z.ZodObject<{
149
+ id: z.ZodString;
150
+ course_id: z.ZodString;
151
+ slug: z.ZodString;
152
+ title: z.ZodString;
153
+ description: z.ZodNullable<z.ZodString>;
154
+ display_order: z.ZodNumber;
155
+ active: z.ZodBoolean;
156
+ }, "strip", z.ZodTypeAny, {
157
+ id: string;
158
+ slug: string;
159
+ title: string;
160
+ description: string | null;
161
+ active: boolean;
162
+ display_order: number;
163
+ course_id: string;
164
+ }, {
165
+ id: string;
166
+ slug: string;
167
+ title: string;
168
+ description: string | null;
169
+ active: boolean;
170
+ display_order: number;
171
+ course_id: string;
172
+ }>>>;
173
+ stages: z.ZodArray<z.ZodObject<{
174
+ id: z.ZodString;
175
+ module_id: z.ZodString;
176
+ title: z.ZodString;
177
+ content_md: z.ZodString;
178
+ display_order: z.ZodNumber;
179
+ active: z.ZodBoolean;
180
+ questions: z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ module_id: z.ZodString;
183
+ stage_id: z.ZodString;
184
+ prompt: z.ZodString;
185
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
186
+ display_order: z.ZodNumber;
187
+ active: z.ZodBoolean;
188
+ }, "strip", z.ZodTypeAny, {
189
+ id: string;
190
+ active: boolean;
191
+ display_order: number;
192
+ stage_id: string;
193
+ module_id: string;
194
+ prompt: string;
195
+ response_type: "short_text" | "long_text" | "checklist";
196
+ }, {
197
+ id: string;
198
+ active: boolean;
199
+ display_order: number;
200
+ stage_id: string;
201
+ module_id: string;
202
+ prompt: string;
203
+ response_type: "short_text" | "long_text" | "checklist";
204
+ }>, "many">;
205
+ }, "strip", z.ZodTypeAny, {
206
+ id: string;
207
+ title: string;
208
+ active: boolean;
209
+ display_order: number;
210
+ content_md: string;
211
+ module_id: string;
212
+ questions: {
213
+ id: string;
214
+ active: boolean;
215
+ display_order: number;
216
+ stage_id: string;
217
+ module_id: string;
218
+ prompt: string;
219
+ response_type: "short_text" | "long_text" | "checklist";
220
+ }[];
221
+ }, {
222
+ id: string;
223
+ title: string;
224
+ active: boolean;
225
+ display_order: number;
226
+ content_md: string;
227
+ module_id: string;
228
+ questions: {
229
+ id: string;
230
+ active: boolean;
231
+ display_order: number;
232
+ stage_id: string;
233
+ module_id: string;
234
+ prompt: string;
235
+ response_type: "short_text" | "long_text" | "checklist";
236
+ }[];
237
+ }>, "many">;
238
+ exercises: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
+ id: z.ZodString;
240
+ module_id: z.ZodString;
241
+ stage_id: z.ZodString;
242
+ prompt: z.ZodString;
243
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
244
+ display_order: z.ZodNumber;
245
+ active: z.ZodBoolean;
246
+ }, "strip", z.ZodTypeAny, {
247
+ id: string;
248
+ active: boolean;
249
+ display_order: number;
250
+ stage_id: string;
251
+ module_id: string;
252
+ prompt: string;
253
+ response_type: "short_text" | "long_text" | "checklist";
254
+ }, {
255
+ id: string;
256
+ active: boolean;
257
+ display_order: number;
258
+ stage_id: string;
259
+ module_id: string;
260
+ prompt: string;
261
+ response_type: "short_text" | "long_text" | "checklist";
262
+ }>, "many">>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ id: string;
265
+ slug: string;
266
+ title: string;
267
+ active: boolean;
268
+ display_order: number;
269
+ section_id: string;
270
+ module_type: string;
271
+ module_mode: "single_stage" | "multi_stage";
272
+ summary: string;
273
+ stages: {
274
+ id: string;
275
+ title: string;
276
+ active: boolean;
277
+ display_order: number;
278
+ content_md: string;
279
+ module_id: string;
280
+ questions: {
281
+ id: string;
282
+ active: boolean;
283
+ display_order: number;
284
+ stage_id: string;
285
+ module_id: string;
286
+ prompt: string;
287
+ response_type: "short_text" | "long_text" | "checklist";
288
+ }[];
289
+ }[];
290
+ course_id: string;
291
+ archived_at: string | null;
292
+ section?: {
293
+ id: string;
294
+ slug: string;
295
+ title: string;
296
+ description: string | null;
297
+ active: boolean;
298
+ display_order: number;
299
+ course_id: string;
300
+ } | null | undefined;
301
+ exercises?: {
302
+ id: string;
303
+ active: boolean;
304
+ display_order: number;
305
+ stage_id: string;
306
+ module_id: string;
307
+ prompt: string;
308
+ response_type: "short_text" | "long_text" | "checklist";
309
+ }[] | undefined;
310
+ }, {
311
+ id: string;
312
+ slug: string;
313
+ title: string;
314
+ active: boolean;
315
+ display_order: number;
316
+ section_id: string;
317
+ module_type: string;
318
+ module_mode: "single_stage" | "multi_stage";
319
+ summary: string;
320
+ stages: {
321
+ id: string;
322
+ title: string;
323
+ active: boolean;
324
+ display_order: number;
325
+ content_md: string;
326
+ module_id: string;
327
+ questions: {
328
+ id: string;
329
+ active: boolean;
330
+ display_order: number;
331
+ stage_id: string;
332
+ module_id: string;
333
+ prompt: string;
334
+ response_type: "short_text" | "long_text" | "checklist";
335
+ }[];
336
+ }[];
337
+ course_id: string;
338
+ archived_at: string | null;
339
+ section?: {
340
+ id: string;
341
+ slug: string;
342
+ title: string;
343
+ description: string | null;
344
+ active: boolean;
345
+ display_order: number;
346
+ course_id: string;
347
+ } | null | undefined;
348
+ exercises?: {
349
+ id: string;
350
+ active: boolean;
351
+ display_order: number;
352
+ stage_id: string;
353
+ module_id: string;
354
+ prompt: string;
355
+ response_type: "short_text" | "long_text" | "checklist";
356
+ }[] | undefined;
357
+ }>;
358
+ declare const handbookLmsSectionSchema: z.ZodObject<{
359
+ id: z.ZodString;
360
+ course_id: z.ZodString;
361
+ slug: z.ZodString;
362
+ title: z.ZodString;
363
+ description: z.ZodNullable<z.ZodString>;
364
+ display_order: z.ZodNumber;
365
+ active: z.ZodBoolean;
366
+ } & {
367
+ modules: z.ZodArray<z.ZodObject<{
368
+ id: z.ZodString;
369
+ course_id: z.ZodString;
370
+ section_id: z.ZodString;
371
+ slug: z.ZodString;
372
+ module_type: z.ZodString;
373
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
374
+ title: z.ZodString;
375
+ summary: z.ZodString;
376
+ display_order: z.ZodNumber;
377
+ active: z.ZodBoolean;
378
+ archived_at: z.ZodNullable<z.ZodString>;
379
+ section: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
+ id: z.ZodString;
381
+ course_id: z.ZodString;
382
+ slug: z.ZodString;
383
+ title: z.ZodString;
384
+ description: z.ZodNullable<z.ZodString>;
385
+ display_order: z.ZodNumber;
386
+ active: z.ZodBoolean;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ slug: string;
390
+ title: string;
391
+ description: string | null;
392
+ active: boolean;
393
+ display_order: number;
394
+ course_id: string;
395
+ }, {
396
+ id: string;
397
+ slug: string;
398
+ title: string;
399
+ description: string | null;
400
+ active: boolean;
401
+ display_order: number;
402
+ course_id: string;
403
+ }>>>;
404
+ stages: z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ module_id: z.ZodString;
407
+ title: z.ZodString;
408
+ content_md: z.ZodString;
409
+ display_order: z.ZodNumber;
410
+ active: z.ZodBoolean;
411
+ questions: z.ZodArray<z.ZodObject<{
412
+ id: z.ZodString;
413
+ module_id: z.ZodString;
414
+ stage_id: z.ZodString;
415
+ prompt: z.ZodString;
416
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
417
+ display_order: z.ZodNumber;
418
+ active: z.ZodBoolean;
419
+ }, "strip", z.ZodTypeAny, {
420
+ id: string;
421
+ active: boolean;
422
+ display_order: number;
423
+ stage_id: string;
424
+ module_id: string;
425
+ prompt: string;
426
+ response_type: "short_text" | "long_text" | "checklist";
427
+ }, {
428
+ id: string;
429
+ active: boolean;
430
+ display_order: number;
431
+ stage_id: string;
432
+ module_id: string;
433
+ prompt: string;
434
+ response_type: "short_text" | "long_text" | "checklist";
435
+ }>, "many">;
436
+ }, "strip", z.ZodTypeAny, {
437
+ id: string;
438
+ title: string;
439
+ active: boolean;
440
+ display_order: number;
441
+ content_md: string;
442
+ module_id: string;
443
+ questions: {
444
+ id: string;
445
+ active: boolean;
446
+ display_order: number;
447
+ stage_id: string;
448
+ module_id: string;
449
+ prompt: string;
450
+ response_type: "short_text" | "long_text" | "checklist";
451
+ }[];
452
+ }, {
453
+ id: string;
454
+ title: string;
455
+ active: boolean;
456
+ display_order: number;
457
+ content_md: string;
458
+ module_id: string;
459
+ questions: {
460
+ id: string;
461
+ active: boolean;
462
+ display_order: number;
463
+ stage_id: string;
464
+ module_id: string;
465
+ prompt: string;
466
+ response_type: "short_text" | "long_text" | "checklist";
467
+ }[];
468
+ }>, "many">;
469
+ exercises: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
+ id: z.ZodString;
471
+ module_id: z.ZodString;
472
+ stage_id: z.ZodString;
473
+ prompt: z.ZodString;
474
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
475
+ display_order: z.ZodNumber;
476
+ active: z.ZodBoolean;
477
+ }, "strip", z.ZodTypeAny, {
478
+ id: string;
479
+ active: boolean;
480
+ display_order: number;
481
+ stage_id: string;
482
+ module_id: string;
483
+ prompt: string;
484
+ response_type: "short_text" | "long_text" | "checklist";
485
+ }, {
486
+ id: string;
487
+ active: boolean;
488
+ display_order: number;
489
+ stage_id: string;
490
+ module_id: string;
491
+ prompt: string;
492
+ response_type: "short_text" | "long_text" | "checklist";
493
+ }>, "many">>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ id: string;
496
+ slug: string;
497
+ title: string;
498
+ active: boolean;
499
+ display_order: number;
500
+ section_id: string;
501
+ module_type: string;
502
+ module_mode: "single_stage" | "multi_stage";
503
+ summary: string;
504
+ stages: {
505
+ id: string;
506
+ title: string;
507
+ active: boolean;
508
+ display_order: number;
509
+ content_md: string;
510
+ module_id: string;
511
+ questions: {
512
+ id: string;
513
+ active: boolean;
514
+ display_order: number;
515
+ stage_id: string;
516
+ module_id: string;
517
+ prompt: string;
518
+ response_type: "short_text" | "long_text" | "checklist";
519
+ }[];
520
+ }[];
521
+ course_id: string;
522
+ archived_at: string | null;
523
+ section?: {
524
+ id: string;
525
+ slug: string;
526
+ title: string;
527
+ description: string | null;
528
+ active: boolean;
529
+ display_order: number;
530
+ course_id: string;
531
+ } | null | undefined;
532
+ exercises?: {
533
+ id: string;
534
+ active: boolean;
535
+ display_order: number;
536
+ stage_id: string;
537
+ module_id: string;
538
+ prompt: string;
539
+ response_type: "short_text" | "long_text" | "checklist";
540
+ }[] | undefined;
541
+ }, {
542
+ id: string;
543
+ slug: string;
544
+ title: string;
545
+ active: boolean;
546
+ display_order: number;
547
+ section_id: string;
548
+ module_type: string;
549
+ module_mode: "single_stage" | "multi_stage";
550
+ summary: string;
551
+ stages: {
552
+ id: string;
553
+ title: string;
554
+ active: boolean;
555
+ display_order: number;
556
+ content_md: string;
557
+ module_id: string;
558
+ questions: {
559
+ id: string;
560
+ active: boolean;
561
+ display_order: number;
562
+ stage_id: string;
563
+ module_id: string;
564
+ prompt: string;
565
+ response_type: "short_text" | "long_text" | "checklist";
566
+ }[];
567
+ }[];
568
+ course_id: string;
569
+ archived_at: string | null;
570
+ section?: {
571
+ id: string;
572
+ slug: string;
573
+ title: string;
574
+ description: string | null;
575
+ active: boolean;
576
+ display_order: number;
577
+ course_id: string;
578
+ } | null | undefined;
579
+ exercises?: {
580
+ id: string;
581
+ active: boolean;
582
+ display_order: number;
583
+ stage_id: string;
584
+ module_id: string;
585
+ prompt: string;
586
+ response_type: "short_text" | "long_text" | "checklist";
587
+ }[] | undefined;
588
+ }>, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ id: string;
591
+ slug: string;
592
+ title: string;
593
+ description: string | null;
594
+ active: boolean;
595
+ display_order: number;
596
+ modules: {
597
+ id: string;
598
+ slug: string;
599
+ title: string;
600
+ active: boolean;
601
+ display_order: number;
602
+ section_id: string;
603
+ module_type: string;
604
+ module_mode: "single_stage" | "multi_stage";
605
+ summary: string;
606
+ stages: {
607
+ id: string;
608
+ title: string;
609
+ active: boolean;
610
+ display_order: number;
611
+ content_md: string;
612
+ module_id: string;
613
+ questions: {
614
+ id: string;
615
+ active: boolean;
616
+ display_order: number;
617
+ stage_id: string;
618
+ module_id: string;
619
+ prompt: string;
620
+ response_type: "short_text" | "long_text" | "checklist";
621
+ }[];
622
+ }[];
623
+ course_id: string;
624
+ archived_at: string | null;
625
+ section?: {
626
+ id: string;
627
+ slug: string;
628
+ title: string;
629
+ description: string | null;
630
+ active: boolean;
631
+ display_order: number;
632
+ course_id: string;
633
+ } | null | undefined;
634
+ exercises?: {
635
+ id: string;
636
+ active: boolean;
637
+ display_order: number;
638
+ stage_id: string;
639
+ module_id: string;
640
+ prompt: string;
641
+ response_type: "short_text" | "long_text" | "checklist";
642
+ }[] | undefined;
643
+ }[];
644
+ course_id: string;
645
+ }, {
646
+ id: string;
647
+ slug: string;
648
+ title: string;
649
+ description: string | null;
650
+ active: boolean;
651
+ display_order: number;
652
+ modules: {
653
+ id: string;
654
+ slug: string;
655
+ title: string;
656
+ active: boolean;
657
+ display_order: number;
658
+ section_id: string;
659
+ module_type: string;
660
+ module_mode: "single_stage" | "multi_stage";
661
+ summary: string;
662
+ stages: {
663
+ id: string;
664
+ title: string;
665
+ active: boolean;
666
+ display_order: number;
667
+ content_md: string;
668
+ module_id: string;
669
+ questions: {
670
+ id: string;
671
+ active: boolean;
672
+ display_order: number;
673
+ stage_id: string;
674
+ module_id: string;
675
+ prompt: string;
676
+ response_type: "short_text" | "long_text" | "checklist";
677
+ }[];
678
+ }[];
679
+ course_id: string;
680
+ archived_at: string | null;
681
+ section?: {
682
+ id: string;
683
+ slug: string;
684
+ title: string;
685
+ description: string | null;
686
+ active: boolean;
687
+ display_order: number;
688
+ course_id: string;
689
+ } | null | undefined;
690
+ exercises?: {
691
+ id: string;
692
+ active: boolean;
693
+ display_order: number;
694
+ stage_id: string;
695
+ module_id: string;
696
+ prompt: string;
697
+ response_type: "short_text" | "long_text" | "checklist";
698
+ }[] | undefined;
699
+ }[];
700
+ course_id: string;
701
+ }>;
702
+ declare const handbookLmsCourseSchema: z.ZodObject<{
703
+ id: z.ZodString;
704
+ handbook_id: z.ZodNullable<z.ZodString>;
705
+ owner_scope: z.ZodEnum<["global", "handbook"]>;
706
+ slug: z.ZodString;
707
+ title: z.ZodString;
708
+ description: z.ZodNullable<z.ZodString>;
709
+ published: z.ZodBoolean;
710
+ active: z.ZodBoolean;
711
+ created_at: z.ZodString;
712
+ updated_at: z.ZodString;
713
+ }, "strip", z.ZodTypeAny, {
714
+ id: string;
715
+ slug: string;
716
+ title: string;
717
+ description: string | null;
718
+ owner_scope: "global" | "handbook";
719
+ handbook_id: string | null;
720
+ published: boolean;
721
+ active: boolean;
722
+ created_at: string;
723
+ updated_at: string;
724
+ }, {
725
+ id: string;
726
+ slug: string;
727
+ title: string;
728
+ description: string | null;
729
+ owner_scope: "global" | "handbook";
730
+ handbook_id: string | null;
731
+ published: boolean;
732
+ active: boolean;
733
+ created_at: string;
734
+ updated_at: string;
735
+ }>;
736
+ declare const handbookLmsCourseUpsertInputSchema: z.ZodObject<{
737
+ owner_scope: z.ZodDefault<z.ZodEnum<["global", "handbook"]>>;
738
+ slug: z.ZodString;
739
+ title: z.ZodString;
740
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
741
+ published: z.ZodOptional<z.ZodBoolean>;
742
+ active: z.ZodOptional<z.ZodBoolean>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ slug: string;
745
+ title: string;
746
+ owner_scope: "global" | "handbook";
747
+ description?: string | null | undefined;
748
+ published?: boolean | undefined;
749
+ active?: boolean | undefined;
750
+ }, {
751
+ slug: string;
752
+ title: string;
753
+ description?: string | null | undefined;
754
+ owner_scope?: "global" | "handbook" | undefined;
755
+ published?: boolean | undefined;
756
+ active?: boolean | undefined;
757
+ }>;
758
+ declare const handbookLmsCourseLibraryItemSchema: z.ZodObject<{
759
+ id: z.ZodString;
760
+ slug: z.ZodString;
761
+ title: z.ZodString;
762
+ description: z.ZodNullable<z.ZodString>;
763
+ owner_scope: z.ZodEnum<["global", "handbook"]>;
764
+ handbook_id: z.ZodNullable<z.ZodString>;
765
+ published: z.ZodBoolean;
766
+ active: z.ZodBoolean;
767
+ total_modules: z.ZodNumber;
768
+ passed_modules: z.ZodNumber;
769
+ in_progress_modules: z.ZodNumber;
770
+ submitted_modules: z.ZodNumber;
771
+ }, "strip", z.ZodTypeAny, {
772
+ id: string;
773
+ slug: string;
774
+ title: string;
775
+ description: string | null;
776
+ owner_scope: "global" | "handbook";
777
+ handbook_id: string | null;
778
+ published: boolean;
779
+ active: boolean;
780
+ total_modules: number;
781
+ passed_modules: number;
782
+ in_progress_modules: number;
783
+ submitted_modules: number;
784
+ }, {
785
+ id: string;
786
+ slug: string;
787
+ title: string;
788
+ description: string | null;
789
+ owner_scope: "global" | "handbook";
790
+ handbook_id: string | null;
791
+ published: boolean;
792
+ active: boolean;
793
+ total_modules: number;
794
+ passed_modules: number;
795
+ in_progress_modules: number;
796
+ submitted_modules: number;
797
+ }>;
798
+ declare const handbookLmsProgressSchema: z.ZodObject<{
799
+ module_id: z.ZodString;
800
+ status: z.ZodEnum<["pending", "in_progress", "submitted", "passed", "revision_required"]>;
801
+ completed_at: z.ZodNullable<z.ZodString>;
802
+ submitted_at: z.ZodNullable<z.ZodString>;
803
+ reviewed_at: z.ZodNullable<z.ZodString>;
804
+ reviewed_by: z.ZodNullable<z.ZodString>;
805
+ review_feedback_md: z.ZodNullable<z.ZodString>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
808
+ module_id: string;
809
+ review_feedback_md: string | null;
810
+ completed_at: string | null;
811
+ submitted_at: string | null;
812
+ reviewed_at: string | null;
813
+ reviewed_by: string | null;
814
+ }, {
815
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
816
+ module_id: string;
817
+ review_feedback_md: string | null;
818
+ completed_at: string | null;
819
+ submitted_at: string | null;
820
+ reviewed_at: string | null;
821
+ reviewed_by: string | null;
822
+ }>;
823
+ declare const handbookLmsQuestionResponseSchema: z.ZodObject<{
824
+ id: z.ZodString;
825
+ module_id: z.ZodString;
826
+ question_id: z.ZodString;
827
+ response_md: z.ZodString;
828
+ updated_at: z.ZodString;
829
+ submitted_at: z.ZodNullable<z.ZodString>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ id: string;
832
+ updated_at: string;
833
+ module_id: string;
834
+ response_md: string;
835
+ submitted_at: string | null;
836
+ question_id: string;
837
+ }, {
838
+ id: string;
839
+ updated_at: string;
840
+ module_id: string;
841
+ response_md: string;
842
+ submitted_at: string | null;
843
+ question_id: string;
844
+ }>;
845
+ declare const handbookLmsModuleAssignmentSchema: z.ZodObject<{
846
+ id: z.ZodString;
847
+ module_id: z.ZodString;
848
+ learner_user_id: z.ZodString;
849
+ assigned_by_user_id: z.ZodString;
850
+ prompt: z.ZodString;
851
+ target_question_ids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
852
+ target_original_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
853
+ target_updated_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
854
+ response_mode: z.ZodEnum<["written", "in_person"]>;
855
+ learner_assignment_response_md: z.ZodNullable<z.ZodString>;
856
+ learner_additional_response_md: z.ZodNullable<z.ZodString>;
857
+ learner_response_md: z.ZodNullable<z.ZodString>;
858
+ status: z.ZodEnum<["pending", "submitted", "completed"]>;
859
+ due_at: z.ZodNullable<z.ZodString>;
860
+ submitted_at: z.ZodNullable<z.ZodString>;
861
+ completed_at: z.ZodNullable<z.ZodString>;
862
+ reviewer_note_md: z.ZodNullable<z.ZodString>;
863
+ created_at: z.ZodString;
864
+ updated_at: z.ZodString;
865
+ learner_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
+ assigned_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ id: string;
869
+ created_at: string;
870
+ updated_at: string;
871
+ status: "pending" | "submitted" | "completed";
872
+ module_id: string;
873
+ prompt: string;
874
+ learner_user_id: string;
875
+ response_mode: "written" | "in_person";
876
+ target_question_ids: string[] | null;
877
+ due_at: string | null;
878
+ reviewer_note_md: string | null;
879
+ learner_assignment_response_md: string | null;
880
+ learner_additional_response_md: string | null;
881
+ learner_response_md: string | null;
882
+ completed_at: string | null;
883
+ submitted_at: string | null;
884
+ assigned_by_user_id: string;
885
+ target_original_answers_json: Record<string, string> | null;
886
+ target_updated_answers_json: Record<string, string> | null;
887
+ learner_name?: string | null | undefined;
888
+ assigned_by_name?: string | null | undefined;
889
+ }, {
890
+ id: string;
891
+ created_at: string;
892
+ updated_at: string;
893
+ status: "pending" | "submitted" | "completed";
894
+ module_id: string;
895
+ prompt: string;
896
+ learner_user_id: string;
897
+ response_mode: "written" | "in_person";
898
+ target_question_ids: string[] | null;
899
+ due_at: string | null;
900
+ reviewer_note_md: string | null;
901
+ learner_assignment_response_md: string | null;
902
+ learner_additional_response_md: string | null;
903
+ learner_response_md: string | null;
904
+ completed_at: string | null;
905
+ submitted_at: string | null;
906
+ assigned_by_user_id: string;
907
+ target_original_answers_json: Record<string, string> | null;
908
+ target_updated_answers_json: Record<string, string> | null;
909
+ learner_name?: string | null | undefined;
910
+ assigned_by_name?: string | null | undefined;
911
+ }>;
912
+ declare const handbookLmsLearningRecordSchema: z.ZodObject<{
913
+ module: z.ZodObject<{
914
+ id: z.ZodString;
915
+ course_id: z.ZodString;
916
+ section_id: z.ZodString;
917
+ slug: z.ZodString;
918
+ module_type: z.ZodString;
919
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
920
+ title: z.ZodString;
921
+ summary: z.ZodString;
922
+ display_order: z.ZodNumber;
923
+ active: z.ZodBoolean;
924
+ archived_at: z.ZodNullable<z.ZodString>;
925
+ section: z.ZodOptional<z.ZodNullable<z.ZodObject<{
926
+ id: z.ZodString;
927
+ course_id: z.ZodString;
928
+ slug: z.ZodString;
929
+ title: z.ZodString;
930
+ description: z.ZodNullable<z.ZodString>;
931
+ display_order: z.ZodNumber;
932
+ active: z.ZodBoolean;
933
+ }, "strip", z.ZodTypeAny, {
934
+ id: string;
935
+ slug: string;
936
+ title: string;
937
+ description: string | null;
938
+ active: boolean;
939
+ display_order: number;
940
+ course_id: string;
941
+ }, {
942
+ id: string;
943
+ slug: string;
944
+ title: string;
945
+ description: string | null;
946
+ active: boolean;
947
+ display_order: number;
948
+ course_id: string;
949
+ }>>>;
950
+ stages: z.ZodArray<z.ZodObject<{
951
+ id: z.ZodString;
952
+ module_id: z.ZodString;
953
+ title: z.ZodString;
954
+ content_md: z.ZodString;
955
+ display_order: z.ZodNumber;
956
+ active: z.ZodBoolean;
957
+ questions: z.ZodArray<z.ZodObject<{
958
+ id: z.ZodString;
959
+ module_id: z.ZodString;
960
+ stage_id: z.ZodString;
961
+ prompt: z.ZodString;
962
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
963
+ display_order: z.ZodNumber;
964
+ active: z.ZodBoolean;
965
+ }, "strip", z.ZodTypeAny, {
966
+ id: string;
967
+ active: boolean;
968
+ display_order: number;
969
+ stage_id: string;
970
+ module_id: string;
971
+ prompt: string;
972
+ response_type: "short_text" | "long_text" | "checklist";
973
+ }, {
974
+ id: string;
975
+ active: boolean;
976
+ display_order: number;
977
+ stage_id: string;
978
+ module_id: string;
979
+ prompt: string;
980
+ response_type: "short_text" | "long_text" | "checklist";
981
+ }>, "many">;
982
+ }, "strip", z.ZodTypeAny, {
983
+ id: string;
984
+ title: string;
985
+ active: boolean;
986
+ display_order: number;
987
+ content_md: string;
988
+ module_id: string;
989
+ questions: {
990
+ id: string;
991
+ active: boolean;
992
+ display_order: number;
993
+ stage_id: string;
994
+ module_id: string;
995
+ prompt: string;
996
+ response_type: "short_text" | "long_text" | "checklist";
997
+ }[];
998
+ }, {
999
+ id: string;
1000
+ title: string;
1001
+ active: boolean;
1002
+ display_order: number;
1003
+ content_md: string;
1004
+ module_id: string;
1005
+ questions: {
1006
+ id: string;
1007
+ active: boolean;
1008
+ display_order: number;
1009
+ stage_id: string;
1010
+ module_id: string;
1011
+ prompt: string;
1012
+ response_type: "short_text" | "long_text" | "checklist";
1013
+ }[];
1014
+ }>, "many">;
1015
+ exercises: z.ZodOptional<z.ZodArray<z.ZodObject<{
1016
+ id: z.ZodString;
1017
+ module_id: z.ZodString;
1018
+ stage_id: z.ZodString;
1019
+ prompt: z.ZodString;
1020
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
1021
+ display_order: z.ZodNumber;
1022
+ active: z.ZodBoolean;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ id: string;
1025
+ active: boolean;
1026
+ display_order: number;
1027
+ stage_id: string;
1028
+ module_id: string;
1029
+ prompt: string;
1030
+ response_type: "short_text" | "long_text" | "checklist";
1031
+ }, {
1032
+ id: string;
1033
+ active: boolean;
1034
+ display_order: number;
1035
+ stage_id: string;
1036
+ module_id: string;
1037
+ prompt: string;
1038
+ response_type: "short_text" | "long_text" | "checklist";
1039
+ }>, "many">>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ id: string;
1042
+ slug: string;
1043
+ title: string;
1044
+ active: boolean;
1045
+ display_order: number;
1046
+ section_id: string;
1047
+ module_type: string;
1048
+ module_mode: "single_stage" | "multi_stage";
1049
+ summary: string;
1050
+ stages: {
1051
+ id: string;
1052
+ title: string;
1053
+ active: boolean;
1054
+ display_order: number;
1055
+ content_md: string;
1056
+ module_id: string;
1057
+ questions: {
1058
+ id: string;
1059
+ active: boolean;
1060
+ display_order: number;
1061
+ stage_id: string;
1062
+ module_id: string;
1063
+ prompt: string;
1064
+ response_type: "short_text" | "long_text" | "checklist";
1065
+ }[];
1066
+ }[];
1067
+ course_id: string;
1068
+ archived_at: string | null;
1069
+ section?: {
1070
+ id: string;
1071
+ slug: string;
1072
+ title: string;
1073
+ description: string | null;
1074
+ active: boolean;
1075
+ display_order: number;
1076
+ course_id: string;
1077
+ } | null | undefined;
1078
+ exercises?: {
1079
+ id: string;
1080
+ active: boolean;
1081
+ display_order: number;
1082
+ stage_id: string;
1083
+ module_id: string;
1084
+ prompt: string;
1085
+ response_type: "short_text" | "long_text" | "checklist";
1086
+ }[] | undefined;
1087
+ }, {
1088
+ id: string;
1089
+ slug: string;
1090
+ title: string;
1091
+ active: boolean;
1092
+ display_order: number;
1093
+ section_id: string;
1094
+ module_type: string;
1095
+ module_mode: "single_stage" | "multi_stage";
1096
+ summary: string;
1097
+ stages: {
1098
+ id: string;
1099
+ title: string;
1100
+ active: boolean;
1101
+ display_order: number;
1102
+ content_md: string;
1103
+ module_id: string;
1104
+ questions: {
1105
+ id: string;
1106
+ active: boolean;
1107
+ display_order: number;
1108
+ stage_id: string;
1109
+ module_id: string;
1110
+ prompt: string;
1111
+ response_type: "short_text" | "long_text" | "checklist";
1112
+ }[];
1113
+ }[];
1114
+ course_id: string;
1115
+ archived_at: string | null;
1116
+ section?: {
1117
+ id: string;
1118
+ slug: string;
1119
+ title: string;
1120
+ description: string | null;
1121
+ active: boolean;
1122
+ display_order: number;
1123
+ course_id: string;
1124
+ } | null | undefined;
1125
+ exercises?: {
1126
+ id: string;
1127
+ active: boolean;
1128
+ display_order: number;
1129
+ stage_id: string;
1130
+ module_id: string;
1131
+ prompt: string;
1132
+ response_type: "short_text" | "long_text" | "checklist";
1133
+ }[] | undefined;
1134
+ }>;
1135
+ progress: z.ZodObject<{
1136
+ module_id: z.ZodString;
1137
+ status: z.ZodEnum<["pending", "in_progress", "submitted", "passed", "revision_required"]>;
1138
+ completed_at: z.ZodNullable<z.ZodString>;
1139
+ submitted_at: z.ZodNullable<z.ZodString>;
1140
+ reviewed_at: z.ZodNullable<z.ZodString>;
1141
+ reviewed_by: z.ZodNullable<z.ZodString>;
1142
+ review_feedback_md: z.ZodNullable<z.ZodString>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1145
+ module_id: string;
1146
+ review_feedback_md: string | null;
1147
+ completed_at: string | null;
1148
+ submitted_at: string | null;
1149
+ reviewed_at: string | null;
1150
+ reviewed_by: string | null;
1151
+ }, {
1152
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1153
+ module_id: string;
1154
+ review_feedback_md: string | null;
1155
+ completed_at: string | null;
1156
+ submitted_at: string | null;
1157
+ reviewed_at: string | null;
1158
+ reviewed_by: string | null;
1159
+ }>;
1160
+ responses: z.ZodArray<z.ZodObject<{
1161
+ id: z.ZodString;
1162
+ module_id: z.ZodString;
1163
+ question_id: z.ZodString;
1164
+ response_md: z.ZodString;
1165
+ updated_at: z.ZodString;
1166
+ submitted_at: z.ZodNullable<z.ZodString>;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ id: string;
1169
+ updated_at: string;
1170
+ module_id: string;
1171
+ response_md: string;
1172
+ submitted_at: string | null;
1173
+ question_id: string;
1174
+ }, {
1175
+ id: string;
1176
+ updated_at: string;
1177
+ module_id: string;
1178
+ response_md: string;
1179
+ submitted_at: string | null;
1180
+ question_id: string;
1181
+ }>, "many">;
1182
+ assignments: z.ZodArray<z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ module_id: z.ZodString;
1185
+ learner_user_id: z.ZodString;
1186
+ assigned_by_user_id: z.ZodString;
1187
+ prompt: z.ZodString;
1188
+ target_question_ids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1189
+ target_original_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1190
+ target_updated_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1191
+ response_mode: z.ZodEnum<["written", "in_person"]>;
1192
+ learner_assignment_response_md: z.ZodNullable<z.ZodString>;
1193
+ learner_additional_response_md: z.ZodNullable<z.ZodString>;
1194
+ learner_response_md: z.ZodNullable<z.ZodString>;
1195
+ status: z.ZodEnum<["pending", "submitted", "completed"]>;
1196
+ due_at: z.ZodNullable<z.ZodString>;
1197
+ submitted_at: z.ZodNullable<z.ZodString>;
1198
+ completed_at: z.ZodNullable<z.ZodString>;
1199
+ reviewer_note_md: z.ZodNullable<z.ZodString>;
1200
+ created_at: z.ZodString;
1201
+ updated_at: z.ZodString;
1202
+ learner_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ assigned_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ id: string;
1206
+ created_at: string;
1207
+ updated_at: string;
1208
+ status: "pending" | "submitted" | "completed";
1209
+ module_id: string;
1210
+ prompt: string;
1211
+ learner_user_id: string;
1212
+ response_mode: "written" | "in_person";
1213
+ target_question_ids: string[] | null;
1214
+ due_at: string | null;
1215
+ reviewer_note_md: string | null;
1216
+ learner_assignment_response_md: string | null;
1217
+ learner_additional_response_md: string | null;
1218
+ learner_response_md: string | null;
1219
+ completed_at: string | null;
1220
+ submitted_at: string | null;
1221
+ assigned_by_user_id: string;
1222
+ target_original_answers_json: Record<string, string> | null;
1223
+ target_updated_answers_json: Record<string, string> | null;
1224
+ learner_name?: string | null | undefined;
1225
+ assigned_by_name?: string | null | undefined;
1226
+ }, {
1227
+ id: string;
1228
+ created_at: string;
1229
+ updated_at: string;
1230
+ status: "pending" | "submitted" | "completed";
1231
+ module_id: string;
1232
+ prompt: string;
1233
+ learner_user_id: string;
1234
+ response_mode: "written" | "in_person";
1235
+ target_question_ids: string[] | null;
1236
+ due_at: string | null;
1237
+ reviewer_note_md: string | null;
1238
+ learner_assignment_response_md: string | null;
1239
+ learner_additional_response_md: string | null;
1240
+ learner_response_md: string | null;
1241
+ completed_at: string | null;
1242
+ submitted_at: string | null;
1243
+ assigned_by_user_id: string;
1244
+ target_original_answers_json: Record<string, string> | null;
1245
+ target_updated_answers_json: Record<string, string> | null;
1246
+ learner_name?: string | null | undefined;
1247
+ assigned_by_name?: string | null | undefined;
1248
+ }>, "many">;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ module: {
1251
+ id: string;
1252
+ slug: string;
1253
+ title: string;
1254
+ active: boolean;
1255
+ display_order: number;
1256
+ section_id: string;
1257
+ module_type: string;
1258
+ module_mode: "single_stage" | "multi_stage";
1259
+ summary: string;
1260
+ stages: {
1261
+ id: string;
1262
+ title: string;
1263
+ active: boolean;
1264
+ display_order: number;
1265
+ content_md: string;
1266
+ module_id: string;
1267
+ questions: {
1268
+ id: string;
1269
+ active: boolean;
1270
+ display_order: number;
1271
+ stage_id: string;
1272
+ module_id: string;
1273
+ prompt: string;
1274
+ response_type: "short_text" | "long_text" | "checklist";
1275
+ }[];
1276
+ }[];
1277
+ course_id: string;
1278
+ archived_at: string | null;
1279
+ section?: {
1280
+ id: string;
1281
+ slug: string;
1282
+ title: string;
1283
+ description: string | null;
1284
+ active: boolean;
1285
+ display_order: number;
1286
+ course_id: string;
1287
+ } | null | undefined;
1288
+ exercises?: {
1289
+ id: string;
1290
+ active: boolean;
1291
+ display_order: number;
1292
+ stage_id: string;
1293
+ module_id: string;
1294
+ prompt: string;
1295
+ response_type: "short_text" | "long_text" | "checklist";
1296
+ }[] | undefined;
1297
+ };
1298
+ progress: {
1299
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1300
+ module_id: string;
1301
+ review_feedback_md: string | null;
1302
+ completed_at: string | null;
1303
+ submitted_at: string | null;
1304
+ reviewed_at: string | null;
1305
+ reviewed_by: string | null;
1306
+ };
1307
+ responses: {
1308
+ id: string;
1309
+ updated_at: string;
1310
+ module_id: string;
1311
+ response_md: string;
1312
+ submitted_at: string | null;
1313
+ question_id: string;
1314
+ }[];
1315
+ assignments: {
1316
+ id: string;
1317
+ created_at: string;
1318
+ updated_at: string;
1319
+ status: "pending" | "submitted" | "completed";
1320
+ module_id: string;
1321
+ prompt: string;
1322
+ learner_user_id: string;
1323
+ response_mode: "written" | "in_person";
1324
+ target_question_ids: string[] | null;
1325
+ due_at: string | null;
1326
+ reviewer_note_md: string | null;
1327
+ learner_assignment_response_md: string | null;
1328
+ learner_additional_response_md: string | null;
1329
+ learner_response_md: string | null;
1330
+ completed_at: string | null;
1331
+ submitted_at: string | null;
1332
+ assigned_by_user_id: string;
1333
+ target_original_answers_json: Record<string, string> | null;
1334
+ target_updated_answers_json: Record<string, string> | null;
1335
+ learner_name?: string | null | undefined;
1336
+ assigned_by_name?: string | null | undefined;
1337
+ }[];
1338
+ }, {
1339
+ module: {
1340
+ id: string;
1341
+ slug: string;
1342
+ title: string;
1343
+ active: boolean;
1344
+ display_order: number;
1345
+ section_id: string;
1346
+ module_type: string;
1347
+ module_mode: "single_stage" | "multi_stage";
1348
+ summary: string;
1349
+ stages: {
1350
+ id: string;
1351
+ title: string;
1352
+ active: boolean;
1353
+ display_order: number;
1354
+ content_md: string;
1355
+ module_id: string;
1356
+ questions: {
1357
+ id: string;
1358
+ active: boolean;
1359
+ display_order: number;
1360
+ stage_id: string;
1361
+ module_id: string;
1362
+ prompt: string;
1363
+ response_type: "short_text" | "long_text" | "checklist";
1364
+ }[];
1365
+ }[];
1366
+ course_id: string;
1367
+ archived_at: string | null;
1368
+ section?: {
1369
+ id: string;
1370
+ slug: string;
1371
+ title: string;
1372
+ description: string | null;
1373
+ active: boolean;
1374
+ display_order: number;
1375
+ course_id: string;
1376
+ } | null | undefined;
1377
+ exercises?: {
1378
+ id: string;
1379
+ active: boolean;
1380
+ display_order: number;
1381
+ stage_id: string;
1382
+ module_id: string;
1383
+ prompt: string;
1384
+ response_type: "short_text" | "long_text" | "checklist";
1385
+ }[] | undefined;
1386
+ };
1387
+ progress: {
1388
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1389
+ module_id: string;
1390
+ review_feedback_md: string | null;
1391
+ completed_at: string | null;
1392
+ submitted_at: string | null;
1393
+ reviewed_at: string | null;
1394
+ reviewed_by: string | null;
1395
+ };
1396
+ responses: {
1397
+ id: string;
1398
+ updated_at: string;
1399
+ module_id: string;
1400
+ response_md: string;
1401
+ submitted_at: string | null;
1402
+ question_id: string;
1403
+ }[];
1404
+ assignments: {
1405
+ id: string;
1406
+ created_at: string;
1407
+ updated_at: string;
1408
+ status: "pending" | "submitted" | "completed";
1409
+ module_id: string;
1410
+ prompt: string;
1411
+ learner_user_id: string;
1412
+ response_mode: "written" | "in_person";
1413
+ target_question_ids: string[] | null;
1414
+ due_at: string | null;
1415
+ reviewer_note_md: string | null;
1416
+ learner_assignment_response_md: string | null;
1417
+ learner_additional_response_md: string | null;
1418
+ learner_response_md: string | null;
1419
+ completed_at: string | null;
1420
+ submitted_at: string | null;
1421
+ assigned_by_user_id: string;
1422
+ target_original_answers_json: Record<string, string> | null;
1423
+ target_updated_answers_json: Record<string, string> | null;
1424
+ learner_name?: string | null | undefined;
1425
+ assigned_by_name?: string | null | undefined;
1426
+ }[];
1427
+ }>;
1428
+ declare const handbookLmsLearningSummarySchema: z.ZodObject<{
1429
+ records: z.ZodArray<z.ZodObject<{
1430
+ module: z.ZodObject<{
1431
+ id: z.ZodString;
1432
+ course_id: z.ZodString;
1433
+ section_id: z.ZodString;
1434
+ slug: z.ZodString;
1435
+ module_type: z.ZodString;
1436
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
1437
+ title: z.ZodString;
1438
+ summary: z.ZodString;
1439
+ display_order: z.ZodNumber;
1440
+ active: z.ZodBoolean;
1441
+ archived_at: z.ZodNullable<z.ZodString>;
1442
+ section: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1443
+ id: z.ZodString;
1444
+ course_id: z.ZodString;
1445
+ slug: z.ZodString;
1446
+ title: z.ZodString;
1447
+ description: z.ZodNullable<z.ZodString>;
1448
+ display_order: z.ZodNumber;
1449
+ active: z.ZodBoolean;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ id: string;
1452
+ slug: string;
1453
+ title: string;
1454
+ description: string | null;
1455
+ active: boolean;
1456
+ display_order: number;
1457
+ course_id: string;
1458
+ }, {
1459
+ id: string;
1460
+ slug: string;
1461
+ title: string;
1462
+ description: string | null;
1463
+ active: boolean;
1464
+ display_order: number;
1465
+ course_id: string;
1466
+ }>>>;
1467
+ stages: z.ZodArray<z.ZodObject<{
1468
+ id: z.ZodString;
1469
+ module_id: z.ZodString;
1470
+ title: z.ZodString;
1471
+ content_md: z.ZodString;
1472
+ display_order: z.ZodNumber;
1473
+ active: z.ZodBoolean;
1474
+ questions: z.ZodArray<z.ZodObject<{
1475
+ id: z.ZodString;
1476
+ module_id: z.ZodString;
1477
+ stage_id: z.ZodString;
1478
+ prompt: z.ZodString;
1479
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
1480
+ display_order: z.ZodNumber;
1481
+ active: z.ZodBoolean;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ id: string;
1484
+ active: boolean;
1485
+ display_order: number;
1486
+ stage_id: string;
1487
+ module_id: string;
1488
+ prompt: string;
1489
+ response_type: "short_text" | "long_text" | "checklist";
1490
+ }, {
1491
+ id: string;
1492
+ active: boolean;
1493
+ display_order: number;
1494
+ stage_id: string;
1495
+ module_id: string;
1496
+ prompt: string;
1497
+ response_type: "short_text" | "long_text" | "checklist";
1498
+ }>, "many">;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ id: string;
1501
+ title: string;
1502
+ active: boolean;
1503
+ display_order: number;
1504
+ content_md: string;
1505
+ module_id: string;
1506
+ questions: {
1507
+ id: string;
1508
+ active: boolean;
1509
+ display_order: number;
1510
+ stage_id: string;
1511
+ module_id: string;
1512
+ prompt: string;
1513
+ response_type: "short_text" | "long_text" | "checklist";
1514
+ }[];
1515
+ }, {
1516
+ id: string;
1517
+ title: string;
1518
+ active: boolean;
1519
+ display_order: number;
1520
+ content_md: string;
1521
+ module_id: string;
1522
+ questions: {
1523
+ id: string;
1524
+ active: boolean;
1525
+ display_order: number;
1526
+ stage_id: string;
1527
+ module_id: string;
1528
+ prompt: string;
1529
+ response_type: "short_text" | "long_text" | "checklist";
1530
+ }[];
1531
+ }>, "many">;
1532
+ exercises: z.ZodOptional<z.ZodArray<z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ module_id: z.ZodString;
1535
+ stage_id: z.ZodString;
1536
+ prompt: z.ZodString;
1537
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
1538
+ display_order: z.ZodNumber;
1539
+ active: z.ZodBoolean;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ id: string;
1542
+ active: boolean;
1543
+ display_order: number;
1544
+ stage_id: string;
1545
+ module_id: string;
1546
+ prompt: string;
1547
+ response_type: "short_text" | "long_text" | "checklist";
1548
+ }, {
1549
+ id: string;
1550
+ active: boolean;
1551
+ display_order: number;
1552
+ stage_id: string;
1553
+ module_id: string;
1554
+ prompt: string;
1555
+ response_type: "short_text" | "long_text" | "checklist";
1556
+ }>, "many">>;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ id: string;
1559
+ slug: string;
1560
+ title: string;
1561
+ active: boolean;
1562
+ display_order: number;
1563
+ section_id: string;
1564
+ module_type: string;
1565
+ module_mode: "single_stage" | "multi_stage";
1566
+ summary: string;
1567
+ stages: {
1568
+ id: string;
1569
+ title: string;
1570
+ active: boolean;
1571
+ display_order: number;
1572
+ content_md: string;
1573
+ module_id: string;
1574
+ questions: {
1575
+ id: string;
1576
+ active: boolean;
1577
+ display_order: number;
1578
+ stage_id: string;
1579
+ module_id: string;
1580
+ prompt: string;
1581
+ response_type: "short_text" | "long_text" | "checklist";
1582
+ }[];
1583
+ }[];
1584
+ course_id: string;
1585
+ archived_at: string | null;
1586
+ section?: {
1587
+ id: string;
1588
+ slug: string;
1589
+ title: string;
1590
+ description: string | null;
1591
+ active: boolean;
1592
+ display_order: number;
1593
+ course_id: string;
1594
+ } | null | undefined;
1595
+ exercises?: {
1596
+ id: string;
1597
+ active: boolean;
1598
+ display_order: number;
1599
+ stage_id: string;
1600
+ module_id: string;
1601
+ prompt: string;
1602
+ response_type: "short_text" | "long_text" | "checklist";
1603
+ }[] | undefined;
1604
+ }, {
1605
+ id: string;
1606
+ slug: string;
1607
+ title: string;
1608
+ active: boolean;
1609
+ display_order: number;
1610
+ section_id: string;
1611
+ module_type: string;
1612
+ module_mode: "single_stage" | "multi_stage";
1613
+ summary: string;
1614
+ stages: {
1615
+ id: string;
1616
+ title: string;
1617
+ active: boolean;
1618
+ display_order: number;
1619
+ content_md: string;
1620
+ module_id: string;
1621
+ questions: {
1622
+ id: string;
1623
+ active: boolean;
1624
+ display_order: number;
1625
+ stage_id: string;
1626
+ module_id: string;
1627
+ prompt: string;
1628
+ response_type: "short_text" | "long_text" | "checklist";
1629
+ }[];
1630
+ }[];
1631
+ course_id: string;
1632
+ archived_at: string | null;
1633
+ section?: {
1634
+ id: string;
1635
+ slug: string;
1636
+ title: string;
1637
+ description: string | null;
1638
+ active: boolean;
1639
+ display_order: number;
1640
+ course_id: string;
1641
+ } | null | undefined;
1642
+ exercises?: {
1643
+ id: string;
1644
+ active: boolean;
1645
+ display_order: number;
1646
+ stage_id: string;
1647
+ module_id: string;
1648
+ prompt: string;
1649
+ response_type: "short_text" | "long_text" | "checklist";
1650
+ }[] | undefined;
1651
+ }>;
1652
+ progress: z.ZodObject<{
1653
+ module_id: z.ZodString;
1654
+ status: z.ZodEnum<["pending", "in_progress", "submitted", "passed", "revision_required"]>;
1655
+ completed_at: z.ZodNullable<z.ZodString>;
1656
+ submitted_at: z.ZodNullable<z.ZodString>;
1657
+ reviewed_at: z.ZodNullable<z.ZodString>;
1658
+ reviewed_by: z.ZodNullable<z.ZodString>;
1659
+ review_feedback_md: z.ZodNullable<z.ZodString>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1662
+ module_id: string;
1663
+ review_feedback_md: string | null;
1664
+ completed_at: string | null;
1665
+ submitted_at: string | null;
1666
+ reviewed_at: string | null;
1667
+ reviewed_by: string | null;
1668
+ }, {
1669
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1670
+ module_id: string;
1671
+ review_feedback_md: string | null;
1672
+ completed_at: string | null;
1673
+ submitted_at: string | null;
1674
+ reviewed_at: string | null;
1675
+ reviewed_by: string | null;
1676
+ }>;
1677
+ responses: z.ZodArray<z.ZodObject<{
1678
+ id: z.ZodString;
1679
+ module_id: z.ZodString;
1680
+ question_id: z.ZodString;
1681
+ response_md: z.ZodString;
1682
+ updated_at: z.ZodString;
1683
+ submitted_at: z.ZodNullable<z.ZodString>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ id: string;
1686
+ updated_at: string;
1687
+ module_id: string;
1688
+ response_md: string;
1689
+ submitted_at: string | null;
1690
+ question_id: string;
1691
+ }, {
1692
+ id: string;
1693
+ updated_at: string;
1694
+ module_id: string;
1695
+ response_md: string;
1696
+ submitted_at: string | null;
1697
+ question_id: string;
1698
+ }>, "many">;
1699
+ assignments: z.ZodArray<z.ZodObject<{
1700
+ id: z.ZodString;
1701
+ module_id: z.ZodString;
1702
+ learner_user_id: z.ZodString;
1703
+ assigned_by_user_id: z.ZodString;
1704
+ prompt: z.ZodString;
1705
+ target_question_ids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1706
+ target_original_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1707
+ target_updated_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1708
+ response_mode: z.ZodEnum<["written", "in_person"]>;
1709
+ learner_assignment_response_md: z.ZodNullable<z.ZodString>;
1710
+ learner_additional_response_md: z.ZodNullable<z.ZodString>;
1711
+ learner_response_md: z.ZodNullable<z.ZodString>;
1712
+ status: z.ZodEnum<["pending", "submitted", "completed"]>;
1713
+ due_at: z.ZodNullable<z.ZodString>;
1714
+ submitted_at: z.ZodNullable<z.ZodString>;
1715
+ completed_at: z.ZodNullable<z.ZodString>;
1716
+ reviewer_note_md: z.ZodNullable<z.ZodString>;
1717
+ created_at: z.ZodString;
1718
+ updated_at: z.ZodString;
1719
+ learner_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1720
+ assigned_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ id: string;
1723
+ created_at: string;
1724
+ updated_at: string;
1725
+ status: "pending" | "submitted" | "completed";
1726
+ module_id: string;
1727
+ prompt: string;
1728
+ learner_user_id: string;
1729
+ response_mode: "written" | "in_person";
1730
+ target_question_ids: string[] | null;
1731
+ due_at: string | null;
1732
+ reviewer_note_md: string | null;
1733
+ learner_assignment_response_md: string | null;
1734
+ learner_additional_response_md: string | null;
1735
+ learner_response_md: string | null;
1736
+ completed_at: string | null;
1737
+ submitted_at: string | null;
1738
+ assigned_by_user_id: string;
1739
+ target_original_answers_json: Record<string, string> | null;
1740
+ target_updated_answers_json: Record<string, string> | null;
1741
+ learner_name?: string | null | undefined;
1742
+ assigned_by_name?: string | null | undefined;
1743
+ }, {
1744
+ id: string;
1745
+ created_at: string;
1746
+ updated_at: string;
1747
+ status: "pending" | "submitted" | "completed";
1748
+ module_id: string;
1749
+ prompt: string;
1750
+ learner_user_id: string;
1751
+ response_mode: "written" | "in_person";
1752
+ target_question_ids: string[] | null;
1753
+ due_at: string | null;
1754
+ reviewer_note_md: string | null;
1755
+ learner_assignment_response_md: string | null;
1756
+ learner_additional_response_md: string | null;
1757
+ learner_response_md: string | null;
1758
+ completed_at: string | null;
1759
+ submitted_at: string | null;
1760
+ assigned_by_user_id: string;
1761
+ target_original_answers_json: Record<string, string> | null;
1762
+ target_updated_answers_json: Record<string, string> | null;
1763
+ learner_name?: string | null | undefined;
1764
+ assigned_by_name?: string | null | undefined;
1765
+ }>, "many">;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ module: {
1768
+ id: string;
1769
+ slug: string;
1770
+ title: string;
1771
+ active: boolean;
1772
+ display_order: number;
1773
+ section_id: string;
1774
+ module_type: string;
1775
+ module_mode: "single_stage" | "multi_stage";
1776
+ summary: string;
1777
+ stages: {
1778
+ id: string;
1779
+ title: string;
1780
+ active: boolean;
1781
+ display_order: number;
1782
+ content_md: string;
1783
+ module_id: string;
1784
+ questions: {
1785
+ id: string;
1786
+ active: boolean;
1787
+ display_order: number;
1788
+ stage_id: string;
1789
+ module_id: string;
1790
+ prompt: string;
1791
+ response_type: "short_text" | "long_text" | "checklist";
1792
+ }[];
1793
+ }[];
1794
+ course_id: string;
1795
+ archived_at: string | null;
1796
+ section?: {
1797
+ id: string;
1798
+ slug: string;
1799
+ title: string;
1800
+ description: string | null;
1801
+ active: boolean;
1802
+ display_order: number;
1803
+ course_id: string;
1804
+ } | null | undefined;
1805
+ exercises?: {
1806
+ id: string;
1807
+ active: boolean;
1808
+ display_order: number;
1809
+ stage_id: string;
1810
+ module_id: string;
1811
+ prompt: string;
1812
+ response_type: "short_text" | "long_text" | "checklist";
1813
+ }[] | undefined;
1814
+ };
1815
+ progress: {
1816
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1817
+ module_id: string;
1818
+ review_feedback_md: string | null;
1819
+ completed_at: string | null;
1820
+ submitted_at: string | null;
1821
+ reviewed_at: string | null;
1822
+ reviewed_by: string | null;
1823
+ };
1824
+ responses: {
1825
+ id: string;
1826
+ updated_at: string;
1827
+ module_id: string;
1828
+ response_md: string;
1829
+ submitted_at: string | null;
1830
+ question_id: string;
1831
+ }[];
1832
+ assignments: {
1833
+ id: string;
1834
+ created_at: string;
1835
+ updated_at: string;
1836
+ status: "pending" | "submitted" | "completed";
1837
+ module_id: string;
1838
+ prompt: string;
1839
+ learner_user_id: string;
1840
+ response_mode: "written" | "in_person";
1841
+ target_question_ids: string[] | null;
1842
+ due_at: string | null;
1843
+ reviewer_note_md: string | null;
1844
+ learner_assignment_response_md: string | null;
1845
+ learner_additional_response_md: string | null;
1846
+ learner_response_md: string | null;
1847
+ completed_at: string | null;
1848
+ submitted_at: string | null;
1849
+ assigned_by_user_id: string;
1850
+ target_original_answers_json: Record<string, string> | null;
1851
+ target_updated_answers_json: Record<string, string> | null;
1852
+ learner_name?: string | null | undefined;
1853
+ assigned_by_name?: string | null | undefined;
1854
+ }[];
1855
+ }, {
1856
+ module: {
1857
+ id: string;
1858
+ slug: string;
1859
+ title: string;
1860
+ active: boolean;
1861
+ display_order: number;
1862
+ section_id: string;
1863
+ module_type: string;
1864
+ module_mode: "single_stage" | "multi_stage";
1865
+ summary: string;
1866
+ stages: {
1867
+ id: string;
1868
+ title: string;
1869
+ active: boolean;
1870
+ display_order: number;
1871
+ content_md: string;
1872
+ module_id: string;
1873
+ questions: {
1874
+ id: string;
1875
+ active: boolean;
1876
+ display_order: number;
1877
+ stage_id: string;
1878
+ module_id: string;
1879
+ prompt: string;
1880
+ response_type: "short_text" | "long_text" | "checklist";
1881
+ }[];
1882
+ }[];
1883
+ course_id: string;
1884
+ archived_at: string | null;
1885
+ section?: {
1886
+ id: string;
1887
+ slug: string;
1888
+ title: string;
1889
+ description: string | null;
1890
+ active: boolean;
1891
+ display_order: number;
1892
+ course_id: string;
1893
+ } | null | undefined;
1894
+ exercises?: {
1895
+ id: string;
1896
+ active: boolean;
1897
+ display_order: number;
1898
+ stage_id: string;
1899
+ module_id: string;
1900
+ prompt: string;
1901
+ response_type: "short_text" | "long_text" | "checklist";
1902
+ }[] | undefined;
1903
+ };
1904
+ progress: {
1905
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
1906
+ module_id: string;
1907
+ review_feedback_md: string | null;
1908
+ completed_at: string | null;
1909
+ submitted_at: string | null;
1910
+ reviewed_at: string | null;
1911
+ reviewed_by: string | null;
1912
+ };
1913
+ responses: {
1914
+ id: string;
1915
+ updated_at: string;
1916
+ module_id: string;
1917
+ response_md: string;
1918
+ submitted_at: string | null;
1919
+ question_id: string;
1920
+ }[];
1921
+ assignments: {
1922
+ id: string;
1923
+ created_at: string;
1924
+ updated_at: string;
1925
+ status: "pending" | "submitted" | "completed";
1926
+ module_id: string;
1927
+ prompt: string;
1928
+ learner_user_id: string;
1929
+ response_mode: "written" | "in_person";
1930
+ target_question_ids: string[] | null;
1931
+ due_at: string | null;
1932
+ reviewer_note_md: string | null;
1933
+ learner_assignment_response_md: string | null;
1934
+ learner_additional_response_md: string | null;
1935
+ learner_response_md: string | null;
1936
+ completed_at: string | null;
1937
+ submitted_at: string | null;
1938
+ assigned_by_user_id: string;
1939
+ target_original_answers_json: Record<string, string> | null;
1940
+ target_updated_answers_json: Record<string, string> | null;
1941
+ learner_name?: string | null | undefined;
1942
+ assigned_by_name?: string | null | undefined;
1943
+ }[];
1944
+ }>, "many">;
1945
+ review_queue: z.ZodArray<z.ZodObject<{
1946
+ id: z.ZodString;
1947
+ module_id: z.ZodString;
1948
+ learner_user_id: z.ZodString;
1949
+ assigned_by_user_id: z.ZodString;
1950
+ prompt: z.ZodString;
1951
+ target_question_ids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1952
+ target_original_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1953
+ target_updated_answers_json: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1954
+ response_mode: z.ZodEnum<["written", "in_person"]>;
1955
+ learner_assignment_response_md: z.ZodNullable<z.ZodString>;
1956
+ learner_additional_response_md: z.ZodNullable<z.ZodString>;
1957
+ learner_response_md: z.ZodNullable<z.ZodString>;
1958
+ status: z.ZodEnum<["pending", "submitted", "completed"]>;
1959
+ due_at: z.ZodNullable<z.ZodString>;
1960
+ submitted_at: z.ZodNullable<z.ZodString>;
1961
+ completed_at: z.ZodNullable<z.ZodString>;
1962
+ reviewer_note_md: z.ZodNullable<z.ZodString>;
1963
+ created_at: z.ZodString;
1964
+ updated_at: z.ZodString;
1965
+ learner_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1966
+ assigned_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ id: string;
1969
+ created_at: string;
1970
+ updated_at: string;
1971
+ status: "pending" | "submitted" | "completed";
1972
+ module_id: string;
1973
+ prompt: string;
1974
+ learner_user_id: string;
1975
+ response_mode: "written" | "in_person";
1976
+ target_question_ids: string[] | null;
1977
+ due_at: string | null;
1978
+ reviewer_note_md: string | null;
1979
+ learner_assignment_response_md: string | null;
1980
+ learner_additional_response_md: string | null;
1981
+ learner_response_md: string | null;
1982
+ completed_at: string | null;
1983
+ submitted_at: string | null;
1984
+ assigned_by_user_id: string;
1985
+ target_original_answers_json: Record<string, string> | null;
1986
+ target_updated_answers_json: Record<string, string> | null;
1987
+ learner_name?: string | null | undefined;
1988
+ assigned_by_name?: string | null | undefined;
1989
+ }, {
1990
+ id: string;
1991
+ created_at: string;
1992
+ updated_at: string;
1993
+ status: "pending" | "submitted" | "completed";
1994
+ module_id: string;
1995
+ prompt: string;
1996
+ learner_user_id: string;
1997
+ response_mode: "written" | "in_person";
1998
+ target_question_ids: string[] | null;
1999
+ due_at: string | null;
2000
+ reviewer_note_md: string | null;
2001
+ learner_assignment_response_md: string | null;
2002
+ learner_additional_response_md: string | null;
2003
+ learner_response_md: string | null;
2004
+ completed_at: string | null;
2005
+ submitted_at: string | null;
2006
+ assigned_by_user_id: string;
2007
+ target_original_answers_json: Record<string, string> | null;
2008
+ target_updated_answers_json: Record<string, string> | null;
2009
+ learner_name?: string | null | undefined;
2010
+ assigned_by_name?: string | null | undefined;
2011
+ }>, "many">;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ records: {
2014
+ module: {
2015
+ id: string;
2016
+ slug: string;
2017
+ title: string;
2018
+ active: boolean;
2019
+ display_order: number;
2020
+ section_id: string;
2021
+ module_type: string;
2022
+ module_mode: "single_stage" | "multi_stage";
2023
+ summary: string;
2024
+ stages: {
2025
+ id: string;
2026
+ title: string;
2027
+ active: boolean;
2028
+ display_order: number;
2029
+ content_md: string;
2030
+ module_id: string;
2031
+ questions: {
2032
+ id: string;
2033
+ active: boolean;
2034
+ display_order: number;
2035
+ stage_id: string;
2036
+ module_id: string;
2037
+ prompt: string;
2038
+ response_type: "short_text" | "long_text" | "checklist";
2039
+ }[];
2040
+ }[];
2041
+ course_id: string;
2042
+ archived_at: string | null;
2043
+ section?: {
2044
+ id: string;
2045
+ slug: string;
2046
+ title: string;
2047
+ description: string | null;
2048
+ active: boolean;
2049
+ display_order: number;
2050
+ course_id: string;
2051
+ } | null | undefined;
2052
+ exercises?: {
2053
+ id: string;
2054
+ active: boolean;
2055
+ display_order: number;
2056
+ stage_id: string;
2057
+ module_id: string;
2058
+ prompt: string;
2059
+ response_type: "short_text" | "long_text" | "checklist";
2060
+ }[] | undefined;
2061
+ };
2062
+ progress: {
2063
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
2064
+ module_id: string;
2065
+ review_feedback_md: string | null;
2066
+ completed_at: string | null;
2067
+ submitted_at: string | null;
2068
+ reviewed_at: string | null;
2069
+ reviewed_by: string | null;
2070
+ };
2071
+ responses: {
2072
+ id: string;
2073
+ updated_at: string;
2074
+ module_id: string;
2075
+ response_md: string;
2076
+ submitted_at: string | null;
2077
+ question_id: string;
2078
+ }[];
2079
+ assignments: {
2080
+ id: string;
2081
+ created_at: string;
2082
+ updated_at: string;
2083
+ status: "pending" | "submitted" | "completed";
2084
+ module_id: string;
2085
+ prompt: string;
2086
+ learner_user_id: string;
2087
+ response_mode: "written" | "in_person";
2088
+ target_question_ids: string[] | null;
2089
+ due_at: string | null;
2090
+ reviewer_note_md: string | null;
2091
+ learner_assignment_response_md: string | null;
2092
+ learner_additional_response_md: string | null;
2093
+ learner_response_md: string | null;
2094
+ completed_at: string | null;
2095
+ submitted_at: string | null;
2096
+ assigned_by_user_id: string;
2097
+ target_original_answers_json: Record<string, string> | null;
2098
+ target_updated_answers_json: Record<string, string> | null;
2099
+ learner_name?: string | null | undefined;
2100
+ assigned_by_name?: string | null | undefined;
2101
+ }[];
2102
+ }[];
2103
+ review_queue: {
2104
+ id: string;
2105
+ created_at: string;
2106
+ updated_at: string;
2107
+ status: "pending" | "submitted" | "completed";
2108
+ module_id: string;
2109
+ prompt: string;
2110
+ learner_user_id: string;
2111
+ response_mode: "written" | "in_person";
2112
+ target_question_ids: string[] | null;
2113
+ due_at: string | null;
2114
+ reviewer_note_md: string | null;
2115
+ learner_assignment_response_md: string | null;
2116
+ learner_additional_response_md: string | null;
2117
+ learner_response_md: string | null;
2118
+ completed_at: string | null;
2119
+ submitted_at: string | null;
2120
+ assigned_by_user_id: string;
2121
+ target_original_answers_json: Record<string, string> | null;
2122
+ target_updated_answers_json: Record<string, string> | null;
2123
+ learner_name?: string | null | undefined;
2124
+ assigned_by_name?: string | null | undefined;
2125
+ }[];
2126
+ }, {
2127
+ records: {
2128
+ module: {
2129
+ id: string;
2130
+ slug: string;
2131
+ title: string;
2132
+ active: boolean;
2133
+ display_order: number;
2134
+ section_id: string;
2135
+ module_type: string;
2136
+ module_mode: "single_stage" | "multi_stage";
2137
+ summary: string;
2138
+ stages: {
2139
+ id: string;
2140
+ title: string;
2141
+ active: boolean;
2142
+ display_order: number;
2143
+ content_md: string;
2144
+ module_id: string;
2145
+ questions: {
2146
+ id: string;
2147
+ active: boolean;
2148
+ display_order: number;
2149
+ stage_id: string;
2150
+ module_id: string;
2151
+ prompt: string;
2152
+ response_type: "short_text" | "long_text" | "checklist";
2153
+ }[];
2154
+ }[];
2155
+ course_id: string;
2156
+ archived_at: string | null;
2157
+ section?: {
2158
+ id: string;
2159
+ slug: string;
2160
+ title: string;
2161
+ description: string | null;
2162
+ active: boolean;
2163
+ display_order: number;
2164
+ course_id: string;
2165
+ } | null | undefined;
2166
+ exercises?: {
2167
+ id: string;
2168
+ active: boolean;
2169
+ display_order: number;
2170
+ stage_id: string;
2171
+ module_id: string;
2172
+ prompt: string;
2173
+ response_type: "short_text" | "long_text" | "checklist";
2174
+ }[] | undefined;
2175
+ };
2176
+ progress: {
2177
+ status: "pending" | "in_progress" | "submitted" | "passed" | "revision_required";
2178
+ module_id: string;
2179
+ review_feedback_md: string | null;
2180
+ completed_at: string | null;
2181
+ submitted_at: string | null;
2182
+ reviewed_at: string | null;
2183
+ reviewed_by: string | null;
2184
+ };
2185
+ responses: {
2186
+ id: string;
2187
+ updated_at: string;
2188
+ module_id: string;
2189
+ response_md: string;
2190
+ submitted_at: string | null;
2191
+ question_id: string;
2192
+ }[];
2193
+ assignments: {
2194
+ id: string;
2195
+ created_at: string;
2196
+ updated_at: string;
2197
+ status: "pending" | "submitted" | "completed";
2198
+ module_id: string;
2199
+ prompt: string;
2200
+ learner_user_id: string;
2201
+ response_mode: "written" | "in_person";
2202
+ target_question_ids: string[] | null;
2203
+ due_at: string | null;
2204
+ reviewer_note_md: string | null;
2205
+ learner_assignment_response_md: string | null;
2206
+ learner_additional_response_md: string | null;
2207
+ learner_response_md: string | null;
2208
+ completed_at: string | null;
2209
+ submitted_at: string | null;
2210
+ assigned_by_user_id: string;
2211
+ target_original_answers_json: Record<string, string> | null;
2212
+ target_updated_answers_json: Record<string, string> | null;
2213
+ learner_name?: string | null | undefined;
2214
+ assigned_by_name?: string | null | undefined;
2215
+ }[];
2216
+ }[];
2217
+ review_queue: {
2218
+ id: string;
2219
+ created_at: string;
2220
+ updated_at: string;
2221
+ status: "pending" | "submitted" | "completed";
2222
+ module_id: string;
2223
+ prompt: string;
2224
+ learner_user_id: string;
2225
+ response_mode: "written" | "in_person";
2226
+ target_question_ids: string[] | null;
2227
+ due_at: string | null;
2228
+ reviewer_note_md: string | null;
2229
+ learner_assignment_response_md: string | null;
2230
+ learner_additional_response_md: string | null;
2231
+ learner_response_md: string | null;
2232
+ completed_at: string | null;
2233
+ submitted_at: string | null;
2234
+ assigned_by_user_id: string;
2235
+ target_original_answers_json: Record<string, string> | null;
2236
+ target_updated_answers_json: Record<string, string> | null;
2237
+ learner_name?: string | null | undefined;
2238
+ assigned_by_name?: string | null | undefined;
2239
+ }[];
2240
+ }>;
2241
+ declare const handbookLmsLearnerOptionSchema: z.ZodObject<{
2242
+ id: z.ZodString;
2243
+ name: z.ZodNullable<z.ZodString>;
2244
+ email: z.ZodNullable<z.ZodString>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ id: string;
2247
+ name: string | null;
2248
+ email: string | null;
2249
+ }, {
2250
+ id: string;
2251
+ name: string | null;
2252
+ email: string | null;
2253
+ }>;
2254
+ declare const handbookLmsCourseLibraryItemListSchema: z.ZodArray<z.ZodObject<{
2255
+ id: z.ZodString;
2256
+ slug: z.ZodString;
2257
+ title: z.ZodString;
2258
+ description: z.ZodNullable<z.ZodString>;
2259
+ owner_scope: z.ZodEnum<["global", "handbook"]>;
2260
+ handbook_id: z.ZodNullable<z.ZodString>;
2261
+ published: z.ZodBoolean;
2262
+ active: z.ZodBoolean;
2263
+ total_modules: z.ZodNumber;
2264
+ passed_modules: z.ZodNumber;
2265
+ in_progress_modules: z.ZodNumber;
2266
+ submitted_modules: z.ZodNumber;
2267
+ }, "strip", z.ZodTypeAny, {
2268
+ id: string;
2269
+ slug: string;
2270
+ title: string;
2271
+ description: string | null;
2272
+ owner_scope: "global" | "handbook";
2273
+ handbook_id: string | null;
2274
+ published: boolean;
2275
+ active: boolean;
2276
+ total_modules: number;
2277
+ passed_modules: number;
2278
+ in_progress_modules: number;
2279
+ submitted_modules: number;
2280
+ }, {
2281
+ id: string;
2282
+ slug: string;
2283
+ title: string;
2284
+ description: string | null;
2285
+ owner_scope: "global" | "handbook";
2286
+ handbook_id: string | null;
2287
+ published: boolean;
2288
+ active: boolean;
2289
+ total_modules: number;
2290
+ passed_modules: number;
2291
+ in_progress_modules: number;
2292
+ submitted_modules: number;
2293
+ }>, "many">;
2294
+ declare const handbookLmsSectionListSchema: z.ZodArray<z.ZodObject<{
2295
+ id: z.ZodString;
2296
+ course_id: z.ZodString;
2297
+ slug: z.ZodString;
2298
+ title: z.ZodString;
2299
+ description: z.ZodNullable<z.ZodString>;
2300
+ display_order: z.ZodNumber;
2301
+ active: z.ZodBoolean;
2302
+ } & {
2303
+ modules: z.ZodArray<z.ZodObject<{
2304
+ id: z.ZodString;
2305
+ course_id: z.ZodString;
2306
+ section_id: z.ZodString;
2307
+ slug: z.ZodString;
2308
+ module_type: z.ZodString;
2309
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
2310
+ title: z.ZodString;
2311
+ summary: z.ZodString;
2312
+ display_order: z.ZodNumber;
2313
+ active: z.ZodBoolean;
2314
+ archived_at: z.ZodNullable<z.ZodString>;
2315
+ section: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2316
+ id: z.ZodString;
2317
+ course_id: z.ZodString;
2318
+ slug: z.ZodString;
2319
+ title: z.ZodString;
2320
+ description: z.ZodNullable<z.ZodString>;
2321
+ display_order: z.ZodNumber;
2322
+ active: z.ZodBoolean;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ id: string;
2325
+ slug: string;
2326
+ title: string;
2327
+ description: string | null;
2328
+ active: boolean;
2329
+ display_order: number;
2330
+ course_id: string;
2331
+ }, {
2332
+ id: string;
2333
+ slug: string;
2334
+ title: string;
2335
+ description: string | null;
2336
+ active: boolean;
2337
+ display_order: number;
2338
+ course_id: string;
2339
+ }>>>;
2340
+ stages: z.ZodArray<z.ZodObject<{
2341
+ id: z.ZodString;
2342
+ module_id: z.ZodString;
2343
+ title: z.ZodString;
2344
+ content_md: z.ZodString;
2345
+ display_order: z.ZodNumber;
2346
+ active: z.ZodBoolean;
2347
+ questions: z.ZodArray<z.ZodObject<{
2348
+ id: z.ZodString;
2349
+ module_id: z.ZodString;
2350
+ stage_id: z.ZodString;
2351
+ prompt: z.ZodString;
2352
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
2353
+ display_order: z.ZodNumber;
2354
+ active: z.ZodBoolean;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ id: string;
2357
+ active: boolean;
2358
+ display_order: number;
2359
+ stage_id: string;
2360
+ module_id: string;
2361
+ prompt: string;
2362
+ response_type: "short_text" | "long_text" | "checklist";
2363
+ }, {
2364
+ id: string;
2365
+ active: boolean;
2366
+ display_order: number;
2367
+ stage_id: string;
2368
+ module_id: string;
2369
+ prompt: string;
2370
+ response_type: "short_text" | "long_text" | "checklist";
2371
+ }>, "many">;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ id: string;
2374
+ title: string;
2375
+ active: boolean;
2376
+ display_order: number;
2377
+ content_md: string;
2378
+ module_id: string;
2379
+ questions: {
2380
+ id: string;
2381
+ active: boolean;
2382
+ display_order: number;
2383
+ stage_id: string;
2384
+ module_id: string;
2385
+ prompt: string;
2386
+ response_type: "short_text" | "long_text" | "checklist";
2387
+ }[];
2388
+ }, {
2389
+ id: string;
2390
+ title: string;
2391
+ active: boolean;
2392
+ display_order: number;
2393
+ content_md: string;
2394
+ module_id: string;
2395
+ questions: {
2396
+ id: string;
2397
+ active: boolean;
2398
+ display_order: number;
2399
+ stage_id: string;
2400
+ module_id: string;
2401
+ prompt: string;
2402
+ response_type: "short_text" | "long_text" | "checklist";
2403
+ }[];
2404
+ }>, "many">;
2405
+ exercises: z.ZodOptional<z.ZodArray<z.ZodObject<{
2406
+ id: z.ZodString;
2407
+ module_id: z.ZodString;
2408
+ stage_id: z.ZodString;
2409
+ prompt: z.ZodString;
2410
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
2411
+ display_order: z.ZodNumber;
2412
+ active: z.ZodBoolean;
2413
+ }, "strip", z.ZodTypeAny, {
2414
+ id: string;
2415
+ active: boolean;
2416
+ display_order: number;
2417
+ stage_id: string;
2418
+ module_id: string;
2419
+ prompt: string;
2420
+ response_type: "short_text" | "long_text" | "checklist";
2421
+ }, {
2422
+ id: string;
2423
+ active: boolean;
2424
+ display_order: number;
2425
+ stage_id: string;
2426
+ module_id: string;
2427
+ prompt: string;
2428
+ response_type: "short_text" | "long_text" | "checklist";
2429
+ }>, "many">>;
2430
+ }, "strip", z.ZodTypeAny, {
2431
+ id: string;
2432
+ slug: string;
2433
+ title: string;
2434
+ active: boolean;
2435
+ display_order: number;
2436
+ section_id: string;
2437
+ module_type: string;
2438
+ module_mode: "single_stage" | "multi_stage";
2439
+ summary: string;
2440
+ stages: {
2441
+ id: string;
2442
+ title: string;
2443
+ active: boolean;
2444
+ display_order: number;
2445
+ content_md: string;
2446
+ module_id: string;
2447
+ questions: {
2448
+ id: string;
2449
+ active: boolean;
2450
+ display_order: number;
2451
+ stage_id: string;
2452
+ module_id: string;
2453
+ prompt: string;
2454
+ response_type: "short_text" | "long_text" | "checklist";
2455
+ }[];
2456
+ }[];
2457
+ course_id: string;
2458
+ archived_at: string | null;
2459
+ section?: {
2460
+ id: string;
2461
+ slug: string;
2462
+ title: string;
2463
+ description: string | null;
2464
+ active: boolean;
2465
+ display_order: number;
2466
+ course_id: string;
2467
+ } | null | undefined;
2468
+ exercises?: {
2469
+ id: string;
2470
+ active: boolean;
2471
+ display_order: number;
2472
+ stage_id: string;
2473
+ module_id: string;
2474
+ prompt: string;
2475
+ response_type: "short_text" | "long_text" | "checklist";
2476
+ }[] | undefined;
2477
+ }, {
2478
+ id: string;
2479
+ slug: string;
2480
+ title: string;
2481
+ active: boolean;
2482
+ display_order: number;
2483
+ section_id: string;
2484
+ module_type: string;
2485
+ module_mode: "single_stage" | "multi_stage";
2486
+ summary: string;
2487
+ stages: {
2488
+ id: string;
2489
+ title: string;
2490
+ active: boolean;
2491
+ display_order: number;
2492
+ content_md: string;
2493
+ module_id: string;
2494
+ questions: {
2495
+ id: string;
2496
+ active: boolean;
2497
+ display_order: number;
2498
+ stage_id: string;
2499
+ module_id: string;
2500
+ prompt: string;
2501
+ response_type: "short_text" | "long_text" | "checklist";
2502
+ }[];
2503
+ }[];
2504
+ course_id: string;
2505
+ archived_at: string | null;
2506
+ section?: {
2507
+ id: string;
2508
+ slug: string;
2509
+ title: string;
2510
+ description: string | null;
2511
+ active: boolean;
2512
+ display_order: number;
2513
+ course_id: string;
2514
+ } | null | undefined;
2515
+ exercises?: {
2516
+ id: string;
2517
+ active: boolean;
2518
+ display_order: number;
2519
+ stage_id: string;
2520
+ module_id: string;
2521
+ prompt: string;
2522
+ response_type: "short_text" | "long_text" | "checklist";
2523
+ }[] | undefined;
2524
+ }>, "many">;
2525
+ }, "strip", z.ZodTypeAny, {
2526
+ id: string;
2527
+ slug: string;
2528
+ title: string;
2529
+ description: string | null;
2530
+ active: boolean;
2531
+ display_order: number;
2532
+ modules: {
2533
+ id: string;
2534
+ slug: string;
2535
+ title: string;
2536
+ active: boolean;
2537
+ display_order: number;
2538
+ section_id: string;
2539
+ module_type: string;
2540
+ module_mode: "single_stage" | "multi_stage";
2541
+ summary: string;
2542
+ stages: {
2543
+ id: string;
2544
+ title: string;
2545
+ active: boolean;
2546
+ display_order: number;
2547
+ content_md: string;
2548
+ module_id: string;
2549
+ questions: {
2550
+ id: string;
2551
+ active: boolean;
2552
+ display_order: number;
2553
+ stage_id: string;
2554
+ module_id: string;
2555
+ prompt: string;
2556
+ response_type: "short_text" | "long_text" | "checklist";
2557
+ }[];
2558
+ }[];
2559
+ course_id: string;
2560
+ archived_at: string | null;
2561
+ section?: {
2562
+ id: string;
2563
+ slug: string;
2564
+ title: string;
2565
+ description: string | null;
2566
+ active: boolean;
2567
+ display_order: number;
2568
+ course_id: string;
2569
+ } | null | undefined;
2570
+ exercises?: {
2571
+ id: string;
2572
+ active: boolean;
2573
+ display_order: number;
2574
+ stage_id: string;
2575
+ module_id: string;
2576
+ prompt: string;
2577
+ response_type: "short_text" | "long_text" | "checklist";
2578
+ }[] | undefined;
2579
+ }[];
2580
+ course_id: string;
2581
+ }, {
2582
+ id: string;
2583
+ slug: string;
2584
+ title: string;
2585
+ description: string | null;
2586
+ active: boolean;
2587
+ display_order: number;
2588
+ modules: {
2589
+ id: string;
2590
+ slug: string;
2591
+ title: string;
2592
+ active: boolean;
2593
+ display_order: number;
2594
+ section_id: string;
2595
+ module_type: string;
2596
+ module_mode: "single_stage" | "multi_stage";
2597
+ summary: string;
2598
+ stages: {
2599
+ id: string;
2600
+ title: string;
2601
+ active: boolean;
2602
+ display_order: number;
2603
+ content_md: string;
2604
+ module_id: string;
2605
+ questions: {
2606
+ id: string;
2607
+ active: boolean;
2608
+ display_order: number;
2609
+ stage_id: string;
2610
+ module_id: string;
2611
+ prompt: string;
2612
+ response_type: "short_text" | "long_text" | "checklist";
2613
+ }[];
2614
+ }[];
2615
+ course_id: string;
2616
+ archived_at: string | null;
2617
+ section?: {
2618
+ id: string;
2619
+ slug: string;
2620
+ title: string;
2621
+ description: string | null;
2622
+ active: boolean;
2623
+ display_order: number;
2624
+ course_id: string;
2625
+ } | null | undefined;
2626
+ exercises?: {
2627
+ id: string;
2628
+ active: boolean;
2629
+ display_order: number;
2630
+ stage_id: string;
2631
+ module_id: string;
2632
+ prompt: string;
2633
+ response_type: "short_text" | "long_text" | "checklist";
2634
+ }[] | undefined;
2635
+ }[];
2636
+ course_id: string;
2637
+ }>, "many">;
2638
+ declare const handbookLmsLearnerOptionListSchema: z.ZodArray<z.ZodObject<{
2639
+ id: z.ZodString;
2640
+ name: z.ZodNullable<z.ZodString>;
2641
+ email: z.ZodNullable<z.ZodString>;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ id: string;
2644
+ name: string | null;
2645
+ email: string | null;
2646
+ }, {
2647
+ id: string;
2648
+ name: string | null;
2649
+ email: string | null;
2650
+ }>, "many">;
2651
+ declare const handbookLmsCreateSectionInputSchema: z.ZodObject<{
2652
+ slug: z.ZodString;
2653
+ title: z.ZodString;
2654
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2655
+ display_order: z.ZodOptional<z.ZodNumber>;
2656
+ active: z.ZodOptional<z.ZodBoolean>;
2657
+ }, "strip", z.ZodTypeAny, {
2658
+ slug: string;
2659
+ title: string;
2660
+ description?: string | null | undefined;
2661
+ active?: boolean | undefined;
2662
+ display_order?: number | undefined;
2663
+ }, {
2664
+ slug: string;
2665
+ title: string;
2666
+ description?: string | null | undefined;
2667
+ active?: boolean | undefined;
2668
+ display_order?: number | undefined;
2669
+ }>;
2670
+ declare const handbookLmsUpdateSectionInputSchema: z.ZodObject<{
2671
+ slug: z.ZodOptional<z.ZodString>;
2672
+ title: z.ZodOptional<z.ZodString>;
2673
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2674
+ display_order: z.ZodOptional<z.ZodNumber>;
2675
+ active: z.ZodOptional<z.ZodBoolean>;
2676
+ }, "strip", z.ZodTypeAny, {
2677
+ slug?: string | undefined;
2678
+ title?: string | undefined;
2679
+ description?: string | null | undefined;
2680
+ active?: boolean | undefined;
2681
+ display_order?: number | undefined;
2682
+ }, {
2683
+ slug?: string | undefined;
2684
+ title?: string | undefined;
2685
+ description?: string | null | undefined;
2686
+ active?: boolean | undefined;
2687
+ display_order?: number | undefined;
2688
+ }>;
2689
+ declare const handbookLmsCreateModuleInputSchema: z.ZodObject<{
2690
+ section_id: z.ZodString;
2691
+ slug: z.ZodString;
2692
+ module_type: z.ZodOptional<z.ZodString>;
2693
+ module_mode: z.ZodEnum<["single_stage", "multi_stage"]>;
2694
+ title: z.ZodString;
2695
+ summary: z.ZodString;
2696
+ display_order: z.ZodOptional<z.ZodNumber>;
2697
+ active: z.ZodOptional<z.ZodBoolean>;
2698
+ }, "strip", z.ZodTypeAny, {
2699
+ slug: string;
2700
+ title: string;
2701
+ section_id: string;
2702
+ module_mode: "single_stage" | "multi_stage";
2703
+ summary: string;
2704
+ active?: boolean | undefined;
2705
+ display_order?: number | undefined;
2706
+ module_type?: string | undefined;
2707
+ }, {
2708
+ slug: string;
2709
+ title: string;
2710
+ section_id: string;
2711
+ module_mode: "single_stage" | "multi_stage";
2712
+ summary: string;
2713
+ active?: boolean | undefined;
2714
+ display_order?: number | undefined;
2715
+ module_type?: string | undefined;
2716
+ }>;
2717
+ declare const handbookLmsUpdateModuleInputSchema: z.ZodObject<{
2718
+ section_id: z.ZodOptional<z.ZodString>;
2719
+ slug: z.ZodOptional<z.ZodString>;
2720
+ module_type: z.ZodOptional<z.ZodString>;
2721
+ module_mode: z.ZodOptional<z.ZodEnum<["single_stage", "multi_stage"]>>;
2722
+ title: z.ZodOptional<z.ZodString>;
2723
+ summary: z.ZodOptional<z.ZodString>;
2724
+ display_order: z.ZodOptional<z.ZodNumber>;
2725
+ active: z.ZodOptional<z.ZodBoolean>;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ slug?: string | undefined;
2728
+ title?: string | undefined;
2729
+ active?: boolean | undefined;
2730
+ display_order?: number | undefined;
2731
+ section_id?: string | undefined;
2732
+ module_type?: string | undefined;
2733
+ module_mode?: "single_stage" | "multi_stage" | undefined;
2734
+ summary?: string | undefined;
2735
+ }, {
2736
+ slug?: string | undefined;
2737
+ title?: string | undefined;
2738
+ active?: boolean | undefined;
2739
+ display_order?: number | undefined;
2740
+ section_id?: string | undefined;
2741
+ module_type?: string | undefined;
2742
+ module_mode?: "single_stage" | "multi_stage" | undefined;
2743
+ summary?: string | undefined;
2744
+ }>;
2745
+ declare const handbookLmsCreateStageInputSchema: z.ZodObject<{
2746
+ title: z.ZodString;
2747
+ content_md: z.ZodString;
2748
+ display_order: z.ZodOptional<z.ZodNumber>;
2749
+ active: z.ZodOptional<z.ZodBoolean>;
2750
+ }, "strip", z.ZodTypeAny, {
2751
+ title: string;
2752
+ content_md: string;
2753
+ active?: boolean | undefined;
2754
+ display_order?: number | undefined;
2755
+ }, {
2756
+ title: string;
2757
+ content_md: string;
2758
+ active?: boolean | undefined;
2759
+ display_order?: number | undefined;
2760
+ }>;
2761
+ declare const handbookLmsUpdateStageInputSchema: z.ZodObject<{
2762
+ title: z.ZodOptional<z.ZodString>;
2763
+ content_md: z.ZodOptional<z.ZodString>;
2764
+ display_order: z.ZodOptional<z.ZodNumber>;
2765
+ active: z.ZodOptional<z.ZodBoolean>;
2766
+ }, "strip", z.ZodTypeAny, {
2767
+ title?: string | undefined;
2768
+ active?: boolean | undefined;
2769
+ display_order?: number | undefined;
2770
+ content_md?: string | undefined;
2771
+ }, {
2772
+ title?: string | undefined;
2773
+ active?: boolean | undefined;
2774
+ display_order?: number | undefined;
2775
+ content_md?: string | undefined;
2776
+ }>;
2777
+ declare const handbookLmsCreateQuestionInputSchema: z.ZodObject<{
2778
+ prompt: z.ZodString;
2779
+ response_type: z.ZodEnum<["short_text", "long_text", "checklist"]>;
2780
+ display_order: z.ZodOptional<z.ZodNumber>;
2781
+ active: z.ZodOptional<z.ZodBoolean>;
2782
+ }, "strip", z.ZodTypeAny, {
2783
+ prompt: string;
2784
+ response_type: "short_text" | "long_text" | "checklist";
2785
+ active?: boolean | undefined;
2786
+ display_order?: number | undefined;
2787
+ }, {
2788
+ prompt: string;
2789
+ response_type: "short_text" | "long_text" | "checklist";
2790
+ active?: boolean | undefined;
2791
+ display_order?: number | undefined;
2792
+ }>;
2793
+ declare const handbookLmsUpdateQuestionInputSchema: z.ZodObject<{
2794
+ stage_id: z.ZodOptional<z.ZodString>;
2795
+ module_id: z.ZodOptional<z.ZodString>;
2796
+ prompt: z.ZodOptional<z.ZodString>;
2797
+ response_type: z.ZodOptional<z.ZodEnum<["short_text", "long_text", "checklist"]>>;
2798
+ display_order: z.ZodOptional<z.ZodNumber>;
2799
+ active: z.ZodOptional<z.ZodBoolean>;
2800
+ }, "strip", z.ZodTypeAny, {
2801
+ active?: boolean | undefined;
2802
+ display_order?: number | undefined;
2803
+ stage_id?: string | undefined;
2804
+ module_id?: string | undefined;
2805
+ prompt?: string | undefined;
2806
+ response_type?: "short_text" | "long_text" | "checklist" | undefined;
2807
+ }, {
2808
+ active?: boolean | undefined;
2809
+ display_order?: number | undefined;
2810
+ stage_id?: string | undefined;
2811
+ module_id?: string | undefined;
2812
+ prompt?: string | undefined;
2813
+ response_type?: "short_text" | "long_text" | "checklist" | undefined;
2814
+ }>;
2815
+ declare const handbookLmsReorderPayloadSchema: z.ZodObject<{
2816
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
2817
+ id: z.ZodString;
2818
+ display_order: z.ZodNumber;
2819
+ }, "strip", z.ZodTypeAny, {
2820
+ id: string;
2821
+ display_order: number;
2822
+ }, {
2823
+ id: string;
2824
+ display_order: number;
2825
+ }>, "many">>;
2826
+ modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2827
+ id: z.ZodString;
2828
+ section_id: z.ZodString;
2829
+ display_order: z.ZodNumber;
2830
+ }, "strip", z.ZodTypeAny, {
2831
+ id: string;
2832
+ display_order: number;
2833
+ section_id: string;
2834
+ }, {
2835
+ id: string;
2836
+ display_order: number;
2837
+ section_id: string;
2838
+ }>, "many">>;
2839
+ stages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2840
+ id: z.ZodString;
2841
+ module_id: z.ZodString;
2842
+ display_order: z.ZodNumber;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ id: string;
2845
+ display_order: number;
2846
+ module_id: string;
2847
+ }, {
2848
+ id: string;
2849
+ display_order: number;
2850
+ module_id: string;
2851
+ }>, "many">>;
2852
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2853
+ id: z.ZodString;
2854
+ stage_id: z.ZodString;
2855
+ module_id: z.ZodString;
2856
+ display_order: z.ZodNumber;
2857
+ }, "strip", z.ZodTypeAny, {
2858
+ id: string;
2859
+ display_order: number;
2860
+ stage_id: string;
2861
+ module_id: string;
2862
+ }, {
2863
+ id: string;
2864
+ display_order: number;
2865
+ stage_id: string;
2866
+ module_id: string;
2867
+ }>, "many">>;
2868
+ }, "strip", z.ZodTypeAny, {
2869
+ sections?: {
2870
+ id: string;
2871
+ display_order: number;
2872
+ }[] | undefined;
2873
+ modules?: {
2874
+ id: string;
2875
+ display_order: number;
2876
+ section_id: string;
2877
+ }[] | undefined;
2878
+ stages?: {
2879
+ id: string;
2880
+ display_order: number;
2881
+ module_id: string;
2882
+ }[] | undefined;
2883
+ questions?: {
2884
+ id: string;
2885
+ display_order: number;
2886
+ stage_id: string;
2887
+ module_id: string;
2888
+ }[] | undefined;
2889
+ }, {
2890
+ sections?: {
2891
+ id: string;
2892
+ display_order: number;
2893
+ }[] | undefined;
2894
+ modules?: {
2895
+ id: string;
2896
+ display_order: number;
2897
+ section_id: string;
2898
+ }[] | undefined;
2899
+ stages?: {
2900
+ id: string;
2901
+ display_order: number;
2902
+ module_id: string;
2903
+ }[] | undefined;
2904
+ questions?: {
2905
+ id: string;
2906
+ display_order: number;
2907
+ stage_id: string;
2908
+ module_id: string;
2909
+ }[] | undefined;
2910
+ }>;
2911
+ declare const handbookLmsSaveQuestionResponseInputSchema: z.ZodObject<{
2912
+ response_md: z.ZodString;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ response_md: string;
2915
+ }, {
2916
+ response_md: string;
2917
+ }>;
2918
+ declare const handbookLmsReviewModuleInputSchema: z.ZodObject<{
2919
+ moduleId: z.ZodString;
2920
+ learner_user_id: z.ZodString;
2921
+ status: z.ZodEnum<["pending", "submitted", "passed", "revision_required"]>;
2922
+ review_feedback_md: z.ZodOptional<z.ZodString>;
2923
+ assignment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2924
+ prompt: z.ZodOptional<z.ZodString>;
2925
+ response_mode: z.ZodOptional<z.ZodEnum<["written", "in_person"]>>;
2926
+ target_question_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2927
+ due_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2928
+ reviewer_note_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ prompt?: string | undefined;
2931
+ response_mode?: "written" | "in_person" | undefined;
2932
+ target_question_ids?: string[] | undefined;
2933
+ due_at?: string | null | undefined;
2934
+ reviewer_note_md?: string | null | undefined;
2935
+ }, {
2936
+ prompt?: string | undefined;
2937
+ response_mode?: "written" | "in_person" | undefined;
2938
+ target_question_ids?: string[] | undefined;
2939
+ due_at?: string | null | undefined;
2940
+ reviewer_note_md?: string | null | undefined;
2941
+ }>>>;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ status: "pending" | "submitted" | "passed" | "revision_required";
2944
+ learner_user_id: string;
2945
+ moduleId: string;
2946
+ review_feedback_md?: string | undefined;
2947
+ assignment?: {
2948
+ prompt?: string | undefined;
2949
+ response_mode?: "written" | "in_person" | undefined;
2950
+ target_question_ids?: string[] | undefined;
2951
+ due_at?: string | null | undefined;
2952
+ reviewer_note_md?: string | null | undefined;
2953
+ } | null | undefined;
2954
+ }, {
2955
+ status: "pending" | "submitted" | "passed" | "revision_required";
2956
+ learner_user_id: string;
2957
+ moduleId: string;
2958
+ review_feedback_md?: string | undefined;
2959
+ assignment?: {
2960
+ prompt?: string | undefined;
2961
+ response_mode?: "written" | "in_person" | undefined;
2962
+ target_question_ids?: string[] | undefined;
2963
+ due_at?: string | null | undefined;
2964
+ reviewer_note_md?: string | null | undefined;
2965
+ } | null | undefined;
2966
+ }>;
2967
+ declare const handbookLmsUpdateAssignmentDataSchema: z.ZodObject<{
2968
+ learner_assignment_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2969
+ learner_additional_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2970
+ learner_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2971
+ status: z.ZodOptional<z.ZodEnum<["pending", "submitted", "completed"]>>;
2972
+ reviewer_note_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2973
+ }, "strip", z.ZodTypeAny, {
2974
+ status?: "pending" | "submitted" | "completed" | undefined;
2975
+ reviewer_note_md?: string | null | undefined;
2976
+ learner_assignment_response_md?: string | null | undefined;
2977
+ learner_additional_response_md?: string | null | undefined;
2978
+ learner_response_md?: string | null | undefined;
2979
+ }, {
2980
+ status?: "pending" | "submitted" | "completed" | undefined;
2981
+ reviewer_note_md?: string | null | undefined;
2982
+ learner_assignment_response_md?: string | null | undefined;
2983
+ learner_additional_response_md?: string | null | undefined;
2984
+ learner_response_md?: string | null | undefined;
2985
+ }>;
2986
+ declare const handbookLmsUpdateAssignmentInputSchema: z.ZodObject<{
2987
+ assignmentId: z.ZodString;
2988
+ data: z.ZodObject<{
2989
+ learner_assignment_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2990
+ learner_additional_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2991
+ learner_response_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2992
+ status: z.ZodOptional<z.ZodEnum<["pending", "submitted", "completed"]>>;
2993
+ reviewer_note_md: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ status?: "pending" | "submitted" | "completed" | undefined;
2996
+ reviewer_note_md?: string | null | undefined;
2997
+ learner_assignment_response_md?: string | null | undefined;
2998
+ learner_additional_response_md?: string | null | undefined;
2999
+ learner_response_md?: string | null | undefined;
3000
+ }, {
3001
+ status?: "pending" | "submitted" | "completed" | undefined;
3002
+ reviewer_note_md?: string | null | undefined;
3003
+ learner_assignment_response_md?: string | null | undefined;
3004
+ learner_additional_response_md?: string | null | undefined;
3005
+ learner_response_md?: string | null | undefined;
3006
+ }>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ assignmentId: string;
3009
+ data: {
3010
+ status?: "pending" | "submitted" | "completed" | undefined;
3011
+ reviewer_note_md?: string | null | undefined;
3012
+ learner_assignment_response_md?: string | null | undefined;
3013
+ learner_additional_response_md?: string | null | undefined;
3014
+ learner_response_md?: string | null | undefined;
3015
+ };
3016
+ }, {
3017
+ assignmentId: string;
3018
+ data: {
3019
+ status?: "pending" | "submitted" | "completed" | undefined;
3020
+ reviewer_note_md?: string | null | undefined;
3021
+ learner_assignment_response_md?: string | null | undefined;
3022
+ learner_additional_response_md?: string | null | undefined;
3023
+ learner_response_md?: string | null | undefined;
3024
+ };
3025
+ }>;
3026
+ declare const handbookLmsTrainingStepRequirementsInputSchema: z.ZodObject<{
3027
+ required_course_ids: z.ZodArray<z.ZodString, "many">;
3028
+ }, "strip", z.ZodTypeAny, {
3029
+ required_course_ids: string[];
3030
+ }, {
3031
+ required_course_ids: string[];
3032
+ }>;
3033
+
3034
+ export { handbookLmsAssignmentResponseModeSchema, handbookLmsAssignmentStatusSchema, handbookLmsCourseLibraryItemListSchema, handbookLmsCourseLibraryItemSchema, handbookLmsCourseSchema, handbookLmsCourseUpsertInputSchema, handbookLmsCreateModuleInputSchema, handbookLmsCreateQuestionInputSchema, handbookLmsCreateSectionInputSchema, handbookLmsCreateStageInputSchema, handbookLmsLearnerOptionListSchema, handbookLmsLearnerOptionSchema, handbookLmsLearningRecordSchema, handbookLmsLearningSummarySchema, handbookLmsModuleAssignmentSchema, handbookLmsModuleModeSchema, handbookLmsModuleSchema, handbookLmsOwnerScopeSchema, handbookLmsProgressSchema, handbookLmsProgressStatusSchema, handbookLmsQuestionResponseSchema, handbookLmsQuestionResponseTypeSchema, handbookLmsQuestionSchema, handbookLmsReorderPayloadSchema, handbookLmsReviewModuleInputSchema, handbookLmsRoutes, handbookLmsSaveQuestionResponseInputSchema, handbookLmsSectionListSchema, handbookLmsSectionSchema, handbookLmsSectionSummarySchema, handbookLmsStageSchema, handbookLmsTrainingStepRequirementsInputSchema, handbookLmsUpdateAssignmentDataSchema, handbookLmsUpdateAssignmentInputSchema, handbookLmsUpdateModuleInputSchema, handbookLmsUpdateQuestionInputSchema, handbookLmsUpdateSectionInputSchema, handbookLmsUpdateStageInputSchema };