@fonoster/apiserver 0.7.26 → 0.7.28

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.
@@ -33,8 +33,8 @@ const logger_1 = require("@fonoster/logger");
33
33
  const handlers_1 = require("./handlers");
34
34
  const Stream_1 = require("./handlers/Stream");
35
35
  const types_1 = require("./types");
36
- const makeGetChannelVarWithoutThrow_1 = require("./utils/makeGetChannelVarWithoutThrow");
37
36
  const utils_1 = require("../utils");
37
+ const makeGetChannelVarWithoutThrow_1 = require("./utils/makeGetChannelVarWithoutThrow");
38
38
  const logger = (0, logger_1.getLogger)({ service: "apiserver", filePath: __filename });
39
39
  class VoiceDispatcher {
40
40
  constructor(ari, nc, createVoiceClient) {
@@ -29,7 +29,6 @@ exports.gatherHandler = gatherHandler;
29
29
  * limitations under the License.
30
30
  */
31
31
  const common_1 = require("@fonoster/common");
32
- const messages_1 = require("@fonoster/common/src/messages");
33
32
  const zod_1 = require("zod");
34
33
  const getTimeoutPromise_1 = require("./getTimeoutPromise");
35
34
  const utils_1 = require("../utils");
@@ -41,16 +40,16 @@ const gatherRequestSchema = zod_1.z.object({
41
40
  maxDigits: zod_1.z
42
41
  .number()
43
42
  .int({
44
- message: messages_1.POSITIVE_INTEGER_MESSAGE
43
+ message: common_1.POSITIVE_INTEGER_MESSAGE
45
44
  })
46
45
  .positive({
47
- message: messages_1.POSITIVE_INTEGER_MESSAGE
46
+ message: common_1.POSITIVE_INTEGER_MESSAGE
48
47
  })
49
48
  .optional(),
50
49
  finishOnKey: zod_1.z
51
50
  .string()
52
51
  .regex(/^[0-9*#]$/)
53
- .max(1, { message: messages_1.MUST_BE_A_SINGLE_CHARACTER })
52
+ .max(1, { message: common_1.MUST_BE_A_SINGLE_CHARACTER })
54
53
  .optional()
55
54
  });
56
55
  function gatherHandler(voiceClient) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/apiserver",
3
- "version": "0.7.26",
3
+ "version": "0.7.28",
4
4
  "description": "APIServer for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@deepgram/sdk": "^3.5.1",
24
- "@fonoster/common": "^0.7.26",
25
- "@fonoster/identity": "^0.7.26",
24
+ "@fonoster/common": "^0.7.28",
25
+ "@fonoster/identity": "^0.7.28",
26
26
  "@fonoster/logger": "^0.7.26",
27
- "@fonoster/sipnet": "^0.7.26",
27
+ "@fonoster/sipnet": "^0.7.28",
28
28
  "@fonoster/streams": "^0.7.26",
29
29
  "@fonoster/types": "^0.7.26",
30
30
  "@google-cloud/speech": "^6.6.0",
@@ -72,5 +72,5 @@
72
72
  "@types/uuid": "^9.0.8",
73
73
  "@types/validator": "^13.12.0"
74
74
  },
75
- "gitHead": "248493c67d8ef2ba66d3d0426cffc0f3dd49dbeb"
75
+ "gitHead": "274bd90431185741b718ff06b44961ea1ca081da"
76
76
  }