phonic 0.32.19 → 0.32.20
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.ts +2 -0
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +3 -1
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +3 -1
- package/dist/cjs/api/types/Tool.d.ts +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +3 -1
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +3 -1
- package/dist/esm/api/types/Tool.d.mts +3 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phonic",
|
|
46
|
-
"X-Fern-SDK-Version": "0.32.
|
|
47
|
-
"User-Agent": "phonic/0.32.
|
|
46
|
+
"X-Fern-SDK-Version": "0.32.20",
|
|
47
|
+
"User-Agent": "phonic/0.32.20",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -18,6 +18,8 @@ export interface ConversationsSipOutboundCallRequest {
|
|
|
18
18
|
from_phone_number: string;
|
|
19
19
|
/** Destination phone number in E.164 format. */
|
|
20
20
|
to_phone_number: string;
|
|
21
|
+
/** Display name for the caller ID (the SIP `From` header) on this call. Sent only when non-empty. Whether it reaches the callee depends on your SIP carrier - carriers that forward the `From` display name (e.g. Telnyx) present it, while others (e.g. Twilio) drop it or override it with a CNAM lookup. */
|
|
22
|
+
from_display_name?: string;
|
|
21
23
|
config?: Phonic.OutboundCallConfig;
|
|
22
24
|
/** If true, validates the outbound call setup without placing a call. Returns HTTP 200 with `conversation_id` and `twilio_call_sid` set to null. */
|
|
23
25
|
dry_run?: boolean;
|
|
@@ -211,6 +211,8 @@ export interface CreateToolRequest {
|
|
|
211
211
|
use_agent_phone_number?: boolean;
|
|
212
212
|
/** 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. */
|
|
213
213
|
detect_voicemail?: boolean;
|
|
214
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires use_agent_phone_number and detect_voicemail to be false, dtmf to be null and dynamic_dtmf to be false. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
|
|
215
|
+
keep_listening?: boolean;
|
|
214
216
|
/** 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. */
|
|
215
217
|
agents_to_transfer_to?: string[];
|
|
216
218
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -227,7 +229,7 @@ export interface CreateToolRequest {
|
|
|
227
229
|
forbid_tool_call_after_speech?: boolean;
|
|
228
230
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
229
231
|
allow_tool_chaining?: boolean;
|
|
230
|
-
/** The agent doesn't typically wait for the response of async
|
|
232
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only available for async custom_webhook and custom_websocket tools, and cannot be combined with allow_tool_chaining set to true. */
|
|
231
233
|
wait_for_response?: boolean;
|
|
232
234
|
/** The static context returned to the agent. Required for custom_context tools. */
|
|
233
235
|
context?: string;
|
|
@@ -51,6 +51,8 @@ export interface UpdateToolRequest {
|
|
|
51
51
|
use_agent_phone_number?: boolean;
|
|
52
52
|
/** 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. */
|
|
53
53
|
detect_voicemail?: boolean;
|
|
54
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires the resulting use_agent_phone_number and detect_voicemail to be false, dtmf to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
|
|
55
|
+
keep_listening?: boolean;
|
|
54
56
|
/** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
|
|
55
57
|
agents_to_transfer_to?: string[];
|
|
56
58
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -67,7 +69,7 @@ export interface UpdateToolRequest {
|
|
|
67
69
|
forbid_tool_call_after_speech?: boolean;
|
|
68
70
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
69
71
|
allow_tool_chaining?: boolean;
|
|
70
|
-
/** The agent doesn't typically wait for the response of async
|
|
72
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only available for async custom_webhook and custom_websocket tools, and cannot be combined with allow_tool_chaining set to true. */
|
|
71
73
|
wait_for_response?: boolean;
|
|
72
74
|
}
|
|
73
75
|
export declare namespace UpdateToolRequest {
|
|
@@ -42,6 +42,8 @@ export interface Tool {
|
|
|
42
42
|
use_agent_phone_number?: boolean | undefined;
|
|
43
43
|
/** 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. */
|
|
44
44
|
detect_voicemail?: boolean | undefined;
|
|
45
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, so use_agent_phone_number, detect_voicemail and dynamic_dtmf are false and dtmf is null. Only returned for built_in_transfer_to_phone_number tools. */
|
|
46
|
+
keep_listening?: boolean | undefined;
|
|
45
47
|
/** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
|
|
46
48
|
agents_to_transfer_to?: string[] | undefined;
|
|
47
49
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -58,7 +60,7 @@ export interface Tool {
|
|
|
58
60
|
forbid_tool_call_after_speech?: boolean | undefined;
|
|
59
61
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
60
62
|
allow_tool_chaining?: boolean | undefined;
|
|
61
|
-
/** The agent doesn't typically wait for the response of async
|
|
63
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only returned for custom_webhook and custom_websocket tools. */
|
|
62
64
|
wait_for_response?: boolean | undefined;
|
|
63
65
|
/** The static context returned to the agent. Only present for custom_context tools. */
|
|
64
66
|
context?: string | undefined;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.20";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phonic",
|
|
9
|
-
"X-Fern-SDK-Version": "0.32.
|
|
10
|
-
"User-Agent": "phonic/0.32.
|
|
9
|
+
"X-Fern-SDK-Version": "0.32.20",
|
|
10
|
+
"User-Agent": "phonic/0.32.20",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -18,6 +18,8 @@ export interface ConversationsSipOutboundCallRequest {
|
|
|
18
18
|
from_phone_number: string;
|
|
19
19
|
/** Destination phone number in E.164 format. */
|
|
20
20
|
to_phone_number: string;
|
|
21
|
+
/** Display name for the caller ID (the SIP `From` header) on this call. Sent only when non-empty. Whether it reaches the callee depends on your SIP carrier - carriers that forward the `From` display name (e.g. Telnyx) present it, while others (e.g. Twilio) drop it or override it with a CNAM lookup. */
|
|
22
|
+
from_display_name?: string;
|
|
21
23
|
config?: Phonic.OutboundCallConfig;
|
|
22
24
|
/** If true, validates the outbound call setup without placing a call. Returns HTTP 200 with `conversation_id` and `twilio_call_sid` set to null. */
|
|
23
25
|
dry_run?: boolean;
|
|
@@ -211,6 +211,8 @@ export interface CreateToolRequest {
|
|
|
211
211
|
use_agent_phone_number?: boolean;
|
|
212
212
|
/** 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. */
|
|
213
213
|
detect_voicemail?: boolean;
|
|
214
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires use_agent_phone_number and detect_voicemail to be false, dtmf to be null and dynamic_dtmf to be false. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
|
|
215
|
+
keep_listening?: boolean;
|
|
214
216
|
/** 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. */
|
|
215
217
|
agents_to_transfer_to?: string[];
|
|
216
218
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -227,7 +229,7 @@ export interface CreateToolRequest {
|
|
|
227
229
|
forbid_tool_call_after_speech?: boolean;
|
|
228
230
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
229
231
|
allow_tool_chaining?: boolean;
|
|
230
|
-
/** The agent doesn't typically wait for the response of async
|
|
232
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only available for async custom_webhook and custom_websocket tools, and cannot be combined with allow_tool_chaining set to true. */
|
|
231
233
|
wait_for_response?: boolean;
|
|
232
234
|
/** The static context returned to the agent. Required for custom_context tools. */
|
|
233
235
|
context?: string;
|
|
@@ -51,6 +51,8 @@ export interface UpdateToolRequest {
|
|
|
51
51
|
use_agent_phone_number?: boolean;
|
|
52
52
|
/** 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. */
|
|
53
53
|
detect_voicemail?: boolean;
|
|
54
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, which requires the resulting use_agent_phone_number and detect_voicemail to be false, dtmf to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
|
|
55
|
+
keep_listening?: boolean;
|
|
54
56
|
/** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
|
|
55
57
|
agents_to_transfer_to?: string[];
|
|
56
58
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -67,7 +69,7 @@ export interface UpdateToolRequest {
|
|
|
67
69
|
forbid_tool_call_after_speech?: boolean;
|
|
68
70
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
69
71
|
allow_tool_chaining?: boolean;
|
|
70
|
-
/** The agent doesn't typically wait for the response of async
|
|
72
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only available for async custom_webhook and custom_websocket tools, and cannot be combined with allow_tool_chaining set to true. */
|
|
71
73
|
wait_for_response?: boolean;
|
|
72
74
|
}
|
|
73
75
|
export declare namespace UpdateToolRequest {
|
|
@@ -42,6 +42,8 @@ export interface Tool {
|
|
|
42
42
|
use_agent_phone_number?: boolean | undefined;
|
|
43
43
|
/** 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. */
|
|
44
44
|
detect_voicemail?: boolean | undefined;
|
|
45
|
+
/** When true, Phonic bridges the transfer and stays on the call. When false, the call is handed off with a SIP REFER and Phonic drops out, so use_agent_phone_number, detect_voicemail and dynamic_dtmf are false and dtmf is null. Only returned for built_in_transfer_to_phone_number tools. */
|
|
46
|
+
keep_listening?: boolean | undefined;
|
|
45
47
|
/** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
|
|
46
48
|
agents_to_transfer_to?: string[] | undefined;
|
|
47
49
|
/** When true, forces the agent to speak before executing the tool. */
|
|
@@ -58,7 +60,7 @@ export interface Tool {
|
|
|
58
60
|
forbid_tool_call_after_speech?: boolean | undefined;
|
|
59
61
|
/** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
60
62
|
allow_tool_chaining?: boolean | undefined;
|
|
61
|
-
/** The agent doesn't typically wait for the response of async
|
|
63
|
+
/** The agent doesn't typically wait for the response of async tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only returned for custom_webhook and custom_websocket tools. */
|
|
62
64
|
wait_for_response?: boolean | undefined;
|
|
63
65
|
/** The static context returned to the agent. Only present for custom_context tools. */
|
|
64
66
|
context?: string | undefined;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.20";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.20";
|