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
@@ -296,7 +296,8 @@ module Telnyx
296
296
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
297
297
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
298
298
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
299
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
299
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
300
+ # `Max`, `TTS2`.
300
301
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
301
302
  # `ara`, `rex`, `sal`, `leo`.
302
303
  sig { returns(T.nilable(String)) }
@@ -484,7 +485,8 @@ module Telnyx
484
485
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
485
486
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
486
487
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
487
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
488
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
489
+ # `Max`, `TTS2`.
488
490
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
489
491
  # `ara`, `rex`, `sal`, `leo`.
490
492
  voice: nil,
@@ -1128,16 +1130,99 @@ module Telnyx
1128
1130
  sig { returns(Symbol) }
1129
1131
  attr_accessor :type
1130
1132
 
1131
- sig { params(type: Symbol).returns(T.attached_class) }
1133
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1134
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1135
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1136
+ # supported by `TTS2`; when omitted, the provider default applies.
1137
+ sig do
1138
+ returns(
1139
+ T.nilable(
1140
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1141
+ )
1142
+ )
1143
+ end
1144
+ attr_reader :delivery_mode
1145
+
1146
+ sig do
1147
+ params(
1148
+ delivery_mode:
1149
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1150
+ ).void
1151
+ end
1152
+ attr_writer :delivery_mode
1153
+
1154
+ sig do
1155
+ params(
1156
+ delivery_mode:
1157
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
1158
+ type: Symbol
1159
+ ).returns(T.attached_class)
1160
+ end
1132
1161
  def self.new(
1162
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1163
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1164
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1165
+ # supported by `TTS2`; when omitted, the provider default applies.
1166
+ delivery_mode: nil,
1133
1167
  # Voice settings provider type
1134
1168
  type: :inworld
1135
1169
  )
1136
1170
  end
1137
1171
 
1138
- sig { override.returns({ type: Symbol }) }
1172
+ sig do
1173
+ override.returns(
1174
+ {
1175
+ type: Symbol,
1176
+ delivery_mode:
1177
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1178
+ }
1179
+ )
1180
+ end
1139
1181
  def to_hash
1140
1182
  end
1183
+
1184
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1185
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1186
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1187
+ # supported by `TTS2`; when omitted, the provider default applies.
1188
+ module DeliveryMode
1189
+ extend Telnyx::Internal::Type::Enum
1190
+
1191
+ TaggedSymbol =
1192
+ T.type_alias do
1193
+ T.all(
1194
+ Symbol,
1195
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode
1196
+ )
1197
+ end
1198
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1199
+
1200
+ STABLE =
1201
+ T.let(
1202
+ :STABLE,
1203
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1204
+ )
1205
+ BALANCED =
1206
+ T.let(
1207
+ :BALANCED,
1208
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1209
+ )
1210
+ CREATIVE =
1211
+ T.let(
1212
+ :CREATIVE,
1213
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1214
+ )
1215
+
1216
+ sig do
1217
+ override.returns(
1218
+ T::Array[
1219
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1220
+ ]
1221
+ )
1222
+ end
1223
+ def self.values
1224
+ end
1225
+ end
1141
1226
  end
1142
1227
 
1143
1228
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -1863,16 +1948,99 @@ module Telnyx
1863
1948
  sig { returns(Symbol) }
1864
1949
  attr_accessor :type
1865
1950
 
1866
- sig { params(type: Symbol).returns(T.attached_class) }
1951
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1952
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1953
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1954
+ # supported by `TTS2`; when omitted, the provider default applies.
1955
+ sig do
1956
+ returns(
1957
+ T.nilable(
1958
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1959
+ )
1960
+ )
1961
+ end
1962
+ attr_reader :delivery_mode
1963
+
1964
+ sig do
1965
+ params(
1966
+ delivery_mode:
1967
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1968
+ ).void
1969
+ end
1970
+ attr_writer :delivery_mode
1971
+
1972
+ sig do
1973
+ params(
1974
+ delivery_mode:
1975
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
1976
+ type: Symbol
1977
+ ).returns(T.attached_class)
1978
+ end
1867
1979
  def self.new(
1980
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1981
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1982
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1983
+ # supported by `TTS2`; when omitted, the provider default applies.
1984
+ delivery_mode: nil,
1868
1985
  # Voice settings provider type
1869
1986
  type: :inworld
1870
1987
  )
1871
1988
  end
1872
1989
 
