@mentingo/luma-sdk 0.4.0 → 0.5.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.
@@ -54,6 +54,7 @@ declare enum TaskKind {
54
54
  Lesson = "lesson",
55
55
  Edit = "edit",
56
56
  Source = "source",
57
+ SourceVision = "source_vision",
57
58
  Asset = "asset",
58
59
  CourseReview = "course_review"
59
60
  }
@@ -118,6 +119,7 @@ declare enum AiModelDomain {
118
119
  AiJudgeConfigurationValidator = "aiJudgeConfigurationValidator",
119
120
  Translations = "translations",
120
121
  CourseGeneration = "courseGeneration",
122
+ CourseGenerationVision = "courseGenerationVision",
121
123
  CourseGenerationVisualAssets = "courseGenerationVisualAssets",
122
124
  CourseGenerationEmbeddings = "courseGenerationEmbeddings",
123
125
  Embeddings = "embeddings",
@@ -131,7 +133,7 @@ declare enum AiMentorConfigurationValidationSeverity {
131
133
  Warning = "warning"
132
134
  }
133
135
  /** AiMentorConfigurationType */
134
- declare enum AiMentorConfigurationType {
136
+ declare enum AiMentorConfigurationType$1 {
135
137
  Teacher = "teacher",
136
138
  Roleplay = "roleplay"
137
139
  }
@@ -165,6 +167,7 @@ declare enum AiCapabilityMode {
165
167
  /** AiCapability */
166
168
  declare enum AiCapability {
167
169
  CourseGeneration = "courseGeneration",
170
+ CourseGenerationVision = "courseGenerationVision",
168
171
  CourseGenerationVisualAssets = "courseGenerationVisualAssets",
169
172
  CourseGenerationEmbeddings = "courseGenerationEmbeddings",
170
173
  AiMentorChat = "aiMentorChat",
@@ -836,7 +839,7 @@ interface AuthoringCommand$1 {
836
839
  /** Actorid */
837
840
  actorId: string;
838
841
  /** 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";
842
+ 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" | "autonomous.fail";
840
843
  request?: AuthoringRequest | null;
841
844
  /** Targetid */
842
845
  targetId?: string | null;
@@ -862,6 +865,8 @@ interface AuthoringCommand$1 {
862
865
  } & ReorderOperation) | ({
863
866
  type: "chapter.update";
864
867
  } & ChapterWrite) | ({
868
+ type: "course.create";
869
+ } & CourseCreateOperation$1) | ({
865
870
  type: "course.metadata.update";
866
871
  } & MetadataUpdate) | ({
867
872
  type: "course.settings.update";
@@ -872,6 +877,8 @@ interface AuthoringCommand$1 {
872
877
  } & LessonWriteInput) | ({
873
878
  type: "lesson.delete";
874
879
  } & DeleteOperation) | ({
880
+ type: "lesson.image.insert";
881
+ } & LessonImageInsert) | ({
875
882
  type: "lesson.metadata.update";
876
883
  } & LessonMetadataUpdate) | ({
877
884
  type: "lesson.reorder";
@@ -899,6 +906,11 @@ interface AuthoringRequest {
899
906
  * @default "medium"
900
907
  */
901
908
  reasoningEffort?: ReasoningEffort;
909
+ /**
910
+ * Executionmode
911
+ * @default "review"
912
+ */
913
+ executionMode?: "review" | "autonomous";
902
914
  /** Context */
903
915
  context?: Record<string, JsonValue>;
904
916
  /**
@@ -1320,6 +1332,68 @@ interface ContinuationRef {
1320
1332
  /** Parentworkspacerevision */
1321
1333
  parentWorkspaceRevision?: number | null;
1322
1334
  }
1335
+ /**
1336
+ * CourseCreateOperation
1337
+ * Create exactly one native course for the session's placeholder identity.
1338
+ */
1339
+ interface CourseCreateOperation$1 {
1340
+ /**
1341
+ * Operationid
1342
+ * @format uuid
1343
+ */
1344
+ operationId: string;
1345
+ /**
1346
+ * Targetid
1347
+ * @format uuid
1348
+ */
1349
+ targetId: string;
1350
+ /** Language */
1351
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1352
+ /** Baselinehash */
1353
+ baselineHash?: string | null;
1354
+ /** Dependencies */
1355
+ dependencies?: string[];
1356
+ /** Fieldbaselines */
1357
+ fieldBaselines?: Record<string, string>;
1358
+ /**
1359
+ * Type
1360
+ * @default "course.create"
1361
+ */
1362
+ type?: "course.create";
1363
+ /** Describe the native course proposed during an owner-only draft session. */
1364
+ payload: CourseCreatePayload;
1365
+ }
1366
+ /**
1367
+ * CourseCreatePayload
1368
+ * Describe the native course proposed during an owner-only draft session.
1369
+ */
1370
+ interface CourseCreatePayload {
1371
+ /**
1372
+ * Title
1373
+ * @minLength 1
1374
+ * @maxLength 255
1375
+ */
1376
+ title: string;
1377
+ /**
1378
+ * Description
1379
+ * @minLength 1
1380
+ * @maxLength 20000
1381
+ */
1382
+ description: string;
1383
+ /**
1384
+ * Learningoutcomes
1385
+ * @maxItems 5
1386
+ */
1387
+ learningOutcomes: string[];
1388
+ /** Language */
1389
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1390
+ /** Categoryid */
1391
+ categoryId?: string | null;
1392
+ /** Categorytitle */
1393
+ categoryTitle?: string | null;
1394
+ /** Thumbnailassetid */
1395
+ thumbnailAssetId?: string | null;
1396
+ }
1323
1397
  /**
1324
1398
  * CreateSession
1325
1399
  * Request creation of an authoring session for one course and actor.
@@ -1391,15 +1465,25 @@ interface DragOption {
1391
1465
  */
1392
1466
  displayOrder: number;
1393
1467
  }
1394
- /** EmbeddingsRequest */
1468
+ /**
1469
+ * EmbeddingsRequest
1470
+ * Embed input text with an optional explicitly requested positive vector size.
1471
+ */
1395
1472
  interface EmbeddingsRequest {
1396
1473
  /** Texts */
1397
1474
  texts: string[];
1475
+ /** Dimensions */
1476
+ dimensions?: number | null;
1398
1477
  }
1399
- /** EmbeddingsResponse */
1478
+ /**
1479
+ * EmbeddingsResponse
1480
+ * Return vectors plus the resolved model sent to the provider for this exact call.
1481
+ */
1400
1482
  interface EmbeddingsResponse {
1401
1483
  /** Embeddings */
1402
1484
  embeddings: number[][];
1485
+ /** Model */
1486
+ model?: string | null;
1403
1487
  }
1404
1488
  /**
1405
1489
  * Event
@@ -1505,6 +1589,8 @@ interface FrozenExport {
1505
1589
  } & ReorderOperation) | ({
1506
1590
  type: "chapter.update";
1507
1591
  } & ChapterWrite) | ({
1592
+ type: "course.create";
1593
+ } & CourseCreateOperation$1) | ({
1508
1594
  type: "course.metadata.update";
1509
1595
  } & MetadataUpdate) | ({
1510
1596
  type: "course.settings.update";
@@ -1515,6 +1601,8 @@ interface FrozenExport {
1515
1601
  } & LessonWriteOutput) | ({
1516
1602
  type: "lesson.delete";
1517
1603
  } & DeleteOperation) | ({
1604
+ type: "lesson.image.insert";
1605
+ } & LessonImageInsert) | ({
1518
1606
  type: "lesson.metadata.update";
1519
1607
  } & LessonMetadataUpdate) | ({
1520
1608
  type: "lesson.reorder";
@@ -1535,7 +1623,33 @@ interface GenerateAiMentorConfigurationRequest {
1535
1623
  messages: PublicAiMessage[];
1536
1624
  /** Temperature */
1537
1625
  temperature?: number | null;
1538
- configurationType: AiMentorConfigurationType;
1626
+ configurationType: AiMentorConfigurationType$1;
1627
+ }
1628
+ /**
1629
+ * ImageInsertPayload
1630
+ * Choose one image and existing block without accepting replacement lesson prose.
1631
+ */
1632
+ interface ImageInsertPayload {
1633
+ /**
1634
+ * Assetid
1635
+ * @format uuid
1636
+ */
1637
+ assetId: string;
1638
+ /**
1639
+ * Anchorblockid
1640
+ * @format uuid
1641
+ */
1642
+ anchorBlockId: string;
1643
+ /** Position */
1644
+ position: "before" | "after";
1645
+ /** Caption */
1646
+ caption?: string | null;
1647
+ /**
1648
+ * Alttext
1649
+ * @minLength 1
1650
+ * @maxLength 1000
1651
+ */
1652
+ altText: string;
1539
1653
  }
1540
1654
  type JsonValue = any;
1541
1655
  /** JudgeCriterionResult */
@@ -1576,6 +1690,37 @@ interface JudgeTriggeredBlockingError {
1576
1690
  */
1577
1691
  learnerSafeFeedback: string;
1578
1692
  }
1693
+ /**
1694
+ * LessonImageInsert
1695
+ * Insert an image beside a trusted existing block under the whole-lesson baseline.
1696
+ */
1697
+ interface LessonImageInsert {
1698
+ /**
1699
+ * Operationid
1700
+ * @format uuid
1701
+ */
1702
+ operationId: string;
1703
+ /**
1704
+ * Targetid
1705
+ * @format uuid
1706
+ */
1707
+ targetId: string;
1708
+ /** Language */
1709
+ language: "en" | "pl" | "de" | "lt" | "cs" | "es" | "fr";
1710
+ /** Baselinehash */
1711
+ baselineHash?: string | null;
1712
+ /** Dependencies */
1713
+ dependencies?: string[];
1714
+ /** Fieldbaselines */
1715
+ fieldBaselines?: Record<string, string>;
1716
+ /**
1717
+ * Type
1718
+ * @default "lesson.image.insert"
1719
+ */
1720
+ type?: "lesson.image.insert";
1721
+ /** Choose one image and existing block without accepting replacement lesson prose. */
1722
+ payload: ImageInsertPayload;
1723
+ }
1579
1724
  /**
1580
1725
  * LessonMetadataPayload
1581
1726
  * Patch lesson text without rewriting lesson configuration, assessment, or resources.
@@ -1699,7 +1844,10 @@ interface LessonWriteOutput {
1699
1844
  lessonType: "quiz";
1700
1845
  } & QuizLessonOutput);
1701
1846
  }
1702
- /** MentorChatRequest */
1847
+ /**
1848
+ * MentorChatRequest
1849
+ * Opt in to native assistant metadata without changing existing text/voice calls.
1850
+ */
1703
1851
  interface MentorChatRequest {
1704
1852
  /** Messages */
1705
1853
  messages: PublicAiMessage[];
@@ -1707,8 +1855,29 @@ interface MentorChatRequest {
1707
1855
  temperature?: number | null;
1708
1856
  /** Voicesessionid */
1709
1857
  voiceSessionId?: string | null;
1858
+ /**
1859
+ * Streamformat
1860
+ * @default "text"
1861
+ */
1862
+ streamFormat?: "text" | "events";
1863
+ /**
1864
+ * Tools
1865
+ * @maxItems 128
1866
+ */
1867
+ tools?: NativeChatTool[];
1868
+ /** Toolchoice */
1869
+ toolChoice?: "auto" | "none" | "required" | NamedToolChoice | null;
1870
+ /** Maxoutputtokens */
1871
+ maxOutputTokens?: number | null;
1872
+ /** Topp */
1873
+ topP?: number | null;
1874
+ /** Stopsequences */
1875
+ stopSequences?: string[] | null;
1710
1876
  }
1711
- /** MentorChatResponse */
1877
+ /**
1878
+ * MentorChatResponse
1879
+ * Retain the exact legacy message response for text-only callers.
1880
+ */
1712
1881
  interface MentorChatResponse {
1713
1882
  /** Message */
1714
1883
  message: string;
@@ -1826,6 +1995,136 @@ interface MetadataUpdate {
1826
1995
  /** Carry the optional course metadata fields that a metadata patch may change. */
1827
1996
  payload: MetadataPayload;
1828
1997
  }
1998
+ /**
1999
+ * NamedToolChoice
2000
+ * Select one of the tools declared on this invocation.
2001
+ */
2002
+ interface NamedToolChoice {
2003
+ /**
2004
+ * Name
2005
+ * @minLength 1
2006
+ * @maxLength 128
2007
+ */
2008
+ name: string;
2009
+ }
2010
+ /**
2011
+ * NativeChatResult
2012
+ * Return lossless assistant output when a request opts in to native tool chat.
2013
+ */
2014
+ interface NativeChatResult {
2015
+ /** Message */
2016
+ message: string;
2017
+ /** Toolcalls */
2018
+ toolCalls: NativeToolCall[];
2019
+ /** Finishreason */
2020
+ finishReason: "stop" | "length" | "tool-calls" | "content-filter" | "other";
2021
+ usage?: NativeChatUsage | null;
2022
+ }
2023
+ /**
2024
+ * NativeChatTool
2025
+ * Describe a caller-owned function; Luma asks for calls but never executes it.
2026
+ */
2027
+ interface NativeChatTool {
2028
+ /**
2029
+ * Name
2030
+ * @minLength 1
2031
+ * @maxLength 128
2032
+ */
2033
+ name: string;
2034
+ /** Description */
2035
+ description?: string | null;
2036
+ /** Inputschema */
2037
+ inputSchema: Record<string, JsonValue>;
2038
+ }
2039
+ /**
2040
+ * NativeChatUsage
2041
+ * Report provider token counts only when they are available.
2042
+ */
2043
+ interface NativeChatUsage {
2044
+ /**
2045
+ * Inputtokens
2046
+ * @min 0
2047
+ */
2048
+ inputTokens: number;
2049
+ /**
2050
+ * Outputtokens
2051
+ * @min 0
2052
+ */
2053
+ outputTokens: number;
2054
+ }
2055
+ /**
2056
+ * NativeErrorEvent
2057
+ * Signal a sanitized mid-stream failure without leaking upstream payloads.
2058
+ */
2059
+ interface NativeErrorEvent {
2060
+ /** Type */
2061
+ type: "error";
2062
+ /** Code */
2063
+ code: "provider_request_failed";
2064
+ }
2065
+ /**
2066
+ * NativeFinishEvent
2067
+ * Close a successful native stream with a reason and optional usage.
2068
+ */
2069
+ interface NativeFinishEvent {
2070
+ /** Type */
2071
+ type: "finish";
2072
+ /** Finishreason */
2073
+ finishReason: "stop" | "length" | "tool-calls" | "content-filter" | "other";
2074
+ usage?: NativeChatUsage | null;
2075
+ }
2076
+ /**
2077
+ * NativeTextDelta
2078
+ * Stream visible text without provider-specific wire objects.
2079
+ */
2080
+ interface NativeTextDelta {
2081
+ /** Type */
2082
+ type: "text-delta";
2083
+ /** Text */
2084
+ text: string;
2085
+ }
2086
+ /**
2087
+ * NativeToolCall
2088
+ * Carry one complete validated function call with JSON object arguments.
2089
+ */
2090
+ interface NativeToolCall {
2091
+ /**
2092
+ * Id
2093
+ * @minLength 1
2094
+ * @maxLength 256
2095
+ */
2096
+ id: string;
2097
+ /**
2098
+ * Name
2099
+ * @minLength 1
2100
+ * @maxLength 128
2101
+ */
2102
+ name: string;
2103
+ /** Arguments */
2104
+ arguments: Record<string, JsonValue>;
2105
+ }
2106
+ /**
2107
+ * NativeToolCallEvent
2108
+ * Publish only a complete function call after validating its arguments.
2109
+ */
2110
+ interface NativeToolCallEvent {
2111
+ /**
2112
+ * Id
2113
+ * @minLength 1
2114
+ * @maxLength 256
2115
+ */
2116
+ id: string;
2117
+ /**
2118
+ * Name
2119
+ * @minLength 1
2120
+ * @maxLength 128
2121
+ */
2122
+ name: string;
2123
+ /** Arguments */
2124
+ arguments: Record<string, JsonValue>;
2125
+ /** Type */
2126
+ type: "tool-call";
2127
+ }
1829
2128
  /**
1830
2129
  * OpenTextSettings
1831
2130
  * Constrain and guide manually reviewed free-text answers.
@@ -1919,6 +2218,15 @@ interface PrepareExport {
1919
2218
  proposalIds: string[];
1920
2219
  /** Omitoptionalassetids */
1921
2220
  omitOptionalAssetIds?: string[];
2221
+ /**
2222
+ * Manualapply
2223
+ * @default false
2224
+ */
2225
+ manualApply?: boolean;
2226
+ /** Autonomousrequestid */
2227
+ autonomousRequestId?: string | null;
2228
+ /** Autonomouscontrolepoch */
2229
+ autonomousControlEpoch?: number | null;
1922
2230
  }
1923
2231
  /**
1924
2232
  * ProposalRegeneration
@@ -1965,12 +2273,19 @@ interface ProposalReviewDecision {
1965
2273
  */
1966
2274
  acceptQualityConcerns?: boolean;
1967
2275
  }
1968
- /** PublicAiMessage */
2276
+ /**
2277
+ * PublicAiMessage
2278
+ * Preserve native text messages and carry assistant calls and their tool results.
2279
+ */
1969
2280
  interface PublicAiMessage {
1970
2281
  /** Role */
1971
- role: "system" | "user" | "assistant";
2282
+ role: "system" | "user" | "assistant" | "tool";
1972
2283
  /** Content */
1973
2284
  content: string;
2285
+ /** Toolcalls */
2286
+ toolCalls?: NativeToolCall[] | null;
2287
+ /** Toolcallid */
2288
+ toolCallId?: string | null;
1974
2289
  }
1975
2290
  /** PublicConfigurationResponse */
1976
2291
  interface PublicConfigurationResponse {
@@ -2205,6 +2520,11 @@ interface SessionSnapshot$1 {
2205
2520
  * @default false
2206
2521
  */
2207
2522
  reasoningControlAvailable?: boolean;
2523
+ /**
2524
+ * Pendingwork
2525
+ * @default false
2526
+ */
2527
+ pendingWork?: boolean;
2208
2528
  applicationDelta?: ApplicationDeltaProof;
2209
2529
  /**
2210
2530
  * Schemaversion
@@ -2681,6 +3001,9 @@ interface WorkspaceRecord {
2681
3001
  /** Payload */
2682
3002
  payload: Record<string, JsonValue>;
2683
3003
  }
3004
+ type BaseNullTypeMapping<Key, Type> = {
3005
+ type: Key;
3006
+ } & Type;
2684
3007
 
2685
3008
  type QueryParamsType = Record<string | number, any>;
2686
3009
  interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
@@ -2740,7 +3063,7 @@ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityD
2740
3063
  */
2741
3064
  getConfigurationStatusApiPublicV1AiConfigurationGet: (params?: RequestParams) => Promise<AxiosResponse<PublicConfigurationResponse, any, {}, any>>;
2742
3065
  /**
2743
- * No description
3066
+ * @description Existing text stream by default; streamFormat=events opts into newline-delimited native text, complete tool-call, finish and sanitized error events. Tools execute in the caller, never in Luma.
2744
3067
  *
2745
3068
  * @tags Public - Require API Key
2746
3069
  * @name MentorChatApiPublicV1AiMentorChatPost
@@ -2748,7 +3071,7 @@ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityD
2748
3071
  * @request POST:/api/public/v1/ai/mentor/chat
2749
3072
  * @secure
2750
3073
  */
2751
- mentorChatApiPublicV1AiMentorChatPost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
3074
+ mentorChatApiPublicV1AiMentorChatPost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<string & (BaseNullTypeMapping<"text-delta", NativeTextDelta> | BaseNullTypeMapping<"tool-call", NativeToolCallEvent> | BaseNullTypeMapping<"finish", NativeFinishEvent> | BaseNullTypeMapping<"error", NativeErrorEvent>), any, {}, any>>;
2752
3075
  /**
2753
3076
  * No description
2754
3077
  *
@@ -2758,7 +3081,7 @@ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityD
2758
3081
  * @request POST:/api/public/v1/ai/mentor/chat/generate
2759
3082
  * @secure
2760
3083
  */
2761
- generateMentorChatApiPublicV1AiMentorChatGeneratePost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<MentorChatResponse, any, {}, any>>;
3084
+ generateMentorChatApiPublicV1AiMentorChatGeneratePost: (data: MentorChatRequest, params?: RequestParams) => Promise<AxiosResponse<NativeChatResult | MentorChatResponse, any, {}, any>>;
2762
3085
  /**
2763
3086
  * No description
2764
3087
  *
@@ -2820,7 +3143,7 @@ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityD
2820
3143
  */
2821
3144
  generateTranslationsApiPublicV1AiTranslationsGeneratePost: (data: StructuredGenerationRequest, params?: RequestParams) => Promise<AxiosResponse<TranslationResponse, any, {}, any>>;
2822
3145
  /**
2823
- * No description
3146
+ * @description Embeds texts using the API key's Custom embeddings runtime. Optional dimensions requests a positive vector size. The response model identifies the same resolved runtime used to produce the validated vectors.
2824
3147
  *
2825
3148
  * @tags Public - Require API Key
2826
3149
  * @name CreateEmbeddingsApiPublicV1AiEmbeddingsPost
@@ -3135,6 +3458,7 @@ declare const LUMA_AI_MODEL_DOMAINS: {
3135
3458
  readonly AI_JUDGE_CONFIGURATION_VALIDATOR: AiModelDomain.AiJudgeConfigurationValidator;
3136
3459
  readonly TRANSLATIONS: AiModelDomain.Translations;
3137
3460
  readonly COURSE_GENERATION: AiModelDomain.CourseGeneration;
3461
+ readonly COURSE_GENERATION_VISION: AiModelDomain.CourseGenerationVision;
3138
3462
  readonly COURSE_GENERATION_VISUAL_ASSETS: AiModelDomain.CourseGenerationVisualAssets;
3139
3463
  readonly COURSE_GENERATION_EMBEDDINGS: AiModelDomain.CourseGenerationEmbeddings;
3140
3464
  readonly EMBEDDINGS: AiModelDomain.Embeddings;
@@ -3195,6 +3519,10 @@ type AuthoringLessonCreateOperation = Omit<LessonWriteInput, "type" | "payload">
3195
3519
  type AuthoringLessonUpdateOperation = Omit<LessonWriteInput, "type"> & {
3196
3520
  type: "lesson.update";
3197
3521
  };
3522
+ /** A standalone creation proposal that targets the draft session's placeholder course ID. */
3523
+ type CourseCreateOperation = Extract<GeneratedAuthoringOperation, {
3524
+ type: "course.create";
3525
+ }>;
3198
3526
  type AuthoringOperation = GeneratedNonLessonOperation | AuthoringLessonCreateOperation | AuthoringLessonUpdateOperation;
3199
3527
  /**
3200
3528
  * Public command input. It narrows mentor lesson creation so a judge configuration
@@ -3233,7 +3561,28 @@ type TaskSummary = TaskSummary$1 & {
3233
3561
  type SessionSnapshot = Omit<SessionSnapshot$1, "tasks"> & {
3234
3562
  tasks: TaskSummary[];
3235
3563
  };
3236
- type AuthoringCreateSessionOptions = CreateSession;
3564
+ type AuthoringSessionContextFields = NonNullable<CreateSession["context"]>;
3565
+ /** A category available for selection in the draft course's language. */
3566
+ type AuthoringDraftCourseCategory = {
3567
+ id: string;
3568
+ title: string;
3569
+ language: CreateSession["language"];
3570
+ };
3571
+ /** Trusted host context for an owner-only session awaiting native course creation. */
3572
+ type AuthoringDraftCourseContext = AuthoringSessionContextFields & {
3573
+ draftCourse: true;
3574
+ courseId: string;
3575
+ language: CreateSession["language"];
3576
+ categories: AuthoringDraftCourseCategory[];
3577
+ canCreateCategory: boolean;
3578
+ tenantPalette?: string[];
3579
+ };
3580
+ /** Open an existing-course session or identify a draft by its placeholder course ID. */
3581
+ type AuthoringCreateSessionOptions = Omit<CreateSession, "context"> & {
3582
+ context?: AuthoringDraftCourseContext | (AuthoringSessionContextFields & {
3583
+ draftCourse?: false;
3584
+ });
3585
+ };
3237
3586
  type AuthoringSessionSnapshot = SessionSnapshot;
3238
3587
  type AuthoringTurnHistoryPage = TurnHistoryPage;
3239
3588
  type AuthoringSessionSummary = SessionSummary;
@@ -3665,4 +4014,62 @@ interface LumaSocket extends LumaSocketBase {
3665
4014
  onAudioOutputComplete(handler: LumaSocketListenEvents[typeof LUMA_SOCKET_LISTEN_EVENTS.AUDIO_OUTPUT_COMPLETE]): this;
3666
4015
  }
3667
4016
 
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 };
4017
+ type AiRuntimeConfiguration = PublicConfigurationResponse;
4018
+ type MentorChatOptions = MentorChatRequest;
4019
+ type MentorStreamRequestOptions = {
4020
+ signal?: AbortSignal;
4021
+ };
4022
+ type MentorGenerateChatResponse = MentorChatResponse | NativeChatResult;
4023
+ /** Native NDJSON records returned by event-mode Mentor chat. */
4024
+ type MentorChatEvent = NativeTextDelta | NativeToolCallEvent | NativeFinishEvent | NativeErrorEvent;
4025
+ type MentorJudgeOptions = StructuredGenerationRequest;
4026
+ type MentorJudgeResponse = JudgeResponse;
4027
+ type GenerateAiJudgeConfigurationOptions = StructuredGenerationRequest;
4028
+ type GenerateAiJudgeConfigurationResponse = AiJudgeConfigurationResponseOutput;
4029
+ declare const AI_MENTOR_CONFIGURATION_TYPES: {
4030
+ readonly TEACHER: "teacher";
4031
+ readonly ROLEPLAY: "roleplay";
4032
+ };
4033
+ type AiMentorConfigurationType = (typeof AI_MENTOR_CONFIGURATION_TYPES)[keyof typeof AI_MENTOR_CONFIGURATION_TYPES];
4034
+ type GenerateAiMentorConfigurationOptions = Omit<GenerateAiMentorConfigurationRequest, "configurationType"> & {
4035
+ configurationType: AiMentorConfigurationType;
4036
+ };
4037
+ type GenerateAiMentorConfigurationResponse = AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse;
4038
+ type ValidateAiJudgeConfigurationOptions = StructuredGenerationRequest;
4039
+ type ValidateAiJudgeConfigurationResponse = AiJudgeConfigurationValidationResponse;
4040
+ type ValidateAiMentorConfigurationOptions = StructuredGenerationRequest;
4041
+ type ValidateAiMentorConfigurationResponse = AiMentorConfigurationValidationResponse;
4042
+ type CreateEmbeddingsOptions = EmbeddingsRequest;
4043
+ type CreateEmbeddingsResponse = EmbeddingsResponse;
4044
+ type GenerateTranslationsOptions = StructuredGenerationRequest;
4045
+ type GenerateTranslationsResponse = TranslationResponse;
4046
+ type TranscribeDictationOptions = BodyTranscribeDictationApiPublicV1AiTranscriptionsPost;
4047
+ type TranscribeDictationResponse = TranscriptionResponse;
4048
+ declare const LUMA_AI_CAPABILITY_MODES: {
4049
+ readonly CORE: AiCapabilityMode.Core;
4050
+ readonly CUSTOM: AiCapabilityMode.Custom;
4051
+ readonly DISABLED: AiCapabilityMode.Disabled;
4052
+ };
4053
+ declare const LUMA_AI_CAPABILITY_PROVIDERS: {
4054
+ readonly LUMA: AiCapabilityProvider.Luma;
4055
+ readonly MENTINGO_CORE: AiCapabilityProvider.MentingoCore;
4056
+ };
4057
+ declare const LUMA_AI_CAPABILITIES: {
4058
+ readonly COURSE_GENERATION: AiCapability.CourseGeneration;
4059
+ readonly COURSE_GENERATION_VISION: AiCapability.CourseGenerationVision;
4060
+ readonly COURSE_GENERATION_VISUAL_ASSETS: AiCapability.CourseGenerationVisualAssets;
4061
+ readonly COURSE_GENERATION_EMBEDDINGS: AiCapability.CourseGenerationEmbeddings;
4062
+ readonly AI_MENTOR_CHAT: AiCapability.AiMentorChat;
4063
+ readonly AI_MENTOR_JUDGE: AiCapability.AiMentorJudge;
4064
+ readonly AI_MENTOR_CONFIGURATION_GENERATOR: AiCapability.AiMentorConfigurationGenerator;
4065
+ readonly AI_JUDGE_CONFIGURATION_GENERATOR: AiCapability.AiJudgeConfigurationGenerator;
4066
+ readonly AI_JUDGE_CONFIGURATION_VALIDATOR: AiCapability.AiJudgeConfigurationValidator;
4067
+ readonly AI_MENTOR_RAG_EMBEDDINGS: AiCapability.AiMentorRagEmbeddings;
4068
+ readonly TRANSLATION_GENERATION: AiCapability.TranslationGeneration;
4069
+ readonly DICTATION_TRANSCRIPTION: AiCapability.DictationTranscription;
4070
+ readonly VOICE_TRANSCRIPTION: AiCapability.VoiceTranscription;
4071
+ readonly VOICE_MENTOR: AiCapability.VoiceMentor;
4072
+ readonly VOICE_TEXT_TO_SPEECH: AiCapability.VoiceTextToSpeech;
4073
+ };
4074
+
4075
+ export { type MentorStreamRequestOptions as $, API as A, type AuthoringTurnHistoryPage as B, type CreateEmbeddingsOptions as C, type AuthoringEventsOptions as D, type AuthoringEventPage as E, type AuthoringSourceUploadReceipt as F, type GenerateAiJudgeConfigurationOptions as G, type DownloadAuthoringAssetOptions as H, type DownloadedAuthoringAsset as I, type SendAuthoringCommandOptions as J, type AuthoringCommandReceipt as K, type ListAuthoringSessionsOptions as L, type FulfillAuthoringContextOptions as M, type AuthoringContextFulfillmentReceipt as N, type FailAuthoringContextOptions as O, type AuthoringContextFailureReceipt as P, type PrepareAuthoringExportOptions as Q, type FrozenAuthoringExport as R, type SubscribeAuthoringEventsOptions as S, type TranscribeDictationOptions as T, type UploadAuthoringSourceOptions as U, type ValidateAiJudgeConfigurationOptions as V, type GetAuthoringExportOptions as W, type RecordAuthoringReceiptOptions as X, type AuthoringApplicationReceipt as Y, type PublicConfigurationResponse as Z, type MentorChatOptions as _, type CreateEmbeddingsResponse as a, type AuthoringTurnPart as a$, type NativeChatResult as a0, type MentorGenerateChatResponse as a1, type MentorJudgeOptions as a2, type MentorJudgeResponse as a3, type LumaSocket as a4, AI_MENTOR_CONFIGURATION_TYPES as a5, AUDIO_PROVIDER_STATES as a6, AUDIO_RECOVERY_STATES as a7, AiCapability as a8, AiCapabilityMode as a9, type AudioOutputErrorPayload as aA, type AudioOutputInterruptedData as aB, type AudioOutputInterruptedPayload as aC, type AudioProtocolErrorPayload as aD, type AudioProviderState as aE, type AudioReconnectPayload as aF, type AudioRecoveryPayload as aG, type AudioRecoveryState as aH, type AudioStartedPayload as aI, type AudioStopPayload as aJ, type AudioTriggerTTSPayload as aK, type AuthoringCommand as aL, type AuthoringContextFailure as aM, type AuthoringContextResponse as aN, type AuthoringDraftCourseCategory as aO, type AuthoringDraftCourseContext as aP, type AuthoringEvent as aQ, type AuthoringLessonCreateOperation as aR, type AuthoringLessonUpdateOperation as aS, type AuthoringMentorLessonCreatePayload as aT, type AuthoringOperation as aU, type AuthoringSessionSummary as aV, AuthoringSubscriptionError as aW, type AuthoringSubscriptionErrorCode as aX, type AuthoringTaskFailure as aY, type AuthoringTaskSummary as aZ, type AuthoringTurn as a_, AiCapabilityProvider as aa, type AiCapabilityStatus as ab, type AiJudgeConfigurationResponseInput as ac, type AiMentorConfigurationType as ad, type AiModelAssignmentResponse as ae, type AiModelAssignmentUpdateRequest as af, AiModelDomain as ag, AiModelProfileKind as ah, type AiModelProfileResponse as ai, type AiRuntimeConfiguration as aj, type ApiKeyCreateRequest as ak, type ApiKeyCreateResponse as al, type ApiKeyMetadata as am, type ApiKeyResponse as an, type ApiKeyUpdateRequest as ao, type ApplicationReceipt as ap, type AudioBinaryChunk as aq, type AudioChunkPayload as ar, type AudioChunkedPayload as as, type AudioOutputAlignmentData as at, type AudioOutputAlignmentPayload as au, type AudioOutputChunkData as av, type AudioOutputChunkPayload as aw, type AudioOutputCompleteData as ax, type AudioOutputCompletePayload as ay, type AudioOutputErrorData as az, type GenerateAiJudgeConfigurationResponse as b, type PrepareAuthoringExport as b$, type AuthoringWorkProgress as b0, type AuthoringWorkProgressChapter as b1, type AuthoringWorkProgressStage as b2, type AuthoringWorkspaceRecord as b3, type BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost as b4, type ClientSpeechBoundaryPayload as b5, type CommandReceipt as b6, type ContextFailure as b7, type ContextFailureReceipt as b8, type ContextFulfillmentReceipt as b9, LUMA_VOICE_TIMING_PRECISION as bA, type LearnerTranscriptStatus as bB, type LearnerTranscriptionData as bC, type LearnerTranscriptionPayload as bD, type LearnerTranscriptionTimingData as bE, type LumaAiModelDomain as bF, type LumaAiModelProfileKind as bG, type LumaCaptureProfile as bH, type LumaSocketEmitEvents as bI, type LumaSocketListenEvents as bJ, type LumaVoiceTimingPrecision as bK, type MentorChatEvent as bL, type MentorChatRequest as bM, type MentorChatResponse as bN, type MentorStreamEventEnvelope as bO, type MentorTextDeltaPayload as bP, type MentorTextEndPayload as bQ, type MentorTextErrorPayload as bR, type MentorTranscriptionPayload as bS, type NamedToolChoice as bT, type NativeChatTool as bU, type NativeChatUsage as bV, type NativeErrorEvent as bW, type NativeFinishEvent as bX, type NativeTextDelta as bY, type NativeToolCall as bZ, type NativeToolCallEvent as b_, type ContextResponse as ba, type CourseCreateOperation as bb, type CourseCreatePayload as bc, type CreateSession as bd, EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS as be, EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS as bf, EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS as bg, EXTERNAL_AUDIO_OPERATION as bh, EXTERNAL_AUDIO_RECOVERY_STATE as bi, EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS as bj, EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES as bk, type EventPage as bl, type FrozenExport as bm, LEARNER_TRANSCRIPT_STATUSES as bn, LUMA_AI_CAPABILITIES as bo, LUMA_AI_CAPABILITY_MODES as bp, LUMA_AI_CAPABILITY_PROVIDERS as bq, LUMA_AI_MODEL_DOMAINS as br, LUMA_AI_MODEL_PROFILE_KINDS as bs, LUMA_AUDIO_ACTIONS as bt, LUMA_AUDIO_FORMATS as bu, LUMA_CAPTURE_PROFILES as bv, LUMA_MENTOR_STREAM_EVENT_TYPES as bw, LUMA_SOCKET_EMIT_EVENTS as bx, LUMA_SOCKET_LISTEN_EVENTS as by, LUMA_SOCKET_MESSAGE_TYPES as bz, type GenerateAiMentorConfigurationOptions as c, type PrepareExport as c0, type ProposalReviewDecision as c1, type PublicAiMessage as c2, ReasoningEffort as c3, type ServerConnectedPayload as c4, type SessionSnapshot as c5, type SessionSummary as c6, type SessionSummaryPage as c7, type SourceUploadReceipt as c8, type SpeechAlignmentWord as c9, type StartAudioPayload as ca, TRANSCRIPTION_MODES as cb, TTSProvider as cc, type TaskFailure as cd, TaskKind as ce, type TaskSummary as cf, TextToSpeechProvider as cg, type TranscriptionSessionPlan as ch, TurnPartKind as ci, TurnPartStatus as cj, TurnStatus as ck, type WorkspaceRecord as cl, type GenerateAiMentorConfigurationResponse as d, type ValidateAiJudgeConfigurationResponse as e, type ValidateAiMentorConfigurationOptions as f, type ValidateAiMentorConfigurationResponse as g, type GenerateTranslationsOptions as h, type GenerateTranslationsResponse as i, type TranscribeDictationResponse as j, type AdminOrganizationIdOptions as k, type AdminApiKeyResponse as l, type AdminApiKeyCreateOptions as m, type AdminApiKeyCreateResponse as n, type AdminApiKeyIdentifierOptions as o, type AdminApiKeyUpdateOptions as p, type AdminApiKeyRevokeResponse as q, type AdminConfigurationResponse as r, type AdminModelAssignmentResponse as s, type AdminApiKeyAssignmentUpdateOptions as t, type AdminModelProfileResponse as u, type AuthoringCreateSessionOptions as v, type AuthoringSessionSnapshot as w, type AuthoringSessionPage as x, type AuthoringSessionOptions as y, type AuthoringTurnHistoryOptions as z };
@@ -102,6 +102,7 @@ var AiModelDomain = /* @__PURE__ */ ((AiModelDomain2) => {
102
102
  AiModelDomain2["AiJudgeConfigurationValidator"] = "aiJudgeConfigurationValidator";
103
103
  AiModelDomain2["Translations"] = "translations";
104
104
  AiModelDomain2["CourseGeneration"] = "courseGeneration";
105
+ AiModelDomain2["CourseGenerationVision"] = "courseGenerationVision";
105
106
  AiModelDomain2["CourseGenerationVisualAssets"] = "courseGenerationVisualAssets";
106
107
  AiModelDomain2["CourseGenerationEmbeddings"] = "courseGenerationEmbeddings";
107
108
  AiModelDomain2["Embeddings"] = "embeddings";
@@ -120,6 +121,7 @@ var LUMA_AI_MODEL_DOMAINS = {
120
121
  AI_JUDGE_CONFIGURATION_VALIDATOR: "aiJudgeConfigurationValidator" /* AiJudgeConfigurationValidator */,
121
122
  TRANSLATIONS: "translations" /* Translations */,
122
123
  COURSE_GENERATION: "courseGeneration" /* CourseGeneration */,
124
+ COURSE_GENERATION_VISION: "courseGenerationVision" /* CourseGenerationVision */,
123
125
  COURSE_GENERATION_VISUAL_ASSETS: "courseGenerationVisualAssets" /* CourseGenerationVisualAssets */,
124
126
  COURSE_GENERATION_EMBEDDINGS: "courseGenerationEmbeddings" /* CourseGenerationEmbeddings */,
125
127
  EMBEDDINGS: "embeddings" /* Embeddings */,