retell-sdk 5.64.0 → 5.66.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 +42 -0
- package/README.md +29 -0
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +43 -13
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +43 -13
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +21 -2
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +21 -2
- package/resources/agent.mjs.map +1 -1
- package/resources/app.d.mts +28 -46
- package/resources/app.d.mts.map +1 -1
- package/resources/app.d.ts +28 -46
- package/resources/app.d.ts.map +1 -1
- package/resources/app.js +7 -5
- package/resources/app.js.map +1 -1
- package/resources/app.mjs +7 -5
- package/resources/app.mjs.map +1 -1
- package/resources/asset.d.mts +53 -0
- package/resources/asset.d.mts.map +1 -0
- package/resources/asset.d.ts +53 -0
- package/resources/asset.d.ts.map +1 -0
- package/resources/asset.js +20 -0
- package/resources/asset.js.map +1 -0
- package/resources/asset.mjs +16 -0
- package/resources/asset.mjs.map +1 -0
- package/resources/batch-call.d.mts +4 -2
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +4 -2
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +155 -21
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +155 -21
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +37 -5
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +37 -5
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +2 -2
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +2 -2
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +24 -11
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +24 -11
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +137 -26
- package/resources/contact.d.mts.map +1 -1
- package/resources/contact.d.ts +137 -26
- package/resources/contact.d.ts.map +1 -1
- package/resources/contact.js +23 -4
- package/resources/contact.js.map +1 -1
- package/resources/contact.mjs +23 -4
- package/resources/contact.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +182 -2
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +182 -2
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +362 -2
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +362 -2
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/crm.d.mts +4 -0
- package/resources/crm.d.mts.map +1 -1
- package/resources/crm.d.ts +4 -0
- package/resources/crm.d.ts.map +1 -1
- package/resources/export-request.d.mts +2 -2
- package/resources/export-request.d.mts.map +1 -1
- package/resources/export-request.d.ts +2 -2
- package/resources/export-request.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +7 -7
- package/resources/knowledge-base.d.ts +7 -7
- package/resources/llm.d.mts +38 -2
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +38 -2
- package/resources/llm.d.ts.map +1 -1
- package/resources/phone-number.d.mts +14 -8
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +14 -8
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/tests.d.mts +6 -6
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +6 -6
- package/resources/tests.d.ts.map +1 -1
- package/resources/voice.d.mts +4 -4
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +4 -4
- package/resources/voice.d.ts.map +1 -1
- package/src/client.ts +31 -0
- package/src/resources/agent.ts +60 -9
- package/src/resources/app.ts +29 -58
- package/src/resources/asset.ts +69 -0
- package/src/resources/batch-call.ts +6 -1
- package/src/resources/call.ts +196 -18
- package/src/resources/chat-agent.ts +2 -2
- package/src/resources/chat.ts +28 -11
- package/src/resources/contact.ts +187 -26
- package/src/resources/conversation-flow-component.ts +206 -2
- package/src/resources/conversation-flow.ts +410 -2
- package/src/resources/crm.ts +5 -0
- package/src/resources/export-request.ts +2 -2
- package/src/resources/index.ts +12 -0
- package/src/resources/knowledge-base.ts +7 -7
- package/src/resources/llm.ts +38 -2
- package/src/resources/phone-number.ts +14 -8
- package/src/resources/tests.ts +6 -6
- package/src/resources/voice.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/call.d.ts
CHANGED
|
@@ -66,16 +66,30 @@ export declare class Call extends APIResource {
|
|
|
66
66
|
*/
|
|
67
67
|
createPhoneCall(body: CallCreatePhoneCallParams, options?: RequestOptions): APIPromise<PhoneCallResponse>;
|
|
68
68
|
/**
|
|
69
|
-
* Create a new web call
|
|
69
|
+
* Create a new web call and return browser connection details.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
73
|
-
* const
|
|
74
|
-
*
|
|
75
|
-
*
|
|
73
|
+
* const createWebCallResponse =
|
|
74
|
+
* await client.call.createWebCall({
|
|
75
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
76
|
+
* });
|
|
76
77
|
* ```
|
|
77
78
|
*/
|
|
78
|
-
createWebCall(body: CallCreateWebCallParams, options?: RequestOptions): APIPromise<
|
|
79
|
+
createWebCall(body: CallCreateWebCallParams, options?: RequestOptions): APIPromise<CreateWebCallResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* Mint a subscribe-only access token for an in-progress call so a client can
|
|
82
|
+
* listen to live audio. The returned token grants join + subscribe on the call's
|
|
83
|
+
* existing audio room; it cannot publish. The call must be in ONGOING status.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const response = await client.call.listenLive(
|
|
88
|
+
* '119c3f8e47135a29e65947eeb34cf12d',
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
listenLive(callID: string, options?: RequestOptions): APIPromise<CallListenLiveResponse>;
|
|
79
93
|
/**
|
|
80
94
|
* Register a new phone call for custom telephony
|
|
81
95
|
*
|
|
@@ -108,6 +122,20 @@ export declare class Call extends APIResource {
|
|
|
108
122
|
* ```
|
|
109
123
|
*/
|
|
110
124
|
stop(callID: string, options?: RequestOptions): APIPromise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Take over an in-progress call from the AI agent. The agent stops responding and
|
|
127
|
+
* the specified live-listen participant is allowed to speak directly to the
|
|
128
|
+
* caller. The call must be in ONGOING status.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```ts
|
|
132
|
+
* const response = await client.call.takeOverLive(
|
|
133
|
+
* '119c3f8e47135a29e65947eeb34cf12d',
|
|
134
|
+
* { participant_id: 'listener_a1b2c3d4e5f6g7h8i9j0' },
|
|
135
|
+
* );
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
takeOverLive(callID: string, body: CallTakeOverLiveParams, options?: RequestOptions): APIPromise<CallTakeOverLiveResponse>;
|
|
111
139
|
/**
|
|
112
140
|
* Update an ongoing call at runtime. Supports overriding dynamic variables,
|
|
113
141
|
* metadata, and the data storage setting on the running call, and controlling the
|
|
@@ -138,6 +166,35 @@ export declare class Call extends APIResource {
|
|
|
138
166
|
updateLive(callID: string, body: CallUpdateLiveParams, options?: RequestOptions): APIPromise<CallUpdateLiveResponse>;
|
|
139
167
|
}
|
|
140
168
|
export type CallResponse = WebCallResponse | PhoneCallResponse;
|
|
169
|
+
export interface CreateWebCallResponse {
|
|
170
|
+
/**
|
|
171
|
+
* Token authorizing this browser to join the web call. Pass it to your frontend.
|
|
172
|
+
*/
|
|
173
|
+
access_token: string;
|
|
174
|
+
/**
|
|
175
|
+
* Unique identifier for the web call.
|
|
176
|
+
*/
|
|
177
|
+
call_id: string;
|
|
178
|
+
/**
|
|
179
|
+
* Unix epoch ms when the access_token expires.
|
|
180
|
+
*/
|
|
181
|
+
expires_at: number;
|
|
182
|
+
/**
|
|
183
|
+
* ICE servers to configure before the browser creates its peer connection.
|
|
184
|
+
*/
|
|
185
|
+
ice_servers: Array<CreateWebCallResponse.IceServer>;
|
|
186
|
+
/**
|
|
187
|
+
* Connection transport to select in the web client.
|
|
188
|
+
*/
|
|
189
|
+
transport: 'gateway';
|
|
190
|
+
}
|
|
191
|
+
export declare namespace CreateWebCallResponse {
|
|
192
|
+
interface IceServer {
|
|
193
|
+
urls: string | Array<string>;
|
|
194
|
+
credential?: string;
|
|
195
|
+
username?: string;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
141
198
|
export interface PhoneCallResponse {
|
|
142
199
|
/**
|
|
143
200
|
* Corresponding agent id of this call.
|
|
@@ -2080,8 +2137,8 @@ export interface CallListResponse {
|
|
|
2080
2137
|
/**
|
|
2081
2138
|
* Whether more results are available.
|
|
2082
2139
|
*/
|
|
2083
|
-
has_more
|
|
2084
|
-
items
|
|
2140
|
+
has_more: boolean;
|
|
2141
|
+
items: Array<CallListResponse.V3WebCallResponse | CallListResponse.V3PhoneCallResponse>;
|
|
2085
2142
|
/**
|
|
2086
2143
|
* Pagination key for the next page.
|
|
2087
2144
|
*/
|
|
@@ -3274,6 +3331,64 @@ export declare namespace CallListResponse {
|
|
|
3274
3331
|
}
|
|
3275
3332
|
}
|
|
3276
3333
|
}
|
|
3334
|
+
export interface CallListenLiveResponse {
|
|
3335
|
+
/**
|
|
3336
|
+
* Subscribe-only JWT scoped to the call's room. Cannot publish. Listener
|
|
3337
|
+
* participant is hidden from other participants.
|
|
3338
|
+
*/
|
|
3339
|
+
access_token: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Unix epoch ms when the access_token expires.
|
|
3342
|
+
*/
|
|
3343
|
+
expires_at: number;
|
|
3344
|
+
/**
|
|
3345
|
+
* Identity this listener joins as, and the value to hand back to
|
|
3346
|
+
* /v2/take-over-live-call. Returned on both transports; a `livekit` client can
|
|
3347
|
+
* equally read it off its own room object, a `gateway` one has no equivalent to
|
|
3348
|
+
* read.
|
|
3349
|
+
*/
|
|
3350
|
+
participant_id: string;
|
|
3351
|
+
/**
|
|
3352
|
+
* Room name to join. Always the call's original room — does not follow warm
|
|
3353
|
+
* transfers.
|
|
3354
|
+
*/
|
|
3355
|
+
room_name: string;
|
|
3356
|
+
/**
|
|
3357
|
+
* Public side of the gateway instance handling this call, for diagnostics only —
|
|
3358
|
+
* the client's media address comes from the SDP answer's ICE candidates. `gateway`
|
|
3359
|
+
* transport only.
|
|
3360
|
+
*/
|
|
3361
|
+
gateway_ip?: string;
|
|
3362
|
+
/**
|
|
3363
|
+
* ICE servers the client must configure before creating its PeerConnection — they
|
|
3364
|
+
* cannot be added afterwards. `gateway` transport only.
|
|
3365
|
+
*/
|
|
3366
|
+
ice_servers?: Array<CallListenLiveResponse.IceServer>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Which media stack issued the access_token, and therefore where the client
|
|
3369
|
+
* signals. The two tokens are indistinguishable, so a client must read this rather
|
|
3370
|
+
* than infer it. `gateway` clients address Retell itself; `livekit` clients
|
|
3371
|
+
* connect to the returned `url`. Optional only because a server predating the
|
|
3372
|
+
* field omits it during a rollout; treat absent as `livekit`.
|
|
3373
|
+
*/
|
|
3374
|
+
transport?: 'livekit' | 'gateway';
|
|
3375
|
+
/**
|
|
3376
|
+
* Server URL the client should connect to with the access_token. Present only when
|
|
3377
|
+
* `transport` is `livekit`; a `gateway` listener signals to Retell and needs no
|
|
3378
|
+
* address.
|
|
3379
|
+
*/
|
|
3380
|
+
url?: string;
|
|
3381
|
+
}
|
|
3382
|
+
export declare namespace CallListenLiveResponse {
|
|
3383
|
+
interface IceServer {
|
|
3384
|
+
urls: string | Array<string>;
|
|
3385
|
+
credential?: string;
|
|
3386
|
+
username?: string;
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
export interface CallTakeOverLiveResponse {
|
|
3390
|
+
success: boolean;
|
|
3391
|
+
}
|
|
3277
3392
|
export interface CallUpdateLiveResponse {
|
|
3278
3393
|
success: boolean;
|
|
3279
3394
|
}
|
|
@@ -3360,15 +3475,19 @@ export declare namespace CallListParams {
|
|
|
3360
3475
|
call_successful?: FilterCriteria.CallSuccessful;
|
|
3361
3476
|
call_type?: FilterCriteria.CallType;
|
|
3362
3477
|
/**
|
|
3363
|
-
* Filter by
|
|
3478
|
+
* Filter by total call cost in cents.
|
|
3364
3479
|
*/
|
|
3365
3480
|
combined_cost?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
|
|
3366
3481
|
/**
|
|
3367
|
-
* Filter by custom analysis
|
|
3482
|
+
* Filter by custom post-call analysis outputs. Each filter `key` matches the
|
|
3483
|
+
* configured output's `name`.
|
|
3368
3484
|
*/
|
|
3369
3485
|
custom_analysis_data?: Array<FilterCriteria.StringFilter | FilterCriteria.NumberFilter | FilterCriteria.BooleanFilter | FilterCriteria.RangeFilter | FilterCriteria.EnumFilter | FilterCriteria.PresentFilter>;
|
|
3370
3486
|
/**
|
|
3371
|
-
* Filter by
|
|
3487
|
+
* Filter by organization-level attributes that attach business context to calls,
|
|
3488
|
+
* such as customer tier or campaign, so calls can be organized and filtered
|
|
3489
|
+
* consistently in Call History. Use the attribute ID as `key` and the call's
|
|
3490
|
+
* attribute value as `value`.
|
|
3372
3491
|
*/
|
|
3373
3492
|
custom_attributes?: Array<FilterCriteria.StringFilter | FilterCriteria.NumberFilter | FilterCriteria.BooleanFilter | FilterCriteria.RangeFilter | FilterCriteria.EnumFilter | FilterCriteria.PresentFilter>;
|
|
3374
3493
|
data_storage_setting?: FilterCriteria.DataStorageSetting;
|
|
@@ -3379,11 +3498,12 @@ export declare namespace CallListParams {
|
|
|
3379
3498
|
*/
|
|
3380
3499
|
duration_ms?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
|
|
3381
3500
|
/**
|
|
3382
|
-
* Filter by dynamic variables.
|
|
3501
|
+
* Filter by dynamic variables stored on the call. Each filter `key` matches a
|
|
3502
|
+
* dynamic-variable name.
|
|
3383
3503
|
*/
|
|
3384
3504
|
dynamic_variables?: Array<FilterCriteria.StringFilter | FilterCriteria.NumberFilter | FilterCriteria.BooleanFilter | FilterCriteria.RangeFilter | FilterCriteria.EnumFilter | FilterCriteria.PresentFilter>;
|
|
3385
3505
|
/**
|
|
3386
|
-
* Filter by end-to-end latency
|
|
3506
|
+
* Filter by per-call p50 end-to-end latency in milliseconds.
|
|
3387
3507
|
*/
|
|
3388
3508
|
e2e_latency_p50?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
|
|
3389
3509
|
/**
|
|
@@ -3399,7 +3519,8 @@ export declare namespace CallListParams {
|
|
|
3399
3519
|
*/
|
|
3400
3520
|
in_voicemail?: FilterCriteria.InVoicemail;
|
|
3401
3521
|
/**
|
|
3402
|
-
* Filter by metadata
|
|
3522
|
+
* Filter by values stored in the call's `metadata`. Each filter `key` matches a
|
|
3523
|
+
* top-level metadata key.
|
|
3403
3524
|
*/
|
|
3404
3525
|
metadata?: Array<FilterCriteria.StringFilter | FilterCriteria.NumberFilter | FilterCriteria.BooleanFilter | FilterCriteria.RangeFilter | FilterCriteria.EnumFilter | FilterCriteria.PresentFilter>;
|
|
3405
3526
|
/**
|
|
@@ -3423,7 +3544,7 @@ export declare namespace CallListParams {
|
|
|
3423
3544
|
*/
|
|
3424
3545
|
agent_id: string;
|
|
3425
3546
|
/**
|
|
3426
|
-
* Specific versions to filter on. If
|
|
3547
|
+
* Specific versions to filter on. If omitted or empty, all versions are included.
|
|
3427
3548
|
*/
|
|
3428
3549
|
version?: Array<number>;
|
|
3429
3550
|
}
|
|
@@ -4375,7 +4496,7 @@ export declare namespace CallCreatePhoneCallParams {
|
|
|
4375
4496
|
* available voice models. Set to null to remove voice model selection, and default
|
|
4376
4497
|
* ones will apply. Check out dashboard for more details of each voice model.
|
|
4377
4498
|
*/
|
|
4378
|
-
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | null;
|
|
4499
|
+
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'sonic-3.6' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | 'inworld-tts-2' | 'inworld-tts-2-flash' | null;
|
|
4379
4500
|
/**
|
|
4380
4501
|
* Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
|
|
4381
4502
|
* speech, while higher value means faster speech rate. If unset, default value 1
|
|
@@ -4444,7 +4565,9 @@ export declare namespace CallCreatePhoneCallParams {
|
|
|
4444
4565
|
interface CustomSttConfig {
|
|
4445
4566
|
/**
|
|
4446
4567
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
4447
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
4568
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
4569
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
4570
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
4448
4571
|
*/
|
|
4449
4572
|
endpointing_ms: number;
|
|
4450
4573
|
/**
|
|
@@ -5321,7 +5444,7 @@ export declare namespace CallCreateWebCallParams {
|
|
|
5321
5444
|
* available voice models. Set to null to remove voice model selection, and default
|
|
5322
5445
|
* ones will apply. Check out dashboard for more details of each voice model.
|
|
5323
5446
|
*/
|
|
5324
|
-
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | null;
|
|
5447
|
+
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'sonic-3.6' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | 'inworld-tts-2' | 'inworld-tts-2-flash' | null;
|
|
5325
5448
|
/**
|
|
5326
5449
|
* Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
|
|
5327
5450
|
* speech, while higher value means faster speech rate. If unset, default value 1
|
|
@@ -5390,7 +5513,9 @@ export declare namespace CallCreateWebCallParams {
|
|
|
5390
5513
|
interface CustomSttConfig {
|
|
5391
5514
|
/**
|
|
5392
5515
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
5393
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
5516
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
5517
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
5518
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
5394
5519
|
*/
|
|
5395
5520
|
endpointing_ms: number;
|
|
5396
5521
|
/**
|
|
@@ -6266,7 +6391,7 @@ export declare namespace CallRegisterPhoneCallParams {
|
|
|
6266
6391
|
* available voice models. Set to null to remove voice model selection, and default
|
|
6267
6392
|
* ones will apply. Check out dashboard for more details of each voice model.
|
|
6268
6393
|
*/
|
|
6269
|
-
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | null;
|
|
6394
|
+
voice_model?: 'eleven_flash_v2' | 'eleven_flash_v2_5' | 'eleven_multilingual_v2' | 'eleven_v3' | 'sonic-3' | 'sonic-3-latest' | 'sonic-3.5' | 'sonic-3.6' | 'tts-1' | 'gpt-4o-mini-tts' | 'speech-02-turbo' | 'speech-2.8-turbo' | 's1' | 's2-pro' | 's2.1-pro' | 'inworld-tts-2' | 'inworld-tts-2-flash' | null;
|
|
6270
6395
|
/**
|
|
6271
6396
|
* Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
|
|
6272
6397
|
* speech, while higher value means faster speech rate. If unset, default value 1
|
|
@@ -6335,7 +6460,9 @@ export declare namespace CallRegisterPhoneCallParams {
|
|
|
6335
6460
|
interface CustomSttConfig {
|
|
6336
6461
|
/**
|
|
6337
6462
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
6338
|
-
* 500 for Soniox, 100 for AssemblyAI.
|
|
6463
|
+
* 500 for Soniox, 100 for AssemblyAI. For AssemblyAI, this sets min_turn_silence
|
|
6464
|
+
* (100-3000 ms). max_turn_silence adds half of this value, rounded to the nearest
|
|
6465
|
+
* millisecond and bounded to 500-1000 ms, with a total cap of 3000 ms.
|
|
6339
6466
|
*/
|
|
6340
6467
|
endpointing_ms: number;
|
|
6341
6468
|
/**
|
|
@@ -6839,6 +6966,13 @@ export declare namespace CallRegisterPhoneCallParams {
|
|
|
6839
6966
|
}
|
|
6840
6967
|
}
|
|
6841
6968
|
}
|
|
6969
|
+
export interface CallTakeOverLiveParams {
|
|
6970
|
+
/**
|
|
6971
|
+
* The id of the live-listen participant to upgrade, obtained when joining via
|
|
6972
|
+
* /v2/listen-live-call.
|
|
6973
|
+
*/
|
|
6974
|
+
participant_id: string;
|
|
6975
|
+
}
|
|
6842
6976
|
export interface CallUpdateLiveParams {
|
|
6843
6977
|
/**
|
|
6844
6978
|
* Live agent control. At least one of `additional_context` or `trigger_response`
|
|
@@ -6904,6 +7038,6 @@ export declare namespace CallUpdateLiveParams {
|
|
|
6904
7038
|
}
|
|
6905
7039
|
}
|
|
6906
7040
|
export declare namespace Call {
|
|
6907
|
-
export { type CallResponse as CallResponse, type PhoneCallResponse as PhoneCallResponse, type WebCallResponse as WebCallResponse, type CallListResponse as CallListResponse, type CallUpdateLiveResponse as CallUpdateLiveResponse, type CallUpdateParams as CallUpdateParams, type CallListParams as CallListParams, type CallCreatePhoneCallParams as CallCreatePhoneCallParams, type CallCreateWebCallParams as CallCreateWebCallParams, type CallRegisterPhoneCallParams as CallRegisterPhoneCallParams, type CallUpdateLiveParams as CallUpdateLiveParams, };
|
|
7041
|
+
export { type CallResponse as CallResponse, type CreateWebCallResponse as CreateWebCallResponse, type PhoneCallResponse as PhoneCallResponse, type WebCallResponse as WebCallResponse, type CallListResponse as CallListResponse, type CallListenLiveResponse as CallListenLiveResponse, type CallTakeOverLiveResponse as CallTakeOverLiveResponse, type CallUpdateLiveResponse as CallUpdateLiveResponse, type CallUpdateParams as CallUpdateParams, type CallListParams as CallListParams, type CallCreatePhoneCallParams as CallCreatePhoneCallParams, type CallCreateWebCallParams as CallCreateWebCallParams, type CallRegisterPhoneCallParams as CallRegisterPhoneCallParams, type CallTakeOverLiveParams as CallTakeOverLiveParams, type CallUpdateLiveParams as CallUpdateLiveParams, };
|
|
6908
7042
|
}
|
|
6909
7043
|
//# sourceMappingURL=call.d.ts.map
|