voice-router-dev 0.3.0 → 0.3.1
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/dist/constants.d.mts +515 -0
- package/dist/constants.d.ts +515 -0
- package/dist/constants.js +371 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +333 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/index.d.mts +4 -522
- package/dist/index.d.ts +4 -522
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/generated/deepgram/schema/listenV1EncodingParameter.ts
|
|
4
|
+
var ListenV1EncodingParameter = {
|
|
5
|
+
linear16: "linear16",
|
|
6
|
+
flac: "flac",
|
|
7
|
+
mulaw: "mulaw",
|
|
8
|
+
opus: "opus",
|
|
9
|
+
speex: "speex",
|
|
10
|
+
g729: "g729"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// src/generated/deepgram/schema/listenV1RedactParameterOneOfItem.ts
|
|
14
|
+
var ListenV1RedactParameterOneOfItem = {
|
|
15
|
+
pci: "pci",
|
|
16
|
+
pii: "pii",
|
|
17
|
+
numbers: "numbers"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/generated/deepgram/schema/sharedCustomTopicModeParameter.ts
|
|
21
|
+
var SharedCustomTopicModeParameter = {
|
|
22
|
+
extended: "extended",
|
|
23
|
+
strict: "strict"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// src/generated/gladia/schema/streamingSupportedEncodingEnum.ts
|
|
27
|
+
var StreamingSupportedEncodingEnum = {
|
|
28
|
+
"wav/pcm": "wav/pcm",
|
|
29
|
+
"wav/alaw": "wav/alaw",
|
|
30
|
+
"wav/ulaw": "wav/ulaw"
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/generated/gladia/schema/streamingSupportedSampleRateEnum.ts
|
|
34
|
+
var StreamingSupportedSampleRateEnum = {
|
|
35
|
+
NUMBER_8000: 8e3,
|
|
36
|
+
NUMBER_16000: 16e3,
|
|
37
|
+
NUMBER_32000: 32e3,
|
|
38
|
+
NUMBER_44100: 44100,
|
|
39
|
+
NUMBER_48000: 48e3
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// src/generated/gladia/schema/streamingSupportedBitDepthEnum.ts
|
|
43
|
+
var StreamingSupportedBitDepthEnum = {
|
|
44
|
+
NUMBER_8: 8,
|
|
45
|
+
NUMBER_16: 16,
|
|
46
|
+
NUMBER_24: 24,
|
|
47
|
+
NUMBER_32: 32
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/generated/gladia/schema/streamingSupportedModels.ts
|
|
51
|
+
var StreamingSupportedModels = {
|
|
52
|
+
"solaria-1": "solaria-1"
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/generated/gladia/schema/transcriptionLanguageCodeEnum.ts
|
|
56
|
+
var TranscriptionLanguageCodeEnum = {
|
|
57
|
+
af: "af",
|
|
58
|
+
am: "am",
|
|
59
|
+
ar: "ar",
|
|
60
|
+
as: "as",
|
|
61
|
+
az: "az",
|
|
62
|
+
ba: "ba",
|
|
63
|
+
be: "be",
|
|
64
|
+
bg: "bg",
|
|
65
|
+
bn: "bn",
|
|
66
|
+
bo: "bo",
|
|
67
|
+
br: "br",
|
|
68
|
+
bs: "bs",
|
|
69
|
+
ca: "ca",
|
|
70
|
+
cs: "cs",
|
|
71
|
+
cy: "cy",
|
|
72
|
+
da: "da",
|
|
73
|
+
de: "de",
|
|
74
|
+
el: "el",
|
|
75
|
+
en: "en",
|
|
76
|
+
es: "es",
|
|
77
|
+
et: "et",
|
|
78
|
+
eu: "eu",
|
|
79
|
+
fa: "fa",
|
|
80
|
+
fi: "fi",
|
|
81
|
+
fo: "fo",
|
|
82
|
+
fr: "fr",
|
|
83
|
+
gl: "gl",
|
|
84
|
+
gu: "gu",
|
|
85
|
+
ha: "ha",
|
|
86
|
+
haw: "haw",
|
|
87
|
+
he: "he",
|
|
88
|
+
hi: "hi",
|
|
89
|
+
hr: "hr",
|
|
90
|
+
ht: "ht",
|
|
91
|
+
hu: "hu",
|
|
92
|
+
hy: "hy",
|
|
93
|
+
id: "id",
|
|
94
|
+
is: "is",
|
|
95
|
+
it: "it",
|
|
96
|
+
ja: "ja",
|
|
97
|
+
jw: "jw",
|
|
98
|
+
ka: "ka",
|
|
99
|
+
kk: "kk",
|
|
100
|
+
km: "km",
|
|
101
|
+
kn: "kn",
|
|
102
|
+
ko: "ko",
|
|
103
|
+
la: "la",
|
|
104
|
+
lb: "lb",
|
|
105
|
+
ln: "ln",
|
|
106
|
+
lo: "lo",
|
|
107
|
+
lt: "lt",
|
|
108
|
+
lv: "lv",
|
|
109
|
+
mg: "mg",
|
|
110
|
+
mi: "mi",
|
|
111
|
+
mk: "mk",
|
|
112
|
+
ml: "ml",
|
|
113
|
+
mn: "mn",
|
|
114
|
+
mr: "mr",
|
|
115
|
+
ms: "ms",
|
|
116
|
+
mt: "mt",
|
|
117
|
+
my: "my",
|
|
118
|
+
ne: "ne",
|
|
119
|
+
nl: "nl",
|
|
120
|
+
nn: "nn",
|
|
121
|
+
no: "no",
|
|
122
|
+
oc: "oc",
|
|
123
|
+
pa: "pa",
|
|
124
|
+
pl: "pl",
|
|
125
|
+
ps: "ps",
|
|
126
|
+
pt: "pt",
|
|
127
|
+
ro: "ro",
|
|
128
|
+
ru: "ru",
|
|
129
|
+
sa: "sa",
|
|
130
|
+
sd: "sd",
|
|
131
|
+
si: "si",
|
|
132
|
+
sk: "sk",
|
|
133
|
+
sl: "sl",
|
|
134
|
+
sn: "sn",
|
|
135
|
+
so: "so",
|
|
136
|
+
sq: "sq",
|
|
137
|
+
sr: "sr",
|
|
138
|
+
su: "su",
|
|
139
|
+
sv: "sv",
|
|
140
|
+
sw: "sw",
|
|
141
|
+
ta: "ta",
|
|
142
|
+
te: "te",
|
|
143
|
+
tg: "tg",
|
|
144
|
+
th: "th",
|
|
145
|
+
tk: "tk",
|
|
146
|
+
tl: "tl",
|
|
147
|
+
tr: "tr",
|
|
148
|
+
tt: "tt",
|
|
149
|
+
uk: "uk",
|
|
150
|
+
ur: "ur",
|
|
151
|
+
uz: "uz",
|
|
152
|
+
vi: "vi",
|
|
153
|
+
yi: "yi",
|
|
154
|
+
yo: "yo",
|
|
155
|
+
zh: "zh"
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/generated/gladia/schema/translationLanguageCodeEnum.ts
|
|
159
|
+
var TranslationLanguageCodeEnum = {
|
|
160
|
+
af: "af",
|
|
161
|
+
am: "am",
|
|
162
|
+
ar: "ar",
|
|
163
|
+
as: "as",
|
|
164
|
+
az: "az",
|
|
165
|
+
ba: "ba",
|
|
166
|
+
be: "be",
|
|
167
|
+
bg: "bg",
|
|
168
|
+
bn: "bn",
|
|
169
|
+
bo: "bo",
|
|
170
|
+
br: "br",
|
|
171
|
+
bs: "bs",
|
|
172
|
+
ca: "ca",
|
|
173
|
+
cs: "cs",
|
|
174
|
+
cy: "cy",
|
|
175
|
+
da: "da",
|
|
176
|
+
de: "de",
|
|
177
|
+
el: "el",
|
|
178
|
+
en: "en",
|
|
179
|
+
es: "es",
|
|
180
|
+
et: "et",
|
|
181
|
+
eu: "eu",
|
|
182
|
+
fa: "fa",
|
|
183
|
+
fi: "fi",
|
|
184
|
+
fo: "fo",
|
|
185
|
+
fr: "fr",
|
|
186
|
+
gl: "gl",
|
|
187
|
+
gu: "gu",
|
|
188
|
+
ha: "ha",
|
|
189
|
+
haw: "haw",
|
|
190
|
+
he: "he",
|
|
191
|
+
hi: "hi",
|
|
192
|
+
hr: "hr",
|
|
193
|
+
ht: "ht",
|
|
194
|
+
hu: "hu",
|
|
195
|
+
hy: "hy",
|
|
196
|
+
id: "id",
|
|
197
|
+
is: "is",
|
|
198
|
+
it: "it",
|
|
199
|
+
ja: "ja",
|
|
200
|
+
jw: "jw",
|
|
201
|
+
ka: "ka",
|
|
202
|
+
kk: "kk",
|
|
203
|
+
km: "km",
|
|
204
|
+
kn: "kn",
|
|
205
|
+
ko: "ko",
|
|
206
|
+
la: "la",
|
|
207
|
+
lb: "lb",
|
|
208
|
+
ln: "ln",
|
|
209
|
+
lo: "lo",
|
|
210
|
+
lt: "lt",
|
|
211
|
+
lv: "lv",
|
|
212
|
+
mg: "mg",
|
|
213
|
+
mi: "mi",
|
|
214
|
+
mk: "mk",
|
|
215
|
+
ml: "ml",
|
|
216
|
+
mn: "mn",
|
|
217
|
+
mr: "mr",
|
|
218
|
+
ms: "ms",
|
|
219
|
+
mt: "mt",
|
|
220
|
+
my: "my",
|
|
221
|
+
ne: "ne",
|
|
222
|
+
nl: "nl",
|
|
223
|
+
nn: "nn",
|
|
224
|
+
no: "no",
|
|
225
|
+
oc: "oc",
|
|
226
|
+
pa: "pa",
|
|
227
|
+
pl: "pl",
|
|
228
|
+
ps: "ps",
|
|
229
|
+
pt: "pt",
|
|
230
|
+
ro: "ro",
|
|
231
|
+
ru: "ru",
|
|
232
|
+
sa: "sa",
|
|
233
|
+
sd: "sd",
|
|
234
|
+
si: "si",
|
|
235
|
+
sk: "sk",
|
|
236
|
+
sl: "sl",
|
|
237
|
+
sn: "sn",
|
|
238
|
+
so: "so",
|
|
239
|
+
sq: "sq",
|
|
240
|
+
sr: "sr",
|
|
241
|
+
su: "su",
|
|
242
|
+
sv: "sv",
|
|
243
|
+
sw: "sw",
|
|
244
|
+
ta: "ta",
|
|
245
|
+
te: "te",
|
|
246
|
+
tg: "tg",
|
|
247
|
+
th: "th",
|
|
248
|
+
tk: "tk",
|
|
249
|
+
tl: "tl",
|
|
250
|
+
tr: "tr",
|
|
251
|
+
tt: "tt",
|
|
252
|
+
uk: "uk",
|
|
253
|
+
ur: "ur",
|
|
254
|
+
uz: "uz",
|
|
255
|
+
vi: "vi",
|
|
256
|
+
wo: "wo",
|
|
257
|
+
yi: "yi",
|
|
258
|
+
yo: "yo",
|
|
259
|
+
zh: "zh"
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
// src/constants.ts
|
|
263
|
+
var DeepgramModel = {
|
|
264
|
+
// Nova 3 models (latest)
|
|
265
|
+
"nova-3": "nova-3",
|
|
266
|
+
"nova-3-general": "nova-3-general",
|
|
267
|
+
"nova-3-medical": "nova-3-medical",
|
|
268
|
+
// Nova 2 models
|
|
269
|
+
"nova-2": "nova-2",
|
|
270
|
+
"nova-2-general": "nova-2-general",
|
|
271
|
+
"nova-2-meeting": "nova-2-meeting",
|
|
272
|
+
"nova-2-finance": "nova-2-finance",
|
|
273
|
+
"nova-2-conversationalai": "nova-2-conversationalai",
|
|
274
|
+
"nova-2-voicemail": "nova-2-voicemail",
|
|
275
|
+
"nova-2-video": "nova-2-video",
|
|
276
|
+
"nova-2-medical": "nova-2-medical",
|
|
277
|
+
"nova-2-drivethru": "nova-2-drivethru",
|
|
278
|
+
"nova-2-automotive": "nova-2-automotive",
|
|
279
|
+
// Nova 1 models
|
|
280
|
+
nova: "nova",
|
|
281
|
+
"nova-general": "nova-general",
|
|
282
|
+
"nova-phonecall": "nova-phonecall",
|
|
283
|
+
"nova-medical": "nova-medical",
|
|
284
|
+
// Enhanced models
|
|
285
|
+
enhanced: "enhanced",
|
|
286
|
+
"enhanced-general": "enhanced-general",
|
|
287
|
+
"enhanced-meeting": "enhanced-meeting",
|
|
288
|
+
"enhanced-phonecall": "enhanced-phonecall",
|
|
289
|
+
"enhanced-finance": "enhanced-finance",
|
|
290
|
+
// Base models
|
|
291
|
+
base: "base",
|
|
292
|
+
meeting: "meeting",
|
|
293
|
+
phonecall: "phonecall",
|
|
294
|
+
finance: "finance",
|
|
295
|
+
conversationalai: "conversationalai",
|
|
296
|
+
voicemail: "voicemail",
|
|
297
|
+
video: "video"
|
|
298
|
+
};
|
|
299
|
+
var AssemblyAIEncoding = {
|
|
300
|
+
/** PCM signed 16-bit little-endian (recommended) */
|
|
301
|
+
pcmS16le: "pcm_s16le",
|
|
302
|
+
/** μ-law (telephony) */
|
|
303
|
+
pcmMulaw: "pcm_mulaw"
|
|
304
|
+
};
|
|
305
|
+
var AssemblyAISpeechModel = {
|
|
306
|
+
/** Optimized for English */
|
|
307
|
+
english: "universal-streaming-english",
|
|
308
|
+
/** Supports 20+ languages */
|
|
309
|
+
multilingual: "universal-streaming-multilingual"
|
|
310
|
+
};
|
|
311
|
+
var AssemblyAISampleRate = {
|
|
312
|
+
rate8000: 8e3,
|
|
313
|
+
rate16000: 16e3,
|
|
314
|
+
rate22050: 22050,
|
|
315
|
+
rate44100: 44100,
|
|
316
|
+
rate48000: 48e3
|
|
317
|
+
};
|
|
318
|
+
export {
|
|
319
|
+
AssemblyAIEncoding,
|
|
320
|
+
AssemblyAISampleRate,
|
|
321
|
+
AssemblyAISpeechModel,
|
|
322
|
+
ListenV1EncodingParameter as DeepgramEncoding,
|
|
323
|
+
DeepgramModel,
|
|
324
|
+
ListenV1RedactParameterOneOfItem as DeepgramRedact,
|
|
325
|
+
SharedCustomTopicModeParameter as DeepgramTopicMode,
|
|
326
|
+
StreamingSupportedBitDepthEnum as GladiaBitDepth,
|
|
327
|
+
StreamingSupportedEncodingEnum as GladiaEncoding,
|
|
328
|
+
TranscriptionLanguageCodeEnum as GladiaLanguage,
|
|
329
|
+
StreamingSupportedModels as GladiaModel,
|
|
330
|
+
StreamingSupportedSampleRateEnum as GladiaSampleRate,
|
|
331
|
+
TranslationLanguageCodeEnum as GladiaTranslationLanguage
|
|
332
|
+
};
|
|
333
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/generated/deepgram/schema/listenV1EncodingParameter.ts","../src/generated/deepgram/schema/listenV1RedactParameterOneOfItem.ts","../src/generated/deepgram/schema/sharedCustomTopicModeParameter.ts","../src/generated/gladia/schema/streamingSupportedEncodingEnum.ts","../src/generated/gladia/schema/streamingSupportedSampleRateEnum.ts","../src/generated/gladia/schema/streamingSupportedBitDepthEnum.ts","../src/generated/gladia/schema/streamingSupportedModels.ts","../src/generated/gladia/schema/transcriptionLanguageCodeEnum.ts","../src/generated/gladia/schema/translationLanguageCodeEnum.ts","../src/constants.ts"],"sourcesContent":["/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Deepgram API Specification\n * APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.\n\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\n\n/**\n * ListenV1EncodingParameter type definition\n */\nexport type ListenV1EncodingParameter = typeof ListenV1EncodingParameter[keyof typeof ListenV1EncodingParameter];\n\nexport const ListenV1EncodingParameter = {\n linear16: \"linear16\",\n flac: \"flac\",\n mulaw: \"mulaw\",\n opus: \"opus\",\n speex: \"speex\",\n g729: \"g729\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Deepgram API Specification\n * APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.\n\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListenV1RedactParameterOneOfItem =\n (typeof ListenV1RedactParameterOneOfItem)[keyof typeof ListenV1RedactParameterOneOfItem]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListenV1RedactParameterOneOfItem = {\n pci: \"pci\",\n pii: \"pii\",\n numbers: \"numbers\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Deepgram API Specification\n * APIs for speech-to-text transcription, text-to-speech synthesis, language understanding, and account management.\n\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\n\n/**\n * SharedCustomTopicModeParameter type definition\n */\nexport type SharedCustomTopicModeParameter = typeof SharedCustomTopicModeParameter[keyof typeof SharedCustomTopicModeParameter];\n\nexport const SharedCustomTopicModeParameter = {\n extended: \"extended\",\n strict: \"strict\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * The encoding format of the audio stream. Supported formats: \n- PCM: 8, 16, 24, and 32 bits \n- A-law: 8 bits \n- μ-law: 8 bits \n\nNote: No need to add WAV headers to raw audio as the API supports both formats.\n */\nexport type StreamingSupportedEncodingEnum =\n (typeof StreamingSupportedEncodingEnum)[keyof typeof StreamingSupportedEncodingEnum]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const StreamingSupportedEncodingEnum = {\n \"wav/pcm\": \"wav/pcm\",\n \"wav/alaw\": \"wav/alaw\",\n \"wav/ulaw\": \"wav/ulaw\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * The sample rate of the audio stream\n */\nexport type StreamingSupportedSampleRateEnum =\n (typeof StreamingSupportedSampleRateEnum)[keyof typeof StreamingSupportedSampleRateEnum]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const StreamingSupportedSampleRateEnum = {\n NUMBER_8000: 8000,\n NUMBER_16000: 16000,\n NUMBER_32000: 32000,\n NUMBER_44100: 44100,\n NUMBER_48000: 48000\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * The bit depth of the audio stream\n */\nexport type StreamingSupportedBitDepthEnum =\n (typeof StreamingSupportedBitDepthEnum)[keyof typeof StreamingSupportedBitDepthEnum]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const StreamingSupportedBitDepthEnum = {\n NUMBER_8: 8,\n NUMBER_16: 16,\n NUMBER_24: 24,\n NUMBER_32: 32\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * The model used to process the audio. \"solaria-1\" is used by default.\n */\nexport type StreamingSupportedModels =\n (typeof StreamingSupportedModels)[keyof typeof StreamingSupportedModels]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const StreamingSupportedModels = {\n \"solaria-1\": \"solaria-1\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.\n */\nexport type TranscriptionLanguageCodeEnum =\n (typeof TranscriptionLanguageCodeEnum)[keyof typeof TranscriptionLanguageCodeEnum]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const TranscriptionLanguageCodeEnum = {\n af: \"af\",\n am: \"am\",\n ar: \"ar\",\n as: \"as\",\n az: \"az\",\n ba: \"ba\",\n be: \"be\",\n bg: \"bg\",\n bn: \"bn\",\n bo: \"bo\",\n br: \"br\",\n bs: \"bs\",\n ca: \"ca\",\n cs: \"cs\",\n cy: \"cy\",\n da: \"da\",\n de: \"de\",\n el: \"el\",\n en: \"en\",\n es: \"es\",\n et: \"et\",\n eu: \"eu\",\n fa: \"fa\",\n fi: \"fi\",\n fo: \"fo\",\n fr: \"fr\",\n gl: \"gl\",\n gu: \"gu\",\n ha: \"ha\",\n haw: \"haw\",\n he: \"he\",\n hi: \"hi\",\n hr: \"hr\",\n ht: \"ht\",\n hu: \"hu\",\n hy: \"hy\",\n id: \"id\",\n is: \"is\",\n it: \"it\",\n ja: \"ja\",\n jw: \"jw\",\n ka: \"ka\",\n kk: \"kk\",\n km: \"km\",\n kn: \"kn\",\n ko: \"ko\",\n la: \"la\",\n lb: \"lb\",\n ln: \"ln\",\n lo: \"lo\",\n lt: \"lt\",\n lv: \"lv\",\n mg: \"mg\",\n mi: \"mi\",\n mk: \"mk\",\n ml: \"ml\",\n mn: \"mn\",\n mr: \"mr\",\n ms: \"ms\",\n mt: \"mt\",\n my: \"my\",\n ne: \"ne\",\n nl: \"nl\",\n nn: \"nn\",\n no: \"no\",\n oc: \"oc\",\n pa: \"pa\",\n pl: \"pl\",\n ps: \"ps\",\n pt: \"pt\",\n ro: \"ro\",\n ru: \"ru\",\n sa: \"sa\",\n sd: \"sd\",\n si: \"si\",\n sk: \"sk\",\n sl: \"sl\",\n sn: \"sn\",\n so: \"so\",\n sq: \"sq\",\n sr: \"sr\",\n su: \"su\",\n sv: \"sv\",\n sw: \"sw\",\n ta: \"ta\",\n te: \"te\",\n tg: \"tg\",\n th: \"th\",\n tk: \"tk\",\n tl: \"tl\",\n tr: \"tr\",\n tt: \"tt\",\n uk: \"uk\",\n ur: \"ur\",\n uz: \"uz\",\n vi: \"vi\",\n yi: \"yi\",\n yo: \"yo\",\n zh: \"zh\"\n} as const\n","/**\n * Generated by orval v7.9.0 🍺\n * Do not edit manually.\n * Gladia Control API\n * OpenAPI spec version: 1.0\n */\n\n/**\n * Target language in `iso639-1` format you want the transcription translated to\n */\nexport type TranslationLanguageCodeEnum =\n (typeof TranslationLanguageCodeEnum)[keyof typeof TranslationLanguageCodeEnum]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const TranslationLanguageCodeEnum = {\n af: \"af\",\n am: \"am\",\n ar: \"ar\",\n as: \"as\",\n az: \"az\",\n ba: \"ba\",\n be: \"be\",\n bg: \"bg\",\n bn: \"bn\",\n bo: \"bo\",\n br: \"br\",\n bs: \"bs\",\n ca: \"ca\",\n cs: \"cs\",\n cy: \"cy\",\n da: \"da\",\n de: \"de\",\n el: \"el\",\n en: \"en\",\n es: \"es\",\n et: \"et\",\n eu: \"eu\",\n fa: \"fa\",\n fi: \"fi\",\n fo: \"fo\",\n fr: \"fr\",\n gl: \"gl\",\n gu: \"gu\",\n ha: \"ha\",\n haw: \"haw\",\n he: \"he\",\n hi: \"hi\",\n hr: \"hr\",\n ht: \"ht\",\n hu: \"hu\",\n hy: \"hy\",\n id: \"id\",\n is: \"is\",\n it: \"it\",\n ja: \"ja\",\n jw: \"jw\",\n ka: \"ka\",\n kk: \"kk\",\n km: \"km\",\n kn: \"kn\",\n ko: \"ko\",\n la: \"la\",\n lb: \"lb\",\n ln: \"ln\",\n lo: \"lo\",\n lt: \"lt\",\n lv: \"lv\",\n mg: \"mg\",\n mi: \"mi\",\n mk: \"mk\",\n ml: \"ml\",\n mn: \"mn\",\n mr: \"mr\",\n ms: \"ms\",\n mt: \"mt\",\n my: \"my\",\n ne: \"ne\",\n nl: \"nl\",\n nn: \"nn\",\n no: \"no\",\n oc: \"oc\",\n pa: \"pa\",\n pl: \"pl\",\n ps: \"ps\",\n pt: \"pt\",\n ro: \"ro\",\n ru: \"ru\",\n sa: \"sa\",\n sd: \"sd\",\n si: \"si\",\n sk: \"sk\",\n sl: \"sl\",\n sn: \"sn\",\n so: \"so\",\n sq: \"sq\",\n sr: \"sr\",\n su: \"su\",\n sv: \"sv\",\n sw: \"sw\",\n ta: \"ta\",\n te: \"te\",\n tg: \"tg\",\n th: \"th\",\n tk: \"tk\",\n tl: \"tl\",\n tr: \"tr\",\n tt: \"tt\",\n uk: \"uk\",\n ur: \"ur\",\n uz: \"uz\",\n vi: \"vi\",\n wo: \"wo\",\n yi: \"yi\",\n yo: \"yo\",\n zh: \"zh\"\n} as const\n","/**\n * Browser-safe constants for speech-to-text providers\n *\n * This module exports only plain const objects - no Node.js dependencies.\n * Safe to use in browsers, Cloudflare Workers, and other edge environments.\n *\n * @example\n * ```typescript\n * // Browser-safe import (no node:crypto or other Node.js deps)\n * import { DeepgramModel, GladiaEncoding } from 'voice-router-dev/constants'\n *\n * const model = DeepgramModel[\"nova-3\"]\n * const encoding = GladiaEncoding[\"wav/pcm\"]\n * ```\n *\n * @packageDocumentation\n */\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Deepgram Constants\n// ─────────────────────────────────────────────────────────────────────────────\n\nexport { ListenV1EncodingParameter as DeepgramEncoding } from \"./generated/deepgram/schema/listenV1EncodingParameter\"\nexport { ListenV1RedactParameterOneOfItem as DeepgramRedact } from \"./generated/deepgram/schema/listenV1RedactParameterOneOfItem\"\nexport { SharedCustomTopicModeParameter as DeepgramTopicMode } from \"./generated/deepgram/schema/sharedCustomTopicModeParameter\"\n\n/**\n * Deepgram transcription models\n *\n * @example\n * ```typescript\n * import { DeepgramModel } from 'voice-router-dev/constants'\n *\n * { model: DeepgramModel[\"nova-3\"] }\n * { model: DeepgramModel[\"nova-2-medical\"] }\n * ```\n */\nexport const DeepgramModel = {\n // Nova 3 models (latest)\n \"nova-3\": \"nova-3\",\n \"nova-3-general\": \"nova-3-general\",\n \"nova-3-medical\": \"nova-3-medical\",\n\n // Nova 2 models\n \"nova-2\": \"nova-2\",\n \"nova-2-general\": \"nova-2-general\",\n \"nova-2-meeting\": \"nova-2-meeting\",\n \"nova-2-finance\": \"nova-2-finance\",\n \"nova-2-conversationalai\": \"nova-2-conversationalai\",\n \"nova-2-voicemail\": \"nova-2-voicemail\",\n \"nova-2-video\": \"nova-2-video\",\n \"nova-2-medical\": \"nova-2-medical\",\n \"nova-2-drivethru\": \"nova-2-drivethru\",\n \"nova-2-automotive\": \"nova-2-automotive\",\n\n // Nova 1 models\n nova: \"nova\",\n \"nova-general\": \"nova-general\",\n \"nova-phonecall\": \"nova-phonecall\",\n \"nova-medical\": \"nova-medical\",\n\n // Enhanced models\n enhanced: \"enhanced\",\n \"enhanced-general\": \"enhanced-general\",\n \"enhanced-meeting\": \"enhanced-meeting\",\n \"enhanced-phonecall\": \"enhanced-phonecall\",\n \"enhanced-finance\": \"enhanced-finance\",\n\n // Base models\n base: \"base\",\n meeting: \"meeting\",\n phonecall: \"phonecall\",\n finance: \"finance\",\n conversationalai: \"conversationalai\",\n voicemail: \"voicemail\",\n video: \"video\"\n} as const satisfies Record<\n string,\n import(\"./generated/deepgram/schema/listenV1ModelParameter\").ListenV1ModelParameter\n>\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Gladia Constants\n// ─────────────────────────────────────────────────────────────────────────────\n\nexport { StreamingSupportedEncodingEnum as GladiaEncoding } from \"./generated/gladia/schema/streamingSupportedEncodingEnum\"\nexport { StreamingSupportedSampleRateEnum as GladiaSampleRate } from \"./generated/gladia/schema/streamingSupportedSampleRateEnum\"\nexport { StreamingSupportedBitDepthEnum as GladiaBitDepth } from \"./generated/gladia/schema/streamingSupportedBitDepthEnum\"\nexport { StreamingSupportedModels as GladiaModel } from \"./generated/gladia/schema/streamingSupportedModels\"\nexport { TranscriptionLanguageCodeEnum as GladiaLanguage } from \"./generated/gladia/schema/transcriptionLanguageCodeEnum\"\nexport { TranslationLanguageCodeEnum as GladiaTranslationLanguage } from \"./generated/gladia/schema/translationLanguageCodeEnum\"\n\n// ─────────────────────────────────────────────────────────────────────────────\n// AssemblyAI Constants\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * AssemblyAI audio encoding formats\n *\n * @example\n * ```typescript\n * import { AssemblyAIEncoding } from 'voice-router-dev/constants'\n *\n * { encoding: AssemblyAIEncoding.pcmS16le }\n * ```\n */\nexport const AssemblyAIEncoding = {\n /** PCM signed 16-bit little-endian (recommended) */\n pcmS16le: \"pcm_s16le\",\n /** μ-law (telephony) */\n pcmMulaw: \"pcm_mulaw\"\n} as const satisfies Record<string, import(\"./generated/assemblyai/streaming-types\").AudioEncoding>\n\n/**\n * AssemblyAI streaming speech models\n *\n * @example\n * ```typescript\n * import { AssemblyAISpeechModel } from 'voice-router-dev/constants'\n *\n * { speechModel: AssemblyAISpeechModel.multilingual }\n * ```\n */\nexport const AssemblyAISpeechModel = {\n /** Optimized for English */\n english: \"universal-streaming-english\",\n /** Supports 20+ languages */\n multilingual: \"universal-streaming-multilingual\"\n} as const satisfies Record<\n string,\n import(\"./generated/assemblyai/streaming-types\").StreamingSpeechModel\n>\n\n/**\n * AssemblyAI supported sample rates\n *\n * **Note:** This const is NOT type-checked against a generated type.\n * AssemblyAI's SDK accepts any `number` for sampleRate.\n * These values are from AssemblyAI documentation for convenience.\n *\n * @example\n * ```typescript\n * import { AssemblyAISampleRate } from 'voice-router-dev/constants'\n *\n * { sampleRate: AssemblyAISampleRate.rate16000 }\n * ```\n */\nexport const AssemblyAISampleRate = {\n rate8000: 8000,\n rate16000: 16000,\n rate22050: 22050,\n rate44100: 44100,\n rate48000: 48000\n} as const\n\n// ─────────────────────────────────────────────────────────────────────────────\n// Type exports\n// ─────────────────────────────────────────────────────────────────────────────\n\n/** Deepgram model type derived from const object */\nexport type DeepgramModelType = (typeof DeepgramModel)[keyof typeof DeepgramModel]\n\n/** Deepgram redaction type - re-exported from OpenAPI generated types */\nexport type { ListenV1RedactParameterOneOfItem as DeepgramRedactType } from \"./generated/deepgram/schema/listenV1RedactParameterOneOfItem\"\n\n/** Deepgram topic mode type - re-exported from OpenAPI generated types */\nexport type { SharedCustomTopicModeParameter as DeepgramTopicModeType } from \"./generated/deepgram/schema/sharedCustomTopicModeParameter\"\n\n/** AssemblyAI encoding type derived from const object */\nexport type AssemblyAIEncodingType = (typeof AssemblyAIEncoding)[keyof typeof AssemblyAIEncoding]\n\n/** AssemblyAI speech model type derived from const object */\nexport type AssemblyAISpeechModelType =\n (typeof AssemblyAISpeechModel)[keyof typeof AssemblyAISpeechModel]\n\n/** AssemblyAI sample rate type derived from const object */\nexport type AssemblyAISampleRateType =\n (typeof AssemblyAISampleRate)[keyof typeof AssemblyAISampleRate]\n"],"mappings":";;;AA0CO,IAAM,4BAA4B;AAAA,EACvC,UAAU;AAAA,E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