retell-sdk 5.63.0 → 5.65.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.
Files changed (147) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +20 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +102 -12
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +102 -12
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +32 -4
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +32 -4
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +439 -0
  21. package/resources/app.d.mts.map +1 -0
  22. package/resources/app.d.ts +439 -0
  23. package/resources/app.d.ts.map +1 -0
  24. package/resources/app.js +69 -0
  25. package/resources/app.js.map +1 -0
  26. package/resources/app.mjs +65 -0
  27. package/resources/app.mjs.map +1 -0
  28. package/resources/asset.d.mts +53 -0
  29. package/resources/asset.d.mts.map +1 -0
  30. package/resources/asset.d.ts +53 -0
  31. package/resources/asset.d.ts.map +1 -0
  32. package/resources/asset.js +20 -0
  33. package/resources/asset.js.map +1 -0
  34. package/resources/asset.mjs +16 -0
  35. package/resources/asset.mjs.map +1 -0
  36. package/resources/batch-call.d.mts +4 -2
  37. package/resources/batch-call.d.mts.map +1 -1
  38. package/resources/batch-call.d.ts +4 -2
  39. package/resources/batch-call.d.ts.map +1 -1
  40. package/resources/call.d.mts +221 -27
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +221 -27
  43. package/resources/call.d.ts.map +1 -1
  44. package/resources/call.js +37 -5
  45. package/resources/call.js.map +1 -1
  46. package/resources/call.mjs +37 -5
  47. package/resources/call.mjs.map +1 -1
  48. package/resources/chat-agent.d.mts +4 -10
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +4 -10
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat-agent.js +2 -8
  53. package/resources/chat-agent.js.map +1 -1
  54. package/resources/chat-agent.mjs +2 -8
  55. package/resources/chat-agent.mjs.map +1 -1
  56. package/resources/chat.d.mts +24 -11
  57. package/resources/chat.d.mts.map +1 -1
  58. package/resources/chat.d.ts +24 -11
  59. package/resources/chat.d.ts.map +1 -1
  60. package/resources/contact.d.mts +669 -0
  61. package/resources/contact.d.mts.map +1 -0
  62. package/resources/contact.d.ts +669 -0
  63. package/resources/contact.d.ts.map +1 -0
  64. package/resources/contact.js +100 -0
  65. package/resources/contact.js.map +1 -0
  66. package/resources/contact.mjs +96 -0
  67. package/resources/contact.mjs.map +1 -0
  68. package/resources/conversation-flow-component.d.mts +56 -8
  69. package/resources/conversation-flow-component.d.mts.map +1 -1
  70. package/resources/conversation-flow-component.d.ts +56 -8
  71. package/resources/conversation-flow-component.d.ts.map +1 -1
  72. package/resources/conversation-flow.d.mts +120 -16
  73. package/resources/conversation-flow.d.mts.map +1 -1
  74. package/resources/conversation-flow.d.ts +120 -16
  75. package/resources/conversation-flow.d.ts.map +1 -1
  76. package/resources/conversation-flow.js +3 -1
  77. package/resources/conversation-flow.js.map +1 -1
  78. package/resources/conversation-flow.mjs +3 -1
  79. package/resources/conversation-flow.mjs.map +1 -1
  80. package/resources/crm.d.mts +226 -0
  81. package/resources/crm.d.mts.map +1 -0
  82. package/resources/crm.d.ts +226 -0
  83. package/resources/crm.d.ts.map +1 -0
  84. package/resources/crm.js +46 -0
  85. package/resources/crm.js.map +1 -0
  86. package/resources/crm.mjs +42 -0
  87. package/resources/crm.mjs.map +1 -0
  88. package/resources/export-request.d.mts +2 -2
  89. package/resources/export-request.d.mts.map +1 -1
  90. package/resources/export-request.d.ts +2 -2
  91. package/resources/export-request.d.ts.map +1 -1
  92. package/resources/index.d.mts +8 -4
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +8 -4
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/knowledge-base.d.mts +16 -8
  101. package/resources/knowledge-base.d.mts.map +1 -1
  102. package/resources/knowledge-base.d.ts +16 -8
  103. package/resources/knowledge-base.d.ts.map +1 -1
  104. package/resources/llm.d.mts +66 -10
  105. package/resources/llm.d.mts.map +1 -1
  106. package/resources/llm.d.ts +66 -10
  107. package/resources/llm.d.ts.map +1 -1
  108. package/resources/llm.js +3 -1
  109. package/resources/llm.js.map +1 -1
  110. package/resources/llm.mjs +3 -1
  111. package/resources/llm.mjs.map +1 -1
  112. package/resources/phone-number.d.mts +14 -8
  113. package/resources/phone-number.d.mts.map +1 -1
  114. package/resources/phone-number.d.ts +14 -8
  115. package/resources/phone-number.d.ts.map +1 -1
  116. package/resources/tests.d.mts +6 -6
  117. package/resources/tests.d.mts.map +1 -1
  118. package/resources/tests.d.ts +6 -6
  119. package/resources/tests.d.ts.map +1 -1
  120. package/resources/voice.d.mts +4 -4
  121. package/resources/voice.d.mts.map +1 -1
  122. package/resources/voice.d.ts +4 -4
  123. package/resources/voice.d.ts.map +1 -1
  124. package/src/client.ts +116 -0
  125. package/src/resources/agent.ts +141 -9
  126. package/src/resources/app.ts +593 -0
  127. package/src/resources/asset.ts +69 -0
  128. package/src/resources/batch-call.ts +6 -1
  129. package/src/resources/call.ts +289 -25
  130. package/src/resources/chat-agent.ts +4 -10
  131. package/src/resources/chat.ts +28 -11
  132. package/src/resources/contact.ts +910 -0
  133. package/src/resources/conversation-flow-component.ts +56 -8
  134. package/src/resources/conversation-flow.ts +127 -15
  135. package/src/resources/crm.ts +298 -0
  136. package/src/resources/export-request.ts +2 -2
  137. package/src/resources/index.ts +50 -0
  138. package/src/resources/knowledge-base.ts +16 -8
  139. package/src/resources/llm.ts +73 -9
  140. package/src/resources/phone-number.ts +14 -8
  141. package/src/resources/tests.ts +6 -6
  142. package/src/resources/voice.ts +4 -4
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -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 webCallResponse = await client.call.createWebCall({
74
- * agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
75
- * });
73
+ * const createWebCallResponse =
74
+ * await client.call.createWebCall({
75
+ * agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
76
+ * });
77
+ * ```
78
+ */
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
+ * );
76
90
  * ```
