retell-sdk 6.2.7 → 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 (44) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +111 -15
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +111 -15
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +37 -5
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +37 -5
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +113 -17
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +113 -17
  14. package/resources/call.d.ts.map +1 -1
  15. package/resources/call.js +2 -2
  16. package/resources/call.mjs +2 -2
  17. package/resources/chat-agent.d.mts +111 -15
  18. package/resources/chat-agent.d.mts.map +1 -1
  19. package/resources/chat-agent.d.ts +111 -15
  20. package/resources/chat-agent.d.ts.map +1 -1
  21. package/resources/conversation-flow-component.d.mts +198 -0
  22. package/resources/conversation-flow-component.d.mts.map +1 -1
  23. package/resources/conversation-flow-component.d.ts +198 -0
  24. package/resources/conversation-flow-component.d.ts.map +1 -1
  25. package/resources/conversation-flow.d.mts +396 -0
  26. package/resources/conversation-flow.d.mts.map +1 -1
  27. package/resources/conversation-flow.d.ts +396 -0
  28. package/resources/conversation-flow.d.ts.map +1 -1
  29. package/resources/llm.d.mts +210 -0
  30. package/resources/llm.d.mts.map +1 -1
  31. package/resources/llm.d.ts +210 -0
  32. package/resources/llm.d.ts.map +1 -1
  33. package/src/resources/agent.ts +135 -15
  34. package/src/resources/batch-call.ts +48 -5
  35. package/src/resources/call.ts +146 -17
  36. package/src/resources/chat-agent.ts +135 -15
  37. package/src/resources/conversation-flow-component.ts +249 -0
  38. package/src/resources/conversation-flow.ts +507 -0
  39. package/src/resources/llm.ts +264 -0
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
  44. package/version.mjs +1 -1
@@ -125,8 +125,8 @@ export declare class Call extends APIResource {
125
125
  /**
126
126
  * Take over an in-progress call from the AI agent. The agent stops responding and
127
127
  * the specified live-listen participant is allowed to speak directly to the
128
- * caller. The call must be in ONGOING status. Gateway calls cannot be taken over
129
- * while a PCI session is active.
128
+ * caller. The call must be in ONGOING status. Calls cannot be taken over while a
129
+ * PCI session is active.
130
130
  *
131
131
  * @example
132
132
  * ```ts
@@ -5882,12 +5882,9 @@ export declare namespace CallCreatePhoneCallParams {
5882
5882
  /**
5883
5883
  * Specifies what language(s) the agent will operate in. Accepts either a single
5884
5884
  * locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
5885
- * `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted
5886
- * as a scalar, and is stored and returned as the ten locales it used to mean. It
5887
- * must not appear inside the array form. Send an explicit locale array instead. If
5888
- * unset, defaults to `en-US`.
5885
+ * `["en-US","es-ES"]`). If unset, defaults to `en-US`.
5889
5886
  */
5890
- language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | 'multi' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
5887
+ language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
5891
5888
  /**
5892
5889
  * Maximum allowed length for the call, will force end the call if reached. The
5893
5890
  * minimum value allowed is 60,000 ms (1 min), and maximum value allowed is
@@ -6807,6 +6804,20 @@ export declare namespace CallCreatePhoneCallParams {
6807
6804
  * to "prompt".
6808
6805
  */
6809
6806
  execution_message_type?: 'prompt' | 'static_text';
6807
+ /**
6808
+ * SMS destination number configuration. If omitted, the message is sent to the
6809
+ * customer number on the call.
6810
+ */
6811
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
6812
+ /**
6813
+ * SMS sender number configuration. If omitted, the message is sent from the
6814
+ * agent's phone number.
6815
+ */
6816
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
6817
+ /**
6818
+ * Whether the agent should speak after the SMS tool finishes execution.
6819
+ */
6820
+ speak_after_execution?: boolean;
6810
6821
  /**
6811
6822
  * If true, the agent will speak a short line before sending the SMS. If omitted,
6812
6823
  * defaults to true (same as end_call / transfer_call tools).
@@ -6861,6 +6872,27 @@ export declare namespace CallCreatePhoneCallParams {
6861
6872
  right?: string;
6862
6873
  }
6863
6874
  }
6875
+ interface DestinationCustomerNumber {
6876
+ type: 'customer_number';
6877
+ }
6878
+ interface DestinationPhoneNumber {
6879
+ /**
6880
+ * Destination phone number in E.164 format.
6881
+ */
6882
+ phone_number: string;
6883
+ type: 'phone_number';
6884
+ /**
6885
+ * If true, skip E.164 validation for this phone number (same semantics as
6886
+ * transfer_call ignore_e164_validation).
6887
+ */
6888
+ ignore_e164_validation?: boolean;
6889
+ }
6890
+ interface SenderCurrentNumber {
6891
+ type: 'current_number';
6892
+ }
6893
+ interface SenderRetellLongCode {
6894
+ type: 'retell_long_code';
6895
+ }
6864
6896
  }
