@mentingo/luma-sdk 0.0.0-stage → 0.3.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.
@@ -0,0 +1,3599 @@
1
+ import { AxiosInstance, AxiosRequestConfig, ResponseType, AxiosResponse } from 'axios';
2
+ import { Socket } from 'socket.io-client';
3
+
4
+ /**
5
+ * TurnStatus
6
+ * Enumerate the aggregate lifecycle states exposed for one conversational request.
7
+ */
8
+ declare enum TurnStatus {
9
+ Queued = "queued",
10
+ Running = "running",
11
+ WaitingAuthor = "waiting_author",
12
+ Completed = "completed",
13
+ Failed = "failed",
14
+ Stopped = "stopped"
15
+ }
16
+ /**
17
+ * TurnPartStatus
18
+ * Describe the lifecycle of one stable assistant response part.
19
+ */
20
+ declare enum TurnPartStatus {
21
+ Streaming = "streaming",
22
+ Completed = "completed",
23
+ Failed = "failed",
24
+ Stopped = "stopped",
25
+ Review = "review"
26
+ }
27
+ /**
28
+ * TurnPartKind
29
+ * Identify a user-visible part of one authoring assistant response.
30
+ */
31
+ declare enum TurnPartKind {
32
+ Text = "text",
33
+ Tool = "tool",
34
+ Proposal = "proposal",
35
+ Question = "question"
36
+ }
37
+ /**
38
+ * TaskKind
39
+ * Enumerate graph task kinds persisted in task contracts and dispatch records.
40
+ */
41
+ declare enum TaskKind {
42
+ Plan = "plan",
43
+ Route = "route",
44
+ Research = "research",
45
+ DetailedPlan = "detailed_plan",
46
+ Lesson = "lesson",
47
+ Edit = "edit",
48
+ Source = "source",
49
+ Asset = "asset",
50
+ CourseReview = "course_review"
51
+ }
52
+ /**
53
+ * ReasoningEffort
54
+ * Bound provider reasoning according to the request's actual work.
55
+ */
56
+ declare enum ReasoningEffort {
57
+ Low = "low",
58
+ Medium = "medium",
59
+ High = "high"
60
+ }
61
+ /**
62
+ * PlanningScope
63
+ * Constrain outline planning to a whole course or newly appended chapters.
64
+ */
65
+ declare enum PlanningScope {
66
+ Course = "course",
67
+ AppendChapter = "append_chapter",
68
+ AppendLesson = "append_lesson"
69
+ }
70
+ /**
71
+ * ContentMode
72
+ * Distinguish fact-based authoring from an explicitly requested illustrative draft.
73
+ */
74
+ declare enum ContentMode {
75
+ Verified = "verified",
76
+ Illustrative = "illustrative"
77
+ }
78
+ /** AiRuntimeResolutionErrorCode */
79
+ declare enum AiRuntimeResolutionErrorCode {
80
+ ApiKeyNotFound = "api_key_not_found",
81
+ DomainNotSupported = "domain_not_supported",
82
+ ModeNotAllowed = "mode_not_allowed",
83
+ CustomProfileRequired = "custom_profile_required",
84
+ CustomProfileNotFound = "custom_profile_not_found",
85
+ CustomProfileKindMismatch = "custom_profile_kind_mismatch",
86
+ CustomProfileSecretMissing = "custom_profile_secret_missing",
87
+ CoreProviderKeyMissing = "core_provider_key_missing",
88
+ Disabled = "disabled"
89
+ }
90
+ /** AiModelProfileKind */
91
+ declare enum AiModelProfileKind {
92
+ Chat = "chat",
93
+ Image = "image",
94
+ Embedding = "embedding",
95
+ SpeechToText = "speechToText",
96
+ TextToSpeech = "textToSpeech"
97
+ }
98
+ /** AiModelDomain */
99
+ declare enum AiModelDomain {
100
+ AiMentor = "aiMentor",
101
+ AiMentorJudge = "aiMentorJudge",
102
+ AiMentorConfigurationGenerator = "aiMentorConfigurationGenerator",
103
+ AiJudgeConfigurationGenerator = "aiJudgeConfigurationGenerator",
104
+ AiJudgeConfigurationValidator = "aiJudgeConfigurationValidator",
105
+ Translations = "translations",
106
+ CourseGeneration = "courseGeneration",
107
+ CourseGenerationVisualAssets = "courseGenerationVisualAssets",
108
+ CourseGenerationEmbeddings = "courseGenerationEmbeddings",
109
+ Embeddings = "embeddings",
110
+ DictationTranscription = "dictationTranscription",
111
+ VoiceTranscription = "voiceTranscription",
112
+ VoiceTts = "voiceTts"
113
+ }
114
+ /** AiMentorConfigurationValidationSeverity */
115
+ declare enum AiMentorConfigurationValidationSeverity {
116
+ Error = "error",
117
+ Warning = "warning"
118
+ }
119
+ /** AiMentorConfigurationType */
120
+ declare enum AiMentorConfigurationType {
121
+ Teacher = "teacher",
122
+ Roleplay = "roleplay"
123
+ }
124
+ /** AiMentorConfigurationField */
125
+ declare enum AiMentorConfigurationField {
126
+ TaskGoal = "taskGoal",
127
+ Expertise = "expertise",
128
+ ContentScope = "contentScope",
129
+ TeachingStyle = "teachingStyle",
130
+ FeedbackGuidance = "feedbackGuidance",
131
+ Scenario = "scenario",
132
+ AiRole = "aiRole",
133
+ LearnerRole = "learnerRole",
134
+ CharacterGoal = "characterGoal",
135
+ Difficulty = "difficulty",
136
+ FactsAndConstraints = "factsAndConstraints",
137
+ OpeningInstruction = "openingInstruction",
138
+ AdditionalInstructions = "additionalInstructions"
139
+ }
140
+ /** AiCapabilityProvider */
141
+ declare enum AiCapabilityProvider {
142
+ Luma = "luma",
143
+ MentingoCore = "mentingo-core"
144
+ }
145
+ /** AiCapabilityMode */
146
+ declare enum AiCapabilityMode {
147
+ Core = "core",
148
+ Custom = "custom",
149
+ Disabled = "disabled"
150
+ }
151
+ /** AiCapability */
152
+ declare enum AiCapability {
153
+ CourseGeneration = "courseGeneration",
154
+ CourseGenerationVisualAssets = "courseGenerationVisualAssets",
155
+ CourseGenerationEmbeddings = "courseGenerationEmbeddings",
156
+ AiMentorChat = "aiMentorChat",
157
+ AiMentorJudge = "aiMentorJudge",
158
+ AiMentorConfigurationGenerator = "aiMentorConfigurationGenerator",
159
+ AiJudgeConfigurationGenerator = "aiJudgeConfigurationGenerator",
160
+ AiJudgeConfigurationValidator = "aiJudgeConfigurationValidator",
161
+ AiMentorRagEmbeddings = "aiMentorRagEmbeddings",
162
+ TranslationGeneration = "translationGeneration",
163
+ DictationTranscription = "dictationTranscription",
164
+ VoiceTranscription = "voiceTranscription",
165
+ VoiceMentor = "voiceMentor",
166
+ VoiceTextToSpeech = "voiceTextToSpeech"
167
+ }
168
+ /** AiCapabilityStatus */
169
+ interface AiCapabilityStatus {
170
+ /** Enabled */
171
+ enabled: boolean;
172
+ mode: AiCapabilityMode;
173
+ provider: AiCapabilityProvider | null;
174
+ reason?: AiRuntimeResolutionErrorCode | null;
175
+ }
176
+ /** AiJudgeBlockingErrorValidationTarget */
177
+ interface AiJudgeBlockingErrorValidationTarget {
178
+ /** Type */
179
+ type: "blockingError";
180
+ /**
181
+ * Ref
182
+ * @pattern ^B[1-9]\d*$
183
+ */
184
+ ref: string;
185
+ /** Field */
186
+ field: string | null;
187
+ }
188
+ /** AiJudgeConfigurationBlockingError */
189
+ interface AiJudgeConfigurationBlockingError {
190
+ /**
191
+ * Ref
192
+ * @pattern ^B[1-9]\d*$
193
+ */
194
+ ref: string;
195
+ /**
196
+ * Description
197
+ * @minLength 1
198
+ */
199
+ description: string;
200
+ }
201
+ /** AiJudgeConfigurationCriterion */
202
+ interface AiJudgeConfigurationCriterion {
203
+ /**
204
+ * Ref
205
+ * @pattern ^C[1-9]\d*$
206
+ */
207
+ ref: string;
208
+ /**
209
+ * Title
210
+ * @minLength 1
211
+ * @maxLength 80
212
+ */
213
+ title: string;
214
+ /**
215
+ * Expectedbehavior
216
+ * @minLength 1
217
+ */
218
+ expectedBehavior: string;
219
+ /**
220
+ * Maxscore
221
+ * @min 1
222
+ * @max 5
223
+ */
224
+ maxScore: number;
225
+ /** Scoreguidance */
226
+ scoreGuidance: AiJudgeConfigurationScoreGuidance[];
227
+ }
228
+ /** AiJudgeConfigurationResponse */
229
+ interface AiJudgeConfigurationResponseInput {
230
+ /**
231
+ * Taskgoal
232
+ * @minLength 1
233
+ */
234
+ taskGoal: string;
235
+ /**
236
+ * Passingthresholdpercent
237
+ * @min 0
238
+ * @max 100
239
+ */
240
+ passingThresholdPercent: number;
241
+ /** Criteria */
242
+ criteria: AiJudgeConfigurationCriterion[];
243
+ /** Blockingerrors */
244
+ blockingErrors: AiJudgeConfigurationBlockingError[];
245
+ }
246
+ /** AiJudgeConfigurationResponse */
247
+ interface AiJudgeConfigurationResponseOutput {
248
+ /**
249
+ * Taskgoal
250
+ * @minLength 1
251
+ */
252
+ taskGoal: string;
253
+ /**
254
+ * Passingthresholdpercent
255
+ * @min 0
256
+ * @max 100
257
+ */
258
+ passingThresholdPercent: number;
259
+ /** Criteria */
260
+ criteria: AiJudgeConfigurationCriterion[];
261
+ /** Blockingerrors */
262
+ blockingErrors: AiJudgeConfigurationBlockingError[];
263
+ }
264
+ /** AiJudgeConfigurationScoreGuidance */
265
+ interface AiJudgeConfigurationScoreGuidance {
266
+ /**
267
+ * Score
268
+ * @min 0
269
+ * @max 5
270
+ */
271
+ score: number;
272
+ /**
273
+ * Description
274
+ * @minLength 1
275
+ */
276
+ description: string;
277
+ /** Example */
278
+ example: string | null;
279
+ }
280
+ /** AiJudgeConfigurationValidationResponse */
281
+ interface AiJudgeConfigurationValidationResponse {
282
+ /**
283
+ * Summary
284
+ * @minLength 1
285
+ * @maxLength 180
286
+ */
287
+ summary: string;
288
+ /**
289
+ * Issues
290
+ * @maxItems 3
291
+ */
292
+ issues: AiJudgeValidationIssue[];
293
+ }
294
+ /** AiJudgeConfigurationValidationTarget */
295
+ interface AiJudgeConfigurationValidationTarget {
296
+ /** Type */
297
+ type: "configuration";
298
+ /** Field */
299
+ field: string | null;
300
+ }
301
+ /** AiJudgeCriterionValidationTarget */
302
+ interface AiJudgeCriterionValidationTarget {
303
+ /** Type */
304
+ type: "criterion";
305
+ /**
306
+ * Ref
307
+ * @pattern ^C[1-9]\d*$
308
+ */
309
+ ref: string;
310
+ /** Field */
311
+ field: string | null;
312
+ }
313
+ /** AiJudgeScoreGuidanceValidationTarget */
314
+ interface AiJudgeScoreGuidanceValidationTarget {
315
+ /** Type */
316
+ type: "scoreGuidance";
317
+ /**
318
+ * Ref
319
+ * @pattern ^C[1-9]\d*$
320
+ */
321
+ ref: string;
322
+ /**
323
+ * Score
324
+ * @min 0
325
+ * @max 5
326
+ */
327
+ score: number;
328
+ /** Field */
329
+ field: string | null;
330
+ }
331
+ /** AiJudgeValidationIssue */
332
+ interface AiJudgeValidationIssue {
333
+ /**
334
+ * Code
335
+ * @minLength 1
336
+ */
337
+ code: string;
338
+ /** Severity */
339
+ severity: "error" | "warning";
340
+ /** Target */
341
+ target: ({
342
+ type: "blockingError";
343
+ } & AiJudgeBlockingErrorValidationTarget) | ({
344
+ type: "configuration";
345
+ } & AiJudgeConfigurationValidationTarget) | ({
346
+ type: "criterion";
347
+ } & AiJudgeCriterionValidationTarget) | ({
348
+ type: "scoreGuidance";
349
+ } & AiJudgeScoreGuidanceValidationTarget);
350
+ /**
351
+ * Message
352
+ * @minLength 1
353
+ * @maxLength 160
354
+ */
355
+ message: string;
356
+ /**
357
+ * Correction
358
+ * @minLength 1
359
+ * @maxLength 220
360
+ */
361
+ correction: string;
362
+ }
363
+ /** AiMentorConfigurationValidationIssue */
364
+ interface AiMentorConfigurationValidationIssue {
365
+ /**
366
+ * Code
367
+ * @minLength 1
368
+ */
369
+ code: string;
370
+ severity: AiMentorConfigurationValidationSeverity;
371
+ target: AiMentorConfigurationValidationTarget;
372
+ /**
373
+ * Message
374
+ * @minLength 1
375
+ */
376
+ message: string;
377
+ /**
378
+ * Correction
379
+ * @minLength 1
380
+ */
381
+ correction: string;
382
+ }
383
+ /** AiMentorConfigurationValidationResponse */
384
+ interface AiMentorConfigurationValidationResponse {
385
+ /**
386
+ * Summary
387
+ * @minLength 1
388
+ * @maxLength 180
389
+ */
390
+ summary: string;
391
+ /**
392
+ * Issues
393
+ * @maxItems 3
394
+ */
395
+ issues: AiMentorConfigurationValidationIssue[];
396
+ }
397
+ /** AiMentorConfigurationValidationTarget */
398
+ interface AiMentorConfigurationValidationTarget {
399
+ field: AiMentorConfigurationField;
400
+ }
401
+ /** AiMentorRoleplayConfigurationResponse */
402
+ interface AiMentorRoleplayConfigurationResponse {
403
+ /**
404
+ * Scenario
405
+ * @minLength 1
406
+ */
407
+ scenario: string;
408
+ /**
409
+ * Airole
410
+ * @minLength 1
411
+ */
412
+ aiRole: string;
413
+ /**
414
+ * Learnerrole
415
+ * @minLength 1
416
+ */
417
+ learnerRole: string;
418
+ /**
419
+ * Charactergoal
420
+ * @minLength 1
421
+ */
422
+ characterGoal: string;
423
+ /** Difficulty */
424
+ difficulty: "cooperative" | "realistic" | "challenging";
425
+ /** Factsandconstraints */
426
+ factsAndConstraints: string | null;
427
+ /** Openinginstruction */
428
+ openingInstruction: string | null;
429
+ /** Additionalinstructions */
430
+ additionalInstructions: string | null;
431
+ }
432
+ /** AiMentorTeacherConfigurationResponse */
433
+ interface AiMentorTeacherConfigurationResponse {
434
+ /**
435
+ * Taskgoal
436
+ * @minLength 1
437
+ */
438
+ taskGoal: string;
439
+ /**
440
+ * Expertise
441
+ * @minLength 1
442
+ */
443
+ expertise: string;
444
+ /**
445
+ * Contentscope
446
+ * @minLength 1
447
+ */
448
+ contentScope: string;
449
+ /** Teachingstyle */
450
+ teachingStyle: "explain_and_practice" | "guided_discovery" | "socratic";
451
+ /** Feedbackguidance */
452
+ feedbackGuidance: string | null;
453
+ /** Openinginstruction */
454
+ openingInstruction: string | null;
455
+ /** Additionalinstructions */
456
+ additionalInstructions: string | null;
457
+ }
458
+ /** AiModelAssignmentResponse */
459
+ interface AiModelAssignmentResponse {
460
+ /**
461
+ * Id
462
+ * @format uuid
463
+ */
464
+ id: string;
465
+ /**
466
+ * Apikeyid
467
+ * @format uuid
468
+ */
469
+ apiKeyId: string;
470
+ domain: AiModelDomain;
471
+ mode: AiCapabilityMode;
472
+ /** Modelprofileid */
473
+ modelProfileId: string | null;
474
+ /**
475
+ * Createdat
476
+ * @format date-time
477
+ */
478
+ createdAt: string;
479
+ /**
480
+ * Updatedat
481
+ * @format date-time
482
+ */
483
+ updatedAt: string;
484
+ }
485
+ /** AiModelAssignmentUpdateRequest */
486
+ interface AiModelAssignmentUpdateRequest {
487
+ mode: AiCapabilityMode;
488
+ /** Modelprofileid */
489
+ modelProfileId?: string | null;
490
+ }
491
+ /** AiModelProfileResponse */
492
+ interface AiModelProfileResponse {
493
+ /**
494
+ * Id
495
+ * @format uuid
496
+ */
497
+ id: string;
498
+ /**
499
+ * Organizationid
500
+ * @format uuid
501
+ */
502
+ organizationId: string;
503
+ /** Name */
504
+ name: string;
505
+ kind: AiModelProfileKind;
506
+ /** Baseurl */
507
+ baseUrl: string;
508
+ /** Model */
509
+ model: string;
510
+ /** Metadata */
511
+ metadata: Record<string, any>;
512
+ /** Hasapikey */
513
+ hasApiKey: boolean;
514
+ /**
515
+ * Createdat
516
+ * @format date-time
517
+ */
518
+ createdAt: string;
519
+ /**
520
+ * Updatedat
521
+ * @format date-time
522
+ */
523
+ updatedAt: string;
524
+ }
525
+ /** ApiKeyCreateRequest */
526
+ interface ApiKeyCreateRequest {
527
+ /**
528
+ * Name
529
+ * @minLength 2
530
+ * @maxLength 120
531
+ */
532
+ name: string;
533
+ }
534
+ /** ApiKeyCreateResponse */
535
+ interface ApiKeyCreateResponse {
536
+ /**
537
+ * Id
538
+ * @format uuid
539
+ */
540
+ id: string;
541
+ /** Name */
542
+ name: string;
543
+ /** Key */
544
+ key: string;
545
+ /** Prefix */
546
+ prefix: string;
547
+ /**
548
+ * Createdat
549
+ * @format date-time
550
+ */
551
+ createdAt: string;
552
+ }
553
+ /** ApiKeyResponse */
554
+ interface ApiKeyResponse {
555
+ /**
556
+ * Id
557
+ * @format uuid
558
+ */
559
+ id: string;
560
+ /** Name */
561
+ name: string;
562
+ /** Prefix */
563
+ prefix: string;
564
+ /**
565
+ * Createdat
566
+ * @format date-time
567
+ */
568
+ createdAt: string;
569
+ /**
570
+ * Updatedat
571
+ * @format date-time
572
+ */
573
+ updatedAt: string;
574
+ /** Lastusedat */
575
+ lastUsedAt?: string | null;
576
+ /** Revokedat */
577
+ revokedAt?: string | null;
578
+ }
579
+ /** ApiKeyUpdateRequest */
580
+ interface ApiKeyUpdateRequest {
581
+ /** Name */
582
+ name?: string | null;
583
+ /** Embeddingapikey */
584
+ embeddingApiKey?: string | null;
585
+ /** Agentapikey */
586
+ agentApiKey?: string | null;
587
+ /**
588
+ * Speechtotextapikey
589
+ * ElevenLabs Scribe speech-to-text API key used for voice mentor transcription.
590
+ */
591
+ speechToTextApiKey?: string | null;
592
+ /**
593
+ * Texttospeechapikey
594
+ * Text-to-speech provider API key. Currently only Cartesia is supported.
595
+ */
596
+ textToSpeechApiKey?: string | null;
597
+ }
598
+ /** ApplicationDeltaProof */
599
+ interface ApplicationDeltaProof {
600
+ /** Appliedoperationids */
601
+ appliedOperationIds?: string[];
602
+ /** Idmappings */
603
+ idMappings?: Record<string, string>;
604
+ }
605
+ /**
606
+ * ApplicationReceipt
607
+ * Record the Core application result, ID mappings, and conflict or failure reason.
608
+ */
609
+ interface ApplicationReceipt {
610
+ /**
611
+ * Courseid
612
+ * @format uuid
613
+ */
614
+ courseId: string;
615
+ /**
616
+ * Sessionid
617
+ * @format uuid
618
+ */
619
+ sessionId: string;
620
+ /**
621
+ * Applicationid
622
+ * @format uuid
623
+ */
624
+ applicationId: string;
625
+ /**
626
+ * Exportid
627
+ * @format uuid
628
+ */
629
+ exportId: string;
630
+ /**
631
+ * Exporthash
632
+ * @pattern ^[0-9a-f]{64}$
633
+ */
634
+ exportHash: string;
635
+ /** Status */
636
+ status: "applied" | "conflict" | "failed";
637
+ /** Idmappings */
638
+ idMappings?: Record<string, string>;
639
+ /** Reason */
640
+ reason?: string | null;
641
+ }
642
+ /**
643
+ * AssessmentQuestion
644
+ * Model a quiz question and validate child identities, references, and type-specific payloads.
645
+ */
646
+ interface AssessmentQuestionInput {
647
+ /**
648
+ * Id
649
+ * @format uuid
650
+ */
651
+ id: string;
652
+ /** Questiontype */
653
+ questionType: "single_choice" | "multiple_choice" | "true_or_false" | "photo_question_single_choice" | "photo_question_multiple_choice" | "fill_in_the_blanks_text" | "fill_in_the_blanks_dnd" | "brief_response" | "detailed_response" | "scale_1_5";
654
+ /**
655
+ * Displayorder
656
+ * @min 0
657
+ */
658
+ displayOrder: number;
659
+ /**
660
+ * Maximumpoints
661
+ * @pattern ^\d+(\.\d+)?$
662
+ */
663
+ maximumPoints: string;
664
+ /** Gradingmode */
665
+ gradingMode: "automatic" | "manual" | "participation";
666
+ /** Prompt */
667
+ prompt: string;
668
+ /** Title */
669
+ title: string;
670
+ /** Description */
671
+ description?: string | null;
672
+ /** Photos3Key */
673
+ photoS3Key?: string | null;
674
+ /** Options */
675
+ options?: ChoiceOption[];
676
+ /** Truefalsestatements */
677
+ trueFalseStatements?: TrueFalseStatement[];
678
+ /** Scaleoptions */
679
+ scaleOptions?: ScaleOption[];
680
+ openTextSettings?: OpenTextSettings | null;
681
+ /** Blanks */
682
+ blanks?: QuestionBlank[];
683
+ /** Draganddropoptions */
684
+ dragAndDropOptions?: DragOption[];
685
+ }
686
+ /**
687
+ * AssessmentQuestion
688
+ * Model a quiz question and validate child identities, references, and type-specific payloads.
689
+ */
690
+ interface AssessmentQuestionOutput {
691
+ /**
692
+ * Id
693
+ * @format uuid
694
+ */
695
+ id: string;
696
+ /** Questiontype */
697
+ questionType: "single_choice" | "multiple_choice" | "true_or_false" | "photo_question_single_choice" | "photo_question_multiple_choice" | "fill_in_the_blanks_text" | "fill_in_the_blanks_dnd" | "brief_response" | "detailed_response" | "scale_1_5";
698
+ /**
699
+ * Displayorder
700
+ * @min 0
701
+ */
702
+ displayOrder: number;
703
+ /**
704
+ * Maximumpoints
705
+ * @pattern ^\d+(\.\d+)?$
706
+ */
707
+ maximumPoints: string;
708
+ /** Gradingmode */
709
+ gradingMode: "automatic" | "manual" | "participation";
710
+ /** Prompt */
711
+ prompt: string;
712
+ /** Title */
713
+ title: string;
714
+ /** Description */
715
+ description?: string | null;
716
+ /** Photos3Key */
717
+ photoS3Key?: string | null;
718
+ /** Options */
719
+ options?: ChoiceOption[];
720
+ /** Truefalsestatements */
721
+ trueFalseStatements?: TrueFalseStatement[];
722
+ /** Scaleoptions */
723
+ scaleOptions?: ScaleOption[];
724
+ openTextSettings?: OpenTextSettings | null;
725
+ /** Blanks */
726
+ blanks?: QuestionBlank[];
727
+ /** Draganddropoptions */
728
+ dragAndDropOptions?: DragOption[];
729
+ }
730
+ /**
731
+ * AssetManifestItem
732
+ * Describe an exported asset and its operation, source, section, checksum, and size binding.
733
+ */
734
+ interface AssetManifestItem {
735
+ /** Operationid */
736
+ operationId?: string | null;
737
+ /**
738
+ * Role
739
+ * @default "visual"
740
+ */
741
+ role?: "visual" | "mentor_context";
742
+ /** Sourceversionid */
743
+ sourceVersionId?: string | null;
744
+ /** Sectionids */
745
+ sectionIds?: string[];
746
+ /**
747
+ * Assetid
748
+ * @format uuid
749
+ */
750
+ assetId: string;
751
+ /**
752
+ * Sha256
753
+ * @pattern ^[0-9a-f]{64}$
754
+ */
755
+ sha256: string;
756
+ /** Mimetype */
757
+ mimeType: string;
758
+ /**
759
+ * Revision
760
+ * @min 1
761
+ * @default 1
762
+ */
763
+ revision?: number;
764
+ /**
765
+ * Bytesize
766
+ * @min 0
767
+ */
768
+ byteSize: number;
769
+ /** Required */
770
+ required: boolean;
771
+ }
772
+ /**
773
+ * AuthoringCommand
774
+ * Define an idempotent session command and enforce its action-specific payload.
775
+ */
776
+ interface AuthoringCommand$1 {
777
+ /**
778
+ * Schemaversion
779
+ * @default 1
780
+ */
781
+ schemaVersion?: 1;
782
+ /**
783
+ * Commandid
784
+ * @format uuid
785
+ */
786
+ commandId: string;
787
+ /** Actorid */
788
+ actorId: string;
789
+ /** Action */
790
+ action: "request.create" | "session.pause" | "session.resume" | "session.stop" | "request.stop" | "request.discard" | "task.retry" | "question.answer" | "proposal.accept" | "proposal.reject" | "proposal.review" | "proposal.regenerate" | "proposal.regenerate.batch" | "draft.edit" | "draft.discard" | "sources.select" | "source.refresh" | "asset.retry_submission";
791
+ request?: AuthoringRequest | null;
792
+ /** Targetid */
793
+ targetId?: string | null;
794
+ /** Replacementsourceversionid */
795
+ replacementSourceVersionId?: string | null;
796
+ /** Selectedtaskids */
797
+ selectedTaskIds?: string[] | null;
798
+ /** Expectedrevision */
799
+ expectedRevision?: number | null;
800
+ /** Answer */
801
+ answer?: string | null;
802
+ /** Feedback */
803
+ feedback?: string | null;
804
+ /** Regenerations */
805
+ regenerations?: ProposalRegeneration[] | null;
806
+ /** Operations */
807
+ operations?: (({
808
+ type: "chapter.create";
809
+ } & ChapterWrite) | ({
810
+ type: "chapter.delete";
811
+ } & DeleteOperation) | ({
812
+ type: "chapter.reorder";
813
+ } & ReorderOperation) | ({
814
+ type: "chapter.update";
815
+ } & ChapterWrite) | ({
816
+ type: "course.metadata.update";
817
+ } & MetadataUpdate) | ({
818
+ type: "course.settings.update";
819
+ } & SettingsUpdateInput) | ({
820
+ type: "lesson.block.replace";
821
+ } & BlockReplace) | ({
822
+ type: "lesson.create";
823
+ } & LessonWriteInput) | ({
824
+ type: "lesson.delete";
825
+ } & DeleteOperation) | ({
826
+ type: "lesson.metadata.update";
827
+ } & LessonMetadataUpdate) | ({
828
+ type: "lesson.reorder";
829
+ } & ReorderOperation) | ({
830
+ type: "lesson.update";
831
+ } & LessonWriteInput))[] | null;
832
+ sourcePolicy?: SourcePolicy | null;
833
+ /**
834
+ * Acceptqualityconcerns
835
+ * @default false
836
+ */
837
+ acceptQualityConcerns?: boolean;
838
+ /** Reviews */
839
+ reviews?: ProposalReviewDecision[] | null;
840
+ /** Requestid */
841
+ requestId?: string | null;
842
+ }
843
+ /**
844
+ * AuthoringRequest
845
+ * Define the initial course-authoring instruction, trusted context, targets, sources, and optional outline.
846
+ */
847
+ interface AuthoringRequest {
848
+ /**
849
+ * Bound provider reasoning according to the request's actual work.
850
+ * @default "medium"
851
+ */
852
+ reasoningEffort?: ReasoningEffort;
853
+ /** Context */
854
+ context?: Record<string, JsonValue>;
855
+ /**
856
+ * Instruction
857
+ * @minLength 1
858
+ * @maxLength 20000
859
+ */
860
+ instruction: string;
861
+ /**
862
+ * Distinguish fact-based authoring from an explicitly requested illustrative draft.
863
+ * @default "verified"
864
+ */
865
+ contentMode?: ContentMode;
866
+ /** Targets */
867
+ targets: TargetRef[];
868
+ /** Allowlist source versions and explicitly enabled web, general-knowledge, and research-depth permissions. */
869
+ sourcePolicy?: SourcePolicy;
870
+ /** Attachedsourceversionids */
871
+ attachedSourceVersionIds?: string[];
872
+ /** Exactoutline */
873
+ exactOutline?: OutlineChapter[] | null;
874
+ /**
875
+ * Constrain outline planning to a whole course or newly appended chapters.
876
+ * @default "course"
877
+ */
878
+ planningScope?: PlanningScope;
879
+ /**
880
+ * Existingchaptercount
881
+ * @min 0
882
+ * @default 0
883
+ */
884
+ existingChapterCount?: number;
885
+ /** Targetchapterid */
886
+ targetChapterId?: string | null;
887
+ /** Targetchaptertitle */
888
+ targetChapterTitle?: string | null;
889
+ /**
890
+ * Targetchapterorder
891
+ * @min 0
892
+ * @default 0
893
+ */
894
+ targetChapterOrder?: number;
895
+ /**
896
+ * Nextlessonorder
897
+ * @min 0
898
+ * @default 0
899
+ */
900
+ nextLessonOrder?: number;
901
+ continuation?: ContinuationRef | null;
902
+ }
903
+ /**
904
+ * AuthoringTurn
905
+ * Project one root request and all descendant work into an ordered assistant turn.
906
+ */
907
+ interface AuthoringTurn$1 {
908
+ /**
909
+ * Requestid
910
+ * @format uuid
911
+ */
912
+ requestId: string;
913
+ /** Messageid */
914
+ messageId: string;
915
+ /** Enumerate the aggregate lifecycle states exposed for one conversational request. */
916
+ status: TurnStatus;
917
+ /** Taskids */
918
+ taskIds: string[];
919
+ /** Parts */
920
+ parts: TurnPart[];
921
+ /**
922
+ * Firstsequence
923
+ * @min 1
924
+ */
925
+ firstSequence: number;
926
+ /**
927
+ * Updatedsequence
928
+ * @min 0
929
+ */
930
+ updatedSequence: number;
931
+ }
932
+ /**
933
+ * BlankAnswerSet
934
+ * Define a preferred answer and accepted alternatives for one fill-in blank.
935
+ */
936
+ interface BlankAnswerSet {
937
+ /** Preferredanswer */
938
+ preferredAnswer: string;
939
+ /** Acceptedanswers */
940
+ acceptedAnswers: string[];
941
+ }
942
+ /**
943
+ * BlockPayload
944
+ * Carry a stable block identifier and its HTML content.
945
+ */
946
+ interface BlockPayload {
947
+ /** Blockid */
948
+ blockId: string;
949
+ /** Html */
950
+ html: string;
951
+ }
952
+ /**
953
+ * BlockReplace
954
+ * Replace one lesson block identified by its stable block ID.
955
+ */
956
+ interface BlockReplace {
957
+ /**
958
+ * Operationid
959
+ * @format uuid
960
+ */
961
+ operationId: string;
962
+ /**
963
+ * Targetid
964
+ * @format uuid
965
+ */
966
+ targetId: string;
967
+ /** Language */
968
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
969
+ /** Baselinehash */
970
+ baselineHash?: string | null;
971
+ /** Dependencies */
972
+ dependencies?: string[];
973
+ /** Fieldbaselines */
974
+ fieldBaselines?: Record<string, string>;
975
+ /**
976
+ * Type
977
+ * @default "lesson.block.replace"
978
+ */
979
+ type?: "lesson.block.replace";
980
+ /** Carry a stable block identifier and its HTML content. */
981
+ payload: BlockPayload;
982
+ }
983
+ /** Body_transcribe_dictation_api_public_v1_ai_transcriptions_post */
984
+ interface BodyTranscribeDictationApiPublicV1AiTranscriptionsPost {
985
+ /**
986
+ * File
987
+ * @format binary
988
+ */
989
+ file: File;
990
+ }
991
+ /** Body_upload_source_api_public_v1_authoring_sessions__session_id__sources_post */
992
+ interface BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost {
993
+ /**
994
+ * File
995
+ * @format binary
996
+ */
997
+ file: File;
998
+ /**
999
+ * Commandid
1000
+ * @format uuid
1001
+ */
1002
+ commandId: string;
1003
+ }
1004
+ /**
1005
+ * ChapterPayload
1006
+ * Carry a chapter title and its ordered display position.
1007
+ */
1008
+ interface ChapterPayload {
1009
+ /** Title */
1010
+ title: string;
1011
+ /**
1012
+ * Displayorder
1013
+ * @min 0
1014
+ */
1015
+ displayOrder: number;
1016
+ }
1017
+ /**
1018
+ * ChapterWrite
1019
+ * Create or update a chapter under the operation baseline fence.
1020
+ */
1021
+ interface ChapterWrite {
1022
+ /**
1023
+ * Operationid
1024
+ * @format uuid
1025
+ */
1026
+ operationId: string;
1027
+ /**
1028
+ * Targetid
1029
+ * @format uuid
1030
+ */
1031
+ targetId: string;
1032
+ /** Language */
1033
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1034
+ /** Baselinehash */
1035
+ baselineHash?: string | null;
1036
+ /** Dependencies */
1037
+ dependencies?: string[];
1038
+ /** Fieldbaselines */
1039
+ fieldBaselines?: Record<string, string>;
1040
+ /** Type */
1041
+ type: "chapter.create" | "chapter.update";
1042
+ /** Carry a chapter title and its ordered display position. */
1043
+ payload: ChapterPayload;
1044
+ }
1045
+ /**
1046
+ * ChoiceOption
1047
+ * Represent one scored choice with stable identity, display order, and correctness.
1048
+ */
1049
+ interface ChoiceOption {
1050
+ /**
1051
+ * Id
1052
+ * @format uuid
1053
+ */
1054
+ id: string;
1055
+ /**
1056
+ * Displayorder
1057
+ * @min 0
1058
+ */
1059
+ displayOrder: number;
1060
+ /** Iscorrect */
1061
+ isCorrect: boolean;
1062
+ /** Label */
1063
+ label: string;
1064
+ }
1065
+ /**
1066
+ * CommandReceipt
1067
+ * Return idempotent command identity, accepted sequence, workspace revision, and produced IDs.
1068
+ */
1069
+ interface CommandReceipt {
1070
+ /**
1071
+ * Commandid
1072
+ * @format uuid
1073
+ */
1074
+ commandId: string;
1075
+ /**
1076
+ * Hash
1077
+ * @pattern ^[0-9a-f]{64}$
1078
+ */
1079
+ hash: string;
1080
+ /** Acceptedsequence */
1081
+ acceptedSequence: number;
1082
+ /** Workspacerevision */
1083
+ workspaceRevision: number;
1084
+ /** Requestid */
1085
+ requestId?: string | null;
1086
+ /** Taskids */
1087
+ taskIds?: string[] | null;
1088
+ /** Refreshid */
1089
+ refreshId?: string | null;
1090
+ /** Refreshstatus */
1091
+ refreshStatus?: "refreshed" | "needs_mapping" | null;
1092
+ }
1093
+ /**
1094
+ * ContentLesson
1095
+ * Carry the title and description payload for a content lesson operation.
1096
+ */
1097
+ interface ContentLesson {
1098
+ /**
1099
+ * Lessontype
1100
+ * @default "content"
1101
+ */
1102
+ lessonType?: "content";
1103
+ /** Title */
1104
+ title: string;
1105
+ /** Description */
1106
+ description: string;
1107
+ }
1108
+ /**
1109
+ * ContextFailure
1110
+ * Report one bounded terminal callback outcome without transmitting lesson content.
1111
+ */
1112
+ interface ContextFailure {
1113
+ /**
1114
+ * Schemaversion
1115
+ * @default 1
1116
+ */
1117
+ schemaVersion?: 1;
1118
+ /**
1119
+ * Contextrequestid
1120
+ * @format uuid
1121
+ */
1122
+ contextRequestId: string;
1123
+ /**
1124
+ * Sessionid
1125
+ * @format uuid
1126
+ */
1127
+ sessionId: string;
1128
+ /**
1129
+ * Requestid
1130
+ * @format uuid
1131
+ */
1132
+ requestId: string;
1133
+ /**
1134
+ * Taskid
1135
+ * @format uuid
1136
+ */
1137
+ taskId: string;
1138
+ /**
1139
+ * Taskfence
1140
+ * @min 1
1141
+ */
1142
+ taskFence: number;
1143
+ /** Reasoncode */
1144
+ reasonCode: "permission_revoked" | "course_unavailable" | "target_unavailable" | "context_invalid";
1145
+ /**
1146
+ * Failurehash
1147
+ * @pattern ^[0-9a-f]{64}$
1148
+ */
1149
+ failureHash: string;
1150
+ }
1151
+ /**
1152
+ * ContextFailureReceipt
1153
+ * Acknowledge one idempotent, system-owned terminal context failure.
1154
+ */
1155
+ interface ContextFailureReceipt {
1156
+ /**
1157
+ * Contextrequestid
1158
+ * @format uuid
1159
+ */
1160
+ contextRequestId: string;
1161
+ /**
1162
+ * Taskid
1163
+ * @format uuid
1164
+ */
1165
+ taskId: string;
1166
+ /**
1167
+ * Status
1168
+ * @default "failed"
1169
+ */
1170
+ status?: "failed";
1171
+ /**
1172
+ * Failurehash
1173
+ * @pattern ^[0-9a-f]{64}$
1174
+ */
1175
+ failureHash: string;
1176
+ }
1177
+ /**
1178
+ * ContextFulfillmentReceipt
1179
+ * Acknowledge durable context fulfillment and the single recovery dispatch it created.
1180
+ */
1181
+ interface ContextFulfillmentReceipt {
1182
+ /**
1183
+ * Contextrequestid
1184
+ * @format uuid
1185
+ */
1186
+ contextRequestId: string;
1187
+ /**
1188
+ * Taskid
1189
+ * @format uuid
1190
+ */
1191
+ taskId: string;
1192
+ /**
1193
+ * Resumed
1194
+ * @default true
1195
+ */
1196
+ resumed?: true;
1197
+ /**
1198
+ * Dispatchid
1199
+ * @format uuid
1200
+ */
1201
+ dispatchId: string;
1202
+ }
1203
+ /**
1204
+ * ContextResponse
1205
+ * Return only Core-authorized selected lesson details for one pending context request.
1206
+ */
1207
+ interface ContextResponse {
1208
+ /**
1209
+ * Schemaversion
1210
+ * @default 1
1211
+ */
1212
+ schemaVersion?: 1;
1213
+ /**
1214
+ * Contextrequestid
1215
+ * @format uuid
1216
+ */
1217
+ contextRequestId: string;
1218
+ /**
1219
+ * Sessionid
1220
+ * @format uuid
1221
+ */
1222
+ sessionId: string;
1223
+ /**
1224
+ * Requestid
1225
+ * @format uuid
1226
+ */
1227
+ requestId: string;
1228
+ /**
1229
+ * Taskid
1230
+ * @format uuid
1231
+ */
1232
+ taskId: string;
1233
+ /**
1234
+ * Taskfence
1235
+ * @min 1
1236
+ */
1237
+ taskFence: number;
1238
+ /**
1239
+ * Courseid
1240
+ * @format uuid
1241
+ */
1242
+ courseId: string;
1243
+ /** Language */
1244
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1245
+ /**
1246
+ * Coursebaselinehash
1247
+ * @pattern ^[0-9a-f]{64}$
1248
+ */
1249
+ courseBaselineHash: string;
1250
+ /**
1251
+ * Chapters
1252
+ * @maxItems 100
1253
+ * @minItems 1
1254
+ */
1255
+ chapters: SelectedChapterContext[];
1256
+ /**
1257
+ * Responsehash
1258
+ * @pattern ^[0-9a-f]{64}$
1259
+ */
1260
+ responseHash: string;
1261
+ }
1262
+ /**
1263
+ * ContinuationRef
1264
+ * Reference an earlier request/proposal without accepting caller-owned context text.
1265
+ */
1266
+ interface ContinuationRef {
1267
+ /** Parentrequestid */
1268
+ parentRequestId?: string | null;
1269
+ /** Parentproposalid */
1270
+ parentProposalId?: string | null;
1271
+ /** Parentworkspacerevision */
1272
+ parentWorkspaceRevision?: number | null;
1273
+ }
1274
+ /**
1275
+ * CreateSession
1276
+ * Request creation of an authoring session for one course and actor.
1277
+ */
1278
+ interface CreateSession {
1279
+ /**
1280
+ * Commandid
1281
+ * @format uuid
1282
+ */
1283
+ commandId: string;
1284
+ /**
1285
+ * Courseid
1286
+ * @format uuid
1287
+ */
1288
+ courseId: string;
1289
+ /**
1290
+ * Actorid
1291
+ * @minLength 1
1292
+ */
1293
+ actorId: string;
1294
+ /** Language */
1295
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1296
+ /** Context */
1297
+ context?: Record<string, JsonValue>;
1298
+ }
1299
+ /**
1300
+ * DeleteOperation
1301
+ * Delete one chapter or lesson selected by operation target and baseline.
1302
+ */
1303
+ interface DeleteOperation {
1304
+ /**
1305
+ * Operationid
1306
+ * @format uuid
1307
+ */
1308
+ operationId: string;
1309
+ /**
1310
+ * Targetid
1311
+ * @format uuid
1312
+ */
1313
+ targetId: string;
1314
+ /** Language */
1315
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1316
+ /** Baselinehash */
1317
+ baselineHash?: string | null;
1318
+ /** Dependencies */
1319
+ dependencies?: string[];
1320
+ /** Fieldbaselines */
1321
+ fieldBaselines?: Record<string, string>;
1322
+ /** Type */
1323
+ type: "chapter.delete" | "lesson.delete";
1324
+ }
1325
+ /**
1326
+ * DragOption
1327
+ * Place a draggable answer against an optional stable blank identifier.
1328
+ */
1329
+ interface DragOption {
1330
+ /**
1331
+ * Id
1332
+ * @format uuid
1333
+ */
1334
+ id: string;
1335
+ /** Label */
1336
+ label: string;
1337
+ /** Targetblankid */
1338
+ targetBlankId: string | null;
1339
+ /**
1340
+ * Displayorder
1341
+ * @min 0
1342
+ */
1343
+ displayOrder: number;
1344
+ }
1345
+ /** EmbeddingsRequest */
1346
+ interface EmbeddingsRequest {
1347
+ /** Texts */
1348
+ texts: string[];
1349
+ }
1350
+ /** EmbeddingsResponse */
1351
+ interface EmbeddingsResponse {
1352
+ /** Embeddings */
1353
+ embeddings: number[][];
1354
+ }
1355
+ /**
1356
+ * Event
1357
+ * Represent one ordered, durable authoring event in the session stream.
1358
+ */
1359
+ interface Event {
1360
+ /**
1361
+ * Schemaversion
1362
+ * @default 1
1363
+ */
1364
+ schemaVersion?: 1;
1365
+ /**
1366
+ * Eventid
1367
+ * @format uuid
1368
+ */
1369
+ eventId: string;
1370
+ /**
1371
+ * Sessionid
1372
+ * @format uuid
1373
+ */
1374
+ sessionId: string;
1375
+ /** Sequence */
1376
+ sequence: number;
1377
+ /**
1378
+ * Occurredat
1379
+ * @format date-time
1380
+ */
1381
+ occurredAt: string;
1382
+ /** Type */
1383
+ type: string;
1384
+ /** Payload */
1385
+ payload: Record<string, JsonValue>;
1386
+ }
1387
+ /**
1388
+ * EventPage
1389
+ * Page the durable event stream from a sequence cursor.
1390
+ */
1391
+ interface EventPage {
1392
+ /** Events */
1393
+ events: Event[];
1394
+ /** Nextsequence */
1395
+ nextSequence: number;
1396
+ /** Hasmore */
1397
+ hasMore: boolean;
1398
+ }
1399
+ /**
1400
+ * FixedValidity
1401
+ * Represent certificate validity through a fixed calendar date.
1402
+ */
1403
+ interface FixedValidity {
1404
+ /**
1405
+ * Type
1406
+ * @default "fixed_date"
1407
+ */
1408
+ type?: "fixed_date";
1409
+ /**
1410
+ * Date
1411
+ * @format date
1412
+ */
1413
+ date: string;
1414
+ }
1415
+ /**
1416
+ * FrozenExport
1417
+ * Freeze proposals, operations, assets, and export hash for one application attempt.
1418
+ */
1419
+ interface FrozenExport {
1420
+ /**
1421
+ * Schemaversion
1422
+ * @default 1
1423
+ */
1424
+ schemaVersion?: 1;
1425
+ /**
1426
+ * Exportid
1427
+ * @format uuid
1428
+ */
1429
+ exportId: string;
1430
+ /**
1431
+ * Sessionid
1432
+ * @format uuid
1433
+ */
1434
+ sessionId: string;
1435
+ /**
1436
+ * Courseid
1437
+ * @format uuid
1438
+ */
1439
+ courseId: string;
1440
+ /** Language */
1441
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1442
+ /**
1443
+ * Exporthash
1444
+ * @pattern ^[0-9a-f]{64}$
1445
+ */
1446
+ exportHash: string;
1447
+ /** Proposalids */
1448
+ proposalIds: string[];
1449
+ /** Operations */
1450
+ operations: (({
1451
+ type: "chapter.create";
1452
+ } & ChapterWrite) | ({
1453
+ type: "chapter.delete";
1454
+ } & DeleteOperation) | ({
1455
+ type: "chapter.reorder";
1456
+ } & ReorderOperation) | ({
1457
+ type: "chapter.update";
1458
+ } & ChapterWrite) | ({
1459
+ type: "course.metadata.update";
1460
+ } & MetadataUpdate) | ({
1461
+ type: "course.settings.update";
1462
+ } & SettingsUpdateOutput) | ({
1463
+ type: "lesson.block.replace";
1464
+ } & BlockReplace) | ({
1465
+ type: "lesson.create";
1466
+ } & LessonWriteOutput) | ({
1467
+ type: "lesson.delete";
1468
+ } & DeleteOperation) | ({
1469
+ type: "lesson.metadata.update";
1470
+ } & LessonMetadataUpdate) | ({
1471
+ type: "lesson.reorder";
1472
+ } & ReorderOperation) | ({
1473
+ type: "lesson.update";
1474
+ } & LessonWriteOutput))[];
1475
+ /** Assets */
1476
+ assets: AssetManifestItem[];
1477
+ /**
1478
+ * Createdat
1479
+ * @format date-time
1480
+ */
1481
+ createdAt: string;
1482
+ }
1483
+ /** GenerateAiMentorConfigurationRequest */
1484
+ interface GenerateAiMentorConfigurationRequest {
1485
+ /** Messages */
1486
+ messages: PublicAiMessage[];
1487
+ /** Temperature */
1488
+ temperature?: number | null;
1489
+ configurationType: AiMentorConfigurationType;
1490
+ }
1491
+ type JsonValue = any;
1492
+ /** JudgeCriterionResult */
1493
+ interface JudgeCriterionResult {
1494
+ /**
1495
+ * Criterionref
1496
+ * @pattern ^C[1-9]\d*$
1497
+ */
1498
+ criterionRef: string;
1499
+ /**
1500
+ * Awardedscore
1501
+ * @min 0
1502
+ */
1503
+ awardedScore: number;
1504
+ /**
1505
+ * Learnersafefeedback
1506
+ * @minLength 1
1507
+ */
1508
+ learnerSafeFeedback: string;
1509
+ }
1510
+ /** JudgeResponse */
1511
+ interface JudgeResponse {
1512
+ /** Criterionresults */
1513
+ criterionResults: JudgeCriterionResult[];
1514
+ /** Triggeredblockingerrors */
1515
+ triggeredBlockingErrors: JudgeTriggeredBlockingError[];
1516
+ }
1517
+ /** JudgeTriggeredBlockingError */
1518
+ interface JudgeTriggeredBlockingError {
1519
+ /**
1520
+ * Blockingerrorref
1521
+ * @pattern ^B[1-9]\d*$
1522
+ */
1523
+ blockingErrorRef: string;
1524
+ /**
1525
+ * Learnersafefeedback
1526
+ * @minLength 1
1527
+ */
1528
+ learnerSafeFeedback: string;
1529
+ }
1530
+ /**
1531
+ * LessonMetadataPayload
1532
+ * Patch lesson text without rewriting lesson configuration, assessment, or resources.
1533
+ */
1534
+ interface LessonMetadataPayload {
1535
+ /**
1536
+ * Title
1537
+ * @minLength 1
1538
+ */
1539
+ title?: string;
1540
+ /** Description */
1541
+ description?: string;
1542
+ }
1543
+ /**
1544
+ * LessonMetadataUpdate
1545
+ * Update only explicitly supplied lesson title or description under its baseline fence.
1546
+ */
1547
+ interface LessonMetadataUpdate {
1548
+ /**
1549
+ * Operationid
1550
+ * @format uuid
1551
+ */
1552
+ operationId: string;
1553
+ /**
1554
+ * Targetid
1555
+ * @format uuid
1556
+ */
1557
+ targetId: string;
1558
+ /** Language */
1559
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1560
+ /** Baselinehash */
1561
+ baselineHash?: string | null;
1562
+ /** Dependencies */
1563
+ dependencies?: string[];
1564
+ /** Fieldbaselines */
1565
+ fieldBaselines?: Record<string, string>;
1566
+ /** Type */
1567
+ type: "lesson.metadata.update";
1568
+ /** Patch lesson text without rewriting lesson configuration, assessment, or resources. */
1569
+ payload: LessonMetadataPayload;
1570
+ }
1571
+ /**
1572
+ * LessonWrite
1573
+ * Create or update a lesson while preserving its chapter binding and discriminated lesson payload.
1574
+ */
1575
+ interface LessonWriteInput {
1576
+ /**
1577
+ * Operationid
1578
+ * @format uuid
1579
+ */
1580
+ operationId: string;
1581
+ /**
1582
+ * Targetid
1583
+ * @format uuid
1584
+ */
1585
+ targetId: string;
1586
+ /** Language */
1587
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1588
+ /** Baselinehash */
1589
+ baselineHash?: string | null;
1590
+ /** Dependencies */
1591
+ dependencies?: string[];
1592
+ /** Fieldbaselines */
1593
+ fieldBaselines?: Record<string, string>;
1594
+ /** Displayorder */
1595
+ displayOrder?: number | null;
1596
+ /** Type */
1597
+ type: "lesson.create" | "lesson.update";
1598
+ /**
1599
+ * Chapterid
1600
+ * @format uuid
1601
+ */
1602
+ chapterId: string;
1603
+ /** Payload */
1604
+ payload: ({
1605
+ lessonType: "ai_mentor";
1606
+ } & MentorLessonInput) | ({
1607
+ lessonType: "content";
1608
+ } & ContentLesson) | ({
1609
+ lessonType: "quiz";
1610
+ } & QuizLessonInput);
1611
+ }
1612
+ /**
1613
+ * LessonWrite
1614
+ * Create or update a lesson while preserving its chapter binding and discriminated lesson payload.
1615
+ */
1616
+ interface LessonWriteOutput {
1617
+ /**
1618
+ * Operationid
1619
+ * @format uuid
1620
+ */
1621
+ operationId: string;
1622
+ /**
1623
+ * Targetid
1624
+ * @format uuid
1625
+ */
1626
+ targetId: string;
1627
+ /** Language */
1628
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1629
+ /** Baselinehash */
1630
+ baselineHash?: string | null;
1631
+ /** Dependencies */
1632
+ dependencies?: string[];
1633
+ /** Fieldbaselines */
1634
+ fieldBaselines?: Record<string, string>;
1635
+ /** Displayorder */
1636
+ displayOrder?: number | null;
1637
+ /** Type */
1638
+ type: "lesson.create" | "lesson.update";
1639
+ /**
1640
+ * Chapterid
1641
+ * @format uuid
1642
+ */
1643
+ chapterId: string;
1644
+ /** Payload */
1645
+ payload: ({
1646
+ lessonType: "ai_mentor";
1647
+ } & MentorLessonOutput) | ({
1648
+ lessonType: "content";
1649
+ } & ContentLesson) | ({
1650
+ lessonType: "quiz";
1651
+ } & QuizLessonOutput);
1652
+ }
1653
+ /** MentorChatRequest */
1654
+ interface MentorChatRequest {
1655
+ /** Messages */
1656
+ messages: PublicAiMessage[];
1657
+ /** Temperature */
1658
+ temperature?: number | null;
1659
+ /** Voicesessionid */
1660
+ voiceSessionId?: string | null;
1661
+ }
1662
+ /** MentorChatResponse */
1663
+ interface MentorChatResponse {
1664
+ /** Message */
1665
+ message: string;
1666
+ }
1667
+ /**
1668
+ * MentorLesson
1669
+ * Carry an AI mentor lesson configuration, source bindings, and optional visual or voice assets.
1670
+ */
1671
+ interface MentorLessonInput {
1672
+ /**
1673
+ * Lessontype
1674
+ * @default "ai_mentor"
1675
+ */
1676
+ lessonType?: "ai_mentor";
1677
+ /** Title */
1678
+ title: string;
1679
+ /** Description */
1680
+ description: string;
1681
+ /** Name */
1682
+ name: string;
1683
+ /** Configurationtype */
1684
+ configurationType: "teacher" | "roleplay";
1685
+ /** Configuration */
1686
+ configuration: AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse;
1687
+ judgeConfiguration?: AiJudgeConfigurationResponseInput | null;
1688
+ /** Sourceversionids */
1689
+ sourceVersionIds?: string[];
1690
+ /** Avatarassetid */
1691
+ avatarAssetId?: string | null;
1692
+ /** Voicemode */
1693
+ voiceMode?: "preset" | "custom" | null;
1694
+ /** Ttspreset */
1695
+ ttsPreset?: "male" | "female" | null;
1696
+ /** Customttsreference */
1697
+ customTtsReference?: string | null;
1698
+ /** Preparedresourceids */
1699
+ preparedResourceIds?: string[];
1700
+ }
1701
+ /**
1702
+ * MentorLesson
1703
+ * Carry an AI mentor lesson configuration, source bindings, and optional visual or voice assets.
1704
+ */
1705
+ interface MentorLessonOutput {
1706
+ /**
1707
+ * Lessontype
1708
+ * @default "ai_mentor"
1709
+ */
1710
+ lessonType?: "ai_mentor";
1711
+ /** Title */
1712
+ title: string;
1713
+ /** Description */
1714
+ description: string;
1715
+ /** Name */
1716
+ name: string;
1717
+ /** Configurationtype */
1718
+ configurationType: "teacher" | "roleplay";
1719
+ /** Configuration */
1720
+ configuration: AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse;
1721
+ judgeConfiguration?: AiJudgeConfigurationResponseOutput | null;
1722
+ /** Sourceversionids */
1723
+ sourceVersionIds?: string[];
1724
+ /** Avatarassetid */
1725
+ avatarAssetId?: string | null;
1726
+ /** Voicemode */
1727
+ voiceMode?: "preset" | "custom" | null;
1728
+ /** Ttspreset */
1729
+ ttsPreset?: "male" | "female" | null;
1730
+ /** Customttsreference */
1731
+ customTtsReference?: string | null;
1732
+ /** Preparedresourceids */
1733
+ preparedResourceIds?: string[];
1734
+ }
1735
+ /**
1736
+ * MetadataPayload
1737
+ * Carry the optional course metadata fields that a metadata patch may change.
1738
+ */
1739
+ interface MetadataPayload {
1740
+ /** Title */
1741
+ title?: string | null;
1742
+ /** Description */
1743
+ description?: string | null;
1744
+ /** Learningoutcomes */
1745
+ learningOutcomes?: string[] | null;
1746
+ /** Thumbnailassetid */
1747
+ thumbnailAssetId?: string | null;
1748
+ }
1749
+ /**
1750
+ * MetadataUpdate
1751
+ * Patch course metadata under the operation baseline fence.
1752
+ */
1753
+ interface MetadataUpdate {
1754
+ /**
1755
+ * Operationid
1756
+ * @format uuid
1757
+ */
1758
+ operationId: string;
1759
+ /**
1760
+ * Targetid
1761
+ * @format uuid
1762
+ */
1763
+ targetId: string;
1764
+ /** Language */
1765
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1766
+ /** Baselinehash */
1767
+ baselineHash?: string | null;
1768
+ /** Dependencies */
1769
+ dependencies?: string[];
1770
+ /** Fieldbaselines */
1771
+ fieldBaselines?: Record<string, string>;
1772
+ /**
1773
+ * Type
1774
+ * @default "course.metadata.update"
1775
+ */
1776
+ type?: "course.metadata.update";
1777
+ /** Carry the optional course metadata fields that a metadata patch may change. */
1778
+ payload: MetadataPayload;
1779
+ }
1780
+ /**
1781
+ * OpenTextSettings
1782
+ * Constrain and guide manually reviewed free-text answers.
1783
+ */
1784
+ interface OpenTextSettings {
1785
+ /** Minimumcharacters */
1786
+ minimumCharacters?: number | null;
1787
+ /** Maximumcharacters */
1788
+ maximumCharacters?: number | null;
1789
+ /** Reviewerinstructions */
1790
+ reviewerInstructions?: string | null;
1791
+ }
1792
+ /**
1793
+ * OutlineChapter
1794
+ * Describe an exact-outline chapter and its ordered lesson skeleton.
1795
+ */
1796
+ interface OutlineChapter {
1797
+ /**
1798
+ * Id
1799
+ * @format uuid
1800
+ */
1801
+ id: string;
1802
+ /**
1803
+ * Title
1804
+ * @minLength 1
1805
+ */
1806
+ title: string;
1807
+ /** Lessons */
1808
+ lessons: OutlineLesson[];
1809
+ }
1810
+ /**
1811
+ * OutlineLesson
1812
+ * Describe an exact-outline lesson, objectives, source bindings, and required sections.
1813
+ */
1814
+ interface OutlineLesson {
1815
+ /** Sourceversionids */
1816
+ sourceVersionIds?: string[] | null;
1817
+ /** Requiredsectionids */
1818
+ requiredSectionIds?: string[];
1819
+ /** Coveragenotes */
1820
+ coverageNotes?: string | null;
1821
+ /**
1822
+ * Id
1823
+ * @format uuid
1824
+ */
1825
+ id: string;
1826
+ /**
1827
+ * Title
1828
+ * @minLength 1
1829
+ */
1830
+ title: string;
1831
+ /** Lessontype */
1832
+ lessonType: "content" | "quiz" | "ai_mentor";
1833
+ /** Objectives */
1834
+ objectives?: string[];
1835
+ }
1836
+ /**
1837
+ * PeriodValidity
1838
+ * Represent certificate validity as a positive duration.
1839
+ */
1840
+ interface PeriodValidity {
1841
+ /**
1842
+ * Type
1843
+ * @default "period"
1844
+ */
1845
+ type?: "period";
1846
+ /**
1847
+ * Value
1848
+ * @min 1
1849
+ */
1850
+ value: number;
1851
+ /** Unit */
1852
+ unit: "days" | "months" | "years";
1853
+ }
1854
+ /**
1855
+ * PrepareExport
1856
+ * Select proposals and optional asset omissions before creating a frozen export.
1857
+ */
1858
+ interface PrepareExport {
1859
+ /**
1860
+ * Commandid
1861
+ * @format uuid
1862
+ */
1863
+ commandId: string;
1864
+ /** Actorid */
1865
+ actorId: string;
1866
+ /**
1867
+ * Proposalids
1868
+ * @minItems 1
1869
+ */
1870
+ proposalIds: string[];
1871
+ /** Omitoptionalassetids */
1872
+ omitOptionalAssetIds?: string[];
1873
+ }
1874
+ /**
1875
+ * ProposalRegeneration
1876
+ * Carry feedback for one exact proposal revision in an atomic regeneration batch.
1877
+ */
1878
+ interface ProposalRegeneration {
1879
+ /**
1880
+ * Targetid
1881
+ * @format uuid
1882
+ */
1883
+ targetId: string;
1884
+ /**
1885
+ * Expectedrevision
1886
+ * @min 1
1887
+ */
1888
+ expectedRevision: number;
1889
+ /**
1890
+ * Feedback
1891
+ * @minLength 1
1892
+ * @maxLength 2000
1893
+ */
1894
+ feedback: string;
1895
+ }
1896
+ /**
1897
+ * ProposalReviewDecision
1898
+ * Accept or reject one exact proposal revision within an atomic review command.
1899
+ */
1900
+ interface ProposalReviewDecision {
1901
+ /**
1902
+ * Proposalid
1903
+ * @format uuid
1904
+ */
1905
+ proposalId: string;
1906
+ /**
1907
+ * Expectedrevision
1908
+ * @min 1
1909
+ */
1910
+ expectedRevision: number;
1911
+ /** Accepted */
1912
+ accepted: boolean;
1913
+ /**
1914
+ * Acceptqualityconcerns
1915
+ * @default false
1916
+ */
1917
+ acceptQualityConcerns?: boolean;
1918
+ }
1919
+ /** PublicAiMessage */
1920
+ interface PublicAiMessage {
1921
+ /** Role */
1922
+ role: "system" | "user" | "assistant";
1923
+ /** Content */
1924
+ content: string;
1925
+ }
1926
+ /** PublicConfigurationResponse */
1927
+ interface PublicConfigurationResponse {
1928
+ /** Coursegeneration */
1929
+ courseGeneration: boolean;
1930
+ /** Voicementor */
1931
+ voiceMentor: boolean;
1932
+ /** Enabled */
1933
+ enabled: boolean;
1934
+ /** Capabilities */
1935
+ capabilities: Record<AiCapability, AiCapabilityStatus>;
1936
+ }
1937
+ /**
1938
+ * QuestionBlank
1939
+ * Describe a fill-in blank and how its answer sets are compared.
1940
+ */
1941
+ interface QuestionBlank {
1942
+ /**
1943
+ * Id
1944
+ * @format uuid
1945
+ */
1946
+ id: string;
1947
+ /** Textcomparisonmode */
1948
+ textComparisonMode: "exact" | "normalized";
1949
+ /**
1950
+ * Answersets
1951
+ * @minItems 1
1952
+ */
1953
+ answerSets: BlankAnswerSet[];
1954
+ }
1955
+ /**
1956
+ * QuizLesson
1957
+ * Carry quiz settings and an ordered, validated collection of assessment questions.
1958
+ */
1959
+ interface QuizLessonInput {
1960
+ /**
1961
+ * Lessontype
1962
+ * @default "quiz"
1963
+ */
1964
+ lessonType?: "quiz";
1965
+ /** Title */
1966
+ title: string;
1967
+ /**
1968
+ * Description
1969
+ * @default ""
1970
+ */
1971
+ description?: string;
1972
+ /**
1973
+ * Thresholdscore
1974
+ * @min 0
1975
+ * @max 100
1976
+ */
1977
+ thresholdScore: number;
1978
+ /** Attemptslimit */
1979
+ attemptsLimit?: number | null;
1980
+ /** Quizcooldowninhours */
1981
+ quizCooldownInHours?: number | null;
1982
+ /**
1983
+ * Questions
1984
+ * @minItems 1
1985
+ */
1986
+ questions: AssessmentQuestionInput[];
1987
+ }
1988
+ /**
1989
+ * QuizLesson
1990
+ * Carry quiz settings and an ordered, validated collection of assessment questions.
1991
+ */
1992
+ interface QuizLessonOutput {
1993
+ /**
1994
+ * Lessontype
1995
+ * @default "quiz"
1996
+ */
1997
+ lessonType?: "quiz";
1998
+ /** Title */
1999
+ title: string;
2000
+ /**
2001
+ * Description
2002
+ * @default ""
2003
+ */
2004
+ description?: string;
2005
+ /**
2006
+ * Thresholdscore
2007
+ * @min 0
2008
+ * @max 100
2009
+ */
2010
+ thresholdScore: number;
2011
+ /** Attemptslimit */
2012
+ attemptsLimit?: number | null;
2013
+ /** Quizcooldowninhours */
2014
+ quizCooldownInHours?: number | null;
2015
+ /**
2016
+ * Questions
2017
+ * @minItems 1
2018
+ */
2019
+ questions: AssessmentQuestionOutput[];
2020
+ }
2021
+ /**
2022
+ * ReorderOperation
2023
+ * Replace chapter or lesson ordering under the operation baseline fence.
2024
+ */
2025
+ interface ReorderOperation {
2026
+ /**
2027
+ * Operationid
2028
+ * @format uuid
2029
+ */
2030
+ operationId: string;
2031
+ /**
2032
+ * Targetid
2033
+ * @format uuid
2034
+ */
2035
+ targetId: string;
2036
+ /** Language */
2037
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2038
+ /** Baselinehash */
2039
+ baselineHash?: string | null;
2040
+ /** Dependencies */
2041
+ dependencies?: string[];
2042
+ /** Fieldbaselines */
2043
+ fieldBaselines?: Record<string, string>;
2044
+ /** Type */
2045
+ type: "chapter.reorder" | "lesson.reorder";
2046
+ /** Carry the complete ordered list of chapter or lesson IDs. */
2047
+ payload: ReorderPayload;
2048
+ }
2049
+ /**
2050
+ * ReorderPayload
2051
+ * Carry the complete ordered list of chapter or lesson IDs.
2052
+ */
2053
+ interface ReorderPayload {
2054
+ /** Orderedids */
2055
+ orderedIds: string[];
2056
+ }
2057
+ /**
2058
+ * ScaleOption
2059
+ * Represent one ordered five-point scale value and its label.
2060
+ */
2061
+ interface ScaleOption {
2062
+ /**
2063
+ * Id
2064
+ * @format uuid
2065
+ */
2066
+ id: string;
2067
+ /**
2068
+ * Displayorder
2069
+ * @min 0
2070
+ */
2071
+ displayOrder: number;
2072
+ /**
2073
+ * Scalevalue
2074
+ * @min 1
2075
+ * @max 5
2076
+ */
2077
+ scaleValue: number;
2078
+ /** Label */
2079
+ label: string;
2080
+ }
2081
+ /**
2082
+ * SelectedChapterContext
2083
+ * Carry a selected lesson's parent chapter identity and current chapter baseline.
2084
+ */
2085
+ interface SelectedChapterContext {
2086
+ /**
2087
+ * Id
2088
+ * @format uuid
2089
+ */
2090
+ id: string;
2091
+ /** Title */
2092
+ title: string;
2093
+ /** Displayorder */
2094
+ displayOrder: number | null;
2095
+ /**
2096
+ * Baselinehash
2097
+ * @pattern ^[0-9a-f]{64}$
2098
+ */
2099
+ baselineHash: string;
2100
+ /**
2101
+ * Deletionbaselinehash
2102
+ * @pattern ^[0-9a-f]{64}$
2103
+ */
2104
+ deletionBaselineHash: string;
2105
+ /**
2106
+ * Lessons
2107
+ * @maxItems 100
2108
+ * @minItems 1
2109
+ */
2110
+ lessons: SelectedLessonContext[];
2111
+ }
2112
+ /**
2113
+ * SelectedLessonContext
2114
+ * Carry one selected lesson's current typed baseline and optional authoring detail.
2115
+ */
2116
+ interface SelectedLessonContext {
2117
+ /**
2118
+ * Id
2119
+ * @format uuid
2120
+ */
2121
+ id: string;
2122
+ /** Title */
2123
+ title: string;
2124
+ /** Lessontype */
2125
+ lessonType: string;
2126
+ /**
2127
+ * Assessmentattemptcount
2128
+ * @min 0
2129
+ */
2130
+ assessmentAttemptCount: number;
2131
+ /** Displayorder */
2132
+ displayOrder: number | null;
2133
+ /**
2134
+ * Baselinehash
2135
+ * @pattern ^[0-9a-f]{64}$
2136
+ */
2137
+ baselineHash: string;
2138
+ /** Description */
2139
+ description?: string | null;
2140
+ /** Quiz */
2141
+ quiz?: Record<string, JsonValue> | null;
2142
+ /** Mentorconfiguration */
2143
+ mentorConfiguration?: Record<string, JsonValue> | null;
2144
+ /** Judgeconfiguration */
2145
+ judgeConfiguration?: Record<string, JsonValue> | null;
2146
+ /** Blocks */
2147
+ blocks?: Record<string, JsonValue>[] | null;
2148
+ }
2149
+ /**
2150
+ * SessionSnapshot
2151
+ * Return an authorized high-water session projection with tasks and records.
2152
+ */
2153
+ interface SessionSnapshot$1 {
2154
+ /**
2155
+ * Reasoningcontrolavailable
2156
+ * @default false
2157
+ */
2158
+ reasoningControlAvailable?: boolean;
2159
+ applicationDelta?: ApplicationDeltaProof;
2160
+ /**
2161
+ * Schemaversion
2162
+ * @default 1
2163
+ */
2164
+ schemaVersion?: 1;
2165
+ /**
2166
+ * Sessionid
2167
+ * @format uuid
2168
+ */
2169
+ sessionId: string;
2170
+ /**
2171
+ * Courseid
2172
+ * @format uuid
2173
+ */
2174
+ courseId: string;
2175
+ /** Language */
2176
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2177
+ /** Status */
2178
+ status: "active" | "paused" | "stopped" | "discarded";
2179
+ /** Snapshotsequence */
2180
+ snapshotSequence: number;
2181
+ /** Workspacerevision */
2182
+ workspaceRevision: number;
2183
+ /** Tasks */
2184
+ tasks: TaskSummary$1[];
2185
+ /** Records */
2186
+ records: WorkspaceRecord[];
2187
+ /** Turns */
2188
+ turns?: AuthoringTurn$1[];
2189
+ /**
2190
+ * Hasmoreturns
2191
+ * @default false
2192
+ */
2193
+ hasMoreTurns?: boolean;
2194
+ /** Nextbeforerequestid */
2195
+ nextBeforeRequestId?: string | null;
2196
+ }
2197
+ /**
2198
+ * SessionSummary
2199
+ * Describe one lightweight session row for a course's thread browser.
2200
+ */
2201
+ interface SessionSummary {
2202
+ /**
2203
+ * Sessionid
2204
+ * @format uuid
2205
+ */
2206
+ sessionId: string;
2207
+ /**
2208
+ * Courseid
2209
+ * @format uuid
2210
+ */
2211
+ courseId: string;
2212
+ /** Language */
2213
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2214
+ /** Status */
2215
+ status: "active" | "paused" | "stopped" | "discarded";
2216
+ /**
2217
+ * Title
2218
+ * @minLength 1
2219
+ * @maxLength 96
2220
+ */
2221
+ title: string;
2222
+ /**
2223
+ * Createdat
2224
+ * @format date-time
2225
+ */
2226
+ createdAt: string;
2227
+ /**
2228
+ * Lastactivityat
2229
+ * @format date-time
2230
+ */
2231
+ lastActivityAt: string;
2232
+ }
2233
+ /**
2234
+ * SessionSummaryPage
2235
+ * Describe one server-filtered, offset-paginated page of a course's thread browser.
2236
+ */
2237
+ interface SessionSummaryPage {
2238
+ /** Sessions */
2239
+ sessions: SessionSummary[];
2240
+ /** Total */
2241
+ total: number;
2242
+ /** Page */
2243
+ page: number;
2244
+ /** Perpage */
2245
+ perPage: number;
2246
+ /** Hasmore */
2247
+ hasMore: boolean;
2248
+ }
2249
+ /**
2250
+ * SettingsPayload
2251
+ * Carry a non-empty course settings patch while preserving omitted fields.
2252
+ */
2253
+ interface SettingsPayload {
2254
+ /** Lessonsequenceenabled */
2255
+ lessonSequenceEnabled?: boolean | null;
2256
+ /** Quizfeedbackenabled */
2257
+ quizFeedbackEnabled?: boolean | null;
2258
+ /** Videocompletiontrackingenabled */
2259
+ videoCompletionTrackingEnabled?: boolean | null;
2260
+ /** Certificatefontcolor */
2261
+ certificateFontColor?: string | null;
2262
+ /** Certificatevalidity */
2263
+ certificateValidity?: (({
2264
+ type: "fixed_date";
2265
+ } & FixedValidity) | ({
2266
+ type: "period";
2267
+ } & PeriodValidity)) | null;
2268
+ /** Applyvaliditytoexistingcertificates */
2269
+ applyValidityToExistingCertificates?: boolean | null;
2270
+ /** Removecertificatesignature */
2271
+ removeCertificateSignature?: boolean | null;
2272
+ /** Certificatesignatureassetid */
2273
+ certificateSignatureAssetId?: string | null;
2274
+ }
2275
+ /**
2276
+ * SettingsUpdate
2277
+ * Patch course settings under the operation baseline fence.
2278
+ */
2279
+ interface SettingsUpdateInput {
2280
+ /**
2281
+ * Operationid
2282
+ * @format uuid
2283
+ */
2284
+ operationId: string;
2285
+ /**
2286
+ * Targetid
2287
+ * @format uuid
2288
+ */
2289
+ targetId: string;
2290
+ /** Language */
2291
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2292
+ /** Baselinehash */
2293
+ baselineHash?: string | null;
2294
+ /** Dependencies */
2295
+ dependencies?: string[];
2296
+ /** Fieldbaselines */
2297
+ fieldBaselines?: Record<string, string>;
2298
+ /**
2299
+ * Type
2300
+ * @default "course.settings.update"
2301
+ */
2302
+ type?: "course.settings.update";
2303
+ /** Carry a non-empty course settings patch while preserving omitted fields. */
2304
+ payload: SettingsPayload;
2305
+ }
2306
+ /**
2307
+ * SettingsUpdate
2308
+ * Patch course settings under the operation baseline fence.
2309
+ */
2310
+ interface SettingsUpdateOutput {
2311
+ /**
2312
+ * Operationid
2313
+ * @format uuid
2314
+ */
2315
+ operationId: string;
2316
+ /**
2317
+ * Targetid
2318
+ * @format uuid
2319
+ */
2320
+ targetId: string;
2321
+ /** Language */
2322
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2323
+ /** Baselinehash */
2324
+ baselineHash?: string | null;
2325
+ /** Dependencies */
2326
+ dependencies?: string[];
2327
+ /** Fieldbaselines */
2328
+ fieldBaselines?: Record<string, string>;
2329
+ /**
2330
+ * Type
2331
+ * @default "course.settings.update"
2332
+ */
2333
+ type?: "course.settings.update";
2334
+ /** Carry a non-empty course settings patch while preserving omitted fields. */
2335
+ payload: SettingsPayload;
2336
+ }
2337
+ /**
2338
+ * SourcePolicy
2339
+ * Allowlist source versions and explicitly enabled web, general-knowledge, and research-depth permissions.
2340
+ */
2341
+ interface SourcePolicy {
2342
+ /** Sourceversionids */
2343
+ sourceVersionIds?: string[];
2344
+ /**
2345
+ * Webenabled
2346
+ * @default false
2347
+ */
2348
+ webEnabled?: boolean;
2349
+ /**
2350
+ * Generalknowledgeenabled
2351
+ * @default false
2352
+ */
2353
+ generalKnowledgeEnabled?: boolean;
2354
+ /**
2355
+ * Researchdepth
2356
+ * @default "standard"
2357
+ */
2358
+ researchDepth?: "standard" | "deep";
2359
+ /** Requiredsectionids */
2360
+ requiredSectionIds?: string[];
2361
+ /** Excludedsectionids */
2362
+ excludedSectionIds?: string[];
2363
+ }
2364
+ /**
2365
+ * SourceUploadReceipt
2366
+ * Return the immutable uploaded source version and its queued ingestion task.
2367
+ */
2368
+ interface SourceUploadReceipt {
2369
+ /**
2370
+ * Sourceversionid
2371
+ * @format uuid
2372
+ */
2373
+ sourceVersionId: string;
2374
+ /**
2375
+ * Taskid
2376
+ * @format uuid
2377
+ */
2378
+ taskId: string;
2379
+ /**
2380
+ * Status
2381
+ * @default "queued"
2382
+ */
2383
+ status?: "queued";
2384
+ /**
2385
+ * Checksum
2386
+ * @pattern ^[0-9a-f]{64}$
2387
+ */
2388
+ checksum: string;
2389
+ }
2390
+ /** StructuredGenerationRequest */
2391
+ interface StructuredGenerationRequest {
2392
+ /** Messages */
2393
+ messages: PublicAiMessage[];
2394
+ /** Temperature */
2395
+ temperature?: number | null;
2396
+ }
2397
+ /**
2398
+ * TargetRef
2399
+ * Identify the course entity and fields, blocks, or quiz questions that a targeted edit may touch.
2400
+ */
2401
+ interface TargetRef {
2402
+ /**
2403
+ * Targetid
2404
+ * @format uuid
2405
+ */
2406
+ targetId: string;
2407
+ /** Kind */
2408
+ kind: "course" | "chapter" | "lesson" | "block" | "question";
2409
+ /** Language */
2410
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
2411
+ /** Baselinehash */
2412
+ baselineHash?: string | null;
2413
+ /** Blockids */
2414
+ blockIds?: string[];
2415
+ /** Questionids */
2416
+ questionIds?: string[];
2417
+ /** Allowedfields */
2418
+ allowedFields?: string[];
2419
+ }
2420
+ /**
2421
+ * TaskFailure
2422
+ * Describe a recovery action without exposing provider or source contents.
2423
+ */
2424
+ interface TaskFailure$1 {
2425
+ /** Code */
2426
+ code: string;
2427
+ /** Category */
2428
+ category: "generation" | "evidence" | "author_decision" | "provider" | "configuration" | "internal";
2429
+ /** Stage */
2430
+ stage: string;
2431
+ /** Recoveryaction */
2432
+ recoveryAction: "retry_failed_parts" | "answer_question" | "retry_provider" | "service_fix";
2433
+ /** Retryable */
2434
+ retryable: boolean;
2435
+ /** Affectedchapterids */
2436
+ affectedChapterIds?: string[];
2437
+ /** Affectedlessonids */
2438
+ affectedLessonIds?: string[];
2439
+ /** Correlationid */
2440
+ correlationId?: string | null;
2441
+ /** Detailkey */
2442
+ detailKey?: string | null;
2443
+ /**
2444
+ * Generationrevision
2445
+ * @min 0
2446
+ * @default 0
2447
+ */
2448
+ generationRevision?: number;
2449
+ }
2450
+ /**
2451
+ * TaskSummary
2452
+ * Expose the durable lifecycle and output reference of one authoring task.
2453
+ */
2454
+ interface TaskSummary$1 {
2455
+ /**
2456
+ * Taskid
2457
+ * @format uuid
2458
+ */
2459
+ taskId: string;
2460
+ /**
2461
+ * Requestid
2462
+ * @format uuid
2463
+ */
2464
+ requestId: string;
2465
+ kind?: TaskKind | null;
2466
+ /** Status */
2467
+ status: "queued" | "running" | "waiting_author" | "waiting_dependencies" | "paused" | "succeeded" | "failed" | "superseded" | "stopped";
2468
+ /** Errorcode */
2469
+ errorCode?: string | null;
2470
+ /** Outputid */
2471
+ outputId?: string | null;
2472
+ failure?: TaskFailure$1 | null;
2473
+ }
2474
+ /** TranscriptionResponse */
2475
+ interface TranscriptionResponse {
2476
+ /** Text */
2477
+ text: string;
2478
+ }
2479
+ /** TranslationResponse */
2480
+ interface TranslationResponse {
2481
+ /** Translations */
2482
+ translations: string[];
2483
+ }
2484
+ /**
2485
+ * TrueFalseStatement
2486
+ * Represent one ordered true-or-false statement and its expected value.
2487
+ */
2488
+ interface TrueFalseStatement {
2489
+ /**
2490
+ * Id
2491
+ * @format uuid
2492
+ */
2493
+ id: string;
2494
+ /**
2495
+ * Displayorder
2496
+ * @min 0
2497
+ */
2498
+ displayOrder: number;
2499
+ /** Correctvalue */
2500
+ correctValue: boolean;
2501
+ /** Statement */
2502
+ statement: string;
2503
+ }
2504
+ /**
2505
+ * TurnArtifactRef
2506
+ * Reference an existing review artifact or author question from a turn part.
2507
+ */
2508
+ interface TurnArtifactRef {
2509
+ /** Artifactkind */
2510
+ artifactKind: "proposal" | "question";
2511
+ /** Artifactid */
2512
+ artifactId: string;
2513
+ }
2514
+ /**
2515
+ * TurnHistoryPage
2516
+ * Return one older conversation page with the records needed to render its artifacts.
2517
+ */
2518
+ interface TurnHistoryPage {
2519
+ /**
2520
+ * Courseid
2521
+ * @format uuid
2522
+ */
2523
+ courseId: string;
2524
+ /** Turns */
2525
+ turns: AuthoringTurn$1[];
2526
+ /** Records */
2527
+ records: WorkspaceRecord[];
2528
+ /** Hasmore */
2529
+ hasMore: boolean;
2530
+ /** Nextbeforerequestid */
2531
+ nextBeforeRequestId?: string | null;
2532
+ }
2533
+ /**
2534
+ * TurnPart
2535
+ * Represent one ordered, replayable text, tool, proposal, or question part.
2536
+ */
2537
+ interface TurnPart {
2538
+ /**
2539
+ * Requestid
2540
+ * @format uuid
2541
+ */
2542
+ requestId: string;
2543
+ /** Messageid */
2544
+ messageId: string;
2545
+ /** Partid */
2546
+ partId: string;
2547
+ /** Identify a user-visible part of one authoring assistant response. */
2548
+ partKind: TurnPartKind;
2549
+ /** Taskid */
2550
+ taskId?: string | null;
2551
+ /** Describe the lifecycle of one stable assistant response part. */
2552
+ status: TurnPartStatus;
2553
+ /**
2554
+ * Firstsequence
2555
+ * @min 1
2556
+ */
2557
+ firstSequence: number;
2558
+ /**
2559
+ * Updatedsequence
2560
+ * @min 1
2561
+ */
2562
+ updatedSequence: number;
2563
+ /** Text */
2564
+ text?: string | null;
2565
+ /**
2566
+ * Plansteps
2567
+ * @maxItems 6
2568
+ */
2569
+ planSteps?: string[];
2570
+ /** Answer */
2571
+ answer?: string | null;
2572
+ tool?: TurnTool | null;
2573
+ artifact?: TurnArtifactRef | null;
2574
+ }
2575
+ /**
2576
+ * TurnTool
2577
+ * Describe one stable tool invocation displayed inside an assistant turn.
2578
+ */
2579
+ interface TurnTool {
2580
+ /** Toolcallid */
2581
+ toolCallId: string;
2582
+ /** Toolname */
2583
+ toolName: string;
2584
+ /** Display */
2585
+ display: string;
2586
+ /** Status */
2587
+ status: "started" | "completed" | "failed" | "stopped";
2588
+ result?: TurnToolResult | null;
2589
+ }
2590
+ /**
2591
+ * TurnToolResult
2592
+ * Expose bounded counts from a completed tool without forwarding raw provider output.
2593
+ */
2594
+ interface TurnToolResult {
2595
+ /** Sourcecount */
2596
+ sourceCount?: number | null;
2597
+ /** Findingcount */
2598
+ findingCount?: number | null;
2599
+ }
2600
+ /**
2601
+ * WorkspaceRecord
2602
+ * Expose one immutable workspace projection record by kind and payload.
2603
+ */
2604
+ interface WorkspaceRecord {
2605
+ /**
2606
+ * Id
2607
+ * @format uuid
2608
+ */
2609
+ id: string;
2610
+ /** Kind */
2611
+ kind: string;
2612
+ /** Payload */
2613
+ payload: Record<string, JsonValue>;
2614
+ }
2615
+
2616
+ type QueryParamsType = Record<string | number, any>;
2617
+ interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
2618
+ /** set parameter to `true` for call `securityWorker` for this request */
2619
+ secure?: boolean;
2620
+ /** request path */
2621
+ path: string;
2622
+ /** content type of request body */
2623
+ type?: ContentType;
2624
+ /** query params */
2625
+ query?: QueryParamsType;
2626
+ /** format of response (i.e. response.json() -> format: "json") */
2627
+ format?: ResponseType;
2628
+ /** request body */
2629
+ body?: unknown;
2630
+ }
2631
+ type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
2632
+ interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
2633
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
2634
+ secure?: boolean;
2635
+ format?: ResponseType;
2636
+ }
2637
+ declare enum ContentType {
2638
+ Json = "application/json",
2639
+ JsonApi = "application/vnd.api+json",
2640
+ FormData = "multipart/form-data",
2641
+ UrlEncoded = "application/x-www-form-urlencoded",
2642
+ Text = "text/plain"
2643
+ }
2644
+ declare class HttpClient<SecurityDataType = unknown> {
2645
+ instance: AxiosInstance;
2646
+ private securityData;
2647
+ private securityWorker?;
2648
+ private secure?;
2649
+ private format?;
2650
+ constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
2651
+ setSecurityData: (data: SecurityDataType | null) => void;
2652
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
2653
+ protected stringifyFormItem(formItem: unknown): string;
2654
+ protected createFormData(input: Record<string, unknown>): FormData;
2655
+ request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
2656
+ }
2657
+ /**
2658
+ * @title Luma API
2659
+ * @version 0.1.0
2660
+ */
2661
+ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
2662
+ api: {
2663
+ /**
2664
+ * @description Returns whether required API-key-scoped provider secrets are configured for course generation and voice mentor. Authorization header required: `X-API-Key: <luma_api_key>`.
2665
+ *
2666
+ * @tags Public - Require API Key
2667
+ * @name GetConfigurationStatusApiPublicV1AiConfigurationGet
2668
+ * @summary Get Public API Configuration Status
2669
+ * @request GET:/api/public/v1/ai/configuration
2670
+ * @secure
2671
+ */
2672
+ getConfigurationStatusApiPublicV1AiConfigurationGet: (params?: RequestParams) => Promise<AxiosResponse<PublicConfigurationResponse, any, {}, any>>;
2673
+ /**
2674
+ * No description
2675
+ *
2676
+ * @tags Public - Require API Key
2677
+ * @name MentorChatApiPublicV1AiMentorChatPost
2678
+ * @summary Stream Mentor Chat With Custom Runtime
2679
+ * @request POST:/api/public/v1/ai/mentor/chat
2680
+ * @secure
2681
+ */
2682
+ mentorChatApiPublicV1AiMentorChatPost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
2683
+ /**
2684
+ * No description
2685
+ *
2686
+ * @tags Public - Require API Key
2687
+ * @name GenerateMentorChatApiPublicV1AiMentorChatGeneratePost
2688
+ * @summary Generate Mentor Chat Message With Custom Runtime
2689
+ * @request POST:/api/public/v1/ai/mentor/chat/generate
2690
+ * @secure
2691
+ */
2692
+ generateMentorChatApiPublicV1AiMentorChatGeneratePost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<MentorChatResponse, any, {}, any>>;
2693
+ /**
2694
+ * No description
2695
+ *
2696
+ * @tags Public - Require API Key
2697
+ * @name MentorJudgeApiPublicV1AiMentorJudgePost
2698
+ * @summary Run AI Mentor Judge With Custom Runtime
2699
+ * @request POST:/api/public/v1/ai/mentor/judge
2700
+ * @secure
2701
+ */
2702
+ mentorJudgeApiPublicV1AiMentorJudgePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<JudgeResponse, any, {}, any>>;
2703
+ /**
2704
+ * No description
2705
+ *
2706
+ * @tags Public - Require API Key
2707
+ * @name GenerateMentorConfigurationApiPublicV1AiMentorConfigurationGeneratePost
2708
+ * @summary Generate AI Mentor Configuration With Custom Runtime
2709
+ * @request POST:/api/public/v1/ai/mentor-configuration/generate
2710
+ * @secure
2711
+ */
2712
+ generateMentorConfigurationApiPublicV1AiMentorConfigurationGeneratePost: (data: GenerateAiMentorConfigurationRequest, params?: RequestParams) => Promise<AxiosResponse<AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse, any, {}, any>>;
2713
+ /**
2714
+ * No description
2715
+ *
2716
+ * @tags Public - Require API Key
2717
+ * @name ValidateMentorConfigurationApiPublicV1AiMentorConfigurationValidatePost
2718
+ * @summary Validate AI Mentor Configuration With Custom Runtime
2719
+ * @request POST:/api/public/v1/ai/mentor-configuration/validate
2720
+ * @secure
2721
+ */
2722
+ validateMentorConfigurationApiPublicV1AiMentorConfigurationValidatePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<AiMentorConfigurationValidationResponse, any, {}, any>>;
2723
+ /**
2724
+ * No description
2725
+ *
2726
+ * @tags Public - Require API Key
2727
+ * @name GenerateJudgeConfigurationApiPublicV1AiJudgeConfigurationGeneratePost
2728
+ * @summary Generate AI Judge Configuration With Custom Runtime
2729
+ * @request POST:/api/public/v1/ai/judge-configuration/generate
2730
+ * @secure
2731
+ */
2732
+ generateJudgeConfigurationApiPublicV1AiJudgeConfigurationGeneratePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<AiJudgeConfigurationResponseOutput, any, {}, any>>;
2733
+ /**
2734
+ * No description
2735
+ *
2736
+ * @tags Public - Require API Key
2737
+ * @name ValidateJudgeConfigurationApiPublicV1AiJudgeConfigurationValidatePost
2738
+ * @summary Validate AI Judge Configuration With Custom Runtime
2739
+ * @request POST:/api/public/v1/ai/judge-configuration/validate
2740
+ * @secure
2741
+ */
2742
+ validateJudgeConfigurationApiPublicV1AiJudgeConfigurationValidatePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<AiJudgeConfigurationValidationResponse, any, {}, any>>;
2743
+ /**
2744
+ * No description
2745
+ *
2746
+ * @tags Public - Require API Key
2747
+ * @name GenerateTranslationsApiPublicV1AiTranslationsGeneratePost
2748
+ * @summary Generate Translations With Custom Runtime
2749
+ * @request POST:/api/public/v1/ai/translations/generate
2750
+ * @secure
2751
+ */
2752
+ generateTranslationsApiPublicV1AiTranslationsGeneratePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<TranslationResponse, any, {}, any>>;
2753
+ /**
2754
+ * No description
2755
+ *
2756
+ * @tags Public - Require API Key
2757
+ * @name CreateEmbeddingsApiPublicV1AiEmbeddingsPost
2758
+ * @summary Create Embeddings With Custom Runtime
2759
+ * @request POST:/api/public/v1/ai/embeddings
2760
+ * @secure
2761
+ */
2762
+ createEmbeddingsApiPublicV1AiEmbeddingsPost: (data: EmbeddingsRequest, params?: RequestParams) => Promise<AxiosResponse<EmbeddingsResponse, any, {}, any>>;
2763
+ /**
2764
+ * No description
2765
+ *
2766
+ * @tags Public - Require API Key
2767
+ * @name TranscribeDictationApiPublicV1AiTranscriptionsPost
2768
+ * @summary Transcribe Dictation Audio With Custom Runtime
2769
+ * @request POST:/api/public/v1/ai/transcriptions
2770
+ * @secure
2771
+ */
2772
+ transcribeDictationApiPublicV1AiTranscriptionsPost: (data: BodyTranscribeDictationApiPublicV1AiTranscriptionsPost, params?: RequestParams) => Promise<AxiosResponse<TranscriptionResponse, any, {}, any>>;
2773
+ /**
2774
+ * @description Open or restore the organization-scoped course authoring session.
2775
+ *
2776
+ * @tags Public - Require API Key
2777
+ * @name CreateSessionApiPublicV1AuthoringSessionsPost
2778
+ * @summary Create Session
2779
+ * @request POST:/api/public/v1/authoring/sessions
2780
+ * @secure
2781
+ */
2782
+ createSessionApiPublicV1AuthoringSessionsPost: (data: CreateSession, params?: RequestParams) => Promise<AxiosResponse<SessionSnapshot$1, any, {}, any>>;
2783
+ /**
2784
+ * @description List one server-filtered, offset-paginated page of durable course conversations in stable latest-activity order.
2785
+ *
2786
+ * @tags Public - Require API Key
2787
+ * @name ListSessionsApiPublicV1AuthoringSessionsGet
2788
+ * @summary List Sessions
2789
+ * @request GET:/api/public/v1/authoring/sessions
2790
+ * @secure
2791
+ */
2792
+ listSessionsApiPublicV1AuthoringSessionsGet: (query: {
2793
+ /**
2794
+ * Course Id
2795
+ * @format uuid
2796
+ */
2797
+ course_id: string;
2798
+ /** Keyword */
2799
+ keyword?: string | null;
2800
+ /**
2801
+ * Page
2802
+ * @min 1
2803
+ * @default 1
2804
+ */
2805
+ page?: number;
2806
+ /**
2807
+ * Perpage
2808
+ * @min 1
2809
+ * @max 100
2810
+ * @default 20
2811
+ */
2812
+ perPage?: number;
2813
+ }, params?: RequestParams) => Promise<AxiosResponse<SessionSummaryPage, any, {}, any>>;
2814
+ /**
2815
+ * @description Return the authorized durable workspace snapshot, including task state.
2816
+ *
2817
+ * @tags Public - Require API Key
2818
+ * @name GetSessionApiPublicV1AuthoringSessionsSessionIdGet
2819
+ * @summary Get Session
2820
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}
2821
+ * @secure
2822
+ */
2823
+ getSessionApiPublicV1AuthoringSessionsSessionIdGet: (sessionId: string, params?: RequestParams) => Promise<AxiosResponse<SessionSnapshot$1, any, {}, any>>;
2824
+ /**
2825
+ * @description Page older saved turns and their review artifacts by a stable request cursor.
2826
+ *
2827
+ * @tags Public - Require API Key
2828
+ * @name GetOlderTurnsApiPublicV1AuthoringSessionsSessionIdTurnsGet
2829
+ * @summary Get Older Turns
2830
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}/turns
2831
+ * @secure
2832
+ */
2833
+ getOlderTurnsApiPublicV1AuthoringSessionsSessionIdTurnsGet: (sessionId: string, query: {
2834
+ /**
2835
+ * Beforerequestid
2836
+ * @format uuid
2837
+ */
2838
+ beforeRequestId: string;
2839
+ }, params?: RequestParams) => Promise<AxiosResponse<TurnHistoryPage, any, {}, any>>;
2840
+ /**
2841
+ * @description Read an ordered page after the supplied durable cursor for client replay.
2842
+ *
2843
+ * @tags Public - Require API Key
2844
+ * @name GetEventsApiPublicV1AuthoringSessionsSessionIdEventsGet
2845
+ * @summary Get Events
2846
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}/events
2847
+ * @secure
2848
+ */
2849
+ getEventsApiPublicV1AuthoringSessionsSessionIdEventsGet: (sessionId: string, query?: {
2850
+ /**
2851
+ * Aftersequence
2852
+ * @min 0
2853
+ * @default 0
2854
+ */
2855
+ afterSequence?: number;
2856
+ /**
2857
+ * Limit
2858
+ * @min 1
2859
+ * @max 500
2860
+ * @default 100
2861
+ */
2862
+ limit?: number;
2863
+ }, params?: RequestParams) => Promise<AxiosResponse<EventPage, any, {}, any>>;
2864
+ /**
2865
+ * @description Accept an idempotent authoring command and return its durable acknowledgement.
2866
+ *
2867
+ * @tags Public - Require API Key
2868
+ * @name CommandApiPublicV1AuthoringSessionsSessionIdCommandsPost
2869
+ * @summary Command
2870
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/commands
2871
+ * @secure
2872
+ */
2873
+ commandApiPublicV1AuthoringSessionsSessionIdCommandsPost: (sessionId: string, data: AuthoringCommand$1, params?: RequestParams) => Promise<AxiosResponse<CommandReceipt, any, {}, any>>;
2874
+ /**
2875
+ * @description Accept one organization-scoped selected-detail callback and resume its fenced task.
2876
+ *
2877
+ * @tags Public - Require API Key
2878
+ * @name FulfillContextApiPublicV1AuthoringSessionsSessionIdContextRequestsContextRequestIdFulfillmentPost
2879
+ * @summary Fulfill Context
2880
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/context-requests/{context_request_id}/fulfillment
2881
+ * @secure
2882
+ */
2883
+ fulfillContextApiPublicV1AuthoringSessionsSessionIdContextRequestsContextRequestIdFulfillmentPost: (sessionId: string, contextRequestId: string, data: ContextResponse, params?: RequestParams) => Promise<AxiosResponse<ContextFulfillmentReceipt, any, {}, any>>;
2884
+ /**
2885
+ * @description Record one bounded Core-side context failure and terminate only its waiting task.
2886
+ *
2887
+ * @tags Public - Require API Key
2888
+ * @name FailContextApiPublicV1AuthoringSessionsSessionIdContextRequestsContextRequestIdFailurePost
2889
+ * @summary Fail Context
2890
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/context-requests/{context_request_id}/failure
2891
+ * @secure
2892
+ */
2893
+ failContextApiPublicV1AuthoringSessionsSessionIdContextRequestsContextRequestIdFailurePost: (sessionId: string, contextRequestId: string, data: ContextFailure, params?: RequestParams) => Promise<AxiosResponse<ContextFailureReceipt, any, {}, any>>;
2894
+ /**
2895
+ * @description Freeze a validated selection of reviewed proposals for Core application. This does not write course content to Core.
2896
+ *
2897
+ * @tags Public - Require API Key
2898
+ * @name PrepareExportApiPublicV1AuthoringSessionsSessionIdExportsPost
2899
+ * @summary Prepare Export
2900
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/exports
2901
+ * @secure
2902
+ */
2903
+ prepareExportApiPublicV1AuthoringSessionsSessionIdExportsPost: (sessionId: string, data: PrepareExport, params?: RequestParams) => Promise<AxiosResponse<FrozenExport, any, {}, any>>;
2904
+ /**
2905
+ * @description Read the immutable application bundle previously frozen for this session.
2906
+ *
2907
+ * @tags Public - Require API Key
2908
+ * @name GetExportApiPublicV1AuthoringSessionsSessionIdExportsExportIdGet
2909
+ * @summary Get Export
2910
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}/exports/{export_id}
2911
+ * @secure
2912
+ */
2913
+ getExportApiPublicV1AuthoringSessionsSessionIdExportsExportIdGet: (sessionId: string, exportId: string, params?: RequestParams) => Promise<AxiosResponse<FrozenExport, any, {}, any>>;
2914
+ /**
2915
+ * @description Record Core application feedback against the corresponding frozen export.
2916
+ *
2917
+ * @tags Public - Require API Key
2918
+ * @name ReceiptApiPublicV1AuthoringSessionsSessionIdReceiptsPost
2919
+ * @summary Receipt
2920
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/receipts
2921
+ * @secure
2922
+ */
2923
+ receiptApiPublicV1AuthoringSessionsSessionIdReceiptsPost: (sessionId: string, data: ApplicationReceipt, params?: RequestParams) => Promise<AxiosResponse<ApplicationReceipt, any, {}, any>>;
2924
+ /**
2925
+ * @description Stream durable events after authorization, using Redis only as a wake-up hint. The generator rechecks integration access and reads SQL to recover missed notifications. Closing this response does not cancel authoring tasks.
2926
+ *
2927
+ * @tags Public - Require API Key
2928
+ * @name SubscribeEventsApiPublicV1AuthoringSessionsSessionIdEventsStreamGet
2929
+ * @summary Subscribe Events
2930
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}/events/stream
2931
+ * @secure
2932
+ */
2933
+ subscribeEventsApiPublicV1AuthoringSessionsSessionIdEventsStreamGet: (sessionId: string, query?: {
2934
+ /**
2935
+ * Aftersequence
2936
+ * @min 0
2937
+ * @default 0
2938
+ */
2939
+ afterSequence?: number;
2940
+ }, params?: RequestParams) => Promise<AxiosResponse<string, any, {}, any>>;
2941
+ /**
2942
+ * @description Store an authorized upload and enqueue source processing under its command identity.
2943
+ *
2944
+ * @tags Public - Require API Key
2945
+ * @name UploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost
2946
+ * @summary Upload Source
2947
+ * @request POST:/api/public/v1/authoring/sessions/{session_id}/sources
2948
+ * @secure
2949
+ */
2950
+ uploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost: (sessionId: string, data: BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost, params?: RequestParams) => Promise<AxiosResponse<SourceUploadReceipt, any, {}, any>>;
2951
+ /**
2952
+ * @description Return an authorized asset revision with private, non-cacheable response headers.
2953
+ *
2954
+ * @tags Public - Require API Key
2955
+ * @name DownloadAssetApiPublicV1AuthoringSessionsSessionIdAssetsAssetIdGet
2956
+ * @summary Download Asset
2957
+ * @request GET:/api/public/v1/authoring/sessions/{session_id}/assets/{asset_id}
2958
+ * @secure
2959
+ */
2960
+ downloadAssetApiPublicV1AuthoringSessionsSessionIdAssetsAssetIdGet: (sessionId: string, assetId: string, query?: {
2961
+ /**
2962
+ * Revision
2963
+ * @min 1
2964
+ * @default 1
2965
+ */
2966
+ revision?: number;
2967
+ }, params?: RequestParams) => Promise<AxiosResponse<File, any, {}, any>>;
2968
+ /**
2969
+ * No description
2970
+ *
2971
+ * @tags Public - Require Admin API Key
2972
+ * @name ListOrganizationApiKeysApiPublicV1AdminOrganizationsOrganizationIdApiKeysGet
2973
+ * @summary List Organization Api Keys
2974
+ * @request GET:/api/public/v1/admin/organizations/{organization_id}/api-keys
2975
+ * @secure
2976
+ */
2977
+ listOrganizationApiKeysApiPublicV1AdminOrganizationsOrganizationIdApiKeysGet: (organizationId: string, params?: RequestParams) => Promise<AxiosResponse<ApiKeyResponse[], any, {}, any>>;
2978
+ /**
2979
+ * No description
2980
+ *
2981
+ * @tags Public - Require Admin API Key
2982
+ * @name CreateOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysPost
2983
+ * @summary Create Organization Api Key
2984
+ * @request POST:/api/public/v1/admin/organizations/{organization_id}/api-keys
2985
+ * @secure
2986
+ */
2987
+ createOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysPost: (organizationId: string, data: ApiKeyCreateRequest, params?: RequestParams) => Promise<AxiosResponse<ApiKeyCreateResponse, any, {}, any>>;
2988
+ /**
2989
+ * No description
2990
+ *
2991
+ * @tags Public - Require Admin API Key
2992
+ * @name GetOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdGet
2993
+ * @summary Get Organization Api Key
2994
+ * @request GET:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}
2995
+ * @secure
2996
+ */
2997
+ getOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdGet: (organizationId: string, apiKeyId: string, params?: RequestParams) => Promise<AxiosResponse<ApiKeyResponse, any, {}, any>>;
2998
+ /**
2999
+ * No description
3000
+ *
3001
+ * @tags Public - Require Admin API Key
3002
+ * @name UpdateOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdPatch
3003
+ * @summary Update Organization Api Key
3004
+ * @request PATCH:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}
3005
+ * @secure
3006
+ */
3007
+ updateOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdPatch: (organizationId: string, apiKeyId: string, data: ApiKeyUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<ApiKeyResponse, any, {}, any>>;
3008
+ /**
3009
+ * No description
3010
+ *
3011
+ * @tags Public - Require Admin API Key
3012
+ * @name RevokeOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdDelete
3013
+ * @summary Revoke Organization Api Key
3014
+ * @request DELETE:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}
3015
+ * @secure
3016
+ */
3017
+ revokeOrganizationApiKeyApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdDelete: (organizationId: string, apiKeyId: string, params?: RequestParams) => Promise<AxiosResponse<Record<string, string>, any, {}, any>>;
3018
+ /**
3019
+ * No description
3020
+ *
3021
+ * @tags Public - Require Admin API Key
3022
+ * @name GetOrganizationApiKeyConfigurationApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdConfigurationGet
3023
+ * @summary Get Organization Api Key Configuration
3024
+ * @request GET:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}/configuration
3025
+ * @secure
3026
+ */
3027
+ getOrganizationApiKeyConfigurationApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdConfigurationGet: (organizationId: string, apiKeyId: string, params?: RequestParams) => Promise<AxiosResponse<PublicConfigurationResponse, any, {}, any>>;
3028
+ /**
3029
+ * No description
3030
+ *
3031
+ * @tags Public - Require Admin API Key
3032
+ * @name ListOrganizationApiKeyAssignmentsApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdAiModelAssignmentsGet
3033
+ * @summary List Organization Api Key Assignments
3034
+ * @request GET:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}/ai-model-assignments
3035
+ * @secure
3036
+ */
3037
+ listOrganizationApiKeyAssignmentsApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdAiModelAssignmentsGet: (organizationId: string, apiKeyId: string, params?: RequestParams) => Promise<AxiosResponse<AiModelAssignmentResponse[], any, {}, any>>;
3038
+ /**
3039
+ * No description
3040
+ *
3041
+ * @tags Public - Require Admin API Key
3042
+ * @name UpdateOrganizationApiKeyAssignmentApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdAiModelAssignmentsDomainPatch
3043
+ * @summary Update Organization Api Key Assignment
3044
+ * @request PATCH:/api/public/v1/admin/organizations/{organization_id}/api-keys/{api_key_id}/ai-model-assignments/{domain}
3045
+ * @secure
3046
+ */
3047
+ updateOrganizationApiKeyAssignmentApiPublicV1AdminOrganizationsOrganizationIdApiKeysApiKeyIdAiModelAssignmentsDomainPatch: (organizationId: string, apiKeyId: string, domain: AiModelDomain, data: AiModelAssignmentUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<AiModelAssignmentResponse, any, {}, any>>;
3048
+ /**
3049
+ * No description
3050
+ *
3051
+ * @tags Public - Require Admin API Key
3052
+ * @name ListOrganizationAiModelProfilesApiPublicV1AdminOrganizationsOrganizationIdAiModelProfilesGet
3053
+ * @summary List Organization Ai Model Profiles
3054
+ * @request GET:/api/public/v1/admin/organizations/{organization_id}/ai-model-profiles
3055
+ * @secure
3056
+ */
3057
+ listOrganizationAiModelProfilesApiPublicV1AdminOrganizationsOrganizationIdAiModelProfilesGet: (organizationId: string, params?: RequestParams) => Promise<AxiosResponse<AiModelProfileResponse[], any, {}, any>>;
3058
+ };
3059
+ }
3060
+
3061
+ declare const LUMA_AI_MODEL_DOMAINS: {
3062
+ readonly AI_MENTOR: AiModelDomain.AiMentor;
3063
+ readonly AI_MENTOR_CONFIGURATION_GENERATOR: AiModelDomain.AiMentorConfigurationGenerator;
3064
+ readonly AI_MENTOR_JUDGE: AiModelDomain.AiMentorJudge;
3065
+ readonly AI_JUDGE_CONFIGURATION_GENERATOR: AiModelDomain.AiJudgeConfigurationGenerator;
3066
+ readonly AI_JUDGE_CONFIGURATION_VALIDATOR: AiModelDomain.AiJudgeConfigurationValidator;
3067
+ readonly TRANSLATIONS: AiModelDomain.Translations;
3068
+ readonly COURSE_GENERATION: AiModelDomain.CourseGeneration;
3069
+ readonly COURSE_GENERATION_VISUAL_ASSETS: AiModelDomain.CourseGenerationVisualAssets;
3070
+ readonly COURSE_GENERATION_EMBEDDINGS: AiModelDomain.CourseGenerationEmbeddings;
3071
+ readonly EMBEDDINGS: AiModelDomain.Embeddings;
3072
+ readonly DICTATION_TRANSCRIPTION: AiModelDomain.DictationTranscription;
3073
+ readonly VOICE_TRANSCRIPTION: AiModelDomain.VoiceTranscription;
3074
+ readonly VOICE_TTS: AiModelDomain.VoiceTts;
3075
+ };
3076
+ type LumaAiModelDomain = (typeof LUMA_AI_MODEL_DOMAINS)[keyof typeof LUMA_AI_MODEL_DOMAINS];
3077
+ declare const LUMA_AI_MODEL_PROFILE_KINDS: {
3078
+ readonly CHAT: AiModelProfileKind.Chat;
3079
+ readonly IMAGE: AiModelProfileKind.Image;
3080
+ readonly EMBEDDING: AiModelProfileKind.Embedding;
3081
+ readonly SPEECH_TO_TEXT: AiModelProfileKind.SpeechToText;
3082
+ readonly TEXT_TO_SPEECH: AiModelProfileKind.TextToSpeech;
3083
+ };
3084
+ type LumaAiModelProfileKind = (typeof LUMA_AI_MODEL_PROFILE_KINDS)[keyof typeof LUMA_AI_MODEL_PROFILE_KINDS];
3085
+
3086
+ type AdminOrganizationIdOptions = {
3087
+ organizationId: string;
3088
+ };
3089
+ type AdminApiKeyIdentifierOptions = AdminOrganizationIdOptions & {
3090
+ apiKeyId: string;
3091
+ };
3092
+ type AdminApiKeyCreateOptions = AdminOrganizationIdOptions & ApiKeyCreateRequest;
3093
+ type AdminApiKeyUpdateOptions = AdminApiKeyIdentifierOptions & ApiKeyUpdateRequest;
3094
+ type AdminApiKeyResponse = ApiKeyResponse;
3095
+ type AdminApiKeyCreateResponse = ApiKeyCreateResponse;
3096
+ type AdminApiKeyRevokeResponse = Record<string, string>;
3097
+ type AdminConfigurationResponse = PublicConfigurationResponse;
3098
+ type AdminModelAssignmentResponse = AiModelAssignmentResponse;
3099
+ type AdminModelProfileResponse = AiModelProfileResponse;
3100
+ type AdminApiKeyAssignmentUpdateOptions = AdminApiKeyIdentifierOptions & AiModelAssignmentUpdateRequest & {
3101
+ domain: LumaAiModelDomain;
3102
+ };
3103
+
3104
+ /**
3105
+ * Consumer-facing authoring contracts derived from generated API types.
3106
+ * Creation-specific Mentor requirements are narrowed here without duplicating the
3107
+ * full wire schema. Stream callbacks and transfer options are SDK-local contracts.
3108
+ */
3109
+
3110
+ type GeneratedAuthoringOperation = NonNullable<AuthoringCommand$1["operations"]>[number];
3111
+ type GeneratedNonLessonOperation = Exclude<GeneratedAuthoringOperation, {
3112
+ type: "lesson.create" | "lesson.update";
3113
+ }>;
3114
+ type GeneratedLessonPayload = LessonWriteInput["payload"];
3115
+ type GeneratedNonMentorLessonPayload = Exclude<GeneratedLessonPayload, {
3116
+ lessonType: "ai_mentor";
3117
+ }>;
3118
+ type AuthoringMentorLessonCreatePayload = Omit<MentorLessonInput, "judgeConfiguration"> & {
3119
+ lessonType: "ai_mentor";
3120
+ judgeConfiguration: AiJudgeConfigurationResponseInput;
3121
+ };
3122
+ type AuthoringLessonCreateOperation = Omit<LessonWriteInput, "type" | "payload"> & {
3123
+ type: "lesson.create";
3124
+ payload: GeneratedNonMentorLessonPayload | AuthoringMentorLessonCreatePayload;
3125
+ };
3126
+ type AuthoringLessonUpdateOperation = Omit<LessonWriteInput, "type"> & {
3127
+ type: "lesson.update";
3128
+ };
3129
+ type AuthoringOperation = GeneratedNonLessonOperation | AuthoringLessonCreateOperation | AuthoringLessonUpdateOperation;
3130
+ /**
3131
+ * Public command input. It narrows mentor lesson creation so a judge configuration
3132
+ * cannot be omitted or explicitly set to null.
3133
+ */
3134
+ type AuthoringCommand = Omit<AuthoringCommand$1, "operations"> & {
3135
+ operations?: AuthoringOperation[] | null;
3136
+ };
3137
+ type AuthoringWorkProgressStage = "outline" | "lesson_planning" | "lesson_generation" | "validation" | "repairing" | "recovering";
3138
+ type AuthoringWorkProgressChapter = {
3139
+ chapterId: string;
3140
+ title: string;
3141
+ lessonCount: number;
3142
+ status: "pending" | "running" | "complete" | "failed";
3143
+ failureCode?: string;
3144
+ };
3145
+ type AuthoringWorkProgress = {
3146
+ stage: AuthoringWorkProgressStage;
3147
+ chapters?: AuthoringWorkProgressChapter[];
3148
+ completedLessons?: number;
3149
+ totalLessons?: number;
3150
+ lessonId?: string;
3151
+ lessonTitle?: string;
3152
+ chapterId?: string;
3153
+ chapterTitle?: string;
3154
+ failedLessonIds?: string[];
3155
+ repairAttempt?: number;
3156
+ repairLimit?: number;
3157
+ };
3158
+ type AuthoringTaskFailure = TaskFailure$1;
3159
+ type TaskFailure = TaskFailure$1;
3160
+ type TaskSummary = TaskSummary$1 & {
3161
+ failure?: TaskFailure | null;
3162
+ workProgress?: AuthoringWorkProgress;
3163
+ };
3164
+ type SessionSnapshot = Omit<SessionSnapshot$1, "tasks"> & {
3165
+ tasks: TaskSummary[];
3166
+ };
3167
+ type AuthoringCreateSessionOptions = CreateSession;
3168
+ type AuthoringSessionSnapshot = SessionSnapshot;
3169
+ type AuthoringTurnHistoryPage = TurnHistoryPage;
3170
+ type AuthoringSessionSummary = SessionSummary;
3171
+ type AuthoringSessionPage = SessionSummaryPage;
3172
+ type AuthoringTurn = AuthoringTurn$1;
3173
+ type AuthoringTurnPart = TurnPart;
3174
+ type AuthoringTaskSummary = TaskSummary;
3175
+ type AuthoringWorkspaceRecord = WorkspaceRecord;
3176
+ type AuthoringEvent = Event;
3177
+ type AuthoringEventPage = EventPage;
3178
+ type AuthoringCommandReceipt = CommandReceipt;
3179
+ type AuthoringContextResponse = ContextResponse;
3180
+ type AuthoringContextFulfillmentReceipt = ContextFulfillmentReceipt;
3181
+ type AuthoringContextFailure = ContextFailure;
3182
+ type AuthoringContextFailureReceipt = ContextFailureReceipt;
3183
+ type PrepareAuthoringExport = PrepareExport;
3184
+ type FrozenAuthoringExport = FrozenExport;
3185
+ type AuthoringApplicationReceipt = ApplicationReceipt;
3186
+ type AuthoringSessionOptions = {
3187
+ sessionId: string;
3188
+ };
3189
+ type AuthoringTurnHistoryOptions = AuthoringSessionOptions & {
3190
+ beforeRequestId: string;
3191
+ };
3192
+ /** Scope, filter, and page the lightweight thread browser for one Core-authorized course. */
3193
+ type ListAuthoringSessionsOptions = {
3194
+ courseId: string;
3195
+ keyword?: string;
3196
+ page?: number;
3197
+ perPage?: number;
3198
+ };
3199
+ type AuthoringEventsOptions = AuthoringSessionOptions & {
3200
+ afterSequence?: number;
3201
+ limit?: number;
3202
+ };
3203
+ type AuthoringSubscriptionErrorCode = "history_expired" | "permission_revoked";
3204
+ /** Terminal subscription condition that requires access recovery or a fresh snapshot. */
3205
+ declare class AuthoringSubscriptionError extends Error {
3206
+ readonly code: AuthoringSubscriptionErrorCode;
3207
+ /** Preserve the machine-readable terminal reason for consumer recovery decisions. */
3208
+ constructor(code: AuthoringSubscriptionErrorCode);
3209
+ }
3210
+ type SubscribeAuthoringEventsOptions = AuthoringSessionOptions & {
3211
+ afterSequence?: number;
3212
+ signal?: AbortSignal;
3213
+ onEvent: (event: AuthoringEvent) => void | Promise<void>;
3214
+ onError?: (error: AuthoringSubscriptionError) => void | Promise<void>;
3215
+ };
3216
+ type SendAuthoringCommandOptions = AuthoringSessionOptions & {
3217
+ command: AuthoringCommand;
3218
+ };
3219
+ type PrepareAuthoringExportOptions = AuthoringSessionOptions & {
3220
+ request: PrepareAuthoringExport;
3221
+ };
3222
+ type GetAuthoringExportOptions = AuthoringSessionOptions & {
3223
+ exportId: string;
3224
+ };
3225
+ type RecordAuthoringReceiptOptions = AuthoringSessionOptions & {
3226
+ receipt: AuthoringApplicationReceipt;
3227
+ };
3228
+ /** Fulfill one AI-selected detail request with Core-authorized current content. */
3229
+ type FulfillAuthoringContextOptions = AuthoringSessionOptions & {
3230
+ contextRequestId: string;
3231
+ response: AuthoringContextResponse;
3232
+ };
3233
+ /** Report an authorized, terminal context failure without exposing lesson content. */
3234
+ type FailAuthoringContextOptions = AuthoringSessionOptions & {
3235
+ contextRequestId: string;
3236
+ failure: AuthoringContextFailure;
3237
+ };
3238
+ type UploadAuthoringSourceOptions = AuthoringSessionOptions & BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost;
3239
+ type AuthoringSourceUploadReceipt = SourceUploadReceipt;
3240
+ type DownloadAuthoringAssetOptions = AuthoringSessionOptions & {
3241
+ assetId: string;
3242
+ revision?: number;
3243
+ /** Maximum response bytes; use the frozen manifest byteSize when available. */
3244
+ maxBytes?: number;
3245
+ signal?: AbortSignal;
3246
+ };
3247
+ type DownloadedAuthoringAsset = {
3248
+ assetId: string;
3249
+ revision: number;
3250
+ bytes: Uint8Array;
3251
+ mimeType?: string;
3252
+ };
3253
+
3254
+ declare const LUMA_VOICE_TIMING_PRECISION: {
3255
+ readonly WORD: "word";
3256
+ readonly SEGMENT: "segment";
3257
+ readonly BOUNDARY_ESTIMATE: "boundary_estimate";
3258
+ readonly UNKNOWN: "unknown";
3259
+ };
3260
+ type LumaVoiceTimingPrecision = (typeof LUMA_VOICE_TIMING_PRECISION)[keyof typeof LUMA_VOICE_TIMING_PRECISION];
3261
+ declare const EXTERNAL_AUDIO_RECOVERY_STATE: {
3262
+ readonly CONNECTED: "connected";
3263
+ readonly RECOVERING: "recovering";
3264
+ readonly FAILED: "failed";
3265
+ };
3266
+ declare const EXTERNAL_AUDIO_OPERATION: {
3267
+ readonly CHUNK: "chunk";
3268
+ readonly SPEECH_START: "speech_start";
3269
+ readonly SPEECH_END: "speech_end";
3270
+ };
3271
+ declare const EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS = 8;
3272
+ declare const EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS = 1024;
3273
+ declare const EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS = 10000;
3274
+ declare const EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS = 15000;
3275
+ declare const EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES: readonly ["AUDIO_SESSION_RUN_REPLACED", "AUDIO_SESSION_CLOSED", "AUDIO_SESSION_RUN_MISMATCH", "AUDIO_SESSION_RUN_ID_UNAVAILABLE"];
3276
+
3277
+ declare const LUMA_SOCKET_MESSAGE_TYPES: {
3278
+ readonly AUDIO_START: "audio.start";
3279
+ readonly AUDIO_CHUNK: "audio.chunk";
3280
+ readonly AUDIO_RECONNECT: "audio.reconnect";
3281
+ readonly AUDIO_RECOVERED: "audio.recovered";
3282
+ readonly AUDIO_STOP: "audio.stop";
3283
+ readonly CLIENT_SPEECH_START: "client.speech.start";
3284
+ readonly CLIENT_SPEECH_END: "client.speech.end";
3285
+ readonly MENTOR_TEXT_DELTA: "mentor.text.delta";
3286
+ readonly MENTOR_TEXT_END: "mentor.text.end";
3287
+ readonly MENTOR_TEXT_ERROR: "mentor.text.error";
3288
+ };
3289
+ declare const LUMA_AUDIO_ACTIONS: {
3290
+ readonly VOICE_MENTOR: "VOICE_MENTOR";
3291
+ };
3292
+ declare const LUMA_AUDIO_FORMATS: {
3293
+ readonly PCM_S16LE: "pcm_s16le";
3294
+ };
3295
+ declare const LUMA_SOCKET_LISTEN_EVENTS: {
3296
+ readonly SERVER_CONNECTED: "server:connected";
3297
+ readonly PONG: "pong";
3298
+ readonly AUDIO_STARTED: "audio:start";
3299
+ readonly AUDIO_CHUNKED: "audio:chunked";
3300
+ readonly AUDIO_CHUNK_ERROR: "audio:chunk_error";
3301
+ readonly AUDIO_RECOVERED: "audio:recovered";
3302
+ readonly AUDIO_RECONNECT_ERROR: "audio:reconnect_error";
3303
+ readonly AUDIO_STOPPED: "audio:stopped";
3304
+ readonly LEARNER_TRANSCRIPTION: "learner:transcription";
3305
+ readonly AUDIO_OUTPUT_ALIGNMENT: "audio:output:alignment";
3306
+ readonly AUDIO_OUTPUT_CHUNK: "audio:output:chunk";
3307
+ readonly AUDIO_OUTPUT_INTERRUPTED: "audio:output:interrupted";
3308
+ readonly AUDIO_OUTPUT_ERROR: "audio:output:error";
3309
+ readonly AUDIO_OUTPUT_COMPLETE: "audio:output:complete";
3310
+ };
3311
+ declare const LUMA_MENTOR_STREAM_EVENT_TYPES: {
3312
+ readonly LEARNER_TRANSCRIPTION: "learner.transcription";
3313
+ readonly AUDIO_OUTPUT_ALIGNMENT: "audio.output.alignment";
3314
+ readonly AUDIO_OUTPUT_CHUNK: "audio.output.chunk";
3315
+ readonly AUDIO_OUTPUT_INTERRUPTED: "audio.output.interrupted";
3316
+ readonly AUDIO_OUTPUT_ERROR: "audio.output.error";
3317
+ readonly AUDIO_OUTPUT_COMPLETE: "audio.output.complete";
3318
+ };
3319
+ declare const LUMA_SOCKET_EMIT_EVENTS: {
3320
+ readonly START_AUDIO: "start_audio";
3321
+ readonly AUDIO_CHUNK: "audio_chunk";
3322
+ readonly AUDIO_RECONNECT: "audio_reconnect";
3323
+ readonly AUDIO_STOP: "audio_stop";
3324
+ readonly CLIENT_SPEECH_START: "client_speech_start";
3325
+ readonly CLIENT_SPEECH_END: "client_speech_end";
3326
+ readonly MENTOR_TEXT_DELTA: "mentor_text_delta";
3327
+ readonly MENTOR_TEXT_END: "mentor_text_end";
3328
+ readonly MENTOR_TEXT_ERROR: "mentor_text_error";
3329
+ readonly PING: "ping";
3330
+ readonly TRIGGER_TTS: "trigger_tts";
3331
+ };
3332
+ declare const TRANSCRIPTION_MODES: {
3333
+ readonly PAUSE_BATCH: "pause_batch";
3334
+ readonly REALTIME_STREAM: "realtime_stream";
3335
+ };
3336
+ declare const LUMA_CAPTURE_PROFILES: {
3337
+ readonly CONTINUOUS_PCM: "continuous_pcm";
3338
+ readonly VAD_SEGMENTED: "vad_segmented";
3339
+ };
3340
+ type LumaCaptureProfile = (typeof LUMA_CAPTURE_PROFILES)[keyof typeof LUMA_CAPTURE_PROFILES];
3341
+ type AudioBinaryChunk = ArrayBuffer | Uint8Array | Buffer;
3342
+ type StartAudioPayload = {
3343
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_START"];
3344
+ audioAction: (typeof LUMA_AUDIO_ACTIONS)["VOICE_MENTOR"];
3345
+ language: string;
3346
+ preset?: string;
3347
+ customTTSReference?: string;
3348
+ meta: {
3349
+ sr: number;
3350
+ channels: number;
3351
+ format: (typeof LUMA_AUDIO_FORMATS)["PCM_S16LE"];
3352
+ };
3353
+ transcriptionMode: (typeof TRANSCRIPTION_MODES)[keyof typeof TRANSCRIPTION_MODES];
3354
+ };
3355
+ type AudioChunkPayload = {
3356
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_CHUNK"];
3357
+ meta: {
3358
+ seq: number;
3359
+ sr: number;
3360
+ samples: number;
3361
+ tsMs: number;
3362
+ };
3363
+ };
3364
+ type AudioReconnectPayload = {
3365
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_RECONNECT"];
3366
+ sessionRunId: string;
3367
+ lastSentAudioSeq: number;
3368
+ attempt: number;
3369
+ };
3370
+ type AudioStopPayload = {
3371
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_STOP"];
3372
+ };
3373
+ type ClientSpeechBoundaryPayload = {
3374
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["CLIENT_SPEECH_START"] | (typeof LUMA_SOCKET_MESSAGE_TYPES)["CLIENT_SPEECH_END"];
3375
+ sessionRunId: string;
3376
+ boundarySeq: number;
3377
+ tsMs: number;
3378
+ lastAudioSeq: number;
3379
+ };
3380
+ type MentorTextDeltaPayload = {
3381
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["MENTOR_TEXT_DELTA"];
3382
+ jobId: string;
3383
+ seq: number;
3384
+ text: string;
3385
+ };
3386
+ type MentorTextEndPayload = {
3387
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["MENTOR_TEXT_END"];
3388
+ jobId: string;
3389
+ reason?: string;
3390
+ };
3391
+ type MentorTextErrorPayload = {
3392
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["MENTOR_TEXT_ERROR"];
3393
+ jobId: string;
3394
+ code: string;
3395
+ message: string;
3396
+ retryable?: boolean;
3397
+ };
3398
+ type AudioTriggerTTSPayload = {
3399
+ content: string;
3400
+ };
3401
+ type ServerConnectedPayload = {
3402
+ sid: string;
3403
+ authenticated: boolean;
3404
+ sessionId: string;
3405
+ };
3406
+ type TranscriptionSessionPlan = {
3407
+ effectiveTranscriptionMode: (typeof TRANSCRIPTION_MODES)[keyof typeof TRANSCRIPTION_MODES];
3408
+ captureProfile: LumaCaptureProfile;
3409
+ endpointOwner: string;
3410
+ interruptionMarker: string;
3411
+ supportsSpeechEvents: boolean;
3412
+ providerAdapter: string;
3413
+ boundarySource: string;
3414
+ supportsPartialTranscripts: boolean;
3415
+ supportsWordTimestamps: boolean;
3416
+ supportsSessionRecovery: boolean;
3417
+ [key: string]: unknown;
3418
+ };
3419
+ type AudioStartedPayload = {
3420
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_START"];
3421
+ sessionId: string;
3422
+ sessionRunId: string;
3423
+ audioAction: (typeof LUMA_AUDIO_ACTIONS)["VOICE_MENTOR"];
3424
+ meta: StartAudioPayload["meta"];
3425
+ currentSocketUser: {
3426
+ userId: string;
3427
+ lessonId: string;
3428
+ };
3429
+ transcriptionSessionPlan: TranscriptionSessionPlan;
3430
+ lastAcceptedAudioSeq: number;
3431
+ nextAudioSeq: number;
3432
+ };
3433
+ type AudioChunkedPayload = {
3434
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_CHUNK"];
3435
+ sessionId: string;
3436
+ sessionRunId: string;
3437
+ acceptedAudioSeq: number;
3438
+ lastAcceptedAudioSeq: number;
3439
+ nextAudioSeq: number;
3440
+ duplicate: boolean;
3441
+ };
3442
+ declare const AUDIO_RECOVERY_STATES: {
3443
+ readonly LISTENING: "listening";
3444
+ readonly MENTOR_ACTIVE: "mentor_active";
3445
+ readonly USER_SPEAKING: "user_speaking";
3446
+ };
3447
+ type AudioRecoveryState = (typeof AUDIO_RECOVERY_STATES)[keyof typeof AUDIO_RECOVERY_STATES];
3448
+ declare const AUDIO_PROVIDER_STATES: {
3449
+ readonly CONNECTED: "connected";
3450
+ readonly RESTARTED: "restarted";
3451
+ readonly NOT_APPLICABLE: "not_applicable";
3452
+ };
3453
+ type AudioProviderState = (typeof AUDIO_PROVIDER_STATES)[keyof typeof AUDIO_PROVIDER_STATES];
3454
+ type AudioRecoveryPayload = {
3455
+ type: (typeof LUMA_SOCKET_MESSAGE_TYPES)["AUDIO_RECOVERED"];
3456
+ sessionId: string;
3457
+ sessionRunId: string;
3458
+ state: AudioRecoveryState;
3459
+ providerState: AudioProviderState;
3460
+ lastAcceptedAudioSeq: number;
3461
+ nextAudioSeq: number;
3462
+ clientLastSentAudioSeq: number;
3463
+ attempt: number;
3464
+ transcriptionSessionPlan: TranscriptionSessionPlan;
3465
+ };
3466
+ type AudioProtocolErrorPayload = {
3467
+ type: string;
3468
+ sessionId: string;
3469
+ sessionRunId?: string;
3470
+ attempt?: number;
3471
+ code: string;
3472
+ meta?: AudioChunkPayload["meta"];
3473
+ };
3474
+ type MentorStreamEventEnvelope<TType extends string, TData> = {
3475
+ type: TType;
3476
+ sessionId: string;
3477
+ jobId: string;
3478
+ tsMs: number;
3479
+ data: TData;
3480
+ };
3481
+ declare const LEARNER_TRANSCRIPT_STATUSES: {
3482
+ readonly PARTIAL: "partial";
3483
+ readonly FINAL: "final";
3484
+ };
3485
+ type LearnerTranscriptStatus = (typeof LEARNER_TRANSCRIPT_STATUSES)[keyof typeof LEARNER_TRANSCRIPT_STATUSES];
3486
+ type LearnerTranscriptionData = {
3487
+ text: string;
3488
+ turnId: string;
3489
+ segmentId: string;
3490
+ revision: number;
3491
+ status: LearnerTranscriptStatus;
3492
+ timing?: LearnerTranscriptionTimingData | null;
3493
+ };
3494
+ type LearnerTranscriptionTimingData = {
3495
+ elapsedMs: number;
3496
+ speechMs: number;
3497
+ pauseCount: number;
3498
+ longestPauseMs: number;
3499
+ averagePauseMs?: number | null;
3500
+ segmentCount: number;
3501
+ wordCount: number;
3502
+ wordsPerMinute?: number | null;
3503
+ timingPrecision: LumaVoiceTimingPrecision;
3504
+ };
3505
+ type AudioOutputChunkData = {
3506
+ seq: number;
3507
+ codec: string;
3508
+ chunkBase64: string;
3509
+ sampleRate?: number | null;
3510
+ };
3511
+ type SpeechAlignmentWord = {
3512
+ text: string;
3513
+ startMs: number;
3514
+ endMs: number;
3515
+ };
3516
+ type AudioOutputAlignmentData = {
3517
+ sequence: number;
3518
+ words: SpeechAlignmentWord[];
3519
+ };
3520
+ type AudioOutputInterruptedData = {
3521
+ reason: string;
3522
+ interruptedTurnId: string | null;
3523
+ };
3524
+ type AudioOutputErrorData = {
3525
+ code: string;
3526
+ message: string;
3527
+ retryable: boolean;
3528
+ };
3529
+ type AudioOutputCompleteData = {
3530
+ totalChunks: number;
3531
+ };
3532
+ type LearnerTranscriptionPayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["LEARNER_TRANSCRIPTION"], LearnerTranscriptionData>;
3533
+ /** @deprecated Use LearnerTranscriptionPayload with explicit partial/final handling. */
3534
+ type MentorTranscriptionPayload = LearnerTranscriptionPayload;
3535
+ type AudioOutputChunkPayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["AUDIO_OUTPUT_CHUNK"], AudioOutputChunkData>;
3536
+ type AudioOutputAlignmentPayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["AUDIO_OUTPUT_ALIGNMENT"], AudioOutputAlignmentData>;
3537
+ type AudioOutputInterruptedPayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["AUDIO_OUTPUT_INTERRUPTED"], AudioOutputInterruptedData>;
3538
+ type AudioOutputErrorPayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["AUDIO_OUTPUT_ERROR"], AudioOutputErrorData>;
3539
+ type AudioOutputCompletePayload = MentorStreamEventEnvelope<(typeof LUMA_MENTOR_STREAM_EVENT_TYPES)["AUDIO_OUTPUT_COMPLETE"], AudioOutputCompleteData>;
3540
+ type LumaSocketListenEvents = {
3541
+ [LUMA_SOCKET_LISTEN_EVENTS.SERVER_CONNECTED]: (payload: ServerConnectedPayload) => void;
3542
+ [LUMA_SOCKET_LISTEN_EVENTS.PONG]: (payload: unknown) => void;
3543
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_STARTED]: (payload: AudioStartedPayload) => void;
3544
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_CHUNKED]: (payload: AudioChunkedPayload) => void;
3545
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_CHUNK_ERROR]: (payload: AudioProtocolErrorPayload) => void;
3546
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_RECOVERED]: (payload: AudioRecoveryPayload) => void;
3547
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_RECONNECT_ERROR]: (payload: AudioProtocolErrorPayload) => void;
3548
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_STOPPED]: (payload: unknown) => void;
3549
+ [LUMA_SOCKET_LISTEN_EVENTS.LEARNER_TRANSCRIPTION]: (payload: LearnerTranscriptionPayload) => void;
3550
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_ALIGNMENT]: (payload: AudioOutputAlignmentPayload) => void;
3551
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_CHUNK]: (payload: AudioOutputChunkPayload) => void;
3552
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_INTERRUPTED]: (payload: AudioOutputInterruptedPayload) => void;
3553
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_ERROR]: (payload: AudioOutputErrorPayload) => void;
3554
+ [LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_COMPLETE]: (payload: AudioOutputCompletePayload) => void;
3555
+ };
3556
+ type LumaSocketEmitEvents = {
3557
+ [LUMA_SOCKET_EMIT_EVENTS.START_AUDIO]: (payload: StartAudioPayload) => void;
3558
+ [LUMA_SOCKET_EMIT_EVENTS.AUDIO_CHUNK]: (payload: AudioChunkPayload, chunk: AudioBinaryChunk) => void;
3559
+ [LUMA_SOCKET_EMIT_EVENTS.AUDIO_RECONNECT]: (payload: AudioReconnectPayload) => void;
3560
+ [LUMA_SOCKET_EMIT_EVENTS.AUDIO_STOP]: (payload: AudioStopPayload) => void;
3561
+ [LUMA_SOCKET_EMIT_EVENTS.CLIENT_SPEECH_START]: (payload: ClientSpeechBoundaryPayload) => void;
3562
+ [LUMA_SOCKET_EMIT_EVENTS.CLIENT_SPEECH_END]: (payload: ClientSpeechBoundaryPayload) => void;
3563
+ [LUMA_SOCKET_EMIT_EVENTS.MENTOR_TEXT_DELTA]: (payload: MentorTextDeltaPayload) => void;
3564
+ [LUMA_SOCKET_EMIT_EVENTS.MENTOR_TEXT_END]: (payload: MentorTextEndPayload) => void;
3565
+ [LUMA_SOCKET_EMIT_EVENTS.MENTOR_TEXT_ERROR]: (payload: MentorTextErrorPayload) => void;
3566
+ [LUMA_SOCKET_EMIT_EVENTS.PING]: (payload?: unknown) => void;
3567
+ [LUMA_SOCKET_EMIT_EVENTS.TRIGGER_TTS]: (payload?: AudioTriggerTTSPayload) => void;
3568
+ };
3569
+ type LumaSocketBase = Socket<LumaSocketListenEvents, LumaSocketEmitEvents>;
3570
+ interface LumaSocket extends LumaSocketBase {
3571
+ startAudio(payload: StartAudioPayload): this;
3572
+ sendAudioChunk(payload: AudioChunkPayload, chunk: AudioBinaryChunk): this;
3573
+ stopAudio(payload?: AudioStopPayload): this;
3574
+ sendClientSpeechStart(payload: ClientSpeechBoundaryPayload): this;
3575
+ sendClientSpeechEnd(payload: ClientSpeechBoundaryPayload): this;
3576
+ sendMentorTextDelta(payload: MentorTextDeltaPayload): this;
3577
+ sendMentorTextEnd(payload: MentorTextEndPayload): this;
3578
+ sendMentorTextError(payload: MentorTextErrorPayload): this;
3579
+ sendPing(payload?: unknown): this;
3580
+ sendTTSTrigger(payload: AudioTriggerTTSPayload): this;
3581
+ onServerConnected(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.SERVER_CONNECTED]): this;
3582
+ onAudioStarted(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_STARTED]): this;
3583
+ onAudioChunked(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_CHUNKED]): this;
3584
+ reconnectAudio(payload: AudioReconnectPayload): this;
3585
+ onAudioChunkError(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_CHUNK_ERROR]): this;
3586
+ onAudioRecovered(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_RECOVERED]): this;
3587
+ onAudioReconnectError(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_RECONNECT_ERROR]): this;
3588
+ onAudioStopped(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_STOPPED]): this;
3589
+ onLearnerTranscription(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.LEARNER_TRANSCRIPTION]): this;
3590
+ /** @deprecated Final-only compatibility adapter; use onLearnerTranscription for all revisions. */
3591
+ onMentorTranscription(handler: (payload: MentorTranscriptionPayload) => void): this;
3592
+ onAudioOutputChunk(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_CHUNK]): this;
3593
+ onAudioOutputAlignment(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_ALIGNMENT]): this;
3594
+ onAudioOutputInterrupted(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_INTERRUPTED]): this;
3595
+ onAudioOutputError(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_ERROR]): this;
3596
+ onAudioOutputComplete(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_COMPLETE]): this;
3597
+ }
3598
+
3599
+ export { type GetAuthoringExportOptions as $, type AiJudgeConfigurationResponseOutput as A, type BodyTranscribeDictationApiPublicV1AiTranscriptionsPost as B, type AuthoringTurnHistoryOptions as C, type AuthoringTurnHistoryPage as D, type EmbeddingsRequest as E, type AuthoringEventsOptions as F, type GenerateAiMentorConfigurationRequest as G, type AuthoringEventPage as H, type SubscribeAuthoringEventsOptions as I, type JudgeResponse as J, type AuthoringSourceUploadReceipt as K, type ListAuthoringSessionsOptions as L, type MentorChatRequest as M, type DownloadAuthoringAssetOptions as N, type DownloadedAuthoringAsset as O, type PublicConfigurationResponse as P, type SendAuthoringCommandOptions as Q, type AuthoringCommandReceipt as R, type StructuredGenerationRequest as S, type TranslationResponse as T, type UploadAuthoringSourceOptions as U, type FulfillAuthoringContextOptions as V, type AuthoringContextFulfillmentReceipt as W, type FailAuthoringContextOptions as X, type AuthoringContextFailureReceipt as Y, type PrepareAuthoringExportOptions as Z, type FrozenAuthoringExport as _, type EmbeddingsResponse as a, type ContextResponse as a$, type RecordAuthoringReceiptOptions as a0, type AuthoringApplicationReceipt as a1, type LumaSocket as a2, AUDIO_PROVIDER_STATES as a3, AUDIO_RECOVERY_STATES as a4, type AiCapabilityStatus as a5, type AiJudgeConfigurationResponseInput as a6, type AiModelAssignmentResponse as a7, type AiModelAssignmentUpdateRequest as a8, AiModelDomain as a9, type AudioStopPayload as aA, type AudioTriggerTTSPayload as aB, type AuthoringCommand as aC, type AuthoringContextFailure as aD, type AuthoringContextResponse as aE, type AuthoringEvent as aF, type AuthoringLessonCreateOperation as aG, type AuthoringLessonUpdateOperation as aH, type AuthoringMentorLessonCreatePayload as aI, type AuthoringOperation as aJ, type AuthoringSessionSummary as aK, AuthoringSubscriptionError as aL, type AuthoringSubscriptionErrorCode as aM, type AuthoringTaskFailure as aN, type AuthoringTaskSummary as aO, type AuthoringTurn as aP, type AuthoringTurnPart as aQ, type AuthoringWorkProgress as aR, type AuthoringWorkProgressChapter as aS, type AuthoringWorkProgressStage as aT, type AuthoringWorkspaceRecord as aU, type BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost as aV, type ClientSpeechBoundaryPayload as aW, type CommandReceipt as aX, type ContextFailure as aY, type ContextFailureReceipt as aZ, type ContextFulfillmentReceipt as a_, AiModelProfileKind as aa, type AiModelProfileResponse as ab, type ApiKeyCreateRequest as ac, type ApiKeyCreateResponse as ad, type ApiKeyResponse as ae, type ApiKeyUpdateRequest as af, type ApplicationReceipt as ag, type AudioBinaryChunk as ah, type AudioChunkPayload as ai, type AudioChunkedPayload as aj, type AudioOutputAlignmentData as ak, type AudioOutputAlignmentPayload as al, type AudioOutputChunkData as am, type AudioOutputChunkPayload as an, type AudioOutputCompleteData as ao, type AudioOutputCompletePayload as ap, type AudioOutputErrorData as aq, type AudioOutputErrorPayload as ar, type AudioOutputInterruptedData as as, type AudioOutputInterruptedPayload as at, type AudioProtocolErrorPayload as au, type AudioProviderState as av, type AudioReconnectPayload as aw, type AudioRecoveryPayload as ax, type AudioRecoveryState as ay, type AudioStartedPayload as az, type AiMentorTeacherConfigurationResponse as b, type CreateSession as b0, EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS as b1, EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS as b2, EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS as b3, EXTERNAL_AUDIO_OPERATION as b4, EXTERNAL_AUDIO_RECOVERY_STATE as b5, EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS as b6, EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES as b7, type EventPage as b8, type FrozenExport as b9, type PrepareAuthoringExport as bA, type PrepareExport as bB, type ProposalReviewDecision as bC, type PublicAiMessage as bD, ReasoningEffort as bE, type ServerConnectedPayload as bF, type SessionSnapshot as bG, type SessionSummary as bH, type SessionSummaryPage as bI, type SourceUploadReceipt as bJ, type SpeechAlignmentWord as bK, type StartAudioPayload as bL, TRANSCRIPTION_MODES as bM, type TaskFailure as bN, TaskKind as bO, type TaskSummary as bP, type TranscriptionSessionPlan as bQ, TurnPartKind as bR, TurnPartStatus as bS, TurnStatus as bT, type WorkspaceRecord as bU, LEARNER_TRANSCRIPT_STATUSES as ba, LUMA_AI_MODEL_DOMAINS as bb, LUMA_AI_MODEL_PROFILE_KINDS as bc, LUMA_AUDIO_ACTIONS as bd, LUMA_AUDIO_FORMATS as be, LUMA_CAPTURE_PROFILES as bf, LUMA_MENTOR_STREAM_EVENT_TYPES as bg, LUMA_SOCKET_EMIT_EVENTS as bh, LUMA_SOCKET_LISTEN_EVENTS as bi, LUMA_SOCKET_MESSAGE_TYPES as bj, LUMA_VOICE_TIMING_PRECISION as bk, type LearnerTranscriptStatus as bl, type LearnerTranscriptionData as bm, type LearnerTranscriptionPayload as bn, type LearnerTranscriptionTimingData as bo, type LumaAiModelDomain as bp, type LumaAiModelProfileKind as bq, type LumaCaptureProfile as br, type LumaSocketEmitEvents as bs, type LumaSocketListenEvents as bt, type LumaVoiceTimingPrecision as bu, type MentorStreamEventEnvelope as bv, type MentorTextDeltaPayload as bw, type MentorTextEndPayload as bx, type MentorTextErrorPayload as by, type MentorTranscriptionPayload as bz, type AiMentorRoleplayConfigurationResponse as c, AiCapability as d, AiCapabilityMode as e, AiCapabilityProvider as f, type AiJudgeConfigurationValidationResponse as g, type AiMentorConfigurationValidationResponse as h, type TranscriptionResponse as i, type MentorChatResponse as j, API as k, type AdminOrganizationIdOptions as l, type AdminApiKeyResponse as m, type AdminApiKeyCreateOptions as n, type AdminApiKeyCreateResponse as o, type AdminApiKeyIdentifierOptions as p, type AdminApiKeyUpdateOptions as q, type AdminApiKeyRevokeResponse as r, type AdminConfigurationResponse as s, type AdminModelAssignmentResponse as t, type AdminApiKeyAssignmentUpdateOptions as u, type AdminModelProfileResponse as v, type AuthoringCreateSessionOptions as w, type AuthoringSessionSnapshot as x, type AuthoringSessionPage as y, type AuthoringSessionOptions as z };