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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.d.ts +1 -0
- package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.js +1 -0
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +3 -3
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +2 -2
- package/dist/cjs/api/types/Tool.d.ts +2 -2
- 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/responses/client/requests/GenerateResponsesRequest.d.mts +1 -0
- package/dist/esm/api/resources/responses/client/requests/GenerateResponsesRequest.mjs +1 -0
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +3 -3
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +2 -2
- package/dist/esm/api/types/Tool.d.mts +2 -2
- 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.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
|
}
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
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,
|
|
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.
|
|
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
|
|
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;
|
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.27";
|
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.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
|
}
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
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,
|
|
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.
|
|
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
|
|
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;
|
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.27";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.27";
|