telnyx 4.1.0 → 4.2.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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  5. data/lib/telnyx/models/calls/transcription_start_request.rb +56 -56
  6. data/lib/telnyx/models/messaging_profile.rb +9 -1
  7. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  8. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  9. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  10. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  11. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  12. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  13. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  14. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  15. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  16. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  17. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  18. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  19. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  20. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  21. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  22. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  23. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  24. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  25. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  26. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  27. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  28. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  29. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  30. data/lib/telnyx/resources/calls/actions.rb +1 -1
  31. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  32. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  33. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  34. data/lib/telnyx/version.rb +1 -1
  35. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  36. data/rbi/telnyx/models/calls/transcription_start_request.rbi +266 -263
  37. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  38. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  39. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  40. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  41. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  42. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  43. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  44. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  45. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  46. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  47. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  48. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  49. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  50. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  51. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  52. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  53. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  54. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  55. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  56. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  57. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  58. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  59. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  60. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  61. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  62. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  63. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  64. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  65. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  66. data/sig/telnyx/models/calls/transcription_start_request.rbs +83 -83
  67. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  68. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  69. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  70. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  71. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  72. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  73. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  74. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  75. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  76. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  77. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  78. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  79. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  80. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  81. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  82. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  83. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  84. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  85. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  86. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  87. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  88. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  89. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  90. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  91. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  92. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  93. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  94. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  95. metadata +2 -2
@@ -17,6 +17,7 @@ module Telnyx
17
17
  enabled: T::Boolean,
18
18
  mms_fall_back_to_sms: T::Boolean,
19
19
  mms_transcoding: T::Boolean,
20
+ mobile_only: T::Boolean,
20
21
  number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
21
22
  url_shortener_settings:
22
23
  T.nilable(Telnyx::URLShortenerSettings::OrHash),
@@ -48,6 +49,8 @@ module Telnyx
48
49
  mms_fall_back_to_sms: nil,
49
50
  # enables automated resizing of MMS media.
50
51
  mms_transcoding: nil,
52
+ # Send messages only to mobile phone numbers.
53
+ mobile_only: nil,
51
54
  # Number Pool allows you to send messages from a pool of numbers of different
52
55
  # types, assigning weights to each type. The pool consists of all the long code
53
56
  # and toll free numbers assigned to the messaging profile.
@@ -98,6 +101,7 @@ module Telnyx
98
101
  enabled: T::Boolean,
99
102
  mms_fall_back_to_sms: T::Boolean,
100
103
  mms_transcoding: T::Boolean,
104
+ mobile_only: T::Boolean,
101
105
  name: String,
102
106
  number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
103
107
  url_shortener_settings:
@@ -128,6 +132,8 @@ module Telnyx
128
132
  mms_fall_back_to_sms: nil,
129
133
  # enables automated resizing of MMS media.
130
134
  mms_transcoding: nil,
135
+ # Send messages only to mobile phone numbers.
136
+ mobile_only: nil,
131
137
  # A user friendly name for the messaging profile.
132
138
  name: nil,
133
139
  # Number Pool allows you to send messages from a pool of numbers of different
@@ -100,6 +100,10 @@ module Telnyx
100
100
  caller_id: String,
101
101
  cancel_playback_on_detect_message_end: T::Boolean,
102
102
  cancel_playback_on_machine_detection: T::Boolean,
103
+ custom_headers:
104
+ T::Array[
105
+ Telnyx::Texml::Accounts::CallCallsParams::CustomHeader::OrHash
106
+ ],
103
107
  detection_mode:
104
108
  Telnyx::Texml::Accounts::CallCallsParams::DetectionMode::OrSymbol,
105
109
  fallback_url: String,
@@ -164,6 +168,9 @@ module Telnyx
164
168
  cancel_playback_on_detect_message_end: nil,
165
169
  # Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
166
170
  cancel_playback_on_machine_detection: nil,
171
+ # Custom HTTP headers to be sent with the call. Each header should be an object
172
+ # with 'name' and 'value' properties.
173
+ custom_headers: nil,
167
174
  # Allows you to chose between Premium and Standard detections.
