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.
@@ -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.1",
47
- "User-Agent": "phonic/0.32.1",
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
- /** Message to play when the conversation starts. Can contain template variables like `{{customer_name}}`. */
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;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.1";
1
+ export declare const SDK_VERSION = "0.32.2";
@@ -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.1";
4
+ exports.SDK_VERSION = "0.32.2";
@@ -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.1",
10
- "User-Agent": "phonic/0.32.1",
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
- /** Message to play when the conversation starts. Can contain template variables like `{{customer_name}}`. */
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;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.1";
1
+ export declare const SDK_VERSION = "0.32.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.1";
1
+ export const SDK_VERSION = "0.32.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.1",
3
+ "version": "0.32.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",