phonic 0.30.26 → 0.30.27

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.
@@ -51,8 +51,8 @@ class PhonicClient {
51
51
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "phonic",
54
- "X-Fern-SDK-Version": "0.30.26",
55
- "User-Agent": "phonic/0.30.26",
54
+ "X-Fern-SDK-Version": "0.30.27",
55
+ "User-Agent": "phonic/0.30.27",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -135,6 +135,7 @@ export declare class Tools {
135
135
  * execution_mode: "sync",
136
136
  * phone_number: "+15551234567",
137
137
  * dtmf: "1234",
138
+ * use_agent_phone_number: true,
138
139
  * detect_voicemail: false,
139
140
  * require_speech_before_tool_call: false
140
141
  * })
@@ -223,6 +223,7 @@ class Tools {
223
223
  * execution_mode: "sync",
224
224
  * phone_number: "+15551234567",
225
225
  * dtmf: "1234",
226
+ * use_agent_phone_number: true,
226
227
  * detect_voicemail: false,
227
228
  * require_speech_before_tool_call: false
228
229
  * })
@@ -83,6 +83,7 @@ import * as Phonic from "../../../../index.js";
83
83
  * execution_mode: "sync",
84
84
  * phone_number: "+15551234567",
85
85
  * dtmf: "1234",
86
+ * use_agent_phone_number: true,
86
87
  * detect_voicemail: false,
87
88
  * require_speech_before_tool_call: false
88
89
  * }
@@ -130,7 +131,9 @@ export interface CreateToolRequest {
130
131
  phone_number?: string;
131
132
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
132
133
  dtmf?: string | null;
133
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
134
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
135
+ use_agent_phone_number?: boolean;
136
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
134
137
  detect_voicemail?: boolean;
135
138
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. All agents must exist in the same project as the tool. */
136
139
  agents_to_transfer_to?: string[];
@@ -41,7 +41,9 @@ export interface UpdateToolRequest {
41
41
  phone_number?: string;
42
42
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Can be set to null to remove DTMF. */
43
43
  dtmf?: string | null;
44
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
44
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
45
+ use_agent_phone_number?: boolean;
46
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
45
47
  detect_voicemail?: boolean;
46
48
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
47
49
  agents_to_transfer_to?: string[];
@@ -30,7 +30,9 @@ export interface Tool {
30
30
  phone_number?: string;
31
31
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
32
32
  dtmf?: string | null;
33
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
33
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
34
+ use_agent_phone_number?: boolean;
35
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
34
36
  detect_voicemail?: boolean;
35
37
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
36
38
  agents_to_transfer_to?: string[];
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.30.26";
1
+ export declare const SDK_VERSION = "0.30.27";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.30.26";
4
+ exports.SDK_VERSION = "0.30.27";
@@ -15,8 +15,8 @@ export class PhonicClient {
15
15
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
16
16
  "X-Fern-Language": "JavaScript",
17
17
  "X-Fern-SDK-Name": "phonic",
18
- "X-Fern-SDK-Version": "0.30.26",
19
- "User-Agent": "phonic/0.30.26",
18
+ "X-Fern-SDK-Version": "0.30.27",
19
+ "User-Agent": "phonic/0.30.27",
20
20
  "X-Fern-Runtime": core.RUNTIME.type,
21
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -135,6 +135,7 @@ export declare class Tools {
135
135
  * execution_mode: "sync",
136
136
  * phone_number: "+15551234567",
137
137
  * dtmf: "1234",
138
+ * use_agent_phone_number: true,
138
139
  * detect_voicemail: false,
139
140
  * require_speech_before_tool_call: false
140
141
  * })
@@ -187,6 +187,7 @@ export class Tools {
187
187
  * execution_mode: "sync",
188
188
  * phone_number: "+15551234567",
189
189
  * dtmf: "1234",
190
+ * use_agent_phone_number: true,
190
191
  * detect_voicemail: false,
191
192
  * require_speech_before_tool_call: false
192
193
  * })
@@ -83,6 +83,7 @@ import * as Phonic from "../../../../index.mjs";
83
83
  * execution_mode: "sync",
84
84
  * phone_number: "+15551234567",
85
85
  * dtmf: "1234",
86
+ * use_agent_phone_number: true,
86
87
  * detect_voicemail: false,
87
88
  * require_speech_before_tool_call: false
88
89
  * }
@@ -130,7 +131,9 @@ export interface CreateToolRequest {
130
131
  phone_number?: string;
131
132
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
132
133
  dtmf?: string | null;
133
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
134
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
135
+ use_agent_phone_number?: boolean;
136
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
134
137
  detect_voicemail?: boolean;
135
138
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. All agents must exist in the same project as the tool. */
136
139
  agents_to_transfer_to?: string[];
@@ -41,7 +41,9 @@ export interface UpdateToolRequest {
41
41
  phone_number?: string;
42
42
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Can be set to null to remove DTMF. */
43
43
  dtmf?: string | null;
44
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
44
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
45
+ use_agent_phone_number?: boolean;
46
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
45
47
  detect_voicemail?: boolean;
46
48
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
47
49
  agents_to_transfer_to?: string[];
@@ -30,7 +30,9 @@ export interface Tool {
30
30
  phone_number?: string;
31
31
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
32
32
  dtmf?: string | null;
33
- /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools. */
33
+ /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
34
+ use_agent_phone_number?: boolean;
35
+ /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
34
36
  detect_voicemail?: boolean;
35
37
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
36
38
  agents_to_transfer_to?: string[];
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.30.26";
1
+ export declare const SDK_VERSION = "0.30.27";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.30.26";
1
+ export const SDK_VERSION = "0.30.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.30.26",
3
+ "version": "0.30.27",
4
4
  "private": false,
5
5
  "repository": "github:Phonic-Co/phonic-node",
6
6
  "type": "commonjs",