168
175
  detection_mode: nil,
169
176
  # A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -143,6 +143,10 @@ module Telnyx
143
143
  Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::ConferenceStatusCallbackMethod::OrSymbol,
144
144
  conference_trim:
145
145
  Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::ConferenceTrim::OrSymbol,
146
+ custom_headers:
147
+ T::Array[
148
+ Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::CustomHeader::OrHash
149
+ ],
146
150
  early_media: T::Boolean,
147
151
  end_conference_on_exit: T::Boolean,
148
152
  from: String,
@@ -245,6 +249,9 @@ module Telnyx
245
249
  # Body param: Whether to trim any leading and trailing silence from the conference
246
250
  # recording. Defaults to `trim-silence`.
247
251
  conference_trim: nil,
252
+ # Body param: Custom HTTP headers to be sent with the call. Each header should be
253
+ # an object with 'name' and 'value' properties.
254
+ custom_headers: nil,
248
255
  # Body param: Whether participant shall be bridged to conference before the
249
256
  # participant answers (from early media if available). Defaults to `false`.
250
257
  early_media: nil,
@@ -2,15 +2,15 @@ module Telnyx
2
2
  module Models
3
3
  module Calls
4
4
  type action_start_transcription_params =
5
- { } & Telnyx::Internal::Type::request_parameters
5
+ { } & ::Telnyx::Internal::Type::request_parameters
6
6
 
7
- class ActionStartTranscriptionParams < Telnyx::Models::Calls::TranscriptionStartRequest
8
- extend Telnyx::Internal::Type::RequestParameters::Converter
9
- include Telnyx::Internal::Type::RequestParameters
7
+ class ActionStartTranscriptionParams < ::Telnyx::Models::Calls::TranscriptionStartRequest
8
+ extend ::Telnyx::Internal::Type::RequestParameters::Converter
9
+ include ::Telnyx::Internal::Type::RequestParameters
10
10
 
11
11
  def initialize: (?request_options: Telnyx::request_opts) -> void
12
12
 
13
- def to_hash: -> { request_options: Telnyx::RequestOptions }
13
+ def to_hash: -> { request_options: ::Telnyx::RequestOptions }
14
14
  end
15
15
  end
16
16
  end
@@ -6,7 +6,7 @@ module Telnyx
6
6
  client_state: String,
7
7
  command_id: String,
8
8
  transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine,
9
- transcription_engine_config: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
9
+ transcription_engine_config: ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
10
10
  transcription_tracks: String
11
11
  }
12
12
 
@@ -25,11 +25,11 @@ module Telnyx
25
25
  Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine
26
26
  ) -> Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine
27
27
 
28
- attr_reader transcription_engine_config: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config?
28
+ attr_reader transcription_engine_config: ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config?
29
29
 
30
30
  def transcription_engine_config=: (
31
- Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config
32
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config
31
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config
32
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config
33
33
 
34
34
  attr_reader transcription_tracks: String?
35
35
 
@@ -39,7 +39,7 @@ module Telnyx
39
39
  ?client_state: String,
40
40
  ?command_id: String,
41
41
  ?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine,
42
- ?transcription_engine_config: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
42
+ ?transcription_engine_config: ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
43
43
  ?transcription_tracks: String
44
44
  ) -> void
45
45
 
@@ -47,7 +47,7 @@ module Telnyx
47
47
  client_state: String,
48
48
  command_id: String,
49
49
  transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine,
50
- transcription_engine_config: Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
50
+ transcription_engine_config: ::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config,
51
51
  transcription_tracks: String
52
52
  }
53
53
 
@@ -66,31 +66,31 @@ module Telnyx
66
66
  end
67
67
 
68
68
  type transcription_engine_config =
