voice-router-dev 0.9.4 → 0.9.6

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.
@@ -1,6 +1,7 @@
1
- import { hr as TranscriptionStatus, ho as Speaker, hp as Word, hq as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bt as Transcript, dw as ListenV1Response, eY as RetrieveTranscriptResponse, g8 as SpeechToTextChunkResponseModel, fy as Transcription } from './speechToTextChunkResponseModel-KayxDiZ7.mjs';
2
- import { T as TranscriptionProvider } from './provider-metadata-BJ29OPW1.mjs';
1
+ import { hF as TranscriptionStatus, hC as Speaker, hD as Word, hE as Utterance, X as CallbackTranscriptionSuccessPayload, O as CallbackTranscriptionErrorPayload, bu as Transcript, dF as ListenV1Response, f6 as RetrieveTranscriptResponse, gl as SpeechToTextChunkResponseModel, fL as Transcription } from './speechToTextChunkResponseModel-SgJKP7kZ.mjs';
2
+ import { T as TranscriptionProvider } from './provider-metadata-J8URl-3i.mjs';
3
3
  import './constants.mjs';
4
+ import '@soniox/node';
4
5
 
5
6
  /**
6
7
  * Base webhook handler interface
@@ -1,6 +1,7 @@
1
- import { hr as TranscriptionStatus, ho as Speaker, hp as Word, hq as Utterance, V as CallbackTranscriptionSuccessPayload, K as CallbackTranscriptionErrorPayload, bt as Transcript, dw as ListenV1Response, eY as RetrieveTranscriptResponse, g8 as SpeechToTextChunkResponseModel, fy as Transcription } from './speechToTextChunkResponseModel-BY2lGyZ3.js';
2
- import { T as TranscriptionProvider } from './provider-metadata-D1d-9cng.js';
1
+ import { hF as TranscriptionStatus, hC as Speaker, hD as Word, hE as Utterance, X as CallbackTranscriptionSuccessPayload, O as CallbackTranscriptionErrorPayload, bu as Transcript, dF as ListenV1Response, f6 as RetrieveTranscriptResponse, gl as SpeechToTextChunkResponseModel, fL as Transcription } from './speechToTextChunkResponseModel-DhC5T0u1.js';
2
+ import { T as TranscriptionProvider } from './provider-metadata-B5SFlFb0.js';
3
3
  import './constants.js';
4
+ import '@soniox/node';
4
5
 
5
6
  /**
6
7
  * Base webhook handler interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voice-router-dev",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "description": "Universal speech-to-text router for Gladia, AssemblyAI, Deepgram, Azure, OpenAI Whisper, Speechmatics, Soniox, and ElevenLabs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -128,6 +128,7 @@
128
128
  "vitest": "^2.1.8"
129
129
  },
130
130
  "dependencies": {
131
+ "@soniox/node": "2.0.2",
131
132
  "axios": "1.14.0",
132
133
  "ws": "^8.18.3",
133
134
  "zod": "3.24.2"
@@ -150,6 +151,8 @@
150
151
  "test:unit": "vitest run test/unit/",
151
152
  "test:integration": "vitest run test/integration/",
152
153
  "test:error-handling": "vitest run test/error-handling.test.ts",
154
+ "providers:check-updates": "node scripts/check-provider-updates.js",
155
+ "providers:check-updates:write": "node scripts/check-provider-updates.js --write",
153
156
  "openapi:sync": "echo '🔄 Syncing OpenAPI specs from remote sources...' && node scripts/sync-specs.js",
154
157
  "openapi:sync:gladia": "node scripts/sync-specs.js --provider gladia",
155
158
  "openapi:sync:assemblyai": "node scripts/sync-specs.js --provider assemblyai",
@@ -158,6 +161,8 @@
158
161
  "openapi:sync:soniox": "node scripts/sync-specs.js --provider soniox",
159
162
  "openapi:sync:elevenlabs": "node scripts/sync-specs.js --provider elevenlabs",
160
163
  "openapi:validate": "node scripts/sync-specs.js --validate-only",
164
+ "openapi:record-consumed": "node scripts/record-consumed-specs.js",
165
+ "openapi:check-consumed": "node scripts/record-consumed-specs.js --check",
161
166
  "openapi:fix-specs": "node scripts/fix-openai-spec.js && node scripts/fix-speechmatics-spec.js && node scripts/fix-deepgram-spec.js && node scripts/fix-elevenlabs-spec.js && node scripts/fix-assemblyai-spec.js",
162
167
  "openapi:fix": "node scripts/fix-generated.js && sed -i \"s/'\\([a-z_]*\\)\\.'\\([a-z_]*\\)'/'\\1.\\2'/g\" src/generated/speechmatics/api/speechmaticsASRRESTAPI.zod.ts 2>/dev/null || true",
163
168
  "openapi:clean": "rm -rf src/generated",
@@ -181,13 +186,13 @@
181
186
  "openapi:sync-azure-locales": "node scripts/generate-azure-locales.js",
182
187
  "openapi:sync-elevenlabs-languages": "node scripts/generate-elevenlabs-languages.js",
183
188
  "openapi:sync-elevenlabs-models": "node scripts/generate-elevenlabs-models.js",
184
- "openapi:generate": "pnpm openapi:fix-specs && pnpm openapi:clean && orval && pnpm openapi:sync-assemblyai-streaming && pnpm openapi:sync-deepgram-streaming && pnpm openapi:sync-deepgram-languages && pnpm openapi:sync-deepgram-models && pnpm openapi:sync-speechmatics-streaming && pnpm openapi:sync-speechmatics-languages && pnpm openapi:sync-soniox-streaming && pnpm openapi:sync-soniox-languages && pnpm openapi:sync-soniox-models && pnpm openapi:sync-openai-models && pnpm openapi:sync-azure-locales && pnpm openapi:sync-elevenlabs-languages && pnpm openapi:sync-elevenlabs-models && pnpm openapi:fix",
189
+ "openapi:generate": "pnpm openapi:fix-specs && pnpm openapi:record-consumed && pnpm openapi:clean && orval && pnpm openapi:sync-assemblyai-streaming && pnpm openapi:sync-deepgram-streaming && pnpm openapi:sync-deepgram-languages && pnpm openapi:sync-deepgram-models && pnpm openapi:sync-speechmatics-streaming && pnpm openapi:sync-speechmatics-languages && pnpm openapi:sync-soniox-languages && pnpm openapi:sync-soniox-models && pnpm openapi:sync-soniox-streaming && pnpm openapi:sync-openai-models && pnpm openapi:sync-azure-locales && pnpm openapi:sync-elevenlabs-languages && pnpm openapi:sync-elevenlabs-models && pnpm openapi:fix",
185
190
  "openapi:generate:gladia": "pnpm openapi:clean:gladia && orval --config orval.config.ts --project gladiaApi && orval --config orval.config.ts --project gladiaZod && pnpm openapi:fix",
186
191
  "openapi:generate:assemblyai": "node scripts/fix-assemblyai-spec.js && pnpm openapi:clean:assemblyai && orval --config orval.config.ts --project assemblyaiApi && orval --config orval.config.ts --project assemblyaiZod && pnpm openapi:sync-assemblyai-streaming && pnpm openapi:fix",
187
192
  "openapi:generate:deepgram": "pnpm openapi:clean:deepgram && orval --config orval.config.ts --project deepgramApi && orval --config orval.config.ts --project deepgramZod && pnpm openapi:sync-deepgram-streaming && pnpm openapi:sync-deepgram-languages && pnpm openapi:sync-deepgram-models && pnpm openapi:fix",
188
193
  "openapi:generate:speechmatics": "node scripts/fix-speechmatics-spec.js && orval --config orval.config.ts --project speechmaticsApi && orval --config orval.config.ts --project speechmaticsZod && pnpm openapi:sync-speechmatics-streaming && pnpm openapi:sync-speechmatics-languages && pnpm openapi:fix",
189
194
  "openapi:generate:speechmatics-streaming": "pnpm openapi:sync-speechmatics-streaming",
190
- "openapi:generate:soniox": "pnpm openapi:clean:soniox && orval --config orval.config.ts --project sonioxApi && orval --config orval.config.ts --project sonioxZod && pnpm openapi:sync-soniox-streaming && pnpm openapi:sync-soniox-languages && pnpm openapi:sync-soniox-models && pnpm openapi:fix",
195
+ "openapi:generate:soniox": "pnpm openapi:clean:soniox && orval --config orval.config.ts --project sonioxApi && orval --config orval.config.ts --project sonioxZod && pnpm openapi:sync-soniox-languages && pnpm openapi:sync-soniox-models && pnpm openapi:sync-soniox-streaming && pnpm openapi:fix",
191
196
  "openapi:generate:soniox-streaming": "pnpm openapi:sync-soniox-streaming",
192
197
  "openapi:generate:elevenlabs": "node scripts/fix-elevenlabs-spec.js && pnpm openapi:clean:elevenlabs && orval --config orval.config.ts --project elevenlabsApi && orval --config orval.config.ts --project elevenlabsZod && pnpm openapi:sync-elevenlabs-languages && pnpm openapi:sync-elevenlabs-models && pnpm openapi:fix",
193
198
  "openapi:generate-field-metadata": "node scripts/generate-field-metadata.js",