telnyx 5.127.0 → 5.129.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistants/instruction_enhance_params.rb +47 -0
  5. data/lib/telnyx/models/ai/assistants/instruction_enhance_response.rb +11 -0
  6. data/lib/telnyx/models/call_dial_params.rb +70 -3
  7. data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
  8. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
  9. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
  10. data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
  11. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
  12. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
  13. data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
  14. data/lib/telnyx/resources/ai/assistants/instructions.rb +64 -0
  15. data/lib/telnyx/resources/ai/assistants.rb +5 -0
  16. data/lib/telnyx/version.rb +1 -1
  17. data/lib/telnyx.rb +3 -0
  18. data/rbi/telnyx/models/ai/assistants/instruction_enhance_params.rbi +70 -0
  19. data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +11 -0
  20. data/rbi/telnyx/models/call_dial_params.rbi +174 -6
  21. data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
  22. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
  23. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
  24. data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
  25. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
  26. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
  27. data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
  28. data/rbi/telnyx/resources/ai/assistants/instructions.rbi +55 -0
  29. data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
  30. data/rbi/telnyx/resources/calls/actions.rbi +12 -5
  31. data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
  32. data/sig/telnyx/models/ai/assistants/instruction_enhance_params.rbs +40 -0
  33. data/sig/telnyx/models/ai/assistants/instruction_enhance_response.rbs +9 -0
  34. data/sig/telnyx/models/call_dial_params.rbs +62 -6
  35. data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
  36. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
  37. data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
  38. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
  39. data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
  40. data/sig/telnyx/resources/ai/assistants/instructions.rbs +18 -0
  41. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  42. metadata +11 -2
@@ -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
@@ -0,0 +1,55 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Resources
5
+ class AI
6
+ class Assistants
7
+ # Configure AI assistant specifications
8
+ class Instructions
9
+ # Enhance an assistant's instructions using an LLM. The endpoint reads the
10
+ # assistant's current instructions and tools, then streams back improved
11
+ # instructions as they are generated.
12
+ #
13
+ # Optionally provide an `enhancement_prompt` to steer the changes (for example,
14
+ # "make the instructions more concise" or "add error handling guidance"). When
15
+ # omitted, the assistant's existing instructions are used as the basis for the
16
+ # enhancement.
17
+ #
18
+ # The enhancement focuses on tool-calling reliability, clarity and precision,
19
+ # completeness and error handling, tool schema alignment, and conversation flow
20
+ # structure.
21
+ #
22
+ # The response is streamed as `text/plain` using chunked transfer encoding;
23
+ # consume the body incrementally to render the enhanced instructions as they
24
+ # arrive.
25
+ sig do
26
+ params(
27
+ assistant_id: String,
28
+ enhancement_prompt: T.nilable(String),
29
+ instructions: T.nilable(String),
30
+ request_options: Telnyx::RequestOptions::OrHash
31
+ ).returns(String)
32
+ end
33
+ def enhance(
34
+ # Unique identifier of the assistant.
35
+ assistant_id,
36
+ # Optional guidance describing how the instructions should be enhanced. When
37
+ # provided, the LLM applies these requested changes in addition to fixing any
38
+ # identified issues.
39
+ enhancement_prompt: nil,
40
+ # The instructions to enhance. When omitted, the assistant's existing instructions
41
+ # are used.
42
+ instructions: nil,
43
+ request_options: {}
44
+ )
45
+ end
46
+
47
+ # @api private
48
+ sig { params(client: Telnyx::Client).returns(T.attached_class) }
49
+ def self.new(client:)
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -29,6 +29,10 @@ module Telnyx
29
29
  sig { returns(Telnyx::Resources::AI::Assistants::Tags) }
30
30
  attr_reader :tags
31
31
 
32
+ # Configure AI assistant specifications
33
+ sig { returns(Telnyx::Resources::AI::Assistants::Instructions) }
34
+ attr_reader :instructions
35
+
32
36
  # Create a new AI Assistant.