1873
- sig { override.returns({ type: Symbol }) }
1990
+ sig do
1991
+ override.returns(
1992
+ {
1993
+ type: Symbol,
1994
+ delivery_mode:
1995
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1996
+ }
1997
+ )
1998
+ end
1874
1999
  def to_hash
1875
2000
  end
2001
+
2002
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2003
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2004
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2005
+ # supported by `TTS2`; when omitted, the provider default applies.
2006
+ module DeliveryMode
2007
+ extend Telnyx::Internal::Type::Enum
2008
+
2009
+ TaggedSymbol =
2010
+ T.type_alias do
2011
+ T.all(
2012
+ Symbol,
2013
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode
2014
+ )
2015
+ end
2016
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2017
+
2018
+ STABLE =
2019
+ T.let(
2020
+ :STABLE,
2021
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2022
+ )
2023
+ BALANCED =
2024
+ T.let(
2025
+ :BALANCED,
2026
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2027
+ )
2028
+ CREATIVE =
2029
+ T.let(
2030
+ :CREATIVE,
2031
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2032
+ )
2033
+
2034
+ sig do
2035
+ override.returns(
2036
+ T::Array[
2037
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2038
+ ]
2039
+ )
2040
+ end
2041
+ def self.values
2042
+ end
2043
+ end
1876
2044
  end
1877
2045
 
1878
2046
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -2033,16 +2201,99 @@ module Telnyx
2033
2201
  sig { returns(Symbol) }
2034
2202
  attr_accessor :type
2035
2203
 
2036
- sig { params(type: Symbol).returns(T.attached_class) }
2204
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2205
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2206
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2207
+ # supported by `TTS2`; when omitted, the provider default applies.
2208
+ sig do
2209
+ returns(
2210
+ T.nilable(
2211
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2212
+ )
2213
+ )
2214
+ end
2215
+ attr_reader :delivery_mode
2216
+
2217
+ sig do
2218
+ params(
2219
+ delivery_mode:
2220
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2221
+ ).void
2222
+ end
2223
+ attr_writer :delivery_mode
2224
+
2225
+ sig do
2226
+ params(
2227
+ delivery_mode:
2228
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
2229
+ type: Symbol
2230
+ ).returns(T.attached_class)
2231
+ end
2037
2232
  def self.new(
2233
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2234
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2235
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2236
+ # supported by `TTS2`; when omitted, the provider default applies.
2237
+ delivery_mode: nil,
2038
2238
  # Voice settings provider type
2039
2239
  type: :inworld
2040
2240
  )
2041
2241
  end
2042
2242
 
2043
- sig { override.returns({ type: Symbol }) }
2243
+ sig do
2244
+ override.returns(
2245
+ {
2246
+ type: Symbol,
2247
+ delivery_mode:
2248
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2249
+ }
2250
+ )
2251
+ end
2044
2252
  def to_hash
2045
2253
  end
2254
+
2255
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2256
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2257
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2258
+ # supported by `TTS2`; when omitted, the provider default applies.
2259
+ module DeliveryMode
2260
+ extend Telnyx::Internal::Type::Enum
2261
+
2262
+ TaggedSymbol =
2263
+ T.type_alias do
2264
+ T.all(
2265
+ Symbol,
2266
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode
2267
+ )
2268
+ end
2269
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2270
+
2271
+ STABLE =
2272
+ T.let(
2273
+ :STABLE,
2274
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2275
+ )
2276
+ BALANCED =
2277
+ T.let(
2278
+ :BALANCED,
2279
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2280
+ )
2281
+ CREATIVE =
2282
+ T.let(
2283
+ :CREATIVE,
2284
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2285
+ )
2286
+
2287
+ sig do
2288
+ override.returns(
2289
+ T::Array[
2290
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2291
+ ]
2292
+ )
2293
+ end
2294
+ def self.values
2295
+ end
2296
+ end
2046
2297
  end
2047
2298
 
2048
2299
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -220,6 +220,36 @@ module Telnyx
220
220
  :AiCoustics,
221
221
  Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
222
222
  )
223
+ AIC_L_QUAIL =
224
+ T.let(
225
+ :aic_l_quail,
226
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
227
+ )
228
+ AIC_L_ROOK =
229
+ T.let(
230
+ :aic_l_rook,
231
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
232
+ )
233
+ AIC_S_QUAIL =
234
+ T.let(
235
+ :aic_s_quail,
236
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
237
+ )
238
+ AIC_S_ROOK =
239
+ T.let(
240
+ :aic_s_rook,
241
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
242
+ )
243
+ QUAIL_VOICE_FOCUS_S =
244
+ T.let(
245
+ :quail_voice_focus_s,
246
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
247
+ )
248
+ QUAIL_VOICE_FOCUS_XS =
249
+ T.let(
250
+ :quail_voice_focus_xs,
251
+ Telnyx::Calls::ActionStartNoiseSuppressionParams::NoiseSuppressionEngine::TaggedSymbol
252
+ )
223
253
 