6865
6897
  interface AppTool {
6866
6898
  /**
@@ -7766,12 +7798,9 @@ export declare namespace CallCreateWebCallParams {
7766
7798
  /**
7767
7799
  * Specifies what language(s) the agent will operate in. Accepts either a single
7768
7800
  * locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
7769
- * `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted
7770
- * as a scalar, and is stored and returned as the ten locales it used to mean. It
7771
- * must not appear inside the array form. Send an explicit locale array instead. If
7772
- * unset, defaults to `en-US`.
7801
+ * `["en-US","es-ES"]`). If unset, defaults to `en-US`.
7773
7802
  */
7774
- language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | 'multi' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
7803
+ language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
7775
7804
  /**
7776
7805
  * Maximum allowed length for the call, will force end the call if reached. The
7777
7806
  * minimum value allowed is 60,000 ms (1 min), and maximum value allowed is
@@ -8691,6 +8720,20 @@ export declare namespace CallCreateWebCallParams {
8691
8720
  * to "prompt".
8692
8721
  */
8693
8722
  execution_message_type?: 'prompt' | 'static_text';
8723
+ /**
8724
+ * SMS destination number configuration. If omitted, the message is sent to the
8725
+ * customer number on the call.
8726
+ */
8727
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
8728
+ /**
8729
+ * SMS sender number configuration. If omitted, the message is sent from the
8730
+ * agent's phone number.
8731
+ */
8732
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
8733
+ /**
8734
+ * Whether the agent should speak after the SMS tool finishes execution.
8735
+ */
8736
+ speak_after_execution?: boolean;
8694
8737
  /**
8695
8738
  * If true, the agent will speak a short line before sending the SMS. If omitted,
8696
8739
  * defaults to true (same as end_call / transfer_call tools).
@@ -8745,6 +8788,27 @@ export declare namespace CallCreateWebCallParams {
8745
8788
  right?: string;
8746
8789
  }
8747
8790
  }
8791
+ interface DestinationCustomerNumber {
8792
+ type: 'customer_number';
8793
+ }
8794
+ interface DestinationPhoneNumber {
8795
+ /**
8796
+ * Destination phone number in E.164 format.
8797
+ */
8798
+ phone_number: string;
8799
+ type: 'phone_number';
8800
+ /**
8801
+ * If true, skip E.164 validation for this phone number (same semantics as
8802
+ * transfer_call ignore_e164_validation).
8803
+ */
8804
+ ignore_e164_validation?: boolean;
8805
+ }
8806
+ interface SenderCurrentNumber {
8807
+ type: 'current_number';
8808
+ }
8809
+ interface SenderRetellLongCode {
8810
+ type: 'retell_long_code';
8811
+ }
8748
8812
  }
