Interface LearnedStateDocument

A learner's learned state as one JSON document.

interface LearnedStateDocument {
    version: 1;
    learner: LearnerKey;
    personaId: null | string;
    traitState: null | Record<string, unknown>;
    lessons: unknown[];
    skills: unknown[];
    ledger: (LedgerEntry & {
        hash: string;
    })[];
    outcomes: unknown[];
    exportedAt: string;
}

Properties

version: 1
learner: LearnerKey
personaId: null | string
traitState: null | Record<string, unknown>

The learner's stored trait state, or null for a learner with none.

lessons: unknown[]
skills: unknown[]
ledger: (LedgerEntry & {
    hash: string;
})[]

The learner's ledger rows, each with its hash.

outcomes: unknown[]
exportedAt: string