69
- Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google
70
- | Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx
71
- | Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram
72
- | Telnyx::Calls::TranscriptionEngineAConfig
73
- | Telnyx::Calls::TranscriptionEngineBConfig
69
+ ::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google
70
+ | ::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx
71
+ | ::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram
72
+ | ::Telnyx::Calls::TranscriptionEngineAConfig
73
+ | ::Telnyx::Calls::TranscriptionEngineBConfig
74
74
 
75
75
  module TranscriptionEngineConfig
76
- extend Telnyx::Internal::Type::Union
76
+ extend ::Telnyx::Internal::Type::Union
77
77
 
78
78
  type google =
79
79
  {
80
80
  enable_speaker_diarization: bool,
81
81
  hints: ::Array[String],
82
82
  interim_results: bool,
83
- language: Telnyx::Models::Calls::google_transcription_language,
83
+ language: ::Telnyx::Models::Calls::google_transcription_language,
84
84
  max_speaker_count: Integer,
85
85
  min_speaker_count: Integer,
86
- model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
86
+ model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
87
87
  profanity_filter: bool,
88
- speech_context: ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
89
- transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
88
+ speech_context: ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
89
+ transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
90
90
  use_enhanced: bool
91
91
  }
92
92
 
93
- class Google < Telnyx::Internal::Type::BaseModel
93
+ class Google < ::Telnyx::Internal::Type::BaseModel
94
94
  attr_reader enable_speaker_diarization: bool?
95
95
 
96
96
  def enable_speaker_diarization=: (bool) -> bool
@@ -103,11 +103,11 @@ module Telnyx
103
103
 
104
104
  def interim_results=: (bool) -> bool
105
105
 
106
- attr_reader language: Telnyx::Models::Calls::google_transcription_language?
106
+ attr_reader language: ::Telnyx::Models::Calls::google_transcription_language?
107
107
 
108
108
  def language=: (
109
- Telnyx::Models::Calls::google_transcription_language
110
- ) -> Telnyx::Models::Calls::google_transcription_language
109
+ ::Telnyx::Models::Calls::google_transcription_language
110
+ ) -> ::Telnyx::Models::Calls::google_transcription_language
111
111
 
112
112
  attr_reader max_speaker_count: Integer?
113
113
 
@@ -117,27 +117,27 @@ module Telnyx
117
117
 
118
118
  def min_speaker_count=: (Integer) -> Integer
119
119
 
120
- attr_reader model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model?
120
+ attr_reader model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model?
121
121
 
122
122
  def model=: (
123
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model
124
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model
123
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model
124
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model
125
125
 
126
126
  attr_reader profanity_filter: bool?
127
127
 
128
128
  def profanity_filter=: (bool) -> bool
129
129
 
130
- attr_reader speech_context: ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]?
130
+ attr_reader speech_context: ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]?
131
131
 
132
132
  def speech_context=: (
133
- ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]
134
- ) -> ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]
133
+ ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]
134
+ ) -> ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext]
135
135
 
136
- attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine?
136
+ attr_reader transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine?
137
137
 
138
138
  def transcription_engine=: (
139
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine
140
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine
139
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine
140
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine
141
141
 
142
142
  attr_reader use_enhanced: bool?
143
143
 
@@ -147,13 +147,13 @@ module Telnyx
147
147
  ?enable_speaker_diarization: bool,
148
148
  ?hints: ::Array[String],
149
149
  ?interim_results: bool,
150
- ?language: Telnyx::Models::Calls::google_transcription_language,
150
+ ?language: ::Telnyx::Models::Calls::google_transcription_language,
151
151
  ?max_speaker_count: Integer,
152
152
  ?min_speaker_count: Integer,
153
- ?model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
153
+ ?model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
154
154
  ?profanity_filter: bool,
155
- ?speech_context: ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
156
- ?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
155
+ ?speech_context: ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
156
+ ?transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
157
157
  ?use_enhanced: bool
158
158
  ) -> void
159
159
 
@@ -161,13 +161,13 @@ module Telnyx
161
161
  enable_speaker_diarization: bool,
162
162
  hints: ::Array[String],
163
163
  interim_results: bool,
