retell-sdk 6.2.6 → 6.2.8

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 (51) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +141 -18
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +141 -18
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +61 -12
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +61 -12
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +185 -37
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +185 -37
  14. package/resources/call.d.ts.map +1 -1
  15. package/resources/call.js +2 -1
  16. package/resources/call.js.map +1 -1
  17. package/resources/call.mjs +2 -1
  18. package/resources/call.mjs.map +1 -1
  19. package/resources/chat-agent.d.mts +130 -18
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +130 -18
  22. package/resources/chat-agent.d.ts.map +1 -1
  23. package/resources/conversation-flow-component.d.mts +492 -42
  24. package/resources/conversation-flow-component.d.mts.map +1 -1
  25. package/resources/conversation-flow-component.d.ts +492 -42
  26. package/resources/conversation-flow-component.d.ts.map +1 -1
  27. package/resources/conversation-flow.d.mts +1005 -87
  28. package/resources/conversation-flow.d.mts.map +1 -1
  29. package/resources/conversation-flow.d.ts +1005 -87
  30. package/resources/conversation-flow.d.ts.map +1 -1
  31. package/resources/llm.d.mts +234 -3
  32. package/resources/llm.d.mts.map +1 -1
  33. package/resources/llm.d.ts +234 -3
  34. package/resources/llm.d.ts.map +1 -1
  35. package/resources/tests.d.mts +3 -3
  36. package/resources/tests.d.mts.map +1 -1
  37. package/resources/tests.d.ts +3 -3
  38. package/resources/tests.d.ts.map +1 -1
  39. package/src/resources/agent.ts +172 -15
  40. package/src/resources/batch-call.ts +75 -10
  41. package/src/resources/call.ts +227 -31
  42. package/src/resources/chat-agent.ts +159 -15
  43. package/src/resources/conversation-flow-component.ts +627 -42
  44. package/src/resources/conversation-flow.ts +1290 -87
  45. package/src/resources/llm.ts +291 -0
  46. package/src/resources/tests.ts +6 -3
  47. package/src/version.ts +1 -1
  48. package/version.d.mts +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/version.mjs +1 -1
