Variable LOG_SCHEMASConst
LOG_SCHEMAS: {
catches: ZodObject<
{
at: ZodISODateTime;
catchId: ZodString;
conceptId: ZodString;
note: ZodString;
sessionId: ZodString;
type: ZodLiteral<"catch.recorded">;
},
$strip,
>;
concepts: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
courseId: ZodString;
materialId: ZodString;
name: ZodString;
quotes: ZodArray<
ZodObject<{ passageId: ZodString; text: ZodString }, $strip>,
>;
sectionId: ZodString;
type: ZodLiteral<"concept.proposed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
type: ZodLiteral<"concept.confirmed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
name: ZodString;
type: ZodLiteral<"concept.renamed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
type: ZodLiteral<"concept.dropped">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
intoConceptId: ZodString;
type: ZodLiteral<"concept.merged">;
},
$strip,
>,
],
"type",
>;
corrections: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
correction: ZodString;
correctionId: ZodString;
note: ZodString;
passageId: ZodString;
quote: ZodString;
sessionId: ZodOptional<ZodString>;
type: ZodLiteral<"correction.added">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
clarificationId: ZodString;
passageId: ZodString;
question: ZodString;
quote: ZodString;
type: ZodLiteral<"clarification.asked">;
},
$strip,
>,
ZodObject<
{
answer: ZodString;
at: ZodISODateTime;
clarificationId: ZodString;
type: ZodLiteral<"clarification.answered">;
},
$strip,
>,
],
"type",
>;
courses: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
courseId: ZodString;
name: ZodString;
type: ZodLiteral<"course.created">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
courseId: ZodString;
examDate: ZodNullable<ZodString>;
type: ZodLiteral<"course.examDateSet">;
},
$strip,
>,
],
"type",
>;
links: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
courseId: ZodString;
linkId: ZodString;
needsConceptId: ZodString;
type: ZodLiteral<"link.proposed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
linkId: ZodString;
type: ZodLiteral<"link.confirmed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
linkId: ZodString;
type: ZodLiteral<"link.dropped">;
},
$strip,
>,
],
"type",
>;
materials: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
bytes: ZodNumber;
courseId: ZodString;
fileName: ZodString;
format: ZodEnum<
{
csv: "csv";
docx: "docx";
md: "md";
pdf: "pdf";
pptx: "pptx";
txt: "txt";
xlsx: "xlsx";
},
>;
materialId: ZodString;
sha256: ZodString;
storedName: ZodString;
type: ZodLiteral<"material.added">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
runId: ZodString;
type: ZodLiteral<"material.started">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
passageCount: ZodNumber;
sections: ZodArray<
ZodObject<
{
heading: ZodOptional<ZodBoolean>;
level: ZodNumber;
ordinal: ZodNumber;
sectionId: ZodString;
title: ZodString;
},
$strip,
>,
>;
type: ZodLiteral<"material.extracted">;
},
$strip,
>,
],
"type",
>;
passages: ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
passages: ZodArray<
ZodObject<
{
location: ZodObject<
{
cells: ZodOptional<ZodString>;
heading: ZodOptional<ZodString>;
notes: ZodOptional<ZodBoolean>;
page: ZodOptional<ZodNumber>;
paragraph: ZodOptional<ZodNumber>;
sheet: ZodOptional<ZodString>;
slide: ZodOptional<ZodNumber>;
},
$strip,
>;
materialId: ZodString;
ordinal: ZodNumber;
passageId: ZodString;
sectionId: ZodString;
text: ZodString;
},
$strip,
>,
>;
type: ZodLiteral<"passages.extracted">;
},
$strip,
>;
sessions: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
explanation: ZodString;
sessionId: ZodString;
type: ZodLiteral<"session.started">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
runId: ZodString;
sessionId: ZodString;
type: ZodLiteral<"session.running">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
dropped: ZodNumber;
notInMaterial: ZodBoolean;
questions: ZodArray<
ZodObject<
{
kind: ZodEnum<
{
contradiction: "contradiction";
gap: "gap";
unclear: "unclear";
},
>;
questionId: ZodString;
quote: ZodOptional<ZodObject<{ passageId: ...; text: ... }, $strip>>;
term: ZodOptional<ZodString>;
text: ZodString;
},
$strip,
>,
>;
round: ZodNumber;
sessionId: ZodString;
type: ZodLiteral<"session.questions">;
},
$strip,
>,
],
"type",
>;
} = ...
Type Declaration
-
catches: ZodObject<
{
at: ZodISODateTime;
catchId: ZodString;
conceptId: ZodString;
note: ZodString;
sessionId: ZodString;
type: ZodLiteral<"catch.recorded">;
},
$strip,
>
-
concepts: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
courseId: ZodString;
materialId: ZodString;
name: ZodString;
quotes: ZodArray<
ZodObject<{ passageId: ZodString; text: ZodString }, $strip>,
>;
sectionId: ZodString;
type: ZodLiteral<"concept.proposed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
type: ZodLiteral<"concept.confirmed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
name: ZodString;
type: ZodLiteral<"concept.renamed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
type: ZodLiteral<"concept.dropped">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
intoConceptId: ZodString;
type: ZodLiteral<"concept.merged">;
},
$strip,
>,
],
"type",
>
-
corrections: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
correction: ZodString;
correctionId: ZodString;
note: ZodString;
passageId: ZodString;
quote: ZodString;
sessionId: ZodOptional<ZodString>;
type: ZodLiteral<"correction.added">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
clarificationId: ZodString;
passageId: ZodString;
question: ZodString;
quote: ZodString;
type: ZodLiteral<"clarification.asked">;
},
$strip,
>,
ZodObject<
{
answer: ZodString;
at: ZodISODateTime;
clarificationId: ZodString;
type: ZodLiteral<"clarification.answered">;
},
$strip,
>,
],
"type",
>
-
courses: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
courseId: ZodString;
name: ZodString;
type: ZodLiteral<"course.created">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
courseId: ZodString;
examDate: ZodNullable<ZodString>;
type: ZodLiteral<"course.examDateSet">;
},
$strip,
>,
],
"type",
>
-
links: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
courseId: ZodString;
linkId: ZodString;
needsConceptId: ZodString;
type: ZodLiteral<"link.proposed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
linkId: ZodString;
type: ZodLiteral<"link.confirmed">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
linkId: ZodString;
type: ZodLiteral<"link.dropped">;
},
$strip,
>,
],
"type",
>
-
materials: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
bytes: ZodNumber;
courseId: ZodString;
fileName: ZodString;
format: ZodEnum<
{
csv: "csv";
docx: "docx";
md: "md";
pdf: "pdf";
pptx: "pptx";
txt: "txt";
xlsx: "xlsx";
},
>;
materialId: ZodString;
sha256: ZodString;
storedName: ZodString;
type: ZodLiteral<"material.added">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
runId: ZodString;
type: ZodLiteral<"material.started">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
passageCount: ZodNumber;
sections: ZodArray<
ZodObject<
{
heading: ZodOptional<ZodBoolean>;
level: ZodNumber;
ordinal: ZodNumber;
sectionId: ZodString;
title: ZodString;
},
$strip,
>,
>;
type: ZodLiteral<"material.extracted">;
},
$strip,
>,
],
"type",
>
-
passages: ZodObject<
{
at: ZodISODateTime;
materialId: ZodString;
passages: ZodArray<
ZodObject<
{
location: ZodObject<
{
cells: ZodOptional<ZodString>;
heading: ZodOptional<ZodString>;
notes: ZodOptional<ZodBoolean>;
page: ZodOptional<ZodNumber>;
paragraph: ZodOptional<ZodNumber>;
sheet: ZodOptional<ZodString>;
slide: ZodOptional<ZodNumber>;
},
$strip,
>;
materialId: ZodString;
ordinal: ZodNumber;
passageId: ZodString;
sectionId: ZodString;
text: ZodString;
},
$strip,
>,
>;
type: ZodLiteral<"passages.extracted">;
},
$strip,
>
-
sessions: ZodDiscriminatedUnion<
[
ZodObject<
{
at: ZodISODateTime;
conceptId: ZodString;
explanation: ZodString;
sessionId: ZodString;
type: ZodLiteral<"session.started">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
runId: ZodString;
sessionId: ZodString;
type: ZodLiteral<"session.running">;
},
$strip,
>,
ZodObject<
{
at: ZodISODateTime;
dropped: ZodNumber;
notInMaterial: ZodBoolean;
questions: ZodArray<
ZodObject<
{
kind: ZodEnum<
{
contradiction: "contradiction";
gap: "gap";
unclear: "unclear";
},
>;
questionId: ZodString;
quote: ZodOptional<ZodObject<{ passageId: ...; text: ... }, $strip>>;
term: ZodOptional<ZodString>;
text: ZodString;
},
$strip,
>,
>;
round: ZodNumber;
sessionId: ZodString;
type: ZodLiteral<"session.questions">;
},
$strip,
>,
],
"type",
>
The schema for each log file.