phonic 0.32.18 → 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.
Files changed (26) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/agents/client/Client.js +1 -0
  4. package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.ts +11 -0
  5. package/dist/cjs/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.js +7 -0
  6. package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.ts +12 -0
  7. package/dist/cjs/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.js +7 -0
  8. package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +3 -1
  9. package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +3 -1
  10. package/dist/cjs/api/types/Tool.d.ts +3 -1
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/BaseClient.mjs +2 -2
  14. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -0
  15. package/dist/esm/api/resources/agents/client/Client.mjs +1 -0
  16. package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.d.mts +11 -0
  17. package/dist/esm/api/resources/agents/client/requests/AgentsAddCustomPhoneNumberRequest.mjs +7 -0
  18. package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.d.mts +12 -0
  19. package/dist/esm/api/resources/conversations/client/requests/ConversationsSipOutboundCallRequest.mjs +7 -0
  20. package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +3 -1
  21. package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +3 -1
  22. package/dist/esm/api/types/Tool.d.mts +3 -1
  23. package/dist/esm/version.d.mts +1 -1
  24. package/dist/esm/version.mjs +1 -1
  25. package/package.json +1 -1
  26. package/reference.md +1 -0
@@ -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.18",
47
- "User-Agent": "phonic/0.32.18",
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);
@@ -255,6 +255,7 @@ export declare class AgentsClient {
255
255
  * timeout_ms: 7000
256
256
  * },
257
257
  * sip: {
258
+ * transport: "tls",
258
259
  * media_encryption: "required"
259
260
  * }
260
261
  * })
@@ -578,6 +578,7 @@ class AgentsClient {
578
578
  * timeout_ms: 7000
579
579
  * },
580
580
  * sip: {
581
+ * transport: "tls",
581
582
  * media_encryption: "required"
582
583
  * }
583
584
  * })
@@ -14,6 +14,7 @@
14
14
  * timeout_ms: 7000
15
15
  * },
16
16
  * sip: {
17
+ * transport: "tls",
17
18
  * media_encryption: "required"
18
19
  * }
19
20
  * }
