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.
- package/CHANGELOG.md +35 -0
- package/package.json +2 -2
- package/resources/agent.d.ts +333 -9
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.ts +36 -56
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js.map +1 -1
- package/resources/call.mjs.map +1 -1
- package/resources/llm.d.ts +15 -15
- package/resources/llm.d.ts.map +1 -1
- package/src/resources/agent.ts +411 -9
- package/src/resources/call.ts +36 -58
- package/src/resources/llm.ts +15 -15
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/call.ts
CHANGED
|
@@ -99,11 +99,9 @@ export interface PhoneCallResponse {
|
|
|
99
99
|
to_number: string;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
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
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
233
|
+
call_successful?: boolean;
|
|
236
234
|
|
|
237
235
|
/**
|
|
238
|
-
*
|
|
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
|
-
|
|
238
|
+
call_summary?: string;
|
|
251
239
|
|
|
252
240
|
/**
|
|
253
|
-
*
|
|
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
|
-
|
|
244
|
+
custom_analysis_data?: unknown;
|
|
256
245
|
|
|
257
246
|
/**
|
|
258
|
-
*
|
|
247
|
+
* Whether the call is entered voicemail.
|
|
259
248
|
*/
|
|
260
|
-
|
|
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
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
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
|
-
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
673
|
+
call_successful?: boolean;
|
|
687
674
|
|
|
688
675
|
/**
|
|
689
|
-
*
|
|
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
|
-
|
|
678
|
+
call_summary?: string;
|
|
702
679
|
|
|
703
680
|
/**
|
|
704
|
-
*
|
|
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
|
-
|
|
684
|
+
custom_analysis_data?: unknown;
|
|
707
685
|
|
|
708
686
|
/**
|
|
709
|
-
*
|
|
687
|
+
* Whether the call is entered voicemail.
|
|
710
688
|
*/
|
|
711
|
-
|
|
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
|
/**
|
package/src/resources/llm.ts
CHANGED
|
@@ -96,16 +96,16 @@ export interface LlmResponse {
|
|
|
96
96
|
> | null;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* For inbound phone calls
|
|
100
|
-
*
|
|
101
|
-
*
|
|
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-
|
|
106
|
+
* Select the underlying LLM. If not set, would default to gpt-4o.
|
|
107
107
|
*/
|
|
108
|
-
model?: 'gpt-
|
|
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
|
|
691
|
-
*
|
|
692
|
-
*
|
|
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-
|
|
697
|
+
* Select the underlying LLM. If not set, would default to gpt-4o.
|
|
698
698
|
*/
|
|
699
|
-
model?: 'gpt-
|
|
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
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
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-
|
|
1286
|
+
* Select the underlying LLM. If not set, would default to gpt-4o.
|
|
1287
1287
|
*/
|
|
1288
|
-
model?: 'gpt-
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "4.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|