@intellectif/lk-core 1.8.0 → 1.9.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 +17 -0
- package/dist/ai-check.cjs +2 -2
- package/dist/ai-check.d.cts +1 -1
- package/dist/ai-check.d.ts +1 -1
- package/dist/ai-check.js +2 -2
- package/dist/{ai-writing-DeIV-GfN.js → ai-writing-DQjI9EFN.js} +130 -5
- package/dist/ai-writing-DQjI9EFN.js.map +1 -0
- package/dist/{ai-writing-Bh2Y53cY.cjs → ai-writing-DbpZpGRk.cjs} +135 -4
- package/dist/ai-writing-DbpZpGRk.cjs.map +1 -0
- package/dist/{ai-Cnm0qE8v.d.cts → ai-zhc9yhRj.d.cts} +160 -2
- package/dist/ai-zhc9yhRj.d.cts.map +1 -0
- package/dist/{ai-Cnm0qE8v.d.ts → ai-zhc9yhRj.d.ts} +160 -2
- package/dist/ai-zhc9yhRj.d.ts.map +1 -0
- package/dist/{index-DMh3OYSb.d.cts → index-BeC8tAWf.d.cts} +2 -2
- package/dist/{index-DMh3OYSb.d.cts.map → index-BeC8tAWf.d.cts.map} +1 -1
- package/dist/{index-CtoPhJAH.d.ts → index-Byar5VVs.d.ts} +2 -2
- package/dist/{index-CtoPhJAH.d.ts.map → index-Byar5VVs.d.ts.map} +1 -1
- package/dist/{index-fZ67k-WR.d.cts → index-Ccj8oL_E.d.cts} +2 -2
- package/dist/{index-fZ67k-WR.d.cts.map → index-Ccj8oL_E.d.cts.map} +1 -1
- package/dist/{index-g-EWIugp.d.ts → index-CxkqS62X.d.ts} +89 -7
- package/dist/index-CxkqS62X.d.ts.map +1 -0
- package/dist/{index-oST8GBFa.d.cts → index-DLsUnGHt.d.cts} +89 -7
- package/dist/index-DLsUnGHt.d.cts.map +1 -0
- package/dist/{index-HXvg0YRQ.d.ts → index-f4YuMgFb.d.ts} +2 -2
- package/dist/{index-HXvg0YRQ.d.ts.map → index-f4YuMgFb.d.ts.map} +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +40 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +40 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/{item-group-BceUoxoM.js → item-group-CKZk3txt.js} +2 -2
- package/dist/{item-group-BceUoxoM.js.map → item-group-CKZk3txt.js.map} +1 -1
- package/dist/{item-group-KV4hYu3a.cjs → item-group-COP5OwEC.cjs} +2 -2
- package/dist/{item-group-KV4hYu3a.cjs.map → item-group-COP5OwEC.cjs.map} +1 -1
- package/dist/{registry-tkacvJUI.js → registry-Bw9grsCN.js} +321 -11
- package/dist/registry-Bw9grsCN.js.map +1 -0
- package/dist/{registry-Cymq7Ah0.cjs → registry-C9O9txy5.cjs} +332 -10
- package/dist/registry-C9O9txy5.cjs.map +1 -0
- package/dist/{schemas-DM8sN_f0.js → schemas-BJe3W6Xb.js} +3 -3
- package/dist/{schemas-DM8sN_f0.js.map → schemas-BJe3W6Xb.js.map} +1 -1
- package/dist/{schemas-wDzbKdKa.cjs → schemas-CXlemRvB.cjs} +3 -3
- package/dist/{schemas-wDzbKdKa.cjs.map → schemas-CXlemRvB.cjs.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-DIBmo_cy.js → scoring-BGKdff2i.js} +214 -26
- package/dist/scoring-BGKdff2i.js.map +1 -0
- package/dist/{scoring-D9tFvPEG.cjs → scoring-Db1CZeAn.cjs} +219 -25
- package/dist/scoring-Db1CZeAn.cjs.map +1 -0
- package/dist/scoring.cjs +3 -2
- package/dist/scoring.d.cts +3 -3
- package/dist/scoring.d.ts +3 -3
- package/dist/scoring.js +3 -3
- package/dist/{xapi-gCAo549Q.js → xapi-BtBm8AWZ.js} +2 -2
- package/dist/{xapi-gCAo549Q.js.map → xapi-BtBm8AWZ.js.map} +1 -1
- package/dist/{xapi-Dyqcl3JK.cjs → xapi-DOAqH9__.cjs} +2 -2
- package/dist/{xapi-Dyqcl3JK.cjs.map → xapi-DOAqH9__.cjs.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 +1 -1
- package/vectors/scoring.json +11967 -1
- package/vectors/validation.json +1298 -1
- package/dist/ai-Cnm0qE8v.d.cts.map +0 -1
- package/dist/ai-Cnm0qE8v.d.ts.map +0 -1
- package/dist/ai-writing-Bh2Y53cY.cjs.map +0 -1
- package/dist/ai-writing-DeIV-GfN.js.map +0 -1
- package/dist/index-g-EWIugp.d.ts.map +0 -1
- package/dist/index-oST8GBFa.d.cts.map +0 -1
- package/dist/registry-Cymq7Ah0.cjs.map +0 -1
- package/dist/registry-tkacvJUI.js.map +0 -1
- package/dist/scoring-D9tFvPEG.cjs.map +0 -1
- package/dist/scoring-DIBmo_cy.js.map +0 -1
|
@@ -419,6 +419,7 @@ interface ActivityDataMap {
|
|
|
419
419
|
'gap-select': GapSelectData;
|
|
420
420
|
dictation: DictationData;
|
|
421
421
|
'read-aloud': ReadAloudData;
|
|
422
|
+
'speaking-response': SpeakingResponseData;
|
|
422
423
|
}
|
|
423
424
|
/**
|
|
424
425
|
* The set of activity types supported by learning-kit. Derived from
|
|
@@ -1170,6 +1171,7 @@ interface LearnerResponseMap {
|
|
|
1170
1171
|
'gap-select': GapSelectLearnerResponse;
|
|
1171
1172
|
dictation: DictationLearnerResponse;
|
|
1172
1173
|
'read-aloud': ReadAloudLearnerResponse;
|
|
1174
|
+
'speaking-response': SpeakingResponseLearnerResponse;
|
|
1173
1175
|
}
|
|
1174
1176
|
/** Union of all learner response shapes. */
|
|
1175
1177
|
type LearnerResponse = LearnerResponseMap[keyof LearnerResponseMap];
|
|
@@ -1271,6 +1273,80 @@ interface ReadAloudLearnerResponse {
|
|
|
1271
1273
|
/** Telemetry: takes used. No grade reads it. */
|
|
1272
1274
|
takes?: number;
|
|
1273
1275
|
}
|
|
1276
|
+
/**
|
|
1277
|
+
* What a speech engine measures of an open answer, which a criterion of a
|
|
1278
|
+
* speaking rubric may be scored from instead of by a judge:
|
|
1279
|
+
*
|
|
1280
|
+
* - `pronunciation` — the engine's accuracy: how close each sound is to the
|
|
1281
|
+
* locale's speech;
|
|
1282
|
+
* - `fluency` — its fluency: pace, pauses and hesitations;
|
|
1283
|
+
* - `prosody` — its prosody: stress, rhythm and intonation.
|
|
1284
|
+
*/
|
|
1285
|
+
type SpeakingMeasure = 'pronunciation' | 'fluency' | 'prosody';
|
|
1286
|
+
/**
|
|
1287
|
+
* One criterion of a speaking rubric: a written-response criterion, and
|
|
1288
|
+
* optionally the engine measure it is scored from. Without `measure` the
|
|
1289
|
+
* criterion is a judge's to score — content, organisation, range, accuracy of
|
|
1290
|
+
* the language — from the transcript; with one, the engine's measure scores it
|
|
1291
|
+
* unless the host lets the judge score measured criteria too.
|
|
1292
|
+
*/
|
|
1293
|
+
interface SpeakingRubricCriterion extends WrittenResponseRubricCriterion {
|
|
1294
|
+
measure?: SpeakingMeasure;
|
|
1295
|
+
}
|
|
1296
|
+
/** A speaking task's rubric: at least one criterion, at least one weighted above 0. */
|
|
1297
|
+
interface SpeakingRubric {
|
|
1298
|
+
label?: string;
|
|
1299
|
+
criteria: SpeakingRubricCriterion[];
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Speaking Response activity data contract: a learner answers a prompt out
|
|
1303
|
+
* loud — optionally about a picture, or after a recording — and the answer is
|
|
1304
|
+
* graded on a rubric. Deferred, like written-response: nothing grades it in the
|
|
1305
|
+
* browser. The server transcribes the take, a speech engine measures it, and
|
|
1306
|
+
* `gradeSpeakingResponse` computes the grade from a judge's criteria and the
|
|
1307
|
+
* engine's measures.
|
|
1308
|
+
*/
|
|
1309
|
+
interface SpeakingResponseData {
|
|
1310
|
+
schemaVersion: '1.0';
|
|
1311
|
+
type: 'speaking-response';
|
|
1312
|
+
id: string;
|
|
1313
|
+
title: string;
|
|
1314
|
+
/** The task, shown to the learner before the prompt: how to answer. */
|
|
1315
|
+
instructions?: string;
|
|
1316
|
+
/** What the learner speaks about, as plain text. */
|
|
1317
|
+
prompt: string;
|
|
1318
|
+
/** Rich-text prompt for display. Author content; sanitise before rendering. */
|
|
1319
|
+
promptHtml?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* The language spoken, a canonical BCP 47 tag with a region (`en-US`): the
|
|
1322
|
+
* speech engine measures pronunciation against one locale's speech.
|
|
1323
|
+
*/
|
|
1324
|
+
locale: string;
|
|
1325
|
+
/** A picture to describe, or a recording to answer. */
|
|
1326
|
+
media?: ActivityMedia;
|
|
1327
|
+
/** The limits of a take. */
|
|
1328
|
+
recording: RecordingBounds;
|
|
1329
|
+
/** What the answer is graded on. */
|
|
1330
|
+
rubric: SpeakingRubric;
|
|
1331
|
+
/** Target language and level, e.g. `"en-B1"`: told to the judge. */
|
|
1332
|
+
languageTarget?: string;
|
|
1333
|
+
passThreshold?: number;
|
|
1334
|
+
feedback?: ActivityFeedback;
|
|
1335
|
+
learningObjectives?: string[];
|
|
1336
|
+
difficultyLevel?: 1 | 2 | 3 | 4 | 5;
|
|
1337
|
+
ai?: ActivityAiPermissions;
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Learner response for a Speaking Response activity: a reference to the
|
|
1341
|
+
* recording the application stored, as a read-aloud's is.
|
|
1342
|
+
*/
|
|
1343
|
+
interface SpeakingResponseLearnerResponse {
|
|
1344
|
+
type: 'speaking-response';
|
|
1345
|
+
/** `null`: the learner submitted without recording (a blank). A take that failed to upload is never `null`. */
|
|
1346
|
+
recording: RecordingRef | null;
|
|
1347
|
+
/** Telemetry: takes used. No grade reads it. */
|
|
1348
|
+
takes?: number;
|
|
1349
|
+
}
|
|
1274
1350
|
/**
|
|
1275
1351
|
* Fine-grained outcome of the learner's action on a single item:
|
|
1276
1352
|
* - `correct` — the learner selected/entered the right answer.
|
|
@@ -2343,6 +2419,88 @@ interface AiGradingRequest {
|
|
|
2343
2419
|
* - `empty-response` — nothing was written, so there is nothing to judge.
|
|
2344
2420
|
*/
|
|
2345
2421
|
type AiGradingRequestProblem = 'not-written-response' | 'redacted' | 'no-rubric' | 'duplicate-criteria' | 'unreadable-levels' | 'empty-response';
|
|
2422
|
+
/** One criterion a judge scores on a spoken answer, as the author wrote it. */
|
|
2423
|
+
interface AiSpeakingCriterionFact extends AiGradingCriterionFact {
|
|
2424
|
+
/**
|
|
2425
|
+
* The engine measure the criterion names, when the host has the judge score
|
|
2426
|
+
* measured criteria too (`judgeMeasures`): what to listen for.
|
|
2427
|
+
*/
|
|
2428
|
+
measure?: SpeakingMeasure;
|
|
2429
|
+
}
|
|
2430
|
+
/** A criterion the engine scores: the judge is told of it, and does not score it. */
|
|
2431
|
+
interface AiSpeakingMeasureFact {
|
|
2432
|
+
name: string;
|
|
2433
|
+
measure: SpeakingMeasure;
|
|
2434
|
+
weight: number;
|
|
2435
|
+
/** The engine's score, 0..100, when it gave one. */
|
|
2436
|
+
score?: number;
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* What a model is told about a spoken answer it grades: the task as the
|
|
2440
|
+
* learner saw it, the transcript of what they said, verbatim, and the criteria
|
|
2441
|
+
* it scores.
|
|
2442
|
+
*/
|
|
2443
|
+
interface AiSpeakingGradingFacts {
|
|
2444
|
+
activityType: 'speaking-response';
|
|
2445
|
+
activityId: string;
|
|
2446
|
+
title: string;
|
|
2447
|
+
/** The language the answer is spoken in. */
|
|
2448
|
+
locale: string;
|
|
2449
|
+
instructions?: string;
|
|
2450
|
+
prompt: string;
|
|
2451
|
+
/** What the prompt is about, as the item describes its picture or recording. */
|
|
2452
|
+
media?: {
|
|
2453
|
+
type: string;
|
|
2454
|
+
alt?: string;
|
|
2455
|
+
};
|
|
2456
|
+
/**
|
|
2457
|
+
* What the learner said, from the evidence's transcript: verbatim, with its
|
|
2458
|
+
* fillers, false starts and the learner's own grammar. Every correction
|
|
2459
|
+
* quotes it.
|
|
2460
|
+
*/
|
|
2461
|
+
text: string;
|
|
2462
|
+
/** Counted with `countWords`, as the speech-rate check counts it. */
|
|
2463
|
+
wordCount: number;
|
|
2464
|
+
/** The criteria the judge scores, in the rubric's order. */
|
|
2465
|
+
rubric: AiSpeakingCriterionFact[];
|
|
2466
|
+
/** The criteria the engine scores, with what it measured: context for the feedback, never the judge's to score. */
|
|
2467
|
+
measured: AiSpeakingMeasureFact[];
|
|
2468
|
+
/** The target language and level, when the author gave one (e.g. `"en-B1"`). */
|
|
2469
|
+
languageTarget?: string;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Asks a model to grade a spoken answer from its transcript. Built on the
|
|
2473
|
+
* server, from the whole item and the take's evidence. `checkAiGrading` reads
|
|
2474
|
+
* the reply, and `gradeSpeakingResponse` computes the grade.
|
|
2475
|
+
*/
|
|
2476
|
+
interface AiSpeakingGradingRequest {
|
|
2477
|
+
feature: 'speaking-grading';
|
|
2478
|
+
facts: AiSpeakingGradingFacts;
|
|
2479
|
+
/** The material of the group the task sits in; absent outside a group. */
|
|
2480
|
+
material?: AiMaterialFacts;
|
|
2481
|
+
/** The language to write comments and feedback in, when known. */
|
|
2482
|
+
learnerLocale?: string;
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Why `aiSpeakingGradingRequest` built no request:
|
|
2486
|
+
*
|
|
2487
|
+
* - `not-speaking-response` — the item is another type;
|
|
2488
|
+
* - `redacted` — a `redact()` projection;
|
|
2489
|
+
* - `no-rubric` — no rubric, a criterion without a name and a weight, or one
|
|
2490
|
+
* whose `measure` is not one of the engine's;
|
|
2491
|
+
* - `duplicate-criteria` and `unreadable-levels` — as for a written response;
|
|
2492
|
+
* - `nothing-to-judge` — the engine scores every criterion, so there is no
|
|
2493
|
+
* judgement to ask for;
|
|
2494
|
+
* - `empty-response` — a blank, or a take the engine heard no speech in;
|
|
2495
|
+
* - `invalid-assessment` — no assessment, or one `validateSpeechAssessment`
|
|
2496
|
+
* refuses;
|
|
2497
|
+
* - `evidence-mismatch` — an assessment that is not `unscripted`, or not for
|
|
2498
|
+
* the item's locale or this response's recording, which the grade would
|
|
2499
|
+
* refuse;
|
|
2500
|
+
* - `no-transcript` — the assessment carries no `transcript`: there is no
|
|
2501
|
+
* record of what was said for a judge to read.
|
|
2502
|
+
*/
|
|
2503
|
+
type AiSpeakingGradingRequestProblem = 'not-speaking-response' | 'redacted' | 'no-rubric' | 'duplicate-criteria' | 'unreadable-levels' | 'nothing-to-judge' | 'empty-response' | 'invalid-assessment' | 'evidence-mismatch' | 'no-transcript';
|
|
2346
2504
|
/** A model's judgement of one criterion, as `checkAiGrading` accepted it. */
|
|
2347
2505
|
interface AiGradedCriterion {
|
|
2348
2506
|
/** The criterion's name, as the author wrote it. */
|
|
@@ -2966,5 +3124,5 @@ interface AiVariantsRun {
|
|
|
2966
3124
|
/** Every call, in order: the first, then each repair. */
|
|
2967
3125
|
calls: AiDraftsCall[];
|
|
2968
3126
|
}
|
|
2969
|
-
export {
|
|
2970
|
-
//# sourceMappingURL=ai-
|
|
3127
|
+
export { AiSpeakingGradingFacts as $, XAPIContextActivities as $n, ActivityType as $t, AiGapSelectFacts as A, ReadAloudLearnerResponse as An, SequenceSlot as At, AiGroupInput as B, SpeakingResponseLearnerResponse as Bn, DraftSeverity as Bt, AiDraftsCall as C, MultipleChoiceLearnerResponse as Cn, AiWritingFeedback as Ct, AiFeature as D, ReadAloudData as Dn, MediaProgress as Dt, AiExplanationRequest as E, NativeControlHint as En, ItemGroup as Et, AiGradingCriterionFact as F, ScoringOutcome as Fn, TimelineCue as Ft, AiOptionFact as G, WrittenResponseData as Gn, VersionFinding as Gt, AiItemFacts as H, SpeakingRubricCriterion as Hn, ItemFinding as Ht, AiGradingFacts as I, ScoringResult as In, DraftComplete as It, AiReadingWordFact as J, WrittenResponseRubricCriterion as Jn, ActivityData as Jt, AiProvenance as K, WrittenResponseLearnerResponse as Kn, VersionPaper as Kt, AiGradingJudgement as L, ScriptTurn as Ln, DraftContext as Lt, AiGeneratedVariant as M, RecordingBounds as Mn, Stimulus as Mt, AiGrade as N, RecordingRef as Nn, StimulusKind as Nt, AiFillInTheBlanksFacts as O, ReadAloudDimension as On, MediaTimeline as Ot, AiGradedCriterion as P, ScoringDetail as Pn, TimelineChapter as Pt, AiSpeakingCriterionFact as Q, XAPIContext as Qn, ActivityResult as Qt, AiGradingRequest as R, SpeakingMeasure as Rn, DraftIssue as Rt, AiDrafts as S, MultipleChoiceData as Sn, AiWritingFacts as St, AiDraftsRun as T, MultipleChoiceOptionMedia as Tn, AiWritingFeedbackResult as Tt, AiMaterialFacts as U, ValidationError as Un, ItemFindingSeverity as Ut, AiHintRequest as V, SpeakingRubric as Vn, DraftValidationResult as Vt, AiMultipleChoiceFacts as W, ValidationResult as Wn, VersionComparison as Wt, AiRubricCriterionFact as X, XAPIActor as Xn, ActivityFeedback as Xt, AiRefusal as Y, WrittenResponseRubricLevel as Yn, ActivityDataMap as Yt, AiSoundFact as Z, XAPIConfig as Zn, ActivityMedia as Zt, AiDraftCaption as _, ItemOutcome as _n, TextMatchResult as _r, AiVariantsRun as _t, AiCoachingRequest as a, DictationLearnerResponse as an, XAPIVerbObject as ar, AiVariantDifficulty as at, AiDraftSource as b, MediaPlaybackPolicy as bn, AiWordFact as bt, AiCriterionJudgement as c, FillInTheBlanksData as cn, GradeRouting as cr, AiVariantLevelFacts as ct, AiCritiqueFinding as d, GapSelectChoice as dn, GraderConfiguration as dr, AiVariantPair as dt, BlankConfig as en, XAPIError as er, AiSpeakingGradingRequest as et, AiCritiqueFindingResult as f, GapSelectData as fn, GraderKind as fr, AiVariantSkip as ft, AiDictationFacts as g, InteractionKind as gn, TextMatchPolicy as gr, AiVariantsRequest as gt, AiCritiqueResult as h, InteractionEvent as hn, InlineCorrection as hr, AiVariants as ht, AiCoaching as i, DictationEquivalence as in, XAPIStatement as ir, AiTextResult as it, AiGeneratedDraft as j, ReadAloudSlowMedia as jn, SequenceSlotGroup as jt, AiGapFact as k, ReadAloudDimensionWeight as kn, SequenceEntry as kt, AiCritique as l, FillInTheBlanksLearnerResponse as ln, GradeRoutingReason as lr, AiVariantMismatch as lt, AiCritiqueRequest as m, GapSelectLearnerResponse as mn, GradingState as mr, AiVariantTargets as mt, AiActivityInput as n, DeferredScoringPartial as nn, XAPIResult as nr, AiSpeakingMeasureFact as nt, AiCoachingResult as o, DictationSlowMedia as on, CriterionScore as or, AiVariantExemplarFacts as ot, AiCritiqueKind as p, GapSelectGap as pn, GraderUsage as pr, AiVariantSkipCode as pt, AiReadingFacts as q, WrittenResponseRubric as qn, VersionSlot as qt, AiBlankFact as r, DictationData as rn, XAPIScore as rr, AiSupportedActivityType as rt, AiCoachingWord as s, DictationTolerance as sn, GradeRecord as sr, AiVariantImage as st, ActivityAiPermissions as t, DeferredReason as tn, XAPIObject as tr, AiSpeakingGradingRequestProblem as tt, AiCritiqueField as u, GapSelectBank as un, Grader as ur, AiVariantMissing as ut, AiDraftProblem as v, LearnerResponse as vn, levenshteinDistance as vr, AiVerdict as vt, AiDraftsRequest as w, MultipleChoiceOption as wn, AiWritingFeedbackRequest as wt, AiDraftType as x, MediaTrack as xn, AiWritingCorrection as xt, AiDraftSettings as y, LearnerResponseMap as yn, matchText as yr, AiVideoDraft as yt, AiGradingRequestProblem as z, SpeakingResponseData as zn, DraftNotComplete as zt };
|
|
3128
|
+
//# sourceMappingURL=ai-zhc9yhRj.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-zhc9yhRj.d.cts","names":[],"sources":["../src/scoring/text-match.ts","../src/types/grading.ts","../src/types/xapi.ts","../src/types/activity.ts","../src/types/authoring.ts","../src/types/item-group.ts","../src/types/ai.ts"],"mappings":";;;;;;;;UAQiB;;EAEf;;EAEA;;;;;;;EAOA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;;;;;;;UAae;EACf;EACA;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;IAMb;;IAEA,SAAS;;;;;IAKT;MAAU;MAAiB;;;IAE3B;;IAEA;;;EAGF,OAAO,SAAS;;EAEhB;;EAEA;;EAEA,WAAW;;EAEX;IAAoB;IAAmB;;;EAEvC;IAAwB;;;EAExB,SAAS;;;;;;EAMT;IACE;IACA,UAAU,SAAS;IACnB,UAAU;;;;;;;;UASG;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;;;;;;UASe;EACf;EACA;EACA;EACA;;;UAIe;;EAEf;;EAEA;;EAEA,OAAO;;;;;;;EAOP;;EAEA,YAAY;;EAEZ,YAAY;;EAEZ,UAAU;;EAEV,OAAO;;EAEP,WAAW,SAAS;;;UAIL;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;EACV,aAAa;EACb,QAAQ;;;UAIO;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;;EAEV,SAAS;;EAET,OAAO"}
|
|
@@ -419,6 +419,7 @@ interface ActivityDataMap {
|
|
|
419
419
|
'gap-select': GapSelectData;
|
|
420
420
|
dictation: DictationData;
|
|
421
421
|
'read-aloud': ReadAloudData;
|
|
422
|
+
'speaking-response': SpeakingResponseData;
|
|
422
423
|
}
|
|
423
424
|
/**
|
|
424
425
|
* The set of activity types supported by learning-kit. Derived from
|
|
@@ -1170,6 +1171,7 @@ interface LearnerResponseMap {
|
|
|
1170
1171
|
'gap-select': GapSelectLearnerResponse;
|
|
1171
1172
|
dictation: DictationLearnerResponse;
|
|
1172
1173
|
'read-aloud': ReadAloudLearnerResponse;
|
|
1174
|
+
'speaking-response': SpeakingResponseLearnerResponse;
|
|
1173
1175
|
}
|
|
1174
1176
|
/** Union of all learner response shapes. */
|
|
1175
1177
|
type LearnerResponse = LearnerResponseMap[keyof LearnerResponseMap];
|
|
@@ -1271,6 +1273,80 @@ interface ReadAloudLearnerResponse {
|
|
|
1271
1273
|
/** Telemetry: takes used. No grade reads it. */
|
|
1272
1274
|
takes?: number;
|
|
1273
1275
|
}
|
|
1276
|
+
/**
|
|
1277
|
+
* What a speech engine measures of an open answer, which a criterion of a
|
|
1278
|
+
* speaking rubric may be scored from instead of by a judge:
|
|
1279
|
+
*
|
|
1280
|
+
* - `pronunciation` — the engine's accuracy: how close each sound is to the
|
|
1281
|
+
* locale's speech;
|
|
1282
|
+
* - `fluency` — its fluency: pace, pauses and hesitations;
|
|
1283
|
+
* - `prosody` — its prosody: stress, rhythm and intonation.
|
|
1284
|
+
*/
|
|
1285
|
+
type SpeakingMeasure = 'pronunciation' | 'fluency' | 'prosody';
|
|
1286
|
+
/**
|
|
1287
|
+
* One criterion of a speaking rubric: a written-response criterion, and
|
|
1288
|
+
* optionally the engine measure it is scored from. Without `measure` the
|
|
1289
|
+
* criterion is a judge's to score — content, organisation, range, accuracy of
|
|
1290
|
+
* the language — from the transcript; with one, the engine's measure scores it
|
|
1291
|
+
* unless the host lets the judge score measured criteria too.
|
|
1292
|
+
*/
|
|
1293
|
+
interface SpeakingRubricCriterion extends WrittenResponseRubricCriterion {
|
|
1294
|
+
measure?: SpeakingMeasure;
|
|
1295
|
+
}
|
|
1296
|
+
/** A speaking task's rubric: at least one criterion, at least one weighted above 0. */
|
|
1297
|
+
interface SpeakingRubric {
|
|
1298
|
+
label?: string;
|
|
1299
|
+
criteria: SpeakingRubricCriterion[];
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Speaking Response activity data contract: a learner answers a prompt out
|
|
1303
|
+
* loud — optionally about a picture, or after a recording — and the answer is
|
|
1304
|
+
* graded on a rubric. Deferred, like written-response: nothing grades it in the
|
|
1305
|
+
* browser. The server transcribes the take, a speech engine measures it, and
|
|
1306
|
+
* `gradeSpeakingResponse` computes the grade from a judge's criteria and the
|
|
1307
|
+
* engine's measures.
|
|
1308
|
+
*/
|
|
1309
|
+
interface SpeakingResponseData {
|
|
1310
|
+
schemaVersion: '1.0';
|
|
1311
|
+
type: 'speaking-response';
|
|
1312
|
+
id: string;
|
|
1313
|
+
title: string;
|
|
1314
|
+
/** The task, shown to the learner before the prompt: how to answer. */
|
|
1315
|
+
instructions?: string;
|
|
1316
|
+
/** What the learner speaks about, as plain text. */
|
|
1317
|
+
prompt: string;
|
|
1318
|
+
/** Rich-text prompt for display. Author content; sanitise before rendering. */
|
|
1319
|
+
promptHtml?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* The language spoken, a canonical BCP 47 tag with a region (`en-US`): the
|
|
1322
|
+
* speech engine measures pronunciation against one locale's speech.
|
|
1323
|
+
*/
|
|
1324
|
+
locale: string;
|
|
1325
|
+
/** A picture to describe, or a recording to answer. */
|
|
1326
|
+
media?: ActivityMedia;
|
|
1327
|
+
/** The limits of a take. */
|
|
1328
|
+
recording: RecordingBounds;
|
|
1329
|
+
/** What the answer is graded on. */
|
|
1330
|
+
rubric: SpeakingRubric;
|
|
1331
|
+
/** Target language and level, e.g. `"en-B1"`: told to the judge. */
|
|
1332
|
+
languageTarget?: string;
|
|
1333
|
+
passThreshold?: number;
|
|
1334
|
+
feedback?: ActivityFeedback;
|
|
1335
|
+
learningObjectives?: string[];
|
|
1336
|
+
difficultyLevel?: 1 | 2 | 3 | 4 | 5;
|
|
1337
|
+
ai?: ActivityAiPermissions;
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Learner response for a Speaking Response activity: a reference to the
|
|
1341
|
+
* recording the application stored, as a read-aloud's is.
|
|
1342
|
+
*/
|
|
1343
|
+
interface SpeakingResponseLearnerResponse {
|
|
1344
|
+
type: 'speaking-response';
|
|
1345
|
+
/** `null`: the learner submitted without recording (a blank). A take that failed to upload is never `null`. */
|
|
1346
|
+
recording: RecordingRef | null;
|
|
1347
|
+
/** Telemetry: takes used. No grade reads it. */
|
|
1348
|
+
takes?: number;
|
|
1349
|
+
}
|
|
1274
1350
|
/**
|
|
1275
1351
|
* Fine-grained outcome of the learner's action on a single item:
|
|
1276
1352
|
* - `correct` — the learner selected/entered the right answer.
|
|
@@ -2343,6 +2419,88 @@ interface AiGradingRequest {
|
|
|
2343
2419
|
* - `empty-response` — nothing was written, so there is nothing to judge.
|
|
2344
2420
|
*/
|
|
2345
2421
|
type AiGradingRequestProblem = 'not-written-response' | 'redacted' | 'no-rubric' | 'duplicate-criteria' | 'unreadable-levels' | 'empty-response';
|
|
2422
|
+
/** One criterion a judge scores on a spoken answer, as the author wrote it. */
|
|
2423
|
+
interface AiSpeakingCriterionFact extends AiGradingCriterionFact {
|
|
2424
|
+
/**
|
|
2425
|
+
* The engine measure the criterion names, when the host has the judge score
|
|
2426
|
+
* measured criteria too (`judgeMeasures`): what to listen for.
|
|
2427
|
+
*/
|
|
2428
|
+
measure?: SpeakingMeasure;
|
|
2429
|
+
}
|
|
2430
|
+
/** A criterion the engine scores: the judge is told of it, and does not score it. */
|
|
2431
|
+
interface AiSpeakingMeasureFact {
|
|
2432
|
+
name: string;
|
|
2433
|
+
measure: SpeakingMeasure;
|
|
2434
|
+
weight: number;
|
|
2435
|
+
/** The engine's score, 0..100, when it gave one. */
|
|
2436
|
+
score?: number;
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* What a model is told about a spoken answer it grades: the task as the
|
|
2440
|
+
* learner saw it, the transcript of what they said, verbatim, and the criteria
|
|
2441
|
+
* it scores.
|
|
2442
|
+
*/
|
|
2443
|
+
interface AiSpeakingGradingFacts {
|
|
2444
|
+
activityType: 'speaking-response';
|
|
2445
|
+
activityId: string;
|
|
2446
|
+
title: string;
|
|
2447
|
+
/** The language the answer is spoken in. */
|
|
2448
|
+
locale: string;
|
|
2449
|
+
instructions?: string;
|
|
2450
|
+
prompt: string;
|
|
2451
|
+
/** What the prompt is about, as the item describes its picture or recording. */
|
|
2452
|
+
media?: {
|
|
2453
|
+
type: string;
|
|
2454
|
+
alt?: string;
|
|
2455
|
+
};
|
|
2456
|
+
/**
|
|
2457
|
+
* What the learner said, from the evidence's transcript: verbatim, with its
|
|
2458
|
+
* fillers, false starts and the learner's own grammar. Every correction
|
|
2459
|
+
* quotes it.
|
|
2460
|
+
*/
|
|
2461
|
+
text: string;
|
|
2462
|
+
/** Counted with `countWords`, as the speech-rate check counts it. */
|
|
2463
|
+
wordCount: number;
|
|
2464
|
+
/** The criteria the judge scores, in the rubric's order. */
|
|
2465
|
+
rubric: AiSpeakingCriterionFact[];
|
|
2466
|
+
/** The criteria the engine scores, with what it measured: context for the feedback, never the judge's to score. */
|
|
2467
|
+
measured: AiSpeakingMeasureFact[];
|
|
2468
|
+
/** The target language and level, when the author gave one (e.g. `"en-B1"`). */
|
|
2469
|
+
languageTarget?: string;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Asks a model to grade a spoken answer from its transcript. Built on the
|
|
2473
|
+
* server, from the whole item and the take's evidence. `checkAiGrading` reads
|
|
2474
|
+
* the reply, and `gradeSpeakingResponse` computes the grade.
|
|
2475
|
+
*/
|
|
2476
|
+
interface AiSpeakingGradingRequest {
|
|
2477
|
+
feature: 'speaking-grading';
|
|
2478
|
+
facts: AiSpeakingGradingFacts;
|
|
2479
|
+
/** The material of the group the task sits in; absent outside a group. */
|
|
2480
|
+
material?: AiMaterialFacts;
|
|
2481
|
+
/** The language to write comments and feedback in, when known. */
|
|
2482
|
+
learnerLocale?: string;
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Why `aiSpeakingGradingRequest` built no request:
|
|
2486
|
+
*
|
|
2487
|
+
* - `not-speaking-response` — the item is another type;
|
|
2488
|
+
* - `redacted` — a `redact()` projection;
|
|
2489
|
+
* - `no-rubric` — no rubric, a criterion without a name and a weight, or one
|
|
2490
|
+
* whose `measure` is not one of the engine's;
|
|
2491
|
+
* - `duplicate-criteria` and `unreadable-levels` — as for a written response;
|
|
2492
|
+
* - `nothing-to-judge` — the engine scores every criterion, so there is no
|
|
2493
|
+
* judgement to ask for;
|
|
2494
|
+
* - `empty-response` — a blank, or a take the engine heard no speech in;
|
|
2495
|
+
* - `invalid-assessment` — no assessment, or one `validateSpeechAssessment`
|
|
2496
|
+
* refuses;
|
|
2497
|
+
* - `evidence-mismatch` — an assessment that is not `unscripted`, or not for
|
|
2498
|
+
* the item's locale or this response's recording, which the grade would
|
|
2499
|
+
* refuse;
|
|
2500
|
+
* - `no-transcript` — the assessment carries no `transcript`: there is no
|
|
2501
|
+
* record of what was said for a judge to read.
|
|
2502
|
+
*/
|
|
2503
|
+
type AiSpeakingGradingRequestProblem = 'not-speaking-response' | 'redacted' | 'no-rubric' | 'duplicate-criteria' | 'unreadable-levels' | 'nothing-to-judge' | 'empty-response' | 'invalid-assessment' | 'evidence-mismatch' | 'no-transcript';
|
|
2346
2504
|
/** A model's judgement of one criterion, as `checkAiGrading` accepted it. */
|
|
2347
2505
|
interface AiGradedCriterion {
|
|
2348
2506
|
/** The criterion's name, as the author wrote it. */
|
|
@@ -2966,5 +3124,5 @@ interface AiVariantsRun {
|
|
|
2966
3124
|
/** Every call, in order: the first, then each repair. */
|
|
2967
3125
|
calls: AiDraftsCall[];
|
|
2968
3126
|
}
|
|
2969
|
-
export {
|
|
2970
|
-
//# sourceMappingURL=ai-
|
|
3127
|
+
export { AiSpeakingGradingFacts as $, XAPIContextActivities as $n, ActivityType as $t, AiGapSelectFacts as A, ReadAloudLearnerResponse as An, SequenceSlot as At, AiGroupInput as B, SpeakingResponseLearnerResponse as Bn, DraftSeverity as Bt, AiDraftsCall as C, MultipleChoiceLearnerResponse as Cn, AiWritingFeedback as Ct, AiFeature as D, ReadAloudData as Dn, MediaProgress as Dt, AiExplanationRequest as E, NativeControlHint as En, ItemGroup as Et, AiGradingCriterionFact as F, ScoringOutcome as Fn, TimelineCue as Ft, AiOptionFact as G, WrittenResponseData as Gn, VersionFinding as Gt, AiItemFacts as H, SpeakingRubricCriterion as Hn, ItemFinding as Ht, AiGradingFacts as I, ScoringResult as In, DraftComplete as It, AiReadingWordFact as J, WrittenResponseRubricCriterion as Jn, ActivityData as Jt, AiProvenance as K, WrittenResponseLearnerResponse as Kn, VersionPaper as Kt, AiGradingJudgement as L, ScriptTurn as Ln, DraftContext as Lt, AiGeneratedVariant as M, RecordingBounds as Mn, Stimulus as Mt, AiGrade as N, RecordingRef as Nn, StimulusKind as Nt, AiFillInTheBlanksFacts as O, ReadAloudDimension as On, MediaTimeline as Ot, AiGradedCriterion as P, ScoringDetail as Pn, TimelineChapter as Pt, AiSpeakingCriterionFact as Q, XAPIContext as Qn, ActivityResult as Qt, AiGradingRequest as R, SpeakingMeasure as Rn, DraftIssue as Rt, AiDrafts as S, MultipleChoiceData as Sn, AiWritingFacts as St, AiDraftsRun as T, MultipleChoiceOptionMedia as Tn, AiWritingFeedbackResult as Tt, AiMaterialFacts as U, ValidationError as Un, ItemFindingSeverity as Ut, AiHintRequest as V, SpeakingRubric as Vn, DraftValidationResult as Vt, AiMultipleChoiceFacts as W, ValidationResult as Wn, VersionComparison as Wt, AiRubricCriterionFact as X, XAPIActor as Xn, ActivityFeedback as Xt, AiRefusal as Y, WrittenResponseRubricLevel as Yn, ActivityDataMap as Yt, AiSoundFact as Z, XAPIConfig as Zn, ActivityMedia as Zt, AiDraftCaption as _, ItemOutcome as _n, TextMatchResult as _r, AiVariantsRun as _t, AiCoachingRequest as a, DictationLearnerResponse as an, XAPIVerbObject as ar, AiVariantDifficulty as at, AiDraftSource as b, MediaPlaybackPolicy as bn, AiWordFact as bt, AiCriterionJudgement as c, FillInTheBlanksData as cn, GradeRouting as cr, AiVariantLevelFacts as ct, AiCritiqueFinding as d, GapSelectChoice as dn, GraderConfiguration as dr, AiVariantPair as dt, BlankConfig as en, XAPIError as er, AiSpeakingGradingRequest as et, AiCritiqueFindingResult as f, GapSelectData as fn, GraderKind as fr, AiVariantSkip as ft, AiDictationFacts as g, InteractionKind as gn, TextMatchPolicy as gr, AiVariantsRequest as gt, AiCritiqueResult as h, InteractionEvent as hn, InlineCorrection as hr, AiVariants as ht, AiCoaching as i, DictationEquivalence as in, XAPIStatement as ir, AiTextResult as it, AiGeneratedDraft as j, ReadAloudSlowMedia as jn, SequenceSlotGroup as jt, AiGapFact as k, ReadAloudDimensionWeight as kn, SequenceEntry as kt, AiCritique as l, FillInTheBlanksLearnerResponse as ln, GradeRoutingReason as lr, AiVariantMismatch as lt, AiCritiqueRequest as m, GapSelectLearnerResponse as mn, GradingState as mr, AiVariantTargets as mt, AiActivityInput as n, DeferredScoringPartial as nn, XAPIResult as nr, AiSpeakingMeasureFact as nt, AiCoachingResult as o, DictationSlowMedia as on, CriterionScore as or, AiVariantExemplarFacts as ot, AiCritiqueKind as p, GapSelectGap as pn, GraderUsage as pr, AiVariantSkipCode as pt, AiReadingFacts as q, WrittenResponseRubric as qn, VersionSlot as qt, AiBlankFact as r, DictationData as rn, XAPIScore as rr, AiSupportedActivityType as rt, AiCoachingWord as s, DictationTolerance as sn, GradeRecord as sr, AiVariantImage as st, ActivityAiPermissions as t, DeferredReason as tn, XAPIObject as tr, AiSpeakingGradingRequestProblem as tt, AiCritiqueField as u, GapSelectBank as un, Grader as ur, AiVariantMissing as ut, AiDraftProblem as v, LearnerResponse as vn, levenshteinDistance as vr, AiVerdict as vt, AiDraftsRequest as w, MultipleChoiceOption as wn, AiWritingFeedbackRequest as wt, AiDraftType as x, MediaTrack as xn, AiWritingCorrection as xt, AiDraftSettings as y, LearnerResponseMap as yn, matchText as yr, AiVideoDraft as yt, AiGradingRequestProblem as z, SpeakingResponseData as zn, DraftNotComplete as zt };
|
|
3128
|
+
//# sourceMappingURL=ai-zhc9yhRj.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-zhc9yhRj.d.ts","names":[],"sources":["../src/scoring/text-match.ts","../src/types/grading.ts","../src/types/xapi.ts","../src/types/activity.ts","../src/types/authoring.ts","../src/types/item-group.ts","../src/types/ai.ts"],"mappings":";;;;;;;;UAQiB;;EAEf;;EAEA;;;;;;;EAOA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;;;;;;;UAae;EACf;EACA;;;;;;iBAmDc,oBAAoB,WAAW,WAAW;;;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MAAiB;;;IAE3B;;IAEA;;;EAGF,OAAO,SAAS;;EAEhB;;EAEA;;EAEA,WAAW;;EAEX;IAAoB;IAAmB;;;EAEvC;IAAwB;;;EAExB,SAAS;;;;;;EAMT;IACE;IACA,UAAU,SAAS;IACnB,UAAU;;;;;;;;UASG;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;;;;;;UASe;EACf;EACA;EACA;EACA;;;UAIe;;EAEf;;EAEA;;EAEA,OAAO;;;;;;;EAOP;;EAEA,YAAY;;EAEZ,YAAY;;EAEZ,UAAU;;EAEV,OAAO;;EAEP,WAAW,SAAS;;;UAIL;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;EACV,aAAa;EACb,QAAQ;;;UAIO;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;;EAEV,SAAS;;EAET,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { In as ScoringResult, Qn as XAPIContext, Xn as XAPIActor, ir as XAPIStatement, nr as XAPIResult } from "./ai-zhc9yhRj.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The set of xAPI verbs emitted by SDK activities, keyed by a stable
|
|
4
4
|
* identifier mapped to its canonical xAPI verb IRI (xAPI 1.0.3 / ADL registry).
|
|
@@ -144,4 +144,4 @@ declare function xapiDefinitionFor(data: {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function validateXAPIStatement(statement: XAPIStatement): void;
|
|
146
146
|
export { XAPIObjectParams as a, xapiDefinitionFor as c, XAPI_VERB_DISPLAY as d, SubmittedStatementParams as i, XAPIVerb as l, AnsweredStatementParams as n, XAPIStatementParams as o, CompletedStatementParams as r, xAPIBuilder as s, validateXAPIStatement as t, XAPIVerbKey as u };
|
|
147
|
-
//# sourceMappingURL=index-
|
|
147
|
+
//# sourceMappingURL=index-BeC8tAWf.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BeC8tAWf.d.cts","names":[],"sources":["../src/xapi/verbs.ts","../src/xapi/builder.ts","../src/xapi/validators.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BD,2BAA2B;;;;;cAM1B,mBAAmB,OAAO,aAAa;;UCxBnC;;EAEf;EACA,OAAO;EACP,cAAc;;EAEd;;EAEA;;EAEA;;EAEA,UAAU;IAAQ;IAAY,cAAc;;;;UAI7B;EACf,OAAO;EACP,MAAM;EACN,QAAQ;EACR,SAAS;EACT,UAAU;;;UAIK;EACf,OAAO;EACP,QAAQ;EACR,eAAe;EACf;;EAEA;EACA,UAAU;EACV,mBAAmB;;;;;;;UAQJ;EACf,OAAO;EACP,QAAQ;EACR;;EAEA;EACA,UAAU;EACV,mBAAmB;;;UAIJ;EACf,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB;EACA,UAAU;EACV,mBAAmB;;;;;;;cAiGR;EACY,eAAA,QAAA,sBAAsB;EAoBd,uBAAA,QAAA,0BAA0B;;;;;;;EAqBzB,wBAAA,QAAA,2BAA2B;EAc3B,wBAAA,QAAA,2BAA2B;;;;;;;;;;;;;;;;iBA8B7C,kBAAkB;EAAQ;IAAiB,QAAQ;;;;;;;;;;;;;;iBClHnD,sBAAsB,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { In as ScoringResult, Qn as XAPIContext, Xn as XAPIActor, ir as XAPIStatement, nr as XAPIResult } from "./ai-zhc9yhRj.js";
|
|
2
2
|
/**
|
|
3
3
|
* The set of xAPI verbs emitted by SDK activities, keyed by a stable
|
|
4
4
|
* identifier mapped to its canonical xAPI verb IRI (xAPI 1.0.3 / ADL registry).
|
|
@@ -144,4 +144,4 @@ declare function xapiDefinitionFor(data: {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function validateXAPIStatement(statement: XAPIStatement): void;
|
|
146
146
|
export { XAPIObjectParams as a, xapiDefinitionFor as c, XAPI_VERB_DISPLAY as d, SubmittedStatementParams as i, XAPIVerb as l, AnsweredStatementParams as n, XAPIStatementParams as o, CompletedStatementParams as r, xAPIBuilder as s, validateXAPIStatement as t, XAPIVerbKey as u };
|
|
147
|
-
//# sourceMappingURL=index-
|
|
147
|
+
//# sourceMappingURL=index-Byar5VVs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Byar5VVs.d.ts","names":[],"sources":["../src/xapi/verbs.ts","../src/xapi/builder.ts","../src/xapi/validators.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BD,2BAA2B;;;;;cAM1B,mBAAmB,OAAO,aAAa;;UCxBnC;;EAEf;EACA,OAAO;EACP,cAAc;;EAEd;;EAEA;;EAEA;;EAEA,UAAU;IAAQ;IAAY,cAAc;;;;UAI7B;EACf,OAAO;EACP,MAAM;EACN,QAAQ;EACR,SAAS;EACT,UAAU;;;UAIK;EACf,OAAO;EACP,QAAQ;EACR,eAAe;EACf;;EAEA;EACA,UAAU;EACV,mBAAmB;;;;;;;UAQJ;EACf,OAAO;EACP,QAAQ;EACR;;EAEA;EACA,UAAU;EACV,mBAAmB;;;UAIJ;EACf,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB;EACA,UAAU;EACV,mBAAmB;;;;;;;cAiGR;EACY,eAAA,QAAA,sBAAsB;EAoBd,uBAAA,QAAA,0BAA0B;;;;;;;EAqBzB,wBAAA,QAAA,2BAA2B;EAc3B,wBAAA,QAAA,2BAA2B;;;;;;;;;;;;;;;;iBA8B7C,kBAAkB;EAAQ;IAAiB,QAAQ;;;;;;;;;;;;;;iBClHnD,sBAAsB,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as ActivityType, Et as ItemGroup, Tn as MultipleChoiceOptionMedia, Wn as ValidationResult, Yt as ActivityDataMap, Zt as ActivityMedia } from "./ai-zhc9yhRj.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The learner-safe SHAPE of each built-in type.
|
|
4
4
|
*
|
|
@@ -362,4 +362,4 @@ declare function validateOptionMedia(value: unknown): ValidationResult<MultipleC
|
|
|
362
362
|
*/
|
|
363
363
|
declare function validateActivity<T extends ActivityType>(type: T, data: unknown): ValidationResult<ActivityDataMap[T]>;
|
|
364
364
|
export { RedactedStimulus as A, RedactedGapSelectChoice as C, RedactedMultipleChoiceOption as D, RedactedMultipleChoiceData as E, RedactedMultipleChoiceOptionMedia as O, RedactedGapSelectBank as S, RedactedGapSelectGap as T, RedactedActivity as _, JsonSchemaTarget as a, RedactedDictationSlowMedia as b, fillInTheBlanksJsonSchema as c, jsonSchemaFor as d, multipleChoiceJsonSchema as f, validateItemGroup as g, writtenResponseJsonSchema as h, SCRIPT_MAX_TURNS as i, RedactedWrittenResponseData as j, RedactedReadAloudData as k, gapSelectJsonSchema as l, stimulusJsonSchema as m, validateMedia as n, contentJsonSchema as o, readAloudJsonSchema as p, validateOptionMedia as r, dictationJsonSchema as s, validateActivity as t, itemGroupJsonSchema as u, RedactedBlankConfig as v, RedactedGapSelectData as w, RedactedFillInTheBlanksData as x, RedactedDictationData as y };
|
|
365
|
-
//# sourceMappingURL=index-
|
|
365
|
+
//# sourceMappingURL=index-Ccj8oL_E.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Ccj8oL_E.d.cts","names":[],"sources":["../src/types/redacted.ts","../src/schemas/item-group.ts","../src/schemas/json-schema.ts","../src/schemas/media.ts","../src/schemas/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAoBU;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA,SAAS;EACT;EACA,WAAW;;;UAIH;EACR;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;E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