telnyx 5.128.0 → 5.130.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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +5 -5
  5. data/lib/telnyx/models/call_dial_params.rb +70 -3
  6. data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
  7. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
  8. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
  9. data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
  10. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
  11. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
  12. data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +6 -0
  13. data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
  14. data/lib/telnyx/models/enterprises/reputation/{remediation_create_params.rb → remediation_submit_params.rb} +3 -3
  15. data/lib/telnyx/models/enterprises/reputation/{remediation_create_response.rb → remediation_submit_response.rb} +15 -15
  16. data/lib/telnyx/models/{terms_of_service_retrieve_info_params.rb → terms_of_service_info_params.rb} +5 -5
  17. data/lib/telnyx/models/{terms_of_service_retrieve_info_response.rb → terms_of_service_info_response.rb} +9 -10
  18. data/lib/telnyx/models.rb +1 -1
  19. data/lib/telnyx/resources/enterprises/dir.rb +0 -12
  20. data/lib/telnyx/resources/enterprises/reputation/remediation.rb +41 -41
  21. data/lib/telnyx/resources/enterprises.rb +0 -4
  22. data/lib/telnyx/resources/terms_of_service.rb +7 -7
  23. data/lib/telnyx/version.rb +1 -1
  24. data/lib/telnyx.rb +4 -8
  25. data/rbi/telnyx/client.rbi +4 -4
  26. data/rbi/telnyx/models/call_dial_params.rbi +174 -6
  27. data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
  28. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
  29. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
  30. data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
  31. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
  32. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
  33. data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +30 -0
  34. data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
  35. data/rbi/telnyx/models/enterprises/reputation/{remediation_create_params.rbi → remediation_submit_params.rbi} +2 -2
  36. data/rbi/telnyx/models/enterprises/reputation/{remediation_create_response.rbi → remediation_submit_response.rbi} +22 -22
  37. data/rbi/telnyx/models/{terms_of_service_retrieve_info_params.rbi → terms_of_service_info_params.rbi} +10 -17
  38. data/rbi/telnyx/models/{terms_of_service_retrieve_info_response.rbi → terms_of_service_info_response.rbi} +15 -19
  39. data/rbi/telnyx/models.rbi +1 -2
  40. data/rbi/telnyx/resources/calls/actions.rbi +12 -5
  41. data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
  42. data/rbi/telnyx/resources/enterprises/dir.rbi +0 -9
  43. data/rbi/telnyx/resources/enterprises/reputation/remediation.rbi +36 -36
  44. data/rbi/telnyx/resources/enterprises.rbi +0 -3
  45. data/rbi/telnyx/resources/terms_of_service.rbi +3 -4
  46. data/sig/telnyx/client.rbs +2 -2
  47. data/sig/telnyx/models/call_dial_params.rbs +62 -6
  48. data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
  49. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
  50. data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
  51. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
  52. data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +16 -1
  53. data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
  54. data/sig/telnyx/models/enterprises/reputation/{remediation_create_params.rbs → remediation_submit_params.rbs} +2 -2
  55. data/sig/telnyx/models/enterprises/reputation/{remediation_create_response.rbs → remediation_submit_response.rbs} +15 -15
  56. data/sig/telnyx/models/{terms_of_service_retrieve_info_params.rbs → terms_of_service_info_params.rbs} +9 -11
  57. data/sig/telnyx/models/{terms_of_service_retrieve_info_response.rbs → terms_of_service_info_response.rbs} +15 -15
  58. data/sig/telnyx/models.rbs +1 -1
  59. data/sig/telnyx/resources/enterprises/dir.rbs +0 -6
  60. data/sig/telnyx/resources/enterprises/reputation/remediation.rbs +9 -9
  61. data/sig/telnyx/resources/enterprises.rbs +0 -2
  62. data/sig/telnyx/resources/terms_of_service.rbs +3 -3
  63. metadata +14 -26
  64. data/lib/telnyx/resources/enterprises/dir/comments.rb +0 -18
  65. data/lib/telnyx/resources/enterprises/dir/phone_number_batches.rb +0 -18
  66. data/lib/telnyx/resources/enterprises/dir/phone_numbers.rb +0 -18
  67. data/lib/telnyx/resources/enterprises/usage.rb +0 -16
  68. data/rbi/telnyx/resources/enterprises/dir/comments.rbi +0 -16
  69. data/rbi/telnyx/resources/enterprises/dir/phone_number_batches.rbi +0 -16
  70. data/rbi/telnyx/resources/enterprises/dir/phone_numbers.rbi +0 -16
  71. data/rbi/telnyx/resources/enterprises/usage.rbi +0 -14
  72. data/sig/telnyx/resources/enterprises/dir/comments.rbs +0 -11
  73. data/sig/telnyx/resources/enterprises/dir/phone_number_batches.rbs +0 -11
  74. data/sig/telnyx/resources/enterprises/dir/phone_numbers.rbs +0 -11
  75. data/sig/telnyx/resources/enterprises/usage.rbs +0 -9