33
37
  sig do
34
38
  params(
@@ -535,7 +535,8 @@ module Telnyx
535
535
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
536
536
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
537
537
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
538
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
538
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
539
+ # `Max`, `TTS2`.
539
540
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
540
541
  # `ara`, `rex`, `sal`, `leo`.
541
542
  voice: nil,
@@ -719,7 +720,9 @@ module Telnyx
719
720
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
720
721
  # `voice_settings` to configure precision, sample_rate, and format.
721
722
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
722
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
723
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
724
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
725
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
723
726
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
724
727
  # `ara`, `rex`, `sal`, `leo`.
725
728
  #
@@ -1132,7 +1135,9 @@ module Telnyx
1132
1135
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
1133
1136
  # `voice_settings` to configure precision, sample_rate, and format.
1134
1137
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1135
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1138
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1139
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
1140
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
1136
1141
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1137
1142
  # `ara`, `rex`, `sal`, `leo`.
1138
1143
  #
@@ -1269,7 +1274,8 @@ module Telnyx
1269
1274
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1270
1275
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1271
1276
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1272
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1277
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1278
+ # `Max`, `TTS2`.
1273
1279
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1274
1280
  # `ara`, `rex`, `sal`, `leo`.
1275
1281
  voice: nil,
@@ -1432,7 +1438,8 @@ module Telnyx
1432
1438
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1433
1439
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1434
1440
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1435
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1441
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1442
+ # `Max`, `TTS2`.
1436
1443
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1437
1444
  # `ara`, `rex`, `sal`, `leo`.
1438
1445
  voice: nil,
@@ -583,7 +583,9 @@ module Telnyx
583
583
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
584
584
  # `voice_settings` to configure precision, sample_rate, and format.
585
585
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
586
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
586
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
587
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
588
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
587
589
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
588
590
  # `ara`, `rex`, `sal`, `leo`.
589
591
  #
@@ -0,0 +1,40 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ type instruction_enhance_params =
6
+ {
7
+ assistant_id: String,
8
+ enhancement_prompt: String?,
9
+ instructions: String?
10
+ }
11
+ & Telnyx::Internal::Type::request_parameters
12
+
13
+ class InstructionEnhanceParams < Telnyx::Internal::Type::BaseModel
14
+ extend Telnyx::Internal::Type::RequestParameters::Converter
15
+ include Telnyx::Internal::Type::RequestParameters
16
+
17
+ attr_accessor assistant_id: String
18
+
19
+ attr_accessor enhancement_prompt: String?
20
+
21
+ attr_accessor instructions: String?
22
+
23
+ def initialize: (
24
+ assistant_id: String,
25
+ ?enhancement_prompt: String?,
26
+ ?instructions: String?,
27
+ ?request_options: Telnyx::request_opts
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ assistant_id: String,
32
+ enhancement_prompt: String?,
33
+ instructions: String?,
34
+ request_options: Telnyx::RequestOptions
35
+ }
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,9 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ class InstructionEnhanceResponse = String
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1118,14 +1118,42 @@ module Telnyx
1118
1118
  module VoiceSettings
1119
1119
  extend Telnyx::Internal::Type::Union
1120
1120
 
1121
- type inworld = { type: :inworld }
1121
+ type inworld =
1122
+ {
1123
+ type: :inworld,
1124
+ delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
1125
+ }
1122
1126
 
1123
1127
  class Inworld < Telnyx::Internal::Type::BaseModel
1124
1128
  attr_accessor type: :inworld
1125
1129
 
1126
- def initialize: (?type: :inworld) -> void
1130
+ attr_reader delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode?
1127
1131
 
1128
- def to_hash: -> { type: :inworld }
1132
+ def delivery_mode=: (
1133
+ Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
1134
+ ) -> Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
1135
+
1136
+ def initialize: (
1137
+ ?delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode,
1138
+ ?type: :inworld
1139
+ ) -> void
1140
+
1141
+ def to_hash: -> {
1142
+ type: :inworld,
1143
+ delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
1144
+ }
1145
+
1146
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
1147
+
1148
+ module DeliveryMode
1149
+ extend Telnyx::Internal::Type::Enum
1150
+
1151
+ STABLE: :STABLE
1152
+ BALANCED: :BALANCED
1153
+ CREATIVE: :CREATIVE
1154
+
1155
+ def self?.values: -> ::Array[Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode]
1156
+ end
1129
1157
  end
1130
1158
 
1131
1159
  type xai = { type: :xai, language: String }
@@ -1189,14 +1217,42 @@ module Telnyx
1189
1217
  module VoiceSettings
1190
1218
  extend Telnyx::Internal::Type::Union
1191
1219
 
1192
- type inworld = { type: :inworld }
1220
+ type inworld =
1221
+ {
1222
+ type: :inworld,
1223
+ delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
1224
+ }
1193
1225
 
1194
1226
  class Inworld < Telnyx::Internal::Type::BaseModel
1195
1227
  attr_accessor type: :inworld
1196
1228
 
1197
- def initialize: (?type: :inworld) -> void
1229
+ attr_reader delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode?
1230
+
1231
+ def delivery_mode=: (
1232
+ Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
1233
+ ) -> Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
1198
1234
 
1199
- def to_hash: -> { type: :inworld }
1235
+ def initialize: (
1236
+ ?delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode,
1237
+ ?type: :inworld
1238
+ ) -> void
1239
+
1240
+ def to_hash: -> {
1241
+ type: :inworld,
1242
+ delivery_mode: Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
1243
+ }
1244
+
1245
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
1246
+
1247
+ module DeliveryMode
1248
+ extend Telnyx::Internal::Type::Enum
1249
+
1250
+ STABLE: :STABLE
1251
+ BALANCED: :BALANCED
1252
+ CREATIVE: :CREATIVE
1253
+
1254
+ def self?.values: -> ::Array[Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode]
1255
+ end
1200
1256
  end
1201
1257
 
1202
1258
  type xai = { type: :xai, language: String }
@@ -649,14 +649,42 @@ module Telnyx
649
649
  module VoiceSettings
650
650
  extend Telnyx::Internal::Type::Union
651
651
 
652
- type inworld = { type: :inworld }
652
+ type inworld =
653
+ {
654
+ type: :inworld,
655
+ delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
656
+ }
653
657
 
654
658
  class Inworld < Telnyx::Internal::Type::BaseModel
655
659
  attr_accessor type: :inworld
656
660
 
657
- def initialize: (?type: :inworld) -> void
661
+ attr_reader delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode?
658
662
 
659
- def to_hash: -> { type: :inworld }
663
+ def delivery_mode=: (
664
+ Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
665
+ ) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
666
+
667
+ def initialize: (
668
+ ?delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode,
669
+ ?type: :inworld
670
+ ) -> void
671
+
672
+ def to_hash: -> {
673
+ type: :inworld,
674
+ delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode
675
+ }
676
+
677
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
678
+
679
+ module DeliveryMode
680
+ extend Telnyx::Internal::Type::Enum
681
+
682
+ STABLE: :STABLE
683
+ BALANCED: :BALANCED
684
+ CREATIVE: :CREATIVE
685
+
686
+ def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::delivery_mode]
687
+ end
660
688
  end
