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