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,95 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Calls
6
+ class ActionStartConversationRelayResponse < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse,
11
+ Telnyx::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig do
16
+ returns(
17
+ T.nilable(
18
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse::Data
19
+ )
20
+ )
21
+ end
22
+ attr_reader :data
23
+
24
+ sig do
25
+ params(
26
+ data:
27
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse::Data::OrHash
28
+ ).void
29
+ end
30
+ attr_writer :data
31
+
32
+ sig do
33
+ params(
34
+ data:
35
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse::Data::OrHash
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(data: nil)
39
+ end
40
+
41
+ sig do
42
+ override.returns(
43
+ {
44
+ data:
45
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse::Data
46
+ }
47
+ )
48
+ end
49
+ def to_hash
50
+ end
51
+
52
+ class Data < Telnyx::Internal::Type::BaseModel
53
+ OrHash =
54
+ T.type_alias do
55
+ T.any(
56
+ Telnyx::Models::Calls::ActionStartConversationRelayResponse::Data,
57
+ Telnyx::Internal::AnyHash
58
+ )
59
+ end
60
+
61
+ # The ID of the Conversation Relay session created by the command.
62
+ sig { returns(T.nilable(String)) }
63
+ attr_reader :conversation_relay_id
64
+
65
+ sig { params(conversation_relay_id: String).void }
66
+ attr_writer :conversation_relay_id
67
+
68
+ sig { returns(T.nilable(String)) }
69
+ attr_reader :result
70
+
71
+ sig { params(result: String).void }
72
+ attr_writer :result
73
+
74
+ sig do
75
+ params(conversation_relay_id: String, result: String).returns(
76
+ T.attached_class
77
+ )
78
+ end
79
+ def self.new(
80
+ # The ID of the Conversation Relay session created by the command.
81
+ conversation_relay_id: nil,
82
+ result: nil
83
+ )
84
+ end
85
+
86
+ sig do
87
+ override.returns({ conversation_relay_id: String, result: String })
88
+ end
89
+ def to_hash
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,72 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Calls
6
+ class ActionStopConversationRelayParams < Telnyx::Internal::Type::BaseModel
7
+ extend Telnyx::Internal::Type::RequestParameters::Converter
8
+ include Telnyx::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Telnyx::Calls::ActionStopConversationRelayParams,
14
+ Telnyx::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :call_control_id
20
+
21
+ # Use this field to add state to subsequent webhooks. It must be a valid Base-64
22
+ # encoded string.
23
+ sig { returns(T.nilable(String)) }
24
+ attr_reader :client_state
25
+
26
+ sig { params(client_state: String).void }
27
+ attr_writer :client_state
28
+
29
+ # Use this field to avoid duplicate commands. Telnyx will ignore any command with
30
+ # the same `command_id` for the same `call_control_id`.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :command_id
33
+
34
+ sig { params(command_id: String).void }
35
+ attr_writer :command_id
36
+
37
+ sig do
38
+ params(
39
+ call_control_id: String,
40
+ client_state: String,
41
+ command_id: String,
42
+ request_options: Telnyx::RequestOptions::OrHash
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ call_control_id:,
47
+ # Use this field to add state to subsequent webhooks. It must be a valid Base-64
48
+ # encoded string.
49
+ client_state: nil,
50
+ # Use this field to avoid duplicate commands. Telnyx will ignore any command with
51
+ # the same `command_id` for the same `call_control_id`.
52
+ command_id: nil,
53
+ request_options: {}
54
+ )
55
+ end
56
+
57
+ sig do
58
+ override.returns(
59
+ {
60
+ call_control_id: String,
61
+ client_state: String,
62
+ command_id: String,
63
+ request_options: Telnyx::RequestOptions
64
+ }
65
+ )
66
+ end
67
+ def to_hash
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,39 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Calls
6
+ class ActionStopConversationRelayResponse < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Telnyx::Models::Calls::ActionStopConversationRelayResponse,
11
+ Telnyx::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig { returns(T.nilable(Telnyx::Calls::CallControlCommandResult)) }
16
+ attr_reader :data
17
+
18
+ sig do
19
+ params(data: Telnyx::Calls::CallControlCommandResult::OrHash).void
20
+ end
21
+ attr_writer :data
22
+
23
+ sig do
24
+ params(data: Telnyx::Calls::CallControlCommandResult::OrHash).returns(
25
+ T.attached_class
26
+ )
27
+ end
28
+ def self.new(data: nil)
29
+ end
30
+
31
+ sig do
32
+ override.returns({ data: Telnyx::Calls::CallControlCommandResult })
33
+ end
34
+ def to_hash
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,289 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Calls
6
+ class TranscriptionEngineSpeechmaticsConfig < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
11
+ Telnyx::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # Whether to send also interim results. If set to false, only final results will
16
+ # be sent.
17
+ sig { returns(T.nilable(T::Boolean)) }
18
+ attr_reader :interim_results
19
+
20
+ sig { params(interim_results: T::Boolean).void }
21
+ attr_writer :interim_results
22
+
23
+ # Language to use for speech recognition
24
+ sig do
25
+ returns(
26
+ T.nilable(
27
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
28
+ )
29
+ )
30
+ end
31
+ attr_reader :language
32
+
33
+ sig do
34
+ params(
35
+ language:
36
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
37
+ ).void
38
+ end
39
+ attr_writer :language
40
+
41
+ # Engine identifier for Speechmatics transcription service
42
+ sig do
43
+ returns(
44
+ T.nilable(
45
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol
46
+ )
47
+ )
48
+ end
49
+ attr_reader :transcription_engine
50
+
51
+ sig do
52
+ params(
53
+ transcription_engine:
54
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol
55
+ ).void
56
+ end
57
+ attr_writer :transcription_engine
58
+
59
+ # The model to use for transcription.
60
+ sig do
61
+ returns(
62
+ T.nilable(
63
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
64
+ )
65
+ )
66
+ end
67
+ attr_reader :transcription_model
68
+
69
+ sig do
70
+ params(
71
+ transcription_model:
72
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
73
+ ).void
74
+ end
75
+ attr_writer :transcription_model
76
+
77
+ sig do
78
+ params(
79
+ interim_results: T::Boolean,
80
+ language:
81
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
82
+ transcription_engine:
83
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
84
+ transcription_model:
85
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
86
+ ).returns(T.attached_class)
87
+ end
88
+ def self.new(
89
+ # Whether to send also interim results. If set to false, only final results will
90
+ # be sent.
91
+ interim_results: nil,
92
+ # Language to use for speech recognition
93
+ language: nil,
94
+ # Engine identifier for Speechmatics transcription service
95
+ transcription_engine: nil,
96
+ # The model to use for transcription.
97
+ transcription_model: nil
98
+ )
99
+ end
100
+
101
+ sig do
102
+ override.returns(
103
+ {
104
+ interim_results: T::Boolean,
105
+ language:
106
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
107
+ transcription_engine:
108
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
109
+ transcription_model:
110
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
111
+ }
112
+ )
113
+ end
114
+ def to_hash
115
+ end
116
+
117
+ # Language to use for speech recognition
118
+ module Language
119
+ extend Telnyx::Internal::Type::Enum
120
+
121
+ TaggedSymbol =
122
+ T.type_alias do
123
+ T.all(
124
+ Symbol,
125
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language
126
+ )
127
+ end
128
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
129
+
130
+ EN =
131
+ T.let(
132
+ :en,
133
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
134
+ )
135
+ BA =
136
+ T.let(
137
+ :ba,
138
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
139
+ )
140
+ EU =
141
+ T.let(
142
+ :eu,
143
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
144
+ )
145
+ GL =
146
+ T.let(
147
+ :gl,
148
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
149
+ )
150
+ GA =
151
+ T.let(
152
+ :ga,
153
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
154
+ )
155
+ MT =
156
+ T.let(
157
+ :mt,
158
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
159
+ )
160
+ MN =
161
+ T.let(
162
+ :mn,
163
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
164
+ )
165
+ SW =
166
+ T.let(
167
+ :sw,
168
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
169
+ )
170
+ UG =
171
+ T.let(
172
+ :ug,
173
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
174
+ )
175
+ CY =
176
+ T.let(
177
+ :cy,
178
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
179
+ )
180
+ AR_EN =
181
+ T.let(
182
+ :ar_en,
183
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
184
+ )
185
+ CMN_EN =
186
+ T.let(
187
+ :cmn_en,
188
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
189
+ )
190
+ EN_MS =
191
+ T.let(
192
+ :en_ms,
193
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
194
+ )
195
+ EN_TA =
196
+ T.let(
197
+ :en_ta,
198
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
199
+ )
200
+ TL =
201
+ T.let(
202
+ :tl,
203
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
204
+ )
205
+ ES_BILINGUAL_EN =
206
+ T.let(
207
+ :"es-bilingual-en",
208
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
209
+ )
210
+ CMN_EN_MS_TA =
211
+ T.let(
212
+ :cmn_en_ms_ta,
213
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
214
+ )
215
+
216
+ sig do
217
+ override.returns(
218
+ T::Array[
219
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
220
+ ]
221
+ )
222
+ end
223
+ def self.values
224
+ end
225
+ end
226
+
227
+ # Engine identifier for Speechmatics transcription service
228
+ module TranscriptionEngine
229
+ extend Telnyx::Internal::Type::Enum
230
+
231
+ TaggedSymbol =
232
+ T.type_alias do
233
+ T.all(
234
+ Symbol,
235
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine
236
+ )
237
+ end
238
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
239
+
240
+ SPEECHMATICS =
241
+ T.let(
242
+ :Speechmatics,
243
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
244
+ )
245
+
246
+ sig do
247
+ override.returns(
248
+ T::Array[
249
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
250
+ ]
251
+ )
252
+ end
253
+ def self.values
254
+ end
255
+ end
256
+
257
+ # The model to use for transcription.
258
+ module TranscriptionModel
259
+ extend Telnyx::Internal::Type::Enum
260
+
261
+ TaggedSymbol =
262
+ T.type_alias do
263
+ T.all(
264
+ Symbol,
265
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel
266
+ )
267
+ end
268
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
269
+
270
+ SPEECHMATICS_STANDARD =
271
+ T.let(
272
+ :"speechmatics/standard",
273
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
274
+ )
275
+
276
+ sig do
277
+ override.returns(
278
+ T::Array[
279
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
280
+ ]
281
+ )
282
+ end
283
+ def self.values
284
+ end
285
+ end
286
+ end
287
+ end
288
+ end
289
+ end
@@ -56,6 +56,7 @@ module Telnyx
56
56
  Telnyx::Calls::TranscriptionEngineAzureConfig,
57
57
  Telnyx::Calls::TranscriptionEngineXaiConfig,
58
58
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
59
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
59
60
  Telnyx::Calls::TranscriptionEngineAConfig,
60
61
  Telnyx::Calls::TranscriptionEngineBConfig,
61
62
  Telnyx::Calls::DeepgramNova2Config,
@@ -75,6 +76,7 @@ module Telnyx
75
76
  Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
76
77
  Telnyx::Calls::TranscriptionEngineXaiConfig::OrHash,
77
78
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
79
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::OrHash,
78
80
  Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
79
81
  Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
80
82
  Telnyx::Calls::DeepgramNova2Config::OrHash,
@@ -106,6 +108,7 @@ module Telnyx
106
108
  Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
107
109
  Telnyx::Calls::TranscriptionEngineXaiConfig::OrHash,
108
110
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
111
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::OrHash,
109
112
  Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
110
113
  Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
111
114
  Telnyx::Calls::DeepgramNova2Config::OrHash,
@@ -146,6 +149,7 @@ module Telnyx
146
149
  Telnyx::Calls::TranscriptionEngineAzureConfig,
147
150
  Telnyx::Calls::TranscriptionEngineXaiConfig,
148
151
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
152
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
149
153
  Telnyx::Calls::TranscriptionEngineAConfig,
150
154
  Telnyx::Calls::TranscriptionEngineBConfig,
151
155
  Telnyx::Calls::DeepgramNova2Config,
@@ -202,6 +206,11 @@ module Telnyx
202
206
  :AssemblyAI,
203
207
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
204
208
  )