@@ -261,10 +261,7 @@ export interface ChatAgentResponse {
261
261
  /**
262
262
  * Specifies what language(s) the agent will operate in. Accepts either a single
263
263
  * locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
264
- * `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted
265
- * as a scalar, and is stored and returned as the ten locales it used to mean. It
266
- * must not appear inside the array form. Send an explicit locale array instead. If
267
- * unset, defaults to `en-US`.
264
+ * `["en-US","es-ES"]`). If unset, defaults to `en-US`.
268
265
  */
269
266
  language?:
270
267
  | 'en-US'
@@ -330,7 +327,6 @@ export interface ChatAgentResponse {
330
327
  | 'ur-IN'
331
328
  | 'yue-CN'
332
329
  | 'uk-UA'
333
- | 'multi'
334
330
  | Array<
335
331
  | 'en-US'
336
332
  | 'en-IN'
@@ -456,6 +452,7 @@ export interface ChatAgentResponse {
456
452
  | 'gemini-3.6-flash'
457
453
  | 'gemini-3.7-flash'
458
454
  | 'gemini-3.8-flash'
455
+ | 'gemini-4-argon'
459
456
  | null;
460
457
 
461
458
  /**
@@ -1410,6 +1407,23 @@ export namespace ChatAgentResponse {
1410
1407
  */
1411
1408
  execution_message_type?: 'prompt' | 'static_text';
1412
1409
 
1410
+ /**
1411
+ * SMS destination number configuration. If omitted, the message is sent to the
1412
+ * customer number on the call.
1413
+ */
1414
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
1415
+
1416
+ /**
1417
+ * SMS sender number configuration. If omitted, the message is sent from the
1418
+ * agent's phone number.
1419
+ */
1420
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
1421
+
1422
+ /**
1423
+ * Whether the agent should speak after the SMS tool finishes execution.
1424
+ */
1425
+ speak_after_execution?: boolean;
1426
+
1413
1427
  /**
1414
1428
  * If true, the agent will speak a short line before sending the SMS. If omitted,
1415
1429
  * defaults to true (same as end_call / transfer_call tools).
@@ -1486,6 +1500,33 @@ export namespace ChatAgentResponse {
1486
1500
  right?: string;
1487
1501
  }
1488
1502
  }
1503
+
1504
+ export interface DestinationCustomerNumber {
1505
+ type: 'customer_number';
1506
+ }
1507
+
1508
+ export interface DestinationPhoneNumber {
1509
+ /**
1510
+ * Destination phone number in E.164 format.
1511
+ */
1512
+ phone_number: string;
1513
+
1514
+ type: 'phone_number';
1515
+
1516
+ /**
1517
+ * If true, skip E.164 validation for this phone number (same semantics as
1518
+ * transfer_call ignore_e164_validation).
1519
+ */
1520
+ ignore_e164_validation?: boolean;
1521
+ }
1522
+
1523
+ export interface SenderCurrentNumber {
1524
+ type: 'current_number';
1525
+ }
1526
+
1527
+ export interface SenderRetellLongCode {
1528
+ type: 'retell_long_code';
1529
+ }
1489
1530
  }
1490
1531
 
1491
1532
  export interface AppTool {
@@ -1912,6 +1953,11 @@ export namespace ChatAgentListResponse {
1912
1953
  * update or creation if no updates available.
1913
1954
  */
1914
1955
  user_modified_timestamp: number;
1956
+
1957
+ /**
1958
+ * Whether the agent is a transfer agent used for agentic warm transfer.
1959
+ */
1960
+ is_transfer_agent?: boolean;
1915
1961
  }
1916
1962
 
1917
1963
  export namespace Item {
@@ -1992,10 +2038,7 @@ export interface ChatAgentCreateParams {
1992
2038
  /**
1993
2039
  * Specifies what language(s) the agent will operate in. Accepts either a single
1994
2040
  * locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
1995
- * `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted
1996
- * as a scalar, and is stored and returned as the ten locales it used to mean. It
1997
- * must not appear inside the array form. Send an explicit locale array instead. If
1998
- * unset, defaults to `en-US`.
2041
+ * `["en-US","es-ES"]`). If unset, defaults to `en-US`.
1999
2042
  */
2000
2043
  language?:
2001
2044
  | 'en-US'
@@ -2061,7 +2104,6 @@ export interface ChatAgentCreateParams {
2061
2104
  | 'ur-IN'
2062
2105
  | 'yue-CN'
2063
2106
  | 'uk-UA'
2064
- | 'multi'
2065
2107
  | Array<
2066
2108
  | 'en-US'
2067
2109
  | 'en-IN'
@@ -2187,6 +2229,7 @@ export interface ChatAgentCreateParams {
2187
2229
  | 'gemini-3.6-flash'
2188
2230
  | 'gemini-3.7-flash'
2189
2231
  | 'gemini-3.8-flash'
2232
+ | 'gemini-4-argon'
2190
2233
  | null;
2191
2234
 
2192
2235
  /**
@@ -3136,6 +3179,23 @@ export namespace ChatAgentCreateParams {
3136
3179
  */
3137
3180
  execution_message_type?: 'prompt' | 'static_text';
3138
3181
 
3182
+ /**
3183
+ * SMS destination number configuration. If omitted, the message is sent to the
3184
+ * customer number on the call.
3185
+ */
3186
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
3187
+
3188
+ /**
3189
+ * SMS sender number configuration. If omitted, the message is sent from the
3190
+ * agent's phone number.
3191
+ */
3192
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
3193
+
3194
+ /**
3195
+ * Whether the agent should speak after the SMS tool finishes execution.
3196
+ */
3197
+ speak_after_execution?: boolean;
3198
+
3139
3199
  /**
3140
3200
  * If true, the agent will speak a short line before sending the SMS. If omitted,
3141
3201
  * defaults to true (same as end_call / transfer_call tools).
@@ -3212,6 +3272,33 @@ export namespace ChatAgentCreateParams {
3212
3272
  right?: string;
3213
3273
  }
3214
3274
  }
3275
+
3276
+ export interface DestinationCustomerNumber {
3277
+ type: 'customer_number';
3278
+ }
3279
+
3280
+ export interface DestinationPhoneNumber {
3281
+ /**
3282
+ * Destination phone number in E.164 format.
3283
+ */
3284
+ phone_number: string;
3285
+
3286
+ type: 'phone_number';
3287
+
3288
+ /**
3289
+ * If true, skip E.164 validation for this phone number (same semantics as
3290
+ * transfer_call ignore_e164_validation).
3291
+ */
3292
+ ignore_e164_validation?: boolean;
3293
+ }
3294
+
3295
+ export interface SenderCurrentNumber {
3296
+ type: 'current_number';
3297
+ }
3298
+
3299
+ export interface SenderRetellLongCode {
3300
+ type: 'retell_long_code';
3301
+ }
3215
3302
  }
3216
3303
 
3217
3304
  export interface AppTool {
@@ -3672,10 +3759,7 @@ export interface ChatAgentUpdateParams {
3672
3759
  /**
3673
3760
  * Body param: Specifies what language(s) the agent will operate in. Accepts either
3674
3761
  * a single locale (e.g. `en-US`) or an array of locales for multilingual agents
3675
- * (e.g. `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still
3676
- * accepted as a scalar, and is stored and returned as the ten locales it used to
3677
- * mean. It must not appear inside the array form. Send an explicit locale array
3678
- * instead. If unset, defaults to `en-US`.
3762
+ * (e.g. `["en-US","es-ES"]`). If unset, defaults to `en-US`.
3679
3763
  */
3680
3764
  language?:
3681
3765
  | 'en-US'
@@ -3741,7 +3825,6 @@ export interface ChatAgentUpdateParams {
3741
3825
  | 'ur-IN'
3742
3826
  | 'yue-CN'
3743
3827
  | 'uk-UA'
3744
- | 'multi'
3745
3828
  | Array<
3746
3829
  | 'en-US'
3747
3830
  | 'en-IN'
@@ -3867,6 +3950,7 @@ export interface ChatAgentUpdateParams {
3867
3950
  | 'gemini-3.6-flash'
3868
3951
  | 'gemini-3.7-flash'
3869
3952
  | 'gemini-3.8-flash'
3953
+ | 'gemini-4-argon'
3870
3954
  | null;
3871
3955
 
3872
3956
  /**
@@ -4783,6 +4867,23 @@ export namespace ChatAgentUpdateParams {
4783
4867
  */
4784
4868
  execution_message_type?: 'prompt' | 'static_text';
4785
4869
 
4870
+ /**
4871
+ * SMS destination number configuration. If omitted, the message is sent to the
4872
+ * customer number on the call.
4873
+ */
4874
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
4875
+
4876
+ /**
4877
+ * SMS sender number configuration. If omitted, the message is sent from the
4878
+ * agent's phone number.
4879
+ */
4880
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
4881
+
4882
+ /**
4883
+ * Whether the agent should speak after the SMS tool finishes execution.
4884
+ */
4885
+ speak_after_execution?: boolean;
4886
+
4786
4887
  /**
4787
4888
  * If true, the agent will speak a short line before sending the SMS. If omitted,
4788
4889
  * defaults to true (same as end_call / transfer_call tools).
@@ -4859,6 +4960,33 @@ export namespace ChatAgentUpdateParams {
4859
4960
  right?: string;
4860
4961
  }
4861
4962
  }
4963
+
4964
+ export interface DestinationCustomerNumber {
4965
+ type: 'customer_number';
4966
+ }
4967
+
4968
+ export interface DestinationPhoneNumber {
4969
+ /**
4970
+ * Destination phone number in E.164 format.
4971
+ */
4972
+ phone_number: string;
4973
+
4974
+ type: 'phone_number';
4975
+
4976
+ /**
4977
+ * If true, skip E.164 validation for this phone number (same semantics as
4978
+ * transfer_call ignore_e164_validation).
4979
+ */
4980
+ ignore_e164_validation?: boolean;
4981
+ }
4982
+
4983
+ export interface SenderCurrentNumber {
4984
+ type: 'current_number';
4985
+ }
4986
+
4987
+ export interface SenderRetellLongCode {
4988
+ type: 'retell_long_code';
4989
+ }
4862
4990
  }
4863
4991
 
4864
4992
  export interface AppTool {
@@ -5323,6 +5451,11 @@ export namespace ChatAgentListParams {
5323
5451
  export interface FilterCriteria {
5324
5452
  channel?: FilterCriteria.Channel;
5325
5453
 
5454
+ /**
5455
+ * Filter by whether the agent is a transfer agent.
5456
+ */
5457
+ is_transfer_agent?: FilterCriteria.IsTransferAgent;
5458
+
5326
5459
  /**
5327
5460
  * Case-insensitive substring search over agent name, plus substring search over
5328
5461
  * agent id.
@@ -5341,6 +5474,17 @@ export namespace ChatAgentListParams {
5341
5474
 
5342
5475
  value: 'voice' | 'chat';
5343
5476
  }
5477
+
5478
+ /**
5479
+ * Filter by whether the agent is a transfer agent.
5480
+ */
5481
+ export interface IsTransferAgent {
5482
+ op: 'eq';
5483
+
5484
+ type: 'boolean';
5485
+
5486
+ value: boolean;
5487
+ }
5344
5488
  }
5345
5489
  }
5346
5490