@intellectif/lk-core 1.6.0 → 1.7.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.
- package/CHANGELOG.md +20 -0
- package/dist/{ai-i3jwXnpX.d.cts → ai-B1wYrqcB.d.cts} +39 -15
- package/dist/ai-B1wYrqcB.d.cts.map +1 -0
- package/dist/{ai-i3jwXnpX.d.ts → ai-B1wYrqcB.d.ts} +39 -15
- package/dist/ai-B1wYrqcB.d.ts.map +1 -0
- package/dist/ai-check.cjs +13 -6
- package/dist/ai-check.cjs.map +1 -1
- package/dist/ai-check.d.cts +1 -5
- package/dist/ai-check.d.cts.map +1 -1
- package/dist/ai-check.d.ts +1 -5
- package/dist/ai-check.d.ts.map +1 -1
- package/dist/ai-check.js +13 -6
- package/dist/ai-check.js.map +1 -1
- package/dist/{ai-writing-OJ5m_1EB.js → ai-writing-B7oMCt66.js} +46 -43
- package/dist/ai-writing-B7oMCt66.js.map +1 -0
- package/dist/{ai-writing-C4YRVrFi.cjs → ai-writing-DrPTV3R2.cjs} +46 -43
- package/dist/ai-writing-DrPTV3R2.cjs.map +1 -0
- package/dist/{index-DeD8EI1D.d.ts → index-BM8LeDWn.d.cts} +2 -42
- package/dist/index-BM8LeDWn.d.cts.map +1 -0
- package/dist/{index-Uh1u57yq.d.cts → index-BTkMQtws.d.ts} +2 -42
- package/dist/index-BTkMQtws.d.ts.map +1 -0
- package/dist/{index-Dj92T76o.d.ts → index-BU99GFTl.d.ts} +2 -8
- package/dist/index-BU99GFTl.d.ts.map +1 -0
- package/dist/{index-WBHSrIUU.d.ts → index-BdXs4-en.d.ts} +5 -12
- package/dist/index-BdXs4-en.d.ts.map +1 -0
- package/dist/{index-CFRgZLhH.d.cts → index-DP9rvyOz.d.cts} +5 -12
- package/dist/index-DP9rvyOz.d.cts.map +1 -0
- package/dist/{index--U7hHV0s.d.cts → index-XCCoPoTU.d.cts} +2 -8
- package/dist/index-XCCoPoTU.d.cts.map +1 -0
- package/dist/index.cjs +13 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -70
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +4 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -20
- package/dist/index.js.map +1 -1
- package/dist/{item-group-CQRbb8Rx.cjs → item-group-8P3WFuUK.cjs} +4 -6
- package/dist/{item-group-CQRbb8Rx.cjs.map → item-group-8P3WFuUK.cjs.map} +1 -1
- package/dist/{item-group-BbvvH_Ob.js → item-group-CeDk7mfM.js} +4 -6
- package/dist/{item-group-BbvvH_Ob.js.map → item-group-CeDk7mfM.js.map} +1 -1
- package/dist/{registry-B23o9UWh.js → registry-D92hz9iA.js} +60 -89
- package/dist/registry-D92hz9iA.js.map +1 -0
- package/dist/{registry-Ih5n4PVZ.cjs → registry-hzrkTeIT.cjs} +61 -91
- package/dist/registry-hzrkTeIT.cjs.map +1 -0
- package/dist/{schemas-Q2dyOgc2.cjs → schemas-BWeskONy.cjs} +5 -7
- package/dist/{schemas-Q2dyOgc2.cjs.map → schemas-BWeskONy.cjs.map} +1 -1
- package/dist/{schemas-yId-bJhD.js → schemas-C7TViWCg.js} +5 -7
- package/dist/{schemas-yId-bJhD.js.map → schemas-C7TViWCg.js.map} +1 -1
- package/dist/schemas.cjs +3 -3
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +3 -3
- package/dist/{scoring-CaPS6q8b.cjs → scoring-CtkCFyFT.cjs} +22 -42
- package/dist/{scoring-CaPS6q8b.cjs.map → scoring-CtkCFyFT.cjs.map} +1 -1
- package/dist/{scoring-CLMdk8i9.js → scoring-DD1GHcLI.js} +22 -42
- package/dist/{scoring-CLMdk8i9.js.map → scoring-DD1GHcLI.js.map} +1 -1
- package/dist/scoring.cjs +2 -2
- package/dist/scoring.d.cts +2 -2
- package/dist/scoring.d.ts +2 -2
- package/dist/scoring.js +2 -2
- package/dist/{xapi-BX0hvRRB.cjs → xapi-7btSpx6v.cjs} +5 -8
- package/dist/{xapi-BX0hvRRB.cjs.map → xapi-7btSpx6v.cjs.map} +1 -1
- package/dist/{xapi-Cdk9fTvV.js → xapi-Cgicg-zU.js} +5 -8
- package/dist/{xapi-Cdk9fTvV.js.map → xapi-Cgicg-zU.js.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +2 -2
- package/dist/ai-i3jwXnpX.d.cts.map +0 -1
- package/dist/ai-i3jwXnpX.d.ts.map +0 -1
- package/dist/ai-writing-C4YRVrFi.cjs.map +0 -1
- package/dist/ai-writing-OJ5m_1EB.js.map +0 -1
- package/dist/index--U7hHV0s.d.cts.map +0 -1
- package/dist/index-CFRgZLhH.d.cts.map +0 -1
- package/dist/index-DeD8EI1D.d.ts.map +0 -1
- package/dist/index-Dj92T76o.d.ts.map +0 -1
- package/dist/index-Uh1u57yq.d.cts.map +0 -1
- package/dist/index-WBHSrIUU.d.ts.map +0 -1
- package/dist/registry-B23o9UWh.js.map +0 -1
- package/dist/registry-Ih5n4PVZ.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { $ as AiVerdict, $t as MultipleChoiceData, A as AiGapSelectFacts, An as XAPIStatement, At as ActivityType, B as AiHintRequest, Bn as GradingState, Bt as FillInTheBlanksLearnerResponse, C as AiDraftsCall, Cn as XAPIConfig, Ct as ItemFinding, D as AiFeature, Dn as XAPIObject, Dt as ActivityFeedback, E as AiExplanationRequest, En as XAPIError, Et as ActivityDataMap, F as AiGradingFacts, Fn as GradeRoutingReason, Ft as DictationEquivalence, G as AiProvenance, Gn as matchText, Gt as GapSelectLearnerResponse, H as AiMaterialFacts, Hn as TextMatchPolicy, Ht as GapSelectChoice, I as AiGradingJudgement, In as Grader, It as DictationLearnerResponse, J as AiRefusal, Jt as ItemOutcome, K as AiReadingFacts, Kt as InteractionEvent, L as AiGradingRequest, Ln as GraderConfiguration, Lt as DictationSlowMedia, M as AiGrade, Mn as CriterionScore, Mt as DeferredReason, N as AiGradedCriterion, Nn as GradeRecord, Nt as DeferredScoringPartial, O as AiFillInTheBlanksFacts, On as XAPIResult, Ot as ActivityMedia, P as AiGradingCriterionFact, Pn as GradeRouting, Pt as DictationData, Q as AiTextResult, Qt as MediaTrack, R as AiGradingRequestProblem, Rn as GraderKind, Rt as DictationTolerance, S as AiDrafts, Sn as XAPIActor, St as DraftValidationResult, T as AiDraftsRun, Tn as XAPIContextActivities, Tt as ActivityData, U as AiMultipleChoiceFacts, Un as TextMatchResult, Ut as GapSelectData, V as AiItemFacts, Vn as InlineCorrection, Vt as GapSelectBank, W as AiOptionFact, Wn as levenshteinDistance, Wt as GapSelectGap, X as AiSoundFact, Xt as LearnerResponseMap, Y as AiRubricCriterionFact, Yt as LearnerResponse, Z as AiSupportedActivityType, Zt as MediaPlaybackPolicy, _ as AiDraftCaption, _n as WrittenResponseData, _t as DraftComplete, a as AiCoachingRequest, an as ReadAloudDimension, at as AiWritingFeedbackRequest, b as AiDraftSource, bn as WrittenResponseRubricCriterion, bt as DraftNotComplete, c as AiCriterionJudgement, cn as ReadAloudSlowMedia, ct as MediaProgress, d as AiCritiqueFinding, dn as ScoringDetail, dt as SequenceSlot, en as MultipleChoiceLearnerResponse, et as AiVideoDraft, f as AiCritiqueFindingResult, fn as ScoringOutcome, ft as SequenceSlotGroup, g as AiDictationFacts, gn as ValidationResult, gt as TimelineCue, h as AiCritiqueResult, hn as ValidationError, ht as TimelineChapter, i as AiCoaching, in as ReadAloudData, it as AiWritingFeedback, j as AiGeneratedDraft, jn as XAPIVerbObject, jt as BlankConfig, k as AiGapFact, kn as XAPIScore, kt as ActivityResult, l as AiCritique, ln as RecordingBounds, lt as MediaTimeline, m as AiCritiqueRequest, mn as ScriptTurn, mt as StimulusKind, n as AiActivityInput, nn as MultipleChoiceOptionMedia, nt as AiWritingCorrection, o as AiCoachingResult, on as ReadAloudDimensionWeight, ot as AiWritingFeedbackResult, p as AiCritiqueKind, pn as ScoringResult, pt as Stimulus, q as AiReadingWordFact, qt as InteractionKind, r as AiBlankFact, rn as NativeControlHint, rt as AiWritingFacts, s as AiCoachingWord, sn as ReadAloudLearnerResponse, st as ItemGroup, t as ActivityAiPermissions, tn as MultipleChoiceOption, tt as AiWordFact, u as AiCritiqueField, un as RecordingRef, ut as SequenceEntry, v as AiDraftProblem, vn as WrittenResponseLearnerResponse, vt as DraftContext, w as AiDraftsRequest, wn as XAPIContext, wt as ItemFindingSeverity, x as AiDraftType, xn as WrittenResponseRubricLevel, xt as DraftSeverity, y as AiDraftSettings, yn as WrittenResponseRubric, yt as DraftIssue, z as AiGroupInput, zn as GraderUsage, zt as FillInTheBlanksData } from "./ai-
|
|
2
|
-
import { $ as hasGrade, A as diffDictationChars, At as Band, B as outcomeFromRoutedGrade, C as validateItemScoringPolicy, Ct as SpeechSyllable, D as DICTATION_MAX_TEXT_LENGTH, Dt as SpeechWordError, E as DICTATION_MAX_EQUIVALENCE_LENGTH, Et as SpeechWord, F as dictationReferenceWords, Ft as roundGrade, G as CalibrationReport, H as GradeFromJudgementOptions, I as CalibrationThresholds, J as TotalCalibration, K as CalibrationScope, L as GradeRoutingContext, M as DictationReference, Mt as RoundingPolicy, N as DictationWordAlignment, Nt as classifyBand, O as DICTATION_MAX_TRANSCRIPT_LENGTH, Ot as WavInspection, P as alignDictation, Pt as gte, Q as gradeFromRubric, R as GradeRoutingPolicy, S as scoreTries, St as SpeechPlausibilityPolicy, T as DICTATION_MAX_EQUIVALENCES, Tt as SpeechUnscorableCode, U as gradeFromJudgement, V as routeGrade, W as CalibrationPair, X as graderConfiguration, Y as calibrationReport, Z as GradeFromRubricOptions, _ as DEFAULT_PASS_THRESHOLD, _t as ReadAloudWordState, a as evaluateTries, at as ItemTry, b as ITEM_SCORING_MAX_RETRIES, bt as SpeechPhoneme, c as inspectWav, ct as AssessmentScore, d as READ_ALOUD_MAX_SECONDS, dt as PassFailureReason, et as outcomeFromGrade, f as READ_ALOUD_MAX_TAKES, ft as ScoredItem, g as alignReadAloud, gt as ReadAloudWordAlignment, h as validateSpeechAssessment, ht as GradeReadAloudOptions, i as evaluate, it as ItemTriesScore, j as DictationAlignment, jt as RoundingMode, k as DictationCharOp, kt as WavInspectionPolicy, l as READ_ALOUD_MAX_DIMENSION_WEIGHT, lt as AssessmentSectionInput, m as gradeReadAloud, mt as composeAssessmentScore, n as ItemTriesOutcome, nt as ItemScoringPolicy, o as score, ot as ItemTryScore, p as SPEECH_ASSESSMENT_MAX_WORDS, pt as SectionScore, q as CriterionCalibration, r as ScoringOptions, rt as ItemScoringPolicyIssue, s as outcomeFromUnscorable, st as ResolvedItemScoringPolicy, t as EvaluateOptions, tt as ItemScoringCount, u as READ_ALOUD_MAX_REFERENCE_LENGTH, ut as CompositionPolicy, v as computePassThreshold, vt as SpeechAssessment, w as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, wt as SpeechUnscorable, x as resolveItemScoringPolicy, xt as SpeechPhonemeCandidate, y as DEFAULT_ITEM_SCORING_POLICY, yt as SpeechMeasurement, z as inAuditSample } from "./index-
|
|
3
|
-
import { A as RedactedStimulus, C as RedactedGapSelectChoice, D as RedactedMultipleChoiceOption, E as RedactedMultipleChoiceData, O as RedactedMultipleChoiceOptionMedia, S as RedactedGapSelectBank, T as RedactedGapSelectGap, _ as RedactedActivity, a as JsonSchemaTarget, b as RedactedDictationSlowMedia, c as fillInTheBlanksJsonSchema, d as jsonSchemaFor, f as multipleChoiceJsonSchema, g as validateItemGroup, h as writtenResponseJsonSchema, i as SCRIPT_MAX_TURNS, j as RedactedWrittenResponseData, k as RedactedReadAloudData, l as gapSelectJsonSchema, m as stimulusJsonSchema, n as validateMedia, o as contentJsonSchema, p as readAloudJsonSchema, r as validateOptionMedia, s as dictationJsonSchema, t as validateActivity, u as itemGroupJsonSchema, v as RedactedBlankConfig, w as RedactedGapSelectData, x as RedactedFillInTheBlanksData, y as RedactedDictationData } from "./index-
|
|
4
|
-
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-
|
|
5
|
-
//#region src/ai-material.d.ts
|
|
1
|
+
import { $ as AiVerdict, $t as MultipleChoiceData, A as AiGapSelectFacts, An as XAPIStatement, At as ActivityType, B as AiHintRequest, Bn as GradingState, Bt as FillInTheBlanksLearnerResponse, C as AiDraftsCall, Cn as XAPIConfig, Ct as ItemFinding, D as AiFeature, Dn as XAPIObject, Dt as ActivityFeedback, E as AiExplanationRequest, En as XAPIError, Et as ActivityDataMap, F as AiGradingFacts, Fn as GradeRoutingReason, Ft as DictationEquivalence, G as AiProvenance, Gn as matchText, Gt as GapSelectLearnerResponse, H as AiMaterialFacts, Hn as TextMatchPolicy, Ht as GapSelectChoice, I as AiGradingJudgement, In as Grader, It as DictationLearnerResponse, J as AiRefusal, Jt as ItemOutcome, K as AiReadingFacts, Kt as InteractionEvent, L as AiGradingRequest, Ln as GraderConfiguration, Lt as DictationSlowMedia, M as AiGrade, Mn as CriterionScore, Mt as DeferredReason, N as AiGradedCriterion, Nn as GradeRecord, Nt as DeferredScoringPartial, O as AiFillInTheBlanksFacts, On as XAPIResult, Ot as ActivityMedia, P as AiGradingCriterionFact, Pn as GradeRouting, Pt as DictationData, Q as AiTextResult, Qt as MediaTrack, R as AiGradingRequestProblem, Rn as GraderKind, Rt as DictationTolerance, S as AiDrafts, Sn as XAPIActor, St as DraftValidationResult, T as AiDraftsRun, Tn as XAPIContextActivities, Tt as ActivityData, U as AiMultipleChoiceFacts, Un as TextMatchResult, Ut as GapSelectData, V as AiItemFacts, Vn as InlineCorrection, Vt as GapSelectBank, W as AiOptionFact, Wn as levenshteinDistance, Wt as GapSelectGap, X as AiSoundFact, Xt as LearnerResponseMap, Y as AiRubricCriterionFact, Yt as LearnerResponse, Z as AiSupportedActivityType, Zt as MediaPlaybackPolicy, _ as AiDraftCaption, _n as WrittenResponseData, _t as DraftComplete, a as AiCoachingRequest, an as ReadAloudDimension, at as AiWritingFeedbackRequest, b as AiDraftSource, bn as WrittenResponseRubricCriterion, bt as DraftNotComplete, c as AiCriterionJudgement, cn as ReadAloudSlowMedia, ct as MediaProgress, d as AiCritiqueFinding, dn as ScoringDetail, dt as SequenceSlot, en as MultipleChoiceLearnerResponse, et as AiVideoDraft, f as AiCritiqueFindingResult, fn as ScoringOutcome, ft as SequenceSlotGroup, g as AiDictationFacts, gn as ValidationResult, gt as TimelineCue, h as AiCritiqueResult, hn as ValidationError, ht as TimelineChapter, i as AiCoaching, in as ReadAloudData, it as AiWritingFeedback, j as AiGeneratedDraft, jn as XAPIVerbObject, jt as BlankConfig, k as AiGapFact, kn as XAPIScore, kt as ActivityResult, l as AiCritique, ln as RecordingBounds, lt as MediaTimeline, m as AiCritiqueRequest, mn as ScriptTurn, mt as StimulusKind, n as AiActivityInput, nn as MultipleChoiceOptionMedia, nt as AiWritingCorrection, o as AiCoachingResult, on as ReadAloudDimensionWeight, ot as AiWritingFeedbackResult, p as AiCritiqueKind, pn as ScoringResult, pt as Stimulus, q as AiReadingWordFact, qt as InteractionKind, r as AiBlankFact, rn as NativeControlHint, rt as AiWritingFacts, s as AiCoachingWord, sn as ReadAloudLearnerResponse, st as ItemGroup, t as ActivityAiPermissions, tn as MultipleChoiceOption, tt as AiWordFact, u as AiCritiqueField, un as RecordingRef, ut as SequenceEntry, v as AiDraftProblem, vn as WrittenResponseLearnerResponse, vt as DraftContext, w as AiDraftsRequest, wn as XAPIContext, wt as ItemFindingSeverity, x as AiDraftType, xn as WrittenResponseRubricLevel, xt as DraftSeverity, y as AiDraftSettings, yn as WrittenResponseRubric, yt as DraftIssue, z as AiGroupInput, zn as GraderUsage, zt as FillInTheBlanksData } from "./ai-B1wYrqcB.js";
|
|
2
|
+
import { $ as hasGrade, A as diffDictationChars, At as Band, B as outcomeFromRoutedGrade, C as validateItemScoringPolicy, Ct as SpeechSyllable, D as DICTATION_MAX_TEXT_LENGTH, Dt as SpeechWordError, E as DICTATION_MAX_EQUIVALENCE_LENGTH, Et as SpeechWord, F as dictationReferenceWords, Ft as roundGrade, G as CalibrationReport, H as GradeFromJudgementOptions, I as CalibrationThresholds, J as TotalCalibration, K as CalibrationScope, L as GradeRoutingContext, M as DictationReference, Mt as RoundingPolicy, N as DictationWordAlignment, Nt as classifyBand, O as DICTATION_MAX_TRANSCRIPT_LENGTH, Ot as WavInspection, P as alignDictation, Pt as gte, Q as gradeFromRubric, R as GradeRoutingPolicy, S as scoreTries, St as SpeechPlausibilityPolicy, T as DICTATION_MAX_EQUIVALENCES, Tt as SpeechUnscorableCode, U as gradeFromJudgement, V as routeGrade, W as CalibrationPair, X as graderConfiguration, Y as calibrationReport, Z as GradeFromRubricOptions, _ as DEFAULT_PASS_THRESHOLD, _t as ReadAloudWordState, a as evaluateTries, at as ItemTry, b as ITEM_SCORING_MAX_RETRIES, bt as SpeechPhoneme, c as inspectWav, ct as AssessmentScore, d as READ_ALOUD_MAX_SECONDS, dt as PassFailureReason, et as outcomeFromGrade, f as READ_ALOUD_MAX_TAKES, ft as ScoredItem, g as alignReadAloud, gt as ReadAloudWordAlignment, h as validateSpeechAssessment, ht as GradeReadAloudOptions, i as evaluate, it as ItemTriesScore, j as DictationAlignment, jt as RoundingMode, k as DictationCharOp, kt as WavInspectionPolicy, l as READ_ALOUD_MAX_DIMENSION_WEIGHT, lt as AssessmentSectionInput, m as gradeReadAloud, mt as composeAssessmentScore, n as ItemTriesOutcome, nt as ItemScoringPolicy, o as score, ot as ItemTryScore, p as SPEECH_ASSESSMENT_MAX_WORDS, pt as SectionScore, q as CriterionCalibration, r as ScoringOptions, rt as ItemScoringPolicyIssue, s as outcomeFromUnscorable, st as ResolvedItemScoringPolicy, t as EvaluateOptions, tt as ItemScoringCount, u as READ_ALOUD_MAX_REFERENCE_LENGTH, ut as CompositionPolicy, v as computePassThreshold, vt as SpeechAssessment, w as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, wt as SpeechUnscorable, x as resolveItemScoringPolicy, xt as SpeechPhonemeCandidate, y as DEFAULT_ITEM_SCORING_POLICY, yt as SpeechMeasurement, z as inAuditSample } from "./index-BTkMQtws.js";
|
|
3
|
+
import { A as RedactedStimulus, C as RedactedGapSelectChoice, D as RedactedMultipleChoiceOption, E as RedactedMultipleChoiceData, O as RedactedMultipleChoiceOptionMedia, S as RedactedGapSelectBank, T as RedactedGapSelectGap, _ as RedactedActivity, a as JsonSchemaTarget, b as RedactedDictationSlowMedia, c as fillInTheBlanksJsonSchema, d as jsonSchemaFor, f as multipleChoiceJsonSchema, g as validateItemGroup, h as writtenResponseJsonSchema, i as SCRIPT_MAX_TURNS, j as RedactedWrittenResponseData, k as RedactedReadAloudData, l as gapSelectJsonSchema, m as stimulusJsonSchema, n as validateMedia, o as contentJsonSchema, p as readAloudJsonSchema, r as validateOptionMedia, s as dictationJsonSchema, t as validateActivity, u as itemGroupJsonSchema, v as RedactedBlankConfig, w as RedactedGapSelectData, x as RedactedFillInTheBlanksData, y as RedactedDictationData } from "./index-BdXs4-en.js";
|
|
4
|
+
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-BU99GFTl.js";
|
|
6
5
|
/**
|
|
7
6
|
* What a model is told about the group a question sits in: the material the
|
|
8
7
|
* learner reads and sees beside it.
|
|
@@ -16,8 +15,6 @@ import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY,
|
|
|
16
15
|
* 4,000–7,000.
|
|
17
16
|
*/
|
|
18
17
|
export declare const AI_MATERIAL_MAX_LENGTH = 12000;
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/ai.d.ts
|
|
21
18
|
/**
|
|
22
19
|
* The activity types the SDK builds facts for, and which of them take hints.
|
|
23
20
|
* A dictation takes none: its answer is the whole sentence, and it has
|
|
@@ -154,8 +151,6 @@ export declare function checkAiHint(raw: unknown, request: AiHintRequest): {
|
|
|
154
151
|
* Case, accents and punctuation are ignored on both sides.
|
|
155
152
|
*/
|
|
156
153
|
export declare function hintRevealsAnswer(facts: AiItemFacts, hint: string): boolean;
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region src/ai-coaching.d.ts
|
|
159
154
|
/** The most words one coaching may work on. More is refused, not cut. */
|
|
160
155
|
export declare const AI_COACHING_MAX_WORDS = 20;
|
|
161
156
|
/** The longest tip for one word, in code points. */
|
|
@@ -212,8 +207,6 @@ export declare function checkAiCoaching(raw: unknown, request: AiCoachingRequest
|
|
|
212
207
|
ok: false;
|
|
213
208
|
refusal: AiRefusal;
|
|
214
209
|
};
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region src/ai-critique.d.ts
|
|
217
210
|
/** The most findings one critique may carry. More is refused, not cut. */
|
|
218
211
|
export declare const AI_CRITIQUE_MAX_FINDINGS = 20;
|
|
219
212
|
/** The longest message or quote in a finding, in code points. */
|
|
@@ -263,8 +256,6 @@ export declare function checkAiCritique(raw: unknown, request: AiCritiqueRequest
|
|
|
263
256
|
ok: false;
|
|
264
257
|
refusal: AiRefusal;
|
|
265
258
|
};
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region src/ai-drafts.d.ts
|
|
268
259
|
/** The most drafts one request may ask for, and the most a reply may hold when it names no count. */
|
|
269
260
|
export declare const AI_DRAFTS_MAX_COUNT = 50;
|
|
270
261
|
/** The most repair passes `generateDrafts` makes. */
|
|
@@ -400,8 +391,6 @@ export declare function interactiveVideoFromDrafts(input: {
|
|
|
400
391
|
title?: string;
|
|
401
392
|
newId: () => string;
|
|
402
393
|
}): AiVideoDraft;
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region src/ai-grading.d.ts
|
|
405
394
|
/**
|
|
406
395
|
* How far a model's level probabilities may sum from 1 and still be a
|
|
407
396
|
* distribution: rounding in a model's output, not a different judgement.
|
|
@@ -469,8 +458,6 @@ export declare function checkAiGrading(raw: unknown, request: AiGradingRequest):
|
|
|
469
458
|
ok: true;
|
|
470
459
|
judgement: AiGradingJudgement;
|
|
471
460
|
} | Refused;
|
|
472
|
-
//#endregion
|
|
473
|
-
//#region src/ai-written.d.ts
|
|
474
461
|
/**
|
|
475
462
|
* What the AI features about a written response share: reading a model's text
|
|
476
463
|
* fields, and finding each correction's quote in the learner's text.
|
|
@@ -483,8 +470,6 @@ export declare function checkAiGrading(raw: unknown, request: AiGradingRequest):
|
|
|
483
470
|
export declare const AI_WRITING_MAX_CORRECTIONS = 20;
|
|
484
471
|
/** The longest quote, correction, explanation or criterion comment, in code points. */
|
|
485
472
|
export declare const AI_WRITING_MAX_FIELD_LENGTH = 500;
|
|
486
|
-
//#endregion
|
|
487
|
-
//#region src/ai-writing.d.ts
|
|
488
473
|
/**
|
|
489
474
|
* The request for feedback on a draft, or `null` when there is none to give:
|
|
490
475
|
* not a written response, an author who switched explanations off (writing
|
|
@@ -536,8 +521,6 @@ export declare function checkAiWritingFeedback(raw: unknown, request: AiWritingF
|
|
|
536
521
|
ok: false;
|
|
537
522
|
refusal: AiRefusal;
|
|
538
523
|
};
|
|
539
|
-
//#endregion
|
|
540
|
-
//#region src/types/delivery.d.ts
|
|
541
524
|
/**
|
|
542
525
|
* How a paper is delivered: what a learner is shown around the questions, as
|
|
543
526
|
* the school running it decides — separately from the content, so that one
|
|
@@ -611,8 +594,6 @@ interface DeliveryPolicyIssue {
|
|
|
611
594
|
path: string;
|
|
612
595
|
message: string;
|
|
613
596
|
}
|
|
614
|
-
//#endregion
|
|
615
|
-
//#region src/types/attempt-plan.d.ts
|
|
616
597
|
/** One planned position: an item, its identity, its worth, and its fingerprint. */
|
|
617
598
|
interface AttemptPlanSlot {
|
|
618
599
|
/**
|
|
@@ -760,8 +741,6 @@ interface AttemptPlanDrift {
|
|
|
760
741
|
*/
|
|
761
742
|
scoringChanged?: true;
|
|
762
743
|
}
|
|
763
|
-
//#endregion
|
|
764
|
-
//#region src/attempt-plan.d.ts
|
|
765
744
|
/** Options for {@link planAttempt}. */
|
|
766
745
|
export interface PlanAttemptOptions<TItem> {
|
|
767
746
|
/** Shuffle the top-level entries. A group moves as one block. */
|
|
@@ -898,8 +877,6 @@ export declare function scoredItemsFromPlan(plan: AttemptPlan, outcomes: Readonl
|
|
|
898
877
|
}): ScoredItem[];
|
|
899
878
|
/** Convenience alias: the entry type a plan is built from. */
|
|
900
879
|
export type PlannableEntry = SequenceEntry<ActivityData>;
|
|
901
|
-
//#endregion
|
|
902
|
-
//#region src/types/attempt-state.d.ts
|
|
903
880
|
/**
|
|
904
881
|
* A resumable snapshot of an attempt in progress.
|
|
905
882
|
*
|
|
@@ -942,8 +919,6 @@ interface ResponseDiffEntry {
|
|
|
942
919
|
before?: LearnerResponse;
|
|
943
920
|
after?: LearnerResponse;
|
|
944
921
|
}
|
|
945
|
-
//#endregion
|
|
946
|
-
//#region src/attempt-state.d.ts
|
|
947
922
|
/** What {@link serializeAttemptState} is given about an attempt in progress. */
|
|
948
923
|
export interface AttemptProgress {
|
|
949
924
|
/** Answers so far, keyed by `slotId`. */
|
|
@@ -996,8 +971,6 @@ export declare function restoreAttemptState(plan: AttemptPlan, state: AttemptSta
|
|
|
996
971
|
* the order the two objects happened to be written in.
|
|
997
972
|
*/
|
|
998
973
|
export declare function diffResponses(before: Pick<AttemptState, 'responses'>, after: Pick<AttemptState, 'responses'>): ResponseDiffEntry[];
|
|
999
|
-
//#endregion
|
|
1000
|
-
//#region src/authoring/item-group.d.ts
|
|
1001
974
|
/**
|
|
1002
975
|
* A new, empty reading or listening testlet for an editor to start from.
|
|
1003
976
|
*
|
|
@@ -1067,8 +1040,6 @@ export declare function critiqueItemGroupDraft(draft: unknown): ItemFinding[];
|
|
|
1067
1040
|
*/
|
|
1068
1041
|
export declare function critiqueDrafts(entries: readonly unknown[]): ItemFinding[];
|
|
1069
1042
|
export declare function validateItemGroupDraft(draft: unknown): DraftValidationResult<ItemGroup>;
|
|
1070
|
-
//#endregion
|
|
1071
|
-
//#region src/authoring/index.d.ts
|
|
1072
1043
|
/**
|
|
1073
1044
|
* Tells a draft that is not finished from a draft that is wrong.
|
|
1074
1045
|
*
|
|
@@ -1148,8 +1119,6 @@ export declare function createDraft<T extends ActivityType>(type: T, context: Dr
|
|
|
1148
1119
|
* including `'item-group'`: use {@link critiqueItemGroupDraft}.
|
|
1149
1120
|
*/
|
|
1150
1121
|
export declare function critiqueDraft(type: ActivityType, draft: unknown): ItemFinding[];
|
|
1151
|
-
//#endregion
|
|
1152
|
-
//#region src/built-in-types.d.ts
|
|
1153
1122
|
/**
|
|
1154
1123
|
* The activity types the SDK ships, in one closed list.
|
|
1155
1124
|
*
|
|
@@ -1168,8 +1137,6 @@ export declare const BUILT_IN_ACTIVITY_TYPES: readonly ["multiple-choice", "fill
|
|
|
1168
1137
|
type BuiltInActivityType = (typeof BUILT_IN_ACTIVITY_TYPES)[number];
|
|
1169
1138
|
/** Whether `type` names an activity type the SDK ships. */
|
|
1170
1139
|
export declare function isBuiltInActivityType(type: unknown): type is BuiltInActivityType;
|
|
1171
|
-
//#endregion
|
|
1172
|
-
//#region src/content-hash.d.ts
|
|
1173
1140
|
/**
|
|
1174
1141
|
* Content fingerprinting — "is this the same content the learner was served?"
|
|
1175
1142
|
*
|
|
@@ -1207,8 +1174,6 @@ export declare function fingerprint(input: string): string;
|
|
|
1207
1174
|
* the result depends on the content and not on how it was written.
|
|
1208
1175
|
*/
|
|
1209
1176
|
export declare function contentHash(value: unknown): string;
|
|
1210
|
-
//#endregion
|
|
1211
|
-
//#region src/count-words.d.ts
|
|
1212
1177
|
/**
|
|
1213
1178
|
* Canonical word counter for written-response bounds: tokens are
|
|
1214
1179
|
* maximal runs of non-whitespace (split on `\s+`), so hyphenated forms
|
|
@@ -1217,8 +1182,6 @@ export declare function contentHash(value: unknown): string;
|
|
|
1217
1182
|
* client previews, SDK scoring, and stored `wordCount` values always agree.
|
|
1218
1183
|
*/
|
|
1219
1184
|
export declare function countWords(text: string): number;
|
|
1220
|
-
//#endregion
|
|
1221
|
-
//#region src/delivery.d.ts
|
|
1222
1185
|
/**
|
|
1223
1186
|
* The policy that restricts nothing: every setting `true`. It is what an absent
|
|
1224
1187
|
* policy resolves to, and it is exactly the behaviour the SDK had before
|
|
@@ -1257,8 +1220,6 @@ export declare function validateDeliveryPolicy(policy: unknown): {
|
|
|
1257
1220
|
success: false;
|
|
1258
1221
|
issues: DeliveryPolicyIssue[];
|
|
1259
1222
|
};
|
|
1260
|
-
//#endregion
|
|
1261
|
-
//#region src/errors.d.ts
|
|
1262
1223
|
/** Thrown when activity data fails schema validation at a component boundary. */
|
|
1263
1224
|
export declare class ActivitySchemaError extends Error {
|
|
1264
1225
|
readonly activityType: string;
|
|
@@ -1295,8 +1256,6 @@ export declare class DeferredScoringError extends Error {
|
|
|
1295
1256
|
readonly activityType: string;
|
|
1296
1257
|
constructor(activityType: string);
|
|
1297
1258
|
}
|
|
1298
|
-
//#endregion
|
|
1299
|
-
//#region src/item-group.d.ts
|
|
1300
1259
|
/** Narrows a sequence entry to an item group. */
|
|
1301
1260
|
export declare function isItemGroup<TItem extends {
|
|
1302
1261
|
type: string;
|
|
@@ -1336,8 +1295,6 @@ export declare function flattenSequence<TItem extends {
|
|
|
1336
1295
|
id: string;
|
|
1337
1296
|
type: string;
|
|
1338
1297
|
}>(entries: readonly SequenceEntry<TItem>[], options?: FlattenSequenceOptions): SequenceSlot<TItem>[];
|
|
1339
|
-
//#endregion
|
|
1340
|
-
//#region src/types/media-budget.d.ts
|
|
1341
1298
|
/**
|
|
1342
1299
|
* What one budgeted recording has cost the learner so far.
|
|
1343
1300
|
*/
|
|
@@ -1413,8 +1370,6 @@ interface MediaPlayGrant {
|
|
|
1413
1370
|
*/
|
|
1414
1371
|
playsUsed: number;
|
|
1415
1372
|
}
|
|
1416
|
-
//#endregion
|
|
1417
|
-
//#region src/media-budget.d.ts
|
|
1418
1373
|
/**
|
|
1419
1374
|
* The authored-entry prefix of a slot id: `"3"` for both `"3"` and `"3.1"`.
|
|
1420
1375
|
*
|
|
@@ -1487,8 +1442,6 @@ export declare function serializeMediaPlayLedger(plan: AttemptPlan, entries: Rea
|
|
|
1487
1442
|
* anything `serializeMediaPlayLedger` refuses.
|
|
1488
1443
|
*/
|
|
1489
1444
|
export declare function restoreMediaPlayLedger(plan: AttemptPlan, stored: MediaPlayLedger): MediaPlayLedger;
|
|
1490
|
-
//#endregion
|
|
1491
|
-
//#region src/media-refs.d.ts
|
|
1492
1445
|
/**
|
|
1493
1446
|
* What a media reference points at. The first four are a holder's main file,
|
|
1494
1447
|
* named by its `type`; the rest are the files beside it.
|
|
@@ -1576,8 +1529,6 @@ export declare function mapMediaRefs<T>(entry: T, fn: (ref: MediaRef) => string
|
|
|
1576
1529
|
* ```
|
|
1577
1530
|
*/
|
|
1578
1531
|
export declare function transcriptOf(holder: unknown): string | null;
|
|
1579
|
-
//#endregion
|
|
1580
|
-
//#region src/standard-schema.d.ts
|
|
1581
1532
|
/**
|
|
1582
1533
|
* Standard Schema v1 (https://standardschema.dev): the interface zod, valibot,
|
|
1583
1534
|
* ArkType and other validators implement, so a library can accept a schema from
|
|
@@ -1651,8 +1602,6 @@ declare namespace StandardSchemaV1 {
|
|
|
1651
1602
|
/** Infers the output type of a Standard Schema. */
|
|
1652
1603
|
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
|
|
1653
1604
|
}
|
|
1654
|
-
//#endregion
|
|
1655
|
-
//#region src/registry/define.d.ts
|
|
1656
1605
|
/**
|
|
1657
1606
|
* Identity helper that gives full type inference when authoring a descriptor:
|
|
1658
1607
|
*
|
|
@@ -1667,8 +1616,6 @@ declare namespace StandardSchemaV1 {
|
|
|
1667
1616
|
export declare function defineActivityType<TData extends {
|
|
1668
1617
|
type: string;
|
|
1669
1618
|
}, TResponse>(descriptor: ActivityTypeDescriptor<TData, TResponse>): ActivityTypeDescriptor<TData, TResponse>;
|
|
1670
|
-
//#endregion
|
|
1671
|
-
//#region src/registry/registry.d.ts
|
|
1672
1619
|
/** ScoringResult without `passed` — the public `score()` / `evaluate()` fill that in. */
|
|
1673
1620
|
type PartialScoringResult = Omit<ScoringResult, 'passed'>;
|
|
1674
1621
|
/**
|
|
@@ -1887,8 +1834,6 @@ export declare function registerActivityType<TData extends {
|
|
|
1887
1834
|
export declare function getActivityTypeDescriptor(type: string): RegisteredActivityTypeDescriptor | undefined;
|
|
1888
1835
|
/** The type strings currently registered (built-ins plus consumer-registered). */
|
|
1889
1836
|
export declare function registeredActivityTypes(): string[];
|
|
1890
|
-
//#endregion
|
|
1891
|
-
//#region src/redact.d.ts
|
|
1892
1837
|
/**
|
|
1893
1838
|
* A learner-safe projection of activity data produced by {@link redact}:
|
|
1894
1839
|
* the activity's public fields plus the `redacted: true` marker. Renderable
|
|
@@ -2013,8 +1958,6 @@ export declare function assertRedactedItemGroup(data: unknown): asserts data is
|
|
|
2013
1958
|
* and Error when it declares no `fieldPolicy`.
|
|
2014
1959
|
*/
|
|
2015
1960
|
export declare function withoutAuthorOnly<T>(entry: T): T;
|
|
2016
|
-
//#endregion
|
|
2017
|
-
//#region src/registry/builtins.d.ts
|
|
2018
1961
|
/** Built-in Multiple Choice descriptor. */
|
|
2019
1962
|
export declare const multipleChoiceType: ActivityTypeDescriptor<MultipleChoiceData, MultipleChoiceLearnerResponse>;
|
|
2020
1963
|
/** Built-in Fill-in-the-Blanks descriptor. */
|
|
@@ -2042,8 +1985,6 @@ export declare const dictationType: ActivityTypeDescriptor<DictationData, Dictat
|
|
|
2042
1985
|
* speech assessment.
|
|
2043
1986
|
*/
|
|
2044
1987
|
export declare const readAloudType: ActivityTypeDescriptor<ReadAloudData, ReadAloudLearnerResponse>;
|
|
2045
|
-
//#endregion
|
|
2046
|
-
//#region src/shuffle.d.ts
|
|
2047
1988
|
/**
|
|
2048
1989
|
* Seeded, deterministic shuffling — the ONE algorithm every presentation-order
|
|
2049
1990
|
* decision in the SDK goes through: option order in a multiple-choice item,
|
|
@@ -2119,8 +2060,6 @@ export declare function seededShuffle<T>(items: readonly T[], seed: string, opti
|
|
|
2119
2060
|
* `2` the default, which would re-order what this call returns.
|
|
2120
2061
|
*/
|
|
2121
2062
|
export declare function seededShuffle<T>(items: readonly T[], seed: string, options?: SeededShuffleOptions): T[];
|
|
2122
|
-
//#endregion
|
|
2123
|
-
//#region src/timeline.d.ts
|
|
2124
2063
|
/**
|
|
2125
2064
|
* Reads a stored {@link MediaProgress}. Never throws: anything that is not one
|
|
2126
2065
|
* — a string, a stale shape, an object whose getters throw — answers `null`,
|
|
@@ -2148,8 +2087,6 @@ export declare function readMediaProgress(value: unknown, duration?: number): Me
|
|
|
2148
2087
|
* never read as a grade.
|
|
2149
2088
|
*/
|
|
2150
2089
|
export declare function composeTimelineScore(entryKey: string, items: readonly ScoredItem[], policy: CompositionPolicy): AssessmentScore;
|
|
2151
|
-
//#endregion
|
|
2152
|
-
//#region src/timeline-limits.d.ts
|
|
2153
2090
|
/**
|
|
2154
2091
|
* The bounds of an interactive video — an item group with a `timeline`.
|
|
2155
2092
|
*
|
|
@@ -2180,8 +2117,6 @@ export declare const TIMELINE_MAX_ITEMS = 200;
|
|
|
2180
2117
|
export declare const TIMELINE_MAX_CHAPTERS = 100;
|
|
2181
2118
|
/** The longest quiz or chapter title, in UTF-16 units. A title sits on one line of the player. */
|
|
2182
2119
|
export declare const TIMELINE_MAX_TITLE_LENGTH = 120;
|
|
2183
|
-
//#endregion
|
|
2184
|
-
//#region src/types/theme.d.ts
|
|
2185
2120
|
/**
|
|
2186
2121
|
* All CSS custom property tokens consumed by learning-kit components.
|
|
2187
2122
|
* Every key maps to a `--lk-*` CSS variable name; every value is a CSS value string.
|
|
@@ -2237,6 +2172,5 @@ interface ThemeTokens {
|
|
|
2237
2172
|
'--lk-transition-fast': string;
|
|
2238
2173
|
'--lk-transition-base': string;
|
|
2239
2174
|
}
|
|
2240
|
-
//#endregion
|
|
2241
2175
|
export { type ActivityAiPermissions, type ActivityData, type ActivityDataMap, type ActivityFeedback, type ActivityMedia, type ActivityResult, type ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, type AiActivityInput, type AiBlankFact, type AiCoaching, type AiCoachingRequest, type AiCoachingResult, type AiCoachingWord, type AiCriterionJudgement, type AiCritique, type AiCritiqueField, type AiCritiqueFinding, type AiCritiqueFindingResult, type AiCritiqueKind, type AiCritiqueRequest, type AiCritiqueResult, type AiDictationFacts, type AiDraftCaption, type AiDraftProblem, type AiDraftSettings, type AiDraftSource, type AiDraftType, type AiDrafts, type AiDraftsCall, type AiDraftsRequest, type AiDraftsRun, type AiExplanationRequest, type AiFeature, type AiFillInTheBlanksFacts, type AiGapFact, type AiGapSelectFacts, type AiGeneratedDraft, type AiGrade, type AiGradedCriterion, type AiGradingCriterionFact, type AiGradingFacts, type AiGradingJudgement, type AiGradingRequest, type AiGradingRequestProblem, type AiGroupInput, type AiHintRequest, type AiItemFacts, type AiMaterialFacts, type AiMultipleChoiceFacts, type AiOptionFact, type AiProvenance, type AiReadingFacts, type AiReadingWordFact, type AiRefusal, type AiRubricCriterionFact, type AiSoundFact, type AiSupportedActivityType, type AiTextResult, type AiVerdict, type AiVideoDraft, type AiWordFact, type AiWritingCorrection, type AiWritingFacts, type AiWritingFeedback, type AiWritingFeedbackRequest, type AiWritingFeedbackResult, type AnsweredStatementParams, type AssessmentScore, type AssessmentSectionInput, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptState, type Band, type BlankConfig, type BuiltInActivityType, type CalibrationPair, type CalibrationReport, type CalibrationScope, type CalibrationThresholds, type CompletedStatementParams, type CompositionPolicy, type CriterionCalibration, type CriterionScore, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, type DeferredReason, type DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, type DictationAlignment, type DictationCharOp, type DictationData, type DictationEquivalence, type DictationLearnerResponse, type DictationReference, type DictationSlowMedia, type DictationTolerance, type DictationWordAlignment, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, EvaluateOptions, type FieldPolicy, type FillInTheBlanksData, type FillInTheBlanksLearnerResponse, type GapSelectBank, type GapSelectChoice, type GapSelectData, type GapSelectGap, type GapSelectLearnerResponse, type GradeFromJudgementOptions, GradeFromRubricOptions, type GradeReadAloudOptions, type GradeRecord, type GradeRouting, type GradeRoutingContext, type GradeRoutingPolicy, type GradeRoutingReason, type Grader, type GraderConfiguration, type GraderKind, type GraderUsage, type GradingState, ITEM_SCORING_MAX_RETRIES, type InlineCorrection, type InteractionEvent, type InteractionKind, type ItemFinding, type ItemFindingSeverity, type ItemGroup, type ItemOutcome, type ItemScoringCount, type ItemScoringPolicy, type ItemScoringPolicyIssue, ItemTriesOutcome, type ItemTriesScore, type ItemTry, type ItemTryScore, type JsonSchemaTarget, type LearnerResponse, type LearnerResponseMap, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaSlot, type MediaTimeline, type MediaTrack, type MultipleChoiceData, type MultipleChoiceLearnerResponse, type MultipleChoiceOption, type MultipleChoiceOptionMedia, type NativeControlHint, type PartialScoringResult, type PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, type ReadAloudData, type ReadAloudDimension, type ReadAloudDimensionWeight, type ReadAloudLearnerResponse, type ReadAloudSlowMedia, type ReadAloudWordAlignment, type ReadAloudWordState, type RecordingBounds, type RecordingRef, type RedactedActivity, type RedactedBlankConfig, type RedactedDictationData, type RedactedDictationSlowMedia, type RedactedFillInTheBlanksData, type RedactedGapSelectBank, type RedactedGapSelectChoice, type RedactedGapSelectData, type RedactedGapSelectGap, type RedactedMultipleChoiceData, type RedactedMultipleChoiceOption, type RedactedMultipleChoiceOptionMedia, type RedactedReadAloudData, type RedactedStimulus, type RedactedWrittenResponseData, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, type ResolvedItemScoringPolicy, type ResponseDiffEntry, type RoundingMode, type RoundingPolicy, SCRIPT_MAX_TURNS, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type ScriptTurn, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeechAssessment, type SpeechMeasurement, type SpeechPhoneme, type SpeechPhonemeCandidate, type SpeechPlausibilityPolicy, type SpeechSyllable, type SpeechUnscorable, type SpeechUnscorableCode, type SpeechWord, type SpeechWordError, type StandardSchemaV1, type Stimulus, type StimulusKind, type SubmittedStatementParams, type TextMatchPolicy, type TextMatchResult, type ThemeTokens, type TimelineChapter, type TimelineCue, type TotalCalibration, type ValidationError, type ValidationResult, type WavInspection, type WavInspectionPolicy, type WrittenResponseData, type WrittenResponseLearnerResponse, type WrittenResponseRubric, type WrittenResponseRubricCriterion, type WrittenResponseRubricLevel, type XAPIActor, type XAPIConfig, type XAPIContext, type XAPIContextActivities, type XAPIError, type XAPIInteractionType, type XAPIObject, type XAPIObjectParams, type XAPIResult, type XAPIScore, type XAPIStatement, type XAPIStatementParams, XAPIVerb, type XAPIVerbKey, type XAPIVerbObject, XAPI_VERB_DISPLAY, alignDictation, alignReadAloud, calibrationReport, classifyBand, composeAssessmentScore, computePassThreshold, contentJsonSchema, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeFromJudgement, gradeFromRubric, gradeReadAloud, graderConfiguration, gte, hasGrade, inAuditSample, inspectWav, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, matchText, multipleChoiceJsonSchema, outcomeFromGrade, outcomeFromRoutedGrade, outcomeFromUnscorable, readAloudJsonSchema, resolveItemScoringPolicy, roundGrade, routeGrade, score, scoreTries, stimulusJsonSchema, validateActivity, validateItemGroup, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, writtenResponseJsonSchema, xAPIBuilder, xapiDefinitionFor };
|
|
2242
2176
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-grading.ts","../src/ai-written.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/item-group.ts","../src/types/media-budget.ts","../src/media-budget.ts","../src/media-refs.ts","../src/standard-schema.ts","../src/registry/define.ts","../src/registry/registry.ts","../src/redact.ts","../src/registry/builtins.ts","../src/shuffle.ts","../src/timeline.ts","../src/timeline-limits.ts","../src/types/theme.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-grading.ts","../src/ai-written.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/item-group.ts","../src/types/media-budget.ts","../src/media-budget.ts","../src/media-refs.ts","../src/standard-schema.ts","../src/registry/define.ts","../src/registry/registry.ts","../src/redact.ts","../src/registry/builtins.ts","../src/shuffle.ts","../src/timeline.ts","../src/timeline-limits.ts","../src/types/theme.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa;;;;;;qBCoBA,+BAA+B;qBAM/B,wBAAwB;;qBAOxB;;;;;;wBASG,WAAW,sBAAsB,SAAS;;;;;;;;;wBAmB1C,mBAAmB,MAAM,iBAAiB,SAAS;;wBAUnD,UAAU;EAAU;EAAe;EAAkB;IAAoB;;;;;;;;;;wBAoFzE,aACd,MAAM,iBACN,UAAU,wBACV,kBAAkB,yBACjB;;;;;;;;;;;;;;;;;wBAyKa,qBAAqB;EACnC,MAAM;EACN,UAAU;EACV,UAAU;EACV,QAAQ;EACR;IACE;;;;;;;;;;;;;;wBAoDY,cAAc;EAC5B,MAAM;EACN,UAAU;EACV;EACA,QAAQ;EACR;IACE;;;;;;wBAmCY,iBACd;EACG;EAAU,QAAQ;;EAAmB;EAAW,SAAS;;;;;;;;wBAqC9C,mBACd,cACA,SAAS;EACN;EAAU,QAAQ;;EAAmB;EAAW,SAAS;;;;;;;wBAgB9C,YACd,cACA,SAAS;EACN;EAAU,QAAQ;;EAAmB;EAAW,SAAS;;;;;;;;;;;;;;;;;wBA4B9C,kBAAkB,OAAO,aAAa;;qBCngBzC;;qBAGA;;;;;;;;;;;;;;;;;wBA4JG,kBAAkB;EAChC,MAAM;EACN,aAAa;EACb,QAAQ;EACR;IACE;;;;;;;;;;;;;;;;;;;;;;;;wBAmFY,gBACd,cACA,SAAS;EACN;E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EACA;;;;;;;EAOA;;;;;;;;;;EAUA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EAGA;EACA"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as AI_COACHING_MAX_TIP_LENGTH, B as aiHintRequest, C as createItemGroupDraft, D as listMediaRefs, E as validateItemGroupDraft, F as AI_HINT_TYPES, G as hintRevealsAnswer, H as buildAiFacts, I as AI_TEXT_MAX_LENGTH, K as readAiTextResult, L as aiAllowedByContent, M as aiCoachingRequest, N as checkAiCoaching, O as mapMediaRefs, P as AI_EXPLANATION_TYPES, R as aiExplanationRequest, S as createInteractiveVideoDraft, T as critiqueItemGroupDraft, U as checkAiExplanation, V as aiSupports, W as checkAiHint, _ as aiCritiqueRequest, a as checkAiGrading, b as critiqueDraft, c as AI_DRAFTS_MAX_COUNT, d as aiDraftsRequest, f as checkAiDrafts, g as AI_CRITIQUE_MAX_FINDINGS, h as AI_CRITIQUE_MAX_FIELD_LENGTH, i as aiGradingRequest, j as AI_COACHING_MAX_WORDS, k as transcriptOf, l as AI_DRAFTS_MAX_REPAIRS, m as interactiveVideoFromDrafts, n as checkAiWritingFeedback, o as AI_WRITING_MAX_CORRECTIONS, p as generateDrafts, q as AI_MATERIAL_MAX_LENGTH, r as AI_GRADING_PROBABILITY_TOLERANCE, s as AI_WRITING_MAX_FIELD_LENGTH, t as aiWritingFeedbackRequest, u as aiDraftsRepairRequest, v as checkAiCritique, w as critiqueDrafts, x as validateDraft, y as createDraft, z as aiGradeOf } from "./ai-writing-
|
|
2
|
-
import { $ as DeferredScoringError, C as READ_ALOUD_MAX_TAKES, L as countWords, M as matchText, Q as ActivitySchemaError, S as READ_ALOUD_MAX_SECONDS, T as SPEECH_ASSESSMENT_MAX_WORDS, Tt as SCRIPT_MAX_TURNS, a as readSchema, at as dictationReferenceWords, b as READ_ALOUD_MAX_DIMENSION_WEIGHT, c as dictationType, ct as DICTATION_MAX_EQUIVALENCE_LENGTH, d as multipleChoiceType, et as RedactedScoringError, f as readAloudType, gt as isBuiltInActivityType, h as defineActivityType, j as levenshteinDistance, l as fillInTheBlanksType, lt as DICTATION_MAX_TEXT_LENGTH, m as guardOf, mt as BUILT_IN_ACTIVITY_TYPES, n as registerActivityType, ot as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, p as writtenResponseType, r as registeredActivityTypes, rt as alignDictation, s as MEDIA_FIELD_POLICY, st as DICTATION_MAX_EQUIVALENCES, t as getActivityTypeDescriptor, tt as UnknownActivityTypeError, u as gapSelectType, ut as DICTATION_MAX_TRANSCRIPT_LENGTH, x as READ_ALOUD_MAX_REFERENCE_LENGTH } from "./registry-
|
|
3
|
-
import { A as DEFAULT_ITEM_SCORING_POLICY, C as contentHash, D as classifyBand, E as computePassThreshold, M as resolveItemScoringPolicy, N as scoreTries, O as gte, P as validateItemScoringPolicy, S as canonicalJson, T as DEFAULT_PASS_THRESHOLD, _ as gradeFromRubric, a as inspectWav, b as calibrationReport, c as validateSpeechAssessment, d as inAuditSample, f as outcomeFromRoutedGrade, g as gradeFromJudgement, h as seededShuffle, i as outcomeFromUnscorable, j as ITEM_SCORING_MAX_RETRIES, k as roundGrade, l as diffDictationChars, m as hashSeed, n as evaluateTries, o as gradeReadAloud, p as routeGrade, r as score, s as alignReadAloud, t as evaluate, u as composeAssessmentScore, v as hasGrade, w as fingerprint, x as graderConfiguration, y as outcomeFromGrade } from "./scoring-
|
|
4
|
-
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, c as TIMELINE_MAX_QUIZZES, i as validateItemGroup, l as TIMELINE_MAX_TITLE_LENGTH, n as RedactedItemGroupSchema, o as TIMELINE_MAX_CHAPTERS, s as TIMELINE_MAX_ITEMS, u as isInteractiveVideoItemType } from "./item-group-
|
|
5
|
-
import { a as dictationJsonSchema, c as itemGroupJsonSchema, d as readAloudJsonSchema, f as stimulusJsonSchema, i as contentJsonSchema, l as jsonSchemaFor, n as validateMedia, o as fillInTheBlanksJsonSchema, p as writtenResponseJsonSchema, r as validateOptionMedia, s as gapSelectJsonSchema, t as validateActivity, u as multipleChoiceJsonSchema } from "./schemas-
|
|
6
|
-
import { a as validateXAPIStatement, i as XAPI_VERB_DISPLAY, n as xapiDefinitionFor, r as XAPIVerb, t as xAPIBuilder } from "./xapi-
|
|
7
|
-
|
|
1
|
+
import { A as AI_COACHING_MAX_TIP_LENGTH, B as aiHintRequest, C as createItemGroupDraft, D as listMediaRefs, E as validateItemGroupDraft, F as AI_HINT_TYPES, G as hintRevealsAnswer, H as buildAiFacts, I as AI_TEXT_MAX_LENGTH, K as readAiTextResult, L as aiAllowedByContent, M as aiCoachingRequest, N as checkAiCoaching, O as mapMediaRefs, P as AI_EXPLANATION_TYPES, R as aiExplanationRequest, S as createInteractiveVideoDraft, T as critiqueItemGroupDraft, U as checkAiExplanation, V as aiSupports, W as checkAiHint, _ as aiCritiqueRequest, a as checkAiGrading, b as critiqueDraft, c as AI_DRAFTS_MAX_COUNT, d as aiDraftsRequest, f as checkAiDrafts, g as AI_CRITIQUE_MAX_FINDINGS, h as AI_CRITIQUE_MAX_FIELD_LENGTH, i as aiGradingRequest, j as AI_COACHING_MAX_WORDS, k as transcriptOf, l as AI_DRAFTS_MAX_REPAIRS, m as interactiveVideoFromDrafts, n as checkAiWritingFeedback, o as AI_WRITING_MAX_CORRECTIONS, p as generateDrafts, q as AI_MATERIAL_MAX_LENGTH, r as AI_GRADING_PROBABILITY_TOLERANCE, s as AI_WRITING_MAX_FIELD_LENGTH, t as aiWritingFeedbackRequest, u as aiDraftsRepairRequest, v as checkAiCritique, w as critiqueDrafts, x as validateDraft, y as createDraft, z as aiGradeOf } from "./ai-writing-B7oMCt66.js";
|
|
2
|
+
import { $ as DeferredScoringError, C as READ_ALOUD_MAX_TAKES, L as countWords, M as matchText, Q as ActivitySchemaError, S as READ_ALOUD_MAX_SECONDS, T as SPEECH_ASSESSMENT_MAX_WORDS, Tt as SCRIPT_MAX_TURNS, a as readSchema, at as dictationReferenceWords, b as READ_ALOUD_MAX_DIMENSION_WEIGHT, c as dictationType, ct as DICTATION_MAX_EQUIVALENCE_LENGTH, d as multipleChoiceType, et as RedactedScoringError, f as readAloudType, gt as isBuiltInActivityType, h as defineActivityType, j as levenshteinDistance, l as fillInTheBlanksType, lt as DICTATION_MAX_TEXT_LENGTH, m as guardOf, mt as BUILT_IN_ACTIVITY_TYPES, n as registerActivityType, ot as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, p as writtenResponseType, r as registeredActivityTypes, rt as alignDictation, s as MEDIA_FIELD_POLICY, st as DICTATION_MAX_EQUIVALENCES, t as getActivityTypeDescriptor, tt as UnknownActivityTypeError, u as gapSelectType, ut as DICTATION_MAX_TRANSCRIPT_LENGTH, x as READ_ALOUD_MAX_REFERENCE_LENGTH } from "./registry-D92hz9iA.js";
|
|
3
|
+
import { A as DEFAULT_ITEM_SCORING_POLICY, C as contentHash, D as classifyBand, E as computePassThreshold, M as resolveItemScoringPolicy, N as scoreTries, O as gte, P as validateItemScoringPolicy, S as canonicalJson, T as DEFAULT_PASS_THRESHOLD, _ as gradeFromRubric, a as inspectWav, b as calibrationReport, c as validateSpeechAssessment, d as inAuditSample, f as outcomeFromRoutedGrade, g as gradeFromJudgement, h as seededShuffle, i as outcomeFromUnscorable, j as ITEM_SCORING_MAX_RETRIES, k as roundGrade, l as diffDictationChars, m as hashSeed, n as evaluateTries, o as gradeReadAloud, p as routeGrade, r as score, s as alignReadAloud, t as evaluate, u as composeAssessmentScore, v as hasGrade, w as fingerprint, x as graderConfiguration, y as outcomeFromGrade } from "./scoring-DD1GHcLI.js";
|
|
4
|
+
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, c as TIMELINE_MAX_QUIZZES, i as validateItemGroup, l as TIMELINE_MAX_TITLE_LENGTH, n as RedactedItemGroupSchema, o as TIMELINE_MAX_CHAPTERS, s as TIMELINE_MAX_ITEMS, u as isInteractiveVideoItemType } from "./item-group-CeDk7mfM.js";
|
|
5
|
+
import { a as dictationJsonSchema, c as itemGroupJsonSchema, d as readAloudJsonSchema, f as stimulusJsonSchema, i as contentJsonSchema, l as jsonSchemaFor, n as validateMedia, o as fillInTheBlanksJsonSchema, p as writtenResponseJsonSchema, r as validateOptionMedia, s as gapSelectJsonSchema, t as validateActivity, u as multipleChoiceJsonSchema } from "./schemas-C7TViWCg.js";
|
|
6
|
+
import { a as validateXAPIStatement, i as XAPI_VERB_DISPLAY, n as xapiDefinitionFor, r as XAPIVerb, t as xAPIBuilder } from "./xapi-Cgicg-zU.js";
|
|
7
|
+
// src/delivery.ts
|
|
8
8
|
/**
|
|
9
9
|
* The policy that restricts nothing: every setting `true`. It is what an absent
|
|
10
10
|
* policy resolves to, and it is exactly the behaviour the SDK had before
|
|
@@ -158,8 +158,7 @@ function validateDeliveryPolicy(policy) {
|
|
|
158
158
|
data: given
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
//#region src/item-group.ts
|
|
161
|
+
// src/item-group.ts
|
|
163
162
|
/** Narrows a sequence entry to an item group. */
|
|
164
163
|
function isItemGroup(entry) {
|
|
165
164
|
return entry.type === "item-group";
|
|
@@ -283,8 +282,7 @@ function flattenSequence(entries, options = {}) {
|
|
|
283
282
|
}
|
|
284
283
|
return slots;
|
|
285
284
|
}
|
|
286
|
-
|
|
287
|
-
//#region src/media-budget.ts
|
|
285
|
+
// src/media-budget.ts
|
|
288
286
|
/**
|
|
289
287
|
* The authored-entry prefix of a slot id: `"3"` for both `"3"` and `"3.1"`.
|
|
290
288
|
*
|
|
@@ -398,8 +396,7 @@ function restoreMediaPlayLedger(plan, stored) {
|
|
|
398
396
|
if (stored.planHash !== plan.planHash) throw new Error(`restoreMediaPlayLedger: this ledger belongs to a different paper (ledger ${stored.planHash}, plan ${plan.planHash}). Restoring it would hold the learner to a play budget from an exam they never sat.`);
|
|
399
397
|
return serializeMediaPlayLedger(plan, stored.entries, { ...stored.savedAt !== void 0 ? { savedAt: stored.savedAt } : {} });
|
|
400
398
|
}
|
|
401
|
-
|
|
402
|
-
//#region src/attempt-plan.ts
|
|
399
|
+
// src/attempt-plan.ts
|
|
403
400
|
/**
|
|
404
401
|
* The activity as CONTENT, with its slot key removed.
|
|
405
402
|
*
|
|
@@ -650,8 +647,7 @@ function scoredItemsFromPlan(plan, outcomes, options = {}) {
|
|
|
650
647
|
outcome: Object.hasOwn(outcomes, slot.slotId) ? outcomes[slot.slotId] : missingOutcome(slot, policy)
|
|
651
648
|
}));
|
|
652
649
|
}
|
|
653
|
-
|
|
654
|
-
//#region src/attempt-state.ts
|
|
650
|
+
// src/attempt-state.ts
|
|
655
651
|
/**
|
|
656
652
|
* A DEEP copy of the responses.
|
|
657
653
|
*
|
|
@@ -775,8 +771,7 @@ function diffResponses(before, after) {
|
|
|
775
771
|
}
|
|
776
772
|
return entries;
|
|
777
773
|
}
|
|
778
|
-
|
|
779
|
-
//#region src/redact.ts
|
|
774
|
+
// src/redact.ts
|
|
780
775
|
/** Merges per-call overrides over a registered policy, one level deep. */
|
|
781
776
|
function mergePolicy(base, overrides) {
|
|
782
777
|
if (overrides === void 0) return base;
|
|
@@ -1043,8 +1038,7 @@ function withoutAuthorOnly(entry) {
|
|
|
1043
1038
|
...Array.isArray(items) ? { items: items.map((item) => withoutAuthorOnlyValue(item, policyOf(item?.type))) } : items !== void 0 ? { items } : {}
|
|
1044
1039
|
};
|
|
1045
1040
|
}
|
|
1046
|
-
|
|
1047
|
-
//#region src/timeline.ts
|
|
1041
|
+
// src/timeline.ts
|
|
1048
1042
|
/**
|
|
1049
1043
|
* Reads a stored {@link MediaProgress}. Never throws: anything that is not one
|
|
1050
1044
|
* — a string, a stale shape, an object whose getters throw — answers `null`,
|
|
@@ -1098,7 +1092,6 @@ function composeTimelineScore(entryKey, items, policy) {
|
|
|
1098
1092
|
items: own
|
|
1099
1093
|
}], policy);
|
|
1100
1094
|
}
|
|
1101
|
-
//#endregion
|
|
1102
1095
|
export { AI_COACHING_MAX_TIP_LENGTH, AI_COACHING_MAX_WORDS, AI_CRITIQUE_MAX_FIELD_LENGTH, AI_CRITIQUE_MAX_FINDINGS, AI_DRAFTS_MAX_COUNT, AI_DRAFTS_MAX_REPAIRS, AI_EXPLANATION_TYPES, AI_GRADING_PROBABILITY_TOLERANCE, AI_HINT_TYPES, AI_MATERIAL_MAX_LENGTH, AI_TEXT_MAX_LENGTH, AI_WRITING_MAX_CORRECTIONS, AI_WRITING_MAX_FIELD_LENGTH, ActivitySchemaError, BUILT_IN_ACTIVITY_TYPES, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, DeferredScoringError, INTERACTIVE_VIDEO_ITEM_TYPES, ITEM_SCORING_MAX_RETRIES, OPEN_DELIVERY_POLICY, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, RedactedScoringError, SCRIPT_MAX_TURNS, SPEECH_ASSESSMENT_MAX_WORDS, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, UnknownActivityTypeError, XAPIVerb, XAPI_VERB_DISPLAY, aiAllowedByContent, aiCoachingRequest, aiCritiqueRequest, aiDraftsRepairRequest, aiDraftsRequest, aiExplanationRequest, aiGradeOf, aiGradingRequest, aiHintRequest, aiSupports, aiWritingFeedbackRequest, alignDictation, alignReadAloud, assertRedacted, assertRedactedItemGroup, buildAiFacts, calibrationReport, canonicalJson, checkAiCoaching, checkAiCritique, checkAiDrafts, checkAiExplanation, checkAiGrading, checkAiHint, checkAiWritingFeedback, classifyBand, combineDeliveryPolicies, composeAssessmentScore, composeTimelineScore, computePassThreshold, contentHash, contentJsonSchema, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, critiqueDraft, critiqueDrafts, critiqueItemGroupDraft, defineActivityType, dictationJsonSchema, dictationReferenceWords, dictationType, diffDictationChars, diffResponses, entryKeyOf, evaluate, evaluateTries, fillInTheBlanksJsonSchema, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectJsonSchema, gapSelectType, generateDrafts, getActivityTypeDescriptor, gradeFromJudgement, gradeFromRubric, gradeReadAloud, graderConfiguration, gte, hasGrade, hashSeed, hintRevealsAnswer, inAuditSample, inspectWav, interactiveVideoFromDrafts, isBuiltInActivityType, isInteractiveVideoItemType, isItemGroup, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, listMediaRefs, mapMediaRefs, matchText, multipleChoiceJsonSchema, multipleChoiceType, outcomeFromGrade, outcomeFromRoutedGrade, outcomeFromUnscorable, planAttempt, planMediaBudgets, readAiTextResult, readAloudJsonSchema, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolveDeliveryPolicy, resolveItemScoringPolicy, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, roundGrade, routeGrade, score, scoreTries, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusJsonSchema, stimulusMediaKey, transcriptOf, validateActivity, validateDeliveryPolicy, validateDraft, validateItemGroup, validateItemGroupDraft, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, verifyAttemptPlan, withoutAuthorOnly, writtenResponseJsonSchema, writtenResponseType, xAPIBuilder, xapiDefinitionFor };
|
|
1103
1096
|
|
|
1104
1097
|
//# sourceMappingURL=index.js.map
|