@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
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/contracts.ts
|
|
31
|
+
var contracts_exports = {};
|
|
32
|
+
__export(contracts_exports, {
|
|
33
|
+
AUDIO_PROVIDER_STATES: () => AUDIO_PROVIDER_STATES,
|
|
34
|
+
AUDIO_RECOVERY_STATES: () => AUDIO_RECOVERY_STATES,
|
|
35
|
+
AiModelDomain: () => AiModelDomain,
|
|
36
|
+
AiModelProfileKind: () => AiModelProfileKind,
|
|
37
|
+
AuthoringSubscriptionError: () => AuthoringSubscriptionError,
|
|
38
|
+
EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS: () => EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS,
|
|
39
|
+
EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS: () => EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS,
|
|
40
|
+
EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS: () => EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS,
|
|
41
|
+
EXTERNAL_AUDIO_OPERATION: () => EXTERNAL_AUDIO_OPERATION,
|
|
42
|
+
EXTERNAL_AUDIO_RECOVERY_STATE: () => EXTERNAL_AUDIO_RECOVERY_STATE,
|
|
43
|
+
EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS: () => EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS,
|
|
44
|
+
EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES: () => EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES,
|
|
45
|
+
LEARNER_TRANSCRIPT_STATUSES: () => LEARNER_TRANSCRIPT_STATUSES,
|
|
46
|
+
LUMA_AI_MODEL_DOMAINS: () => LUMA_AI_MODEL_DOMAINS,
|
|
47
|
+
LUMA_AI_MODEL_PROFILE_KINDS: () => LUMA_AI_MODEL_PROFILE_KINDS,
|
|
48
|
+
LUMA_AUDIO_ACTIONS: () => LUMA_AUDIO_ACTIONS,
|
|
49
|
+
LUMA_AUDIO_FORMATS: () => LUMA_AUDIO_FORMATS,
|
|
50
|
+
LUMA_CAPTURE_PROFILES: () => LUMA_CAPTURE_PROFILES,
|
|
51
|
+
LUMA_MENTOR_STREAM_EVENT_TYPES: () => LUMA_MENTOR_STREAM_EVENT_TYPES,
|
|
52
|
+
LUMA_SOCKET_EMIT_EVENTS: () => LUMA_SOCKET_EMIT_EVENTS,
|
|
53
|
+
LUMA_SOCKET_LISTEN_EVENTS: () => LUMA_SOCKET_LISTEN_EVENTS,
|
|
54
|
+
LUMA_SOCKET_MESSAGE_TYPES: () => LUMA_SOCKET_MESSAGE_TYPES,
|
|
55
|
+
LUMA_VOICE_TIMING_PRECISION: () => LUMA_VOICE_TIMING_PRECISION,
|
|
56
|
+
TRANSCRIPTION_MODES: () => TRANSCRIPTION_MODES,
|
|
57
|
+
TurnPartKind: () => TurnPartKind,
|
|
58
|
+
TurnPartStatus: () => TurnPartStatus,
|
|
59
|
+
TurnStatus: () => TurnStatus
|
|
60
|
+
});
|
|
61
|
+
module.exports = __toCommonJS(contracts_exports);
|
|
62
|
+
|
|
63
|
+
// src/api/generated-api.ts
|
|
64
|
+
var import_axios = __toESM(require("axios"), 1);
|
|
65
|
+
var TurnStatus = /* @__PURE__ */ ((TurnStatus2) => {
|
|
66
|
+
TurnStatus2["Queued"] = "queued";
|
|
67
|
+
TurnStatus2["Running"] = "running";
|
|
68
|
+
TurnStatus2["WaitingAuthor"] = "waiting_author";
|
|
69
|
+
TurnStatus2["Completed"] = "completed";
|
|
70
|
+
TurnStatus2["Failed"] = "failed";
|
|
71
|
+
TurnStatus2["Stopped"] = "stopped";
|
|
72
|
+
return TurnStatus2;
|
|
73
|
+
})(TurnStatus || {});
|
|
74
|
+
var TurnPartStatus = /* @__PURE__ */ ((TurnPartStatus2) => {
|
|
75
|
+
TurnPartStatus2["Streaming"] = "streaming";
|
|
76
|
+
TurnPartStatus2["Completed"] = "completed";
|
|
77
|
+
TurnPartStatus2["Failed"] = "failed";
|
|
78
|
+
TurnPartStatus2["Stopped"] = "stopped";
|
|
79
|
+
TurnPartStatus2["Review"] = "review";
|
|
80
|
+
return TurnPartStatus2;
|
|
81
|
+
})(TurnPartStatus || {});
|
|
82
|
+
var TurnPartKind = /* @__PURE__ */ ((TurnPartKind2) => {
|
|
83
|
+
TurnPartKind2["Text"] = "text";
|
|
84
|
+
TurnPartKind2["Tool"] = "tool";
|
|
85
|
+
TurnPartKind2["Proposal"] = "proposal";
|
|
86
|
+
TurnPartKind2["Question"] = "question";
|
|
87
|
+
return TurnPartKind2;
|
|
88
|
+
})(TurnPartKind || {});
|
|
89
|
+
var AiModelProfileKind = /* @__PURE__ */ ((AiModelProfileKind2) => {
|
|
90
|
+
AiModelProfileKind2["Chat"] = "chat";
|
|
91
|
+
AiModelProfileKind2["Image"] = "image";
|
|
92
|
+
AiModelProfileKind2["Embedding"] = "embedding";
|
|
93
|
+
AiModelProfileKind2["SpeechToText"] = "speechToText";
|
|
94
|
+
AiModelProfileKind2["TextToSpeech"] = "textToSpeech";
|
|
95
|
+
return AiModelProfileKind2;
|
|
96
|
+
})(AiModelProfileKind || {});
|
|
97
|
+
var AiModelDomain = /* @__PURE__ */ ((AiModelDomain2) => {
|
|
98
|
+
AiModelDomain2["AiMentor"] = "aiMentor";
|
|
99
|
+
AiModelDomain2["AiMentorJudge"] = "aiMentorJudge";
|
|
100
|
+
AiModelDomain2["AiMentorConfigurationGenerator"] = "aiMentorConfigurationGenerator";
|
|
101
|
+
AiModelDomain2["AiJudgeConfigurationGenerator"] = "aiJudgeConfigurationGenerator";
|
|
102
|
+
AiModelDomain2["AiJudgeConfigurationValidator"] = "aiJudgeConfigurationValidator";
|
|
103
|
+
AiModelDomain2["Translations"] = "translations";
|
|
104
|
+
AiModelDomain2["CourseGeneration"] = "courseGeneration";
|
|
105
|
+
AiModelDomain2["CourseGenerationVisualAssets"] = "courseGenerationVisualAssets";
|
|
106
|
+
AiModelDomain2["CourseGenerationEmbeddings"] = "courseGenerationEmbeddings";
|
|
107
|
+
AiModelDomain2["Embeddings"] = "embeddings";
|
|
108
|
+
AiModelDomain2["DictationTranscription"] = "dictationTranscription";
|
|
109
|
+
AiModelDomain2["VoiceTranscription"] = "voiceTranscription";
|
|
110
|
+
AiModelDomain2["VoiceTts"] = "voiceTts";
|
|
111
|
+
return AiModelDomain2;
|
|
112
|
+
})(AiModelDomain || {});
|
|
113
|
+
|
|
114
|
+
// src/http/admin.constants.ts
|
|
115
|
+
var LUMA_AI_MODEL_DOMAINS = {
|
|
116
|
+
AI_MENTOR: "aiMentor" /* AiMentor */,
|
|
117
|
+
AI_MENTOR_CONFIGURATION_GENERATOR: "aiMentorConfigurationGenerator" /* AiMentorConfigurationGenerator */,
|
|
118
|
+
AI_MENTOR_JUDGE: "aiMentorJudge" /* AiMentorJudge */,
|
|
119
|
+
AI_JUDGE_CONFIGURATION_GENERATOR: "aiJudgeConfigurationGenerator" /* AiJudgeConfigurationGenerator */,
|
|
120
|
+
AI_JUDGE_CONFIGURATION_VALIDATOR: "aiJudgeConfigurationValidator" /* AiJudgeConfigurationValidator */,
|
|
121
|
+
TRANSLATIONS: "translations" /* Translations */,
|
|
122
|
+
COURSE_GENERATION: "courseGeneration" /* CourseGeneration */,
|
|
123
|
+
COURSE_GENERATION_VISUAL_ASSETS: "courseGenerationVisualAssets" /* CourseGenerationVisualAssets */,
|
|
124
|
+
COURSE_GENERATION_EMBEDDINGS: "courseGenerationEmbeddings" /* CourseGenerationEmbeddings */,
|
|
125
|
+
EMBEDDINGS: "embeddings" /* Embeddings */,
|
|
126
|
+
DICTATION_TRANSCRIPTION: "dictationTranscription" /* DictationTranscription */,
|
|
127
|
+
VOICE_TRANSCRIPTION: "voiceTranscription" /* VoiceTranscription */,
|
|
128
|
+
VOICE_TTS: "voiceTts" /* VoiceTts */
|
|
129
|
+
};
|
|
130
|
+
var LUMA_AI_MODEL_PROFILE_KINDS = {
|
|
131
|
+
CHAT: "chat" /* Chat */,
|
|
132
|
+
IMAGE: "image" /* Image */,
|
|
133
|
+
EMBEDDING: "embedding" /* Embedding */,
|
|
134
|
+
SPEECH_TO_TEXT: "speechToText" /* SpeechToText */,
|
|
135
|
+
TEXT_TO_SPEECH: "textToSpeech" /* TextToSpeech */
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// src/http/authoring.types.ts
|
|
139
|
+
var AuthoringSubscriptionError = class extends Error {
|
|
140
|
+
/** Preserve the machine-readable terminal reason for consumer recovery decisions. */
|
|
141
|
+
constructor(code) {
|
|
142
|
+
super(`Authoring event subscription ended: ${code}`);
|
|
143
|
+
this.name = "AuthoringSubscriptionError";
|
|
144
|
+
this.code = code;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// src/socket/types.ts
|
|
149
|
+
var LUMA_SOCKET_MESSAGE_TYPES = {
|
|
150
|
+
AUDIO_START: "audio.start",
|
|
151
|
+
AUDIO_CHUNK: "audio.chunk",
|
|
152
|
+
AUDIO_RECONNECT: "audio.reconnect",
|
|
153
|
+
AUDIO_RECOVERED: "audio.recovered",
|
|
154
|
+
AUDIO_STOP: "audio.stop",
|
|
155
|
+
CLIENT_SPEECH_START: "client.speech.start",
|
|
156
|
+
CLIENT_SPEECH_END: "client.speech.end",
|
|
157
|
+
MENTOR_TEXT_DELTA: "mentor.text.delta",
|
|
158
|
+
MENTOR_TEXT_END: "mentor.text.end",
|
|
159
|
+
MENTOR_TEXT_ERROR: "mentor.text.error"
|
|
160
|
+
};
|
|
161
|
+
var LUMA_AUDIO_ACTIONS = {
|
|
162
|
+
VOICE_MENTOR: "VOICE_MENTOR"
|
|
163
|
+
};
|
|
164
|
+
var LUMA_AUDIO_FORMATS = {
|
|
165
|
+
PCM_S16LE: "pcm_s16le"
|
|
166
|
+
};
|
|
167
|
+
var LUMA_SOCKET_LISTEN_EVENTS = {
|
|
168
|
+
SERVER_CONNECTED: "server:connected",
|
|
169
|
+
PONG: "pong",
|
|
170
|
+
AUDIO_STARTED: "audio:start",
|
|
171
|
+
AUDIO_CHUNKED: "audio:chunked",
|
|
172
|
+
AUDIO_CHUNK_ERROR: "audio:chunk_error",
|
|
173
|
+
AUDIO_RECOVERED: "audio:recovered",
|
|
174
|
+
AUDIO_RECONNECT_ERROR: "audio:reconnect_error",
|
|
175
|
+
AUDIO_STOPPED: "audio:stopped",
|
|
176
|
+
LEARNER_TRANSCRIPTION: "learner:transcription",
|
|
177
|
+
AUDIO_OUTPUT_ALIGNMENT: "audio:output:alignment",
|
|
178
|
+
AUDIO_OUTPUT_CHUNK: "audio:output:chunk",
|
|
179
|
+
AUDIO_OUTPUT_INTERRUPTED: "audio:output:interrupted",
|
|
180
|
+
AUDIO_OUTPUT_ERROR: "audio:output:error",
|
|
181
|
+
AUDIO_OUTPUT_COMPLETE: "audio:output:complete"
|
|
182
|
+
};
|
|
183
|
+
var LUMA_MENTOR_STREAM_EVENT_TYPES = {
|
|
184
|
+
LEARNER_TRANSCRIPTION: "learner.transcription",
|
|
185
|
+
AUDIO_OUTPUT_ALIGNMENT: "audio.output.alignment",
|
|
186
|
+
AUDIO_OUTPUT_CHUNK: "audio.output.chunk",
|
|
187
|
+
AUDIO_OUTPUT_INTERRUPTED: "audio.output.interrupted",
|
|
188
|
+
AUDIO_OUTPUT_ERROR: "audio.output.error",
|
|
189
|
+
AUDIO_OUTPUT_COMPLETE: "audio.output.complete"
|
|
190
|
+
};
|
|
191
|
+
var LUMA_SOCKET_EMIT_EVENTS = {
|
|
192
|
+
START_AUDIO: "start_audio",
|
|
193
|
+
AUDIO_CHUNK: "audio_chunk",
|
|
194
|
+
AUDIO_RECONNECT: "audio_reconnect",
|
|
195
|
+
AUDIO_STOP: "audio_stop",
|
|
196
|
+
CLIENT_SPEECH_START: "client_speech_start",
|
|
197
|
+
CLIENT_SPEECH_END: "client_speech_end",
|
|
198
|
+
MENTOR_TEXT_DELTA: "mentor_text_delta",
|
|
199
|
+
MENTOR_TEXT_END: "mentor_text_end",
|
|
200
|
+
MENTOR_TEXT_ERROR: "mentor_text_error",
|
|
201
|
+
PING: "ping",
|
|
202
|
+
TRIGGER_TTS: "trigger_tts"
|
|
203
|
+
};
|
|
204
|
+
var TRANSCRIPTION_MODES = {
|
|
205
|
+
PAUSE_BATCH: "pause_batch",
|
|
206
|
+
REALTIME_STREAM: "realtime_stream"
|
|
207
|
+
};
|
|
208
|
+
var LUMA_CAPTURE_PROFILES = {
|
|
209
|
+
CONTINUOUS_PCM: "continuous_pcm",
|
|
210
|
+
VAD_SEGMENTED: "vad_segmented"
|
|
211
|
+
};
|
|
212
|
+
var AUDIO_RECOVERY_STATES = {
|
|
213
|
+
LISTENING: "listening",
|
|
214
|
+
MENTOR_ACTIVE: "mentor_active",
|
|
215
|
+
USER_SPEAKING: "user_speaking"
|
|
216
|
+
};
|
|
217
|
+
var AUDIO_PROVIDER_STATES = {
|
|
218
|
+
CONNECTED: "connected",
|
|
219
|
+
RESTARTED: "restarted",
|
|
220
|
+
NOT_APPLICABLE: "not_applicable"
|
|
221
|
+
};
|
|
222
|
+
var LEARNER_TRANSCRIPT_STATUSES = {
|
|
223
|
+
PARTIAL: "partial",
|
|
224
|
+
FINAL: "final"
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
// src/socket/constants.ts
|
|
228
|
+
var LUMA_VOICE_TIMING_PRECISION = {
|
|
229
|
+
WORD: "word",
|
|
230
|
+
SEGMENT: "segment",
|
|
231
|
+
BOUNDARY_ESTIMATE: "boundary_estimate",
|
|
232
|
+
UNKNOWN: "unknown"
|
|
233
|
+
};
|
|
234
|
+
var EXTERNAL_AUDIO_RECOVERY_STATE = {
|
|
235
|
+
CONNECTED: "connected",
|
|
236
|
+
RECOVERING: "recovering",
|
|
237
|
+
FAILED: "failed"
|
|
238
|
+
};
|
|
239
|
+
var EXTERNAL_AUDIO_OPERATION = {
|
|
240
|
+
CHUNK: "chunk",
|
|
241
|
+
SPEECH_START: "speech_start",
|
|
242
|
+
SPEECH_END: "speech_end"
|
|
243
|
+
};
|
|
244
|
+
var EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS = 8;
|
|
245
|
+
var EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS = 1024;
|
|
246
|
+
var EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS = 1e4;
|
|
247
|
+
var EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS = 15e3;
|
|
248
|
+
var EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES = [
|
|
249
|
+
"AUDIO_SESSION_RUN_REPLACED",
|
|
250
|
+
"AUDIO_SESSION_CLOSED",
|
|
251
|
+
"AUDIO_SESSION_RUN_MISMATCH",
|
|
252
|
+
"AUDIO_SESSION_RUN_ID_UNAVAILABLE"
|
|
253
|
+
];
|
|
254
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
255
|
+
0 && (module.exports = {
|
|
256
|
+
AUDIO_PROVIDER_STATES,
|
|
257
|
+
AUDIO_RECOVERY_STATES,
|
|
258
|
+
AiModelDomain,
|
|
259
|
+
AiModelProfileKind,
|
|
260
|
+
AuthoringSubscriptionError,
|
|
261
|
+
EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS,
|
|
262
|
+
EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS,
|
|
263
|
+
EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS,
|
|
264
|
+
EXTERNAL_AUDIO_OPERATION,
|
|
265
|
+
EXTERNAL_AUDIO_RECOVERY_STATE,
|
|
266
|
+
EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS,
|
|
267
|
+
EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES,
|
|
268
|
+
LEARNER_TRANSCRIPT_STATUSES,
|
|
269
|
+
LUMA_AI_MODEL_DOMAINS,
|
|
270
|
+
LUMA_AI_MODEL_PROFILE_KINDS,
|
|
271
|
+
LUMA_AUDIO_ACTIONS,
|
|
272
|
+
LUMA_AUDIO_FORMATS,
|
|
273
|
+
LUMA_CAPTURE_PROFILES,
|
|
274
|
+
LUMA_MENTOR_STREAM_EVENT_TYPES,
|
|
275
|
+
LUMA_SOCKET_EMIT_EVENTS,
|
|
276
|
+
LUMA_SOCKET_LISTEN_EVENTS,
|
|
277
|
+
LUMA_SOCKET_MESSAGE_TYPES,
|
|
278
|
+
LUMA_VOICE_TIMING_PRECISION,
|
|
279
|
+
TRANSCRIPTION_MODES,
|
|
280
|
+
TurnPartKind,
|
|
281
|
+
TurnPartStatus,
|
|
282
|
+
TurnStatus
|
|
283
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { a3 as AUDIO_PROVIDER_STATES, a4 as AUDIO_RECOVERY_STATES, u as AdminApiKeyAssignmentUpdateOptions, n as AdminApiKeyCreateOptions, o as AdminApiKeyCreateResponse, p as AdminApiKeyIdentifierOptions, m as AdminApiKeyResponse, r as AdminApiKeyRevokeResponse, q as AdminApiKeyUpdateOptions, s as AdminConfigurationResponse, t as AdminModelAssignmentResponse, v as AdminModelProfileResponse, l as AdminOrganizationIdOptions, 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, a1 as AuthoringApplicationReceipt, aD as AuthoringCommand, R as AuthoringCommandReceipt, aE as AuthoringContextFailure, Y as AuthoringContextFailureReceipt, W as AuthoringContextFulfillmentReceipt, aF as AuthoringContextResponse, w as AuthoringCreateSessionOptions, aG as AuthoringEvent, H as AuthoringEventPage, F as AuthoringEventsOptions, aH as AuthoringLessonCreateOperation, aI as AuthoringLessonUpdateOperation, aJ as AuthoringMentorLessonCreatePayload, aK as AuthoringOperation, z as AuthoringSessionOptions, y as AuthoringSessionPage, x as AuthoringSessionSnapshot, aL as AuthoringSessionSummary, K as AuthoringSourceUploadReceipt, aM as AuthoringSubscriptionError, aN as AuthoringSubscriptionErrorCode, aO as AuthoringTaskFailure, aP as AuthoringTaskSummary, aQ as AuthoringTurn, C as AuthoringTurnHistoryOptions, D as AuthoringTurnHistoryPage, 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, N as DownloadAuthoringAssetOptions, O as DownloadedAuthoringAsset, 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, X as FailAuthoringContextOptions, _ as FrozenAuthoringExport, ba as FrozenExport, V as FulfillAuthoringContextOptions, $ as GetAuthoringExportOptions, 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, L as ListAuthoringSessionsOptions, bq as LumaAiModelDomain, br as LumaAiModelProfileKind, bs as LumaCaptureProfile, a2 as LumaSocket, 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, Z as PrepareAuthoringExportOptions, bC as PrepareExport, bD as ProposalReviewDecision, P as PublicConfigurationResponse, a0 as RecordAuthoringReceiptOptions, Q as SendAuthoringCommandOptions, bG as ServerConnectedPayload, bH as SessionSnapshot, bI as SessionSummary, bJ as SessionSummaryPage, bK as SourceUploadReceipt, bL as SpeechAlignmentWord, bM as StartAudioPayload, I as SubscribeAuthoringEventsOptions, bN as TRANSCRIPTION_MODES, bP as TaskFailure, bR as TaskSummary, bT as TranscriptionSessionPlan, bU as TurnPartKind, bV as TurnPartStatus, bW as TurnStatus, U as UploadAuthoringSourceOptions, bX as WorkspaceRecord } from './contracts-qTi7LQB8.cjs';
|
|
2
|
+
import 'axios';
|
|
3
|
+
import 'socket.io-client';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { a3 as AUDIO_PROVIDER_STATES, a4 as AUDIO_RECOVERY_STATES, u as AdminApiKeyAssignmentUpdateOptions, n as AdminApiKeyCreateOptions, o as AdminApiKeyCreateResponse, p as AdminApiKeyIdentifierOptions, m as AdminApiKeyResponse, r as AdminApiKeyRevokeResponse, q as AdminApiKeyUpdateOptions, s as AdminConfigurationResponse, t as AdminModelAssignmentResponse, v as AdminModelProfileResponse, l as AdminOrganizationIdOptions, 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, a1 as AuthoringApplicationReceipt, aD as AuthoringCommand, R as AuthoringCommandReceipt, aE as AuthoringContextFailure, Y as AuthoringContextFailureReceipt, W as AuthoringContextFulfillmentReceipt, aF as AuthoringContextResponse, w as AuthoringCreateSessionOptions, aG as AuthoringEvent, H as AuthoringEventPage, F as AuthoringEventsOptions, aH as AuthoringLessonCreateOperation, aI as AuthoringLessonUpdateOperation, aJ as AuthoringMentorLessonCreatePayload, aK as AuthoringOperation, z as AuthoringSessionOptions, y as AuthoringSessionPage, x as AuthoringSessionSnapshot, aL as AuthoringSessionSummary, K as AuthoringSourceUploadReceipt, aM as AuthoringSubscriptionError, aN as AuthoringSubscriptionErrorCode, aO as AuthoringTaskFailure, aP as AuthoringTaskSummary, aQ as AuthoringTurn, C as AuthoringTurnHistoryOptions, D as AuthoringTurnHistoryPage, 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, N as DownloadAuthoringAssetOptions, O as DownloadedAuthoringAsset, 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, X as FailAuthoringContextOptions, _ as FrozenAuthoringExport, ba as FrozenExport, V as FulfillAuthoringContextOptions, $ as GetAuthoringExportOptions, 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, L as ListAuthoringSessionsOptions, bq as LumaAiModelDomain, br as LumaAiModelProfileKind, bs as LumaCaptureProfile, a2 as LumaSocket, 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, Z as PrepareAuthoringExportOptions, bC as PrepareExport, bD as ProposalReviewDecision, P as PublicConfigurationResponse, a0 as RecordAuthoringReceiptOptions, Q as SendAuthoringCommandOptions, bG as ServerConnectedPayload, bH as SessionSnapshot, bI as SessionSummary, bJ as SessionSummaryPage, bK as SourceUploadReceipt, bL as SpeechAlignmentWord, bM as StartAudioPayload, I as SubscribeAuthoringEventsOptions, bN as TRANSCRIPTION_MODES, bP as TaskFailure, bR as TaskSummary, bT as TranscriptionSessionPlan, bU as TurnPartKind, bV as TurnPartStatus, bW as TurnStatus, U as UploadAuthoringSourceOptions, bX as WorkspaceRecord } from './contracts-qTi7LQB8.js';
|
|
2
|
+
import 'axios';
|
|
3
|
+
import 'socket.io-client';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUDIO_PROVIDER_STATES,
|
|
3
|
+
AUDIO_RECOVERY_STATES,
|
|
4
|
+
AiModelDomain,
|
|
5
|
+
AiModelProfileKind,
|
|
6
|
+
AuthoringSubscriptionError,
|
|
7
|
+
EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS,
|
|
8
|
+
EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS,
|
|
9
|
+
EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS,
|
|
10
|
+
EXTERNAL_AUDIO_OPERATION,
|
|
11
|
+
EXTERNAL_AUDIO_RECOVERY_STATE,
|
|
12
|
+
EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS,
|
|
13
|
+
EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES,
|
|
14
|
+
LEARNER_TRANSCRIPT_STATUSES,
|
|
15
|
+
LUMA_AI_MODEL_DOMAINS,
|
|
16
|
+
LUMA_AI_MODEL_PROFILE_KINDS,
|
|
17
|
+
LUMA_AUDIO_ACTIONS,
|
|
18
|
+
LUMA_AUDIO_FORMATS,
|
|
19
|
+
LUMA_CAPTURE_PROFILES,
|
|
20
|
+
LUMA_MENTOR_STREAM_EVENT_TYPES,
|
|
21
|
+
LUMA_SOCKET_EMIT_EVENTS,
|
|
22
|
+
LUMA_SOCKET_LISTEN_EVENTS,
|
|
23
|
+
LUMA_SOCKET_MESSAGE_TYPES,
|
|
24
|
+
LUMA_VOICE_TIMING_PRECISION,
|
|
25
|
+
TRANSCRIPTION_MODES,
|
|
26
|
+
TurnPartKind,
|
|
27
|
+
TurnPartStatus,
|
|
28
|
+
TurnStatus
|
|
29
|
+
} from "./chunk-W5CQGEDB.js";
|
|
30
|
+
export {
|
|
31
|
+
AUDIO_PROVIDER_STATES,
|
|
32
|
+
AUDIO_RECOVERY_STATES,
|
|
33
|
+
AiModelDomain,
|
|
34
|
+
AiModelProfileKind,
|
|
35
|
+
AuthoringSubscriptionError,
|
|
36
|
+
EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS,
|
|
37
|
+
EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS,
|
|
38
|
+
EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS,
|
|
39
|
+
EXTERNAL_AUDIO_OPERATION,
|
|
40
|
+
EXTERNAL_AUDIO_RECOVERY_STATE,
|
|
41
|
+
EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS,
|
|
42
|
+
EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES,
|
|
43
|
+
LEARNER_TRANSCRIPT_STATUSES,
|
|
44
|
+
LUMA_AI_MODEL_DOMAINS,
|
|
45
|
+
LUMA_AI_MODEL_PROFILE_KINDS,
|
|
46
|
+
LUMA_AUDIO_ACTIONS,
|
|
47
|
+
LUMA_AUDIO_FORMATS,
|
|
48
|
+
LUMA_CAPTURE_PROFILES,
|
|
49
|
+
LUMA_MENTOR_STREAM_EVENT_TYPES,
|
|
50
|
+
LUMA_SOCKET_EMIT_EVENTS,
|
|
51
|
+
LUMA_SOCKET_LISTEN_EVENTS,
|
|
52
|
+
LUMA_SOCKET_MESSAGE_TYPES,
|
|
53
|
+
LUMA_VOICE_TIMING_PRECISION,
|
|
54
|
+
TRANSCRIPTION_MODES,
|
|
55
|
+
TurnPartKind,
|
|
56
|
+
TurnPartStatus,
|
|
57
|
+
TurnStatus
|
|
58
|
+
};
|