@@ -50,10 +51,20 @@ export declare namespace AgentsAddCustomPhoneNumberRequest {
50
51
  * SIP trunk settings for this phone number, applied to both its inbound trunk and the trunk created for each outbound call. Set at creation; remove and re-add the number to change them.
51
52
  */
52
53
  interface Sip {
54
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
55
+ transport?: Sip.Transport | undefined;
53
56
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
54
57
  media_encryption?: Sip.MediaEncryption | undefined;
55
58
  }
56
59
  namespace Sip {
60
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
61
+ const Transport: {
62
+ readonly Auto: "auto";
63
+ readonly Udp: "udp";
64
+ readonly Tcp: "tcp";
65
+ readonly Tls: "tls";
66
+ };
67
+ type Transport = (typeof Transport)[keyof typeof Transport];
57
68
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
58
69
  const MediaEncryption: {
59
70
  readonly Disabled: "disabled";
@@ -6,6 +6,13 @@ var AgentsAddCustomPhoneNumberRequest;
6
6
  (function (AgentsAddCustomPhoneNumberRequest) {
7
7
  let Sip;
8
8
  (function (Sip) {
9
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
10
+ Sip.Transport = {
11
+ Auto: "auto",
12
+ Udp: "udp",
13
+ Tcp: "tcp",
14
+ Tls: "tls",
15
+ };
9
16
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
10
17
  Sip.MediaEncryption = {
11
18
  Disabled: "disabled",
@@ -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;
@@ -29,10 +31,20 @@ export declare namespace ConversationsSipOutboundCallRequest {
29
31
  * SIP trunk settings for the outbound trunk created for this call.
30
32
  */
31
33
  interface Sip {
34
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
35
+ transport?: Sip.Transport | undefined;
32
36
  /** Whether media (SRTP) encryption is used on this call. */
33
37
  media_encryption?: Sip.MediaEncryption | undefined;
34
38
  }
35
39
  namespace Sip {
40
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
41
+ const Transport: {
42
+ readonly Auto: "auto";
43
+ readonly Udp: "udp";
44
+ readonly Tcp: "tcp";
45
+ readonly Tls: "tls";
46
+ };
47
+ type Transport = (typeof Transport)[keyof typeof Transport];
36
48
  /** Whether media (SRTP) encryption is used on this call. */
37
49
  const MediaEncryption: {
38
50
  readonly Disabled: "disabled";
@@ -6,6 +6,13 @@ var ConversationsSipOutboundCallRequest;
6
6
  (function (ConversationsSipOutboundCallRequest) {
7
7
  let Sip;
8
8
  (function (Sip) {
9
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
10
+ Sip.Transport = {
11
+ Auto: "auto",
12
+ Udp: "udp",
13
+ Tcp: "tcp",
14
+ Tls: "tls",
15
+ };
9
16
  /** Whether media (SRTP) encryption is used on this call. */
10
17
  Sip.MediaEncryption = {
11
18
  Disabled: "disabled",
@@ -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 custom_websocket 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_websocket tools. */
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 custom_websocket 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_websocket tools. */
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 custom_websocket 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_websocket tools. */
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;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.18";
1
+ export declare const SDK_VERSION = "0.32.20";
@@ -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.32.18";
4
+ exports.SDK_VERSION = "0.32.20";
@@ -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.18",
10
- "User-Agent": "phonic/0.32.18",
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);
@@ -255,6 +255,7 @@ export declare class AgentsClient {
255
255
  * timeout_ms: 7000
256
256
  * },
257
257
  * sip: {
258
+ * transport: "tls",
258
259
  * media_encryption: "required"
259
260
  * }
260
261
  * })
@@ -542,6 +542,7 @@ export class AgentsClient {
542
542
  * timeout_ms: 7000
543
543
  * },
544
544
  * sip: {
545
+ * transport: "tls",
545
546
  * media_encryption: "required"
546
547
  * }
547
548
  * })
@@ -14,6 +14,7 @@
14
14
  * timeout_ms: 7000
15
15
  * },
16
16
  * sip: {
17
+ * transport: "tls",
17
18
  * media_encryption: "required"
18
19
  * }
19
20
  * }
@@ -50,10 +51,20 @@ export declare namespace AgentsAddCustomPhoneNumberRequest {
50
51
  * SIP trunk settings for this phone number, applied to both its inbound trunk and the trunk created for each outbound call. Set at creation; remove and re-add the number to change them.
51
52
  */
52
53
  interface Sip {
54
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
55
+ transport?: Sip.Transport | undefined;
53
56
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
54
57
  media_encryption?: Sip.MediaEncryption | undefined;
55
58
  }
56
59
  namespace Sip {
60
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
61
+ const Transport: {
62
+ readonly Auto: "auto";
63
+ readonly Udp: "udp";
64
+ readonly Tcp: "tcp";
65
+ readonly Tls: "tls";
66
+ };
67
+ type Transport = (typeof Transport)[keyof typeof Transport];
57
68
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
58
69
  const MediaEncryption: {
59
70
  readonly Disabled: "disabled";
@@ -3,6 +3,13 @@ export var AgentsAddCustomPhoneNumberRequest;
3
3
  (function (AgentsAddCustomPhoneNumberRequest) {
4
4
  let Sip;
5
5
  (function (Sip) {
6
+ /** SIP signaling transport used for calls on this phone number. The SIP address must not carry a `;transport=` parameter; set it here instead. */
7
+ Sip.Transport = {
8
+ Auto: "auto",
9
+ Udp: "udp",
10
+ Tcp: "tcp",
11
+ Tls: "tls",
12
+ };
6
13
  /** Whether media (SRTP) encryption is used on calls on this phone number. */
7
14
  Sip.MediaEncryption = {
8
15
  Disabled: "disabled",
@@ -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;
@@ -29,10 +31,20 @@ export declare namespace ConversationsSipOutboundCallRequest {
29
31
  * SIP trunk settings for the outbound trunk created for this call.
30
32
  */
31
33
  interface Sip {
34
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
35
+ transport?: Sip.Transport | undefined;
32
36
  /** Whether media (SRTP) encryption is used on this call. */
33
37
  media_encryption?: Sip.MediaEncryption | undefined;
34
38
  }
35
39
  namespace Sip {
40
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
41
+ const Transport: {
42
+ readonly Auto: "auto";
43
+ readonly Udp: "udp";
44
+ readonly Tcp: "tcp";
45
+ readonly Tls: "tls";
46
+ };
47
+ type Transport = (typeof Transport)[keyof typeof Transport];
36
48
  /** Whether media (SRTP) encryption is used on this call. */
37
49
  const MediaEncryption: {
38
50
  readonly Disabled: "disabled";
@@ -3,6 +3,13 @@ export var ConversationsSipOutboundCallRequest;
3
3
  (function (ConversationsSipOutboundCallRequest) {
4
4
  let Sip;
5
5
  (function (Sip) {
6
+ /** SIP signaling transport used for this call. The SIP address must not carry a `;transport=` parameter; set it here instead. */
7
+ Sip.Transport = {
8
+ Auto: "auto",
9
+ Udp: "udp",
10
+ Tcp: "tcp",
11
+ Tls: "tls",
12
+ };
6
13
  /** Whether media (SRTP) encryption is used on this call. */
7
14
  Sip.MediaEncryption = {
8
15
  Disabled: "disabled",
@@ -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 custom_websocket 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_websocket tools. */
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 custom_websocket 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_websocket tools. */
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 custom_websocket 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_websocket tools. */
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;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.18";
1
+ export declare const SDK_VERSION = "0.32.20";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.18";
1
+ export const SDK_VERSION = "0.32.20";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.18",
3
+ "version": "0.32.20",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -570,6 +570,7 @@ await client.agents.addCustomPhoneNumber("nameOrId", {
570
570
  timeout_ms: 7000
571
571
  },
572
572
  sip: {
573
+ transport: "tls",
573
574
  media_encryption: "required"
574
575
  }
575
576
  });