@@ -843,7 +843,8 @@ module Telnyx
843
843
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
844
844
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
845
845
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
846
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
846
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
847
+ # `Max`, `TTS2`.
847
848
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
848
849
  # `ara`, `rex`, `sal`, `leo`.
849
850
  sig { returns(T.nilable(String)) }
@@ -1001,7 +1002,8 @@ module Telnyx
1001
1002
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1002
1003
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1003
1004
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1004
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1005
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1006
+ # `Max`, `TTS2`.
1005
1007
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1006
1008
  # `ara`, `rex`, `sal`, `leo`.
1007
1009
  voice: nil,
@@ -1725,16 +1727,99 @@ module Telnyx
1725
1727
  sig { returns(Symbol) }
1726
1728
  attr_accessor :type
1727
1729
 
1728
- sig { params(type: Symbol).returns(T.attached_class) }
1730
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1731
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1732
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1733
+ # supported by `TTS2`; when omitted, the provider default applies.
1734
+ sig do
1735
+ returns(
1736
+ T.nilable(
1737
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1738
+ )
1739
+ )
1740
+ end
1741
+ attr_reader :delivery_mode
1742
+
1743
+ sig do
1744
+ params(
1745
+ delivery_mode:
1746
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1747
+ ).void
1748
+ end
1749
+ attr_writer :delivery_mode
1750
+
1751
+ sig do
1752
+ params(
1753
+ delivery_mode:
1754
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
1755
+ type: Symbol
1756
+ ).returns(T.attached_class)
1757
+ end
1729
1758
  def self.new(
1759
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1760
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1761
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1762
+ # supported by `TTS2`; when omitted, the provider default applies.
1763
+ delivery_mode: nil,
1730
1764
  # Voice settings provider type
1731
1765
  type: :inworld
1732
1766
  )
1733
1767
  end
1734
1768
 
1735
- sig { override.returns({ type: Symbol }) }
1769
+ sig do
1770
+ override.returns(
1771
+ {
1772
+ type: Symbol,
1773
+ delivery_mode:
1774
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1775
+ }
1776
+ )
1777
+ end
1736
1778
  def to_hash
1737
1779
  end
1780
+
1781
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1782
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1783
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1784
+ # supported by `TTS2`; when omitted, the provider default applies.
1785
+ module DeliveryMode
1786
+ extend Telnyx::Internal::Type::Enum
1787
+
1788
+ TaggedSymbol =
1789
+ T.type_alias do
1790
+ T.all(
1791
+ Symbol,
1792
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode
1793
+ )
1794
+ end
1795
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1796
+
1797
+ STABLE =
1798
+ T.let(
1799
+ :STABLE,
1800
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1801
+ )
1802
+ BALANCED =
1803
+ T.let(
1804
+ :BALANCED,
1805
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1806
+ )
1807
+ CREATIVE =
1808
+ T.let(
1809
+ :CREATIVE,
1810
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1811
+ )
1812
+
1813
+ sig do
1814
+ override.returns(
1815
+ T::Array[
1816
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1817
+ ]
1818
+ )
1819
+ end
1820
+ def self.values
1821
+ end
1822
+ end
1738
1823
  end
1739
1824
 
1740
1825
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -1897,16 +1982,99 @@ module Telnyx
1897
1982
  sig { returns(Symbol) }
1898
1983
  attr_accessor :type
1899
1984
 
1900
- sig { params(type: Symbol).returns(T.attached_class) }
1985
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1986
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1987
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1988
+ # supported by `TTS2`; when omitted, the provider default applies.
1989
+ sig do
1990
+ returns(
1991
+ T.nilable(
1992
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1993
+ )
1994
+ )
1995
+ end
1996
+ attr_reader :delivery_mode
1997
+
1998
+ sig do
1999
+ params(
2000
+ delivery_mode:
2001
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2002
+ ).void
2003
+ end
2004
+ attr_writer :delivery_mode
2005
+
2006
+ sig do
2007
+ params(
2008
+ delivery_mode:
2009
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
2010
+ type: Symbol
2011
+ ).returns(T.attached_class)
2012
+ end
1901
2013
  def self.new(
2014
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2015
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2016
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2017
+ # supported by `TTS2`; when omitted, the provider default applies.
2018
+ delivery_mode: nil,
1902
2019
  # Voice settings provider type
1903
2020
  type: :inworld
1904
2021
  )