224
254
  sig do
225
255
  override.returns(
@@ -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
  #
@@ -246,7 +248,9 @@ module Telnyx
246
248
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
247
249
  # `voice_settings` to configure precision, sample_rate, and format.
248
250
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
249
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
251
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
252
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
253
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
250
254
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
251
255
  # `ara`, `rex`, `sal`, `leo`.
252
256
  #
@@ -583,16 +587,99 @@ module Telnyx
583
587
  sig { returns(Symbol) }
584
588
  attr_accessor :type
585
589
 
586
- sig { params(type: Symbol).returns(T.attached_class) }
590
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
591
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
592
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
593
+ # supported by `TTS2`; when omitted, the provider default applies.
594
+ sig do
595
+ returns(
596
+ T.nilable(
597
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
598
+ )
599
+ )
600
+ end
601
+ attr_reader :delivery_mode
602
+
603
+ sig do
604
+ params(
605
+ delivery_mode:
606
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
607
+ ).void
608
+ end
609
+ attr_writer :delivery_mode
610
+
611
+ sig do
612
+ params(
613
+ delivery_mode:
614
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
615
+ type: Symbol
616
+ ).returns(T.attached_class)
617
+ end
587
618
  def self.new(
619
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
620
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
621
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
622
+ # supported by `TTS2`; when omitted, the provider default applies.
623
+ delivery_mode: nil,
588
624
  # Voice settings provider type
589
625
  type: :inworld
590
626
  )
591
627
  end
592
628
 
593
- sig { override.returns({ type: Symbol }) }
629
+ sig do
630
+ override.returns(
631
+ {
632
+ type: Symbol,
633
+ delivery_mode:
634
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
635
+ }
636
+ )
637
+ end
594
638
  def to_hash
595
639
  end
640
+
641
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
642
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
643
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
644
+ # supported by `TTS2`; when omitted, the provider default applies.
645
+ module DeliveryMode
646
+ extend Telnyx::Internal::Type::Enum
647
+
648
+ TaggedSymbol =
649
+ T.type_alias do
650
+ T.all(
651
+ Symbol,
652
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode
653
+ )
654
+ end
655
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
656
+
657
+ STABLE =
658
+ T.let(
659
+ :STABLE,
660
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
661
+ )
662
+ BALANCED =
663
+ T.let(
664
+ :BALANCED,
665
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
666
+ )
667
+ CREATIVE =
668
+ T.let(
669
+ :CREATIVE,
670
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
671
+ )
672
+
673
+ sig do
674
+ override.returns(
675
+ T::Array[
676
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
677
+ ]
678
+ )
679
+ end
680
+ def self.values
681
+ end
682
+ end
596
683
  end
597
684
 
598
685
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -4,14 +4,14 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- class RemediationCreateParams < Telnyx::Internal::Type::BaseModel
7
+ class RemediationSubmitParams < Telnyx::Internal::Type::BaseModel
8
8
  extend Telnyx::Internal::Type::RequestParameters::Converter
9
9
  include Telnyx::Internal::Type::RequestParameters
10
10
 
11
11
  OrHash =
12
12
  T.type_alias do
13
13
  T.any(
14
- Telnyx::Enterprises::Reputation::RemediationCreateParams,
14
+ Telnyx::Enterprises::Reputation::RemediationSubmitParams,
15
15
  Telnyx::Internal::AnyHash
16
16
  )
17
17
  end
@@ -4,11 +4,11 @@ module Telnyx
4
4
  module Models
5
5
  module Enterprises
6
6
  module Reputation
7
- class RemediationCreateResponse < Telnyx::Internal::Type::BaseModel
7
+ class RemediationSubmitResponse < Telnyx::Internal::Type::BaseModel
8
8
  OrHash =
9
9
  T.type_alias do
10
10
  T.any(
11
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse,
11
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse,
12
12
  Telnyx::Internal::AnyHash
13
13
  )
14
14
  end
@@ -16,7 +16,7 @@ module Telnyx
16
16
  # Full detail of a remediation request, returned on submit and GET by id.
17
17
  sig do
18
18
  returns(
19
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data
19
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data
20
20
  )
21
21
  end
22
22
  attr_reader :data
@@ -24,7 +24,7 @@ module Telnyx
24
24
  sig do
25
25
  params(
26
26
  data:
27
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::OrHash
27
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::OrHash
28
28
  ).void
29
29
  end
30
30
  attr_writer :data
@@ -32,7 +32,7 @@ module Telnyx
32
32
  sig do
33
33
  params(
34
34
  data:
35
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::OrHash
35
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::OrHash
36
36
  ).returns(T.attached_class)
37
37
  end
38
38
  def self.new(
@@ -45,7 +45,7 @@ module Telnyx
45
45
  override.returns(
46
46
  {
47
47
  data:
48
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data
48
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data
49
49
  }
50
50
  )
51
51
  end
@@ -56,7 +56,7 @@ module Telnyx
56
56
  OrHash =
57
57
  T.type_alias do
58
58
  T.any(
59
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data,
59
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data,
60
60
  Telnyx::Internal::AnyHash
61
61
  )
62
62
  end
@@ -87,7 +87,7 @@ module Telnyx
87
87
  # Customer-facing status of a remediation request.
88
88
  sig do
89
89
  returns(
90
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
90
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
91
91
  )
92
92
  end
93
93
  attr_accessor :status
@@ -103,7 +103,7 @@ module Telnyx
103
103
  sig do
104
104
  returns(
105
105
  T.nilable(
106
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results
106
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results
107
107
  )
108
108
  )
109
109
  end
@@ -113,7 +113,7 @@ module Telnyx
113
113
  params(
114
114
  results:
115
115
  T.nilable(
116
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results::OrHash
116
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results::OrHash
117
117
  )
118
118
  ).void
119
119
  end
@@ -138,12 +138,12 @@ module Telnyx
138
138
  phone_numbers_ineligible: Integer,
139
139
  phone_numbers_submitted: Integer,
140
140
  status:
141
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::OrSymbol,
141
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::OrSymbol,
142
142
  updated_at: Time,
143
143
  contact_email: T.nilable(String),
144
144
  results:
145
145
  T.nilable(
146
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results::OrHash
146
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results::OrHash
147
147
  ),
148
148
  tier1_completed_at: T.nilable(Time),
149
149
  tier2_completed_at: T.nilable(Time),
@@ -185,12 +185,12 @@ module Telnyx
185
185
  phone_numbers_ineligible: Integer,
186
186
  phone_numbers_submitted: Integer,
187
187
  status:
188
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol,
188
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol,
189
189
  updated_at: Time,
190
190
  contact_email: T.nilable(String),
191
191
  results:
192
192
  T.nilable(
193
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results
193
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results
194
194
  ),
195
195
  tier1_completed_at: T.nilable(Time),
196
196
  tier2_completed_at: T.nilable(Time),
@@ -209,7 +209,7 @@ module Telnyx
209
209
  T.type_alias do
210
210
  T.all(
211
211
  Symbol,
212
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status
212
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status
213
213
  )
214
214
  end
215
215
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -217,33 +217,33 @@ module Telnyx
217
217
  PENDING =
218
218
  T.let(
219
219
  :pending,
220
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
220
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
221
221
  )
222
222
  IN_PROGRESS =
223
223
  T.let(
224
224
  :in_progress,
225
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
225
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
226
226
  )
227
227
  COMPLETED =
228
228
  T.let(
229
229
  :completed,
230
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
230
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
231
231
  )
232
232
  FAILED =
233
233
  T.let(
234
234
  :failed,
235
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
235
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
236
236
  )
237
237
  CANCELLED =
238
238
  T.let(
239
239
  :cancelled,
240
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
240
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
241
241
  )
242
242
 
243
243
  sig do
244
244
  override.returns(
245
245
  T::Array[
246
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Status::TaggedSymbol
246
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Status::TaggedSymbol
247
247
  ]
248
248
  )
249
249
  end
@@ -255,7 +255,7 @@ module Telnyx
255
255
  OrHash =
256
256
  T.type_alias do
257
257
  T.any(
258
- Telnyx::Models::Enterprises::Reputation::RemediationCreateResponse::Data::Results,
258
+ Telnyx::Models::Enterprises::Reputation::RemediationSubmitResponse::Data::Results,
259
259
  Telnyx::Internal::AnyHash
260
260
  )
261
261
  end