phonic 0.30.29 → 0.30.30

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.29",
55
- "User-Agent": "phonic/0.30.29",
54
+ "X-Fern-SDK-Version": "0.30.30",
55
+ "User-Agent": "phonic/0.30.30",
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) });
@@ -128,8 +128,8 @@ export interface CreateToolRequest {
128
128
  endpoint_timeout_ms?: number;
129
129
  /** Timeout for WebSocket tool responses. */
130
130
  tool_call_output_timeout_ms?: number;
131
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
132
- phone_number?: string;
131
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
132
+ phone_number?: string | null;
133
133
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
134
134
  dtmf?: string | null;
135
135
  /** 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. */
@@ -37,8 +37,8 @@ export interface UpdateToolRequest {
37
37
  endpoint_headers?: Record<string, string>;
38
38
  endpoint_timeout_ms?: number;
39
39
  tool_call_output_timeout_ms?: number;
40
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
41
- phone_number?: string;
40
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
41
+ phone_number?: string | null;
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
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. */
@@ -26,8 +26,8 @@ export interface Tool {
26
26
  endpoint_timeout_ms?: number;
27
27
  /** Timeout in milliseconds for WebSocket tool responses. */
28
28
  tool_call_output_timeout_ms?: number;
29
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
30
- phone_number?: string;
29
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
30
+ phone_number?: string | null;
31
31
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
32
32
  dtmf?: string | null;
33
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. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.30.29";
1
+ export declare const SDK_VERSION = "0.30.30";
@@ -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.29";
4
+ exports.SDK_VERSION = "0.30.30";
@@ -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.29",
19
- "User-Agent": "phonic/0.30.29",
18
+ "X-Fern-SDK-Version": "0.30.30",
19
+ "User-Agent": "phonic/0.30.30",
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) });
@@ -128,8 +128,8 @@ export interface CreateToolRequest {
128
128
  endpoint_timeout_ms?: number;
129
129
  /** Timeout for WebSocket tool responses. */
130
130
  tool_call_output_timeout_ms?: number;
131
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
132
- phone_number?: string;
131
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
132
+ phone_number?: string | null;
133
133
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
134
134
  dtmf?: string | null;
135
135
  /** 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. */
@@ -37,8 +37,8 @@ export interface UpdateToolRequest {
37
37
  endpoint_headers?: Record<string, string>;
38
38
  endpoint_timeout_ms?: number;
39
39
  tool_call_output_timeout_ms?: number;
40
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
41
- phone_number?: string;
40
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
41
+ phone_number?: string | null;
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
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. */
@@ -26,8 +26,8 @@ export interface Tool {
26
26
  endpoint_timeout_ms?: number;
27
27
  /** Timeout in milliseconds for WebSocket tool responses. */
28
28
  tool_call_output_timeout_ms?: number;
29
- /** The E.164 formatted phone number to transfer calls to. Required for built_in_transfer_to_phone_number tools. */
30
- phone_number?: string;
29
+ /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
30
+ phone_number?: string | null;
31
31
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. */
32
32
  dtmf?: string | null;
33
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. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.30.29";
1
+ export declare const SDK_VERSION = "0.30.30";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.30.29";
1
+ export const SDK_VERSION = "0.30.30";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.30.29",
3
+ "version": "0.30.30",
4
4
  "private": false,
5
5
  "repository": "github:Phonic-Co/phonic-node",
6
6
  "type": "commonjs",