phonic 0.18.6 → 0.19.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 +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -134,6 +134,25 @@ type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "outpu
|
|
|
134
134
|
type OutboundCallSuccessResponse = {
|
|
135
135
|
success: true;
|
|
136
136
|
};
|
|
137
|
+
type PhonicTool = "send_dtmf_tone" | "end_conversation";
|
|
138
|
+
type PhonicConfigurationEndpointRequestPayload = {
|
|
139
|
+
project: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
agent: {
|
|
143
|
+
name: string;
|
|
144
|
+
welcome_message: string;
|
|
145
|
+
system_prompt: string;
|
|
146
|
+
tools: Array<PhonicTool>;
|
|
147
|
+
boosted_keywords: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
type PhonicConfigurationEndpointResponsePayload = {
|
|
151
|
+
welcome_message?: string | null;
|
|
152
|
+
system_prompt?: string;
|
|
153
|
+
tools?: Array<PhonicTool>;
|
|
154
|
+
boosted_keywords?: string[];
|
|
155
|
+
};
|
|
137
156
|
|
|
138
157
|
type PhonicSTSTwilioOutboundCallParams = {
|
|
139
158
|
account_sid: string;
|
|
@@ -238,4 +257,4 @@ declare class Phonic {
|
|
|
238
257
|
}>;
|
|
239
258
|
}
|
|
240
259
|
|
|
241
|
-
export { Phonic, type PhonicSTSConfig, PhonicSTSWebSocket };
|
|
260
|
+
export { Phonic, type PhonicConfigurationEndpointRequestPayload, type PhonicConfigurationEndpointResponsePayload, type PhonicSTSConfig, PhonicSTSWebSocket };
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,25 @@ type PhonicSTSOutboundCallConfig = Omit<PhonicSTSConfig, "input_format" | "outpu
|
|
|
134
134
|
type OutboundCallSuccessResponse = {
|
|
135
135
|
success: true;
|
|
136
136
|
};
|
|
137
|
+
type PhonicTool = "send_dtmf_tone" | "end_conversation";
|
|
138
|
+
type PhonicConfigurationEndpointRequestPayload = {
|
|
139
|
+
project: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
agent: {
|
|
143
|
+
name: string;
|
|
144
|
+
welcome_message: string;
|
|
145
|
+
system_prompt: string;
|
|
146
|
+
tools: Array<PhonicTool>;
|
|
147
|
+
boosted_keywords: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
type PhonicConfigurationEndpointResponsePayload = {
|
|
151
|
+
welcome_message?: string | null;
|
|
152
|
+
system_prompt?: string;
|
|
153
|
+
tools?: Array<PhonicTool>;
|
|
154
|
+
boosted_keywords?: string[];
|
|
155
|
+
};
|
|
137
156
|
|
|
138
157
|
type PhonicSTSTwilioOutboundCallParams = {
|
|
139
158
|
account_sid: string;
|
|
@@ -238,4 +257,4 @@ declare class Phonic {
|
|
|
238
257
|
}>;
|
|
239
258
|
}
|
|
240
259
|
|
|
241
|
-
export { Phonic, type PhonicSTSConfig, PhonicSTSWebSocket };
|
|
260
|
+
export { Phonic, type PhonicConfigurationEndpointRequestPayload, type PhonicConfigurationEndpointResponsePayload, type PhonicSTSConfig, PhonicSTSWebSocket };
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phonic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Phonic Node.js SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@biomejs/biome": "1.9.4",
|
|
40
40
|
"@changesets/changelog-github": "0.5.1",
|
|
41
|
-
"@changesets/cli": "2.29.
|
|
42
|
-
"@types/bun": "1.2.
|
|
41
|
+
"@changesets/cli": "2.29.4",
|
|
42
|
+
"@types/bun": "1.2.16",
|
|
43
43
|
"@types/ws": "8.18.1",
|
|
44
|
-
"tsup": "8.
|
|
44
|
+
"tsup": "8.5.0",
|
|
45
45
|
"typescript": "5.8.3",
|
|
46
|
-
"zod": "3.
|
|
46
|
+
"zod": "3.25.63"
|
|
47
47
|
},
|
|
48
48
|
"files": ["dist/**"],
|
|
49
49
|
"author": {
|