telnyx 5.111.0 → 5.113.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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
  5. data/lib/telnyx/models/ai_create_response_params.rb +4 -4
  6. data/lib/telnyx/models/call_conversation_ended.rb +13 -1
  7. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +542 -0
  8. data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
  9. data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
  10. data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
  11. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
  12. data/lib/telnyx/models/calls/transcription_start_request.rb +6 -3
  13. data/lib/telnyx/models/fax.rb +7 -5
  14. data/lib/telnyx/models/fax_create_params.rb +7 -5
  15. data/lib/telnyx/models/fax_delivered.rb +3 -2
  16. data/lib/telnyx/models/fax_failed.rb +3 -2
  17. data/lib/telnyx/models/fax_media_processed.rb +3 -2
  18. data/lib/telnyx/models/fax_queued.rb +3 -2
  19. data/lib/telnyx/models/fax_sending_started.rb +3 -2
  20. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
  21. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
  22. data/lib/telnyx/resources/ai/openai.rb +1 -1
  23. data/lib/telnyx/resources/ai.rb +3 -3
  24. data/lib/telnyx/resources/calls/actions.rb +95 -1
  25. data/lib/telnyx/resources/faxes.rb +13 -1
  26. data/lib/telnyx/resources/texml.rb +4 -2
  27. data/lib/telnyx/version.rb +1 -1
  28. data/lib/telnyx.rb +5 -0
  29. data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
  30. data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
  31. data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
  32. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1192 -0
  33. data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
  34. data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
  35. data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
  36. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
  37. data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -0
  38. data/rbi/telnyx/models/fax.rbi +12 -8
  39. data/rbi/telnyx/models/fax_create_params.rbi +12 -8
  40. data/rbi/telnyx/models/fax_delivered.rbi +6 -4
  41. data/rbi/telnyx/models/fax_failed.rbi +6 -4
  42. data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
  43. data/rbi/telnyx/models/fax_queued.rbi +6 -4
  44. data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
  45. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
  46. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
  47. data/rbi/telnyx/resources/ai/openai.rbi +1 -1
  48. data/rbi/telnyx/resources/ai.rbi +2 -2
  49. data/rbi/telnyx/resources/calls/actions.rbi +146 -0
  50. data/rbi/telnyx/resources/faxes.rbi +18 -4
  51. data/rbi/telnyx/resources/texml.rbi +7 -1
  52. data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
  53. data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
  54. data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
  55. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +455 -0
  56. data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
  57. data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
  58. data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
  59. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
  60. data/sig/telnyx/models/calls/transcription_start_request.rbs +11 -1
  61. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
  62. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
  63. data/sig/telnyx/resources/ai/openai.rbs +1 -1
  64. data/sig/telnyx/resources/ai.rbs +1 -1
  65. data/sig/telnyx/resources/calls/actions.rbs +27 -0
  66. data/sig/telnyx/resources/texml.rbs +1 -0
  67. metadata +17 -2