661
689
 
662
690
  type xai = { type: :xai, language: String }
@@ -720,14 +748,42 @@ module Telnyx
720
748
  module VoiceSettings
721
749
  extend Telnyx::Internal::Type::Union
722
750
 
723
- type inworld = { type: :inworld }
751
+ type inworld =
752
+ {
753
+ type: :inworld,
754
+ delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
755
+ }
724
756
 
725
757
  class Inworld < Telnyx::Internal::Type::BaseModel
726
758
  attr_accessor type: :inworld
727
759
 
728
- def initialize: (?type: :inworld) -> void
760
+ attr_reader delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode?
761
+
762
+ def delivery_mode=: (
763
+ Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
764
+ ) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
729
765
 
730
- def to_hash: -> { type: :inworld }
766
+ def initialize: (
767
+ ?delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode,
768
+ ?type: :inworld
769
+ ) -> void
770
+
771
+ def to_hash: -> {
772
+ type: :inworld,
773
+ delivery_mode: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode
774
+ }
775
+
776
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
777
+
778
+ module DeliveryMode
779
+ extend Telnyx::Internal::Type::Enum
780
+
781
+ STABLE: :STABLE
782
+ BALANCED: :BALANCED
783
+ CREATIVE: :CREATIVE
784
+
785
+ def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::delivery_mode]
786
+ end
731
787
  end
