telnyx 5.123.0 → 5.124.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 (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +5 -0
  5. data/lib/telnyx/models/ai/assistant_create_params.rb +780 -1
  6. data/lib/telnyx/models/ai/assistant_update_params.rb +780 -1
  7. data/lib/telnyx/models/ai/assistants/update_assistant.rb +785 -1
  8. data/lib/telnyx/models/ai/inference_embedding.rb +767 -1
  9. data/lib/telnyx/models/{ai_create_response_params.rb → ai_create_response_deprecated_params.rb} +2 -2
  10. data/lib/telnyx/models/{ai_create_response_response.rb → ai_create_response_deprecated_response.rb} +1 -1
  11. data/lib/telnyx/models/call_dial_params.rb +276 -10
  12. data/lib/telnyx/models/calls/action_answer_params.rb +278 -10
  13. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +15 -4
  14. data/lib/telnyx/models/calls/action_speak_params.rb +15 -4
  15. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +431 -13
  16. data/lib/telnyx/models/calls/transcription_start_request.rb +173 -5
  17. data/lib/telnyx/models/conferences/action_speak_params.rb +15 -4
  18. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  19. data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +45 -0
  20. data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +160 -0
  21. data/lib/telnyx/models/speech_to_text_list_providers_params.rb +16 -5
  22. data/lib/telnyx/models/speech_to_text_list_providers_response.rb +55 -23
  23. data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +114 -9
  24. data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +116 -9
  25. data/lib/telnyx/models/whatsapp/user_data_retrieve_response.rb +44 -3
  26. data/lib/telnyx/models/whatsapp/user_data_update_response.rb +44 -3
  27. data/lib/telnyx/models.rb +3 -9
  28. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
  29. data/lib/telnyx/resources/ai/assistants.rb +6 -2
  30. data/lib/telnyx/resources/ai.rb +4 -4
  31. data/lib/telnyx/resources/calls/actions.rb +6 -6
  32. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  33. data/lib/telnyx/resources/messaging_profiles.rb +3 -1
  34. data/lib/telnyx/resources/sip_registration_status.rb +45 -0
  35. data/lib/telnyx/resources/speech_to_text.rb +6 -5
  36. data/lib/telnyx/version.rb +1 -1
  37. data/lib/telnyx.rb +5 -9
  38. data/rbi/telnyx/client.rbi +4 -0
  39. data/rbi/telnyx/models/ai/assistant_create_params.rbi +1411 -0
  40. data/rbi/telnyx/models/ai/assistant_update_params.rbi +1411 -0
  41. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +1417 -0
  42. data/rbi/telnyx/models/ai/inference_embedding.rbi +1454 -0
  43. data/rbi/telnyx/models/{ai_create_response_params.rbi → ai_create_response_deprecated_params.rbi} +5 -2
  44. data/rbi/telnyx/models/{ai_create_response_response.rbi → ai_create_response_deprecated_response.rbi} +1 -1
  45. data/rbi/telnyx/models/call_dial_params.rbi +661 -13
  46. data/rbi/telnyx/models/calls/action_answer_params.rbi +659 -13
  47. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +30 -5
  48. data/rbi/telnyx/models/calls/action_speak_params.rbi +30 -5
  49. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1016 -17
  50. data/rbi/telnyx/models/calls/transcription_start_request.rbi +433 -10
  51. data/rbi/telnyx/models/conferences/action_speak_params.rbi +30 -5
  52. data/rbi/telnyx/models/messaging_profile_update_params.rbi +8 -0
  53. data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +93 -0
  54. data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +343 -0
  55. data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +27 -7
  56. data/rbi/telnyx/models/speech_to_text_list_providers_response.rbi +107 -43
  57. data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +294 -9
  58. data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +294 -9
  59. data/rbi/telnyx/models/whatsapp/user_data_retrieve_response.rbi +96 -6
  60. data/rbi/telnyx/models/whatsapp/user_data_update_response.rbi +94 -6
  61. data/rbi/telnyx/models.rbi +5 -10
  62. data/rbi/telnyx/resources/ai/assistants/versions.rbi +8 -0
  63. data/rbi/telnyx/resources/ai/assistants.rbi +16 -0
  64. data/rbi/telnyx/resources/ai.rbi +1 -1
  65. data/rbi/telnyx/resources/calls/actions.rbi +10 -7
  66. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  67. data/rbi/telnyx/resources/messaging_profiles.rbi +3 -0
  68. data/rbi/telnyx/resources/sip_registration_status.rbi +34 -0
  69. data/rbi/telnyx/resources/speech_to_text.rbi +11 -5
  70. data/sig/telnyx/client.rbs +2 -0
  71. data/sig/telnyx/models/ai/assistant_create_params.rbs +508 -0
  72. data/sig/telnyx/models/ai/assistant_update_params.rbs +508 -0
  73. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +511 -0
  74. data/sig/telnyx/models/ai/inference_embedding.rbs +526 -0
  75. data/sig/telnyx/models/{ai_create_response_params.rbs → ai_create_response_deprecated_params.rbs} +2 -2
  76. data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +7 -0
  77. data/sig/telnyx/models/call_dial_params.rbs +236 -13
  78. data/sig/telnyx/models/calls/action_answer_params.rbs +236 -13
  79. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +11 -1
  80. data/sig/telnyx/models/calls/action_speak_params.rbs +11 -1
  81. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +370 -19
  82. data/sig/telnyx/models/calls/transcription_start_request.rbs +175 -2
  83. data/sig/telnyx/models/conferences/action_speak_params.rbs +11 -1
  84. data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
  85. data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +41 -0
  86. data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +164 -0
  87. data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +4 -4
  88. data/sig/telnyx/models/speech_to_text_list_providers_response.rbs +33 -16
  89. data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +121 -8
  90. data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +121 -8
  91. data/sig/telnyx/models/whatsapp/user_data_retrieve_response.rbs +57 -6
  92. data/sig/telnyx/models/whatsapp/user_data_update_response.rbs +57 -6
  93. data/sig/telnyx/models.rbs +3 -9
  94. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  95. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  96. data/sig/telnyx/resources/ai.rbs +2 -2
  97. data/sig/telnyx/resources/calls/actions.rbs +2 -2
  98. data/sig/telnyx/resources/messaging_profiles.rbs +1 -0
  99. data/sig/telnyx/resources/sip_registration_status.rbs +13 -0
  100. metadata +17 -29
  101. data/lib/telnyx/models/calls/transcription_engine_soniox_config.rb +0 -91
  102. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +0 -100
  103. data/lib/telnyx/models/conversation_relay_interruption_settings.rb +0 -105
  104. data/lib/telnyx/models/conversation_relay_language.rb +0 -141
  105. data/lib/telnyx/models/inworld_voice_settings.rb +0 -28
  106. data/lib/telnyx/models/voice_sdk_call_report_log_entry.rb +0 -57
  107. data/lib/telnyx/models/whatsapp/whatsapp_user_data.rb +0 -49
  108. data/rbi/telnyx/models/calls/transcription_engine_soniox_config.rbi +0 -184
  109. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +0 -289
  110. data/rbi/telnyx/models/conversation_relay_interruption_settings.rbi +0 -271
  111. data/rbi/telnyx/models/conversation_relay_language.rbi +0 -309
  112. data/rbi/telnyx/models/inworld_voice_settings.rbi +0 -53
  113. data/rbi/telnyx/models/voice_sdk_call_report_log_entry.rbi +0 -108
  114. data/rbi/telnyx/models/whatsapp/whatsapp_user_data.rbi +0 -82
  115. data/sig/telnyx/models/ai_create_response_response.rbs +0 -7
  116. data/sig/telnyx/models/calls/transcription_engine_soniox_config.rbs +0 -79
  117. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +0 -114
  118. data/sig/telnyx/models/conversation_relay_interruption_settings.rbs +0 -88
  119. data/sig/telnyx/models/conversation_relay_language.rbs +0 -121
  120. data/sig/telnyx/models/inworld_voice_settings.rbs +0 -26
  121. data/sig/telnyx/models/voice_sdk_call_report_log_entry.rbs +0 -58
  122. data/sig/telnyx/models/whatsapp/whatsapp_user_data.rbs +0 -54
@@ -1,289 +0,0 @@
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
@@ -1,271 +0,0 @@
1
- # typed: strong
2
-
3
- module Telnyx
4
- module Models
5
- class ConversationRelayInterruptionSettings < Telnyx::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Telnyx::ConversationRelayInterruptionSettings,
10
- Telnyx::Internal::AnyHash
11
- )
12
- end
13
-
14
- # Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is
15
- # equivalent to `interruptible=none`.
16
- sig { returns(T.nilable(T::Boolean)) }
17
- attr_reader :enable
18
-
19
- sig { params(enable: T::Boolean).void }
20
- attr_writer :enable
21
-
22
- # Controls when caller input can interrupt assistant speech. `any` allows speech
23
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
24
- # only; `dtmf` allows DTMF only.
25
- sig do
26
- returns(
27
- T.nilable(
28
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::OrSymbol
29
- )
30
- )
31
- end
32
- attr_reader :interruptible
33
-
34
- sig do
35
- params(
36
- interruptible:
37
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::OrSymbol
38
- ).void
39
- end
40
- attr_writer :interruptible
41
-
42
- # Controls when caller input can interrupt assistant speech. `any` allows speech
43
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
44
- # only; `dtmf` allows DTMF only.
45
- sig do
46
- returns(
47
- T.nilable(
48
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::OrSymbol
49
- )
50
- )
51
- end
52
- attr_reader :interruptible_greeting
53
-
54
- sig do
55
- params(
56
- interruptible_greeting:
57
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::OrSymbol
58
- ).void
59
- end
60
- attr_writer :interruptible_greeting
61
-
62
- # Controls when caller input can interrupt assistant speech. `any` allows speech
63
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
64
- # only; `dtmf` allows DTMF only.
65
- sig do
66
- returns(
67
- T.nilable(
68
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::OrSymbol
69
- )
70
- )
71
- end
72
- attr_reader :welcome_greeting_interruptible
73
-
74
- sig do
75
- params(
76
- welcome_greeting_interruptible:
77
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::OrSymbol
78
- ).void
79
- end
80
- attr_writer :welcome_greeting_interruptible
81
-
82
- # Settings for handling caller interruptions during Conversation Relay speech.
83
- sig do
84
- params(
85
- enable: T::Boolean,
86
- interruptible:
87
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::OrSymbol,
88
- interruptible_greeting:
89
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::OrSymbol,
90
- welcome_greeting_interruptible:
91
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::OrSymbol
92
- ).returns(T.attached_class)
93
- end
94
- def self.new(
95
- # Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is
96
- # equivalent to `interruptible=none`.
97
- enable: nil,
98
- # Controls when caller input can interrupt assistant speech. `any` allows speech
99
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
100
- # only; `dtmf` allows DTMF only.
101
- interruptible: nil,
102
- # Controls when caller input can interrupt assistant speech. `any` allows speech
103
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
104
- # only; `dtmf` allows DTMF only.
105
- interruptible_greeting: nil,
106
- # Controls when caller input can interrupt assistant speech. `any` allows speech
107
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
108
- # only; `dtmf` allows DTMF only.
109
- welcome_greeting_interruptible: nil
110
- )
111
- end
112
-
113
- sig do
114
- override.returns(
115
- {
116
- enable: T::Boolean,
117
- interruptible:
118
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::OrSymbol,
119
- interruptible_greeting:
120
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::OrSymbol,
121
- welcome_greeting_interruptible:
122
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::OrSymbol
123
- }
124
- )
125
- end
126
- def to_hash
127
- end
128
-
129
- # Controls when caller input can interrupt assistant speech. `any` allows speech
130
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
131
- # only; `dtmf` allows DTMF only.
132
- module Interruptible
133
- extend Telnyx::Internal::Type::Enum
134
-
135
- TaggedSymbol =
136
- T.type_alias do
137
- T.all(
138
- Symbol,
139
- Telnyx::ConversationRelayInterruptionSettings::Interruptible
140
- )
141
- end
142
- OrSymbol = T.type_alias { T.any(Symbol, String) }
143
-
144
- NONE =
145
- T.let(
146
- :none,
147
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::TaggedSymbol
148
- )
149
- ANY =
150
- T.let(
151
- :any,
152
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::TaggedSymbol
153
- )
154
- SPEECH =
155
- T.let(
156
- :speech,
157
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::TaggedSymbol
158
- )
159
- DTMF =
160
- T.let(
161
- :dtmf,
162
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::TaggedSymbol
163
- )
164
-
165
- sig do
166
- override.returns(
167
- T::Array[
168
- Telnyx::ConversationRelayInterruptionSettings::Interruptible::TaggedSymbol
169
- ]
170
- )
171
- end
172
- def self.values
173
- end
174
- end
175
-
176
- # Controls when caller input can interrupt assistant speech. `any` allows speech
177
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
178
- # only; `dtmf` allows DTMF only.
179
- module InterruptibleGreeting
180
- extend Telnyx::Internal::Type::Enum
181
-
182
- TaggedSymbol =
183
- T.type_alias do
184
- T.all(
185
- Symbol,
186
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting
187
- )
188
- end
189
- OrSymbol = T.type_alias { T.any(Symbol, String) }
190
-
191
- NONE =
192
- T.let(
193
- :none,
194
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::TaggedSymbol
195
- )
196
- ANY =
197
- T.let(
198
- :any,
199
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::TaggedSymbol
200
- )
201
- SPEECH =
202
- T.let(
203
- :speech,
204
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::TaggedSymbol
205
- )
206
- DTMF =
207
- T.let(
208
- :dtmf,
209
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::TaggedSymbol
210
- )
211
-
212
- sig do
213
- override.returns(
214
- T::Array[
215
- Telnyx::ConversationRelayInterruptionSettings::InterruptibleGreeting::TaggedSymbol
216
- ]
217
- )
218
- end
219
- def self.values
220
- end
221
- end
222
-
223
- # Controls when caller input can interrupt assistant speech. `any` allows speech
224
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
225
- # only; `dtmf` allows DTMF only.
226
- module WelcomeGreetingInterruptible
227
- extend Telnyx::Internal::Type::Enum
228
-
229
- TaggedSymbol =
230
- T.type_alias do
231
- T.all(
232
- Symbol,
233
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible
234
- )
235
- end
236
- OrSymbol = T.type_alias { T.any(Symbol, String) }
237
-
238
- NONE =
239
- T.let(
240
- :none,
241
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::TaggedSymbol
242
- )
243
- ANY =
244
- T.let(
245
- :any,
246
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::TaggedSymbol
247
- )
248
- SPEECH =
249
- T.let(
250
- :speech,
251
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::TaggedSymbol
252
- )
253
- DTMF =
254
- T.let(
255
- :dtmf,
256
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::TaggedSymbol
257
- )
258
-
259
- sig do
260
- override.returns(
261
- T::Array[
262
- Telnyx::ConversationRelayInterruptionSettings::WelcomeGreetingInterruptible::TaggedSymbol
263
- ]
264
- )
265
- end
266
- def self.values
267
- end
268
- end
269
- end
270
- end
271
- end