phonic 0.32.26 → 0.32.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.
@@ -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.26",
47
- "User-Agent": "phonic/0.32.26",
46
+ "X-Fern-SDK-Version": "0.32.27",
47
+ "User-Agent": "phonic/0.32.27",
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);
@@ -73,6 +73,7 @@ export declare namespace GenerateResponsesRequest {
73
73
  const PhonicModel: {
74
74
  readonly PhonicV05: "phonic_v0_5";
75
75
  readonly PhonicV1: "phonic_v1";
76
+ readonly PhonicV11: "phonic_v1_1";
76
77
  };
77
78
  type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
78
79
  }
@@ -8,5 +8,6 @@ var GenerateResponsesRequest;
8
8
  GenerateResponsesRequest.PhonicModel = {
9
9
  PhonicV05: "phonic_v0_5",
10
10
  PhonicV1: "phonic_v1",
11
+ PhonicV11: "phonic_v1_1",
11
12
  };
12
13
  })(GenerateResponsesRequest || (exports.GenerateResponsesRequest = GenerateResponsesRequest = {}));
@@ -205,15 +205,15 @@ export interface CreateToolRequest {
205
205
  phone_number?: string | null;
206
206
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. Ignored when dynamic_dtmf is true. */
207
207
  dtmf?: string | null;
208
- /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since a SIP REFER transfer has no bridged call to speak it on. Only available for built_in_transfer_to_phone_number tools. */
208
+ /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since Phonic drops out of the call and has no line to speak it on. Only available for built_in_transfer_to_phone_number tools. */
209
209
  post_transfer_message?: string | null;
210
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
210
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
211
211
  dynamic_dtmf?: boolean;
212
212
  /** 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. */
213
213
  use_agent_phone_number?: boolean;
214
214
  /** 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. */
215
215
  detect_voicemail?: boolean;
216
- /** 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 and post_transfer_message 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. */
216
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
217
217
  keep_listening?: boolean;
218
218
  /** 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. */
219
219
  agents_to_transfer_to?: string[];
@@ -47,13 +47,13 @@ export interface UpdateToolRequest {
47
47
  dtmf?: string | null;
48
48
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Can be set to null to remove the announcement. Must be null when the resulting keep_listening is false. Only applicable to built_in_transfer_to_phone_number tools. */
49
49
  post_transfer_message?: string | null;
50
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
50
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
51
51
  dynamic_dtmf?: boolean;
52
52
  /** 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. */
53
53
  use_agent_phone_number?: boolean;
54
54
  /** 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. */
55
55
  detect_voicemail?: boolean;
56
- /** 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 and post_transfer_message to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
56
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires the resulting use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only applicable to built_in_transfer_to_phone_number tools. */
57
57
  keep_listening?: boolean;
58
58
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
59
59
  agents_to_transfer_to?: string[];
@@ -38,13 +38,13 @@ export interface Tool {
38
38
  dtmf?: (string | null) | undefined;
39
39
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Always null when keep_listening is false. Only returned for built_in_transfer_to_phone_number tools. */
40
40
  post_transfer_message?: (string | null) | undefined;
41
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
41
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
42
42
  dynamic_dtmf?: boolean | undefined;
43
43
  /** 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. */
44
44
  use_agent_phone_number?: boolean | undefined;
45
45
  /** 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. */
46
46
  detect_voicemail?: boolean | undefined;
47
- /** 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 and post_transfer_message are null. Only returned for built_in_transfer_to_phone_number tools. */
47
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, so use_agent_phone_number and detect_voicemail are false and post_transfer_message is null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only returned for built_in_transfer_to_phone_number tools. */
48
48
  keep_listening?: boolean | undefined;
49
49
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
50
50
  agents_to_transfer_to?: string[] | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.26";
1
+ export declare const SDK_VERSION = "0.32.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.32.26";
4
+ exports.SDK_VERSION = "0.32.27";
@@ -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.26",
10
- "User-Agent": "phonic/0.32.26",
9
+ "X-Fern-SDK-Version": "0.32.27",
10
+ "User-Agent": "phonic/0.32.27",
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);
@@ -73,6 +73,7 @@ export declare namespace GenerateResponsesRequest {
73
73
  const PhonicModel: {
74
74
  readonly PhonicV05: "phonic_v0_5";
75
75
  readonly PhonicV1: "phonic_v1";
76
+ readonly PhonicV11: "phonic_v1_1";
76
77
  };
77
78
  type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
78
79
  }
@@ -5,5 +5,6 @@ export var GenerateResponsesRequest;
5
5
  GenerateResponsesRequest.PhonicModel = {
6
6
  PhonicV05: "phonic_v0_5",
7
7
  PhonicV1: "phonic_v1",
8
+ PhonicV11: "phonic_v1_1",
8
9
  };
9
10
  })(GenerateResponsesRequest || (GenerateResponsesRequest = {}));