209
+ SPEECHMATICS =
210
+ T.let(
211
+ :Speechmatics,
212
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
213
+ )
205
214
  A =
206
215
  T.let(
207
216
  :A,
@@ -235,6 +244,7 @@ module Telnyx
235
244
  Telnyx::Calls::TranscriptionEngineAzureConfig,
236
245
  Telnyx::Calls::TranscriptionEngineXaiConfig,
237
246
  Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
247
+ Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
238
248
  Telnyx::Calls::TranscriptionEngineAConfig,
239
249
  Telnyx::Calls::TranscriptionEngineBConfig,
240
250
  Telnyx::Calls::DeepgramNova2Config,
@@ -56,16 +56,18 @@ module Telnyx
56
56
  attr_writer :from_display_name
57
57
 
58
58
  # The media_name used for the fax's media. Must point to a file previously
59
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
60
- # and media_url/contents can't be submitted together.
59
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
60
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
61
+ # media_url/contents can't be submitted together.
61
62
  sig { returns(T.nilable(String)) }
62
63
  attr_reader :media_name
63
64
 
64
65
  sig { params(media_name: String).void }
65
66
  attr_writer :media_name
66
67
 
67
- # The URL (or list of URLs) to the PDF used for the fax's media. media_url and
68
- # media_name/contents can't be submitted together.
68
+ # The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
69
+ # JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
70
+ # submitted together.
69
71
  sig { returns(T.nilable(String)) }
70
72
  attr_reader :media_url
71
73
 
@@ -187,11 +189,13 @@ module Telnyx
187
189
  # destination (`to` number).
188
190
  from_display_name: nil,
189
191
  # The media_name used for the fax's media. Must point to a file previously
190
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
191
- # and media_url/contents can't be submitted together.
192
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
193
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
194
+ # media_url/contents can't be submitted together.
192
195
  media_name: nil,
193
- # The URL (or list of URLs) to the PDF used for the fax's media. media_url and
194
- # media_name/contents can't be submitted together.
196
+ # The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
197
+ # JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
198
+ # submitted together.
195
199
  media_url: nil,
196
200
  # If `store_preview` was set to `true`, this is a link to temporary location. Link
197
201
  # expires after 10 minutes.
@@ -51,16 +51,18 @@ module Telnyx
51
51
  attr_writer :from_display_name
52
52
 
53
53
  # The media_name used for the fax's media. Must point to a file previously
54
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
55
- # and media_url/contents can't be submitted together.
54
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
55
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
56
+ # media_url/contents can't be submitted together.
56
57
  sig { returns(T.nilable(String)) }
57
58
  attr_reader :media_name
58
59
 
59
60
  sig { params(media_name: String).void }
60
61
  attr_writer :media_name
61
62
 
62
- # The URL (or list of URLs) to the PDF used for the fax's media. media_url and
63
- # media_name/contents can't be submitted together.
63
+ # The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
64
+ # JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
65
+ # submitted together.
64
66
  sig { returns(T.nilable(String)) }
65
67
  attr_reader :media_url
66
68
 
@@ -166,11 +168,13 @@ module Telnyx
166
168
  # number in the `from` field.
167
169
  from_display_name: nil,
168
170
  # The media_name used for the fax's media. Must point to a file previously
169
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
170
- # and media_url/contents can't be submitted together.
171
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
172
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
173
+ # media_url/contents can't be submitted together.
171
174
  media_name: nil,
172
- # The URL (or list of URLs) to the PDF used for the fax's media. media_url and
173
- # media_name/contents can't be submitted together.
175
+ # The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
176
+ # JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
177
+ # submitted together.
174
178
  media_url: nil,
175
179
  # The flag to enable monochrome, true black and white fax results.
176
180
  monochrome: nil,
@@ -222,8 +222,9 @@ module Telnyx
222
222
  attr_writer :from
223
223
 
224
224
  # The media_name used for the fax's media. Must point to a file previously
225
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
226
- # and media_url/contents can't be submitted together.
225
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
226
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
227
+ # media_url/contents can't be submitted together.
227
228
  sig { returns(T.nilable(String)) }
228
229
  attr_reader :media_name
229
230
 
@@ -307,8 +308,9 @@ module Telnyx
307
308
  # The phone number, in E.164 format, the fax will be sent from.
308
309
  from: nil,
309
310
  # The media_name used for the fax's media. Must point to a file previously
310
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
311
- # and media_url/contents can't be submitted together.
311
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
312
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
313
+ # media_url/contents can't be submitted together.
312
314
  media_name: nil,
313
315
  # The original URL to the PDF used for the fax's media. If media_name was
314
316
  # supplied, this is omitted
@@ -219,8 +219,9 @@ module Telnyx
219
219
  attr_writer :from
220
220
 
221
221
  # The media_name used for the fax's media. Must point to a file previously
222
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
223
- # and media_url/contents can't be submitted together.
222
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
223
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
224
+ # media_url/contents can't be submitted together.
224
225
  sig { returns(T.nilable(String)) }
225
226
  attr_reader :media_name
226
227
 
@@ -294,8 +295,9 @@ module Telnyx
294
295
  # The phone number, in E.164 format, the fax will be sent from.
295
296
  from: nil,
296
297
  # The media_name used for the fax's media. Must point to a file previously
297
- # uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
298
- # and media_url/contents can't be submitted together.
298
+ # uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
299
+ # formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
300
+ # media_url/contents can't be submitted together.
299
301
  media_name: nil,
300
302
  # The original URL to the PDF used for the fax's media. If media_name was
301
303
  # supplied, this is omitted