@@ -0,0 +1,114 @@
1
+ module Telnyx
2
+ module Models
3
+ module Calls
4
+ type transcription_engine_speechmatics_config =
5
+ {
6
+ interim_results: bool,
7
+ language: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language,
8
+ transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine,
9
+ transcription_model: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model
10
+ }
11
+
12
+ class TranscriptionEngineSpeechmaticsConfig < Telnyx::Internal::Type::BaseModel
13
+ attr_reader interim_results: bool?
14
+
15
+ def interim_results=: (bool) -> bool
16
+
17
+ attr_reader language: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language?
18
+
19
+ def language=: (
20
+ Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language
21
+ ) -> Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language
22
+
23
+ attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine?
24
+
25
+ def transcription_engine=: (
26
+ Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine
27
+ ) -> Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine
28
+
29
+ attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model?
30
+
31
+ def transcription_model=: (
32
+ Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model
33
+ ) -> Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model
34
+
35
+ def initialize: (
36
+ ?interim_results: bool,
37
+ ?language: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language,
38
+ ?transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine,
39
+ ?transcription_model: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ interim_results: bool,
44
+ language: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language,
45
+ transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine,
46
+ transcription_model: Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model
47
+ }
48
+
49
+ type language =
50
+ :en
51
+ | :ba
52
+ | :eu
53
+ | :gl
54
+ | :ga
55
+ | :mt
56
+ | :mn
57
+ | :sw
58
+ | :ug
59
+ | :cy
60
+ | :ar_en
61
+ | :cmn_en
62
+ | :en_ms
63
+ | :en_ta
64
+ | :tl
65
+ | :"es-bilingual-en"
66
+ | :cmn_en_ms_ta
67
+
68
+ module Language
69
+ extend Telnyx::Internal::Type::Enum
70
+
71
+ EN: :en
72
+ BA: :ba
73
+ EU: :eu
74
+ GL: :gl
75
+ GA: :ga
76
+ MT: :mt
77
+ MN: :mn
78
+ SW: :sw
79
+ UG: :ug
80
+ CY: :cy
81
+ AR_EN: :ar_en
82
+ CMN_EN: :cmn_en
83
+ EN_MS: :en_ms
84
+ EN_TA: :en_ta
85
+ TL: :tl
86
+ ES_BILINGUAL_EN: :"es-bilingual-en"
87
+ CMN_EN_MS_TA: :cmn_en_ms_ta
88
+
89
+ def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::language]
90
+ end
91
+
92
+ type transcription_engine = :Speechmatics
93
+
94
+ module TranscriptionEngine
95
+ extend Telnyx::Internal::Type::Enum
96
+
97
+ SPEECHMATICS: :Speechmatics
98
+
99
+ def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_engine]
100
+ end
101
+
102
+ type transcription_model = :"speechmatics/standard"
103
+
104
+ module TranscriptionModel
105
+ extend Telnyx::Internal::Type::Enum
106
+
107
+ SPEECHMATICS_STANDARD: :"speechmatics/standard"
108
+
109
+ def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::transcription_model]
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
@@ -52,7 +52,15 @@ module Telnyx
52
52
  }
53
53
 
54
54
  type transcription_engine =
55
- :Google | :Telnyx | :Deepgram | :Azure | :xAI | :AssemblyAI | :A | :B
55
+ :Google
56
+ | :Telnyx
57
+ | :Deepgram
58
+ | :Azure
59
+ | :xAI
60
+ | :AssemblyAI
61
+ | :Speechmatics
62
+ | :A
63
+ | :B
56
64
 
57
65
  module TranscriptionEngine
58
66
  extend Telnyx::Internal::Type::Enum
@@ -63,6 +71,7 @@ module Telnyx
63
71
  AZURE: :Azure
64
72
  X_AI: :xAI
65
73
  ASSEMBLY_AI: :AssemblyAI
74
+ SPEECHMATICS: :Speechmatics
66
75
  A: :A
67
76
  B: :B
68
77
 
@@ -75,6 +84,7 @@ module Telnyx
75
84
  | Telnyx::Calls::TranscriptionEngineAzureConfig
76
85
  | Telnyx::Calls::TranscriptionEngineXaiConfig
77
86
  | Telnyx::Calls::TranscriptionEngineAssemblyaiConfig
87
+ | Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig
78
88
  | Telnyx::Calls::TranscriptionEngineAConfig
79
89
  | Telnyx::Calls::TranscriptionEngineBConfig
80
90
  | Telnyx::Calls::DeepgramNova2Config
@@ -55,6 +55,7 @@ module Telnyx
55
55
  fallback_url: String,
56
56
  from: String,
57
57
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::machine_detection,
58
+ machine_detection_prompt_end_timeout: Integer,
58
59
  machine_detection_silence_timeout: Integer,
59
60
  machine_detection_speech_end_threshold: Integer,
60
61
  machine_detection_speech_threshold: Integer,
@@ -160,6 +161,10 @@ module Telnyx
160
161
  Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::machine_detection
161
162
  ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::machine_detection
162
163
 
164
+ attr_reader machine_detection_prompt_end_timeout: Integer?
165
+
166
+ def machine_detection_prompt_end_timeout=: (Integer) -> Integer
167
+
163
168
  attr_reader machine_detection_silence_timeout: Integer?
164
169
 
165
170
  def machine_detection_silence_timeout=: (Integer) -> Integer
@@ -307,6 +312,7 @@ module Telnyx
307
312
  ?fallback_url: String,
308
313
  ?from: String,
309
314
  ?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::machine_detection,
315
+ ?machine_detection_prompt_end_timeout: Integer,
310
316
  ?machine_detection_silence_timeout: Integer,
311
317
  ?machine_detection_speech_end_threshold: Integer,
312
318
  ?machine_detection_speech_threshold: Integer,
