retell-sdk 3.7.0 → 3.9.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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.9.0 (2024-04-24)
4
+
5
+ Full Changelog: [v3.8.0...v3.9.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v3.8.0...v3.9.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** OpenAPI spec update via Stainless API ([#61](https://github.com/RetellAI/retell-typescript-sdk/issues/61)) ([7439431](https://github.com/RetellAI/retell-typescript-sdk/commit/7439431773de5d6095be811b1d8c80d94aa05f12))
10
+ * **api:** OpenAPI spec update via Stainless API ([#62](https://github.com/RetellAI/retell-typescript-sdk/issues/62)) ([e306f52](https://github.com/RetellAI/retell-typescript-sdk/commit/e306f5297ecf3c4df5f0f0eb18d2b85cbbb27020))
11
+ * **api:** update via SDK Studio ([#58](https://github.com/RetellAI/retell-typescript-sdk/issues/58)) ([bd1dfdc](https://github.com/RetellAI/retell-typescript-sdk/commit/bd1dfdc2ead997e38d3043a502f0a14b49b3fbce))
12
+ * **api:** update via SDK Studio ([#60](https://github.com/RetellAI/retell-typescript-sdk/issues/60)) ([530ecb2](https://github.com/RetellAI/retell-typescript-sdk/commit/530ecb27c6f1bcf7c5880ebbb8ea39b70ad45ce9))
13
+ * **api:** update via SDK Studio ([#63](https://github.com/RetellAI/retell-typescript-sdk/issues/63)) ([28cdc27](https://github.com/RetellAI/retell-typescript-sdk/commit/28cdc27632b7940651f73f46db7eed9f474b0c13))
14
+ * **api:** update via SDK Studio ([#64](https://github.com/RetellAI/retell-typescript-sdk/issues/64)) ([a555e7f](https://github.com/RetellAI/retell-typescript-sdk/commit/a555e7fc41320e80612408b0d2ab069bb1c4994a))
15
+ * **api:** update via SDK Studio ([#65](https://github.com/RetellAI/retell-typescript-sdk/issues/65)) ([2a7b667](https://github.com/RetellAI/retell-typescript-sdk/commit/2a7b667c38ae48f6e8b82b96f08545665c7dcaf9))
16
+ * **api:** update via SDK Studio ([#66](https://github.com/RetellAI/retell-typescript-sdk/issues/66)) ([3fbaa13](https://github.com/RetellAI/retell-typescript-sdk/commit/3fbaa13d05d545eb7ec93f4afe97cc64e5e737c7))
17
+
18
+ ## 3.8.0 (2024-04-21)
19
+
20
+ Full Changelog: [v3.7.0...v3.8.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v3.7.0...v3.8.0)
21
+
22
+ ### Features
23
+
24
+ * **api:** update via SDK Studio ([#56](https://github.com/RetellAI/retell-typescript-sdk/issues/56)) ([9925297](https://github.com/RetellAI/retell-typescript-sdk/commit/9925297fc89f41ae891a2a38db565d220164537c))
25
+
3
26
  ## 3.7.0 (2024-04-20)
4
27
 
5
28
  Full Changelog: [v3.6.0...v3.7.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v3.6.0...v3.7.0)
package/README.md CHANGED
@@ -20,7 +20,9 @@ The full API of this library can be found in [api.md](api.md).
20
20
  ```js
21
21
  import Retell from 'retell-sdk';
22
22
 
23
- const retell = new Retell();
23
+ const retell = new Retell({
24
+ apiKey: 'YOUR_RETELL_API_KEY',
25
+ });
24
26
 
25
27
  async function main() {
26
28
  const agentResponse = await retell.agent.create({
@@ -42,7 +44,9 @@ This library includes TypeScript definitions for all request params and response
42
44
  ```ts
43
45
  import Retell from 'retell-sdk';
44
46
 
45
- const retell = new Retell();
47
+ const retell = new Retell({
48
+ apiKey: 'YOUR_RETELL_API_KEY',
49
+ });
46
50
 
47
51
  async function main() {
48
52
  const params: Retell.AgentCreateParams = {
package/index.d.mts CHANGED
@@ -94,13 +94,13 @@ export declare class Retell extends Core.APIClient {
94
94
  static InternalServerError: typeof Errors.InternalServerError;
95
95
  static PermissionDeniedError: typeof Errors.PermissionDeniedError;
96
96
  static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
97
+ static toFile: typeof Uploads.toFile;
98
+ static fileFromPath: typeof Uploads.fileFromPath;
97
99
  }
98
100
  export declare const RetellError: typeof Errors.RetellError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, PermissionDeniedError: typeof Errors.PermissionDeniedError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
99
101
  export import toFile = Uploads.toFile;
100
102
  export import fileFromPath = Uploads.fileFromPath;
101
103
  export declare namespace Retell {
102
- export import toFile = Uploads.toFile;
103
- export import fileFromPath = Uploads.fileFromPath;
104
104
  export import RequestOptions = Core.RequestOptions;
105
105
  export import Call = API.Call;
106
106
  export import CallResponse = API.CallResponse;
package/index.d.ts CHANGED
@@ -94,13 +94,13 @@ export declare class Retell extends Core.APIClient {
94
94
  static InternalServerError: typeof Errors.InternalServerError;
95
95
  static PermissionDeniedError: typeof Errors.PermissionDeniedError;
96
96
  static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
97
+ static toFile: typeof Uploads.toFile;
98
+ static fileFromPath: typeof Uploads.fileFromPath;
97
99
  }
98
100
  export declare const RetellError: typeof Errors.RetellError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, PermissionDeniedError: typeof Errors.PermissionDeniedError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
99
101
  export import toFile = Uploads.toFile;
100
102
  export import fileFromPath = Uploads.fileFromPath;
101
103
  export declare namespace Retell {
102
- export import toFile = Uploads.toFile;
103
- export import fileFromPath = Uploads.fileFromPath;
104
104
  export import RequestOptions = Core.RequestOptions;
105
105
  export import Call = API.Call;
106
106
  export import CallResponse = API.CallResponse;
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,GAAG,MAAM,4BAA4B,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEpC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAE/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC;CAClC;AAED,sDAAsD;AACtD,qBAAa,MAAO,SAAQ,IAAI,CAAC,SAAS;IACxC,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,QAAQ,CAAgB;IAEhC;;;;;;;;;;;OAWG;gBACS,EAAE,OAAyC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAyBzF,IAAI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CAAC;IAExD,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;IAC5B,MAAM,QAAQ,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IAC5C,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IACpD,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IACpD,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;CACrD;AAED,eAAe,MAAM,CAAC"}
package/index.js CHANGED
@@ -100,13 +100,12 @@ Retell.AuthenticationError = Errors.AuthenticationError;
100
100
  Retell.InternalServerError = Errors.InternalServerError;
101
101
  Retell.PermissionDeniedError = Errors.PermissionDeniedError;
102
102
  Retell.UnprocessableEntityError = Errors.UnprocessableEntityError;
103
+ Retell.toFile = Uploads.toFile;
104
+ Retell.fileFromPath = Uploads.fileFromPath;
103
105
  exports.RetellError = Errors.RetellError, exports.APIError = Errors.APIError, exports.APIConnectionError = Errors.APIConnectionError, exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError, exports.APIUserAbortError = Errors.APIUserAbortError, exports.NotFoundError = Errors.NotFoundError, exports.ConflictError = Errors.ConflictError, exports.RateLimitError = Errors.RateLimitError, exports.BadRequestError = Errors.BadRequestError, exports.AuthenticationError = Errors.AuthenticationError, exports.InternalServerError = Errors.InternalServerError, exports.PermissionDeniedError = Errors.PermissionDeniedError, exports.UnprocessableEntityError = Errors.UnprocessableEntityError;
104
106
  exports.toFile = Uploads.toFile;
105
107
  exports.fileFromPath = Uploads.fileFromPath;
106
108
  (function (Retell) {
107
- // Helper functions
108
- Retell.toFile = Uploads.toFile;
109
- Retell.fileFromPath = Uploads.fileFromPath;
110
109
  Retell.Call = API.Call;
111
110
  Retell.PhoneNumber = API.PhoneNumber;
112
111
  Retell.Agent = API.Agent;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings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AM,KAAN,cAAM,QA4BtB;AAED,kBAAe,MAAM,CAAC"}
package/index.mjs CHANGED
@@ -73,13 +73,12 @@ Retell.AuthenticationError = Errors.AuthenticationError;
73
73
  Retell.InternalServerError = Errors.InternalServerError;
74
74
  Retell.PermissionDeniedError = Errors.PermissionDeniedError;
75
75
  Retell.UnprocessableEntityError = Errors.UnprocessableEntityError;
76
+ Retell.toFile = Uploads.toFile;
77
+ Retell.fileFromPath = Uploads.fileFromPath;
76
78
  export const { RetellError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } = Errors;
77
79
  export var toFile = Uploads.toFile;
78
80
  export var fileFromPath = Uploads.fileFromPath;
79
81
  (function (Retell) {
80
- // Helper functions
81
- Retell.toFile = Uploads.toFile;
82
- Retell.fileFromPath = Uploads.fileFromPath;
83
82
  Retell.Call = API.Call;
84
83
  Retell.PhoneNumber = API.PhoneNumber;
85
84
  Retell.Agent = API.Agent;
package/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAE/E,KAAK,IAAI;OACT,KAAK,MAAM;OAEX,KAAK,OAAO;OACZ,KAAK,EAAE,MAAM,IAAI;OACjB,KAAK,GAAG,MAAM,4BAA4B;AA8DjD,sDAAsD;AACtD,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,SAAS;IAKxC;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAiB;QACvF,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,WAAW,CAC1B,6JAA6J,CAC9J,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAA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yB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,GAAG,MAAM,CAAC;AAEX,MAAM,KAAQ,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACtC,MAAM,KAAQ,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAElD,WAAiB,MAAM;IAGP,WAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAQhB,kBAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IAM9B,YAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAMlB,UAAG,GAAG,GAAG,CAAC,GAAG,CAAC;AAK9B,CAAC,EA5BgB,MAAM,KAAN,MAAM,QA4BtB;AAED,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-sdk",
3
- "version": "3.7.0",
3
+ "version": "3.9.0",
4
4
  "description": "The official TypeScript library for the Retell API",
5
5
  "author": "Retell <founders@retellai.com>",
6
6
  "types": "./index.d.ts",
@@ -20,67 +20,20 @@ export declare class Call extends APIResource {
20
20
  */
21
21
  register(body: CallRegisterParams, options?: Core.RequestOptions): Core.APIPromise<RegisterCallResponse>;
22
22
  }
23
- export interface CallResponse {
23
+ export interface CallResponse extends RegisterCallResponse {
24
24
  /**
25
- * Corresponding agent id of this call.
26
- */
27
- agent_id: string;
28
- /**
29
- * The audio encoding of the call. The following formats are supported:
30
- *
31
- * - `s16le` 16 bit linear PCM audio, the native format for web audio capture and
32
- * playback.
33
- *
34
- * - `mulaw` non-linear audio encoding technique used in telephony. Commonly used
35
- * by Twilio.
36
- */
37
- audio_encoding: 's16le' | 'mulaw';
38
- /**
39
- * Where the audio websocket would connect from would determine the format /
40
- * protocol of websocket messages, and would determine how our server read audio
41
- * bytes and send audio bytes.:
42
- *
43
- * - `web`: The protocol defined by Retell, commonly used for connecting from web
44
- * frontend. Also useful for those who want to manipulate audio bytes directly.
45
- *
46
- * - `twilio`: The
47
- * [websocket protocol](https://www.twilio.com/docs/voice/twiml/stream#message-media)
48
- * defined by Twilio, used when your system uses Twilio, and supplies Retell
49
- * audio websocket url to Twilio.
50
- */
51
- audio_websocket_protocol: 'web' | 'twilio';
52
- /**
53
- * Unique id of the call. Used to identify in LLM websocket and used to
54
- * authenticate in audio websocket.
55
- */
56
- call_id: string;
57
- /**
58
- * Status of call.
59
- *
60
- * - `registered`: Call id issued, ready to make a call using this id.
61
- *
62
- * - `ongoing`: Call connected and ongoing.
63
- *
64
- * - `ended`: The underlying websocket has ended for the call. Either user or agent
65
- * hanged up, or call transferred.
66
- *
67
- * - `error`: Call encountered error.
25
+ * Post conversation evaluation of the call. Including information such as
26
+ * sentiment, intent, call completion status and other metrics. Available after
27
+ * call ends. Subscribe to "call_analyzed" webhook event type to receive it once
28
+ * ready.
68
29
  */
69
- call_status: 'registered' | 'ongoing' | 'ended' | 'error';
30
+ conversation_eval?: CallResponse.ConversationEval;
70
31
  /**
71
- * Sample rate of the conversation, the input and output audio bytes will all
72
- * conform to this rate. Check the audio source, audio format, and voice used for
73
- * the agent to select one that works. supports value ranging from [8000, 48000].
74
- * Note for Twilio `mulaw` encoding, the sample rate has to be 8000.
75
- *
76
- * - `s16le` sample rate recommendation (natively supported, lowest latency):
77
- *
78
- * - elevenlabs voices: 16000, 22050, 24000, 44100.
79
- * - openai voices: 24000.
80
- *
81
- * - deepgram voices: 8000, 16000, 24000, 32000, 48000.
32
+ * The reason for the disconnection of the call. Debug using explanation in docs
33
+ * based on the reason code. Please reachout to Retell team having trouble
34
+ * understanding the reason.
82
35
  */
83
- sample_rate: number;
36
+ disconnection_reason?: 'user_hangup' | 'agent_hangup' | 'call_transfer' | 'inactivity' | 'machine_detected' | 'concurrency_limit_reached' | 'error_llm_websocket_open' | 'error_llm_websocket_lost_connection' | 'error_llm_websocket_runtime' | 'error_llm_websocket_corrupt_payload' | 'error_frontend_corrupted_payload' | 'error_twilio' | 'error_no_audio_received' | 'error_asr' | 'error_retell' | 'error_unknown';
84
37
  /**
85
38
  * End to end latency (from user stops talking to agent start talking) tracking of
86
39
  * the call, available after call ends. This latency does not account for the
@@ -88,22 +41,10 @@ export interface CallResponse {
88
41
  * every time turn change between user and agent.
89
42
  */
90
43
  e2e_latency?: CallResponse.E2eLatency;
91
- /**
92
- * If users stay silent for a period, end the call. By default, it is set to
93
- * 600,000 ms (10 min). The minimum value allowed is 10,000 ms (10 s).
94
- */
95
- end_call_after_silence_ms?: number;
96
44
  /**
97
45
  * End timestamp (milliseconds since epoch) of the call. Available after call ends.
98
46
  */
99
47
  end_timestamp?: number;
100
- /**
101
- * The caller number. This field is storage purpose only, set this if you want the
102
- * call object to contain it so that it's easier to reference it. Not used for
103
- * processing, when we connect to your LLM websocket server, you can then get it
104
- * from the call object.
105
- */
106
- from_number?: string;
107
48
  /**
108
49
  * LLM latency (from issue of LLM call to first token received) tracking of the
109
50
  * call, available after call ends. When using custom LLM. this latency includes
@@ -116,13 +57,6 @@ export interface CallResponse {
116
57
  * LLM.
117
58
  */
118
59
  llm_websocket_network_rtt_latency?: CallResponse.LlmWebsocketNetworkRttLatency;
119
- /**
120
- * An abtriary object for storage purpose only. You can put anything here like your
121
- * own id for the call, twilio SID, internal customer id. Not used for processing,
122
- * when we connect to your LLM websocket server, you can then get it from the call
123
- * object.
124
- */
125
- metadata?: unknown;
126
60
  /**
127
61
  * Public log of the call, containing details about all the requests and responses
128
62
  * received in LLM WebSocket, latency tracking for each turntaking, helpful for
@@ -133,23 +67,11 @@ export interface CallResponse {
133
67
  * Recording of the call. Available after call ends.
134
68
  */
135
69
  recording_url?: string;
136
- /**
137
- * Add optional dynamic variables in key value pairs of string that injects into
138
- * your Retell LLM prompt and tool description. Only applicable for Retell LLM.
139
- */
140
- retell_llm_dynamic_variables?: Record<string, unknown>;
141
70
  /**
142
71
  * Begin timestamp (milliseconds since epoch) of the call. Available after call
143
72
  * starts.
144
73
  */
145
74
  start_timestamp?: number;
146
- /**
147
- * The callee number. This field is storage purpose only, set this if you want the
148
- * call object to contain it so that it's easier to reference it. Not used for
149
- * processing, when we connect to your LLM websocket server, you can then get it
150
- * from the call object.
151
- */
152
- to_number?: string;
153
75
  /**
154
76
  * Transcription of the call. Available after call ends.
155
77
  */
@@ -159,8 +81,50 @@ export interface CallResponse {
159
81
  * Available after call ends.
160
82
  */
161
83
  transcript_object?: Array<CallResponse.TranscriptObject>;
84
+ /**
85
+ * Transcript of the call weaved with tool call invocation and results. It
86
+ * precisely captures when (at what utterance, which word) the tool was invoked and
87
+ * what was the result. Available after call ends.
88
+ */
89
+ transcript_with_tool_calls?: Array<CallResponse.Utterance | CallResponse.ToolCallInvocationUtterance | CallResponse.ToolCallResultUtterance>;
162
90
  }
163
91
  export declare namespace CallResponse {
92
+ /**
93
+ * Post conversation evaluation of the call. Including information such as
94
+ * sentiment, intent, call completion status and other metrics. Available after
95
+ * call ends. Subscribe to "call_analyzed" webhook event type to receive it once
96
+ * ready.
97
+ */
98
+ interface ConversationEval {
99
+ /**
100
+ * Evaluate agent task completion status, whether the agent has completed his task.
101
+ */
102
+ agent_task_completion?: 'Completed' | 'Incomplete' | 'Partial';
103
+ /**
104
+ * Reason for the agent task completion status.
105
+ */
106
+ agent_task_completion_reason?: string;
107
+ /**
108
+ * Sentiment of the agent in the conversation.
109
+ */
110
+ agnet_sentiment?: 'Aggressive' | 'Friendly' | 'Neutral';
111
+ /**
112
+ * Evaluate whether the conversation ended normally or was cut off.
113
+ */
114
+ conversation_completion?: 'Completed' | 'Incomplete' | 'Partial';
115
+ /**
116
+ * Reason for the conversation completion status.
117
+ */
118
+ conversation_completion_reason?: string;
119
+ /**
120
+ * A high level summary of the conversation conversation.
121
+ */
122
+ conversation_summary?: string;
123
+ /**
124
+ * Sentiment of the user in the conversation.
125
+ */
126
+ user_sentiment?: 'Frustrated' | 'Positive' | 'Neutral';
127
+ }
164
128
  /**
165
129
  * End to end latency (from user stops talking to agent start talking) tracking of
166
130
  * the call, available after call ends. This latency does not account for the
@@ -301,6 +265,72 @@ export declare namespace CallResponse {
301
265
  word?: string;
302
266
  }
303
267
  }
268
+ interface Utterance {
269
+ /**
270
+ * Transcript of the utterances.
271
+ */
272
+ content: string;
273
+ /**
274
+ * Documents whether this utterance is spoken by agent or user.
275
+ */
276
+ role: 'agent' | 'user';
277
+ /**
278
+ * Array of words in the utternace with the word timestamp. Useful for
279
+ * understanding what word was spoken at what time. Note that the word timestamp is
280
+ * not guranteed to be accurate, it's more like an approximation.
281
+ */
282
+ words: Array<Utterance.Word>;
283
+ }
284
+ namespace Utterance {
285
+ interface Word {
286
+ /**
287
+ * End time of the word in the call in second. This is relative audio time, not
288
+ * wall time.
289
+ */
290
+ end?: number;
291
+ /**
292
+ * Start time of the word in the call in second. This is relative audio time, not
293
+ * wall time.
294
+ */
295
+ start?: number;
296
+ /**
297
+ * Word transcript (with punctuation if applicable).
298
+ */
299
+ word?: string;
300
+ }
301
+ }
302
+ interface ToolCallInvocationUtterance {
303
+ /**
304
+ * Arguments for this tool call, it's a stringified JSON object.
305
+ */
306
+ arguments: string;
307
+ /**
308
+ * Name of the function in this tool call.
309
+ */
310
+ name: string;
311
+ /**
312
+ * This is a tool call invocation.
313
+ */
314
+ role: 'tool_call_invocation';
315
+ /**
316
+ * Tool call id, globally unique.
317
+ */
318
+ tool_call_id: string;
319
+ }
320
+ interface ToolCallResultUtterance {
321
+ /**
322
+ * Result of the tool call, can be a string, a stringified json, etc.
323
+ */
324
+ content: string;
325
+ /**
326
+ * This is result of a tool call.
327
+ */
328
+ role: 'tool_call_result';
329
+ /**
330
+ * Tool call id, globally unique.
331
+ */
332
+ tool_call_id: string;
333
+ }
304
334
  }
305
335
  export interface RegisterCallResponse {
306
336
  /**
@@ -363,6 +393,11 @@ export interface RegisterCallResponse {
363
393
  * - deepgram voices: 8000, 16000, 24000, 32000, 48000.
364
394
  */
365
395
  sample_rate: number;
396
+ /**
397
+ * If set, will drop the call if machine (voicemail, IVR) is detected. If not set,
398
+ * default value of false will apply.
399
+ */
400
+ drop_call_if_machine_detected?: boolean;
366
401
  /**
367
402
  * If users stay silent for a period, end the call. By default, it is set to
368
403
  * 600,000 ms (10 min). The minimum value allowed is 10,000 ms (10 s).
@@ -405,6 +440,11 @@ export interface CallCreateParams {
405
440
  * The number you want to call, in BCP 47 format.
406
441
  */
407
442
  to_number: string;
443
+ /**
444
+ * If set, will drop the call if machine (voicemail, IVR) is detected. If not set,
445
+ * default value of false will apply.
446
+ */
447
+ drop_call_if_machine_detected?: boolean;
408
448
  /**
409
449
  * For this particular call, override the agent used with this agent id. This does
410
450
  * not bind the agent to this number, this is for one time override.
@@ -422,6 +462,11 @@ export interface CallListParams {
422
462
  * Limit the number of calls returned.
423
463
  */
424
464
  limit?: number;
465
+ /**
466
+ * The pagination call id to continue fetching the next page of calls. If not set,
467
+ * will start from the beginning.
468
+ */
469
+ pagination_key?: string;
425
470
  /**
426
471
  * The calls will be sorted by `start_timestamp`, whether to return the calls in
427
472
  * ascending or descending order.
@@ -1 +1 @@
1
- {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC;AAErD,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAIpG;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,cAA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,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AA8kBD,WAAiB,IAAI;AAOrB,CAAC,EAPgB,IAAI,KAAJ,IAAI,QAOpB"}
1
+ {"version":3,"file":"call.mjs","sourceRoot":"","sources":["../src/resources/call.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,qBAAqB;OAC1C,EAAE,gBAAgB,EAAE,MAAM,iBAAiB;AAGlD,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAOD,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAwB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AA4pBD,WAAiB,IAAI;AAOrB,CAAC,EAPgB,IAAI,KAAJ,IAAI,QAOpB"}
package/src/index.ts CHANGED
@@ -149,6 +149,9 @@ export class Retell extends Core.APIClient {
149
149
  static InternalServerError = Errors.InternalServerError;
150
150
  static PermissionDeniedError = Errors.PermissionDeniedError;
151
151
  static UnprocessableEntityError = Errors.UnprocessableEntityError;
152
+
153
+ static toFile = Uploads.toFile;
154
+ static fileFromPath = Uploads.fileFromPath;
152
155
  }
153
156
 
154
157
  export const {
@@ -171,10 +174,6 @@ export import toFile = Uploads.toFile;
171
174
  export import fileFromPath = Uploads.fileFromPath;
172
175
 
173
176
  export namespace Retell {
174
- // Helper functions
175
- export import toFile = Uploads.toFile;
176
- export import fileFromPath = Uploads.fileFromPath;
177
-
178
177
  export import RequestOptions = Core.RequestOptions;
179
178
 
180
179
  export import Call = API.Call;
@@ -43,72 +43,37 @@ export class Call extends APIResource {
43
43
  }
44
44
  }
45
45
 
46
- export interface CallResponse {
47
- /**
48
- * Corresponding agent id of this call.
49
- */
50
- agent_id: string;
51
-
52
- /**
53
- * The audio encoding of the call. The following formats are supported:
54
- *
55
- * - `s16le` 16 bit linear PCM audio, the native format for web audio capture and
56
- * playback.
57
- *
58
- * - `mulaw` non-linear audio encoding technique used in telephony. Commonly used
59
- * by Twilio.
60
- */
61
- audio_encoding: 's16le' | 'mulaw';
62
-
63
- /**
64
- * Where the audio websocket would connect from would determine the format /
65
- * protocol of websocket messages, and would determine how our server read audio
66
- * bytes and send audio bytes.:
67
- *
68
- * - `web`: The protocol defined by Retell, commonly used for connecting from web
69
- * frontend. Also useful for those who want to manipulate audio bytes directly.
70
- *
71
- * - `twilio`: The
72
- * [websocket protocol](https://www.twilio.com/docs/voice/twiml/stream#message-media)
73
- * defined by Twilio, used when your system uses Twilio, and supplies Retell
74
- * audio websocket url to Twilio.
75
- */
76
- audio_websocket_protocol: 'web' | 'twilio';
77
-
78
- /**
79
- * Unique id of the call. Used to identify in LLM websocket and used to
80
- * authenticate in audio websocket.
81
- */
82
- call_id: string;
83
-
84
- /**
85
- * Status of call.
86
- *
87
- * - `registered`: Call id issued, ready to make a call using this id.
88
- *
89
- * - `ongoing`: Call connected and ongoing.
90
- *
91
- * - `ended`: The underlying websocket has ended for the call. Either user or agent
92
- * hanged up, or call transferred.
93
- *
94
- * - `error`: Call encountered error.
95
- */
96
- call_status: 'registered' | 'ongoing' | 'ended' | 'error';
97
-
98
- /**
99
- * Sample rate of the conversation, the input and output audio bytes will all
100
- * conform to this rate. Check the audio source, audio format, and voice used for
101
- * the agent to select one that works. supports value ranging from [8000, 48000].
102
- * Note for Twilio `mulaw` encoding, the sample rate has to be 8000.
103
- *
104
- * - `s16le` sample rate recommendation (natively supported, lowest latency):
105
- *
106
- * - elevenlabs voices: 16000, 22050, 24000, 44100.
107
- * - openai voices: 24000.
108
- *
109
- * - deepgram voices: 8000, 16000, 24000, 32000, 48000.
110
- */
111
- sample_rate: number;
46
+ export interface CallResponse extends RegisterCallResponse {
47
+ /**
48
+ * Post conversation evaluation of the call. Including information such as
49
+ * sentiment, intent, call completion status and other metrics. Available after
50
+ * call ends. Subscribe to "call_analyzed" webhook event type to receive it once
51
+ * ready.
52
+ */
53
+ conversation_eval?: CallResponse.ConversationEval;
54
+
55
+ /**
56
+ * The reason for the disconnection of the call. Debug using explanation in docs
57
+ * based on the reason code. Please reachout to Retell team having trouble
58
+ * understanding the reason.
59
+ */
60
+ disconnection_reason?:
61
+ | 'user_hangup'
62
+ | 'agent_hangup'
63
+ | 'call_transfer'
64
+ | 'inactivity'
65
+ | 'machine_detected'
66
+ | 'concurrency_limit_reached'
67
+ | 'error_llm_websocket_open'
68
+ | 'error_llm_websocket_lost_connection'
69
+ | 'error_llm_websocket_runtime'
70
+ | 'error_llm_websocket_corrupt_payload'
71
+ | 'error_frontend_corrupted_payload'
72
+ | 'error_twilio'
73
+ | 'error_no_audio_received'
74
+ | 'error_asr'
75
+ | 'error_retell'
76
+ | 'error_unknown';
112
77
 
113
78
  /**
114
79
  * End to end latency (from user stops talking to agent start talking) tracking of
@@ -118,25 +83,11 @@ export interface CallResponse {
118
83
  */
119
84
  e2e_latency?: CallResponse.E2eLatency;
120
85
 
121
- /**
122
- * If users stay silent for a period, end the call. By default, it is set to
123
- * 600,000 ms (10 min). The minimum value allowed is 10,000 ms (10 s).
124
- */
125
- end_call_after_silence_ms?: number;
126
-
127
86
  /**
128
87
  * End timestamp (milliseconds since epoch) of the call. Available after call ends.
129
88
  */
130
89
  end_timestamp?: number;
131
90
 
132
- /**
133
- * The caller number. This field is storage purpose only, set this if you want the
134
- * call object to contain it so that it's easier to reference it. Not used for
135
- * processing, when we connect to your LLM websocket server, you can then get it
136
- * from the call object.
137
- */
138
- from_number?: string;
139
-
140
91
  /**
141
92
  * LLM latency (from issue of LLM call to first token received) tracking of the
142
93
  * call, available after call ends. When using custom LLM. this latency includes
@@ -151,14 +102,6 @@ export interface CallResponse {
151
102
  */
152
103
  llm_websocket_network_rtt_latency?: CallResponse.LlmWebsocketNetworkRttLatency;
153
104
 
154
- /**
155
- * An abtriary object for storage purpose only. You can put anything here like your
156
- * own id for the call, twilio SID, internal customer id. Not used for processing,
157
- * when we connect to your LLM websocket server, you can then get it from the call
158
- * object.
159
- */
160
- metadata?: unknown;
161
-
162
105
  /**
163
106
  * Public log of the call, containing details about all the requests and responses
164
107
  * received in LLM WebSocket, latency tracking for each turntaking, helpful for
@@ -171,26 +114,12 @@ export interface CallResponse {
171
114
  */
172
115
  recording_url?: string;
173
116
 
174
- /**
175
- * Add optional dynamic variables in key value pairs of string that injects into
176
- * your Retell LLM prompt and tool description. Only applicable for Retell LLM.
177
- */
178
- retell_llm_dynamic_variables?: Record<string, unknown>;
179
-
180
117
  /**
181
118
  * Begin timestamp (milliseconds since epoch) of the call. Available after call
182
119
  * starts.
183
120
  */
184
121
  start_timestamp?: number;
185
122
 
186
- /**
187
- * The callee number. This field is storage purpose only, set this if you want the
188
- * call object to contain it so that it's easier to reference it. Not used for
189
- * processing, when we connect to your LLM websocket server, you can then get it
190
- * from the call object.
191
- */
192
- to_number?: string;
193
-
194
123
  /**
195
124
  * Transcription of the call. Available after call ends.
196
125
  */
@@ -201,9 +130,61 @@ export interface CallResponse {
201
130
  * Available after call ends.
202
131
  */
203
132
  transcript_object?: Array<CallResponse.TranscriptObject>;
133
+
134
+ /**
135
+ * Transcript of the call weaved with tool call invocation and results. It
136
+ * precisely captures when (at what utterance, which word) the tool was invoked and
137
+ * what was the result. Available after call ends.
138
+ */
139
+ transcript_with_tool_calls?: Array<
140
+ CallResponse.Utterance | CallResponse.ToolCallInvocationUtterance | CallResponse.ToolCallResultUtterance
141
+ >;
204
142
  }
205
143
 
206
144
  export namespace CallResponse {
145
+ /**
146
+ * Post conversation evaluation of the call. Including information such as
147
+ * sentiment, intent, call completion status and other metrics. Available after
148
+ * call ends. Subscribe to "call_analyzed" webhook event type to receive it once
149
+ * ready.
150
+ */
151
+ export interface ConversationEval {
152
+ /**
153
+ * Evaluate agent task completion status, whether the agent has completed his task.
154
+ */
155
+ agent_task_completion?: 'Completed' | 'Incomplete' | 'Partial';
156
+
157
+ /**
158
+ * Reason for the agent task completion status.
159
+ */
160
+ agent_task_completion_reason?: string;
161
+
162
+ /**
163
+ * Sentiment of the agent in the conversation.
164
+ */
165
+ agnet_sentiment?: 'Aggressive' | 'Friendly' | 'Neutral';
166
+
167
+ /**
168
+ * Evaluate whether the conversation ended normally or was cut off.
169
+ */
170
+ conversation_completion?: 'Completed' | 'Incomplete' | 'Partial';
171
+
172
+ /**
173
+ * Reason for the conversation completion status.
174
+ */
175
+ conversation_completion_reason?: string;
176
+
177
+ /**
178
+ * A high level summary of the conversation conversation.
179
+ */
180
+ conversation_summary?: string;
181
+
182
+ /**
183
+ * Sentiment of the user in the conversation.
184
+ */
185
+ user_sentiment?: 'Frustrated' | 'Positive' | 'Neutral';
186
+ }
187
+
207
188
  /**
208
189
  * End to end latency (from user stops talking to agent start talking) tracking of
209
190
  * the call, available after call ends. This latency does not account for the
@@ -370,6 +351,85 @@ export namespace CallResponse {
370
351
  word?: string;
371
352
  }
372
353
  }
354
+
355
+ export interface Utterance {
356
+ /**
357
+ * Transcript of the utterances.
358
+ */
359
+ content: string;
360
+
361
+ /**
362
+ * Documents whether this utterance is spoken by agent or user.
363
+ */
364
+ role: 'agent' | 'user';
365
+
366
+ /**
367
+ * Array of words in the utternace with the word timestamp. Useful for
368
+ * understanding what word was spoken at what time. Note that the word timestamp is
369
+ * not guranteed to be accurate, it's more like an approximation.
370
+ */
371
+ words: Array<Utterance.Word>;
372
+ }
373
+
374
+ export namespace Utterance {
375
+ export interface Word {
376
+ /**
377
+ * End time of the word in the call in second. This is relative audio time, not
378
+ * wall time.
379
+ */
380
+ end?: number;
381
+
382
+ /**
383
+ * Start time of the word in the call in second. This is relative audio time, not
384
+ * wall time.
385
+ */
386
+ start?: number;
387
+
388
+ /**
389
+ * Word transcript (with punctuation if applicable).
390
+ */
391
+ word?: string;
392
+ }
393
+ }
394
+
395
+ export interface ToolCallInvocationUtterance {
396
+ /**
397
+ * Arguments for this tool call, it's a stringified JSON object.
398
+ */
399
+ arguments: string;
400
+
401
+ /**
402
+ * Name of the function in this tool call.
403
+ */
404
+ name: string;
405
+
406
+ /**
407
+ * This is a tool call invocation.
408
+ */
409
+ role: 'tool_call_invocation';
410
+
411
+ /**
412
+ * Tool call id, globally unique.
413
+ */
414
+ tool_call_id: string;
415
+ }
416
+
417
+ export interface ToolCallResultUtterance {
418
+ /**
419
+ * Result of the tool call, can be a string, a stringified json, etc.
420
+ */
421
+ content: string;
422
+
423
+ /**
424
+ * This is result of a tool call.
425
+ */
426
+ role: 'tool_call_result';
427
+
428
+ /**
429
+ * Tool call id, globally unique.
430
+ */
431
+ tool_call_id: string;
432
+ }
373
433
  }
374
434
 
375
435
  export interface RegisterCallResponse {
@@ -439,6 +499,12 @@ export interface RegisterCallResponse {
439
499
  */
440
500
  sample_rate: number;
441
501
 
502
+ /**
503
+ * If set, will drop the call if machine (voicemail, IVR) is detected. If not set,
504
+ * default value of false will apply.
505
+ */
506
+ drop_call_if_machine_detected?: boolean;
507
+
442
508
  /**
443
509
  * If users stay silent for a period, end the call. By default, it is set to
444
510
  * 600,000 ms (10 min). The minimum value allowed is 10,000 ms (10 s).
@@ -489,6 +555,12 @@ export interface CallCreateParams {
489
555
  */
490
556
  to_number: string;
491
557
 
558
+ /**
559
+ * If set, will drop the call if machine (voicemail, IVR) is detected. If not set,
560
+ * default value of false will apply.
561
+ */
562
+ drop_call_if_machine_detected?: boolean;
563
+
492
564
  /**
493
565
  * For this particular call, override the agent used with this agent id. This does
494
566
  * not bind the agent to this number, this is for one time override.
@@ -510,6 +582,12 @@ export interface CallListParams {
510
582
  */
511
583
  limit?: number;
512
584
 
585
+ /**
586
+ * The pagination call id to continue fetching the next page of calls. If not set,
587
+ * will start from the beginning.
588
+ */
589
+ pagination_key?: string;
590
+
513
591
  /**
514
592
  * The calls will be sorted by `start_timestamp`, whether to return the calls in
515
593
  * ascending or descending order.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.7.0'; // x-release-please-version
1
+ export const VERSION = '3.9.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.7.0";
1
+ export declare const VERSION = "3.9.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 = '3.7.0'; // x-release-please-version
4
+ exports.VERSION = '3.9.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.7.0'; // x-release-please-version
1
+ export const VERSION = '3.9.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map