@fonoster/apiserver 0.7.0 → 0.7.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.
@@ -24,16 +24,20 @@ const zod_1 = require("zod");
24
24
  const Deepgram_1 = require("../../voice/stt/Deepgram");
25
25
  const Google_1 = require("../../voice/stt/Google");
26
26
  const Azure_1 = require("../../voice/tts/Azure");
27
+ const Deepgram_2 = require("../../voice/tts/Deepgram");
27
28
  const Google_2 = require("../../voice/tts/Google");
28
29
  const hostOrHostPortSchema_1 = require("../hostOrHostPortSchema");
30
+ // TODO: We need a way to add this values dynamically
29
31
  const validators = {
30
32
  ttsConfigValidators: {
31
33
  "tts.google": Google_2.Google.getConfigValidationSchema,
32
- "tts.azure": Azure_1.Azure.getConfigValidationSchema
34
+ "tts.azure": Azure_1.Azure.getConfigValidationSchema,
35
+ "tts.deepgram": Deepgram_2.Deepgram.getConfigValidationSchema
33
36
  },
34
37
  ttsCredentialsValidators: {
35
38
  "tts.google": Google_2.Google.getCredentialsValidationSchema,
36
- "tts.azure": Azure_1.Azure.getCredentialsValidationSchema
39
+ "tts.azure": Azure_1.Azure.getCredentialsValidationSchema,
40
+ "tts.deepgram": Deepgram_2.Deepgram.getCredentialsValidationSchema
37
41
  },
38
42
  sttConfigValidators: {
39
43
  "stt.google": Google_1.Google.getConfigValidationSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/apiserver",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "APIServer for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -71,5 +71,5 @@
71
71
  "@types/uuid": "^9.0.8",
72
72
  "@types/validator": "^13.12.0"
73
73
  },
74
- "gitHead": "afa950ace3b1d022b6dc8be0c3b87a6b8a5ba3c5"
74
+ "gitHead": "06f57a4f909fdc3c81d895ae0b25747bc7ef6c91"
75
75
  }