@@ -354,6 +360,7 @@ module Telnyx
354
360
  fallback_url: String,
355
361
  from: String,
356
362
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::machine_detection,
363
+ machine_detection_prompt_end_timeout: Integer,
357
364
  machine_detection_silence_timeout: Integer,
358
365
  machine_detection_speech_end_threshold: Integer,
359
366
  machine_detection_speech_threshold: Integer,
@@ -428,13 +435,14 @@ module Telnyx
428
435
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::deepfake_detection_callback_method]
429
436
  end
430
437
 
431
- type detection_mode = :Premium | :Regular
438
+ type detection_mode = :Premium | :Regular | :PremiumCallScreening
432
439
 
433
440
  module DetectionMode
434
441
  extend Telnyx::Internal::Type::Enum
435
442
 
436
443
  PREMIUM: :Premium
437
444
  REGULAR: :Regular
445
+ PREMIUM_CALL_SCREENING: :PremiumCallScreening
438
446
 
439
447
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithURL::detection_mode]
440
448
  end
@@ -590,6 +598,7 @@ module Telnyx
590
598
  fallback_url: String,
591
599
  from: String,
592
600
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::machine_detection,
601
+ machine_detection_prompt_end_timeout: Integer,
593
602
  machine_detection_silence_timeout: Integer,
594
603
  machine_detection_speech_end_threshold: Integer,
595
604
  machine_detection_speech_threshold: Integer,
@@ -695,6 +704,10 @@ module Telnyx
695
704
  Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::machine_detection
696
705
  ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::machine_detection
697
706
 
707
+ attr_reader machine_detection_prompt_end_timeout: Integer?
708
+
709
+ def machine_detection_prompt_end_timeout=: (Integer) -> Integer
710
+
698
711
  attr_reader machine_detection_silence_timeout: Integer?
699
712
 
700
713
  def machine_detection_silence_timeout=: (Integer) -> Integer
@@ -842,6 +855,7 @@ module Telnyx
842
855
  ?fallback_url: String,
843
856
  ?from: String,
844
857
  ?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::machine_detection,
858
+ ?machine_detection_prompt_end_timeout: Integer,
845
859
  ?machine_detection_silence_timeout: Integer,
846
860
  ?machine_detection_speech_end_threshold: Integer,
847
861
  ?machine_detection_speech_threshold: Integer,
@@ -889,6 +903,7 @@ module Telnyx
889
903
  fallback_url: String,
890
904
  from: String,
891
905
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::machine_detection,
906
+ machine_detection_prompt_end_timeout: Integer,
892
907
  machine_detection_silence_timeout: Integer,
893
908
  machine_detection_speech_end_threshold: Integer,
894
909
  machine_detection_speech_threshold: Integer,
@@ -963,13 +978,14 @@ module Telnyx
963
978
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::deepfake_detection_callback_method]
964
979
  end
965
980
 
966
- type detection_mode = :Premium | :Regular
981
+ type detection_mode = :Premium | :Regular | :PremiumCallScreening
967
982
 
968
983
  module DetectionMode
969
984
  extend Telnyx::Internal::Type::Enum
970
985
 
971
986
  PREMIUM: :Premium
972
987
  REGULAR: :Regular
988
+ PREMIUM_CALL_SCREENING: :PremiumCallScreening
973
989
 
974
990
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::WithTeXml::detection_mode]
975
991
  end
@@ -1124,6 +1140,7 @@ module Telnyx
1124
1140
  fallback_url: String,
1125
1141
  from: String,
1126
1142
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::machine_detection,
1143
+ machine_detection_prompt_end_timeout: Integer,
1127
1144
  machine_detection_silence_timeout: Integer,
1128
1145
  machine_detection_speech_end_threshold: Integer,
1129
1146
  machine_detection_speech_threshold: Integer,
@@ -1228,6 +1245,10 @@ module Telnyx
1228
1245
  Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::machine_detection
1229
1246
  ) -> Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::machine_detection
1230
1247
 
1248
+ attr_reader machine_detection_prompt_end_timeout: Integer?
1249
+
1250
+ def machine_detection_prompt_end_timeout=: (Integer) -> Integer
1251
+
1231
1252
  attr_reader machine_detection_silence_timeout: Integer?
1232
1253
 
1233
1254
  def machine_detection_silence_timeout=: (Integer) -> Integer