77
91
  */
78
- createWebCall(body: CallCreateWebCallParams, options?: RequestOptions): APIPromise<WebCallResponse>;
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?: boolean;
2084
- items?: Array<CallListResponse.V3WebCallResponse | CallListResponse.V3PhoneCallResponse>;
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 combined cost of the call.
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 data fields.
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 custom attributes fields.
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
- dynamic_variables?: Array<FilterCriteria.DynamicVariable>;
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 p50.
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 fields.
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 not provided, all versions are included.
3547
+ * Specific versions to filter on. If omitted or empty, all versions are included.
3427
3548
  */
3428
3549
  version?: Array<number>;
3429
3550
  }
@@ -3697,17 +3818,77 @@ export declare namespace CallListParams {
3697
3818
  */
3698
3819
  value: Array<number>;
3699
3820
  }
3700
- interface DynamicVariable {
3701
- /**
3702
- * The dynamic variable name to filter on.
3703
- */
3704
- key: string;
3821
+ interface StringFilter {
3705
3822
  /**
3706
3823
  * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
3707
3824
  */
3708
3825
  op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
3709
3826
  type: 'string';
3710
3827
  value: string;
3828
+ /**
3829
+ * The field name to filter on.
3830
+ */
3831
+ key?: string;
3832
+ }
3833
+ interface NumberFilter {
3834
+ /**
3835
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
3836
+ * than, le: less than or equal
3837
+ */
3838
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
3839
+ type: 'number';
3840
+ value: number;
3841
+ /**
3842
+ * The field name to filter on.
3843
+ */
3844
+ key?: string;
3845
+ }
3846
+ interface BooleanFilter {
3847
+ op: 'eq';
3848
+ type: 'boolean';
3849
+ value: boolean;
3850
+ /**
3851
+ * The field name to filter on.
3852
+ */
3853
+ key?: string;
3854
+ }
3855
+ interface RangeFilter {
3856
+ /**
3857
+ * bt: between
3858
+ */
3859
+ op: 'bt';
3860
+ type: 'range';
3861
+ /**
3862
+ * [lower_bound, upper_bound]
3863
+ */
3864
+ value: Array<number>;
3865
+ /**
3866
+ * The field name to filter on.
3867
+ */
3868
+ key?: string;
3869
+ }
3870
+ interface EnumFilter {
3871
+ /**
3872
+ * in: value is one of the listed values
3873
+ */
3874
+ op: 'in';
3875
+ type: 'enum';
3876
+ value: Array<string>;
3877
+ /**
3878
+ * The field name to filter on.
3879
+ */
3880
+ key?: string;
3881
+ }
3882
+ interface PresentFilter {
3883
+ /**
3884
+ * pr: present (has value), np: not present
3885
+ */
3886
+ op: 'pr' | 'np';
3887
+ type: 'present';
3888
+ /**
3889
+ * The field name to filter on.
3890
+ */
3891
+ key?: string;
3711
3892
  }
3712
3893
  interface NumberFilter {
3713
3894
  /**
@@ -4315,7 +4496,7 @@ export declare namespace CallCreatePhoneCallParams {
4315
4496
  * available voice models. Set to null to remove voice model selection, and default
4316
4497
  * ones will apply. Check out dashboard for more details of each voice model.
4317
4498
  */
4318
- 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;
4319
4500
  /**
4320
4501
  * Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
4321
4502
  * speech, while higher value means faster speech rate. If unset, default value 1
@@ -4384,7 +4565,9 @@ export declare namespace CallCreatePhoneCallParams {
4384
4565
  interface CustomSttConfig {
4385
4566
  /**
4386
4567
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
4387
- * 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.
4388
4571
  */
4389
4572
  endpointing_ms: number;
4390
4573
  /**
@@ -5261,7 +5444,7 @@ export declare namespace CallCreateWebCallParams {
5261
5444
  * available voice models. Set to null to remove voice model selection, and default
5262
5445
  * ones will apply. Check out dashboard for more details of each voice model.
5263
5446
  */
5264
- 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;
5265
5448
  /**
5266
5449
  * Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
5267
5450
  * speech, while higher value means faster speech rate. If unset, default value 1
@@ -5330,7 +5513,9 @@ export declare namespace CallCreateWebCallParams {
5330
5513
  interface CustomSttConfig {
5331
5514
  /**
5332
5515
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
5333
- * 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.
5334
5519
  */
5335
5520
  endpointing_ms: number;
5336
5521
  /**
@@ -6206,7 +6391,7 @@ export declare namespace CallRegisterPhoneCallParams {
6206
6391
  * available voice models. Set to null to remove voice model selection, and default
6207
6392
  * ones will apply. Check out dashboard for more details of each voice model.
6208
6393
  */
6209
- 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;
6210
6395
  /**
6211
6396
  * Controls speed of voice. Value ranging from [0.5,2]. Lower value means slower
6212
6397
  * speech, while higher value means faster speech rate. If unset, default value 1
@@ -6275,7 +6460,9 @@ export declare namespace CallRegisterPhoneCallParams {
6275
6460
  interface CustomSttConfig {
6276
6461
  /**
6277
6462
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
6278
- * 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.
6279
6466
  */
6280
6467
  endpointing_ms: number;
6281
6468
  /**
@@ -6779,6 +6966,13 @@ export declare namespace CallRegisterPhoneCallParams {
6779
6966
  }
6780
6967
  }
6781
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
+ }
6782
6976
  export interface CallUpdateLiveParams {
6783
6977
  /**
6784
6978
  * Live agent control. At least one of `additional_context` or `trigger_response`
@@ -6844,6 +7038,6 @@ export declare namespace CallUpdateLiveParams {
6844
7038
  }
6845
7039
  }
6846
7040
  export declare namespace Call {
6847
- 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, };
6848
7042
  }
6849
7043
  //# sourceMappingURL=call.d.ts.map