@fonoster/common 0.12.0 → 0.12.2

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.
@@ -52,6 +52,7 @@ declare const assistantSchema: z.ZodObject<{
52
52
  timeout?: number;
53
53
  maxTimeoutCount?: number;
54
54
  }>;
55
+ allowUserBargeIn: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55
56
  vad: z.ZodDefault<z.ZodObject<{
56
57
  pathToModel: z.ZodOptional<z.ZodString>;
57
58
  activationThreshold: z.ZodNumber;
@@ -86,6 +87,7 @@ declare const assistantSchema: z.ZodObject<{
86
87
  timeout?: number;
87
88
  maxTimeoutCount?: number;
88
89
  };
90
+ allowUserBargeIn?: boolean;
89
91
  vad?: {
90
92
  pathToModel?: string;
91
93
  activationThreshold?: number;
@@ -110,6 +112,7 @@ declare const assistantSchema: z.ZodObject<{
110
112
  timeout?: number;
111
113
  maxTimeoutCount?: number;
112
114
  };
115
+ allowUserBargeIn?: boolean;
113
116
  vad?: {
114
117
  pathToModel?: string;
115
118
  activationThreshold?: number;
@@ -541,6 +544,7 @@ declare const assistantSchema: z.ZodObject<{
541
544
  timeout?: number;
542
545
  maxTimeoutCount?: number;
543
546
  };
547
+ allowUserBargeIn?: boolean;
544
548
  vad?: {
545
549
  pathToModel?: string;
546
550
  activationThreshold?: number;
@@ -636,6 +640,7 @@ declare const assistantSchema: z.ZodObject<{
636
640
  timeout?: number;
637
641
  maxTimeoutCount?: number;
638
642
  };
643
+ allowUserBargeIn?: boolean;
639
644
  vad?: {
640
645
  pathToModel?: string;
641
646
  activationThreshold?: number;
@@ -51,6 +51,7 @@ declare const conversationSettingsSchema: z.ZodObject<{
51
51
  timeout?: number;
52
52
  maxTimeoutCount?: number;
53
53
  }>;
54
+ allowUserBargeIn: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
55
  vad: z.ZodDefault<z.ZodObject<{
55
56
  pathToModel: z.ZodOptional<z.ZodString>;
56
57
  activationThreshold: z.ZodNumber;
@@ -85,6 +86,7 @@ declare const conversationSettingsSchema: z.ZodObject<{
85
86
  timeout?: number;
86
87
  maxTimeoutCount?: number;
87
88
  };
89
+ allowUserBargeIn?: boolean;
88
90
  vad?: {
89
91
  pathToModel?: string;
90
92
  activationThreshold?: number;
@@ -109,6 +111,7 @@ declare const conversationSettingsSchema: z.ZodObject<{
109
111
  timeout?: number;
110
112
  maxTimeoutCount?: number;
111
113
  };
114
+ allowUserBargeIn?: boolean;
112
115
  vad?: {
113
116
  pathToModel?: string;
114
117
  activationThreshold?: number;
@@ -57,7 +57,7 @@ const Messages = __importStar(require("../messages"));
57
57
  const ZERO_OR_GREATER_THAN_ZERO = "Must be a number greater than or equal to 0";
58
58
  const NUMBER_BETWEEN_0_AND_1 = "Must be a number between 0 and 1";
59
59
  const MAX_SPEECH_WAIT_TIMEOUT = 0;
60
- const IDLE_OPTIONS_TIMEOUT = 10000;
60
+ const IDLE_OPTIONS_TIMEOUT = 30000;
61
61
  const IDLE_OPTIONS_MAX_TIMEOUT_COUNT = 2;
62
62
  const VAD_ACTIVATION_THRESHOLD = 0.4;
63
63
  const VAD_DEACTIVATION_THRESHOLD = 0.25;
@@ -105,6 +105,7 @@ const conversationSettingsSchema = zod_1.z.object({
105
105
  .positive({ message: Messages.POSITIVE_INTEGER_MESSAGE })
106
106
  .default(IDLE_OPTIONS_MAX_TIMEOUT_COUNT)
107
107
  }),
108
+ allowUserBargeIn: zod_1.z.boolean().optional().default(true),
108
109
  vad: zod_1.z
109
110
  .object({
110
111
  pathToModel: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/common",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Common library for Fonoster projects",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -18,7 +18,7 @@
18
18
  "clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
19
19
  },
20
20
  "dependencies": {
21
- "@fonoster/logger": "^0.12.0",
21
+ "@fonoster/logger": "^0.12.2",
22
22
  "@grpc/grpc-js": "~1.10.6",
23
23
  "@grpc/proto-loader": "^0.7.12",
24
24
  "@influxdata/influxdb-client": "^1.35.0",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@types/nodemailer": "^6.4.14"
51
51
  },
52
- "gitHead": "2e16d6884bd7b847e76363c80990084b67be64d7"
52
+ "gitHead": "7f6504faf9edb384893c8f8d9ae0c4d28d082a68"
53
53
  }