retell-sdk 3.10.0 → 3.11.1
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 +8 -0
- package/package.json +2 -1
- package/resources/agent.d.ts +90 -54
- 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 +23 -23
- package/resources/call.d.ts.map +1 -1
- package/src/resources/agent.ts +102 -54
- package/src/resources/call.ts +23 -23
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.11.0 (2024-04-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.10.0...v3.11.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v3.10.0...v3.11.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** OpenAPI spec update via Stainless API ([#71](https://github.com/RetellAI/retell-typescript-sdk/issues/71)) ([a90064f](https://github.com/RetellAI/retell-typescript-sdk/commit/a90064faab3fb56385a26a34b85fd79d7772a168))
|
|
10
|
+
|
|
3
11
|
## 3.10.0 (2024-04-26)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v3.9.0...v3.10.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v3.9.0...v3.10.0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "retell-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "The official TypeScript library for the Retell API",
|
|
5
5
|
"author": "Retell <founders@retellai.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@types/qs": "^6.9.7",
|
|
28
28
|
"abort-controller": "^3.0.0",
|
|
29
29
|
"agentkeepalive": "^4.2.1",
|
|
30
|
+
"crypto": "^1.0.1",
|
|
30
31
|
"form-data-encoder": "1.7.2",
|
|
31
32
|
"formdata-node": "^4.3.2",
|
|
32
33
|
"node-fetch": "^2.6.7",
|
package/resources/agent.d.ts
CHANGED
|
@@ -71,6 +71,22 @@ export interface AgentResponse {
|
|
|
71
71
|
* Set to `null` to remove ambient sound from this agent.
|
|
72
72
|
*/
|
|
73
73
|
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | 'static-noise' | null;
|
|
74
|
+
/**
|
|
75
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
76
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
77
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
78
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
79
|
+
*/
|
|
80
|
+
backchannel_frequency?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
83
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
84
|
+
* Check out
|
|
85
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
86
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
87
|
+
* so it's recommended to expeirment before adding any words.
|
|
88
|
+
*/
|
|
89
|
+
backchannel_words?: Array<string>;
|
|
74
90
|
/**
|
|
75
91
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
76
92
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -93,25 +109,9 @@ export interface AgentResponse {
|
|
|
93
109
|
*/
|
|
94
110
|
interruption_sensitivity?: number;
|
|
95
111
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* This setting specifies the agent's operational language, including base language
|
|
99
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
100
|
-
* currently only recognizes the base language.
|
|
101
|
-
*
|
|
112
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
102
113
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
103
|
-
* English
|
|
104
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
105
|
-
*
|
|
106
|
-
* If unset, will use default value `en-US`.
|
|
107
|
-
*
|
|
108
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
109
|
-
* Portuguese(pt)
|
|
110
|
-
*
|
|
111
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
112
|
-
* Portuguese(pt), Japanese(ja)
|
|
113
|
-
*
|
|
114
|
-
* - `deepgram voices`: supports English(en)
|
|
114
|
+
* English. If unset, will use default value `en-US`.
|
|
115
115
|
*/
|
|
116
116
|
language?: 'en-US' | 'en-IN' | 'en-GB' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'fr-FR';
|
|
117
117
|
/**
|
|
@@ -120,6 +120,18 @@ export interface AgentResponse {
|
|
|
120
120
|
* apply.
|
|
121
121
|
*/
|
|
122
122
|
opt_out_sensitive_data_storage?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* If set, controls how many times agent would remind user when user is
|
|
125
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
126
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
127
|
+
*/
|
|
128
|
+
reminder_max_count?: number;
|
|
129
|
+
/**
|
|
130
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
131
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
132
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
133
|
+
*/
|
|
134
|
+
reminder_trigger_ms?: number;
|
|
123
135
|
/**
|
|
124
136
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
125
137
|
* means less responsive agent (wait more, respond slower), while higher value
|
|
@@ -188,6 +200,22 @@ export interface AgentCreateParams {
|
|
|
188
200
|
* Set to `null` to remove ambient sound from this agent.
|
|
189
201
|
*/
|
|
190
202
|
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | 'static-noise' | null;
|
|
203
|
+
/**
|
|
204
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
205
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
206
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
207
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
208
|
+
*/
|
|
209
|
+
backchannel_frequency?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
212
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
213
|
+
* Check out
|
|
214
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
215
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
216
|
+
* so it's recommended to expeirment before adding any words.
|
|
217
|
+
*/
|
|
218
|
+
backchannel_words?: Array<string>;
|
|
191
219
|
/**
|
|
192
220
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
193
221
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -210,25 +238,9 @@ export interface AgentCreateParams {
|
|
|
210
238
|
*/
|
|
211
239
|
interruption_sensitivity?: number;
|
|
212
240
|
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* This setting specifies the agent's operational language, including base language
|
|
216
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
217
|
-
* currently only recognizes the base language.
|
|
218
|
-
*
|
|
241
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
219
242
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
220
|
-
* English
|
|
221
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
222
|
-
*
|
|
223
|
-
* If unset, will use default value `en-US`.
|
|
224
|
-
*
|
|
225
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
226
|
-
* Portuguese(pt)
|
|
227
|
-
*
|
|
228
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
229
|
-
* Portuguese(pt), Japanese(ja)
|
|
230
|
-
*
|
|
231
|
-
* - `deepgram voices`: supports English(en)
|
|
243
|
+
* English. If unset, will use default value `en-US`.
|
|
232
244
|
*/
|
|
233
245
|
language?: 'en-US' | 'en-IN' | 'en-GB' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'fr-FR';
|
|
234
246
|
/**
|
|
@@ -237,6 +249,18 @@ export interface AgentCreateParams {
|
|
|
237
249
|
* apply.
|
|
238
250
|
*/
|
|
239
251
|
opt_out_sensitive_data_storage?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* If set, controls how many times agent would remind user when user is
|
|
254
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
255
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
256
|
+
*/
|
|
257
|
+
reminder_max_count?: number;
|
|
258
|
+
/**
|
|
259
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
260
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
261
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
262
|
+
*/
|
|
263
|
+
reminder_trigger_ms?: number;
|
|
240
264
|
/**
|
|
241
265
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
242
266
|
* means less responsive agent (wait more, respond slower), while higher value
|
|
@@ -293,6 +317,22 @@ export interface AgentUpdateParams {
|
|
|
293
317
|
* Set to `null` to remove ambient sound from this agent.
|
|
294
318
|
*/
|
|
295
319
|
ambient_sound?: 'coffee-shop' | 'convention-hall' | 'summer-outdoor' | 'mountain-outdoor' | 'static-noise' | null;
|
|
320
|
+
/**
|
|
321
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
322
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
323
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
324
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
325
|
+
*/
|
|
326
|
+
backchannel_frequency?: number;
|
|
327
|
+
/**
|
|
328
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
329
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
330
|
+
* Check out
|
|
331
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
332
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
333
|
+
* so it's recommended to expeirment before adding any words.
|
|
334
|
+
*/
|
|
335
|
+
backchannel_words?: Array<string>;
|
|
296
336
|
/**
|
|
297
337
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
298
338
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -315,25 +355,9 @@ export interface AgentUpdateParams {
|
|
|
315
355
|
*/
|
|
316
356
|
interruption_sensitivity?: number;
|
|
317
357
|
/**
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
* This setting specifies the agent's operational language, including base language
|
|
321
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
322
|
-
* currently only recognizes the base language.
|
|
323
|
-
*
|
|
358
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
324
359
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
325
|
-
* English
|
|
326
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
327
|
-
*
|
|
328
|
-
* If unset, will use default value `en-US`.
|
|
329
|
-
*
|
|
330
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
331
|
-
* Portuguese(pt)
|
|
332
|
-
*
|
|
333
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
334
|
-
* Portuguese(pt), Japanese(ja)
|
|
335
|
-
*
|
|
336
|
-
* - `deepgram voices`: supports English(en)
|
|
360
|
+
* English. If unset, will use default value `en-US`.
|
|
337
361
|
*/
|
|
338
362
|
language?: 'en-US' | 'en-IN' | 'en-GB' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'fr-FR';
|
|
339
363
|
/**
|
|
@@ -348,6 +372,18 @@ export interface AgentUpdateParams {
|
|
|
348
372
|
* apply.
|
|
349
373
|
*/
|
|
350
374
|
opt_out_sensitive_data_storage?: boolean;
|
|
375
|
+
/**
|
|
376
|
+
* If set, controls how many times agent would remind user when user is
|
|
377
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
378
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
379
|
+
*/
|
|
380
|
+
reminder_max_count?: number;
|
|
381
|
+
/**
|
|
382
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
383
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
384
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
385
|
+
*/
|
|
386
|
+
reminder_trigger_ms?: number;
|
|
351
387
|
/**
|
|
352
388
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
353
389
|
* means less responsive agent (wait more, respond slower), while higher value
|
package/resources/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,4BAA4B,CAAC;AAEvD,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,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@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,kDAAkD;AAGlD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,OAAO,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,sBA0CC;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,kDAAkD;AAGlD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,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,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,OAAO,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAqfD,WAAiB,KAAK;AAKtB,CAAC,EALgB,KAAK,KAAL,KAAK,QAKrB"}
|
package/resources/call.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface CallResponse extends RegisterCallResponse {
|
|
|
28
28
|
* completion status and other metrics. Available after call ends. Subscribe to
|
|
29
29
|
* `call_analyzed` webhook event type to receive it once ready.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
call_analysis?: CallResponse.CallAnalysis;
|
|
32
32
|
/**
|
|
33
33
|
* The reason for the disconnection of the call. Debug using explanation in docs
|
|
34
34
|
* based on the reason code. Please reachout to Retell team having trouble
|
|
@@ -97,33 +97,33 @@ export declare namespace CallResponse {
|
|
|
97
97
|
* completion status and other metrics. Available after call ends. Subscribe to
|
|
98
98
|
* `call_analyzed` webhook event type to receive it once ready.
|
|
99
99
|
*/
|
|
100
|
-
interface
|
|
100
|
+
interface CallAnalysis {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Sentiment of the agent in the call.
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
agent_sentiment?: 'Negative' | 'Positive' | 'Neutral';
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Evaluate agent task completion status, whether the agent has completed his task.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
agent_task_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Reason for the agent task completion status.
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
agent_task_completion_rating_reason?: string;
|
|
113
113
|
/**
|
|
114
|
-
* Evaluate whether the
|
|
114
|
+
* Evaluate whether the call ended normally or was cut off.
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
call_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
|
|
117
117
|
/**
|
|
118
|
-
* Reason for the
|
|
118
|
+
* Reason for the call completion status.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
call_completion_rating_reason?: string;
|
|
121
121
|
/**
|
|
122
|
-
* A high level summary of the
|
|
122
|
+
* A high level summary of the call.
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
call_summary?: string;
|
|
125
125
|
/**
|
|
126
|
-
* Sentiment of the user in the
|
|
126
|
+
* Sentiment of the user in the call.
|
|
127
127
|
*/
|
|
128
128
|
user_sentiment?: 'Negative' | 'Positive' | 'Neutral';
|
|
129
129
|
}
|
|
@@ -243,9 +243,9 @@ export declare namespace CallResponse {
|
|
|
243
243
|
*/
|
|
244
244
|
role: 'agent' | 'user';
|
|
245
245
|
/**
|
|
246
|
-
* Array of words in the
|
|
246
|
+
* Array of words in the utterance with the word timestamp. Useful for
|
|
247
247
|
* understanding what word was spoken at what time. Note that the word timestamp is
|
|
248
|
-
* not
|
|
248
|
+
* not guaranteed to be accurate, it's more like an approximation.
|
|
249
249
|
*/
|
|
250
250
|
words: Array<TranscriptObject.Word>;
|
|
251
251
|
}
|
|
@@ -277,9 +277,9 @@ export declare namespace CallResponse {
|
|
|
277
277
|
*/
|
|
278
278
|
role: 'agent' | 'user';
|
|
279
279
|
/**
|
|
280
|
-
* Array of words in the
|
|
280
|
+
* Array of words in the utterance with the word timestamp. Useful for
|
|
281
281
|
* understanding what word was spoken at what time. Note that the word timestamp is
|
|
282
|
-
* not
|
|
282
|
+
* not guaranteed to be accurate, it's more like an approximation.
|
|
283
283
|
*/
|
|
284
284
|
words: Array<Utterance.Word>;
|
|
285
285
|
}
|
|
@@ -556,10 +556,10 @@ export interface CallRegisterParams {
|
|
|
556
556
|
*/
|
|
557
557
|
from_number?: string;
|
|
558
558
|
/**
|
|
559
|
-
* An
|
|
560
|
-
* own id for the call, twilio SID, internal customer id. Not used for
|
|
561
|
-
* when we connect to your LLM websocket server, you can then get it
|
|
562
|
-
* object.
|
|
559
|
+
* An arbitrary object for storage purpose only. You can put anything here like
|
|
560
|
+
* your own id for the call, twilio SID, internal customer id. Not used for
|
|
561
|
+
* processing, when we connect to your LLM websocket server, you can then get it
|
|
562
|
+
* from the call object.
|
|
563
563
|
*/
|
|
564
564
|
metadata?: unknown;
|
|
565
565
|
/**
|
package/resources/call.d.ts.map
CHANGED
|
@@ -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;IA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ACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEvD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAClD,MAAM,QAAQ,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAClE,MAAM,QAAQ,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAC1D,MAAM,QAAQ,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAC1D,MAAM,QAAQ,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IACtD,MAAM,QAAQ,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAC/D"}
|
package/src/resources/agent.ts
CHANGED
|
@@ -108,6 +108,24 @@ export interface AgentResponse {
|
|
|
108
108
|
| 'static-noise'
|
|
109
109
|
| null;
|
|
110
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
113
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
114
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
115
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
116
|
+
*/
|
|
117
|
+
backchannel_frequency?: number;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
121
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
122
|
+
* Check out
|
|
123
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
124
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
125
|
+
* so it's recommended to expeirment before adding any words.
|
|
126
|
+
*/
|
|
127
|
+
backchannel_words?: Array<string>;
|
|
128
|
+
|
|
111
129
|
/**
|
|
112
130
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
113
131
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -133,25 +151,9 @@ export interface AgentResponse {
|
|
|
133
151
|
interruption_sensitivity?: number;
|
|
134
152
|
|
|
135
153
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* This setting specifies the agent's operational language, including base language
|
|
139
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
140
|
-
* currently only recognizes the base language.
|
|
141
|
-
*
|
|
154
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
142
155
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
143
|
-
* English
|
|
144
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
145
|
-
*
|
|
146
|
-
* If unset, will use default value `en-US`.
|
|
147
|
-
*
|
|
148
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
149
|
-
* Portuguese(pt)
|
|
150
|
-
*
|
|
151
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
152
|
-
* Portuguese(pt), Japanese(ja)
|
|
153
|
-
*
|
|
154
|
-
* - `deepgram voices`: supports English(en)
|
|
156
|
+
* English. If unset, will use default value `en-US`.
|
|
155
157
|
*/
|
|
156
158
|
language?:
|
|
157
159
|
| 'en-US'
|
|
@@ -173,6 +175,20 @@ export interface AgentResponse {
|
|
|
173
175
|
*/
|
|
174
176
|
opt_out_sensitive_data_storage?: boolean;
|
|
175
177
|
|
|
178
|
+
/**
|
|
179
|
+
* If set, controls how many times agent would remind user when user is
|
|
180
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
181
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
182
|
+
*/
|
|
183
|
+
reminder_max_count?: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
187
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
188
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
189
|
+
*/
|
|
190
|
+
reminder_trigger_ms?: number;
|
|
191
|
+
|
|
176
192
|
/**
|
|
177
193
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
178
194
|
* means less responsive agent (wait more, respond slower), while higher value
|
|
@@ -256,6 +272,24 @@ export interface AgentCreateParams {
|
|
|
256
272
|
| 'static-noise'
|
|
257
273
|
| null;
|
|
258
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
277
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
278
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
279
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
280
|
+
*/
|
|
281
|
+
backchannel_frequency?: number;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
285
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
286
|
+
* Check out
|
|
287
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
288
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
289
|
+
* so it's recommended to expeirment before adding any words.
|
|
290
|
+
*/
|
|
291
|
+
backchannel_words?: Array<string>;
|
|
292
|
+
|
|
259
293
|
/**
|
|
260
294
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
261
295
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -281,25 +315,9 @@ export interface AgentCreateParams {
|
|
|
281
315
|
interruption_sensitivity?: number;
|
|
282
316
|
|
|
283
317
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* This setting specifies the agent's operational language, including base language
|
|
287
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
288
|
-
* currently only recognizes the base language.
|
|
289
|
-
*
|
|
318
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
290
319
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
291
|
-
* English
|
|
292
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
293
|
-
*
|
|
294
|
-
* If unset, will use default value `en-US`.
|
|
295
|
-
*
|
|
296
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
297
|
-
* Portuguese(pt)
|
|
298
|
-
*
|
|
299
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
300
|
-
* Portuguese(pt), Japanese(ja)
|
|
301
|
-
*
|
|
302
|
-
* - `deepgram voices`: supports English(en)
|
|
320
|
+
* English. If unset, will use default value `en-US`.
|
|
303
321
|
*/
|
|
304
322
|
language?:
|
|
305
323
|
| 'en-US'
|
|
@@ -321,6 +339,20 @@ export interface AgentCreateParams {
|
|
|
321
339
|
*/
|
|
322
340
|
opt_out_sensitive_data_storage?: boolean;
|
|
323
341
|
|
|
342
|
+
/**
|
|
343
|
+
* If set, controls how many times agent would remind user when user is
|
|
344
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
345
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
346
|
+
*/
|
|
347
|
+
reminder_max_count?: number;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
351
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
352
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
353
|
+
*/
|
|
354
|
+
reminder_trigger_ms?: number;
|
|
355
|
+
|
|
324
356
|
/**
|
|
325
357
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
326
358
|
* means less responsive agent (wait more, respond slower), while higher value
|
|
@@ -389,6 +421,24 @@ export interface AgentUpdateParams {
|
|
|
389
421
|
| 'static-noise'
|
|
390
422
|
| null;
|
|
391
423
|
|
|
424
|
+
/**
|
|
425
|
+
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
426
|
+
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
427
|
+
* Lower value means less frequent backchannel, while higher value means more
|
|
428
|
+
* frequent backchannel. If unset, default value 0.8 will apply.
|
|
429
|
+
*/
|
|
430
|
+
backchannel_frequency?: number;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Only applicable when enable_backchannel is true. A list of words that the agent
|
|
434
|
+
* would use as backchannel. If not set, default backchannel words will apply.
|
|
435
|
+
* Check out
|
|
436
|
+
* [backchannel default words](/agent/interaction-configuration#backchannel) for
|
|
437
|
+
* more details. Note that certain voices do not work too well with certain words,
|
|
438
|
+
* so it's recommended to expeirment before adding any words.
|
|
439
|
+
*/
|
|
440
|
+
backchannel_words?: Array<string>;
|
|
441
|
+
|
|
392
442
|
/**
|
|
393
443
|
* Provide a customized list of keywords to bias the transcriber model, so that
|
|
394
444
|
* these words are more likely to get transcribed. Commonly used for names, brands,
|
|
@@ -414,25 +464,9 @@ export interface AgentUpdateParams {
|
|
|
414
464
|
interruption_sensitivity?: number;
|
|
415
465
|
|
|
416
466
|
/**
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
* This setting specifies the agent's operational language, including base language
|
|
420
|
-
* and dialect. Speech recognition considers both elements, but text-to-speech
|
|
421
|
-
* currently only recognizes the base language.
|
|
422
|
-
*
|
|
467
|
+
* Specifies what language (and dialect) the speech recognition will operate in.
|
|
423
468
|
* For instance, selecting `en-GB` optimizes speech recognition for British
|
|
424
|
-
* English
|
|
425
|
-
* dialect-specific text-to-speech is required, please contact us for support.
|
|
426
|
-
*
|
|
427
|
-
* If unset, will use default value `en-US`.
|
|
428
|
-
*
|
|
429
|
-
* - `11lab voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
430
|
-
* Portuguese(pt)
|
|
431
|
-
*
|
|
432
|
-
* - `openAI voices`: supports English(en), German(de), Spanish(es), Hindi(hi),
|
|
433
|
-
* Portuguese(pt), Japanese(ja)
|
|
434
|
-
*
|
|
435
|
-
* - `deepgram voices`: supports English(en)
|
|
469
|
+
* English. If unset, will use default value `en-US`.
|
|
436
470
|
*/
|
|
437
471
|
language?:
|
|
438
472
|
| 'en-US'
|
|
@@ -461,6 +495,20 @@ export interface AgentUpdateParams {
|
|
|
461
495
|
*/
|
|
462
496
|
opt_out_sensitive_data_storage?: boolean;
|
|
463
497
|
|
|
498
|
+
/**
|
|
499
|
+
* If set, controls how many times agent would remind user when user is
|
|
500
|
+
* unresponsive. Must be a non negative integer. If unset, default value of 1 will
|
|
501
|
+
* apply (remind once). Set to 0 to disable agent from reminding.
|
|
502
|
+
*/
|
|
503
|
+
reminder_max_count?: number;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* If set (in milliseconds), will trigger a reminder to the agent to speak if the
|
|
507
|
+
* user has been silent for the specified duration after some agent speech. Must be
|
|
508
|
+
* a positive number. If unset, default value of 10000 ms (10 s) will apply.
|
|
509
|
+
*/
|
|
510
|
+
reminder_trigger_ms?: number;
|
|
511
|
+
|
|
464
512
|
/**
|
|
465
513
|
* Controls how responsive is the agent. Value ranging from [0,1]. Lower value
|
|
466
514
|
* means less responsive agent (wait more, respond slower), while higher value
|
package/src/resources/call.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface CallResponse extends RegisterCallResponse {
|
|
|
51
51
|
* completion status and other metrics. Available after call ends. Subscribe to
|
|
52
52
|
* `call_analyzed` webhook event type to receive it once ready.
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
call_analysis?: CallResponse.CallAnalysis;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* The reason for the disconnection of the call. Debug using explanation in docs
|
|
@@ -150,39 +150,39 @@ export namespace CallResponse {
|
|
|
150
150
|
* completion status and other metrics. Available after call ends. Subscribe to
|
|
151
151
|
* `call_analyzed` webhook event type to receive it once ready.
|
|
152
152
|
*/
|
|
153
|
-
export interface
|
|
153
|
+
export interface CallAnalysis {
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Sentiment of the agent in the call.
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
agent_sentiment?: 'Negative' | 'Positive' | 'Neutral';
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Evaluate agent task completion status, whether the agent has completed his task.
|
|
161
161
|
*/
|
|
162
|
-
|
|
162
|
+
agent_task_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* Reason for the agent task completion status.
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
agent_task_completion_rating_reason?: string;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
* Evaluate whether the
|
|
170
|
+
* Evaluate whether the call ended normally or was cut off.
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
call_completion_rating?: 'Complete' | 'Incomplete' | 'Partial';
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
|
-
* Reason for the
|
|
175
|
+
* Reason for the call completion status.
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
call_completion_rating_reason?: string;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* A high level summary of the
|
|
180
|
+
* A high level summary of the call.
|
|
181
181
|
*/
|
|
182
|
-
|
|
182
|
+
call_summary?: string;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* Sentiment of the user in the
|
|
185
|
+
* Sentiment of the user in the call.
|
|
186
186
|
*/
|
|
187
187
|
user_sentiment?: 'Negative' | 'Positive' | 'Neutral';
|
|
188
188
|
}
|
|
@@ -326,9 +326,9 @@ export namespace CallResponse {
|
|
|
326
326
|
role: 'agent' | 'user';
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
|
-
* Array of words in the
|
|
329
|
+
* Array of words in the utterance with the word timestamp. Useful for
|
|
330
330
|
* understanding what word was spoken at what time. Note that the word timestamp is
|
|
331
|
-
* not
|
|
331
|
+
* not guaranteed to be accurate, it's more like an approximation.
|
|
332
332
|
*/
|
|
333
333
|
words: Array<TranscriptObject.Word>;
|
|
334
334
|
}
|
|
@@ -366,9 +366,9 @@ export namespace CallResponse {
|
|
|
366
366
|
role: 'agent' | 'user';
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
|
-
* Array of words in the
|
|
369
|
+
* Array of words in the utterance with the word timestamp. Useful for
|
|
370
370
|
* understanding what word was spoken at what time. Note that the word timestamp is
|
|
371
|
-
* not
|
|
371
|
+
* not guaranteed to be accurate, it's more like an approximation.
|
|
372
372
|
*/
|
|
373
373
|
words: Array<Utterance.Word>;
|
|
374
374
|
}
|
|
@@ -689,10 +689,10 @@ export interface CallRegisterParams {
|
|
|
689
689
|
from_number?: string;
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
|
-
* An
|
|
693
|
-
* own id for the call, twilio SID, internal customer id. Not used for
|
|
694
|
-
* when we connect to your LLM websocket server, you can then get it
|
|
695
|
-
* object.
|
|
692
|
+
* An arbitrary object for storage purpose only. You can put anything here like
|
|
693
|
+
* your own id for the call, twilio SID, internal customer id. Not used for
|
|
694
|
+
* processing, when we connect to your LLM websocket server, you can then get it
|
|
695
|
+
* from the call object.
|
|
696
696
|
*/
|
|
697
697
|
metadata?: unknown;
|
|
698
698
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.11.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.11.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.11.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|