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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +5 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +780 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +780 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +785 -1
- data/lib/telnyx/models/ai/inference_embedding.rb +767 -1
- data/lib/telnyx/models/{ai_create_response_params.rb → ai_create_response_deprecated_params.rb} +2 -2
- data/lib/telnyx/models/{ai_create_response_response.rb → ai_create_response_deprecated_response.rb} +1 -1
- data/lib/telnyx/models/call_dial_params.rb +276 -10
- data/lib/telnyx/models/calls/action_answer_params.rb +278 -10
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +15 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +15 -4
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +431 -13
- data/lib/telnyx/models/calls/transcription_start_request.rb +173 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +15 -4
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +45 -0
- data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +160 -0
- data/lib/telnyx/models/speech_to_text_list_providers_params.rb +16 -5
- data/lib/telnyx/models/speech_to_text_list_providers_response.rb +55 -23
- data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +114 -9
- data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +116 -9
- data/lib/telnyx/models/whatsapp/user_data_retrieve_response.rb +44 -3
- data/lib/telnyx/models/whatsapp/user_data_update_response.rb +44 -3
- data/lib/telnyx/models.rb +3 -9
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai.rb +4 -4
- data/lib/telnyx/resources/calls/actions.rb +6 -6
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/messaging_profiles.rb +3 -1
- data/lib/telnyx/resources/sip_registration_status.rb +45 -0
- data/lib/telnyx/resources/speech_to_text.rb +6 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +5 -9
- data/rbi/telnyx/client.rbi +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +1411 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +1417 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +1454 -0
- data/rbi/telnyx/models/{ai_create_response_params.rbi → ai_create_response_deprecated_params.rbi} +5 -2
- data/rbi/telnyx/models/{ai_create_response_response.rbi → ai_create_response_deprecated_response.rbi} +1 -1
- data/rbi/telnyx/models/call_dial_params.rbi +661 -13
- data/rbi/telnyx/models/calls/action_answer_params.rbi +659 -13
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +30 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +30 -5
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1016 -17
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +433 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +30 -5
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +8 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +93 -0
- data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +343 -0
- data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +27 -7
- data/rbi/telnyx/models/speech_to_text_list_providers_response.rbi +107 -43
- data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +294 -9
- data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +294 -9
- data/rbi/telnyx/models/whatsapp/user_data_retrieve_response.rbi +96 -6
- data/rbi/telnyx/models/whatsapp/user_data_update_response.rbi +94 -6
- data/rbi/telnyx/models.rbi +5 -10
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +8 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +16 -0
- data/rbi/telnyx/resources/ai.rbi +1 -1
- data/rbi/telnyx/resources/calls/actions.rbi +10 -7
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/messaging_profiles.rbi +3 -0
- data/rbi/telnyx/resources/sip_registration_status.rbi +34 -0
- data/rbi/telnyx/resources/speech_to_text.rbi +11 -5
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +508 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +511 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +526 -0
- data/sig/telnyx/models/{ai_create_response_params.rbs → ai_create_response_deprecated_params.rbs} +2 -2
- data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +7 -0
- data/sig/telnyx/models/call_dial_params.rbs +236 -13
- data/sig/telnyx/models/calls/action_answer_params.rbs +236 -13
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +11 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +11 -1
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +370 -19
- data/sig/telnyx/models/calls/transcription_start_request.rbs +175 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +11 -1
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +41 -0
- data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +164 -0
- data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +4 -4
- data/sig/telnyx/models/speech_to_text_list_providers_response.rbs +33 -16
- data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +121 -8
- data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +121 -8
- data/sig/telnyx/models/whatsapp/user_data_retrieve_response.rbs +57 -6
- data/sig/telnyx/models/whatsapp/user_data_update_response.rbs +57 -6
- data/sig/telnyx/models.rbs +3 -9
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +2 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +1 -0
- data/sig/telnyx/resources/sip_registration_status.rbs +13 -0
- metadata +17 -29
- data/lib/telnyx/models/calls/transcription_engine_soniox_config.rb +0 -91
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +0 -100
- data/lib/telnyx/models/conversation_relay_interruption_settings.rb +0 -105
- data/lib/telnyx/models/conversation_relay_language.rb +0 -141
- data/lib/telnyx/models/inworld_voice_settings.rb +0 -28
- data/lib/telnyx/models/voice_sdk_call_report_log_entry.rb +0 -57
- data/lib/telnyx/models/whatsapp/whatsapp_user_data.rb +0 -49
- data/rbi/telnyx/models/calls/transcription_engine_soniox_config.rbi +0 -184
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +0 -289
- data/rbi/telnyx/models/conversation_relay_interruption_settings.rbi +0 -271
- data/rbi/telnyx/models/conversation_relay_language.rbi +0 -309
- data/rbi/telnyx/models/inworld_voice_settings.rbi +0 -53
- data/rbi/telnyx/models/voice_sdk_call_report_log_entry.rbi +0 -108
- data/rbi/telnyx/models/whatsapp/whatsapp_user_data.rbi +0 -82
- data/sig/telnyx/models/ai_create_response_response.rbs +0 -7
- data/sig/telnyx/models/calls/transcription_engine_soniox_config.rbs +0 -79
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +0 -114
- data/sig/telnyx/models/conversation_relay_interruption_settings.rbs +0 -88
- data/sig/telnyx/models/conversation_relay_language.rbs +0 -121
- data/sig/telnyx/models/inworld_voice_settings.rbs +0 -26
- data/sig/telnyx/models/voice_sdk_call_report_log_entry.rbs +0 -58
- data/sig/telnyx/models/whatsapp/whatsapp_user_data.rbs +0 -54
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class ConversationRelayLanguage < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Telnyx::ConversationRelayLanguage, Telnyx::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# BCP 47 language tag for this language configuration.
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
attr_accessor :language
|
|
14
|
-
|
|
15
|
-
# Conversation Relay speech model. Prefer
|
|
16
|
-
# `transcription_engine_config.transcription_model` when configuring
|
|
17
|
-
# speech-to-text.
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
attr_reader :speech_model
|
|
20
|
-
|
|
21
|
-
sig { params(speech_model: String).void }
|
|
22
|
-
attr_writer :speech_model
|
|
23
|
-
|
|
24
|
-
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
25
|
-
# `Telnyx` are supported for backward compatibility. When provided in a
|
|
26
|
-
# Conversation Relay language entry, Telnyx derives `transcription_provider` and
|
|
27
|
-
# `speech_model` for that language.
|
|
28
|
-
sig do
|
|
29
|
-
returns(
|
|
30
|
-
T.nilable(
|
|
31
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::OrSymbol
|
|
32
|
-
)
|
|
33
|
-
)
|
|
34
|
-
end
|
|
35
|
-
attr_reader :transcription_engine
|
|
36
|
-
|
|
37
|
-
sig do
|
|
38
|
-
params(
|
|
39
|
-
transcription_engine:
|
|
40
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::OrSymbol
|
|
41
|
-
).void
|
|
42
|
-
end
|
|
43
|
-
attr_writer :transcription_engine
|
|
44
|
-
|
|
45
|
-
# Engine-specific transcription settings for Conversation Relay. This accepts the
|
|
46
|
-
# same provider-specific options used by the Call Transcription Start command,
|
|
47
|
-
# such as `transcription_model`, without requiring the engine discriminator to be
|
|
48
|
-
# repeated inside this object.
|
|
49
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
50
|
-
attr_reader :transcription_engine_config
|
|
51
|
-
|
|
52
|
-
sig do
|
|
53
|
-
params(transcription_engine_config: T::Hash[Symbol, T.anything]).void
|
|
54
|
-
end
|
|
55
|
-
attr_writer :transcription_engine_config
|
|
56
|
-
|
|
57
|
-
# Conversation Relay transcription provider name. Prefer `transcription_engine`
|
|
58
|
-
# when configuring speech-to-text.
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_reader :transcription_provider
|
|
61
|
-
|
|
62
|
-
sig { params(transcription_provider: String).void }
|
|
63
|
-
attr_writer :transcription_provider
|
|
64
|
-
|
|
65
|
-
# Text-to-speech provider for this language. If omitted and `voice` is provided,
|
|
66
|
-
# Telnyx derives the provider from the voice identifier.
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_reader :tts_provider
|
|
69
|
-
|
|
70
|
-
sig { params(tts_provider: String).void }
|
|
71
|
-
attr_writer :tts_provider
|
|
72
|
-
|
|
73
|
-
# Voice identifier for this language.
|
|
74
|
-
sig { returns(T.nilable(String)) }
|
|
75
|
-
attr_reader :voice
|
|
76
|
-
|
|
77
|
-
sig { params(voice: String).void }
|
|
78
|
-
attr_writer :voice
|
|
79
|
-
|
|
80
|
-
# The settings associated with the voice selected
|
|
81
|
-
sig do
|
|
82
|
-
returns(
|
|
83
|
-
T.nilable(
|
|
84
|
-
T.any(
|
|
85
|
-
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
86
|
-
Telnyx::Calls::TelnyxVoiceSettings,
|
|
87
|
-
Telnyx::Calls::AwsVoiceSettings,
|
|
88
|
-
Telnyx::MinimaxVoiceSettings,
|
|
89
|
-
Telnyx::AzureVoiceSettings,
|
|
90
|
-
Telnyx::RimeVoiceSettings,
|
|
91
|
-
Telnyx::ResembleVoiceSettings,
|
|
92
|
-
Telnyx::InworldVoiceSettings,
|
|
93
|
-
Telnyx::XaiVoiceSettings
|
|
94
|
-
)
|
|
95
|
-
)
|
|
96
|
-
)
|
|
97
|
-
end
|
|
98
|
-
attr_reader :voice_settings
|
|
99
|
-
|
|
100
|
-
sig do
|
|
101
|
-
params(
|
|
102
|
-
voice_settings:
|
|
103
|
-
T.any(
|
|
104
|
-
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
105
|
-
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
106
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
107
|
-
Telnyx::MinimaxVoiceSettings::OrHash,
|
|
108
|
-
Telnyx::AzureVoiceSettings::OrHash,
|
|
109
|
-
Telnyx::RimeVoiceSettings::OrHash,
|
|
110
|
-
Telnyx::ResembleVoiceSettings::OrHash,
|
|
111
|
-
Telnyx::InworldVoiceSettings::OrHash,
|
|
112
|
-
Telnyx::XaiVoiceSettings::OrHash
|
|
113
|
-
)
|
|
114
|
-
).void
|
|
115
|
-
end
|
|
116
|
-
attr_writer :voice_settings
|
|
117
|
-
|
|
118
|
-
# Language-specific TTS and transcription settings for Conversation Relay.
|
|
119
|
-
sig do
|
|
120
|
-
params(
|
|
121
|
-
language: String,
|
|
122
|
-
speech_model: String,
|
|
123
|
-
transcription_engine:
|
|
124
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::OrSymbol,
|
|
125
|
-
transcription_engine_config: T::Hash[Symbol, T.anything],
|
|
126
|
-
transcription_provider: String,
|
|
127
|
-
tts_provider: String,
|
|
128
|
-
voice: String,
|
|
129
|
-
voice_settings:
|
|
130
|
-
T.any(
|
|
131
|
-
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
132
|
-
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
133
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
134
|
-
Telnyx::MinimaxVoiceSettings::OrHash,
|
|
135
|
-
Telnyx::AzureVoiceSettings::OrHash,
|
|
136
|
-
Telnyx::RimeVoiceSettings::OrHash,
|
|
137
|
-
Telnyx::ResembleVoiceSettings::OrHash,
|
|
138
|
-
Telnyx::InworldVoiceSettings::OrHash,
|
|
139
|
-
Telnyx::XaiVoiceSettings::OrHash
|
|
140
|
-
)
|
|
141
|
-
).returns(T.attached_class)
|
|
142
|
-
end
|
|
143
|
-
def self.new(
|
|
144
|
-
# BCP 47 language tag for this language configuration.
|
|
145
|
-
language:,
|
|
146
|
-
# Conversation Relay speech model. Prefer
|
|
147
|
-
# `transcription_engine_config.transcription_model` when configuring
|
|
148
|
-
# speech-to-text.
|
|
149
|
-
speech_model: nil,
|
|
150
|
-
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
151
|
-
# `Telnyx` are supported for backward compatibility. When provided in a
|
|
152
|
-
# Conversation Relay language entry, Telnyx derives `transcription_provider` and
|
|
153
|
-
# `speech_model` for that language.
|
|
154
|
-
transcription_engine: nil,
|
|
155
|
-
# Engine-specific transcription settings for Conversation Relay. This accepts the
|
|
156
|
-
# same provider-specific options used by the Call Transcription Start command,
|
|
157
|
-
# such as `transcription_model`, without requiring the engine discriminator to be
|
|
158
|
-
# repeated inside this object.
|
|
159
|
-
transcription_engine_config: nil,
|
|
160
|
-
# Conversation Relay transcription provider name. Prefer `transcription_engine`
|
|
161
|
-
# when configuring speech-to-text.
|
|
162
|
-
transcription_provider: nil,
|
|
163
|
-
# Text-to-speech provider for this language. If omitted and `voice` is provided,
|
|
164
|
-
# Telnyx derives the provider from the voice identifier.
|
|
165
|
-
tts_provider: nil,
|
|
166
|
-
# Voice identifier for this language.
|
|
167
|
-
voice: nil,
|
|
168
|
-
# The settings associated with the voice selected
|
|
169
|
-
voice_settings: nil
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
sig do
|
|
174
|
-
override.returns(
|
|
175
|
-
{
|
|
176
|
-
language: String,
|
|
177
|
-
speech_model: String,
|
|
178
|
-
transcription_engine:
|
|
179
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::OrSymbol,
|
|
180
|
-
transcription_engine_config: T::Hash[Symbol, T.anything],
|
|
181
|
-
transcription_provider: String,
|
|
182
|
-
tts_provider: String,
|
|
183
|
-
voice: String,
|
|
184
|
-
voice_settings:
|
|
185
|
-
T.any(
|
|
186
|
-
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
187
|
-
Telnyx::Calls::TelnyxVoiceSettings,
|
|
188
|
-
Telnyx::Calls::AwsVoiceSettings,
|
|
189
|
-
Telnyx::MinimaxVoiceSettings,
|
|
190
|
-
Telnyx::AzureVoiceSettings,
|
|
191
|
-
Telnyx::RimeVoiceSettings,
|
|
192
|
-
Telnyx::ResembleVoiceSettings,
|
|
193
|
-
Telnyx::InworldVoiceSettings,
|
|
194
|
-
Telnyx::XaiVoiceSettings
|
|
195
|
-
)
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
end
|
|
199
|
-
def to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
203
|
-
# `Telnyx` are supported for backward compatibility. When provided in a
|
|
204
|
-
# Conversation Relay language entry, Telnyx derives `transcription_provider` and
|
|
205
|
-
# `speech_model` for that language.
|
|
206
|
-
module TranscriptionEngine
|
|
207
|
-
extend Telnyx::Internal::Type::Enum
|
|
208
|
-
|
|
209
|
-
TaggedSymbol =
|
|
210
|
-
T.type_alias do
|
|
211
|
-
T.all(
|
|
212
|
-
Symbol,
|
|
213
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine
|
|
214
|
-
)
|
|
215
|
-
end
|
|
216
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
217
|
-
|
|
218
|
-
GOOGLE =
|
|
219
|
-
T.let(
|
|
220
|
-
:Google,
|
|
221
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
222
|
-
)
|
|
223
|
-
TELNYX =
|
|
224
|
-
T.let(
|
|
225
|
-
:Telnyx,
|
|
226
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
227
|
-
)
|
|
228
|
-
DEEPGRAM =
|
|
229
|
-
T.let(
|
|
230
|
-
:Deepgram,
|
|
231
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
232
|
-
)
|
|
233
|
-
AZURE =
|
|
234
|
-
T.let(
|
|
235
|
-
:Azure,
|
|
236
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
237
|
-
)
|
|
238
|
-
X_AI =
|
|
239
|
-
T.let(
|
|
240
|
-
:xAI,
|
|
241
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
242
|
-
)
|
|
243
|
-
ASSEMBLY_AI =
|
|
244
|
-
T.let(
|
|
245
|
-
:AssemblyAI,
|
|
246
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
247
|
-
)
|
|
248
|
-
SPEECHMATICS =
|
|
249
|
-
T.let(
|
|
250
|
-
:Speechmatics,
|
|
251
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
252
|
-
)
|
|
253
|
-
SONIOX =
|
|
254
|
-
T.let(
|
|
255
|
-
:Soniox,
|
|
256
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
257
|
-
)
|
|
258
|
-
A =
|
|
259
|
-
T.let(
|
|
260
|
-
:A,
|
|
261
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
262
|
-
)
|
|
263
|
-
B =
|
|
264
|
-
T.let(
|
|
265
|
-
:B,
|
|
266
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
267
|
-
)
|
|
268
|
-
|
|
269
|
-
sig do
|
|
270
|
-
override.returns(
|
|
271
|
-
T::Array[
|
|
272
|
-
Telnyx::ConversationRelayLanguage::TranscriptionEngine::TaggedSymbol
|
|
273
|
-
]
|
|
274
|
-
)
|
|
275
|
-
end
|
|
276
|
-
def self.values
|
|
277
|
-
end
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# The settings associated with the voice selected
|
|
281
|
-
module VoiceSettings
|
|
282
|
-
extend Telnyx::Internal::Type::Union
|
|
283
|
-
|
|
284
|
-
Variants =
|
|
285
|
-
T.type_alias do
|
|
286
|
-
T.any(
|
|
287
|
-
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
288
|
-
Telnyx::Calls::TelnyxVoiceSettings,
|
|
289
|
-
Telnyx::Calls::AwsVoiceSettings,
|
|
290
|
-
Telnyx::MinimaxVoiceSettings,
|
|
291
|
-
Telnyx::AzureVoiceSettings,
|
|
292
|
-
Telnyx::RimeVoiceSettings,
|
|
293
|
-
Telnyx::ResembleVoiceSettings,
|
|
294
|
-
Telnyx::InworldVoiceSettings,
|
|
295
|
-
Telnyx::XaiVoiceSettings
|
|
296
|
-
)
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
sig do
|
|
300
|
-
override.returns(
|
|
301
|
-
T::Array[Telnyx::ConversationRelayLanguage::VoiceSettings::Variants]
|
|
302
|
-
)
|
|
303
|
-
end
|
|
304
|
-
def self.variants
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
end
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class InworldVoiceSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Telnyx::InworldVoiceSettings, Telnyx::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Voice settings provider type
|
|
12
|
-
sig { returns(Telnyx::InworldVoiceSettings::Type::OrSymbol) }
|
|
13
|
-
attr_accessor :type
|
|
14
|
-
|
|
15
|
-
sig do
|
|
16
|
-
params(type: Telnyx::InworldVoiceSettings::Type::OrSymbol).returns(
|
|
17
|
-
T.attached_class
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
def self.new(
|
|
21
|
-
# Voice settings provider type
|
|
22
|
-
type:
|
|
23
|
-
)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
sig do
|
|
27
|
-
override.returns({ type: Telnyx::InworldVoiceSettings::Type::OrSymbol })
|
|
28
|
-
end
|
|
29
|
-
def to_hash
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Voice settings provider type
|
|
33
|
-
module Type
|
|
34
|
-
extend Telnyx::Internal::Type::Enum
|
|
35
|
-
|
|
36
|
-
TaggedSymbol =
|
|
37
|
-
T.type_alias { T.all(Symbol, Telnyx::InworldVoiceSettings::Type) }
|
|
38
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
39
|
-
|
|
40
|
-
INWORLD =
|
|
41
|
-
T.let(:inworld, Telnyx::InworldVoiceSettings::Type::TaggedSymbol)
|
|
42
|
-
|
|
43
|
-
sig do
|
|
44
|
-
override.returns(
|
|
45
|
-
T::Array[Telnyx::InworldVoiceSettings::Type::TaggedSymbol]
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
def self.values
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class VoiceSDKCallReportLogEntry < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Telnyx::VoiceSDKCallReportLogEntry, Telnyx::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Raw structured context attached to the log entry.
|
|
12
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
13
|
-
attr_reader :context
|
|
14
|
-
|
|
15
|
-
sig { params(context: T::Hash[Symbol, T.anything]).void }
|
|
16
|
-
attr_writer :context
|
|
17
|
-
|
|
18
|
-
# Log level emitted by the SDK.
|
|
19
|
-
sig do
|
|
20
|
-
returns(
|
|
21
|
-
T.nilable(Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol)
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
attr_reader :level
|
|
25
|
-
|
|
26
|
-
sig do
|
|
27
|
-
params(level: Telnyx::VoiceSDKCallReportLogEntry::Level::OrSymbol).void
|
|
28
|
-
end
|
|
29
|
-
attr_writer :level
|
|
30
|
-
|
|
31
|
-
# Log message.
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_reader :message
|
|
34
|
-
|
|
35
|
-
sig { params(message: String).void }
|
|
36
|
-
attr_writer :message
|
|
37
|
-
|
|
38
|
-
# Time when the log entry was emitted.
|
|
39
|
-
sig { returns(T.nilable(Time)) }
|
|
40
|
-
attr_reader :timestamp
|
|
41
|
-
|
|
42
|
-
sig { params(timestamp: Time).void }
|
|
43
|
-
attr_writer :timestamp
|
|
44
|
-
|
|
45
|
-
# A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
46
|
-
sig do
|
|
47
|
-
params(
|
|
48
|
-
context: T::Hash[Symbol, T.anything],
|
|
49
|
-
level: Telnyx::VoiceSDKCallReportLogEntry::Level::OrSymbol,
|
|
50
|
-
message: String,
|
|
51
|
-
timestamp: Time
|
|
52
|
-
).returns(T.attached_class)
|
|
53
|
-
end
|
|
54
|
-
def self.new(
|
|
55
|
-
# Raw structured context attached to the log entry.
|
|
56
|
-
context: nil,
|
|
57
|
-
# Log level emitted by the SDK.
|
|
58
|
-
level: nil,
|
|
59
|
-
# Log message.
|
|
60
|
-
message: nil,
|
|
61
|
-
# Time when the log entry was emitted.
|
|
62
|
-
timestamp: nil
|
|
63
|
-
)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
sig do
|
|
67
|
-
override.returns(
|
|
68
|
-
{
|
|
69
|
-
context: T::Hash[Symbol, T.anything],
|
|
70
|
-
level: Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol,
|
|
71
|
-
message: String,
|
|
72
|
-
timestamp: Time
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
end
|
|
76
|
-
def to_hash
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Log level emitted by the SDK.
|
|
80
|
-
module Level
|
|
81
|
-
extend Telnyx::Internal::Type::Enum
|
|
82
|
-
|
|
83
|
-
TaggedSymbol =
|
|
84
|
-
T.type_alias do
|
|
85
|
-
T.all(Symbol, Telnyx::VoiceSDKCallReportLogEntry::Level)
|
|
86
|
-
end
|
|
87
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
88
|
-
|
|
89
|
-
DEBUG =
|
|
90
|
-
T.let(:debug, Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol)
|
|
91
|
-
INFO =
|
|
92
|
-
T.let(:info, Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol)
|
|
93
|
-
WARN =
|
|
94
|
-
T.let(:warn, Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol)
|
|
95
|
-
ERROR =
|
|
96
|
-
T.let(:error, Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol)
|
|
97
|
-
|
|
98
|
-
sig do
|
|
99
|
-
override.returns(
|
|
100
|
-
T::Array[Telnyx::VoiceSDKCallReportLogEntry::Level::TaggedSymbol]
|
|
101
|
-
)
|
|
102
|
-
end
|
|
103
|
-
def self.values
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
end
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
WhatsappUserData = Whatsapp::WhatsappUserData
|
|
6
|
-
|
|
7
|
-
module Whatsapp
|
|
8
|
-
class WhatsappUserData < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Telnyx::Whatsapp::WhatsappUserData, Telnyx::Internal::AnyHash)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(T.nilable(Time)) }
|
|
15
|
-
attr_reader :created_at
|
|
16
|
-
|
|
17
|
-
sig { params(created_at: Time).void }
|
|
18
|
-
attr_writer :created_at
|
|
19
|
-
|
|
20
|
-
sig { returns(T.nilable(String)) }
|
|
21
|
-
attr_reader :record_type
|
|
22
|
-
|
|
23
|
-
sig { params(record_type: String).void }
|
|
24
|
-
attr_writer :record_type
|
|
25
|
-
|
|
26
|
-
sig { returns(T.nilable(Time)) }
|
|
27
|
-
attr_reader :updated_at
|
|
28
|
-
|
|
29
|
-
sig { params(updated_at: Time).void }
|
|
30
|
-
attr_writer :updated_at
|
|
31
|
-
|
|
32
|
-
# Failover URL to receive Whatsapp signup events
|
|
33
|
-
sig { returns(T.nilable(String)) }
|
|
34
|
-
attr_reader :webhook_failover_url
|
|
35
|
-
|
|
36
|
-
sig { params(webhook_failover_url: String).void }
|
|
37
|
-
attr_writer :webhook_failover_url
|
|
38
|
-
|
|
39
|
-
# URL to receive Whatsapp signup events
|
|
40
|
-
sig { returns(T.nilable(String)) }
|
|
41
|
-
attr_reader :webhook_url
|
|
42
|
-
|
|
43
|
-
sig { params(webhook_url: String).void }
|
|
44
|
-
attr_writer :webhook_url
|
|
45
|
-
|
|
46
|
-
sig do
|
|
47
|
-
params(
|
|
48
|
-
created_at: Time,
|
|
49
|
-
record_type: String,
|
|
50
|
-
updated_at: Time,
|
|
51
|
-
webhook_failover_url: String,
|
|
52
|
-
webhook_url: String
|
|
53
|
-
).returns(T.attached_class)
|
|
54
|
-
end
|
|
55
|
-
def self.new(
|
|
56
|
-
created_at: nil,
|
|
57
|
-
record_type: nil,
|
|
58
|
-
updated_at: nil,
|
|
59
|
-
# Failover URL to receive Whatsapp signup events
|
|
60
|
-
webhook_failover_url: nil,
|
|
61
|
-
# URL to receive Whatsapp signup events
|
|
62
|
-
webhook_url: nil
|
|
63
|
-
)
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
sig do
|
|
67
|
-
override.returns(
|
|
68
|
-
{
|
|
69
|
-
created_at: Time,
|
|
70
|
-
record_type: String,
|
|
71
|
-
updated_at: Time,
|
|
72
|
-
webhook_failover_url: String,
|
|
73
|
-
webhook_url: String
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
end
|
|
77
|
-
def to_hash
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Calls
|
|
4
|
-
type transcription_engine_soniox_config =
|
|
5
|
-
{
|
|
6
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_engine,
|
|
7
|
-
enable_endpoint_detection: bool,
|
|
8
|
-
interim_results: bool,
|
|
9
|
-
language: String,
|
|
10
|
-
max_endpoint_delay_ms: Integer,
|
|
11
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class TranscriptionEngineSonioxConfig < Telnyx::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_engine
|
|
16
|
-
|
|
17
|
-
attr_reader enable_endpoint_detection: bool?
|
|
18
|
-
|
|
19
|
-
def enable_endpoint_detection=: (bool) -> bool
|
|
20
|
-
|
|
21
|
-
attr_reader interim_results: bool?
|
|
22
|
-
|
|
23
|
-
def interim_results=: (bool) -> bool
|
|
24
|
-
|
|
25
|
-
attr_reader language: String?
|
|
26
|
-
|
|
27
|
-
def language=: (String) -> String
|
|
28
|
-
|
|
29
|
-
attr_reader max_endpoint_delay_ms: Integer?
|
|
30
|
-
|
|
31
|
-
def max_endpoint_delay_ms=: (Integer) -> Integer
|
|
32
|
-
|
|
33
|
-
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model?
|
|
34
|
-
|
|
35
|
-
def transcription_model=: (
|
|
36
|
-
Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model
|
|
37
|
-
) -> Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model
|
|
38
|
-
|
|
39
|
-
def initialize: (
|
|
40
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_engine,
|
|
41
|
-
?enable_endpoint_detection: bool,
|
|
42
|
-
?interim_results: bool,
|
|
43
|
-
?language: String,
|
|
44
|
-
?max_endpoint_delay_ms: Integer,
|
|
45
|
-
?transcription_model: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model
|
|
46
|
-
) -> void
|
|
47
|
-
|
|
48
|
-
def to_hash: -> {
|
|
49
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_engine,
|
|
50
|
-
enable_endpoint_detection: bool,
|
|
51
|
-
interim_results: bool,
|
|
52
|
-
language: String,
|
|
53
|
-
max_endpoint_delay_ms: Integer,
|
|
54
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
type transcription_engine = :Soniox
|
|
58
|
-
|
|
59
|
-
module TranscriptionEngine
|
|
60
|
-
extend Telnyx::Internal::Type::Enum
|
|
61
|
-
|
|
62
|
-
SONIOX: :Soniox
|
|
63
|
-
|
|
64
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_engine]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
type transcription_model = :"soniox/stt-rt-v4"
|
|
68
|
-
|
|
69
|
-
module TranscriptionModel
|
|
70
|
-
extend Telnyx::Internal::Type::Enum
|
|
71
|
-
|
|
72
|
-
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
73
|
-
|
|
74
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineSonioxConfig::transcription_model]
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|