phonic 0.19.1 → 0.20.0
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/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -80,9 +80,8 @@ declare class Conversations {
|
|
|
80
80
|
}): DataOrError<ConversationsSuccessResponse>;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
type PhonicSTSTool = "
|
|
84
|
-
|
|
85
|
-
project: string;
|
|
83
|
+
type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
84
|
+
interface PhonicSTSConfigBase {
|
|
86
85
|
input_format: "pcm_44100" | "mulaw_8000";
|
|
87
86
|
system_prompt?: string;
|
|
88
87
|
welcome_message?: string;
|
|
@@ -95,7 +94,14 @@ type PhonicSTSConfig = {
|
|
|
95
94
|
vad_min_speech_duration_ms?: number;
|
|
96
95
|
vad_min_silence_duration_ms?: number;
|
|
97
96
|
vad_threshold?: number;
|
|
98
|
-
}
|
|
97
|
+
}
|
|
98
|
+
interface PhonicSTSConfigWithAgent extends PhonicSTSConfigBase {
|
|
99
|
+
agent: string;
|
|
100
|
+
}
|
|
101
|
+
interface PhonicSTSConfigWithProject extends PhonicSTSConfigBase {
|
|
102
|
+
project: string;
|
|
103
|
+
}
|
|
104
|
+
type PhonicSTSConfig = PhonicSTSConfigWithAgent | PhonicSTSConfigWithProject;
|
|
99
105
|
type PhonicSTSWebSocketResponseMessage = {
|
|
100
106
|
type: "ready_to_start_conversation";
|
|
101
107
|
} | {
|
package/dist/index.d.ts
CHANGED
|
@@ -80,9 +80,8 @@ declare class Conversations {
|
|
|
80
80
|
}): DataOrError<ConversationsSuccessResponse>;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
type PhonicSTSTool = "
|
|
84
|
-
|
|
85
|
-
project: string;
|
|
83
|
+
type PhonicSTSTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
84
|
+
interface PhonicSTSConfigBase {
|
|
86
85
|
input_format: "pcm_44100" | "mulaw_8000";
|
|
87
86
|
system_prompt?: string;
|
|
88
87
|
welcome_message?: string;
|
|
@@ -95,7 +94,14 @@ type PhonicSTSConfig = {
|
|
|
95
94
|
vad_min_speech_duration_ms?: number;
|
|
96
95
|
vad_min_silence_duration_ms?: number;
|
|
97
96
|
vad_threshold?: number;
|
|
98
|
-
}
|
|
97
|
+
}
|
|
98
|
+
interface PhonicSTSConfigWithAgent extends PhonicSTSConfigBase {
|
|
99
|
+
agent: string;
|
|
100
|
+
}
|
|
101
|
+
interface PhonicSTSConfigWithProject extends PhonicSTSConfigBase {
|
|
102
|
+
project: string;
|
|
103
|
+
}
|
|
104
|
+
type PhonicSTSConfig = PhonicSTSConfigWithAgent | PhonicSTSConfigWithProject;
|
|
99
105
|
type PhonicSTSWebSocketResponseMessage = {
|
|
100
106
|
type: "ready_to_start_conversation";
|
|
101
107
|
} | {
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED