retell-sdk 4.2.0 → 4.4.0

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.
@@ -99,11 +99,9 @@ export interface PhoneCallResponse {
99
99
  to_number: string;
100
100
 
101
101
  /**
102
- * - BETA feature, schema might change, might not always be populated. Please do
103
- * not rely on this object schema for post processing. Post conversation
104
- * evaluation of the call. Including information such as sentiment, intent, call
105
- * completion status and other metrics. Available after call ends. Subscribe to
106
- * `call_analyzed` webhook event type to receive it once ready.
102
+ * Post call analysis that includes information such as sentiment, status, summary,
103
+ * and custom defined data to extract. Available after call ends. Subscribe to
104
+ * `call_analyzed` webhook event type to receive it once ready.
107
105
  */
108
106
  call_analysis?: PhoneCallResponse.CallAnalysis;
109
107
 
@@ -116,6 +114,7 @@ export interface PhoneCallResponse {
116
114
  | 'user_hangup'
117
115
  | 'agent_hangup'
118
116
  | 'call_transfer'
117
+ | 'voicemail_reached'
119
118
  | 'inactivity'
120
119
  | 'machine_detected'
121
120
  | 'concurrency_limit_reached'
@@ -222,47 +221,37 @@ export interface PhoneCallResponse {
222
221
 
223
222
  export namespace PhoneCallResponse {
224
223
  /**
225
- * - BETA feature, schema might change, might not always be populated. Please do
226
- * not rely on this object schema for post processing. Post conversation
227
- * evaluation of the call. Including information such as sentiment, intent, call
228
- * completion status and other metrics. Available after call ends. Subscribe to
229
- * `call_analyzed` webhook event type to receive it once ready.
224
+ * Post call analysis that includes information such as sentiment, status, summary,
225
+ * and custom defined data to extract. Available after call ends. Subscribe to
226
+ * `call_analyzed` webhook event type to receive it once ready.
230
227
  */
231
228
  export interface CallAnalysis {
232
229
  /**
233
- * Sentiment of the agent in the call.
230
+ * Whether the agent seems to have a successful call with the user, where the agent
231
+ * finishes the task, and the call was complete without being cutoff.
234
232
  */
235
- agent_sentiment?: 'Negative' | 'Positive' | 'Neutral';
233
+ call_successful?: boolean;
236
234
 
237
235
  /**
238
- * Evaluate agent task completion status, whether the agent has completed his task.
239
- */
240
- agent_task_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
241
-
242
- /**
243
- * Reason for the agent task completion status.
244
- */
245
- agent_task_completion_rating_reason?: string;
246
-
247
- /**
248
- * Evaluate whether the call ended normally or was cut off.
236
+ * A high level summary of the call.
249
237
  */
250
- call_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
238
+ call_summary?: string;
251
239
 
252
240
  /**
253
- * Reason for the call completion status.
241
+ * Custom analysis data that was extracted based on the schema defined in agent
242
+ * post call analysis data. Can be empty if nothing is specified.
254
243
  */
255
- call_completion_rating_reason?: string;
244
+ custom_analysis_data?: unknown;
256
245
 
257
246
  /**
258
- * A high level summary of the call.
247
+ * Whether the call is entered voicemail.
259
248
  */
260
- call_summary?: string;
249
+ in_voicemail?: boolean;
261
250
 
262
251
  /**
263
252
  * Sentiment of the user in the call.
264
253
  */
265
- user_sentiment?: 'Negative' | 'Positive' | 'Neutral';
254
+ user_sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
266
255
  }
267
256
 
268
257
  /**
@@ -550,11 +539,9 @@ export interface WebCallResponse {
550
539
  call_type: 'web_call';
551
540
 
552
541
  /**
553
- * - BETA feature, schema might change, might not always be populated. Please do
554
- * not rely on this object schema for post processing. Post conversation
555
- * evaluation of the call. Including information such as sentiment, intent, call
556
- * completion status and other metrics. Available after call ends. Subscribe to
557
- * `call_analyzed` webhook event type to receive it once ready.
542
+ * Post call analysis that includes information such as sentiment, status, summary,
543
+ * and custom defined data to extract. Available after call ends. Subscribe to
544
+ * `call_analyzed` webhook event type to receive it once ready.
558
545
  */
559
546
  call_analysis?: WebCallResponse.CallAnalysis;
560
547
 
@@ -567,6 +554,7 @@ export interface WebCallResponse {
567
554
  | 'user_hangup'
568
555
  | 'agent_hangup'
569
556
  | 'call_transfer'
557
+ | 'voicemail_reached'
570
558
  | 'inactivity'
571
559
  | 'machine_detected'
572
560
  | 'concurrency_limit_reached'
@@ -673,47 +661,37 @@ export interface WebCallResponse {
673
661
 
674
662
  export namespace WebCallResponse {
675
663
  /**
676
- * - BETA feature, schema might change, might not always be populated. Please do
677
- * not rely on this object schema for post processing. Post conversation
678
- * evaluation of the call. Including information such as sentiment, intent, call
679
- * completion status and other metrics. Available after call ends. Subscribe to
680
- * `call_analyzed` webhook event type to receive it once ready.
664
+ * Post call analysis that includes information such as sentiment, status, summary,
665
+ * and custom defined data to extract. Available after call ends. Subscribe to
666
+ * `call_analyzed` webhook event type to receive it once ready.
681
667
  */
682
668
  export interface CallAnalysis {
683
669
  /**
684
- * Sentiment of the agent in the call.
670
+ * Whether the agent seems to have a successful call with the user, where the agent
671
+ * finishes the task, and the call was complete without being cutoff.
685
672
  */
686
- agent_sentiment?: 'Negative' | 'Positive' | 'Neutral';
673
+ call_successful?: boolean;
687
674
 
688
675
  /**
689
- * Evaluate agent task completion status, whether the agent has completed his task.
690
- */
691
- agent_task_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
692
-
693
- /**
694
- * Reason for the agent task completion status.
695
- */
696
- agent_task_completion_rating_reason?: string;
697
-
698
- /**
699
- * Evaluate whether the call ended normally or was cut off.
676
+ * A high level summary of the call.
700
677
  */
701
- call_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
678
+ call_summary?: string;
702
679
 
703
680
  /**
704
- * Reason for the call completion status.
681
+ * Custom analysis data that was extracted based on the schema defined in agent
682
+ * post call analysis data. Can be empty if nothing is specified.
705
683
  */
706
- call_completion_rating_reason?: string;
684
+ custom_analysis_data?: unknown;
707
685
 
708
686
  /**
709
- * A high level summary of the call.
687
+ * Whether the call is entered voicemail.
710
688
  */
711
- call_summary?: string;
689
+ in_voicemail?: boolean;
712
690
 
713
691
  /**
714
692
  * Sentiment of the user in the call.
715
693
  */
716
- user_sentiment?: 'Negative' | 'Positive' | 'Neutral';
694
+ user_sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
717
695
  }
718
696
 
719
697
  /**
@@ -96,16 +96,16 @@ export interface LlmResponse {
96
96
  > | null;
97
97
 
98
98
  /**
99
- * For inbound phone calls with Retell numbers, if this webhook is set, will POST
100
- * to it to retrieve dynamic variables to use for the call. Without this, there's
101
- * no way to pass dynamic variables to inbound calls of Retell numbers.
99
+ * For inbound phone calls, if this webhook is set, will POST to it to retrieve
100
+ * dynamic variables to use for the call. Without this, there's no way to pass
101
+ * dynamic variables for inbound calls.
102
102
  */
103
103
  inbound_dynamic_variables_webhook_url?: string | null;
104
104
 
105
105
  /**
106
- * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
106
+ * Select the underlying LLM. If not set, would default to gpt-4o.
107
107
  */
108
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
108
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
109
109
 
110
110
  /**
111
111
  * Name of the starting state. Required if states is not empty.
@@ -687,16 +687,16 @@ export interface LlmCreateParams {
687
687
  > | null;
688
688
 
689
689
  /**
690
- * For inbound phone calls with Retell numbers, if this webhook is set, will POST
691
- * to it to retrieve dynamic variables to use for the call. Without this, there's
692
- * no way to pass dynamic variables to inbound calls of Retell numbers.
690
+ * For inbound phone calls, if this webhook is set, will POST to it to retrieve
691
+ * dynamic variables to use for the call. Without this, there's no way to pass
692
+ * dynamic variables for inbound calls.
693
693
  */
694
694
  inbound_dynamic_variables_webhook_url?: string | null;
695
695
 
696
696
  /**
697
- * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
697
+ * Select the underlying LLM. If not set, would default to gpt-4o.
698
698
  */
699
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
699
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
700
700
 
701
701
  /**
702
702
  * Name of the starting state. Required if states is not empty.
@@ -1276,16 +1276,16 @@ export interface LlmUpdateParams {
1276
1276
  > | null;
1277
1277
 
1278
1278
  /**
1279
- * For inbound phone calls with Retell numbers, if this webhook is set, will POST
1280
- * to it to retrieve dynamic variables to use for the call. Without this, there's
1281
- * no way to pass dynamic variables to inbound calls of Retell numbers.
1279
+ * For inbound phone calls, if this webhook is set, will POST to it to retrieve
1280
+ * dynamic variables to use for the call. Without this, there's no way to pass
1281
+ * dynamic variables for inbound calls.
1282
1282
  */
1283
1283
  inbound_dynamic_variables_webhook_url?: string | null;
1284
1284
 
1285
1285
  /**
1286
- * Select the underlying LLM. If not set, would default to gpt-3.5-turbo.
1286
+ * Select the underlying LLM. If not set, would default to gpt-4o.
1287
1287
  */
1288
- model?: 'gpt-3.5-turbo' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
1288
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
1289
1289
 
1290
1290
  /**
1291
1291
  * Name of the starting state. Required if states is not empty.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.2.0'; // x-release-please-version
1
+ export const VERSION = '4.4.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.2.0";
1
+ export declare const VERSION = "4.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.2.0'; // x-release-please-version
4
+ exports.VERSION = '4.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.2.0'; // x-release-please-version
1
+ export const VERSION = '4.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map