phonic 0.32.23 → 0.32.24

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.
@@ -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.23",
47
- "User-Agent": "phonic/0.32.23",
46
+ "X-Fern-SDK-Version": "0.32.24",
47
+ "User-Agent": "phonic/0.32.24",
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);
@@ -233,6 +233,8 @@ export interface CreateToolRequest {
233
233
  allow_tool_chaining?: boolean;
234
234
  /** 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. */
235
235
  wait_for_response?: boolean;
236
+ /** When true, the user cannot interrupt the agent while the tool call is in flight; the agent's turn is held open until the tool returns. Only available for sync custom_webhook and custom_websocket tools. */
237
+ uninterruptible?: boolean;
236
238
  /** The static context returned to the agent. Required for custom_context tools. */
237
239
  context?: string;
238
240
  }
@@ -73,6 +73,8 @@ export interface UpdateToolRequest {
73
73
  allow_tool_chaining?: boolean;
74
74
  /** 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. */
75
75
  wait_for_response?: boolean;
76
+ /** When true, the user cannot interrupt the agent while the tool call is in flight; the agent's turn is held open until the tool returns. Only available for sync custom_webhook and custom_websocket tools, so the resulting execution_mode must be sync. */
77
+ uninterruptible?: boolean;
76
78
  }
77
79
  export declare namespace UpdateToolRequest {
78
80
  /** Mode of operation. */
@@ -181,7 +181,7 @@ export declare namespace Conversation {
181
181
  * Phone call metadata. `null` for non-phone call conversations.
182
182
  */
183
183
  interface CallInfo {
184
- /** Caller phone number in E.164 format. */
184
+ /** Caller phone number in E.164 format. `"anonymous"` for inbound calls whose caller withheld their number. */
185
185
  from_phone_number: string;
186
186
  /** Callee phone number in E.164 format. */
187
187
  to_phone_number: string;
@@ -21,6 +21,8 @@ export interface InlineWebSocketTool {
21
21
  allow_tool_chaining?: boolean | undefined;
22
22
  /** For async tools, when true, the assistant waits for the response and speaks when it arrives. */
23
23
  wait_for_response?: boolean | undefined;
24
+ /** For sync tools, when true, the user cannot interrupt the assistant while the tool call is in flight; the assistant's turn is held open until the tool returns. */
25
+ uninterruptible?: boolean | undefined;
24
26
  }
25
27
  export declare namespace InlineWebSocketTool {
26
28
  /** Whether the assistant waits for the tool output before continuing. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A tool's parameters expressed as a raw JSON Schema object, for parameters that the flat `ToolParameter` list cannot express: nested objects, arrays of objects, `anyOf` variants, `null`, and non-string enums.
3
3
  * Each entry in `properties` is a JSON Schema value supporting `type` (`"string"`, `"integer"`, `"number"`, `"boolean"`, `"null"`, `"array"`, `"object"`), `description`, `enum` (string parameters only), `items` (for arrays), `properties`/`required`/`additionalProperties` (for objects) and `anyOf`. Values may be nested up to 5 levels deep.
4
- * Parameter names cannot be any of the reserved names that Phonic injects into every tool call: `call_info`, `conversation_id`, `from_phone_number`, `to_phone_number`, `twilio_call_sid`.
4
+ * Parameter names cannot be any of the reserved names that Phonic injects into every tool call: `call_info`, `conversation_id`, `from_phone_number`, `pre_tool_text`, `to_phone_number`, `twilio_call_sid`.
5
5
  * For `custom_webhook` tools, parameter placement is supplied separately in `parameter_locations` rather than inline on the schema.
6
6
  */
7
7
  export interface ToolParametersJsonSchema {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.23";
1
+ export declare const SDK_VERSION = "0.32.24";
@@ -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.23";
4
+ exports.SDK_VERSION = "0.32.24";
@@ -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.23",
10
- "User-Agent": "phonic/0.32.23",
9
+ "X-Fern-SDK-Version": "0.32.24",
10
+ "User-Agent": "phonic/0.32.24",
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);
@@ -233,6 +233,8 @@ export interface CreateToolRequest {
233
233
  allow_tool_chaining?: boolean;
234
234
  /** 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. */
235
235
  wait_for_response?: boolean;
236
+ /** When true, the user cannot interrupt the agent while the tool call is in flight; the agent's turn is held open until the tool returns. Only available for sync custom_webhook and custom_websocket tools. */
237
+ uninterruptible?: boolean;
236
238
  /** The static context returned to the agent. Required for custom_context tools. */
237
239
  context?: string;
238
240
  }
@@ -73,6 +73,8 @@ export interface UpdateToolRequest {
73
73
  allow_tool_chaining?: boolean;
74
74
  /** 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. */
75
75
  wait_for_response?: boolean;
76
+ /** When true, the user cannot interrupt the agent while the tool call is in flight; the agent's turn is held open until the tool returns. Only available for sync custom_webhook and custom_websocket tools, so the resulting execution_mode must be sync. */
77
+ uninterruptible?: boolean;
76
78
  }
77
79
  export declare namespace UpdateToolRequest {
78
80
  /** Mode of operation. */
@@ -181,7 +181,7 @@ export declare namespace Conversation {
181
181
  * Phone call metadata. `null` for non-phone call conversations.
182
182
  */
183
183
  interface CallInfo {
184
- /** Caller phone number in E.164 format. */
184
+ /** Caller phone number in E.164 format. `"anonymous"` for inbound calls whose caller withheld their number. */
185
185
  from_phone_number: string;
186
186
  /** Callee phone number in E.164 format. */
187
187
  to_phone_number: string;
@@ -21,6 +21,8 @@ export interface InlineWebSocketTool {
21
21
  allow_tool_chaining?: boolean | undefined;
22
22
  /** For async tools, when true, the assistant waits for the response and speaks when it arrives. */
23
23
  wait_for_response?: boolean | undefined;
24
+ /** For sync tools, when true, the user cannot interrupt the assistant while the tool call is in flight; the assistant's turn is held open until the tool returns. */
25
+ uninterruptible?: boolean | undefined;
24
26
  }
25
27
  export declare namespace InlineWebSocketTool {
26
28
  /** Whether the assistant waits for the tool output before continuing. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A tool's parameters expressed as a raw JSON Schema object, for parameters that the flat `ToolParameter` list cannot express: nested objects, arrays of objects, `anyOf` variants, `null`, and non-string enums.
3
3
  * Each entry in `properties` is a JSON Schema value supporting `type` (`"string"`, `"integer"`, `"number"`, `"boolean"`, `"null"`, `"array"`, `"object"`), `description`, `enum` (string parameters only), `items` (for arrays), `properties`/`required`/`additionalProperties` (for objects) and `anyOf`. Values may be nested up to 5 levels deep.
4
- * Parameter names cannot be any of the reserved names that Phonic injects into every tool call: `call_info`, `conversation_id`, `from_phone_number`, `to_phone_number`, `twilio_call_sid`.
4
+ * Parameter names cannot be any of the reserved names that Phonic injects into every tool call: `call_info`, `conversation_id`, `from_phone_number`, `pre_tool_text`, `to_phone_number`, `twilio_call_sid`.
5
5
  * For `custom_webhook` tools, parameter placement is supplied separately in `parameter_locations` rather than inline on the schema.
6
6
  */
7
7
  export interface ToolParametersJsonSchema {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.23";
1
+ export declare const SDK_VERSION = "0.32.24";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.23";
1
+ export const SDK_VERSION = "0.32.24";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.23",
3
+ "version": "0.32.24",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",