phonic 0.18.5 → 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/README.md CHANGED
@@ -114,7 +114,7 @@ const { data, error } = await phonic.sts.outboundCall("+19189396241", {
114
114
 
115
115
  ### STS outbound call using own Twilio account
116
116
 
117
- In Twilio, create a restricted API key with the following permission: voice -> calls -> create
117
+ In Twilio, create a restricted API key with the following permissions: `voice -> calls -> read` and `voice -> calls -> create`.
118
118
 
119
119
  ```ts
120
120
  const { data, error } = await phonic.sts.twilio.outboundCall(
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
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // package.json
38
- var version = "0.18.5";
38
+ var version = "0.19.0";
39
39
 
40
40
  // src/conversations/index.ts
41
41
  var Conversations = class {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.18.5";
2
+ var version = "0.19.0";
3
3
 
4
4
  // src/conversations/index.ts
5
5
  var Conversations = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.18.5",
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.2",
42
- "@types/bun": "1.2.12",
41
+ "@changesets/cli": "2.29.4",
42
+ "@types/bun": "1.2.16",
43
43
  "@types/ws": "8.18.1",
44
- "tsup": "8.4.0",
44
+ "tsup": "8.5.0",
45
45
  "typescript": "5.8.3",
46
- "zod": "3.24.4"
46
+ "zod": "3.25.63"
47
47
  },
48
48
  "files": ["dist/**"],
49
49
  "author": {