@intellectif/lk-core 0.15.0 → 0.17.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 +74 -0
- package/dist/{activity-C7cR8U9n.d.cts → activity-BmjBjXVJ.d.cts} +218 -3
- package/dist/{activity-C7cR8U9n.d.ts → activity-BmjBjXVJ.d.ts} +218 -3
- package/dist/{chunk-W7AQP6AV.cjs → chunk-2CV6NU32.cjs} +24 -22
- package/dist/chunk-2CV6NU32.cjs.map +1 -0
- package/dist/{chunk-DPHX4E7X.js → chunk-D3GP5MET.js} +718 -662
- package/dist/chunk-D3GP5MET.js.map +1 -0
- package/dist/{chunk-QFWEF5ST.cjs → chunk-D4TOPSHV.cjs} +539 -483
- package/dist/chunk-D4TOPSHV.cjs.map +1 -0
- package/dist/{chunk-7ETU6EXQ.cjs → chunk-EOFWSGLU.cjs} +4 -4
- package/dist/{chunk-7ETU6EXQ.cjs.map → chunk-EOFWSGLU.cjs.map} +1 -1
- package/dist/{chunk-L6YBQXSB.js → chunk-WXS5EB65.js} +2 -2
- package/dist/{chunk-54XYQ3CS.js → chunk-X5DAXBJI.js} +2 -2
- package/dist/{chunk-5KWF34LJ.cjs → chunk-XNMKDFPW.cjs} +31 -31
- package/dist/{chunk-5KWF34LJ.cjs.map → chunk-XNMKDFPW.cjs.map} +1 -1
- package/dist/{chunk-EEMVWBPP.js → chunk-Z7QQZ53L.js} +10 -8
- package/dist/chunk-Z7QQZ53L.js.map +1 -0
- package/dist/{index-BWyMDlUS.d.cts → index-CvfeD_cU.d.cts} +144 -86
- package/dist/{index-D10NaztZ.d.ts → index-G_KusUcK.d.ts} +144 -86
- package/dist/index.cjs +544 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -5
- package/dist/index.d.ts +135 -5
- package/dist/index.js +426 -10
- package/dist/index.js.map +1 -1
- package/dist/schemas.cjs +5 -3
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +4 -2
- package/dist/scoring.cjs +3 -3
- package/dist/scoring.d.cts +2 -2
- package/dist/scoring.d.ts +2 -2
- package/dist/scoring.js +2 -2
- package/dist/xapi.cjs +3 -3
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DPHX4E7X.js.map +0 -1
- package/dist/chunk-EEMVWBPP.js.map +0 -1
- package/dist/chunk-QFWEF5ST.cjs.map +0 -1
- package/dist/chunk-W7AQP6AV.cjs.map +0 -1
- /package/dist/{chunk-L6YBQXSB.js.map → chunk-WXS5EB65.js.map} +0 -0
- /package/dist/{chunk-54XYQ3CS.js.map → chunk-X5DAXBJI.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,129 @@
|
|
|
1
|
+
import { v as AiSupportedActivityType, g as AiActivityInput, k as AiFeature, Z as LearnerResponse, Y as ItemOutcome, j as AiExplanationRequest, o as AiGrade, p as AiHintRequest, ad as ScoringDetail, q as AiItemFacts, w as AiTextResult, u as AiRefusal, a as ActivityData, ai as ValidationError, f as ActivityType, b as ActivityDataMap, C as CriterionScore, Q as GradeRecord, a5 as NativeControlHint, d as ActivityMedia, af as ScoringResult, z as DeferredScoringPartial, E as DictationData, G as DictationLearnerResponse, J as FillInTheBlanksData, K as FillInTheBlanksLearnerResponse, N as GapSelectData, P as GapSelectLearnerResponse, a1 as MultipleChoiceData, a2 as MultipleChoiceLearnerResponse, a6 as ReadAloudData, a9 as ReadAloudLearnerResponse, ak as WrittenResponseData, al as WrittenResponseLearnerResponse } from './activity-BmjBjXVJ.cjs';
|
|
2
|
+
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact, i as AiDictationFacts, l as AiFillInTheBlanksFacts, m as AiGapFact, n as AiGapSelectFacts, r as AiMultipleChoiceFacts, s as AiOptionFact, t as AiProvenance, x as AiVerdict, y as AiWordFact, B as BlankConfig, D as DeferredReason, F as DictationEquivalence, H as DictationSlowMedia, I as DictationTolerance, L as GapSelectBank, M as GapSelectChoice, O as GapSelectGap, R as Grader, S as GraderKind, T as GraderUsage, U as GradingState, V as InlineCorrection, W as InteractionEvent, X as InteractionKind, _ as LearnerResponseMap, $ as MediaPlaybackPolicy, a0 as MediaTrack, a3 as MultipleChoiceOption, a4 as MultipleChoiceOptionMedia, a7 as ReadAloudDimension, a8 as ReadAloudDimensionWeight, aa as ReadAloudSlowMedia, ab as RecordingBounds, ac as RecordingRef, ae as ScoringOutcome, ag as TextMatchPolicy, ah as TextMatchResult, aj as ValidationResult, am as WrittenResponseRubric, an as WrittenResponseRubricCriterion, ao as XAPIActor, ap as XAPIConfig, aq as XAPIContext, ar as XAPIContextActivities, as as XAPIError, at as XAPIObject, au as XAPIResult, av as XAPIScore, aw as XAPIStatement, ax as XAPIVerbObject, ay as levenshteinDistance, az as matchText } from './activity-BmjBjXVJ.cjs';
|
|
1
3
|
import { ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.cjs';
|
|
2
4
|
export { AssessmentSectionInput, Band, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, GradeReadAloudOptions, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore, SpeechAssessment, SpeechMeasurement, SpeechPhoneme, SpeechPhonemeCandidate, SpeechPlausibilityPolicy, SpeechSyllable, SpeechUnscorable, SpeechUnscorableCode, SpeechWord, SpeechWordError, WavInspection, WavInspectionPolicy, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationReferenceWords, diffDictationChars, evaluate, gradeReadAloud, gte, inspectWav, outcomeFromUnscorable, roundGrade, score, validateSpeechAssessment } from './scoring.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export { b as
|
|
5
|
-
import { a4 as SequenceSlot, a3 as SequenceEntry, I as ItemGroup, i as MediaProgress } from './index-BWyMDlUS.cjs';
|
|
6
|
-
export { B as BlankConfigSchema, D as DictationDataSchema, a as DictationEquivalenceSchema, b as DictationSlowMediaSchema, c as DictationToleranceSchema, F as FeedbackSchema, d as FillInTheBlanksDataSchema, G as GapSelectBankSchema, e as GapSelectChoiceSchema, f as GapSelectDataSchema, g as GapSelectGapSchema, h as ItemGroupSchema, M as MediaPlaybackSchema, j as MediaSchema, k as MediaTimeline, l as MediaTimelineSchema, m as MediaTrackSchema, n as MediaUrlSchema, o as MultipleChoiceDataSchema, p as MultipleChoiceOptionMediaSchema, q as MultipleChoiceOptionSchema, N as NativeControlHintSchema, R as ReadAloudDataSchema, r as ReadAloudSlowMediaSchema, s as RedactedActivity, t as RedactedBlankConfig, u as RedactedBlankConfigSchema, v as RedactedDictationData, w as RedactedDictationDataSchema, x as RedactedDictationSlowMedia, y as RedactedDictationSlowMediaSchema, z as RedactedFillInTheBlanksData, A as RedactedFillInTheBlanksDataSchema, C as RedactedGapSelectBank, E as RedactedGapSelectBankSchema, H as RedactedGapSelectChoice, J as RedactedGapSelectChoiceSchema, K as RedactedGapSelectData, L as RedactedGapSelectDataSchema, O as RedactedGapSelectGap, P as RedactedGapSelectGapSchema, Q as RedactedItemGroupSchema, S as RedactedMediaSchema, T as RedactedMultipleChoiceData, U as RedactedMultipleChoiceDataSchema, V as RedactedMultipleChoiceOption, W as RedactedMultipleChoiceOptionMedia, X as RedactedMultipleChoiceOptionMediaSchema, Y as RedactedMultipleChoiceOptionSchema, Z as RedactedReadAloudData, _ as RedactedReadAloudDataSchema, $ as RedactedStimulus, a0 as RedactedStimulusSchema, a1 as RedactedWrittenResponseData, a2 as RedactedWrittenResponseDataSchema, a5 as SequenceSlotGroup, a6 as Stimulus, a7 as StimulusKind, a8 as StimulusSchema, a9 as TextMatchPolicySchema, aa as TimelineChapter, ab as TimelineChapterSchema, ac as TimelineCue, ad as TimelineCueSchema, ae as WrittenResponseDataSchema, af as WrittenResponseRubricCriterionSchema, ag as WrittenResponseRubricSchema, ah as dictationJsonSchema, ai as fillInTheBlanksJsonSchema, aj as gapSelectJsonSchema, ak as itemGroupJsonSchema, al as jsonSchemaFor, am as multipleChoiceJsonSchema, an as readAloudJsonSchema, ao as stimulusJsonSchema, ap as validateActivity, aq as validateItemGroup, ar as writtenResponseJsonSchema } from './index-BWyMDlUS.cjs';
|
|
5
|
+
import { a5 as SequenceSlot, a4 as SequenceEntry, I as ItemGroup, i as MediaProgress } from './index-CvfeD_cU.cjs';
|
|
6
|
+
export { A as AiPermissionsSchema, B as BlankConfigSchema, D as DictationDataSchema, a as DictationEquivalenceSchema, b as DictationSlowMediaSchema, c as DictationToleranceSchema, F as FeedbackSchema, d as FillInTheBlanksDataSchema, G as GapSelectBankSchema, e as GapSelectChoiceSchema, f as GapSelectDataSchema, g as GapSelectGapSchema, h as ItemGroupSchema, M as MediaPlaybackSchema, j as MediaSchema, k as MediaTimeline, l as MediaTimelineSchema, m as MediaTrackSchema, n as MediaUrlSchema, o as MultipleChoiceDataSchema, p as MultipleChoiceOptionMediaSchema, q as MultipleChoiceOptionSchema, N as NativeControlHintSchema, R as ReadAloudDataSchema, r as ReadAloudSlowMediaSchema, s as RedactedActivity, t as RedactedBlankConfig, u as RedactedBlankConfigSchema, v as RedactedDictationData, w as RedactedDictationDataSchema, x as RedactedDictationSlowMedia, y as RedactedDictationSlowMediaSchema, z as RedactedFillInTheBlanksData, C as RedactedFillInTheBlanksDataSchema, E as RedactedGapSelectBank, H as RedactedGapSelectBankSchema, J as RedactedGapSelectChoice, K as RedactedGapSelectChoiceSchema, L as RedactedGapSelectData, O as RedactedGapSelectDataSchema, P as RedactedGapSelectGap, Q as RedactedGapSelectGapSchema, S as RedactedItemGroupSchema, T as RedactedMediaSchema, U as RedactedMultipleChoiceData, V as RedactedMultipleChoiceDataSchema, W as RedactedMultipleChoiceOption, X as RedactedMultipleChoiceOptionMedia, Y as RedactedMultipleChoiceOptionMediaSchema, Z as RedactedMultipleChoiceOptionSchema, _ as RedactedReadAloudData, $ as RedactedReadAloudDataSchema, a0 as RedactedStimulus, a1 as RedactedStimulusSchema, a2 as RedactedWrittenResponseData, a3 as RedactedWrittenResponseDataSchema, a6 as SequenceSlotGroup, a7 as Stimulus, a8 as StimulusKind, a9 as StimulusSchema, aa as TextMatchPolicySchema, ab as TimelineChapter, ac as TimelineChapterSchema, ad as TimelineCue, ae as TimelineCueSchema, af as WrittenResponseDataSchema, ag as WrittenResponseRubricCriterionSchema, ah as WrittenResponseRubricSchema, ai as dictationJsonSchema, aj as fillInTheBlanksJsonSchema, ak as gapSelectJsonSchema, al as itemGroupJsonSchema, am as jsonSchemaFor, an as multipleChoiceJsonSchema, ao as readAloudJsonSchema, ap as stimulusJsonSchema, aq as validateActivity, ar as validateItemGroup, as as writtenResponseJsonSchema } from './index-CvfeD_cU.cjs';
|
|
7
7
|
import { z } from 'zod/v4';
|
|
8
8
|
export { AnsweredStatementParams, CompletedStatementParams, SubmittedStatementParams, XAPIObjectParams, XAPIStatementParams, XAPIVerb, XAPIVerbKey, XAPI_VERB_DISPLAY, validateXAPIStatement, xAPIBuilder, xapiDefinitionFor } from './xapi.cjs';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The activity types the SDK builds facts for, and which of them take hints.
|
|
12
|
+
* A dictation takes none: its answer is the whole sentence, and it has
|
|
13
|
+
* word-by-word hints of its own.
|
|
14
|
+
*/
|
|
15
|
+
declare const AI_EXPLANATION_TYPES: readonly AiSupportedActivityType[];
|
|
16
|
+
declare const AI_HINT_TYPES: readonly AiSupportedActivityType[];
|
|
17
|
+
/** The longest AI text shown, in code points. Longer is refused, not cut. */
|
|
18
|
+
declare const AI_TEXT_MAX_LENGTH = 2000;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the SDK supports `feature` for this activity type. A type it builds
|
|
21
|
+
* no facts for — a written response, a read-aloud, a consumer's own — has
|
|
22
|
+
* neither.
|
|
23
|
+
*/
|
|
24
|
+
declare function aiSupports(activityType: string, feature: AiFeature): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the item's author allows `feature`. Only an explicit `false`
|
|
27
|
+
* switches it off: an author can refuse a feature, never force one on.
|
|
28
|
+
*/
|
|
29
|
+
declare function aiAllowedByContent(data: AiActivityInput, feature: AiFeature): boolean;
|
|
30
|
+
/** A grade as an explanation must speak to it: all marks, some, or none. */
|
|
31
|
+
declare function aiGradeOf(result: {
|
|
32
|
+
score: number;
|
|
33
|
+
maxScore: number;
|
|
34
|
+
passed: boolean;
|
|
35
|
+
}): AiGrade;
|
|
36
|
+
/**
|
|
37
|
+
* The facts a model is given about one item and one answer. `details` are the
|
|
38
|
+
* SDK's per-part verdicts — from its own scorer, or from a server's outcome in
|
|
39
|
+
* review — and every `correct` is `null` without them. A redacted item yields
|
|
40
|
+
* facts without a key, which is what the learner's side holds; a port that
|
|
41
|
+
* needs the key loads the item on its server.
|
|
42
|
+
*
|
|
43
|
+
* `null` for a type the SDK builds no facts for.
|
|
44
|
+
*/
|
|
45
|
+
declare function buildAiFacts(data: AiActivityInput, response: LearnerResponse | null, details: readonly ScoringDetail[] | null): AiItemFacts | null;
|
|
46
|
+
/**
|
|
47
|
+
* The request for an explanation of `response`, or `null` when there is none
|
|
48
|
+
* to give: an unsupported type, an author who switched explanations off, or
|
|
49
|
+
* nothing graded to explain.
|
|
50
|
+
*
|
|
51
|
+
* A scored `outcome` — the grade of record a review shows — wins over grading
|
|
52
|
+
* locally, so the explanation speaks to the grade on the screen.
|
|
53
|
+
*/
|
|
54
|
+
declare function aiExplanationRequest(input: {
|
|
55
|
+
data: AiActivityInput;
|
|
56
|
+
response: LearnerResponse | null;
|
|
57
|
+
outcome?: ItemOutcome;
|
|
58
|
+
learnerLocale?: string;
|
|
59
|
+
}): AiExplanationRequest | null;
|
|
60
|
+
/**
|
|
61
|
+
* The request for the next hint on an unsubmitted answer, or `null` when
|
|
62
|
+
* there is none to give: an unsupported type, an author who switched hints
|
|
63
|
+
* off, or a redacted item — hints are for practice, where the item is whole.
|
|
64
|
+
*
|
|
65
|
+
* The facts carry the key, and which parts the learner has right so far, so a
|
|
66
|
+
* model can hint where it helps. The learner never sees them; a hint that
|
|
67
|
+
* contains an answer is refused by {@link checkAiHint}.
|
|
68
|
+
*/
|
|
69
|
+
declare function aiHintRequest(input: {
|
|
70
|
+
data: AiActivityInput;
|
|
71
|
+
response: LearnerResponse | null;
|
|
72
|
+
previousHints: readonly string[];
|
|
73
|
+
learnerLocale?: string;
|
|
74
|
+
}): AiHintRequest | null;
|
|
75
|
+
/**
|
|
76
|
+
* Reads what a port returned. Anything but an object with a string `text` is
|
|
77
|
+
* `malformed`; text that is empty once cleaned, or longer than
|
|
78
|
+
* {@link AI_TEXT_MAX_LENGTH}, is refused rather than shown or cut.
|
|
79
|
+
*/
|
|
80
|
+
declare function readAiTextResult(raw: unknown): {
|
|
81
|
+
ok: true;
|
|
82
|
+
result: AiTextResult;
|
|
83
|
+
} | {
|
|
84
|
+
ok: false;
|
|
85
|
+
refusal: AiRefusal;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Checks an explanation a port returned for `request`. On top of
|
|
89
|
+
* {@link readAiTextResult}: an explanation that states a verdict other than
|
|
90
|
+
* the SDK's grade is refused (`contradicts-grade`) — it explains an answer
|
|
91
|
+
* the learner did not get.
|
|
92
|
+
*/
|
|
93
|
+
declare function checkAiExplanation(raw: unknown, request: AiExplanationRequest): {
|
|
94
|
+
ok: true;
|
|
95
|
+
result: AiTextResult;
|
|
96
|
+
} | {
|
|
97
|
+
ok: false;
|
|
98
|
+
refusal: AiRefusal;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Checks a hint a port returned for `request`. On top of
|
|
102
|
+
* {@link readAiTextResult}: a hint that contains an answer is refused
|
|
103
|
+
* (`reveals-answer`) — see {@link hintRevealsAnswer}.
|
|
104
|
+
*/
|
|
105
|
+
declare function checkAiHint(raw: unknown, request: AiHintRequest): {
|
|
106
|
+
ok: true;
|
|
107
|
+
result: AiTextResult;
|
|
108
|
+
} | {
|
|
109
|
+
ok: false;
|
|
110
|
+
refusal: AiRefusal;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Whether a hint gives away an answer, judged against the facts it was asked
|
|
114
|
+
* for. It is a floor, not a proof: it finds an answer written out, not one
|
|
115
|
+
* spelled letter by letter or described.
|
|
116
|
+
*
|
|
117
|
+
* - **Multiple choice:** the text of any correct option, as whole words.
|
|
118
|
+
* - **Fill-in-the-blanks and gap select:** any accepted answer, as whole words.
|
|
119
|
+
* An answer of one short word ("is", "the") counts only where the hint
|
|
120
|
+
* writes it beside a neighbour it has in the passage — "name is", "is
|
|
121
|
+
* Rossi" — so a hint may still use the word on its own.
|
|
122
|
+
*
|
|
123
|
+
* Case, accents and punctuation are ignored on both sides.
|
|
124
|
+
*/
|
|
125
|
+
declare function hintRevealsAnswer(facts: AiItemFacts, hint: string): boolean;
|
|
126
|
+
|
|
10
127
|
/**
|
|
11
128
|
* The frozen record of what one attempt was served.
|
|
12
129
|
*
|
|
@@ -1300,6 +1417,19 @@ interface ThemeTokens {
|
|
|
1300
1417
|
* which reads on any video. Set it to a brand colour to match a product.
|
|
1301
1418
|
*/
|
|
1302
1419
|
'--lk-color-media-accent'?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* The interactive video's drawn captions. Optional like the accent above, so
|
|
1422
|
+
* a theme written before them still type-checks. The primary line's colour;
|
|
1423
|
+
* the second language's colour, which must clear 4.5:1 on the caption box;
|
|
1424
|
+
* the second line's size as a share of the first (a number, e.g. `0.85`);
|
|
1425
|
+
* and the space between the two lines. The second line differs from the
|
|
1426
|
+
* first by position and size as well as colour: colour alone would fail
|
|
1427
|
+
* WCAG 1.4.1.
|
|
1428
|
+
*/
|
|
1429
|
+
'--lk-iv-caption-color'?: string;
|
|
1430
|
+
'--lk-iv-caption-secondary-color'?: string;
|
|
1431
|
+
'--lk-iv-caption-secondary-scale'?: string;
|
|
1432
|
+
'--lk-iv-caption-gap'?: string;
|
|
1303
1433
|
'--lk-spacing-xs': string;
|
|
1304
1434
|
'--lk-spacing-sm': string;
|
|
1305
1435
|
'--lk-spacing-md': string;
|
|
@@ -1319,4 +1449,4 @@ interface ThemeTokens {
|
|
|
1319
1449
|
'--lk-transition-base': string;
|
|
1320
1450
|
}
|
|
1321
1451
|
|
|
1322
|
-
export { ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, assertRedacted, assertRedactedItemGroup, canonicalJson, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
|
1452
|
+
export { AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiExplanation, checkAiHint, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,129 @@
|
|
|
1
|
+
import { v as AiSupportedActivityType, g as AiActivityInput, k as AiFeature, Z as LearnerResponse, Y as ItemOutcome, j as AiExplanationRequest, o as AiGrade, p as AiHintRequest, ad as ScoringDetail, q as AiItemFacts, w as AiTextResult, u as AiRefusal, a as ActivityData, ai as ValidationError, f as ActivityType, b as ActivityDataMap, C as CriterionScore, Q as GradeRecord, a5 as NativeControlHint, d as ActivityMedia, af as ScoringResult, z as DeferredScoringPartial, E as DictationData, G as DictationLearnerResponse, J as FillInTheBlanksData, K as FillInTheBlanksLearnerResponse, N as GapSelectData, P as GapSelectLearnerResponse, a1 as MultipleChoiceData, a2 as MultipleChoiceLearnerResponse, a6 as ReadAloudData, a9 as ReadAloudLearnerResponse, ak as WrittenResponseData, al as WrittenResponseLearnerResponse } from './activity-BmjBjXVJ.js';
|
|
2
|
+
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact, i as AiDictationFacts, l as AiFillInTheBlanksFacts, m as AiGapFact, n as AiGapSelectFacts, r as AiMultipleChoiceFacts, s as AiOptionFact, t as AiProvenance, x as AiVerdict, y as AiWordFact, B as BlankConfig, D as DeferredReason, F as DictationEquivalence, H as DictationSlowMedia, I as DictationTolerance, L as GapSelectBank, M as GapSelectChoice, O as GapSelectGap, R as Grader, S as GraderKind, T as GraderUsage, U as GradingState, V as InlineCorrection, W as InteractionEvent, X as InteractionKind, _ as LearnerResponseMap, $ as MediaPlaybackPolicy, a0 as MediaTrack, a3 as MultipleChoiceOption, a4 as MultipleChoiceOptionMedia, a7 as ReadAloudDimension, a8 as ReadAloudDimensionWeight, aa as ReadAloudSlowMedia, ab as RecordingBounds, ac as RecordingRef, ae as ScoringOutcome, ag as TextMatchPolicy, ah as TextMatchResult, aj as ValidationResult, am as WrittenResponseRubric, an as WrittenResponseRubricCriterion, ao as XAPIActor, ap as XAPIConfig, aq as XAPIContext, ar as XAPIContextActivities, as as XAPIError, at as XAPIObject, au as XAPIResult, av as XAPIScore, aw as XAPIStatement, ax as XAPIVerbObject, ay as levenshteinDistance, az as matchText } from './activity-BmjBjXVJ.js';
|
|
1
3
|
import { ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.js';
|
|
2
4
|
export { AssessmentSectionInput, Band, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, GradeReadAloudOptions, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore, SpeechAssessment, SpeechMeasurement, SpeechPhoneme, SpeechPhonemeCandidate, SpeechPlausibilityPolicy, SpeechSyllable, SpeechUnscorable, SpeechUnscorableCode, SpeechWord, SpeechWordError, WavInspection, WavInspectionPolicy, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationReferenceWords, diffDictationChars, evaluate, gradeReadAloud, gte, inspectWav, outcomeFromUnscorable, roundGrade, score, validateSpeechAssessment } from './scoring.js';
|
|
3
|
-
import {
|
|
4
|
-
export { b as
|
|
5
|
-
import { a4 as SequenceSlot, a3 as SequenceEntry, I as ItemGroup, i as MediaProgress } from './index-D10NaztZ.js';
|
|
6
|
-
export { B as BlankConfigSchema, D as DictationDataSchema, a as DictationEquivalenceSchema, b as DictationSlowMediaSchema, c as DictationToleranceSchema, F as FeedbackSchema, d as FillInTheBlanksDataSchema, G as GapSelectBankSchema, e as GapSelectChoiceSchema, f as GapSelectDataSchema, g as GapSelectGapSchema, h as ItemGroupSchema, M as MediaPlaybackSchema, j as MediaSchema, k as MediaTimeline, l as MediaTimelineSchema, m as MediaTrackSchema, n as MediaUrlSchema, o as MultipleChoiceDataSchema, p as MultipleChoiceOptionMediaSchema, q as MultipleChoiceOptionSchema, N as NativeControlHintSchema, R as ReadAloudDataSchema, r as ReadAloudSlowMediaSchema, s as RedactedActivity, t as RedactedBlankConfig, u as RedactedBlankConfigSchema, v as RedactedDictationData, w as RedactedDictationDataSchema, x as RedactedDictationSlowMedia, y as RedactedDictationSlowMediaSchema, z as RedactedFillInTheBlanksData, A as RedactedFillInTheBlanksDataSchema, C as RedactedGapSelectBank, E as RedactedGapSelectBankSchema, H as RedactedGapSelectChoice, J as RedactedGapSelectChoiceSchema, K as RedactedGapSelectData, L as RedactedGapSelectDataSchema, O as RedactedGapSelectGap, P as RedactedGapSelectGapSchema, Q as RedactedItemGroupSchema, S as RedactedMediaSchema, T as RedactedMultipleChoiceData, U as RedactedMultipleChoiceDataSchema, V as RedactedMultipleChoiceOption, W as RedactedMultipleChoiceOptionMedia, X as RedactedMultipleChoiceOptionMediaSchema, Y as RedactedMultipleChoiceOptionSchema, Z as RedactedReadAloudData, _ as RedactedReadAloudDataSchema, $ as RedactedStimulus, a0 as RedactedStimulusSchema, a1 as RedactedWrittenResponseData, a2 as RedactedWrittenResponseDataSchema, a5 as SequenceSlotGroup, a6 as Stimulus, a7 as StimulusKind, a8 as StimulusSchema, a9 as TextMatchPolicySchema, aa as TimelineChapter, ab as TimelineChapterSchema, ac as TimelineCue, ad as TimelineCueSchema, ae as WrittenResponseDataSchema, af as WrittenResponseRubricCriterionSchema, ag as WrittenResponseRubricSchema, ah as dictationJsonSchema, ai as fillInTheBlanksJsonSchema, aj as gapSelectJsonSchema, ak as itemGroupJsonSchema, al as jsonSchemaFor, am as multipleChoiceJsonSchema, an as readAloudJsonSchema, ao as stimulusJsonSchema, ap as validateActivity, aq as validateItemGroup, ar as writtenResponseJsonSchema } from './index-D10NaztZ.js';
|
|
5
|
+
import { a5 as SequenceSlot, a4 as SequenceEntry, I as ItemGroup, i as MediaProgress } from './index-G_KusUcK.js';
|
|
6
|
+
export { A as AiPermissionsSchema, B as BlankConfigSchema, D as DictationDataSchema, a as DictationEquivalenceSchema, b as DictationSlowMediaSchema, c as DictationToleranceSchema, F as FeedbackSchema, d as FillInTheBlanksDataSchema, G as GapSelectBankSchema, e as GapSelectChoiceSchema, f as GapSelectDataSchema, g as GapSelectGapSchema, h as ItemGroupSchema, M as MediaPlaybackSchema, j as MediaSchema, k as MediaTimeline, l as MediaTimelineSchema, m as MediaTrackSchema, n as MediaUrlSchema, o as MultipleChoiceDataSchema, p as MultipleChoiceOptionMediaSchema, q as MultipleChoiceOptionSchema, N as NativeControlHintSchema, R as ReadAloudDataSchema, r as ReadAloudSlowMediaSchema, s as RedactedActivity, t as RedactedBlankConfig, u as RedactedBlankConfigSchema, v as RedactedDictationData, w as RedactedDictationDataSchema, x as RedactedDictationSlowMedia, y as RedactedDictationSlowMediaSchema, z as RedactedFillInTheBlanksData, C as RedactedFillInTheBlanksDataSchema, E as RedactedGapSelectBank, H as RedactedGapSelectBankSchema, J as RedactedGapSelectChoice, K as RedactedGapSelectChoiceSchema, L as RedactedGapSelectData, O as RedactedGapSelectDataSchema, P as RedactedGapSelectGap, Q as RedactedGapSelectGapSchema, S as RedactedItemGroupSchema, T as RedactedMediaSchema, U as RedactedMultipleChoiceData, V as RedactedMultipleChoiceDataSchema, W as RedactedMultipleChoiceOption, X as RedactedMultipleChoiceOptionMedia, Y as RedactedMultipleChoiceOptionMediaSchema, Z as RedactedMultipleChoiceOptionSchema, _ as RedactedReadAloudData, $ as RedactedReadAloudDataSchema, a0 as RedactedStimulus, a1 as RedactedStimulusSchema, a2 as RedactedWrittenResponseData, a3 as RedactedWrittenResponseDataSchema, a6 as SequenceSlotGroup, a7 as Stimulus, a8 as StimulusKind, a9 as StimulusSchema, aa as TextMatchPolicySchema, ab as TimelineChapter, ac as TimelineChapterSchema, ad as TimelineCue, ae as TimelineCueSchema, af as WrittenResponseDataSchema, ag as WrittenResponseRubricCriterionSchema, ah as WrittenResponseRubricSchema, ai as dictationJsonSchema, aj as fillInTheBlanksJsonSchema, ak as gapSelectJsonSchema, al as itemGroupJsonSchema, am as jsonSchemaFor, an as multipleChoiceJsonSchema, ao as readAloudJsonSchema, ap as stimulusJsonSchema, aq as validateActivity, ar as validateItemGroup, as as writtenResponseJsonSchema } from './index-G_KusUcK.js';
|
|
7
7
|
import { z } from 'zod/v4';
|
|
8
8
|
export { AnsweredStatementParams, CompletedStatementParams, SubmittedStatementParams, XAPIObjectParams, XAPIStatementParams, XAPIVerb, XAPIVerbKey, XAPI_VERB_DISPLAY, validateXAPIStatement, xAPIBuilder, xapiDefinitionFor } from './xapi.js';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The activity types the SDK builds facts for, and which of them take hints.
|
|
12
|
+
* A dictation takes none: its answer is the whole sentence, and it has
|
|
13
|
+
* word-by-word hints of its own.
|
|
14
|
+
*/
|
|
15
|
+
declare const AI_EXPLANATION_TYPES: readonly AiSupportedActivityType[];
|
|
16
|
+
declare const AI_HINT_TYPES: readonly AiSupportedActivityType[];
|
|
17
|
+
/** The longest AI text shown, in code points. Longer is refused, not cut. */
|
|
18
|
+
declare const AI_TEXT_MAX_LENGTH = 2000;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the SDK supports `feature` for this activity type. A type it builds
|
|
21
|
+
* no facts for — a written response, a read-aloud, a consumer's own — has
|
|
22
|
+
* neither.
|
|
23
|
+
*/
|
|
24
|
+
declare function aiSupports(activityType: string, feature: AiFeature): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the item's author allows `feature`. Only an explicit `false`
|
|
27
|
+
* switches it off: an author can refuse a feature, never force one on.
|
|
28
|
+
*/
|
|
29
|
+
declare function aiAllowedByContent(data: AiActivityInput, feature: AiFeature): boolean;
|
|
30
|
+
/** A grade as an explanation must speak to it: all marks, some, or none. */
|
|
31
|
+
declare function aiGradeOf(result: {
|
|
32
|
+
score: number;
|
|
33
|
+
maxScore: number;
|
|
34
|
+
passed: boolean;
|
|
35
|
+
}): AiGrade;
|
|
36
|
+
/**
|
|
37
|
+
* The facts a model is given about one item and one answer. `details` are the
|
|
38
|
+
* SDK's per-part verdicts — from its own scorer, or from a server's outcome in
|
|
39
|
+
* review — and every `correct` is `null` without them. A redacted item yields
|
|
40
|
+
* facts without a key, which is what the learner's side holds; a port that
|
|
41
|
+
* needs the key loads the item on its server.
|
|
42
|
+
*
|
|
43
|
+
* `null` for a type the SDK builds no facts for.
|
|
44
|
+
*/
|
|
45
|
+
declare function buildAiFacts(data: AiActivityInput, response: LearnerResponse | null, details: readonly ScoringDetail[] | null): AiItemFacts | null;
|
|
46
|
+
/**
|
|
47
|
+
* The request for an explanation of `response`, or `null` when there is none
|
|
48
|
+
* to give: an unsupported type, an author who switched explanations off, or
|
|
49
|
+
* nothing graded to explain.
|
|
50
|
+
*
|
|
51
|
+
* A scored `outcome` — the grade of record a review shows — wins over grading
|
|
52
|
+
* locally, so the explanation speaks to the grade on the screen.
|
|
53
|
+
*/
|
|
54
|
+
declare function aiExplanationRequest(input: {
|
|
55
|
+
data: AiActivityInput;
|
|
56
|
+
response: LearnerResponse | null;
|
|
57
|
+
outcome?: ItemOutcome;
|
|
58
|
+
learnerLocale?: string;
|
|
59
|
+
}): AiExplanationRequest | null;
|
|
60
|
+
/**
|
|
61
|
+
* The request for the next hint on an unsubmitted answer, or `null` when
|
|
62
|
+
* there is none to give: an unsupported type, an author who switched hints
|
|
63
|
+
* off, or a redacted item — hints are for practice, where the item is whole.
|
|
64
|
+
*
|
|
65
|
+
* The facts carry the key, and which parts the learner has right so far, so a
|
|
66
|
+
* model can hint where it helps. The learner never sees them; a hint that
|
|
67
|
+
* contains an answer is refused by {@link checkAiHint}.
|
|
68
|
+
*/
|
|
69
|
+
declare function aiHintRequest(input: {
|
|
70
|
+
data: AiActivityInput;
|
|
71
|
+
response: LearnerResponse | null;
|
|
72
|
+
previousHints: readonly string[];
|
|
73
|
+
learnerLocale?: string;
|
|
74
|
+
}): AiHintRequest | null;
|
|
75
|
+
/**
|
|
76
|
+
* Reads what a port returned. Anything but an object with a string `text` is
|
|
77
|
+
* `malformed`; text that is empty once cleaned, or longer than
|
|
78
|
+
* {@link AI_TEXT_MAX_LENGTH}, is refused rather than shown or cut.
|
|
79
|
+
*/
|
|
80
|
+
declare function readAiTextResult(raw: unknown): {
|
|
81
|
+
ok: true;
|
|
82
|
+
result: AiTextResult;
|
|
83
|
+
} | {
|
|
84
|
+
ok: false;
|
|
85
|
+
refusal: AiRefusal;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Checks an explanation a port returned for `request`. On top of
|
|
89
|
+
* {@link readAiTextResult}: an explanation that states a verdict other than
|
|
90
|
+
* the SDK's grade is refused (`contradicts-grade`) — it explains an answer
|
|
91
|
+
* the learner did not get.
|
|
92
|
+
*/
|
|
93
|
+
declare function checkAiExplanation(raw: unknown, request: AiExplanationRequest): {
|
|
94
|
+
ok: true;
|
|
95
|
+
result: AiTextResult;
|
|
96
|
+
} | {
|
|
97
|
+
ok: false;
|
|
98
|
+
refusal: AiRefusal;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Checks a hint a port returned for `request`. On top of
|
|
102
|
+
* {@link readAiTextResult}: a hint that contains an answer is refused
|
|
103
|
+
* (`reveals-answer`) — see {@link hintRevealsAnswer}.
|
|
104
|
+
*/
|
|
105
|
+
declare function checkAiHint(raw: unknown, request: AiHintRequest): {
|
|
106
|
+
ok: true;
|
|
107
|
+
result: AiTextResult;
|
|
108
|
+
} | {
|
|
109
|
+
ok: false;
|
|
110
|
+
refusal: AiRefusal;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Whether a hint gives away an answer, judged against the facts it was asked
|
|
114
|
+
* for. It is a floor, not a proof: it finds an answer written out, not one
|
|
115
|
+
* spelled letter by letter or described.
|
|
116
|
+
*
|
|
117
|
+
* - **Multiple choice:** the text of any correct option, as whole words.
|
|
118
|
+
* - **Fill-in-the-blanks and gap select:** any accepted answer, as whole words.
|
|
119
|
+
* An answer of one short word ("is", "the") counts only where the hint
|
|
120
|
+
* writes it beside a neighbour it has in the passage — "name is", "is
|
|
121
|
+
* Rossi" — so a hint may still use the word on its own.
|
|
122
|
+
*
|
|
123
|
+
* Case, accents and punctuation are ignored on both sides.
|
|
124
|
+
*/
|
|
125
|
+
declare function hintRevealsAnswer(facts: AiItemFacts, hint: string): boolean;
|
|
126
|
+
|
|
10
127
|
/**
|
|
11
128
|
* The frozen record of what one attempt was served.
|
|
12
129
|
*
|
|
@@ -1300,6 +1417,19 @@ interface ThemeTokens {
|
|
|
1300
1417
|
* which reads on any video. Set it to a brand colour to match a product.
|
|
1301
1418
|
*/
|
|
1302
1419
|
'--lk-color-media-accent'?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* The interactive video's drawn captions. Optional like the accent above, so
|
|
1422
|
+
* a theme written before them still type-checks. The primary line's colour;
|
|
1423
|
+
* the second language's colour, which must clear 4.5:1 on the caption box;
|
|
1424
|
+
* the second line's size as a share of the first (a number, e.g. `0.85`);
|
|
1425
|
+
* and the space between the two lines. The second line differs from the
|
|
1426
|
+
* first by position and size as well as colour: colour alone would fail
|
|
1427
|
+
* WCAG 1.4.1.
|
|
1428
|
+
*/
|
|
1429
|
+
'--lk-iv-caption-color'?: string;
|
|
1430
|
+
'--lk-iv-caption-secondary-color'?: string;
|
|
1431
|
+
'--lk-iv-caption-secondary-scale'?: string;
|
|
1432
|
+
'--lk-iv-caption-gap'?: string;
|
|
1303
1433
|
'--lk-spacing-xs': string;
|
|
1304
1434
|
'--lk-spacing-sm': string;
|
|
1305
1435
|
'--lk-spacing-md': string;
|
|
@@ -1319,4 +1449,4 @@ interface ThemeTokens {
|
|
|
1319
1449
|
'--lk-transition-base': string;
|
|
1320
1450
|
}
|
|
1321
1451
|
|
|
1322
|
-
export { ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, assertRedacted, assertRedactedItemGroup, canonicalJson, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
|
1452
|
+
export { AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiExplanation, checkAiHint, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|