1905
2022
  end
1906
2023
 
1907
- sig { override.returns({ type: Symbol }) }
2024
+ sig do
2025
+ override.returns(
2026
+ {
2027
+ type: Symbol,
2028
+ delivery_mode:
2029
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2030
+ }
2031
+ )
2032
+ end
1908
2033
  def to_hash
1909
2034
  end
2035
+
2036
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2037
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2038
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2039
+ # supported by `TTS2`; when omitted, the provider default applies.
2040
+ module DeliveryMode
2041
+ extend Telnyx::Internal::Type::Enum
2042
+
2043
+ TaggedSymbol =
2044
+ T.type_alias do
2045
+ T.all(
2046
+ Symbol,
2047
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode
2048
+ )
2049
+ end
2050
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2051
+
2052
+ STABLE =
2053
+ T.let(
2054
+ :STABLE,
2055
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2056
+ )
2057
+ BALANCED =
2058
+ T.let(
2059
+ :BALANCED,
2060
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2061
+ )
2062
+ CREATIVE =
2063
+ T.let(
2064
+ :CREATIVE,
2065
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2066
+ )
2067
+
2068
+ sig do
2069
+ override.returns(
2070
+ T::Array[
2071
+ Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2072
+ ]
2073
+ )
2074
+ end
2075
+ def self.values
2076
+ end
2077
+ end
1910
2078
  end
1911
2079
 
1912
2080
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -174,7 +174,8 @@ module Telnyx
174
174
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
175
175
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
176
176
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
177
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
177
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
178
+ # `Max`, `TTS2`.
178
179
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
179
180
  # `ara`, `rex`, `sal`, `leo`.
180
181
  sig { returns(T.nilable(String)) }
@@ -319,7 +320,8 @@ module Telnyx
319
320
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
320
321
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
321
322
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
322
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
323
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
324
+ # `Max`, `TTS2`.
323
325
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
324
326
  # `ara`, `rex`, `sal`, `leo`.
325
327
  voice: nil,
@@ -60,7 +60,9 @@ module Telnyx
60
60
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
61
61
  # `voice_settings` to configure precision, sample_rate, and format.
62
62
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
63
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
63
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
64
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
65
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
64
66
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
65
67
  # `ara`, `rex`, `sal`, `leo`.
66
68
  #
@@ -320,7 +322,9 @@ module Telnyx
320
322
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
321
323
  # `voice_settings` to configure precision, sample_rate, and format.
322
324
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
323
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
325
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
326
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
327
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
324
328
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
325
329
  # `ara`, `rex`, `sal`, `leo`.
326
330
  #
@@ -686,16 +690,99 @@ module Telnyx
686
690
  sig { returns(Symbol) }
687
691
  attr_accessor :type
688
692
 
689
- sig { params(type: Symbol).returns(T.attached_class) }
693
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
694
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
695
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
696
+ # supported by `TTS2`; when omitted, the provider default applies.
697
+ sig do
698
+ returns(
699
+ T.nilable(
700
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
701
+ )
702
+ )
703
+ end
704
+ attr_reader :delivery_mode
705
+
706
+ sig do
707
+ params(
708
+ delivery_mode:
709
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
710
+ ).void
711
+ end
712
+ attr_writer :delivery_mode
713
+
714
+ sig do
715
+ params(
716
+ delivery_mode:
717
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
718
+ type: Symbol
719
+ ).returns(T.attached_class)
720
+ end
690
721
  def self.new(
722
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
723
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
724
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
725
+ # supported by `TTS2`; when omitted, the provider default applies.
726
+ delivery_mode: nil,
691
727
  # Voice settings provider type
692
728
  type: :inworld
693
729
  )
694
730
  end
695
731
 
696
- sig { override.returns({ type: Symbol }) }
732
+ sig do
733
+ override.returns(
734
+ {
735
+ type: Symbol,
736
+ delivery_mode:
737
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
738
+ }
739
+ )
740
+ end
697
741
  def to_hash
698
742
  end