@@ -1376,6 +1397,7 @@ module Telnyx
1376
1397
  ?fallback_url: String,
1377
1398
  ?from: String,
1378
1399
  ?machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::machine_detection,
1400
+ ?machine_detection_prompt_end_timeout: Integer,
1379
1401
  ?machine_detection_silence_timeout: Integer,
1380
1402
  ?machine_detection_speech_end_threshold: Integer,
1381
1403
  ?machine_detection_speech_threshold: Integer,
@@ -1423,6 +1445,7 @@ module Telnyx
1423
1445
  fallback_url: String,
1424
1446
  from: String,
1425
1447
  machine_detection: Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::machine_detection,
1448
+ machine_detection_prompt_end_timeout: Integer,
1426
1449
  machine_detection_silence_timeout: Integer,
1427
1450
  machine_detection_speech_end_threshold: Integer,
1428
1451
  machine_detection_speech_threshold: Integer,
@@ -1498,13 +1521,14 @@ module Telnyx
1498
1521
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::deepfake_detection_callback_method]
1499
1522
  end
1500
1523
 
1501
- type detection_mode = :Premium | :Regular
1524
+ type detection_mode = :Premium | :Regular | :PremiumCallScreening
1502
1525
 
1503
1526
  module DetectionMode
1504
1527
  extend Telnyx::Internal::Type::Enum
1505
1528
 
1506
1529
  PREMIUM: :Premium
1507
1530
  REGULAR: :Regular
1531
+ PREMIUM_CALL_SCREENING: :PremiumCallScreening
1508
1532
 
1509
1533
  def self?.values: -> ::Array[Telnyx::Models::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::detection_mode]
1510
1534
  end
@@ -18,6 +18,7 @@ module Telnyx
18
18
  custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
19
19
  detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
20
20
  machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
21
+ machine_detection_prompt_end_timeout: Integer,
21
22
  machine_detection_silence_timeout: Integer,
22
23
  machine_detection_speech_end_threshold: Integer,
23
24
  machine_detection_speech_threshold: Integer,
@@ -117,6 +118,10 @@ module Telnyx
117
118
  Telnyx::Models::TexmlInitiateAICallParams::machine_detection
118
119
  ) -> Telnyx::Models::TexmlInitiateAICallParams::machine_detection
119
120
 
121
+ attr_reader machine_detection_prompt_end_timeout: Integer?
122
+
123
+ def machine_detection_prompt_end_timeout=: (Integer) -> Integer
124
+
120
125
  attr_reader machine_detection_silence_timeout: Integer?
121
126
 
122
127
  def machine_detection_silence_timeout=: (Integer) -> Integer
@@ -242,6 +247,7 @@ module Telnyx
242
247
  ?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
243
248
  ?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
244
249
  ?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
250
+ ?machine_detection_prompt_end_timeout: Integer,
245
251
  ?machine_detection_silence_timeout: Integer,
246
252
  ?machine_detection_speech_end_threshold: Integer,
247
253
  ?machine_detection_speech_threshold: Integer,
@@ -286,6 +292,7 @@ module Telnyx
286
292
  custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
287
293
  detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
288
294
  machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
295
+ machine_detection_prompt_end_timeout: Integer,
289
296
  machine_detection_silence_timeout: Integer,
290
297
  machine_detection_speech_end_threshold: Integer,
291
298
  machine_detection_speech_threshold: Integer,
@@ -347,13 +354,14 @@ module Telnyx
347
354
  def to_hash: -> { name: String, value: String }
348
355
  end
349
356
 
350
- type detection_mode = :Premium | :Regular
357
+ type detection_mode = :Premium | :Regular | :PremiumCallScreening
351
358
 
352
359
  module DetectionMode
353
360
  extend Telnyx::Internal::Type::Enum
354
361
 
355
362
  PREMIUM: :Premium
356
363
  REGULAR: :Regular
364
+ PREMIUM_CALL_SCREENING: :PremiumCallScreening
357
365
 
358
366
  def self?.values: -> ::Array[Telnyx::Models::TexmlInitiateAICallParams::detection_mode]
359
367
  end
@@ -8,7 +8,7 @@ module Telnyx
8
8
 