164
- language: Telnyx::Models::Calls::google_transcription_language,
164
+ language: ::Telnyx::Models::Calls::google_transcription_language,
165
165
  max_speaker_count: Integer,
166
166
  min_speaker_count: Integer,
167
- model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
167
+ model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model,
168
168
  profanity_filter: bool,
169
- speech_context: ::Array[Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
170
- transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
169
+ speech_context: ::Array[::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext],
170
+ transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine,
171
171
  use_enhanced: bool
172
172
  }
173
173
 
@@ -182,7 +182,7 @@ module Telnyx
182
182
  | :medical_dictation
183
183
 
184
184
  module Model
185
- extend Telnyx::Internal::Type::Enum
185
+ extend ::Telnyx::Internal::Type::Enum
186
186
 
187
187
  LATEST_LONG: :latest_long
188
188
  LATEST_SHORT: :latest_short
@@ -193,12 +193,12 @@ module Telnyx
193
193
  MEDICAL_CONVERSATION: :medical_conversation
194
194
  MEDICAL_DICTATION: :medical_dictation
195
195
 
196
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model]
196
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::model]
197
197
  end
198
198
 
199
199
  type speech_context = { boost: Float, phrases: ::Array[String] }
200
200
 
201
- class SpeechContext < Telnyx::Internal::Type::BaseModel
201
+ class SpeechContext < ::Telnyx::Internal::Type::BaseModel
202
202
  attr_reader boost: Float?
203
203
 
204
204
  def boost=: (Float) -> Float
@@ -215,50 +215,50 @@ module Telnyx
215
215
  type transcription_engine = :Google
216
216
 
217
217
  module TranscriptionEngine
218
- extend Telnyx::Internal::Type::Enum
218
+ extend ::Telnyx::Internal::Type::Enum
219
219
 
220
220
  GOOGLE: :Google
221
221
 
222
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine]
222
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::transcription_engine]
223
223
  end
224
224
  end
225
225
 
226
226
  type telnyx =
227
227
  {
228
- language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
229
- transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
230
- transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
228
+ language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
229
+ transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
230
+ transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
231
231
  }
232
232
 
233
- class Telnyx < Telnyx::Internal::Type::BaseModel
234
- attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language?
233
+ class Telnyx < ::Telnyx::Internal::Type::BaseModel
234
+ attr_reader language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language?
235
235
 
236
236
  def language=: (
237
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language
238
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language
237
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language
238
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language
239
239
 
240
- attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine?
240
+ attr_reader transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine?
241
241
 
242
242
  def transcription_engine=: (
243
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine
244
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine
243
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine
244
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine
245
245
 
246
- attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model?
246
+ attr_reader transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model?
247
247
 
248
248
  def transcription_model=: (
249
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
250
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
249
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
250
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
251
251
 
252
252
  def initialize: (
253
- ?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
254
- ?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
255
- ?transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
253
+ ?language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
254
+ ?transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
255
+ ?transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
256
256
  ) -> void
257
257
 
258
258
  def to_hash: -> {
259
- language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
260
- transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
261
- transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
259
+ language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language,
260
+ transcription_engine: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine,
261
+ transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model
262
262
  }
263
263
 
264
264
  type language =
@@ -364,7 +364,7 @@ module Telnyx
364
364
  | :auto_detect
365
365
 
366
366
  module Language
367
- extend Telnyx::Internal::Type::Enum
367
+ extend ::Telnyx::Internal::Type::Enum
368
368
 
369
369
  EN: :en
370
370
  ZH: :zh
@@ -467,71 +467,71 @@ module Telnyx
467
467
  SU: :su
468
468
  AUTO_DETECT: :auto_detect
469
469
 
470
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language]
470
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::language]
471
471
  end
472
472
 
473
473
  type transcription_engine = :Telnyx
474
474
 
475
475
  module TranscriptionEngine
476
- extend Telnyx::Internal::Type::Enum
476
+ extend ::Telnyx::Internal::Type::Enum
477
477
 
478
478
  TELNYX: :Telnyx
479
479
 
480
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine]
480
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_engine]
481
481
  end