743
+
744
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
745
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
746
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
747
+ # supported by `TTS2`; when omitted, the provider default applies.
748
+ module DeliveryMode
749
+ extend Telnyx::Internal::Type::Enum
750
+
751
+ TaggedSymbol =
752
+ T.type_alias do
753
+ T.all(
754
+ Symbol,
755
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode
756
+ )
757
+ end
758
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
759
+
760
+ STABLE =
761
+ T.let(
762
+ :STABLE,
763
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
764
+ )
765
+ BALANCED =
766
+ T.let(
767
+ :BALANCED,
768
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
769
+ )
770
+ CREATIVE =
771
+ T.let(
772
+ :CREATIVE,
773
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
774
+ )
775
+
776
+ sig do
777
+ override.returns(
778
+ T::Array[
779
+ Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
780
+ ]
781
+ )
782
+ end
783
+ def self.values
784
+ end
785
+ end
699
786
  end
700
787
 
701
788
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -57,7 +57,9 @@ module Telnyx
57
57
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
58
58
  # `voice_settings` to configure precision, sample_rate, and format.
59
59
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
60
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
60
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
61
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
62
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
61
63
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
62
64
  # `ara`, `rex`, `sal`, `leo`.
63
65
  #
@@ -275,7 +277,9 @@ module Telnyx
275
277
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
276
278
  # `voice_settings` to configure precision, sample_rate, and format.
277
279
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
278
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
280
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
281
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
282
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
279
283
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
280
284
  # `ara`, `rex`, `sal`, `leo`.
281
285
  #
@@ -650,16 +654,99 @@ module Telnyx
650
654
  sig { returns(Symbol) }
651
655
  attr_accessor :type
652
656
 
653
- sig { params(type: Symbol).returns(T.attached_class) }
657
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
658
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
659
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
660
+ # supported by `TTS2`; when omitted, the provider default applies.
661
+ sig do
662
+ returns(
663
+ T.nilable(
664
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
665
+ )
666
+ )
667
+ end
668
+ attr_reader :delivery_mode
669
+
670
+ sig do
671
+ params(
672
+ delivery_mode:
673
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
674
+ ).void
675
+ end
676
+ attr_writer :delivery_mode
677
+
678
+ sig do
679
+ params(
680
+ delivery_mode:
681
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
682
+ type: Symbol
683
+ ).returns(T.attached_class)
684
+ end
654
685
  def self.new(
686
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
687
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
688
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
689
+ # supported by `TTS2`; when omitted, the provider default applies.
690
+ delivery_mode: nil,
655
691
  # Voice settings provider type
656
692
  type: :inworld
657
693
  )
658
694
  end
659
695
 
660
- sig { override.returns({ type: Symbol }) }
696
+ sig do
697
+ override.returns(
698
+ {
699
+ type: Symbol,
700
+ delivery_mode:
701
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
702
+ }
703
+ )
704
+ end
661
705
  def to_hash
662
706
  end
707
+
708
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
709
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
710
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
711
+ # supported by `TTS2`; when omitted, the provider default applies.
712
+ module DeliveryMode
713
+ extend Telnyx::Internal::Type::Enum
714
+
715
+ TaggedSymbol =
716
+ T.type_alias do
717
+ T.all(
718
+ Symbol,
719
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode
720
+ )
721
+ end
722
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
723
+
724
+ STABLE =
725
+ T.let(
726
+ :STABLE,
727
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
728
+ )
729
+ BALANCED =
730
+ T.let(
731
+ :BALANCED,
732
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
733
+ )
734
+ CREATIVE =
735
+ T.let(
736
+ :CREATIVE,
737
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
738
+ )
739
+
740
+ sig do
741
+ override.returns(
742
+ T::Array[
743
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
744
+ ]
745
+ )
746
+ end
747
+ def self.values
748
+ end
749
+ end
663
750
  end
664
751
 
665
752
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -161,7 +161,8 @@ module Telnyx
161
161
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
162
162
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
163
163
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
164
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
164
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
165
+ # `Max`, `TTS2`.
165
166
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
166
167
  # `ara`, `rex`, `sal`, `leo`.
167
168
  sig { returns(T.nilable(String)) }
@@ -296,7 +297,8 @@ module Telnyx
296
297
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
297
298
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
298
299
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
299
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
300
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
301
+ # `Max`, `TTS2`.
300
302
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
301
303
  # `ara`, `rex`, `sal`, `leo`.
302
304
  voice: nil,