@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.
- package/LICENSE +21 -0
- package/README.md +275 -2
- package/dist/chunk-W5CQGEDB.js +966 -0
- package/dist/contracts-qTi7LQB8.d.cts +3668 -0
- package/dist/contracts-qTi7LQB8.d.ts +3668 -0
- package/dist/contracts.cjs +283 -0
- package/dist/contracts.d.cts +3 -0
- package/dist/contracts.d.ts +3 -0
- package/dist/contracts.js +58 -0
- package/dist/index.cjs +1751 -0
- package/dist/index.d.cts +215 -0
- package/dist/index.d.ts +215 -0
- package/dist/index.js +775 -0
- package/package.json +69 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { P as PublicConfigurationResponse, E as EmbeddingsRequest, a as EmbeddingsResponse, S as StructuredGenerationRequest, A as AiJudgeConfigurationResponseOutput, G as GenerateAiMentorConfigurationRequest, b as AiMentorTeacherConfigurationResponse, c as AiMentorRoleplayConfigurationResponse, T as TranslationResponse, d as AiCapability, e as AiCapabilityMode, f as AiCapabilityProvider, g as AiJudgeConfigurationValidationResponse, h as AiMentorConfigurationValidationResponse, B as BodyTranscribeDictationApiPublicV1AiTranscriptionsPost, i as TranscriptionResponse, M as MentorChatRequest, j as MentorChatResponse, J as JudgeResponse, k as API, l as AdminOrganizationIdOptions, m as AdminApiKeyResponse, n as AdminApiKeyCreateOptions, o as AdminApiKeyCreateResponse, p as AdminApiKeyIdentifierOptions, q as AdminApiKeyUpdateOptions, r as AdminApiKeyRevokeResponse, s as AdminConfigurationResponse, t as AdminModelAssignmentResponse, u as AdminApiKeyAssignmentUpdateOptions, v as AdminModelProfileResponse, w as AuthoringCreateSessionOptions, x as AuthoringSessionSnapshot, L as ListAuthoringSessionsOptions, y as AuthoringSessionPage, z as AuthoringSessionOptions, C as AuthoringTurnHistoryOptions, D as AuthoringTurnHistoryPage, F as AuthoringEventsOptions, H as AuthoringEventPage, I as SubscribeAuthoringEventsOptions, U as UploadAuthoringSourceOptions, K as AuthoringSourceUploadReceipt, N as DownloadAuthoringAssetOptions, O as DownloadedAuthoringAsset, Q as SendAuthoringCommandOptions, R as AuthoringCommandReceipt, V as FulfillAuthoringContextOptions, W as AuthoringContextFulfillmentReceipt, X as FailAuthoringContextOptions, Y as AuthoringContextFailureReceipt, Z as PrepareAuthoringExportOptions, _ as FrozenAuthoringExport, $ as GetAuthoringExportOptions, a0 as RecordAuthoringReceiptOptions, a1 as AuthoringApplicationReceipt, a2 as LumaSocket } from './contracts-qTi7LQB8.cjs';
|
|
2
|
+
export { a3 as AUDIO_PROVIDER_STATES, a4 as AUDIO_RECOVERY_STATES, a5 as AiCapabilityStatus, a6 as AiJudgeConfigurationResponseInput, a7 as AiModelAssignmentResponse, a8 as AiModelAssignmentUpdateRequest, a9 as AiModelDomain, aa as AiModelProfileKind, ab as AiModelProfileResponse, ac as ApiKeyCreateRequest, ad as ApiKeyCreateResponse, ae as ApiKeyMetadata, af as ApiKeyResponse, ag as ApiKeyUpdateRequest, ah as ApplicationReceipt, ai as AudioBinaryChunk, aj as AudioChunkPayload, ak as AudioChunkedPayload, al as AudioOutputAlignmentData, am as AudioOutputAlignmentPayload, an as AudioOutputChunkData, ao as AudioOutputChunkPayload, ap as AudioOutputCompleteData, aq as AudioOutputCompletePayload, ar as AudioOutputErrorData, as as AudioOutputErrorPayload, at as AudioOutputInterruptedData, au as AudioOutputInterruptedPayload, av as AudioProtocolErrorPayload, aw as AudioProviderState, ax as AudioReconnectPayload, ay as AudioRecoveryPayload, az as AudioRecoveryState, aA as AudioStartedPayload, aB as AudioStopPayload, aC as AudioTriggerTTSPayload, aD as AuthoringCommand, aE as AuthoringContextFailure, aF as AuthoringContextResponse, aG as AuthoringEvent, aH as AuthoringLessonCreateOperation, aI as AuthoringLessonUpdateOperation, aJ as AuthoringMentorLessonCreatePayload, aK as AuthoringOperation, aL as AuthoringSessionSummary, aM as AuthoringSubscriptionError, aN as AuthoringSubscriptionErrorCode, aO as AuthoringTaskFailure, aP as AuthoringTaskSummary, aQ as AuthoringTurn, aR as AuthoringTurnPart, aS as AuthoringWorkProgress, aT as AuthoringWorkProgressChapter, aU as AuthoringWorkProgressStage, aV as AuthoringWorkspaceRecord, aW as BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost, aX as ClientSpeechBoundaryPayload, aY as CommandReceipt, aZ as ContextFailure, a_ as ContextFailureReceipt, a$ as ContextFulfillmentReceipt, b0 as ContextResponse, b1 as CreateSession, b2 as EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS, b3 as EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS, b4 as EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS, b5 as EXTERNAL_AUDIO_OPERATION, b6 as EXTERNAL_AUDIO_RECOVERY_STATE, b7 as EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS, b8 as EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES, b9 as EventPage, ba as FrozenExport, bb as LEARNER_TRANSCRIPT_STATUSES, bc as LUMA_AI_MODEL_DOMAINS, bd as LUMA_AI_MODEL_PROFILE_KINDS, be as LUMA_AUDIO_ACTIONS, bf as LUMA_AUDIO_FORMATS, bg as LUMA_CAPTURE_PROFILES, bh as LUMA_MENTOR_STREAM_EVENT_TYPES, bi as LUMA_SOCKET_EMIT_EVENTS, bj as LUMA_SOCKET_LISTEN_EVENTS, bk as LUMA_SOCKET_MESSAGE_TYPES, bl as LUMA_VOICE_TIMING_PRECISION, bm as LearnerTranscriptStatus, bn as LearnerTranscriptionData, bo as LearnerTranscriptionPayload, bp as LearnerTranscriptionTimingData, bq as LumaAiModelDomain, br as LumaAiModelProfileKind, bs as LumaCaptureProfile, bt as LumaSocketEmitEvents, bu as LumaSocketListenEvents, bv as LumaVoiceTimingPrecision, bw as MentorStreamEventEnvelope, bx as MentorTextDeltaPayload, by as MentorTextEndPayload, bz as MentorTextErrorPayload, bA as MentorTranscriptionPayload, bB as PrepareAuthoringExport, bC as PrepareExport, bD as ProposalReviewDecision, bE as PublicAiMessage, bF as ReasoningEffort, bG as ServerConnectedPayload, bH as SessionSnapshot, bI as SessionSummary, bJ as SessionSummaryPage, bK as SourceUploadReceipt, bL as SpeechAlignmentWord, bM as StartAudioPayload, bN as TRANSCRIPTION_MODES, bO as TTSProvider, bP as TaskFailure, bQ as TaskKind, bR as TaskSummary, bS as TextToSpeechProvider, bT as TranscriptionSessionPlan, bU as TurnPartKind, bV as TurnPartStatus, bW as TurnStatus, bX as WorkspaceRecord } from './contracts-qTi7LQB8.cjs';
|
|
3
|
+
import { Agent } from 'node:https';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import 'socket.io-client';
|
|
6
|
+
|
|
7
|
+
type AiRuntimeConfiguration = PublicConfigurationResponse;
|
|
8
|
+
type MentorChatOptions = MentorChatRequest;
|
|
9
|
+
type MentorStreamRequestOptions = {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
};
|
|
12
|
+
type MentorGenerateChatResponse = MentorChatResponse;
|
|
13
|
+
type MentorJudgeOptions = StructuredGenerationRequest;
|
|
14
|
+
type MentorJudgeResponse = JudgeResponse;
|
|
15
|
+
type GenerateAiJudgeConfigurationOptions = StructuredGenerationRequest;
|
|
16
|
+
type GenerateAiJudgeConfigurationResponse = AiJudgeConfigurationResponseOutput;
|
|
17
|
+
declare const AI_MENTOR_CONFIGURATION_TYPES: {
|
|
18
|
+
readonly TEACHER: "teacher";
|
|
19
|
+
readonly ROLEPLAY: "roleplay";
|
|
20
|
+
};
|
|
21
|
+
type AiMentorConfigurationType = (typeof AI_MENTOR_CONFIGURATION_TYPES)[keyof typeof AI_MENTOR_CONFIGURATION_TYPES];
|
|
22
|
+
type GenerateAiMentorConfigurationOptions = Omit<GenerateAiMentorConfigurationRequest, "configurationType"> & {
|
|
23
|
+
configurationType: AiMentorConfigurationType;
|
|
24
|
+
};
|
|
25
|
+
type GenerateAiMentorConfigurationResponse = AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse;
|
|
26
|
+
type ValidateAiJudgeConfigurationOptions = StructuredGenerationRequest;
|
|
27
|
+
type ValidateAiJudgeConfigurationResponse = AiJudgeConfigurationValidationResponse;
|
|
28
|
+
type ValidateAiMentorConfigurationOptions = StructuredGenerationRequest;
|
|
29
|
+
type ValidateAiMentorConfigurationResponse = AiMentorConfigurationValidationResponse;
|
|
30
|
+
type CreateEmbeddingsOptions = EmbeddingsRequest;
|
|
31
|
+
type CreateEmbeddingsResponse = EmbeddingsResponse;
|
|
32
|
+
type GenerateTranslationsOptions = StructuredGenerationRequest;
|
|
33
|
+
type GenerateTranslationsResponse = TranslationResponse;
|
|
34
|
+
type TranscribeDictationOptions = BodyTranscribeDictationApiPublicV1AiTranscriptionsPost;
|
|
35
|
+
type TranscribeDictationResponse = TranscriptionResponse;
|
|
36
|
+
declare const LUMA_AI_CAPABILITY_MODES: {
|
|
37
|
+
readonly CORE: AiCapabilityMode.Core;
|
|
38
|
+
readonly CUSTOM: AiCapabilityMode.Custom;
|
|
39
|
+
readonly DISABLED: AiCapabilityMode.Disabled;
|
|
40
|
+
};
|
|
41
|
+
declare const LUMA_AI_CAPABILITY_PROVIDERS: {
|
|
42
|
+
readonly LUMA: AiCapabilityProvider.Luma;
|
|
43
|
+
readonly MENTINGO_CORE: AiCapabilityProvider.MentingoCore;
|
|
44
|
+
};
|
|
45
|
+
declare const LUMA_AI_CAPABILITIES: {
|
|
46
|
+
readonly COURSE_GENERATION: AiCapability.CourseGeneration;
|
|
47
|
+
readonly COURSE_GENERATION_VISUAL_ASSETS: AiCapability.CourseGenerationVisualAssets;
|
|
48
|
+
readonly COURSE_GENERATION_EMBEDDINGS: AiCapability.CourseGenerationEmbeddings;
|
|
49
|
+
readonly AI_MENTOR_CHAT: AiCapability.AiMentorChat;
|
|
50
|
+
readonly AI_MENTOR_JUDGE: AiCapability.AiMentorJudge;
|
|
51
|
+
readonly AI_MENTOR_CONFIGURATION_GENERATOR: AiCapability.AiMentorConfigurationGenerator;
|
|
52
|
+
readonly AI_JUDGE_CONFIGURATION_GENERATOR: AiCapability.AiJudgeConfigurationGenerator;
|
|
53
|
+
readonly AI_JUDGE_CONFIGURATION_VALIDATOR: AiCapability.AiJudgeConfigurationValidator;
|
|
54
|
+
readonly AI_MENTOR_RAG_EMBEDDINGS: AiCapability.AiMentorRagEmbeddings;
|
|
55
|
+
readonly TRANSLATION_GENERATION: AiCapability.TranslationGeneration;
|
|
56
|
+
readonly DICTATION_TRANSCRIPTION: AiCapability.DictationTranscription;
|
|
57
|
+
readonly VOICE_TRANSCRIPTION: AiCapability.VoiceTranscription;
|
|
58
|
+
readonly VOICE_MENTOR: AiCapability.VoiceMentor;
|
|
59
|
+
readonly VOICE_TEXT_TO_SPEECH: AiCapability.VoiceTextToSpeech;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare class LumaAiClient {
|
|
63
|
+
private readonly apiClient;
|
|
64
|
+
constructor(apiClient: API<unknown>);
|
|
65
|
+
createEmbeddings(opts: CreateEmbeddingsOptions): Promise<CreateEmbeddingsResponse>;
|
|
66
|
+
generateJudgeConfiguration(opts: GenerateAiJudgeConfigurationOptions): Promise<GenerateAiJudgeConfigurationResponse>;
|
|
67
|
+
generateMentorConfiguration(opts: GenerateAiMentorConfigurationOptions): Promise<GenerateAiMentorConfigurationResponse>;
|
|
68
|
+
validateJudgeConfiguration(opts: ValidateAiJudgeConfigurationOptions): Promise<ValidateAiJudgeConfigurationResponse>;
|
|
69
|
+
validateMentorConfiguration(opts: ValidateAiMentorConfigurationOptions): Promise<ValidateAiMentorConfigurationResponse>;
|
|
70
|
+
generateTranslations(opts: GenerateTranslationsOptions): Promise<GenerateTranslationsResponse>;
|
|
71
|
+
transcribeDictation(opts: TranscribeDictationOptions): Promise<TranscribeDictationResponse>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class AdminApiExecutions {
|
|
75
|
+
private readonly apiClient;
|
|
76
|
+
private readonly apiKey?;
|
|
77
|
+
constructor(apiClient: API<unknown>, apiKey?: string | undefined);
|
|
78
|
+
private assertAdminApiKey;
|
|
79
|
+
listApiKeys(opts: AdminOrganizationIdOptions): Promise<AdminApiKeyResponse[]>;
|
|
80
|
+
createApiKey(opts: AdminApiKeyCreateOptions): Promise<AdminApiKeyCreateResponse>;
|
|
81
|
+
getApiKey(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyResponse>;
|
|
82
|
+
updateApiKey(opts: AdminApiKeyUpdateOptions): Promise<AdminApiKeyResponse>;
|
|
83
|
+
revokeApiKey(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyRevokeResponse>;
|
|
84
|
+
getConfiguration(opts: AdminApiKeyIdentifierOptions): Promise<AdminConfigurationResponse>;
|
|
85
|
+
listAssignments(opts: AdminApiKeyIdentifierOptions): Promise<AdminModelAssignmentResponse[]>;
|
|
86
|
+
updateAssignment(opts: AdminApiKeyAssignmentUpdateOptions): Promise<AdminModelAssignmentResponse>;
|
|
87
|
+
listModelProfiles(opts: AdminOrganizationIdOptions): Promise<AdminModelProfileResponse[]>;
|
|
88
|
+
}
|
|
89
|
+
declare class LumaAdminApiKeysClient {
|
|
90
|
+
private readonly executions;
|
|
91
|
+
constructor(executions: AdminApiExecutions);
|
|
92
|
+
list(opts: AdminOrganizationIdOptions): Promise<AdminApiKeyResponse[]>;
|
|
93
|
+
create(opts: AdminApiKeyCreateOptions): Promise<AdminApiKeyCreateResponse>;
|
|
94
|
+
get(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyResponse>;
|
|
95
|
+
update(opts: AdminApiKeyUpdateOptions): Promise<AdminApiKeyResponse>;
|
|
96
|
+
revoke(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyRevokeResponse>;
|
|
97
|
+
getConfiguration(opts: AdminApiKeyIdentifierOptions): Promise<AdminConfigurationResponse>;
|
|
98
|
+
listAssignments(opts: AdminApiKeyIdentifierOptions): Promise<AdminModelAssignmentResponse[]>;
|
|
99
|
+
updateAssignment(opts: AdminApiKeyAssignmentUpdateOptions): Promise<AdminModelAssignmentResponse>;
|
|
100
|
+
}
|
|
101
|
+
declare class LumaAdminModelProfilesClient {
|
|
102
|
+
private readonly executions;
|
|
103
|
+
constructor(executions: AdminApiExecutions);
|
|
104
|
+
list(opts: AdminOrganizationIdOptions): Promise<AdminModelProfileResponse[]>;
|
|
105
|
+
}
|
|
106
|
+
declare class LumaAdminClient {
|
|
107
|
+
readonly apiKeys: LumaAdminApiKeysClient;
|
|
108
|
+
readonly modelProfiles: LumaAdminModelProfilesClient;
|
|
109
|
+
constructor(apiClient: API<unknown>, apiKey?: string);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Typed transport facade for durable authoring sessions, commands and exports.
|
|
114
|
+
* Server state owns replay and idempotency; this client does not schedule work or
|
|
115
|
+
* apply course content. The supplied API client owns authentication and transport.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/** Authoring HTTP operations exposed by the main SDK client. */
|
|
119
|
+
declare class LumaAuthoringClient {
|
|
120
|
+
private readonly apiClient;
|
|
121
|
+
/** Reuse the authenticated generated client and its configured HTTP policy. */
|
|
122
|
+
constructor(apiClient: API<unknown>);
|
|
123
|
+
/** Open or restore the organization/course session using the caller command identity. */
|
|
124
|
+
createSession(options: AuthoringCreateSessionOptions): Promise<AuthoringSessionSnapshot>;
|
|
125
|
+
/** List one server-filtered, offset-paginated page of a course's independent conversations in server-defined latest-activity order. */
|
|
126
|
+
listSessions(options: ListAuthoringSessionsOptions): Promise<AuthoringSessionPage>;
|
|
127
|
+
/** Read the durable workspace snapshot used for initial rendering and resynchronization. */
|
|
128
|
+
getSession(options: AuthoringSessionOptions): Promise<AuthoringSessionSnapshot>;
|
|
129
|
+
/** Read an older, stable keyset page of turns and the records for their review cards. */
|
|
130
|
+
getOlderTurns(options: AuthoringTurnHistoryOptions): Promise<AuthoringTurnHistoryPage>;
|
|
131
|
+
/** Read one ordered event page after a durable cursor; callers own pagination. */
|
|
132
|
+
getEvents(options: AuthoringEventsOptions): Promise<AuthoringEventPage>;
|
|
133
|
+
/** Consume one SSE connection until closure or failure.
|
|
134
|
+
* The caller owns reconnect and cursor persistence; aborting only closes the
|
|
135
|
+
* subscription and never stops generation. Terminal access/history errors reject. */
|
|
136
|
+
subscribeEvents(options: SubscribeAuthoringEventsOptions): Promise<void>;
|
|
137
|
+
/** Upload a source under a stable command ID; processing completes asynchronously. */
|
|
138
|
+
uploadSource(options: UploadAuthoringSourceOptions): Promise<AuthoringSourceUploadReceipt>;
|
|
139
|
+
/** Download one authorized asset revision with a response-size bound.
|
|
140
|
+
* Defaults to 32 MiB. Pass the frozen manifest size when known; invalid limits
|
|
141
|
+
* and oversized responses reject without returning partial asset data. */
|
|
142
|
+
downloadAsset(options: DownloadAuthoringAssetOptions): Promise<DownloadedAuthoringAsset>;
|
|
143
|
+
/** Submit a command with its stable identity and return the server acknowledgement.
|
|
144
|
+
* An acknowledgement records acceptance, not completion of provider work. */
|
|
145
|
+
sendCommand(options: SendAuthoringCommandOptions): Promise<AuthoringCommandReceipt>;
|
|
146
|
+
/** Deliver only the selected Core-authorized context for a pending fenced task. */
|
|
147
|
+
fulfillContext(options: FulfillAuthoringContextOptions): Promise<AuthoringContextFulfillmentReceipt>;
|
|
148
|
+
/** Settle one pending context request when Core cannot return authorized detail. */
|
|
149
|
+
failContext(options: FailAuthoringContextOptions): Promise<AuthoringContextFailureReceipt>;
|
|
150
|
+
/** Freeze selected reviewed changes for Core; this operation does not apply them. */
|
|
151
|
+
prepareExport(options: PrepareAuthoringExportOptions): Promise<FrozenAuthoringExport>;
|
|
152
|
+
/** Retrieve the previously frozen bundle without regenerating its content. */
|
|
153
|
+
getExport(options: GetAuthoringExportOptions): Promise<FrozenAuthoringExport>;
|
|
154
|
+
/** Deliver Core application feedback so Luma can reconcile the reviewed changes. */
|
|
155
|
+
recordReceipt(options: RecordAuthoringReceiptOptions): Promise<AuthoringApplicationReceipt>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Decode and deliver complete frames with a one-megacharacter frame bound.
|
|
159
|
+
* Malformed JSON, oversized or truncated frames, and callback failures reject
|
|
160
|
+
* this connection; the caller decides how to recover from its saved cursor. */
|
|
161
|
+
declare const consumeAuthoringEventStream: (body: unknown, options: SubscribeAuthoringEventsOptions) => Promise<void>;
|
|
162
|
+
|
|
163
|
+
declare class LumaConfigurationClient {
|
|
164
|
+
private readonly apiClient;
|
|
165
|
+
constructor(apiClient: API<unknown>);
|
|
166
|
+
get(): Promise<PublicConfigurationResponse>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class LumaMentorClient {
|
|
170
|
+
private readonly apiClient;
|
|
171
|
+
constructor(apiClient: API<unknown>);
|
|
172
|
+
streamChat(opts: MentorChatOptions, requestOptions?: MentorStreamRequestOptions): ReturnType<API<unknown>["api"]["mentorChatApiPublicV1AiMentorChatPost"]>;
|
|
173
|
+
chat(opts: MentorChatOptions, requestOptions?: MentorStreamRequestOptions): ReturnType<API<unknown>["api"]["mentorChatApiPublicV1AiMentorChatPost"]>;
|
|
174
|
+
generateChat(opts: MentorChatOptions): Promise<MentorGenerateChatResponse>;
|
|
175
|
+
judge(opts: MentorJudgeOptions): Promise<MentorJudgeResponse>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* SDK composition root: shares transport configuration across feature clients
|
|
180
|
+
* while keeping public and administrative API-key headers separate.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
type LumaClientOptions = {
|
|
184
|
+
baseURL?: string;
|
|
185
|
+
apiKey?: string;
|
|
186
|
+
httpsAgent?: Agent;
|
|
187
|
+
allowInsecureTls?: boolean;
|
|
188
|
+
};
|
|
189
|
+
/** Connected feature facades; construction does not open an authoring session. */
|
|
190
|
+
declare class LumaClient {
|
|
191
|
+
readonly ai: LumaAiClient;
|
|
192
|
+
readonly admin: LumaAdminClient;
|
|
193
|
+
readonly authoring: LumaAuthoringClient;
|
|
194
|
+
readonly configuration: LumaConfigurationClient;
|
|
195
|
+
readonly mentor: LumaMentorClient;
|
|
196
|
+
private readonly apiClient;
|
|
197
|
+
/** Configure authenticated transports; TLS verification stays enabled unless explicitly disabled. */
|
|
198
|
+
constructor(opts: LumaClientOptions);
|
|
199
|
+
}
|
|
200
|
+
/** Construct feature clients with the supplied endpoint and integration credentials. */
|
|
201
|
+
declare const createLumaClient: (opts: LumaClientOptions) => LumaClient;
|
|
202
|
+
|
|
203
|
+
type LumaSocketClientOptions = {
|
|
204
|
+
baseURL?: string;
|
|
205
|
+
apiKey?: string;
|
|
206
|
+
allowInsecureTls?: boolean;
|
|
207
|
+
socketData?: {
|
|
208
|
+
sessionId?: string;
|
|
209
|
+
userId?: string;
|
|
210
|
+
lessonId?: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
declare const createLumaSocket: (opts: LumaSocketClientOptions) => LumaSocket;
|
|
214
|
+
|
|
215
|
+
export { AI_MENTOR_CONFIGURATION_TYPES, AdminApiKeyAssignmentUpdateOptions, AdminApiKeyCreateOptions, AdminApiKeyCreateResponse, AdminApiKeyIdentifierOptions, AdminApiKeyResponse, AdminApiKeyRevokeResponse, AdminApiKeyUpdateOptions, AdminConfigurationResponse, AdminModelAssignmentResponse, AdminModelProfileResponse, AdminOrganizationIdOptions, AiCapability, AiCapabilityMode, AiCapabilityProvider, type AiMentorConfigurationType, type AiRuntimeConfiguration, AuthoringApplicationReceipt, AuthoringCommandReceipt, AuthoringContextFailureReceipt, AuthoringContextFulfillmentReceipt, AuthoringCreateSessionOptions, AuthoringEventPage, AuthoringEventsOptions, AuthoringSessionOptions, AuthoringSessionPage, AuthoringSessionSnapshot, AuthoringSourceUploadReceipt, AuthoringTurnHistoryOptions, AuthoringTurnHistoryPage, type CreateEmbeddingsOptions, type CreateEmbeddingsResponse, DownloadAuthoringAssetOptions, DownloadedAuthoringAsset, FailAuthoringContextOptions, FrozenAuthoringExport, FulfillAuthoringContextOptions, type GenerateAiJudgeConfigurationOptions, type GenerateAiJudgeConfigurationResponse, type GenerateAiMentorConfigurationOptions, type GenerateAiMentorConfigurationResponse, type GenerateTranslationsOptions, type GenerateTranslationsResponse, GetAuthoringExportOptions, LUMA_AI_CAPABILITIES, LUMA_AI_CAPABILITY_MODES, LUMA_AI_CAPABILITY_PROVIDERS, ListAuthoringSessionsOptions, LumaAdminApiKeysClient, LumaAdminClient, LumaAdminModelProfilesClient, LumaAiClient, LumaAuthoringClient, LumaClient, type LumaClientOptions, LumaConfigurationClient, LumaMentorClient, LumaSocket, type LumaSocketClientOptions, type MentorChatOptions, MentorChatRequest, MentorChatResponse, type MentorGenerateChatResponse, type MentorJudgeOptions, type MentorJudgeResponse, type MentorStreamRequestOptions, PrepareAuthoringExportOptions, PublicConfigurationResponse, RecordAuthoringReceiptOptions, SendAuthoringCommandOptions, SubscribeAuthoringEventsOptions, type TranscribeDictationOptions, type TranscribeDictationResponse, UploadAuthoringSourceOptions, type ValidateAiJudgeConfigurationOptions, type ValidateAiJudgeConfigurationResponse, type ValidateAiMentorConfigurationOptions, type ValidateAiMentorConfigurationResponse, consumeAuthoringEventStream, createLumaClient, createLumaSocket };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { P as PublicConfigurationResponse, E as EmbeddingsRequest, a as EmbeddingsResponse, S as StructuredGenerationRequest, A as AiJudgeConfigurationResponseOutput, G as GenerateAiMentorConfigurationRequest, b as AiMentorTeacherConfigurationResponse, c as AiMentorRoleplayConfigurationResponse, T as TranslationResponse, d as AiCapability, e as AiCapabilityMode, f as AiCapabilityProvider, g as AiJudgeConfigurationValidationResponse, h as AiMentorConfigurationValidationResponse, B as BodyTranscribeDictationApiPublicV1AiTranscriptionsPost, i as TranscriptionResponse, M as MentorChatRequest, j as MentorChatResponse, J as JudgeResponse, k as API, l as AdminOrganizationIdOptions, m as AdminApiKeyResponse, n as AdminApiKeyCreateOptions, o as AdminApiKeyCreateResponse, p as AdminApiKeyIdentifierOptions, q as AdminApiKeyUpdateOptions, r as AdminApiKeyRevokeResponse, s as AdminConfigurationResponse, t as AdminModelAssignmentResponse, u as AdminApiKeyAssignmentUpdateOptions, v as AdminModelProfileResponse, w as AuthoringCreateSessionOptions, x as AuthoringSessionSnapshot, L as ListAuthoringSessionsOptions, y as AuthoringSessionPage, z as AuthoringSessionOptions, C as AuthoringTurnHistoryOptions, D as AuthoringTurnHistoryPage, F as AuthoringEventsOptions, H as AuthoringEventPage, I as SubscribeAuthoringEventsOptions, U as UploadAuthoringSourceOptions, K as AuthoringSourceUploadReceipt, N as DownloadAuthoringAssetOptions, O as DownloadedAuthoringAsset, Q as SendAuthoringCommandOptions, R as AuthoringCommandReceipt, V as FulfillAuthoringContextOptions, W as AuthoringContextFulfillmentReceipt, X as FailAuthoringContextOptions, Y as AuthoringContextFailureReceipt, Z as PrepareAuthoringExportOptions, _ as FrozenAuthoringExport, $ as GetAuthoringExportOptions, a0 as RecordAuthoringReceiptOptions, a1 as AuthoringApplicationReceipt, a2 as LumaSocket } from './contracts-qTi7LQB8.js';
|
|
2
|
+
export { a3 as AUDIO_PROVIDER_STATES, a4 as AUDIO_RECOVERY_STATES, a5 as AiCapabilityStatus, a6 as AiJudgeConfigurationResponseInput, a7 as AiModelAssignmentResponse, a8 as AiModelAssignmentUpdateRequest, a9 as AiModelDomain, aa as AiModelProfileKind, ab as AiModelProfileResponse, ac as ApiKeyCreateRequest, ad as ApiKeyCreateResponse, ae as ApiKeyMetadata, af as ApiKeyResponse, ag as ApiKeyUpdateRequest, ah as ApplicationReceipt, ai as AudioBinaryChunk, aj as AudioChunkPayload, ak as AudioChunkedPayload, al as AudioOutputAlignmentData, am as AudioOutputAlignmentPayload, an as AudioOutputChunkData, ao as AudioOutputChunkPayload, ap as AudioOutputCompleteData, aq as AudioOutputCompletePayload, ar as AudioOutputErrorData, as as AudioOutputErrorPayload, at as AudioOutputInterruptedData, au as AudioOutputInterruptedPayload, av as AudioProtocolErrorPayload, aw as AudioProviderState, ax as AudioReconnectPayload, ay as AudioRecoveryPayload, az as AudioRecoveryState, aA as AudioStartedPayload, aB as AudioStopPayload, aC as AudioTriggerTTSPayload, aD as AuthoringCommand, aE as AuthoringContextFailure, aF as AuthoringContextResponse, aG as AuthoringEvent, aH as AuthoringLessonCreateOperation, aI as AuthoringLessonUpdateOperation, aJ as AuthoringMentorLessonCreatePayload, aK as AuthoringOperation, aL as AuthoringSessionSummary, aM as AuthoringSubscriptionError, aN as AuthoringSubscriptionErrorCode, aO as AuthoringTaskFailure, aP as AuthoringTaskSummary, aQ as AuthoringTurn, aR as AuthoringTurnPart, aS as AuthoringWorkProgress, aT as AuthoringWorkProgressChapter, aU as AuthoringWorkProgressStage, aV as AuthoringWorkspaceRecord, aW as BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost, aX as ClientSpeechBoundaryPayload, aY as CommandReceipt, aZ as ContextFailure, a_ as ContextFailureReceipt, a$ as ContextFulfillmentReceipt, b0 as ContextResponse, b1 as CreateSession, b2 as EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS, b3 as EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS, b4 as EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS, b5 as EXTERNAL_AUDIO_OPERATION, b6 as EXTERNAL_AUDIO_RECOVERY_STATE, b7 as EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS, b8 as EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES, b9 as EventPage, ba as FrozenExport, bb as LEARNER_TRANSCRIPT_STATUSES, bc as LUMA_AI_MODEL_DOMAINS, bd as LUMA_AI_MODEL_PROFILE_KINDS, be as LUMA_AUDIO_ACTIONS, bf as LUMA_AUDIO_FORMATS, bg as LUMA_CAPTURE_PROFILES, bh as LUMA_MENTOR_STREAM_EVENT_TYPES, bi as LUMA_SOCKET_EMIT_EVENTS, bj as LUMA_SOCKET_LISTEN_EVENTS, bk as LUMA_SOCKET_MESSAGE_TYPES, bl as LUMA_VOICE_TIMING_PRECISION, bm as LearnerTranscriptStatus, bn as LearnerTranscriptionData, bo as LearnerTranscriptionPayload, bp as LearnerTranscriptionTimingData, bq as LumaAiModelDomain, br as LumaAiModelProfileKind, bs as LumaCaptureProfile, bt as LumaSocketEmitEvents, bu as LumaSocketListenEvents, bv as LumaVoiceTimingPrecision, bw as MentorStreamEventEnvelope, bx as MentorTextDeltaPayload, by as MentorTextEndPayload, bz as MentorTextErrorPayload, bA as MentorTranscriptionPayload, bB as PrepareAuthoringExport, bC as PrepareExport, bD as ProposalReviewDecision, bE as PublicAiMessage, bF as ReasoningEffort, bG as ServerConnectedPayload, bH as SessionSnapshot, bI as SessionSummary, bJ as SessionSummaryPage, bK as SourceUploadReceipt, bL as SpeechAlignmentWord, bM as StartAudioPayload, bN as TRANSCRIPTION_MODES, bO as TTSProvider, bP as TaskFailure, bQ as TaskKind, bR as TaskSummary, bS as TextToSpeechProvider, bT as TranscriptionSessionPlan, bU as TurnPartKind, bV as TurnPartStatus, bW as TurnStatus, bX as WorkspaceRecord } from './contracts-qTi7LQB8.js';
|
|
3
|
+
import { Agent } from 'node:https';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import 'socket.io-client';
|
|
6
|
+
|
|
7
|
+
type AiRuntimeConfiguration = PublicConfigurationResponse;
|
|
8
|
+
type MentorChatOptions = MentorChatRequest;
|
|
9
|
+
type MentorStreamRequestOptions = {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
};
|
|
12
|
+
type MentorGenerateChatResponse = MentorChatResponse;
|
|
13
|
+
type MentorJudgeOptions = StructuredGenerationRequest;
|
|
14
|
+
type MentorJudgeResponse = JudgeResponse;
|
|
15
|
+
type GenerateAiJudgeConfigurationOptions = StructuredGenerationRequest;
|
|
16
|
+
type GenerateAiJudgeConfigurationResponse = AiJudgeConfigurationResponseOutput;
|
|
17
|
+
declare const AI_MENTOR_CONFIGURATION_TYPES: {
|
|
18
|
+
readonly TEACHER: "teacher";
|
|
19
|
+
readonly ROLEPLAY: "roleplay";
|
|
20
|
+
};
|
|
21
|
+
type AiMentorConfigurationType = (typeof AI_MENTOR_CONFIGURATION_TYPES)[keyof typeof AI_MENTOR_CONFIGURATION_TYPES];
|
|
22
|
+
type GenerateAiMentorConfigurationOptions = Omit<GenerateAiMentorConfigurationRequest, "configurationType"> & {
|
|
23
|
+
configurationType: AiMentorConfigurationType;
|
|
24
|
+
};
|
|
25
|
+
type GenerateAiMentorConfigurationResponse = AiMentorTeacherConfigurationResponse | AiMentorRoleplayConfigurationResponse;
|
|
26
|
+
type ValidateAiJudgeConfigurationOptions = StructuredGenerationRequest;
|
|
27
|
+
type ValidateAiJudgeConfigurationResponse = AiJudgeConfigurationValidationResponse;
|
|
28
|
+
type ValidateAiMentorConfigurationOptions = StructuredGenerationRequest;
|
|
29
|
+
type ValidateAiMentorConfigurationResponse = AiMentorConfigurationValidationResponse;
|
|
30
|
+
type CreateEmbeddingsOptions = EmbeddingsRequest;
|
|
31
|
+
type CreateEmbeddingsResponse = EmbeddingsResponse;
|
|
32
|
+
type GenerateTranslationsOptions = StructuredGenerationRequest;
|
|
33
|
+
type GenerateTranslationsResponse = TranslationResponse;
|
|
34
|
+
type TranscribeDictationOptions = BodyTranscribeDictationApiPublicV1AiTranscriptionsPost;
|
|
35
|
+
type TranscribeDictationResponse = TranscriptionResponse;
|
|
36
|
+
declare const LUMA_AI_CAPABILITY_MODES: {
|
|
37
|
+
readonly CORE: AiCapabilityMode.Core;
|
|
38
|
+
readonly CUSTOM: AiCapabilityMode.Custom;
|
|
39
|
+
readonly DISABLED: AiCapabilityMode.Disabled;
|
|
40
|
+
};
|
|
41
|
+
declare const LUMA_AI_CAPABILITY_PROVIDERS: {
|
|
42
|
+
readonly LUMA: AiCapabilityProvider.Luma;
|
|
43
|
+
readonly MENTINGO_CORE: AiCapabilityProvider.MentingoCore;
|
|
44
|
+
};
|
|
45
|
+
declare const LUMA_AI_CAPABILITIES: {
|
|
46
|
+
readonly COURSE_GENERATION: AiCapability.CourseGeneration;
|
|
47
|
+
readonly COURSE_GENERATION_VISUAL_ASSETS: AiCapability.CourseGenerationVisualAssets;
|
|
48
|
+
readonly COURSE_GENERATION_EMBEDDINGS: AiCapability.CourseGenerationEmbeddings;
|
|
49
|
+
readonly AI_MENTOR_CHAT: AiCapability.AiMentorChat;
|
|
50
|
+
readonly AI_MENTOR_JUDGE: AiCapability.AiMentorJudge;
|
|
51
|
+
readonly AI_MENTOR_CONFIGURATION_GENERATOR: AiCapability.AiMentorConfigurationGenerator;
|
|
52
|
+
readonly AI_JUDGE_CONFIGURATION_GENERATOR: AiCapability.AiJudgeConfigurationGenerator;
|
|
53
|
+
readonly AI_JUDGE_CONFIGURATION_VALIDATOR: AiCapability.AiJudgeConfigurationValidator;
|
|
54
|
+
readonly AI_MENTOR_RAG_EMBEDDINGS: AiCapability.AiMentorRagEmbeddings;
|
|
55
|
+
readonly TRANSLATION_GENERATION: AiCapability.TranslationGeneration;
|
|
56
|
+
readonly DICTATION_TRANSCRIPTION: AiCapability.DictationTranscription;
|
|
57
|
+
readonly VOICE_TRANSCRIPTION: AiCapability.VoiceTranscription;
|
|
58
|
+
readonly VOICE_MENTOR: AiCapability.VoiceMentor;
|
|
59
|
+
readonly VOICE_TEXT_TO_SPEECH: AiCapability.VoiceTextToSpeech;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare class LumaAiClient {
|
|
63
|
+
private readonly apiClient;
|
|
64
|
+
constructor(apiClient: API<unknown>);
|
|
65
|
+
createEmbeddings(opts: CreateEmbeddingsOptions): Promise<CreateEmbeddingsResponse>;
|
|
66
|
+
generateJudgeConfiguration(opts: GenerateAiJudgeConfigurationOptions): Promise<GenerateAiJudgeConfigurationResponse>;
|
|
67
|
+
generateMentorConfiguration(opts: GenerateAiMentorConfigurationOptions): Promise<GenerateAiMentorConfigurationResponse>;
|
|
68
|
+
validateJudgeConfiguration(opts: ValidateAiJudgeConfigurationOptions): Promise<ValidateAiJudgeConfigurationResponse>;
|
|
69
|
+
validateMentorConfiguration(opts: ValidateAiMentorConfigurationOptions): Promise<ValidateAiMentorConfigurationResponse>;
|
|
70
|
+
generateTranslations(opts: GenerateTranslationsOptions): Promise<GenerateTranslationsResponse>;
|
|
71
|
+
transcribeDictation(opts: TranscribeDictationOptions): Promise<TranscribeDictationResponse>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class AdminApiExecutions {
|
|
75
|
+
private readonly apiClient;
|
|
76
|
+
private readonly apiKey?;
|
|
77
|
+
constructor(apiClient: API<unknown>, apiKey?: string | undefined);
|
|
78
|
+
private assertAdminApiKey;
|
|
79
|
+
listApiKeys(opts: AdminOrganizationIdOptions): Promise<AdminApiKeyResponse[]>;
|
|
80
|
+
createApiKey(opts: AdminApiKeyCreateOptions): Promise<AdminApiKeyCreateResponse>;
|
|
81
|
+
getApiKey(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyResponse>;
|
|
82
|
+
updateApiKey(opts: AdminApiKeyUpdateOptions): Promise<AdminApiKeyResponse>;
|
|
83
|
+
revokeApiKey(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyRevokeResponse>;
|
|
84
|
+
getConfiguration(opts: AdminApiKeyIdentifierOptions): Promise<AdminConfigurationResponse>;
|
|
85
|
+
listAssignments(opts: AdminApiKeyIdentifierOptions): Promise<AdminModelAssignmentResponse[]>;
|
|
86
|
+
updateAssignment(opts: AdminApiKeyAssignmentUpdateOptions): Promise<AdminModelAssignmentResponse>;
|
|
87
|
+
listModelProfiles(opts: AdminOrganizationIdOptions): Promise<AdminModelProfileResponse[]>;
|
|
88
|
+
}
|
|
89
|
+
declare class LumaAdminApiKeysClient {
|
|
90
|
+
private readonly executions;
|
|
91
|
+
constructor(executions: AdminApiExecutions);
|
|
92
|
+
list(opts: AdminOrganizationIdOptions): Promise<AdminApiKeyResponse[]>;
|
|
93
|
+
create(opts: AdminApiKeyCreateOptions): Promise<AdminApiKeyCreateResponse>;
|
|
94
|
+
get(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyResponse>;
|
|
95
|
+
update(opts: AdminApiKeyUpdateOptions): Promise<AdminApiKeyResponse>;
|
|
96
|
+
revoke(opts: AdminApiKeyIdentifierOptions): Promise<AdminApiKeyRevokeResponse>;
|
|
97
|
+
getConfiguration(opts: AdminApiKeyIdentifierOptions): Promise<AdminConfigurationResponse>;
|
|
98
|
+
listAssignments(opts: AdminApiKeyIdentifierOptions): Promise<AdminModelAssignmentResponse[]>;
|
|
99
|
+
updateAssignment(opts: AdminApiKeyAssignmentUpdateOptions): Promise<AdminModelAssignmentResponse>;
|
|
100
|
+
}
|
|
101
|
+
declare class LumaAdminModelProfilesClient {
|
|
102
|
+
private readonly executions;
|
|
103
|
+
constructor(executions: AdminApiExecutions);
|
|
104
|
+
list(opts: AdminOrganizationIdOptions): Promise<AdminModelProfileResponse[]>;
|
|
105
|
+
}
|
|
106
|
+
declare class LumaAdminClient {
|
|
107
|
+
readonly apiKeys: LumaAdminApiKeysClient;
|
|
108
|
+
readonly modelProfiles: LumaAdminModelProfilesClient;
|
|
109
|
+
constructor(apiClient: API<unknown>, apiKey?: string);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Typed transport facade for durable authoring sessions, commands and exports.
|
|
114
|
+
* Server state owns replay and idempotency; this client does not schedule work or
|
|
115
|
+
* apply course content. The supplied API client owns authentication and transport.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/** Authoring HTTP operations exposed by the main SDK client. */
|
|
119
|
+
declare class LumaAuthoringClient {
|
|
120
|
+
private readonly apiClient;
|
|
121
|
+
/** Reuse the authenticated generated client and its configured HTTP policy. */
|
|
122
|
+
constructor(apiClient: API<unknown>);
|
|
123
|
+
/** Open or restore the organization/course session using the caller command identity. */
|
|
124
|
+
createSession(options: AuthoringCreateSessionOptions): Promise<AuthoringSessionSnapshot>;
|
|
125
|
+
/** List one server-filtered, offset-paginated page of a course's independent conversations in server-defined latest-activity order. */
|
|
126
|
+
listSessions(options: ListAuthoringSessionsOptions): Promise<AuthoringSessionPage>;
|
|
127
|
+
/** Read the durable workspace snapshot used for initial rendering and resynchronization. */
|
|
128
|
+
getSession(options: AuthoringSessionOptions): Promise<AuthoringSessionSnapshot>;
|
|
129
|
+
/** Read an older, stable keyset page of turns and the records for their review cards. */
|
|
130
|
+
getOlderTurns(options: AuthoringTurnHistoryOptions): Promise<AuthoringTurnHistoryPage>;
|
|
131
|
+
/** Read one ordered event page after a durable cursor; callers own pagination. */
|
|
132
|
+
getEvents(options: AuthoringEventsOptions): Promise<AuthoringEventPage>;
|
|
133
|
+
/** Consume one SSE connection until closure or failure.
|
|
134
|
+
* The caller owns reconnect and cursor persistence; aborting only closes the
|
|
135
|
+
* subscription and never stops generation. Terminal access/history errors reject. */
|
|
136
|
+
subscribeEvents(options: SubscribeAuthoringEventsOptions): Promise<void>;
|
|
137
|
+
/** Upload a source under a stable command ID; processing completes asynchronously. */
|
|
138
|
+
uploadSource(options: UploadAuthoringSourceOptions): Promise<AuthoringSourceUploadReceipt>;
|
|
139
|
+
/** Download one authorized asset revision with a response-size bound.
|
|
140
|
+
* Defaults to 32 MiB. Pass the frozen manifest size when known; invalid limits
|
|
141
|
+
* and oversized responses reject without returning partial asset data. */
|
|
142
|
+
downloadAsset(options: DownloadAuthoringAssetOptions): Promise<DownloadedAuthoringAsset>;
|
|
143
|
+
/** Submit a command with its stable identity and return the server acknowledgement.
|
|
144
|
+
* An acknowledgement records acceptance, not completion of provider work. */
|
|
145
|
+
sendCommand(options: SendAuthoringCommandOptions): Promise<AuthoringCommandReceipt>;
|
|
146
|
+
/** Deliver only the selected Core-authorized context for a pending fenced task. */
|
|
147
|
+
fulfillContext(options: FulfillAuthoringContextOptions): Promise<AuthoringContextFulfillmentReceipt>;
|
|
148
|
+
/** Settle one pending context request when Core cannot return authorized detail. */
|
|
149
|
+
failContext(options: FailAuthoringContextOptions): Promise<AuthoringContextFailureReceipt>;
|
|
150
|
+
/** Freeze selected reviewed changes for Core; this operation does not apply them. */
|
|
151
|
+
prepareExport(options: PrepareAuthoringExportOptions): Promise<FrozenAuthoringExport>;
|
|
152
|
+
/** Retrieve the previously frozen bundle without regenerating its content. */
|
|
153
|
+
getExport(options: GetAuthoringExportOptions): Promise<FrozenAuthoringExport>;
|
|
154
|
+
/** Deliver Core application feedback so Luma can reconcile the reviewed changes. */
|
|
155
|
+
recordReceipt(options: RecordAuthoringReceiptOptions): Promise<AuthoringApplicationReceipt>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Decode and deliver complete frames with a one-megacharacter frame bound.
|
|
159
|
+
* Malformed JSON, oversized or truncated frames, and callback failures reject
|
|
160
|
+
* this connection; the caller decides how to recover from its saved cursor. */
|
|
161
|
+
declare const consumeAuthoringEventStream: (body: unknown, options: SubscribeAuthoringEventsOptions) => Promise<void>;
|
|
162
|
+
|
|
163
|
+
declare class LumaConfigurationClient {
|
|
164
|
+
private readonly apiClient;
|
|
165
|
+
constructor(apiClient: API<unknown>);
|
|
166
|
+
get(): Promise<PublicConfigurationResponse>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class LumaMentorClient {
|
|
170
|
+
private readonly apiClient;
|
|
171
|
+
constructor(apiClient: API<unknown>);
|
|
172
|
+
streamChat(opts: MentorChatOptions, requestOptions?: MentorStreamRequestOptions): ReturnType<API<unknown>["api"]["mentorChatApiPublicV1AiMentorChatPost"]>;
|
|
173
|
+
chat(opts: MentorChatOptions, requestOptions?: MentorStreamRequestOptions): ReturnType<API<unknown>["api"]["mentorChatApiPublicV1AiMentorChatPost"]>;
|
|
174
|
+
generateChat(opts: MentorChatOptions): Promise<MentorGenerateChatResponse>;
|
|
175
|
+
judge(opts: MentorJudgeOptions): Promise<MentorJudgeResponse>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* SDK composition root: shares transport configuration across feature clients
|
|
180
|
+
* while keeping public and administrative API-key headers separate.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
type LumaClientOptions = {
|
|
184
|
+
baseURL?: string;
|
|
185
|
+
apiKey?: string;
|
|
186
|
+
httpsAgent?: Agent;
|
|
187
|
+
allowInsecureTls?: boolean;
|
|
188
|
+
};
|
|
189
|
+
/** Connected feature facades; construction does not open an authoring session. */
|
|
190
|
+
declare class LumaClient {
|
|
191
|
+
readonly ai: LumaAiClient;
|
|
192
|
+
readonly admin: LumaAdminClient;
|
|
193
|
+
readonly authoring: LumaAuthoringClient;
|
|
194
|
+
readonly configuration: LumaConfigurationClient;
|
|
195
|
+
readonly mentor: LumaMentorClient;
|
|
196
|
+
private readonly apiClient;
|
|
197
|
+
/** Configure authenticated transports; TLS verification stays enabled unless explicitly disabled. */
|
|
198
|
+
constructor(opts: LumaClientOptions);
|
|
199
|
+
}
|
|
200
|
+
/** Construct feature clients with the supplied endpoint and integration credentials. */
|
|
201
|
+
declare const createLumaClient: (opts: LumaClientOptions) => LumaClient;
|
|
202
|
+
|
|
203
|
+
type LumaSocketClientOptions = {
|
|
204
|
+
baseURL?: string;
|
|
205
|
+
apiKey?: string;
|
|
206
|
+
allowInsecureTls?: boolean;
|
|
207
|
+
socketData?: {
|
|
208
|
+
sessionId?: string;
|
|
209
|
+
userId?: string;
|
|
210
|
+
lessonId?: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
declare const createLumaSocket: (opts: LumaSocketClientOptions) => LumaSocket;
|
|
214
|
+
|
|
215
|
+
export { AI_MENTOR_CONFIGURATION_TYPES, AdminApiKeyAssignmentUpdateOptions, AdminApiKeyCreateOptions, AdminApiKeyCreateResponse, AdminApiKeyIdentifierOptions, AdminApiKeyResponse, AdminApiKeyRevokeResponse, AdminApiKeyUpdateOptions, AdminConfigurationResponse, AdminModelAssignmentResponse, AdminModelProfileResponse, AdminOrganizationIdOptions, AiCapability, AiCapabilityMode, AiCapabilityProvider, type AiMentorConfigurationType, type AiRuntimeConfiguration, AuthoringApplicationReceipt, AuthoringCommandReceipt, AuthoringContextFailureReceipt, AuthoringContextFulfillmentReceipt, AuthoringCreateSessionOptions, AuthoringEventPage, AuthoringEventsOptions, AuthoringSessionOptions, AuthoringSessionPage, AuthoringSessionSnapshot, AuthoringSourceUploadReceipt, AuthoringTurnHistoryOptions, AuthoringTurnHistoryPage, type CreateEmbeddingsOptions, type CreateEmbeddingsResponse, DownloadAuthoringAssetOptions, DownloadedAuthoringAsset, FailAuthoringContextOptions, FrozenAuthoringExport, FulfillAuthoringContextOptions, type GenerateAiJudgeConfigurationOptions, type GenerateAiJudgeConfigurationResponse, type GenerateAiMentorConfigurationOptions, type GenerateAiMentorConfigurationResponse, type GenerateTranslationsOptions, type GenerateTranslationsResponse, GetAuthoringExportOptions, LUMA_AI_CAPABILITIES, LUMA_AI_CAPABILITY_MODES, LUMA_AI_CAPABILITY_PROVIDERS, ListAuthoringSessionsOptions, LumaAdminApiKeysClient, LumaAdminClient, LumaAdminModelProfilesClient, LumaAiClient, LumaAuthoringClient, LumaClient, type LumaClientOptions, LumaConfigurationClient, LumaMentorClient, LumaSocket, type LumaSocketClientOptions, type MentorChatOptions, MentorChatRequest, MentorChatResponse, type MentorGenerateChatResponse, type MentorJudgeOptions, type MentorJudgeResponse, type MentorStreamRequestOptions, PrepareAuthoringExportOptions, PublicConfigurationResponse, RecordAuthoringReceiptOptions, SendAuthoringCommandOptions, SubscribeAuthoringEventsOptions, type TranscribeDictationOptions, type TranscribeDictationResponse, UploadAuthoringSourceOptions, type ValidateAiJudgeConfigurationOptions, type ValidateAiJudgeConfigurationResponse, type ValidateAiMentorConfigurationOptions, type ValidateAiMentorConfigurationResponse, consumeAuthoringEventStream, createLumaClient, createLumaSocket };
|