482
482
 
483
483
  type transcription_model =
484
484
  :"openai/whisper-tiny" | :"openai/whisper-large-v3-turbo"
485
485
 
486
486
  module TranscriptionModel
487
- extend Telnyx::Internal::Type::Enum
487
+ extend ::Telnyx::Internal::Type::Enum
488
488
 
489
489
  OPENAI_WHISPER_TINY: :"openai/whisper-tiny"
490
490
  OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
491
491
 
492
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model]
492
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::transcription_model]
493
493
  end
494
494
  end
495
495
 
496
496
  type deepgram =
497
497
  {
498
498
  transcription_engine: :Deepgram,
499
- transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
500
- language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
499
+ transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
500
+ language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
501
501
  }
502
502
 
503
- class Deepgram < Telnyx::Internal::Type::BaseModel
503
+ class Deepgram < ::Telnyx::Internal::Type::BaseModel
504
504
  attr_accessor transcription_engine: :Deepgram
505
505
 
506
- attr_accessor transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model
506
+ attr_accessor transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model
507
507
 
508
- attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language?
508
+ attr_reader language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language?
509
509
 
510
510
  def language=: (
511
- Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
512
- ) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
511
+ ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
512
+ ) -> ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
513
513
 
514
514
  def initialize: (
515
- transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
516
- ?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language,
515
+ transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
516
+ ?language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language,
517
517
  ?transcription_engine: :Deepgram
518
518
  ) -> void
519
519
 
520
520
  def to_hash: -> {
521
521
  transcription_engine: :Deepgram,
522
- transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
523
- language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
522
+ transcription_model: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model,
523
+ language: ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language
524
524
  }
525
525
 
526
526
  type transcription_model = :"deepgram/nova-2" | :"deepgram/nova-3"
527
527
 
528
528
  module TranscriptionModel
529
- extend Telnyx::Internal::Type::Enum
529
+ extend ::Telnyx::Internal::Type::Enum
530
530
 
531
531
  DEEPGRAM_NOVA_2: :"deepgram/nova-2"
532
532
  DEEPGRAM_NOVA_3: :"deepgram/nova-3"
533
533
 
534
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model]
534
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::transcription_model]
535
535
  end
536
536
 
537
537
  type language =
@@ -591,7 +591,7 @@ module Telnyx
591
591
  | :auto_detect
592
592
 
593
593
  module Language
594
- extend Telnyx::Internal::Type::Enum
594
+ extend ::Telnyx::Internal::Type::Enum
595
595
 
596
596
  BG: :bg
597
597
  CA: :ca
@@ -648,11 +648,11 @@ module Telnyx
648
648
  VI: :vi
649
649
  AUTO_DETECT: :auto_detect
650
650
 
651
- def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language]
651
+ def self?.values: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::language]
652
652
  end
653
653
  end
654
654
 
655
- def self?.variants: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config]
655
+ def self?.variants: -> ::Array[::Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config]
656
656
  end
657
657
  end
658
658
  end
@@ -10,6 +10,7 @@ module Telnyx
10
10
  enabled: bool,
11
11
  mms_fall_back_to_sms: bool,
12
12
  mms_transcoding: bool,
13
+ mobile_only: bool,
13
14
  name: String,
14
15
  number_pool_settings: Telnyx::NumberPoolSettings?,
15
16
  record_type: Telnyx::Models::MessagingProfile::record_type,
@@ -45,6 +46,10 @@ module Telnyx
45
46
 
46
47
  def mms_transcoding=: (bool) -> bool
47
48
 
49
+ attr_reader mobile_only: bool?
50
+
51
+ def mobile_only=: (bool) -> bool
52
+
48
53
  attr_reader name: String?
49
54
 
50
55
  def name=: (String) -> String
@@ -98,6 +103,7 @@ module Telnyx
98
103
  ?enabled: bool,
