phonic 0.18.6 → 0.19.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.
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -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,27 @@ 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
|
+
from_phone_number?: string;
|
|
150
|
+
to_phone_number?: string;
|
|
151
|
+
};
|
|
152
|
+
type PhonicConfigurationEndpointResponsePayload = {
|
|
153
|
+
welcome_message?: string | null;
|
|
154
|
+
system_prompt?: string;
|
|
155
|
+
tools?: Array<PhonicTool>;
|
|
156
|
+
boosted_keywords?: string[];
|
|
157
|
+
};
|
|
137
158
|
|
|
138
159
|
type PhonicSTSTwilioOutboundCallParams = {
|
|
139
160
|
account_sid: string;
|
|
@@ -238,4 +259,4 @@ declare class Phonic {
|
|
|
238
259
|
}>;
|
|
239
260
|
}
|
|
240
261
|
|
|
241
|
-
export { Phonic, type PhonicSTSConfig, PhonicSTSWebSocket };
|
|
262
|
+
export { Phonic, type PhonicConfigurationEndpointRequestPayload, type PhonicConfigurationEndpointResponsePayload, type PhonicSTSConfig, PhonicSTSWebSocket };
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,27 @@ 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
|
+
from_phone_number?: string;
|
|
150
|
+
to_phone_number?: string;
|
|
151
|
+
};
|
|
152
|
+
type PhonicConfigurationEndpointResponsePayload = {
|
|
153
|
+
welcome_message?: string | null;
|
|
154
|
+
system_prompt?: string;
|
|
155
|
+
tools?: Array<PhonicTool>;
|
|
156
|
+
boosted_keywords?: string[];
|
|
157
|
+
};
|
|
137
158
|
|
|
138
159
|
type PhonicSTSTwilioOutboundCallParams = {
|
|
139
160
|
account_sid: string;
|
|
@@ -238,4 +259,4 @@ declare class Phonic {
|
|
|
238
259
|
}>;
|
|
239
260
|
}
|
|
240
261
|
|
|
241
|
-
export { Phonic, type PhonicSTSConfig, PhonicSTSWebSocket };
|
|
262
|
+
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.1",
|
|
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": {
|