@@ -205,15 +205,15 @@ export interface CreateToolRequest {
205
205
  phone_number?: string | null;
206
206
  /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. Ignored when dynamic_dtmf is true. */
207
207
  dtmf?: string | null;
208
- /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since a SIP REFER transfer has no bridged call to speak it on. Only available for built_in_transfer_to_phone_number tools. */
208
+ /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Must be null when keep_listening is false, since Phonic drops out of the call and has no line to speak it on. Only available for built_in_transfer_to_phone_number tools. */
209
209
  post_transfer_message?: string | null;
210
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
210
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
211
211
  dynamic_dtmf?: boolean;
212
212
  /** 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. */
213
213
  use_agent_phone_number?: boolean;
214
214
  /** 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. */
215
215
  detect_voicemail?: boolean;
216
- /** 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 and post_transfer_message 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. */
216
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only available for built_in_transfer_to_phone_number tools. Defaults to the value of use_agent_phone_number. */
217
217
  keep_listening?: boolean;
218
218
  /** 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. */
219
219
  agents_to_transfer_to?: string[];
@@ -47,13 +47,13 @@ export interface UpdateToolRequest {
47
47
  dtmf?: string | null;
48
48
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Can be set to null to remove the announcement. Must be null when the resulting keep_listening is false. Only applicable to built_in_transfer_to_phone_number tools. */
49
49
  post_transfer_message?: string | null;
50
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
50
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
51
51
  dynamic_dtmf?: boolean;
52
52
  /** 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. */
53
53
  use_agent_phone_number?: boolean;
54
54
  /** 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. */
55
55
  detect_voicemail?: boolean;
56
- /** 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 and post_transfer_message to be null and dynamic_dtmf to be false. Only applicable to built_in_transfer_to_phone_number tools. */
56
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, which requires the resulting use_agent_phone_number and detect_voicemail to be false and post_transfer_message to be null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only applicable to built_in_transfer_to_phone_number tools. */
57
57
  keep_listening?: boolean;
58
58
  /** Array of agent names that the LLM can choose from when transferring. All agents must exist in the same project as the tool. */
59
59
  agents_to_transfer_to?: string[];
@@ -38,13 +38,13 @@ export interface Tool {
38
38
  dtmf?: (string | null) | undefined;
39
39
  /** Fixed line the agent speaks into the bridged call once the transfer connects. Defaults to null, meaning no announcement. Always null when keep_listening is false. Only returned for built_in_transfer_to_phone_number tools. */
40
40
  post_transfer_message?: (string | null) | undefined;
41
- /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
41
+ /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. */
42
42
  dynamic_dtmf?: boolean | undefined;
43
43
  /** 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. */
44
44
  use_agent_phone_number?: boolean | undefined;
45
45
  /** 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. */
46
46
  detect_voicemail?: boolean | undefined;
47
- /** 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 and post_transfer_message are null. Only returned for built_in_transfer_to_phone_number tools. */
47
+ /** When true, Phonic bridges the transfer and stays on the call. When false, Phonic drops out once the transfer connects, so use_agent_phone_number and detect_voicemail are false and post_transfer_message is null. Without DTMF the call is handed off with a SIP REFER; with DTMF (static or dynamic) Phonic bridges the call to send the digits and then detaches, leaving the two parties connected. Only returned for built_in_transfer_to_phone_number tools. */
48
48
  keep_listening?: boolean | undefined;
49
49
  /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
50
50
  agents_to_transfer_to?: string[] | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.26";
1
+ export declare const SDK_VERSION = "0.32.27";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.26";
1
+ export const SDK_VERSION = "0.32.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.26",
3
+ "version": "0.32.27",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",