9
9
  def create_response: (
10
10
  ?conversation: String,
11
- ?input: top,
11
+ ?input: ::Hash[Symbol, top],
12
12
  ?instructions: String,
13
13
  ?model: String,
14
14
  ?stream: bool,
@@ -26,7 +26,7 @@ module Telnyx
26
26
  attr_reader tools: Telnyx::Resources::AI::Tools
27
27
 
28
28
  def create_response: (
29
- body: ::Hash[Symbol, top],
29
+ params: ::Hash[Symbol, top],
30
30
  ?request_options: Telnyx::request_opts
31
31
  ) -> Telnyx::Models::ai_create_response_response
32
32
 
@@ -266,6 +266,26 @@ module Telnyx
266
266
  ?request_options: Telnyx::request_opts
267
267
  ) -> Telnyx::Models::Calls::ActionStartAIAssistantResponse
268
268
 
269
+ def start_conversation_relay: (
270
+ String call_control_id,
271
+ ?assistant: Telnyx::Calls::ActionStartConversationRelayParams::Assistant,
272
+ ?client_state: String,
273
+ ?command_id: String,
274
+ ?conversation_relay_dtmf_detection: bool,
275
+ ?conversation_relay_settings: Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings,
276
+ ?conversation_relay_url: String,
277
+ ?greeting: String,
278
+ ?interruption_settings: Telnyx::Calls::ActionStartConversationRelayParams::InterruptionSettings,
279
+ ?language: String,
280
+ ?languages: ::Array[Telnyx::Calls::ActionStartConversationRelayParams::Language],
281
+ ?transcription: Telnyx::Calls::ActionStartConversationRelayParams::Transcription,
282
+ ?transcription_language: String,
283
+ ?tts_language: String,
284
+ ?voice: String,
285
+ ?voice_settings: Telnyx::Models::Calls::ActionStartConversationRelayParams::voice_settings,
286
+ ?request_options: Telnyx::request_opts
287
+ ) -> Telnyx::Models::Calls::ActionStartConversationRelayResponse
288
+
269
289
  def start_forking: (
270
290
  String call_control_id,
271
291
  ?client_state: String,
@@ -371,6 +391,13 @@ module Telnyx
371
391
  ?request_options: Telnyx::request_opts
372
392
  ) -> Telnyx::Models::Calls::ActionStopAIAssistantResponse
373
393
 