8749
8813
  interface AppTool {
8750
8814
  /**
@@ -9649,12 +9713,9 @@ export declare namespace CallRegisterPhoneCallParams {
9649
9713
  /**
9650
9714
  * Specifies what language(s) the agent will operate in. Accepts either a single
9651
9715
  * locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
9652
- * `["en-US","es-ES"]`). The scalar value `multi` is deprecated but still accepted
9653
- * as a scalar, and is stored and returned as the ten locales it used to mean. It
9654
- * must not appear inside the array form. Send an explicit locale array instead. If
9655
- * unset, defaults to `en-US`.
9716
+ * `["en-US","es-ES"]`). If unset, defaults to `en-US`.
9656
9717
  */
9657
- language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | 'multi' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
9718
+ language?: 'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA' | Array<'en-US' | 'en-IN' | 'en-GB' | 'en-AU' | 'en-NZ' | 'de-DE' | 'es-ES' | 'es-419' | 'hi-IN' | 'fr-FR' | 'fr-CA' | 'ja-JP' | 'pt-PT' | 'pt-BR' | 'zh-CN' | 'ru-RU' | 'it-IT' | 'ko-KR' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'ro-RO' | 'bg-BG' | 'ca-ES' | 'th-TH' | 'da-DK' | 'fi-FI' | 'el-GR' | 'hu-HU' | 'id-ID' | 'no-NO' | 'sk-SK' | 'sv-SE' | 'lt-LT' | 'lv-LV' | 'cs-CZ' | 'ms-MY' | 'af-ZA' | 'ar-SA' | 'az-AZ' | 'bs-BA' | 'cy-GB' | 'fa-IR' | 'fil-PH' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hy-AM' | 'is-IS' | 'kk-KZ' | 'kn-IN' | 'mk-MK' | 'mr-IN' | 'ne-NP' | 'sl-SI' | 'sr-RS' | 'sw-KE' | 'ta-IN' | 'ur-IN' | 'yue-CN' | 'uk-UA'>;
9658
9719
  /**
9659
9720
  * Maximum allowed length for the call, will force end the call if reached. The
9660
9721
  * minimum value allowed is 60,000 ms (1 min), and maximum value allowed is
@@ -10574,6 +10635,20 @@ export declare namespace CallRegisterPhoneCallParams {
10574
10635
  * to "prompt".
10575
10636
  */
10576
10637
  execution_message_type?: 'prompt' | 'static_text';
10638
+ /**
10639
+ * SMS destination number configuration. If omitted, the message is sent to the
10640
+ * customer number on the call.
10641
+ */
10642
+ sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
10643
+ /**
10644
+ * SMS sender number configuration. If omitted, the message is sent from the
10645
+ * agent's phone number.
10646
+ */
10647
+ sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
10648
+ /**
10649
+ * Whether the agent should speak after the SMS tool finishes execution.
10650
+ */
10651
+ speak_after_execution?: boolean;
10577
10652
  /**
10578
10653
  * If true, the agent will speak a short line before sending the SMS. If omitted,
10579
10654
  * defaults to true (same as end_call / transfer_call tools).
@@ -10628,6 +10703,27 @@ export declare namespace CallRegisterPhoneCallParams {
10628
10703
  right?: string;
10629
10704
  }
10630
10705
  }
10706
+ interface DestinationCustomerNumber {
10707
+ type: 'customer_number';
10708
+ }
10709
+ interface DestinationPhoneNumber {
10710
+ /**
10711
+ * Destination phone number in E.164 format.
10712
+ */
10713
+ phone_number: string;
10714
+ type: 'phone_number';
10715
+ /**
10716
+ * If true, skip E.164 validation for this phone number (same semantics as
10717
+ * transfer_call ignore_e164_validation).
10718
+ */
10719
+ ignore_e164_validation?: boolean;
10720
+ }
10721
+ interface SenderCurrentNumber {
10722
+ type: 'current_number';
10723
+ }
10724
+ interface SenderRetellLongCode {
10725
+ type: 'retell_long_code';
10726
+ }
10631
10727
  }
10632
10728
  interface AppTool {
10633
10729
  /**