phonic 0.32.1 → 0.32.2
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/types/Conversation.d.ts +4 -0
- package/dist/cjs/api/types/Conversation.js +4 -0
- package/dist/cjs/api/types/OutboundCallConfig.d.ts +5 -1
- 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/types/Conversation.d.mts +4 -0
- package/dist/esm/api/types/Conversation.mjs +4 -0
- package/dist/esm/api/types/OutboundCallConfig.d.mts +5 -1
- 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.2",
|
|
47
|
+
"User-Agent": "phonic/0.32.2",
|
|
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);
|
|
@@ -130,6 +130,10 @@ export declare namespace Conversation {
|
|
|
130
130
|
readonly UserCanceled: "user_canceled";
|
|
131
131
|
readonly UserValidationFailed: "user_validation_failed";
|
|
132
132
|
readonly Assistant: "assistant";
|
|
133
|
+
readonly AssistantSilenceLimitReached: "assistant_silence_limit_reached";
|
|
134
|
+
readonly ConfigurationEndpointTimedOut: "configuration_endpoint_timed_out";
|
|
135
|
+
readonly ConfigurationEndpointError: "configuration_endpoint_error";
|
|
136
|
+
readonly ConfigurationEndpointInvalidResponse: "configuration_endpoint_invalid_response";
|
|
133
137
|
readonly Error: "error";
|
|
134
138
|
};
|
|
135
139
|
type EndedBy = (typeof EndedBy)[keyof typeof EndedBy];
|
|
@@ -24,6 +24,10 @@ var Conversation;
|
|
|
24
24
|
UserCanceled: "user_canceled",
|
|
25
25
|
UserValidationFailed: "user_validation_failed",
|
|
26
26
|
Assistant: "assistant",
|
|
27
|
+
AssistantSilenceLimitReached: "assistant_silence_limit_reached",
|
|
28
|
+
ConfigurationEndpointTimedOut: "configuration_endpoint_timed_out",
|
|
29
|
+
ConfigurationEndpointError: "configuration_endpoint_error",
|
|
30
|
+
ConfigurationEndpointInvalidResponse: "configuration_endpoint_invalid_response",
|
|
27
31
|
Error: "error",
|
|
28
32
|
};
|
|
29
33
|
/** If `"auto"`, each user audio is automatically identified for the language to respond in. If `"request"`, user must request to change language (recommended). If `"initial"` the first turn user audio determines the language for the rest of the conversation. */
|
|
@@ -7,7 +7,11 @@ export interface OutboundCallConfig {
|
|
|
7
7
|
agent?: string | undefined;
|
|
8
8
|
/** The name of the project to use for the call. */
|
|
9
9
|
project?: string | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** When `true`, the welcome message will be automatically generated and the `welcome_message` field will be ignored. */
|
|
11
|
+
generate_welcome_message?: boolean | undefined;
|
|
12
|
+
/** When `false`, the welcome message will not be interruptible by the user. */
|
|
13
|
+
is_welcome_message_interruptible?: boolean | undefined;
|
|
14
|
+
/** Message to play when the conversation starts. Can contain template variables like `{{customer_name}}`. Ignored when `generate_welcome_message` is `true`. */
|
|
11
15
|
welcome_message?: (string | null) | undefined;
|
|
12
16
|
/** Instructions for the conversation. Can contain template variables like `{{subject}}`. */
|
|
13
17
|
system_prompt?: 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.2";
|
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.2",
|
|
10
|
+
"User-Agent": "phonic/0.32.2",
|
|
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);
|
|
@@ -130,6 +130,10 @@ export declare namespace Conversation {
|
|
|
130
130
|
readonly UserCanceled: "user_canceled";
|
|
131
131
|
readonly UserValidationFailed: "user_validation_failed";
|
|
132
132
|
readonly Assistant: "assistant";
|
|
133
|
+
readonly AssistantSilenceLimitReached: "assistant_silence_limit_reached";
|
|
134
|
+
readonly ConfigurationEndpointTimedOut: "configuration_endpoint_timed_out";
|
|
135
|
+
readonly ConfigurationEndpointError: "configuration_endpoint_error";
|
|
136
|
+
readonly ConfigurationEndpointInvalidResponse: "configuration_endpoint_invalid_response";
|
|
133
137
|
readonly Error: "error";
|
|
134
138
|
};
|
|
135
139
|
type EndedBy = (typeof EndedBy)[keyof typeof EndedBy];
|
|
@@ -21,6 +21,10 @@ export var Conversation;
|
|
|
21
21
|
UserCanceled: "user_canceled",
|
|
22
22
|
UserValidationFailed: "user_validation_failed",
|
|
23
23
|
Assistant: "assistant",
|
|
24
|
+
AssistantSilenceLimitReached: "assistant_silence_limit_reached",
|
|
25
|
+
ConfigurationEndpointTimedOut: "configuration_endpoint_timed_out",
|
|
26
|
+
ConfigurationEndpointError: "configuration_endpoint_error",
|
|
27
|
+
ConfigurationEndpointInvalidResponse: "configuration_endpoint_invalid_response",
|
|
24
28
|
Error: "error",
|
|
25
29
|
};
|
|
26
30
|
/** If `"auto"`, each user audio is automatically identified for the language to respond in. If `"request"`, user must request to change language (recommended). If `"initial"` the first turn user audio determines the language for the rest of the conversation. */
|
|
@@ -7,7 +7,11 @@ export interface OutboundCallConfig {
|
|
|
7
7
|
agent?: string | undefined;
|
|
8
8
|
/** The name of the project to use for the call. */
|
|
9
9
|
project?: string | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** When `true`, the welcome message will be automatically generated and the `welcome_message` field will be ignored. */
|
|
11
|
+
generate_welcome_message?: boolean | undefined;
|
|
12
|
+
/** When `false`, the welcome message will not be interruptible by the user. */
|
|
13
|
+
is_welcome_message_interruptible?: boolean | undefined;
|
|
14
|
+
/** Message to play when the conversation starts. Can contain template variables like `{{customer_name}}`. Ignored when `generate_welcome_message` is `true`. */
|
|
11
15
|
welcome_message?: (string | null) | undefined;
|
|
12
16
|
/** Instructions for the conversation. Can contain template variables like `{{subject}}`. */
|
|
13
17
|
system_prompt?: 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.2";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.2";
|