394
+ def stop_conversation_relay: (
395
+ String call_control_id,
396
+ ?client_state: String,
397
+ ?command_id: String,
398
+ ?request_options: Telnyx::request_opts
399
+ ) -> Telnyx::Models::Calls::ActionStopConversationRelayResponse
400
+
374
401
  def stop_forking: (
375
402
  String call_control_id,
376
403
  ?client_state: String,
@@ -20,6 +20,7 @@ module Telnyx
20
20
  ?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
21
21
  ?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
22
22
  ?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
23
+ ?machine_detection_prompt_end_timeout: Integer,
23
24
  ?machine_detection_silence_timeout: Integer,
24
25
  ?machine_detection_speech_end_threshold: Integer,
25
26
  ?machine_detection_speech_threshold: Integer,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.111.0
4
+ version: 5.113.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-13 00:00:00.000000000 Z
11
+ date: 2026-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -639,6 +639,8 @@ files:
639
639
  - lib/telnyx/models/calls/action_speak_response.rb
640
640
  - lib/telnyx/models/calls/action_start_ai_assistant_params.rb
641
641
  - lib/telnyx/models/calls/action_start_ai_assistant_response.rb
642
+ - lib/telnyx/models/calls/action_start_conversation_relay_params.rb
643
+ - lib/telnyx/models/calls/action_start_conversation_relay_response.rb
642
644
  - lib/telnyx/models/calls/action_start_forking_params.rb
643
645
  - lib/telnyx/models/calls/action_start_forking_response.rb
644
646
  - lib/telnyx/models/calls/action_start_noise_suppression_params.rb
@@ -655,6 +657,8 @@ files:
655
657
  - lib/telnyx/models/calls/action_start_transcription_response.rb
656
658
  - lib/telnyx/models/calls/action_stop_ai_assistant_params.rb
657
659
  - lib/telnyx/models/calls/action_stop_ai_assistant_response.rb
660
+ - lib/telnyx/models/calls/action_stop_conversation_relay_params.rb
661
+ - lib/telnyx/models/calls/action_stop_conversation_relay_response.rb
658
662
  - lib/telnyx/models/calls/action_stop_forking_params.rb
659
663
  - lib/telnyx/models/calls/action_stop_forking_response.rb
660
664
  - lib/telnyx/models/calls/action_stop_gather_params.rb
@@ -696,6 +700,7 @@ files:
696
700
  - lib/telnyx/models/calls/transcription_engine_b_config.rb
697
701
  - lib/telnyx/models/calls/transcription_engine_deepgram_config.rb
698
702
  - lib/telnyx/models/calls/transcription_engine_google_config.rb
703
+ - lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb
699
704
  - lib/telnyx/models/calls/transcription_engine_telnyx_config.rb
700
705
  - lib/telnyx/models/calls/transcription_engine_xai_config.rb
701
706
  - lib/telnyx/models/calls/transcription_start_request.rb
@@ -3370,6 +3375,8 @@ files:
3370
3375
  - rbi/telnyx/models/calls/action_speak_response.rbi
3371
3376
  - rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi
3372
3377
  - rbi/telnyx/models/calls/action_start_ai_assistant_response.rbi
3378
+ - rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi
3379
+ - rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi
3373
3380
  - rbi/telnyx/models/calls/action_start_forking_params.rbi
3374
3381
  - rbi/telnyx/models/calls/action_start_forking_response.rbi
3375
3382
  - rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi
@@ -3386,6 +3393,8 @@ files:
3386
3393
  - rbi/telnyx/models/calls/action_start_transcription_response.rbi
3387
3394
  - rbi/telnyx/models/calls/action_stop_ai_assistant_params.rbi
3388
3395
  - rbi/telnyx/models/calls/action_stop_ai_assistant_response.rbi
3396
+ - rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi
3397
+ - rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi
3389
3398
  - rbi/telnyx/models/calls/action_stop_forking_params.rbi
3390
3399
  - rbi/telnyx/models/calls/action_stop_forking_response.rbi
3391
3400
  - rbi/telnyx/models/calls/action_stop_gather_params.rbi
@@ -3427,6 +3436,7 @@ files:
3427
3436
  - rbi/telnyx/models/calls/transcription_engine_b_config.rbi
3428
3437
  - rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi
3429
3438
  - rbi/telnyx/models/calls/transcription_engine_google_config.rbi
3439
+ - rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi
3430
3440
  - rbi/telnyx/models/calls/transcription_engine_telnyx_config.rbi
3431
3441
  - rbi/telnyx/models/calls/transcription_engine_xai_config.rbi
3432
3442
  - rbi/telnyx/models/calls/transcription_start_request.rbi
@@ -6092,6 +6102,8 @@ files:
6092
6102
  - sig/telnyx/models/calls/action_speak_response.rbs
6093
6103
  - sig/telnyx/models/calls/action_start_ai_assistant_params.rbs
6094
6104
  - sig/telnyx/models/calls/action_start_ai_assistant_response.rbs
6105
+ - sig/telnyx/models/calls/action_start_conversation_relay_params.rbs
6106
+ - sig/telnyx/models/calls/action_start_conversation_relay_response.rbs
6095
6107
  - sig/telnyx/models/calls/action_start_forking_params.rbs
6096
6108
  - sig/telnyx/models/calls/action_start_forking_response.rbs
6097
6109
  - sig/telnyx/models/calls/action_start_noise_suppression_params.rbs
@@ -6108,6 +6120,8 @@ files:
6108
6120
  - sig/telnyx/models/calls/action_start_transcription_response.rbs
6109
6121
  - sig/telnyx/models/calls/action_stop_ai_assistant_params.rbs
6110
6122
  - sig/telnyx/models/calls/action_stop_ai_assistant_response.rbs
6123
+ - sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs
6124
+ - sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs
6111
6125
  - sig/telnyx/models/calls/action_stop_forking_params.rbs
6112
6126
  - sig/telnyx/models/calls/action_stop_forking_response.rbs
6113
6127
  - sig/telnyx/models/calls/action_stop_gather_params.rbs
@@ -6149,6 +6163,7 @@ files:
6149
6163
  - sig/telnyx/models/calls/transcription_engine_b_config.rbs
6150
6164
  - sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs
6151
6165
  - sig/telnyx/models/calls/transcription_engine_google_config.rbs
6166
+ - sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs
6152
6167
  - sig/telnyx/models/calls/transcription_engine_telnyx_config.rbs
6153
6168
  - sig/telnyx/models/calls/transcription_engine_xai_config.rbs
6154
6169
  - sig/telnyx/models/calls/transcription_start_request.rbs