99
104
  ?mms_fall_back_to_sms: bool,
100
105
  ?mms_transcoding: bool,
106
+ ?mobile_only: bool,
101
107
  ?name: String,
102
108
  ?number_pool_settings: Telnyx::NumberPoolSettings?,
103
109
  ?record_type: Telnyx::Models::MessagingProfile::record_type,
@@ -119,6 +125,7 @@ module Telnyx
119
125
  enabled: bool,
120
126
  mms_fall_back_to_sms: bool,
121
127
  mms_transcoding: bool,
128
+ mobile_only: bool,
122
129
  name: String,
123
130
  number_pool_settings: Telnyx::NumberPoolSettings?,
124
131
  record_type: Telnyx::Models::MessagingProfile::record_type,
@@ -10,6 +10,7 @@ module Telnyx
10
10
  enabled: bool,
11
11
  mms_fall_back_to_sms: bool,
12
12
  mms_transcoding: bool,
13
+ mobile_only: bool,
13
14
  number_pool_settings: Telnyx::NumberPoolSettings?,
14
15
  url_shortener_settings: Telnyx::URLShortenerSettings?,
15
16
  webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -48,6 +49,10 @@ module Telnyx
48
49
 
49
50
  def mms_transcoding=: (bool) -> bool
50
51
 
52
+ attr_reader mobile_only: bool?
53
+
54
+ def mobile_only=: (bool) -> bool
55
+
51
56
  attr_accessor number_pool_settings: Telnyx::NumberPoolSettings?
52
57
 
53
58
  attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
@@ -71,6 +76,7 @@ module Telnyx
71
76
  ?enabled: bool,
72
77
  ?mms_fall_back_to_sms: bool,
73
78
  ?mms_transcoding: bool,
79
+ ?mobile_only: bool,
74
80
  ?number_pool_settings: Telnyx::NumberPoolSettings?,
75
81
  ?url_shortener_settings: Telnyx::URLShortenerSettings?,
76
82
  ?webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -88,6 +94,7 @@ module Telnyx
88
94
  enabled: bool,
89
95
  mms_fall_back_to_sms: bool,
90
96
  mms_transcoding: bool,
97
+ mobile_only: bool,
91
98
  number_pool_settings: Telnyx::NumberPoolSettings?,
92
99
  url_shortener_settings: Telnyx::URLShortenerSettings?,
93
100
  webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
@@ -8,6 +8,7 @@ module Telnyx
8
8
  enabled: bool,
9
9
  mms_fall_back_to_sms: bool,
10
10
  mms_transcoding: bool,
11
+ mobile_only: bool,
11
12
  name: String,
12
13
  number_pool_settings: Telnyx::NumberPoolSettings?,
13
14
  url_shortener_settings: Telnyx::URLShortenerSettings?,
@@ -45,6 +46,10 @@ module Telnyx
45
46
 
46
47
  def mms_transcoding=: (bool) -> bool
47
48
 
49
+ attr_reader mobile_only: bool?
50
+
51
+ def mobile_only=: (bool) -> bool
52
+
48
53
  attr_reader name: String?
49
54
 
50
55
  def name=: (String) -> String
@@ -78,6 +83,7 @@ module Telnyx
78
83
  ?enabled: bool,
79
84
  ?mms_fall_back_to_sms: bool,
80
85
  ?mms_transcoding: bool,
86
+ ?mobile_only: bool,
81
87
  ?name: String,
82
88
  ?number_pool_settings: Telnyx::NumberPoolSettings?,
83
89
  ?url_shortener_settings: Telnyx::URLShortenerSettings?,
@@ -96,6 +102,7 @@ module Telnyx
96
102
  enabled: bool,
97
103
  mms_fall_back_to_sms: bool,
98
104
  mms_transcoding: bool,
105
+ mobile_only: bool,
99
106
  name: String,
100
107
  number_pool_settings: Telnyx::NumberPoolSettings?,
101
108
  url_shortener_settings: Telnyx::URLShortenerSettings?,