Documentation
¶
Overview ¶
Package exportv6 holds the types of the format of the export, version 6 of the part, generated from the schemas in export/schemas by tools/types: the files of an export — the manifest, the account, a profile with every record of it, what a device holds of it and a stored work — and the vectors of reading. There is a type for each schema and for each of its $defs, and for each enumeration of a field. A field that holds the JSON of a message of protobuf, or a value as the element <novatrail-canvas> gives it, is any JSON value, json.RawMessage, as a reader gets it. The schemas decide what is valid: a type gives the shape of a value alone, and code that reads a value from elsewhere checks it against its schema first, and then against the rules of reading of export/README.md. A field the object always holds is a value; any other is a pointer, a slice or a map, left out when nil, so that a value read and written again is the same JSON. Another version of the part is a package of its own.
Index ¶
- type Account
- type AgeCategory
- type Attempt
- type AttemptCloseReason
- type AttemptItem
- type AttemptItemFinalVerdict
- type AttemptItemFirstVerdict
- type AttemptItemUnverdictedReasons
- type AttemptSegment
- type Case
- type CaseRefusedBy
- type Choice
- type ChoiceKind
- type ChoicePackageDigest
- type ChoiceReasonCode
- type ConnectedModule
- type Consent
- type ConsentForm
- type ConsentGiver
- type ConsentState
- type Day
- type Device
- type DeviceAttempt
- type DeviceAttemptStepState
- type DeviceAttemptStepStateMode
- type DeviceEssay
- type DeviceLesson
- type DeviceLessonDemoState
- type EvidenceEntry
- type FileID
- type ID
- type Image
- type ImageMediaType
- type LessonRun
- type LessonRunEndReason
- type Manifest
- type ManifestScope
- type Paper
- type PaperAttempt
- type ProblemReport
- type ProblemReportKind
- type ProblemReportReply
- type Profile
- type ProfileDefaultMode
- type ProfileHintMode
- type ProfilePresentationStyle
- type ProfilePresentationStyleVoicing
- type ProfilePresentationStyleVoicingSpeed
- type QuotaCounter
- type ReadingVector
- type RubricSubmission
- type RubricSubmissionCriterionMarks
- type RubricSubmissionEnd
- type RubricSubmissionFeedbackSource
- type Rung
- type RungExplainedDifferentlySource
- type RungSource
- type StateEntry
- type StateEntryModule
- type StorageConsent
- type StorageConsentGiver
- type Submission
- type SubmissionItem
- type SubmissionItemAnswerSlot
- type SubmissionItemAnswerSlotReason
- type SubmissionItemAnswerSlotVerdict
- type SubmissionItemVerdict
- type SubmissionOutcome
- type SubmissionTappedChoice
- type Task
- type TaskFrame
- type TaskFrameBy
- type TextRef
- type ThousandthsBox
- type Time
- type Work
- type WorkInfo
- type WorkKind
- type WorkSubmission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// The ID of the account in api, never the sign-in service's UID.
AccountID ID `json:"account_id"`
// When the owner stated they are 18 or older; the column is a timestamptz, the documents say a
// date.
AdultStatedAt Time `json:"adult_stated_at"`
// The account's tariff, taken from its invite code, which sets the quota ceilings.
Tariff string `json:"tariff"`
// The family's clock offset from UTC in minutes, -720 to 840 in steps of 15; absent before the
// first request on platform AI.
UtcOffsetMinutes *int64 `json:"utc_offset_minutes,omitzero"`
// The end of the family's current quota day.
DayEndsAt *Time `json:"day_ends_at,omitzero"`
// The date of the last request with the account's token, by which an idle account is deleted
// after 12 months.
LastRequestOn Day `json:"last_request_on"`
// The IDs of the account's profiles, each with its file in profiles/.
ProfileIds []FileID `json:"profile_ids"`
// Every consent of the account, in full: the minimal record left after a deletion is none,
// since it holds no ID of the account or a profile.
Consents []Consent `json:"consents"`
// The account's own quota counters; a profile's go in its profile part.
QuotaCounters []QuotaCounter `json:"quota_counters"`
}
Account is the type of account.schema.json.
The account in an export of the account, api/account.json: its fields that are no secret, its consents and its counters of quota.
type AgeCategory ¶
type AgeCategory string
AgeCategory is the type of common.schema.json#/$defs/age_category.
An age category, by its code, the module format's.
const ( AgeCategoryUnder13 AgeCategory = "under_13" AgeCategoryFrom13ToConsent AgeCategory = "from_13_to_consent" AgeCategoryFromConsentTo18 AgeCategory = "from_consent_to_18" AgeCategoryAdult AgeCategory = "adult" )
The values of AgeCategory.
type Attempt ¶
type Attempt struct {
// The ID of the attempt.
AttemptID ID `json:"attempt_id"`
// The digest of the attempt's module package, sha256:<64 hex>.
PackageDigest string `json:"package_digest"`
// The module's ID.
ModuleID string `json:"module_id"`
// The module's version X.Y.Z, so the export reads without the index.
ModuleVersion string `json:"module_version"`
// The module format version the verdict repeats by, MAJOR.MINOR.
ModuleFormatVersion string `json:"module_format_version"`
// The module-kit version the verdict repeats by.
ModuleKitVersion string `json:"module_kit_version"`
// The task's full ID; the database keeps the module ID and the local ID apart.
Task string `json:"task"`
// The instance the seed chose, when the task is a template; the seed itself is not exported.
Instance *int64 `json:"instance,omitzero"`
// The engine's task choice the attempt began by; one of choice_id, segment,
// previous_attempt_id.
ChoiceID *ID `json:"choice_id,omitzero"`
// The task segment of a lesson run the attempt is, the segment's place from 1.
Segment *AttemptSegment `json:"segment,omitzero"`
// The earlier attempt of the same task that this one began again from.
PreviousAttemptID *ID `json:"previous_attempt_id,omitzero"`
// When the attempt began (started_at in the database).
BegunAt Time `json:"begun_at"`
// The time of the last action on the attempt.
LastActionAt Time `json:"last_action_at"`
// Why the attempt was closed; absent while it is open.
CloseReason *AttemptCloseReason `json:"close_reason,omitzero"`
// When it was closed; absent while it is open.
ClosedAt *Time `json:"closed_at,omitzero"`
// How many wrong answers the attempt has.
WrongAnswers int64 `json:"wrong_answers"`
// The technique IDs given at a solving step.
StepTechniqueIds []string `json:"step_technique_ids"`
// When the task's techniques were first given at a step.
StepTechniquesAt *Time `json:"step_techniques_at,omitzero"`
// The technique IDs given on request.
RequestedTechniqueIds []string `json:"requested_technique_ids"`
// The leading question a hint asked for gave (format 0.4); absent when none was given.
RequestedLeadingQuestion *string `json:"requested_leading_question,omitzero"`
// The full IDs of the traps the program found in the attempt's wrong values.
Traps []string `json:"traps"`
// The hint ladder's rungs given, with their source.
Rungs []Rung `json:"rungs"`
// Whether the tutor's words after a correct answer were given.
CorrectAnswerWordsGiven bool `json:"correct_answer_words_given"`
// When the solution was shown.
SolutionShownAt *Time `json:"solution_shown_at,omitzero"`
// Per item, the facts the evidence also carries; needed in the attempt for an attempt with no
// evidence.
Items []AttemptItem `json:"items,omitzero"`
// Each submission with a verdict, in order.
Submissions []Submission `json:"submissions"`
// On a task with a rubric, each submission in order; such an attempt has no ladder fields.
EssaySubmissions []RubricSubmission `json:"essay_submissions,omitzero"`
}
Attempt is the type of profile.schema.json#/$defs/attempt.
type AttemptCloseReason ¶
type AttemptCloseReason string
AttemptCloseReason is the type of profile.schema.json#/$defs/attempt/properties/close_reason.
Why the attempt was closed; absent while it is open.
const ( AttemptCloseReasonCorrect AttemptCloseReason = "correct" AttemptCloseReasonSolutionShown AttemptCloseReason = "solution_shown" AttemptCloseReasonLeft AttemptCloseReason = "left" AttemptCloseReasonAbandoned AttemptCloseReason = "abandoned" AttemptCloseReasonUnchecked AttemptCloseReason = "unchecked" AttemptCloseReasonNotSuitable AttemptCloseReason = "not_suitable" AttemptCloseReasonDone AttemptCloseReason = "done" )
The values of AttemptCloseReason.
type AttemptItem ¶
type AttemptItem struct {
// The number of the item in the task.
Place int64 `json:"place"`
// Whether the item was submitted.
Submitted bool `json:"submitted"`
// Why each submission of the item got no verdict.
UnverdictedReasons []AttemptItemUnverdictedReasons `json:"unverdicted_reasons"`
// The item's first verdict.
FirstVerdict AttemptItemFirstVerdict `json:"first_verdict"`
// The wrong answers before the submission that gave the first verdict.
WrongAnswersBeforeFirstVerdict int64 `json:"wrong_answers_before_first_verdict"`
// The item's verdict at the end.
FinalVerdict AttemptItemFinalVerdict `json:"final_verdict"`
// The wrong answers before the first correct one.
WrongAnswersBeforeFirstCorrect int64 `json:"wrong_answers_before_first_correct"`
}
AttemptItem is the type of profile.schema.json#/$defs/attempt_item.
type AttemptItemFinalVerdict ¶
type AttemptItemFinalVerdict string
AttemptItemFinalVerdict is the type of profile.schema.json#/$defs/attempt_item/properties/final_verdict.
The item's verdict at the end.
const ( AttemptItemFinalVerdictCorrect AttemptItemFinalVerdict = "correct" AttemptItemFinalVerdictNotYet AttemptItemFinalVerdict = "not_yet" AttemptItemFinalVerdictUnreadable AttemptItemFinalVerdict = "unreadable" AttemptItemFinalVerdictUnchecked AttemptItemFinalVerdict = "unchecked" )
The values of AttemptItemFinalVerdict.
type AttemptItemFirstVerdict ¶
type AttemptItemFirstVerdict string
AttemptItemFirstVerdict is the type of profile.schema.json#/$defs/attempt_item/properties/first_verdict.
The item's first verdict.
const ( AttemptItemFirstVerdictCorrect AttemptItemFirstVerdict = "correct" AttemptItemFirstVerdictNotYet AttemptItemFirstVerdict = "not_yet" AttemptItemFirstVerdictUnreadable AttemptItemFirstVerdict = "unreadable" AttemptItemFirstVerdictUnchecked AttemptItemFirstVerdict = "unchecked" )
The values of AttemptItemFirstVerdict.
type AttemptItemUnverdictedReasons ¶
type AttemptItemUnverdictedReasons string
AttemptItemUnverdictedReasons is the type of profile.schema.json#/$defs/attempt_item/properties/unverdicted_reasons/items.
Why each submission of the item got no verdict: one of them.
const ( AttemptItemUnverdictedReasonsUnreadableBlank AttemptItemUnverdictedReasons = "unreadable_blank" AttemptItemUnverdictedReasonsUnreadableOther AttemptItemUnverdictedReasons = "unreadable_other" AttemptItemUnverdictedReasonsUnchecked AttemptItemUnverdictedReasons = "unchecked" )
The values of AttemptItemUnverdictedReasons.
type AttemptSegment ¶
type AttemptSegment struct {
// The ID of the run of the lesson.
LessonRunID ID `json:"lesson_run_id"`
// The number of the segment of the lesson.
Segment int64 `json:"segment"`
}
AttemptSegment is the type of profile.schema.json#/$defs/attempt_segment.
type Case ¶
type Case struct {
// The files of the export, a map from each file's path — those of api.zip under api/ — to the
// file: a file of JSON as its value, a .proto file as its text. Any JSON value, as a reader of
// the vector gets it.
Files json.RawMessage `json:"files"`
// The reader accepts the export. Left out when it refuses it.
Accepted *bool `json:"accepted,omitzero"`
// The step that refuses the export: the schema, or the ID of the rule. Left out when the reader
// accepts it.
RefusedBy *CaseRefusedBy `json:"refused_by,omitzero"`
// Every name that step gives, in the order of code units.
Names []string `json:"names,omitzero"`
}
Case is the type of reading-vector.schema.json#/$defs/case.
type CaseRefusedBy ¶
type CaseRefusedBy string
CaseRefusedBy is the type of reading-vector.schema.json#/$defs/case/properties/refused_by.
The step that refuses the export: the schema, or the ID of the rule. Left out when the reader accepts it.
const ( CaseRefusedBySchema CaseRefusedBy = "schema" CaseRefusedByExportFiles CaseRefusedBy = "export.files" CaseRefusedByExportScope CaseRefusedBy = "export.scope" CaseRefusedByExportProfiles CaseRefusedBy = "export.profiles" CaseRefusedByExportWorks CaseRefusedBy = "export.works" CaseRefusedByExportPaper CaseRefusedBy = "export.paper" CaseRefusedByExportCase CaseRefusedBy = "export.case" CaseRefusedByExportProto CaseRefusedBy = "export.proto" )
The values of CaseRefusedBy.
type Choice ¶
type Choice struct {
// The ID of the choice.
ChoiceID ID `json:"choice_id"`
// What the choice gave; a choice of nothing is not stored.
Kind ChoiceKind `json:"kind"`
// When the choice was made, by which a replay restores the runs and closed attempts it saw.
ChosenAt Time `json:"chosen_at"`
// The task's full ID, beside kind task; no version, the attempt takes the current one.
Task *string `json:"task,omitzero"`
// The lesson's full ID, beside kind lesson.
Lesson *string `json:"lesson,omitzero"`
// The reason code, from the closed list ReasonCode.
ReasonCode ChoiceReasonCode `json:"reason_code"`
// The version of engine that chose.
EngineVersion string `json:"engine_version"`
// The version of learner-model that computed the state.
LearnerModelVersion string `json:"learner_model_version"`
// The digests of every graph learner-model and the engine got, each marked whether it is an
// engine module, connected and suitable.
PackageDigests []ChoicePackageDigest `json:"package_digests"`
// The modules release pinned when the choice was made.
ModulesRelease string `json:"modules_release"`
// The number of the last evidence of the log the choice was made by.
LastEvidenceSeq int64 `json:"last_evidence_seq"`
// The grade by which the model took the starting point of modules without evidence.
Grade *int64 `json:"grade,omitzero"`
// Whether the pool was limited to tasks checked without AI.
PoolWithoutAi bool `json:"pool_without_ai"`
// The full ID of the skill the learner chose, the task skill of the module the choice was
// among; absent when the engine leads.
Skill *string `json:"skill,omitzero"`
// The module whose tasks alone the choice was among, Solve on its card, or the module of a
// lesson the learner chose; absent for a choice among all the modules connected.
ModuleID *string `json:"module_id,omitzero"`
// The profile's age category at the time of the choice.
AgeCategory AgeCategory `json:"age_category"`
// The engine's seed; empty while the engine takes no randomness, as now.
Seed *string `json:"seed,omitzero"`
}
Choice is the type of profile.schema.json#/$defs/choice.
type ChoiceKind ¶
type ChoiceKind string
ChoiceKind is the type of profile.schema.json#/$defs/choice/properties/kind.
What the choice gave; a choice of nothing is not stored.
const ( ChoiceKindTask ChoiceKind = "task" ChoiceKindLesson ChoiceKind = "lesson" )
The values of ChoiceKind.
type ChoicePackageDigest ¶
type ChoicePackageDigest struct {
// The digest of a package, sha256:<64 hex>.
PackageDigest string `json:"package_digest"`
// Whether the module is a module of the engine.
EngineModule bool `json:"engine_module"`
}
ChoicePackageDigest is the type of profile.schema.json#/$defs/choice_package_digest.
type ChoiceReasonCode ¶
type ChoiceReasonCode string
ChoiceReasonCode is the type of profile.schema.json#/$defs/choice/properties/reason_code.
The reason code, from the closed list ReasonCode.
const ( ChoiceReasonCodeConsolidation ChoiceReasonCode = "consolidation" ChoiceReasonCodeNewSkill ChoiceReasonCode = "new_skill" ChoiceReasonCodeQueue ChoiceReasonCode = "queue" ChoiceReasonCodeRepetition ChoiceReasonCode = "repetition" ChoiceReasonCodeProbe ChoiceReasonCode = "probe" ChoiceReasonCodeSkillChosen ChoiceReasonCode = "skill_chosen" ChoiceReasonCodeAuthorOrder ChoiceReasonCode = "author_order" ChoiceReasonCodeOpenRun ChoiceReasonCode = "open_run" ChoiceReasonCodeRotation ChoiceReasonCode = "rotation" ChoiceReasonCodeLessonChosen ChoiceReasonCode = "lesson_chosen" )
The values of ChoiceReasonCode.
type ConnectedModule ¶
type ConnectedModule struct {
// The module's ID, 1 to 128 characters.
ModuleID string `json:"module_id"`
// When the module was connected; no version is kept.
ConnectedAt Time `json:"connected_at"`
// The full ID of the skill the learner chose for the module's tasks; absent while the tutor
// chooses.
TaskSkill *string `json:"task_skill,omitzero"`
}
ConnectedModule is the type of profile.schema.json#/$defs/connected_module.
type Consent ¶
type Consent struct {
// The ID of the consent record, which the minimal record keeps after deletion.
ConsentID ID `json:"consent_id"`
// Who gave the consent: the owner of the account of their own profile, by the statement that
// they are 18 or older; a parent, by the signed form; or the learner themselves, from the age
// of digital consent of their country.
Giver ConsentGiver `json:"giver"`
// Where the consent stands.
State ConsentState `json:"state"`
// Beside a parent's consent, and only there: the code of the request, which the signed form
// names — ten characters of Crockford's base32 in two groups of five.
RequestCode *string `json:"request_code,omitzero"`
// Beside a parent's consent: where the scan of the signed form stands — none sent; sent, and
// checked by the operator or accepted once the consent is confirmed; or not accepted, so that a
// new one is sent.
Form *ConsentForm `json:"form,omitzero"`
// The age category the consent was given for.
AgeCategory AgeCategory `json:"age_category"`
// The learner's country, ISO 3166-1 alpha-2.
Country string `json:"country"`
// How the consent was checked: the owner's dated statement for an adult, the signed form (and
// later a card transaction) for a child.
Method *string `json:"method,omitzero"`
// When the consent was recorded.
RequestedAt Time `json:"requested_at"`
// When the consent was confirmed; absent while it waits.
ConfirmedAt *Time `json:"confirmed_at,omitzero"`
// The versions of the legal texts the person saw when they gave the consent — privacy-policy
// and terms-of-use of the owner's, parent-consent of a parent's, teen-consent of the learner's
// own —, each that had a version in force; empty when none had.
Texts []TextRef `json:"texts"`
}
Consent is the type of common.schema.json#/$defs/consent.
type ConsentForm ¶
type ConsentForm string
ConsentForm is the type of common.schema.json#/$defs/consent/properties/form.
Beside a parent's consent: where the scan of the signed form stands — none sent; sent, and checked by the operator or accepted once the consent is confirmed; or not accepted, so that a new one is sent.
const ( ConsentFormNotSent ConsentForm = "not_sent" ConsentFormSent ConsentForm = "sent" ConsentFormNotAccepted ConsentForm = "not_accepted" )
The values of ConsentForm.
type ConsentGiver ¶
type ConsentGiver string
ConsentGiver is the type of common.schema.json#/$defs/consent/properties/giver.
Who gave the consent: the owner of the account of their own profile, by the statement that they are 18 or older; a parent, by the signed form; or the learner themselves, from the age of digital consent of their country.
const ( ConsentGiverOwner ConsentGiver = "owner" ConsentGiverParent ConsentGiver = "parent" ConsentGiverLearner ConsentGiver = "learner" )
The values of ConsentGiver.
type ConsentState ¶
type ConsentState string
ConsentState is the type of common.schema.json#/$defs/consent/properties/state.
Where the consent stands.
const ( ConsentStateWaiting ConsentState = "waiting" ConsentStateConfirmed ConsentState = "confirmed" )
The values of ConsentState.
type Device ¶
type Device struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// The ID of the profile.
ProfileID FileID `json:"profile_id"`
// The unfinished attempts this device holds.
Attempts []DeviceAttempt `json:"attempts"`
// The essays this device holds, with what was read and the feedback.
Essays []DeviceEssay `json:"essays"`
// The places in the unfinished lessons.
Lessons []DeviceLesson `json:"lessons"`
}
Device is the type of device.schema.json.
What this device holds of a profile, device/<id>.json: its unfinished attempts with their history, its essays and its places in lessons.
type DeviceAttempt ¶
type DeviceAttempt struct {
// The unfinished attempt, by its ID in api.
AttemptID ID `json:"attempt_id"`
// The history of writing as the canvas gave it: write/erase/cut/clear/undo events with t, a cut
// with the pieces it left; strokes with id, kind, style and points x, y, t, p.
History json.RawMessage `json:"history"`
// Each submission's context (SheetSubmission or WorkbookSubmission, as the canvas gave it) and
// the history length when it was sent; the PNG work is not exported.
Submissions []WorkSubmission `json:"submissions"`
// The attempt's mode, the step's place, the ticks of the chips and the technique IDs received.
StepState *DeviceAttemptStepState `json:"step_state,omitzero"`
}
DeviceAttempt is the type of device.schema.json#/$defs/device_attempt.
type DeviceAttemptStepState ¶
type DeviceAttemptStepState struct {
// The mode of the attempt.
Mode DeviceAttemptStepStateMode `json:"mode"`
// The place of the step.
Step int64 `json:"step"`
// The ticks of what is given and what is to be found, as app keeps them.
Ticks json.RawMessage `json:"ticks"`
// The IDs of the techniques the learner got.
TechniqueIds []string `json:"technique_ids"`
}
DeviceAttemptStepState is the type of device.schema.json#/$defs/device_attempt_step_state.
type DeviceAttemptStepStateMode ¶
type DeviceAttemptStepStateMode string
DeviceAttemptStepStateMode is the type of device.schema.json#/$defs/device_attempt_step_state/properties/mode.
The mode of the attempt.
const ( DeviceAttemptStepStateModeBySteps DeviceAttemptStepStateMode = "by_steps" DeviceAttemptStepStateModeSelf DeviceAttemptStepStateMode = "self" )
The values of DeviceAttemptStepStateMode.
type DeviceEssay ¶
type DeviceEssay struct {
// The essay's attempt, finished or not.
AttemptID ID `json:"attempt_id"`
// Whether the module version was withdrawn, so the essay goes without the task's statement.
ModuleVersionWithdrawn bool `json:"module_version_withdrawn"`
// The history of writing of the essay.
History json.RawMessage `json:"history"`
// What was read of the essay.
Text *string `json:"text,omitzero"`
// The rubric feedback's words.
Feedback *string `json:"feedback,omitzero"`
}
DeviceEssay is the type of device.schema.json#/$defs/device_essay.
type DeviceLesson ¶
type DeviceLesson struct {
// The lesson's full ID, part of the key.
Lesson string `json:"lesson"`
// The package digest, the rest of the key.
PackageDigest string `json:"package_digest"`
// The run the state belongs to.
LessonRunID ID `json:"lesson_run_id"`
// The segment the learner has reached, from 1.
Place int64 `json:"place"`
// The demo state of each worked example, {opened, hidden}, by segment place.
DemoStates []DeviceLessonDemoState `json:"demo_states"`
}
DeviceLesson is the type of device.schema.json#/$defs/device_lesson.
type DeviceLessonDemoState ¶
type DeviceLessonDemoState struct {
// The number of the segment of the lesson.
Segment int64 `json:"segment"`
// The state of showing of the segment, as the element gave it, in its own names.
DemoState json.RawMessage `json:"demo_state"`
}
DeviceLessonDemoState is the type of device.schema.json#/$defs/device_lesson_demo_state.
type EvidenceEntry ¶
type EvidenceEntry struct {
// The number in the profile's log, from 1.
Seq int64 `json:"seq"`
// The attempt the evidence is of; one per attempt. Absent from an adult's correction of the
// module's level, whose evidence has level_set_by_adult and which is of no attempt.
AttemptID *ID `json:"attempt_id,omitzero"`
// The ID of an adult's correction of the module's level, whose evidence has level_set_by_adult:
// absent from the evidence of an attempt.
CorrectionID *ID `json:"correction_id,omitzero"`
// The digest of the package the evidence is of: of the attempt, by which wrong_key versions
// filter the evidence of attempts; of an adult's correction, the package of the module's
// current version, which no wrong_key version filters out.
PackageDigest string `json:"package_digest"`
// The module's ID.
ModuleID string `json:"module_id"`
// When the evidence was appended.
RecordedAt Time `json:"recorded_at"`
// The evidence itself, as learner-model's message.
Evidence json.RawMessage `json:"evidence"`
}
EvidenceEntry is the type of profile.schema.json#/$defs/evidence_entry.
type FileID ¶
type FileID string
FileID is the type of common.schema.json#/$defs/file_id.
An ID that names a file of the export — a profile's or an attempt's, as api gives it, or a page's from paper, as app gives it —: 1 to 200 letters, digits, -, _ and ., the first not a ., so that it is one part of a path, never `.` or `..`.
type ID ¶
type ID string
ID is the type of common.schema.json#/$defs/id.
An ID, as api or app gives it.
type Image ¶
type Image struct {
// What the image is: a JPEG or a PNG.
MediaType ImageMediaType `json:"media_type"`
// The image's bytes, at most 4 MiB, in base64 by the standard alphabet of RFC 4648, not
// base64url.
Data string `json:"data"`
}
Image is the type of common.schema.json#/$defs/image.
An image of a page from paper, as the device holds it: its type and its bytes in base64.
type ImageMediaType ¶
type ImageMediaType string
ImageMediaType is the type of common.schema.json#/$defs/image/properties/media_type.
What the image is: a JPEG or a PNG.
const ( ImageMediaTypeImageJpeg ImageMediaType = "image/jpeg" ImageMediaTypeImagePng ImageMediaType = "image/png" )
The values of ImageMediaType.
type LessonRun ¶
type LessonRun struct {
// The ID of the run.
LessonRunID ID `json:"lesson_run_id"`
// The lesson's full ID (lesson_id in the database).
Lesson string `json:"lesson"`
// The module's ID.
ModuleID string `json:"module_id"`
// The module's version, so the export reads without the index.
ModuleVersion string `json:"module_version"`
// The digest of the package the run goes on.
PackageDigest string `json:"package_digest"`
// The engine's lesson choice that opened the run.
ChoiceID ID `json:"choice_id"`
// When the run began (started_at in the database).
BegunAt Time `json:"begun_at"`
// The time of the last action on the run or its attempts.
LastActionAt Time `json:"last_action_at"`
// Why the run ended; absent while open.
EndReason *LessonRunEndReason `json:"end_reason,omitzero"`
// When it ended; absent while open.
EndedAt *Time `json:"ended_at,omitzero"`
}
LessonRun is the type of profile.schema.json#/$defs/lesson_run.
type LessonRunEndReason ¶
type LessonRunEndReason string
LessonRunEndReason is the type of profile.schema.json#/$defs/lesson_run/properties/end_reason.
Why the run ended; absent while open.
const ( LessonRunEndReasonPassed LessonRunEndReason = "passed" LessonRunEndReasonUnchecked LessonRunEndReason = "unchecked" LessonRunEndReasonNotSuitable LessonRunEndReason = "not_suitable" LessonRunEndReasonAbandoned LessonRunEndReason = "abandoned" )
The values of LessonRunEndReason.
type Manifest ¶
type Manifest struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// What the export holds: one profile, or the account and every profile of it.
Scope ManifestScope `json:"scope"`
// When app built the export.
BuiltAt Time `json:"built_at"`
// The version of the build of app that built the export.
AppVersion string `json:"app_version"`
// The version of the format that the method of api named for its part, export_format_version,
// as the string it gave.
APIFormat string `json:"api_format"`
}
Manifest is the type of manifest.schema.json.
The manifest of an export, manifest.json, which app writes.
type ManifestScope ¶
type ManifestScope string
ManifestScope is the type of manifest.schema.json#/properties/scope.
What the export holds: one profile, or the account and every profile of it.
const ( ManifestScopeProfile ManifestScope = "profile" ManifestScopeAccount ManifestScope = "account" )
The values of ManifestScope.
type Paper ¶
type Paper struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// The ID of the profile whose page it is.
ProfileID FileID `json:"profile_id"`
// The ID of the page, as app gave it.
PageID FileID `json:"page_id"`
// When the learner took the photo, or picked it.
TakenAt Time `json:"taken_at"`
// The photo of the page, without the metadata of its file, as it was sent to find its tasks.
Photo Image `json:"photo"`
// The task frames of the page, those the AI found and those the learner drew, in the order app
// shows them; a frame the learner removed is not here.
Frames []TaskFrame `json:"frames"`
// The tasks picked on the page, in the order of their attempts.
Tasks []Task `json:"tasks"`
}
Paper is the type of paper.schema.json.
A page from the learner's paper that the device holds, paper/<profile id>/<page id>.json, which app writes beside api.zip: the photo of the page, its task frames, and each picked task's crop and work. The server keeps none of it.
type PaperAttempt ¶
type PaperAttempt struct {
// The attempt's ID, which the task of its page in paper/ names.
AttemptID ID `json:"attempt_id"`
// When the attempt began.
BegunAt Time `json:"begun_at"`
// When the learner last acted on it.
LastActionAt Time `json:"last_action_at"`
// The attempt's wrong answers.
WrongAnswers int64 `json:"wrong_answers"`
// The rungs given, in order, with their words.
Rungs []Rung `json:"rungs"`
// Whether the words after a correct answer were given.
CorrectAnswerWordsGiven bool `json:"correct_answer_words_given"`
// Each submission, in order, with its verdict, what was read and its observation.
Submissions []Submission `json:"submissions"`
}
PaperAttempt is the type of profile.schema.json#/$defs/paper_attempt.
type ProblemReport ¶
type ProblemReport struct {
// The ID of the report.
ReportID ID `json:"report_id"`
// The attempt whose tutor's words it is about.
AttemptID ID `json:"attempt_id"`
// The answer that brought the words: a rung's, explain differently, after a correct answer, the
// feedback of an essay, or the opening question of a task from paper.
Reply ProblemReportReply `json:"reply"`
// Beside a rung and explain differently: the rung.
Rung *int64 `json:"rung,omitzero"`
// The tutor's words as app showed them.
Words string `json:"words"`
// The word of the closed set the person picked.
Kind ProblemReportKind `json:"kind"`
// What the person wrote beside it; empty when nothing.
Text string `json:"text"`
// When it came.
ReportedAt Time `json:"reported_at"`
// When the operator reviews it by: 3 days after it came.
ReviewBy Time `json:"review_by"`
// When the operator reviewed it; absent until then.
ReviewedAt *Time `json:"reviewed_at,omitzero"`
}
ProblemReport is the type of profile.schema.json#/$defs/problem_report.
type ProblemReportKind ¶
type ProblemReportKind string
ProblemReportKind is the type of profile.schema.json#/$defs/problem_report/properties/kind.
The word of the closed set the person picked.
const ( ProblemReportKindWrong ProblemReportKind = "wrong" ProblemReportKindUnclear ProblemReportKind = "unclear" ProblemReportKindNotForAge ProblemReportKind = "not_for_age" ProblemReportKindHarmful ProblemReportKind = "harmful" ProblemReportKindPersonal ProblemReportKind = "personal" ProblemReportKindOther ProblemReportKind = "other" )
The values of ProblemReportKind.
type ProblemReportReply ¶
type ProblemReportReply string
ProblemReportReply is the type of profile.schema.json#/$defs/problem_report/properties/reply.
The answer that brought the words: a rung's, explain differently, after a correct answer, the feedback of an essay, or the opening question of a task from paper.
const ( ProblemReportReplyRung ProblemReportReply = "rung" ProblemReportReplyExplainedDifferently ProblemReportReply = "explained_differently" ProblemReportReplyCorrectAnswer ProblemReportReply = "correct_answer" ProblemReportReplyEssayFeedback ProblemReportReply = "essay_feedback" ProblemReportReplyOpening ProblemReportReply = "opening" )
The values of ProblemReportReply.
type Profile ¶
type Profile struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// The ID of the profile.
ProfileID FileID `json:"profile_id"`
// Whether this is the profile of the account's owner.
Owner bool `json:"owner"`
// The pseudonym the owner made up for the learner, never a real name.
Pseudonym string `json:"pseudonym"`
// The code of a picture of app's set; empty when none was chosen.
Avatar string `json:"avatar"`
// The learner's age category.
AgeCategory AgeCategory `json:"age_category"`
// The learner's country, ISO 3166-1 alpha-2.
Country string `json:"country"`
// The day the age was given; absent on the owner's profile, which asks no age.
AgeStatedOn *Day `json:"age_stated_on,omitzero"`
// The country's age of digital consent, 13 to 18, that the category was given by (consent-age
// calls it `applied`); absent where no age was given.
ConsentAge *int64 `json:"consent_age,omitzero"`
// How the platform speaks and shows: today only the voicing, on or off, and its speed.
PresentationStyle ProfilePresentationStyle `json:"presentation_style"`
// The default mode of the screen of a task.
DefaultMode ProfileDefaultMode `json:"default_mode"`
// The hint mode: whether a task from paper gets the wavy line with the words of a rung,
// "show_where", or the words alone, "questions_only".
HintMode ProfileHintMode `json:"hint_mode"`
// The interface language, a BCP 47 tag; absent when none is set.
InterfaceLanguage *string `json:"interface_language,omitzero"`
// The grade, 1 to 12, when a module asks for it.
Grade *int64 `json:"grade,omitzero"`
// A child's setting: the solution is shown by an action of an adult; always false at adult.
AskBeforeShowing bool `json:"ask_before_showing"`
// The date of the last learning request or adult action on the profile, by which an idle
// profile is deleted after 12 months.
ActiveOn Day `json:"active_on"`
// The profile's consent record, whole.
Consent Consent `json:"consent"`
// The modules connected to the profile.
ConnectedModules []ConnectedModule `json:"connected_modules"`
// The profile's lesson runs, open and ended.
LessonRuns []LessonRun `json:"lesson_runs"`
// The profile's attempts, open and closed.
Attempts []Attempt `json:"attempts"`
// The profile's open attempts of tasks from paper, those of one page: api keeps one only while
// it is open, and nothing of it once it ends, by the retention periods of `docs/privacy.md`.
// Their page, crops and work are the device's, under paper/.
PaperAttempts []PaperAttempt `json:"paper_attempts"`
// The engine's choices for the profile.
Choices []Choice `json:"choices"`
// The whole evidence log, in the order of seq.
Evidence []EvidenceEntry `json:"evidence"`
// The current state of the learner model.
State StateEntry `json:"state"`
// The stored works, the works of the profile kept on the server, newest first, each named
// without its bytes, as ListWorks names it; each is a file of its own beside api.zip, which app
// writes. Empty while storage is off.
Works []WorkInfo `json:"works"`
// Whether the storage of the profile's works on the server is on.
WorkStorage bool `json:"work_storage"`
// Each time the storage of works was switched on, by whom, by which version of storage-consent,
// and when it was switched off: the records live as long as the profile.
StorageConsents []StorageConsent `json:"storage_consents"`
// The reports of a problem with the tutor's words of the profile's attempts that api keeps:
// until the operator reviewed them, and for a year after.
ProblemReports []ProblemReport `json:"problem_reports"`
// The profile's quota counters.
QuotaCounters []QuotaCounter `json:"quota_counters"`
}
Profile is the type of profile.schema.json.
A profile and every record of it, api/profiles/<id>.json.
type ProfileDefaultMode ¶
type ProfileDefaultMode string
ProfileDefaultMode is the type of profile.schema.json#/properties/default_mode.
The default mode of the screen of a task.
const ( ProfileDefaultModeBySteps ProfileDefaultMode = "by_steps" ProfileDefaultModeSelf ProfileDefaultMode = "self" )
The values of ProfileDefaultMode.
type ProfileHintMode ¶
type ProfileHintMode string
ProfileHintMode is the type of profile.schema.json#/properties/hint_mode.
The hint mode: whether a task from paper gets the wavy line with the words of a rung, "show_where", or the words alone, "questions_only".
const ( ProfileHintModeQuestionsOnly ProfileHintMode = "questions_only" ProfileHintModeShowWhere ProfileHintMode = "show_where" )
The values of ProfileHintMode.
type ProfilePresentationStyle ¶
type ProfilePresentationStyle struct {
// The voicing: whether it is on, and its speed.
Voicing ProfilePresentationStyleVoicing `json:"voicing"`
}
ProfilePresentationStyle is the type of profile.schema.json#/$defs/profile_presentation_style.
type ProfilePresentationStyleVoicing ¶
type ProfilePresentationStyleVoicing struct {
// Whether the voicing is on.
Enabled bool `json:"enabled"`
// The speed of the voicing.
Speed ProfilePresentationStyleVoicingSpeed `json:"speed"`
}
ProfilePresentationStyleVoicing is the type of profile.schema.json#/$defs/profile_presentation_style_voicing.
type ProfilePresentationStyleVoicingSpeed ¶
type ProfilePresentationStyleVoicingSpeed string
ProfilePresentationStyleVoicingSpeed is the type of profile.schema.json#/$defs/profile_presentation_style_voicing/properties/speed.
The speed of the voicing.
const ( ProfilePresentationStyleVoicingSpeedNormal ProfilePresentationStyleVoicingSpeed = "normal" ProfilePresentationStyleVoicingSpeedSlow ProfilePresentationStyleVoicingSpeed = "slow" )
The values of ProfilePresentationStyleVoicingSpeed.
type QuotaCounter ¶
type QuotaCounter struct {
// The beginning of the family day, the counter's key (not a date: an offset change can repeat a
// date).
DayStart Time `json:"day_start"`
// Spent that day; the source keeps US dollars by tutor's estimate, here as integer
// micro-dollars.
SpentMicroUsd int64 `json:"spent_micro_usd"`
// In reserve that day, in integer micro-dollars of the dollars the source keeps.
ReservedMicroUsd int64 `json:"reserved_micro_usd"`
}
QuotaCounter is the type of common.schema.json#/$defs/quota_counter.
type ReadingVector ¶
type ReadingVector struct {
// The exports.
Cases []Case `json:"cases"`
}
ReadingVector is the type of reading-vector.schema.json.
A test vector of reading: exports, unpacked, and what the rules of reading an export give. A reader implements those rules and gets exactly this.
type RubricSubmission ¶
type RubricSubmission struct {
// When the submission came.
SubmittedAt Time `json:"submitted_at"`
// How it ended.
End RubricSubmissionEnd `json:"end"`
// Beside feedback, the mark of each criterion, by its number in the rubric (its index, from 1).
CriterionMarks []RubricSubmissionCriterionMarks `json:"criterion_marks,omitzero"`
// Beside feedback, whether the words were the model's or the phrase 'no feedback this time'.
FeedbackSource *RubricSubmissionFeedbackSource `json:"feedback_source,omitzero"`
}
RubricSubmission is the type of profile.schema.json#/$defs/rubric_submission.
type RubricSubmissionCriterionMarks ¶
type RubricSubmissionCriterionMarks string
RubricSubmissionCriterionMarks is the type of profile.schema.json#/$defs/rubric_submission/properties/criterion_marks/items.
Beside feedback, the mark of each criterion, by its number in the rubric (its index, from 1): one of them.
const ( RubricSubmissionCriterionMarksMet RubricSubmissionCriterionMarks = "met" RubricSubmissionCriterionMarksNotMet RubricSubmissionCriterionMarks = "not_met" RubricSubmissionCriterionMarksNotAssessed RubricSubmissionCriterionMarks = "not_assessed" )
The values of RubricSubmissionCriterionMarks.
type RubricSubmissionEnd ¶
type RubricSubmissionEnd string
RubricSubmissionEnd is the type of profile.schema.json#/$defs/rubric_submission/properties/end.
How it ended.
const ( RubricSubmissionEndFeedback RubricSubmissionEnd = "feedback" RubricSubmissionEndUnreadable RubricSubmissionEnd = "unreadable" RubricSubmissionEndUnchecked RubricSubmissionEnd = "unchecked" )
The values of RubricSubmissionEnd.
type RubricSubmissionFeedbackSource ¶
type RubricSubmissionFeedbackSource string
RubricSubmissionFeedbackSource is the type of profile.schema.json#/$defs/rubric_submission/properties/feedback_source.
Beside feedback, whether the words were the model's or the phrase 'no feedback this time'.
const ( RubricSubmissionFeedbackSourceModel RubricSubmissionFeedbackSource = "model" RubricSubmissionFeedbackSourceNoFeedback RubricSubmissionFeedbackSource = "no_feedback" )
The values of RubricSubmissionFeedbackSource.
type Rung ¶
type Rung struct {
// The rung, 1 to 3; on an attempt of a task from paper, 0 is its opening question, the model's
// words alone.
Rung int64 `json:"rung"`
// Whether its words came from the model or are the fallback text.
Source RungSource `json:"source"`
// The rung's words; present only while the attempt is open, deleted at close.
Words *string `json:"words,omitzero"`
// Whether the learner asked to explain this rung differently.
ExplainedDifferently bool `json:"explained_differently"`
// The source of the other words, beside explained_differently.
ExplainedDifferentlySource *RungExplainedDifferentlySource `json:"explained_differently_source,omitzero"`
}
Rung is the type of profile.schema.json#/$defs/rung.
type RungExplainedDifferentlySource ¶
type RungExplainedDifferentlySource string
RungExplainedDifferentlySource is the type of profile.schema.json#/$defs/rung/properties/explained_differently_source.
The source of the other words, beside explained_differently.
const ( RungExplainedDifferentlySourceModel RungExplainedDifferentlySource = "model" RungExplainedDifferentlySourceFallback RungExplainedDifferentlySource = "fallback" )
The values of RungExplainedDifferentlySource.
type RungSource ¶
type RungSource string
RungSource is the type of profile.schema.json#/$defs/rung/properties/source.
Whether its words came from the model or are the fallback text.
const ( RungSourceModel RungSource = "model" RungSourceFallback RungSource = "fallback" )
The values of RungSource.
type StateEntry ¶
type StateEntry struct {
// The state of the learner model, the fold of the log.
State json.RawMessage `json:"state"`
// The version of learner-model that computed it.
LearnerModelVersion string `json:"learner_model_version"`
// The modules release of the cache's mark.
ModulesRelease string `json:"modules_release"`
// The window of module format versions of the cache's mark.
FormatWindow string `json:"format_window"`
// The number of the last evidence counted.
LastSeq int64 `json:"last_seq"`
// For each module of the log, the version whose graph the state was computed by; module_version
// absent when the module has no current version and its evidence waits.
Modules []StateEntryModule `json:"modules"`
}
StateEntry is the type of profile.schema.json#/$defs/state_entry.
type StateEntryModule ¶
type StateEntryModule struct {
// The module's ID.
ModuleID string `json:"module_id"`
// The version of the module whose graph the state was computed by; left out when the module has
// no current version and its evidence waits.
ModuleVersion *string `json:"module_version,omitzero"`
}
StateEntryModule is the type of profile.schema.json#/$defs/state_entry_module.
type StorageConsent ¶
type StorageConsent struct {
// Who switched it on: whoever consents for the learner.
Giver StorageConsentGiver `json:"giver"`
// When it was switched on.
GivenAt Time `json:"given_at"`
// When it was switched off; absent while it is on.
WithdrawnAt *Time `json:"withdrawn_at,omitzero"`
// The version of storage-consent the person read; empty when it had no version in force.
Texts []TextRef `json:"texts"`
}
StorageConsent is the type of profile.schema.json#/$defs/storage_consent.
type StorageConsentGiver ¶
type StorageConsentGiver string
StorageConsentGiver is the type of profile.schema.json#/$defs/storage_consent/properties/giver.
Who switched it on: whoever consents for the learner.
const ( StorageConsentGiverOwner StorageConsentGiver = "owner" StorageConsentGiverParent StorageConsentGiver = "parent" StorageConsentGiverLearner StorageConsentGiver = "learner" )
The values of StorageConsentGiver.
type Submission ¶
type Submission struct {
// The submission's place among the attempt's, from 1.
Number int64 `json:"number"`
// When it came.
SubmittedAt Time `json:"submitted_at"`
// The verdict of every item and answer slot and what was read, as ItemVerdict/AnswerSlotVerdict
// hold them.
Items []SubmissionItem `json:"items"`
// The observation of the reading: merged from the two readings in the reading mode pair, the
// one reader's in the mode single; absent when only taps were sent.
Observation *json.RawMessage `json:"observation,omitzero"`
// The options tapped, beside the observation.
TappedChoices []SubmissionTappedChoice `json:"tapped_choices"`
// The attempt's wrong answers including this submission.
WrongAnswers int64 `json:"wrong_answers"`
// What a call of AI came to when slots got unchecked by it (a Cause of the contract).
Outcome *SubmissionOutcome `json:"outcome,omitzero"`
}
Submission is the type of profile.schema.json#/$defs/submission.
type SubmissionItem ¶
type SubmissionItem struct {
// The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
// solution with no error, which counts no wrong answer.
Verdict SubmissionItemVerdict `json:"verdict"`
// The verdict of each answer slot.
AnswerSlots []SubmissionItemAnswerSlot `json:"answer_slots"`
}
SubmissionItem is the type of profile.schema.json#/$defs/submission_item.
type SubmissionItemAnswerSlot ¶
type SubmissionItemAnswerSlot struct {
// The place of the answer slot, the JSON of novatrail.observation.v1.AnswerSlotPlace by
// protobuf's JSON mapping with the names of the .proto fields.
AnswerSlot json.RawMessage `json:"answer_slot"`
// The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
// solution with no error, which counts no wrong answer.
Verdict SubmissionItemAnswerSlotVerdict `json:"verdict"`
// Why the answer slot could not be read.
Reason *SubmissionItemAnswerSlotReason `json:"reason,omitzero"`
// The value, as written.
Value *string `json:"value,omitzero"`
}
SubmissionItemAnswerSlot is the type of profile.schema.json#/$defs/submission_item_answer_slot.
type SubmissionItemAnswerSlotReason ¶
type SubmissionItemAnswerSlotReason string
SubmissionItemAnswerSlotReason is the type of profile.schema.json#/$defs/submission_item_answer_slot/properties/reason.
Why the answer slot could not be read.
const ( SubmissionItemAnswerSlotReasonBlank SubmissionItemAnswerSlotReason = "blank" SubmissionItemAnswerSlotReasonNotation SubmissionItemAnswerSlotReason = "notation" SubmissionItemAnswerSlotReasonIllegible SubmissionItemAnswerSlotReason = "illegible" SubmissionItemAnswerSlotReasonAmbiguous SubmissionItemAnswerSlotReason = "ambiguous" SubmissionItemAnswerSlotReasonNoFinalAnswer SubmissionItemAnswerSlotReason = "no_final_answer" SubmissionItemAnswerSlotReasonSeveralFinalAnswers SubmissionItemAnswerSlotReason = "several_final_answers" )
The values of SubmissionItemAnswerSlotReason.
type SubmissionItemAnswerSlotVerdict ¶
type SubmissionItemAnswerSlotVerdict string
SubmissionItemAnswerSlotVerdict is the type of profile.schema.json#/$defs/submission_item_answer_slot/properties/verdict.
The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a solution with no error, which counts no wrong answer.
const ( SubmissionItemAnswerSlotVerdictCorrect SubmissionItemAnswerSlotVerdict = "correct" SubmissionItemAnswerSlotVerdictNotYet SubmissionItemAnswerSlotVerdict = "not_yet" SubmissionItemAnswerSlotVerdictUnreadable SubmissionItemAnswerSlotVerdict = "unreadable" SubmissionItemAnswerSlotVerdictUnchecked SubmissionItemAnswerSlotVerdict = "unchecked" SubmissionItemAnswerSlotVerdictSoFarCorrect SubmissionItemAnswerSlotVerdict = "so_far_correct" )
The values of SubmissionItemAnswerSlotVerdict.
type SubmissionItemVerdict ¶
type SubmissionItemVerdict string
SubmissionItemVerdict is the type of profile.schema.json#/$defs/submission_item/properties/verdict.
The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a solution with no error, which counts no wrong answer.
const ( SubmissionItemVerdictCorrect SubmissionItemVerdict = "correct" SubmissionItemVerdictNotYet SubmissionItemVerdict = "not_yet" SubmissionItemVerdictUnreadable SubmissionItemVerdict = "unreadable" SubmissionItemVerdictUnchecked SubmissionItemVerdict = "unchecked" SubmissionItemVerdictSoFarCorrect SubmissionItemVerdict = "so_far_correct" )
The values of SubmissionItemVerdict.
type SubmissionOutcome ¶
type SubmissionOutcome struct {
// The cause of the outcome, by its code.
Cause string `json:"cause"`
}
SubmissionOutcome is the type of profile.schema.json#/$defs/submission_outcome.
type SubmissionTappedChoice ¶
type SubmissionTappedChoice struct {
// The place of the answer slot, the JSON of novatrail.observation.v1.AnswerSlotPlace by
// protobuf's JSON mapping with the names of the .proto fields.
AnswerSlot json.RawMessage `json:"answer_slot"`
// The value, as written.
Value string `json:"value"`
}
SubmissionTappedChoice is the type of profile.schema.json#/$defs/submission_tapped_choice.
type Task ¶
type Task struct {
// The attempt of the task, as api gave it.
AttemptID ID `json:"attempt_id"`
// The task's frame, by its place in frames, from 1.
Frame int64 `json:"frame"`
// The task's crop as app cut it by its frame, without the learner's strokes.
Statement Image `json:"statement"`
// The history of writing as the canvas gave it, the strokes of the sheet and of the tracing
// paper: write/erase/cut/clear/tutor/undo events with t, a cut with the pieces it left, a tutor
// event — the tutor's act in grown-up mode — with the strokes it wrote and the IDs it took off;
// strokes with id, kind, style and points x, y, t, p; on a stroke or a tutor event of the
// tracing paper, on "tracing".
History json.RawMessage `json:"history"`
// Where the tracing paper lay at the end, whether it was hidden and its scale, as the canvas
// gave it: at [x, y], hidden and scale, absent meaning 1.
Tracing json.RawMessage `json:"tracing"`
// Each submission of the task, in order: its context, as the canvas gave it, and the history
// length when it was sent.
Submissions []WorkSubmission `json:"submissions"`
}
Task is the type of paper.schema.json#/$defs/task.
A picked task of the page: its crop and its work, as the device holds them.
type TaskFrame ¶
type TaskFrame struct {
// The frame on the photo.
Box ThousandthsBox `json:"box"`
// Who framed the task: the AI that found the tasks, or the learner by hand.
By TaskFrameBy `json:"by"`
}
TaskFrame is the type of paper.schema.json#/$defs/task_frame.
A rectangle round one task on the photo of the page.
type TaskFrameBy ¶
type TaskFrameBy string
TaskFrameBy is the type of paper.schema.json#/$defs/task_frame/properties/by.
Who framed the task: the AI that found the tasks, or the learner by hand.
const ( TaskFrameByAi TaskFrameBy = "ai" TaskFrameByLearner TaskFrameBy = "learner" )
The values of TaskFrameBy.
type TextRef ¶
type TextRef struct {
// The ID of the text in the passport of the legal texts, such as parent-consent.
ID string `json:"id"`
// The number of its version, from 1.
Version int64 `json:"version"`
}
TextRef is the type of common.schema.json#/$defs/text_ref.
type ThousandthsBox ¶
type ThousandthsBox []int64
ThousandthsBox is the type of common.schema.json#/$defs/thousandths_box.
A box [ymin, xmin, ymax, xmax] in whole thousandths of the height and the width of an image.
type Time ¶
type Time string
Time is the type of common.schema.json#/$defs/time.
A time, RFC 3339 in UTC.
type Work ¶
type Work struct {
// The version of the part, the integer in export/VERSION.
Format int64 `json:"format"`
// The ID of the profile whose work it is.
ProfileID FileID `json:"profile_id"`
// The attempt whose work it is.
AttemptID FileID `json:"attempt_id"`
// What the work is, as api set it.
Kind WorkKind `json:"kind"`
// When api kept the work, the last time it was put.
StoredAt Time `json:"stored_at"`
// The history of writing as the canvas gave it, the JSON array its bytes hold, not their
// base64: write/erase/cut/clear/undo events with t, a cut with the pieces it left; strokes with
// id, kind, style and points x, y, t, p.
History json.RawMessage `json:"history"`
// Each submission of the attempt, in order: its context, as the canvas gave it, and the history
// length when it was sent.
Submissions []WorkSubmission `json:"submissions"`
// The picture of the work: the PNG of the strokes the surface shows at the end, in base64 by
// the standard alphabet of RFC 4648, not base64url.
Picture string `json:"picture"`
}
Work is the type of work.schema.json.
A stored work of a profile, works/<profile id>/<attempt id>.json, which app writes beside api.zip as GetWork gave it.
type WorkInfo ¶
type WorkInfo struct {
// The attempt whose work it is.
AttemptID FileID `json:"attempt_id"`
// What the work is.
Kind WorkKind `json:"kind"`
// When api kept the work, the last time it was put.
StoredAt Time `json:"stored_at"`
// The size of the work, in bytes: the sum of the bytes of its history, of the contexts of its
// submissions and of its picture, at most 4 MiB.
SizeBytes int64 `json:"size_bytes"`
}
WorkInfo is the type of profile.schema.json#/$defs/work_info.
type WorkKind ¶
type WorkKind string
WorkKind is the type of common.schema.json#/$defs/work_kind.
What a stored work is, by its task: handwriting on an item with a verdict, an essay by a rubric, or a drawing.
type WorkSubmission ¶
type WorkSubmission struct {
// The context of the submission, as the element <novatrail-canvas> gave it, in its own names.
Context json.RawMessage `json:"context"`
// How many events of the history the submission covers.
HistoryLength int64 `json:"history_length"`
}
WorkSubmission is the type of common.schema.json#/$defs/work_submission.