732
788
 
733
789
  type xai = { type: :xai, language: String }
@@ -242,14 +242,42 @@ module Telnyx
242
242
  module VoiceSettings
243
243
  extend Telnyx::Internal::Type::Union
244
244
 
245
- type inworld = { type: :inworld }
245
+ type inworld =
246
+ {
247
+ type: :inworld,
248
+ delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
249
+ }
246
250
 
247
251
  class Inworld < Telnyx::Internal::Type::BaseModel
248
252
  attr_accessor type: :inworld
249
253
 
250
- def initialize: (?type: :inworld) -> void
254
+ attr_reader delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode?
251
255
 
252
- def to_hash: -> { type: :inworld }
256
+ def delivery_mode=: (
257
+ Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
258
+ ) -> Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
259
+
260
+ def initialize: (
261
+ ?delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode,
262
+ ?type: :inworld
263
+ ) -> void
264
+
265
+ def to_hash: -> {
266
+ type: :inworld,
267
+ delivery_mode: Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode
268
+ }
269
+
270
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
271
+
272
+ module DeliveryMode
273
+ extend Telnyx::Internal::Type::Enum
274
+
275
+ STABLE: :STABLE
276
+ BALANCED: :BALANCED
277
+ CREATIVE: :CREATIVE
278
+
279
+ def self?.values: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::delivery_mode]
280
+ end
253
281
  end
254
282
 
255
283
  type xai = { type: :xai, language: String }
@@ -223,14 +223,42 @@ module Telnyx
223
223
  module VoiceSettings
224
224
  extend Telnyx::Internal::Type::Union
225
225
 
226
- type inworld = { type: :inworld }
226
+ type inworld =
227
+ {
228
+ type: :inworld,
229
+ delivery_mode: Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode
230
+ }
227
231
 
228
232
  class Inworld < Telnyx::Internal::Type::BaseModel
229
233
  attr_accessor type: :inworld
230
234
 
231
- def initialize: (?type: :inworld) -> void
235
+ attr_reader delivery_mode: Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode?
232
236
 
233
- def to_hash: -> { type: :inworld }
237
+ def delivery_mode=: (
238
+ Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode
239
+ ) -> Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode
240
+
241
+ def initialize: (
242
+ ?delivery_mode: Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode,
243
+ ?type: :inworld
244
+ ) -> void
245
+
246
+ def to_hash: -> {
247
+ type: :inworld,
248
+ delivery_mode: Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode
249
+ }
250
+
251
+ type delivery_mode = :STABLE | :BALANCED | :CREATIVE
252
+
253
+ module DeliveryMode
254
+ extend Telnyx::Internal::Type::Enum
255
+
256
+ STABLE: :STABLE
257
+ BALANCED: :BALANCED
258
+ CREATIVE: :CREATIVE
259
+
260
+ def self?.values: -> ::Array[Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::delivery_mode]
261
+ end
234
262
  end
235
263
 
236
264
  type xai = { type: :xai, language: String }