telnyx 5.176.0 → 5.177.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 +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -35,7 +35,7 @@ module Telnyx
|
|
|
35
35
|
# `api_key_ref`, and an optional `transcription_model`, `language` and
|
|
36
36
|
# `interim_results`.
|
|
37
37
|
#
|
|
38
|
-
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::
|
|
38
|
+
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig, Telnyx::Models::Calls::DeepgramNova3Config, Telnyx::Models::Calls::DeepgramNova3MedicalConfig, Telnyx::Models::Calls::DeepgramFluxConfig, Telnyx::Models::Calls::DeepgramFluxMultiConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineHumainConfig, Telnyx::Models::Calls::TranscriptionEngineReson8Config, Telnyx::Models::Calls::TranscriptionEngineCohereConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::TranscriptionEngineCommunityConfig, nil]
|
|
39
39
|
optional :transcription_engine_config,
|
|
40
40
|
union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
|
|
41
41
|
|
|
@@ -57,7 +57,7 @@ module Telnyx
|
|
|
57
57
|
#
|
|
58
58
|
# @param transcription_engine [Symbol, String, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
59
59
|
#
|
|
60
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::
|
|
60
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig, Telnyx::Models::Calls::DeepgramNova3Config, Telnyx::Models::Calls::DeepgramNova3MedicalConfig, Telnyx::Models::Calls::DeepgramFluxConfig, Telnyx::Models::Calls::DeepgramFluxMultiConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineHumainConfig, Telnyx::Models::Calls::TranscriptionEngineReson8Config, Telnyx::Models::Calls::TranscriptionEngineCohereConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::TranscriptionEngineCommunityConfig] Engine-specific settings. For a built-in engine, the object matching `transcript
|
|
61
61
|
#
|
|
62
62
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
63
63
|
|
|
@@ -144,18 +144,18 @@ module Telnyx
|
|
|
144
144
|
variant -> { Telnyx::Calls::DeepgramNova2Config }
|
|
145
145
|
|
|
146
146
|
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary) and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
147
|
-
variant -> { Telnyx::Calls::
|
|
147
|
+
variant -> { Telnyx::Calls::DeepgramNova2SpecialtyConfig }
|
|
148
148
|
|
|
149
149
|
variant -> { Telnyx::Calls::DeepgramNova3Config }
|
|
150
150
|
|
|
151
151
|
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
152
|
-
variant -> { Telnyx::Calls::
|
|
152
|
+
variant -> { Telnyx::Calls::DeepgramNova3MedicalConfig }
|
|
153
153
|
|
|
154
154
|
# Deepgram Flux (English), a conversational speech recognition model with built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and `keywords_boosting` do not apply to Flux.
|
|
155
|
-
variant -> { Telnyx::Calls::
|
|
155
|
+
variant -> { Telnyx::Calls::DeepgramFluxConfig }
|
|
156
156
|
|
|
157
157
|
# Deepgram Flux multilingual, a conversational speech recognition model with built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and `keywords_boosting` do not apply to Flux.
|
|
158
|
-
variant -> { Telnyx::Calls::
|
|
158
|
+
variant -> { Telnyx::Calls::DeepgramFluxMultiConfig }
|
|
159
159
|
|
|
160
160
|
variant -> { Telnyx::Calls::TranscriptionEngineAzureConfig }
|
|
161
161
|
|
|
@@ -180,461 +180,10 @@ module Telnyx
|
|
|
180
180
|
variant -> { Telnyx::Calls::TranscriptionEngineBConfig }
|
|
181
181
|
|
|
182
182
|
# Settings for a community STT engine, used with the engine's name in `transcription_engine` (any name that is not a built-in engine). See [Community STT engines](/docs/voice/stt/community-engines).
|
|
183
|
-
variant -> { Telnyx::Calls::
|
|
184
|
-
|
|
185
|
-
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
186
|
-
# @!attribute transcription_engine
|
|
187
|
-
#
|
|
188
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
189
|
-
required :transcription_engine,
|
|
190
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine }
|
|
191
|
-
|
|
192
|
-
# @!attribute transcription_model
|
|
193
|
-
#
|
|
194
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
195
|
-
required :transcription_model,
|
|
196
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel }
|
|
197
|
-
|
|
198
|
-
# @!attribute hints
|
|
199
|
-
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
200
|
-
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
201
|
-
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
202
|
-
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
203
|
-
#
|
|
204
|
-
# @return [Array<String>, nil]
|
|
205
|
-
optional :hints, Telnyx::Internal::Type::ArrayOf[String]
|
|
206
|
-
|
|
207
|
-
# @!attribute interim_results
|
|
208
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
209
|
-
# be sent.
|
|
210
|
-
#
|
|
211
|
-
# @return [Boolean, nil]
|
|
212
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
213
|
-
|
|
214
|
-
# @!attribute keywords_boosting
|
|
215
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
216
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
217
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
218
|
-
#
|
|
219
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
220
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
221
|
-
|
|
222
|
-
# @!attribute language
|
|
223
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
224
|
-
# only.
|
|
225
|
-
#
|
|
226
|
-
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
227
|
-
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
228
|
-
|
|
229
|
-
# @!attribute smart_format
|
|
230
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
231
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
232
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
233
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
234
|
-
# punctuation.
|
|
235
|
-
#
|
|
236
|
-
# @return [Boolean, nil]
|
|
237
|
-
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
238
|
-
|
|
239
|
-
# @!attribute utterance_end_ms
|
|
240
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
241
|
-
# to 5000 ms.
|
|
242
|
-
#
|
|
243
|
-
# @return [Integer, nil]
|
|
244
|
-
optional :utterance_end_ms, Integer
|
|
245
|
-
|
|
246
|
-
# @!method initialize(transcription_engine:, transcription_model:, hints: nil, interim_results: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
|
|
247
|
-
# Some parameter documentations has been truncated, see
|
|
248
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig}
|
|
249
|
-
# for more details.
|
|
250
|
-
#
|
|
251
|
-
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
|
|
252
|
-
# and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
253
|
-
#
|
|
254
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
255
|
-
#
|
|
256
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
257
|
-
#
|
|
258
|
-
# @param hints [Array<String>] Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
259
|
-
#
|
|
260
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
261
|
-
#
|
|
262
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
263
|
-
#
|
|
264
|
-
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
265
|
-
#
|
|
266
|
-
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
267
|
-
#
|
|
268
|
-
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
269
|
-
|
|
270
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig#transcription_engine
|
|
271
|
-
module TranscriptionEngine
|
|
272
|
-
extend Telnyx::Internal::Type::Enum
|
|
273
|
-
|
|
274
|
-
DEEPGRAM = :Deepgram
|
|
275
|
-
|
|
276
|
-
# @!method self.values
|
|
277
|
-
# @return [Array<Symbol>]
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig#transcription_model
|
|
281
|
-
module TranscriptionModel
|
|
282
|
-
extend Telnyx::Internal::Type::Enum
|
|
283
|
-
|
|
284
|
-
DEEPGRAM_NOVA_2_MEDICAL = :"deepgram/nova-2-medical"
|
|
285
|
-
DEEPGRAM_NOVA_2_PHONECALL = :"deepgram/nova-2-phonecall"
|
|
286
|
-
|
|
287
|
-
# @!method self.values
|
|
288
|
-
# @return [Array<Symbol>]
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
class DeepgramNova3MedicalConfig < Telnyx::Internal::Type::BaseModel
|
|
293
|
-
# @!attribute transcription_engine
|
|
294
|
-
#
|
|
295
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine]
|
|
296
|
-
required :transcription_engine,
|
|
297
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine }
|
|
298
|
-
|
|
299
|
-
# @!attribute transcription_model
|
|
300
|
-
#
|
|
301
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel]
|
|
302
|
-
required :transcription_model,
|
|
303
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel }
|
|
304
|
-
|
|
305
|
-
# @!attribute interim_results
|
|
306
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
307
|
-
# be sent.
|
|
308
|
-
#
|
|
309
|
-
# @return [Boolean, nil]
|
|
310
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
311
|
-
|
|
312
|
-
# @!attribute keyterms
|
|
313
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
314
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
315
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
316
|
-
# on Nova-2.
|
|
317
|
-
#
|
|
318
|
-
# @return [Array<String>, nil]
|
|
319
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
320
|
-
|
|
321
|
-
# @!attribute keywords_boosting
|
|
322
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
323
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
324
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
325
|
-
#
|
|
326
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
327
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
328
|
-
|
|
329
|
-
# @!attribute language
|
|
330
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
331
|
-
# only.
|
|
332
|
-
#
|
|
333
|
-
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
334
|
-
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
335
|
-
|
|
336
|
-
# @!attribute smart_format
|
|
337
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
338
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
339
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
340
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
341
|
-
# punctuation.
|
|
342
|
-
#
|
|
343
|
-
# @return [Boolean, nil]
|
|
344
|
-
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
345
|
-
|
|
346
|
-
# @!attribute utterance_end_ms
|
|
347
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
348
|
-
# to 5000 ms.
|
|
349
|
-
#
|
|
350
|
-
# @return [Integer, nil]
|
|
351
|
-
optional :utterance_end_ms, Integer
|
|
352
|
-
|
|
353
|
-
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
|
|
354
|
-
# Some parameter documentations has been truncated, see
|
|
355
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig}
|
|
356
|
-
# for more details.
|
|
357
|
-
#
|
|
358
|
-
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
359
|
-
#
|
|
360
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine]
|
|
361
|
-
#
|
|
362
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel]
|
|
363
|
-
#
|
|
364
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
365
|
-
#
|
|
366
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
367
|
-
#
|
|
368
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
369
|
-
#
|
|
370
|
-
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
371
|
-
#
|
|
372
|
-
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
373
|
-
#
|
|
374
|
-
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
375
|
-
|
|
376
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig#transcription_engine
|
|
377
|
-
module TranscriptionEngine
|
|
378
|
-
extend Telnyx::Internal::Type::Enum
|
|
379
|
-
|
|
380
|
-
DEEPGRAM = :Deepgram
|
|
381
|
-
|
|
382
|
-
# @!method self.values
|
|
383
|
-
# @return [Array<Symbol>]
|
|
384
|
-
end
|
|
385
|
-
|
|
386
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig#transcription_model
|
|
387
|
-
module TranscriptionModel
|
|
388
|
-
extend Telnyx::Internal::Type::Enum
|
|
389
|
-
|
|
390
|
-
DEEPGRAM_NOVA_3_MEDICAL = :"deepgram/nova-3-medical"
|
|
391
|
-
|
|
392
|
-
# @!method self.values
|
|
393
|
-
# @return [Array<Symbol>]
|
|
394
|
-
end
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
398
|
-
# @!attribute transcription_engine
|
|
399
|
-
#
|
|
400
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine]
|
|
401
|
-
required :transcription_engine,
|
|
402
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine }
|
|
403
|
-
|
|
404
|
-
# @!attribute transcription_model
|
|
405
|
-
#
|
|
406
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel]
|
|
407
|
-
required :transcription_model,
|
|
408
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel }
|
|
409
|
-
|
|
410
|
-
# @!attribute interim_results
|
|
411
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
412
|
-
# be sent.
|
|
413
|
-
#
|
|
414
|
-
# @return [Boolean, nil]
|
|
415
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
416
|
-
|
|
417
|
-
# @!attribute keyterms
|
|
418
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
419
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
420
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
421
|
-
# on Nova-2.
|
|
422
|
-
#
|
|
423
|
-
# @return [Array<String>, nil]
|
|
424
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
425
|
-
|
|
426
|
-
# @!attribute language
|
|
427
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
428
|
-
#
|
|
429
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language, nil]
|
|
430
|
-
optional :language,
|
|
431
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language }
|
|
432
|
-
|
|
433
|
-
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, language: nil)
|
|
434
|
-
# Some parameter documentations has been truncated, see
|
|
435
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig}
|
|
436
|
-
# for more details.
|
|
437
|
-
#
|
|
438
|
-
# Deepgram Flux (English), a conversational speech recognition model with built-in
|
|
439
|
-
# end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
440
|
-
# `keywords_boosting` do not apply to Flux.
|
|
441
|
-
#
|
|
442
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine]
|
|
443
|
-
#
|
|
444
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel]
|
|
445
|
-
#
|
|
446
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
447
|
-
#
|
|
448
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
449
|
-
#
|
|
450
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language] Language to transcribe. `deepgram/flux` supports English only.
|
|
451
|
-
|
|
452
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig#transcription_engine
|
|
453
|
-
module TranscriptionEngine
|
|
454
|
-
extend Telnyx::Internal::Type::Enum
|
|
455
|
-
|
|
456
|
-
DEEPGRAM = :Deepgram
|
|
457
|
-
|
|
458
|
-
# @!method self.values
|
|
459
|
-
# @return [Array<Symbol>]
|
|
460
|
-
end
|
|
461
|
-
|
|
462
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig#transcription_model
|
|
463
|
-
module TranscriptionModel
|
|
464
|
-
extend Telnyx::Internal::Type::Enum
|
|
465
|
-
|
|
466
|
-
DEEPGRAM_FLUX = :"deepgram/flux"
|
|
467
|
-
|
|
468
|
-
# @!method self.values
|
|
469
|
-
# @return [Array<Symbol>]
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
473
|
-
#
|
|
474
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig#language
|
|
475
|
-
module Language
|
|
476
|
-
extend Telnyx::Internal::Type::Enum
|
|
477
|
-
|
|
478
|
-
EN = :en
|
|
479
|
-
|
|
480
|
-
# @!method self.values
|
|
481
|
-
# @return [Array<Symbol>]
|
|
482
|
-
end
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
486
|
-
# @!attribute transcription_engine
|
|
487
|
-
#
|
|
488
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine]
|
|
489
|
-
required :transcription_engine,
|
|
490
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine }
|
|
491
|
-
|
|
492
|
-
# @!attribute transcription_model
|
|
493
|
-
#
|
|
494
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel]
|
|
495
|
-
required :transcription_model,
|
|
496
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel }
|
|
497
|
-
|
|
498
|
-
# @!attribute interim_results
|
|
499
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
500
|
-
# be sent.
|
|
501
|
-
#
|
|
502
|
-
# @return [Boolean, nil]
|
|
503
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
504
|
-
|
|
505
|
-
# @!attribute keyterms
|
|
506
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
507
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
508
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
509
|
-
# on Nova-2.
|
|
510
|
-
#
|
|
511
|
-
# @return [Array<String>, nil]
|
|
512
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
513
|
-
|
|
514
|
-
# @!attribute language
|
|
515
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
516
|
-
# detect the language.
|
|
517
|
-
#
|
|
518
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language, nil]
|
|
519
|
-
optional :language,
|
|
520
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language }
|
|
521
|
-
|
|
522
|
-
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, language: nil)
|
|
523
|
-
# Some parameter documentations has been truncated, see
|
|
524
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig}
|
|
525
|
-
# for more details.
|
|
526
|
-
#
|
|
527
|
-
# Deepgram Flux multilingual, a conversational speech recognition model with
|
|
528
|
-
# built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
529
|
-
# `keywords_boosting` do not apply to Flux.
|
|
530
|
-
#
|
|
531
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine]
|
|
532
|
-
#
|
|
533
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel]
|
|
534
|
-
#
|
|
535
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
536
|
-
#
|
|
537
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
538
|
-
#
|
|
539
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language] Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
540
|
-
|
|
541
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig#transcription_engine
|
|
542
|
-
module TranscriptionEngine
|
|
543
|
-
extend Telnyx::Internal::Type::Enum
|
|
544
|
-
|
|
545
|
-
DEEPGRAM = :Deepgram
|
|
546
|
-
|
|
547
|
-
# @!method self.values
|
|
548
|
-
# @return [Array<Symbol>]
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig#transcription_model
|
|
552
|
-
module TranscriptionModel
|
|
553
|
-
extend Telnyx::Internal::Type::Enum
|
|
554
|
-
|
|
555
|
-
DEEPGRAM_FLUX_MULTI = :"deepgram/flux-multi"
|
|
556
|
-
|
|
557
|
-
# @!method self.values
|
|
558
|
-
# @return [Array<Symbol>]
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
562
|
-
# detect the language.
|
|
563
|
-
#
|
|
564
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig#language
|
|
565
|
-
module Language
|
|
566
|
-
extend Telnyx::Internal::Type::Enum
|
|
567
|
-
|
|
568
|
-
EN = :en
|
|
569
|
-
ES = :es
|
|
570
|
-
FR = :fr
|
|
571
|
-
DE = :de
|
|
572
|
-
HI = :hi
|
|
573
|
-
RU = :ru
|
|
574
|
-
PT = :pt
|
|
575
|
-
JA = :ja
|
|
576
|
-
IT = :it
|
|
577
|
-
NL = :nl
|
|
578
|
-
AUTO = :auto
|
|
579
|
-
|
|
580
|
-
# @!method self.values
|
|
581
|
-
# @return [Array<Symbol>]
|
|
582
|
-
end
|
|
583
|
-
end
|
|
584
|
-
|
|
585
|
-
class TranscriptionEngineCommunityConfig < Telnyx::Internal::Type::BaseModel
|
|
586
|
-
# @!attribute api_key_ref
|
|
587
|
-
# The identifier of the
|
|
588
|
-
# [integration secret](/api-reference/integration-secrets/create-a-secret) in your
|
|
589
|
-
# organization that holds the key the engine expects. The engine is called with
|
|
590
|
-
# your own key: Telnyx holds none for it.
|
|
591
|
-
#
|
|
592
|
-
# @return [String]
|
|
593
|
-
required :api_key_ref, String
|
|
594
|
-
|
|
595
|
-
# @!attribute interim_results
|
|
596
|
-
# Whether to send interim (non-final) transcription results in addition to final
|
|
597
|
-
# ones.
|
|
598
|
-
#
|
|
599
|
-
# @return [Boolean, nil]
|
|
600
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
601
|
-
|
|
602
|
-
# @!attribute language
|
|
603
|
-
# The language of the audio to be transcribed. Unlike the built-in engines, this
|
|
604
|
-
# isn't checked against a fixed list: it is passed through to the registered
|
|
605
|
-
# engine, which accepts the languages its selected model lists. `auto` resolves to
|
|
606
|
-
# that model's language when it lists only one.
|
|
607
|
-
#
|
|
608
|
-
# @return [String, nil]
|
|
609
|
-
optional :language, String
|
|
610
|
-
|
|
611
|
-
# @!attribute transcription_model
|
|
612
|
-
# One of the community engine's own models, as listed in its `models`. Without it,
|
|
613
|
-
# the engine's default model is used.
|
|
614
|
-
#
|
|
615
|
-
# @return [String, nil]
|
|
616
|
-
optional :transcription_model, String
|
|
617
|
-
|
|
618
|
-
# @!method initialize(api_key_ref:, interim_results: nil, language: nil, transcription_model: nil)
|
|
619
|
-
# Some parameter documentations has been truncated, see
|
|
620
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::TranscriptionEngineCommunityConfig}
|
|
621
|
-
# for more details.
|
|
622
|
-
#
|
|
623
|
-
# Settings for a community STT engine, used with the engine's name in
|
|
624
|
-
# `transcription_engine` (any name that is not a built-in engine). See
|
|
625
|
-
# [Community STT engines](/docs/voice/stt/community-engines).
|
|
626
|
-
#
|
|
627
|
-
# @param api_key_ref [String] The identifier of the [integration secret](/api-reference/integration-secrets/cr
|
|
628
|
-
#
|
|
629
|
-
# @param interim_results [Boolean] Whether to send interim (non-final) transcription results in addition to final o
|
|
630
|
-
#
|
|
631
|
-
# @param language [String] The language of the audio to be transcribed. Unlike the built-in engines, this i
|
|
632
|
-
#
|
|
633
|
-
# @param transcription_model [String] One of the community engine's own models, as listed in its `models`. Without it,
|
|
634
|
-
end
|
|
183
|
+
variant -> { Telnyx::Calls::TranscriptionEngineCommunityConfig }
|
|
635
184
|
|
|
636
185
|
# @!method self.variants
|
|
637
|
-
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::
|
|
186
|
+
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig, Telnyx::Models::Calls::DeepgramNova3Config, Telnyx::Models::Calls::DeepgramNova3MedicalConfig, Telnyx::Models::Calls::DeepgramFluxConfig, Telnyx::Models::Calls::DeepgramFluxMultiConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineSonioxConfig, Telnyx::Models::Calls::TranscriptionEngineParakeetConfig, Telnyx::Models::Calls::TranscriptionEngineHumainConfig, Telnyx::Models::Calls::TranscriptionEngineReson8Config, Telnyx::Models::Calls::TranscriptionEngineCohereConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::TranscriptionEngineCommunityConfig)]
|
|
638
187
|
end
|
|
639
188
|
end
|
|
640
189
|
end
|
|
@@ -102,7 +102,7 @@ module Telnyx
|
|
|
102
102
|
|
|
103
103
|
# @!attribute bcc
|
|
104
104
|
#
|
|
105
|
-
# @return [Telnyx::Models::EmailWebhookRecipient, Symbol, Telnyx::Models::EmailEventListResponse::Payload::Bcc, nil]
|
|
105
|
+
# @return [Telnyx::Models::EmailWebhookRecipient, Symbol, Telnyx::Models::EmailEventListResponse::Payload::Bcc::Redacted, nil]
|
|
106
106
|
optional :bcc, union: -> { Telnyx::Models::EmailEventListResponse::Payload::Bcc }
|
|
107
107
|
|
|
108
108
|
# @!attribute cc
|
|
@@ -154,7 +154,7 @@ module Telnyx
|
|
|
154
154
|
#
|
|
155
155
|
# @param status [Symbol, Telnyx::Models::EmailEventListResponse::Payload::Status] Stored event outcome slug, not the authoritative recipient status. Account polli
|
|
156
156
|
#
|
|
157
|
-
# @param bcc [Telnyx::Models::EmailWebhookRecipient, Symbol, Telnyx::Models::EmailEventListResponse::Payload::Bcc]
|
|
157
|
+
# @param bcc [Telnyx::Models::EmailWebhookRecipient, Symbol, Telnyx::Models::EmailEventListResponse::Payload::Bcc::Redacted]
|
|
158
158
|
#
|
|
159
159
|
# @param cc [Telnyx::Models::EmailWebhookRecipient, String] Legacy message-scoped address, or an empty string when absent.
|
|
160
160
|
#
|
|
@@ -214,20 +214,19 @@ module Telnyx
|
|
|
214
214
|
|
|
215
215
|
variant -> { Telnyx::EmailWebhookRecipient }
|
|
216
216
|
|
|
217
|
-
variant
|
|
217
|
+
variant enum: -> { Telnyx::Models::EmailEventListResponse::Payload::Bcc::Redacted }
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
define_sorbet_constant!(:Variants) do
|
|
223
|
-
T.type_alias { T.any(Telnyx::EmailWebhookRecipient, Telnyx::Models::EmailEventListResponse::Payload::Bcc::TaggedSymbol) }
|
|
224
|
-
end
|
|
219
|
+
module Redacted
|
|
220
|
+
extend Telnyx::Internal::Type::Enum
|
|
225
221
|
|
|
226
|
-
|
|
222
|
+
REDACTED = :redacted
|
|
227
223
|
|
|
228
|
-
|
|
224
|
+
# @!method self.values
|
|
225
|
+
# @return [Array<Symbol>]
|
|
226
|
+
end
|
|
229
227
|
|
|
230
|
-
# @!
|
|
228
|
+
# @!method self.variants
|
|
229
|
+
# @return [Array(Telnyx::Models::EmailWebhookRecipient, Symbol, Telnyx::Models::EmailEventListResponse::Payload::Bcc::Redacted)]
|
|
231
230
|
end
|
|
232
231
|
|
|
233
232
|
# Legacy message-scoped address, or an empty string when absent.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Iam
|
|
6
|
+
module Guardrail
|
|
7
|
+
# @see Telnyx::Resources::Iam::Guardrail::Statements#list
|
|
8
|
+
class IamGuardrailStatement < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# The guardrail statement's ID.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute actions
|
|
16
|
+
# Action IDs, wildcards such as `number.*`, or `*`.
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<String>]
|
|
19
|
+
required :actions, Telnyx::Internal::Type::ArrayOf[String]
|
|
20
|
+
|
|
21
|
+
# @!attribute created_at
|
|
22
|
+
# When the statement was created.
|
|
23
|
+
#
|
|
24
|
+
# @return [Time]
|
|
25
|
+
required :created_at, Time
|
|
26
|
+
|
|
27
|
+
# @!attribute effect
|
|
28
|
+
# Whether the statement allows or denies its actions.
|
|
29
|
+
#
|
|
30
|
+
# @return [Symbol, Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::Effect]
|
|
31
|
+
required :effect, enum: -> { Telnyx::Iam::Guardrail::IamGuardrailStatement::Effect }
|
|
32
|
+
|
|
33
|
+
# @!attribute organization_id
|
|
34
|
+
# The organization the guardrail belongs to.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :organization_id, String
|
|
38
|
+
|
|
39
|
+
# @!attribute record_type
|
|
40
|
+
# Identifies the type of the resource.
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::RecordType]
|
|
43
|
+
required :record_type, enum: -> { Telnyx::Iam::Guardrail::IamGuardrailStatement::RecordType }
|
|
44
|
+
|
|
45
|
+
# @!attribute updated_at
|
|
46
|
+
# When the statement was last changed.
|
|
47
|
+
#
|
|
48
|
+
# @return [Time]
|
|
49
|
+
required :updated_at, Time
|
|
50
|
+
|
|
51
|
+
# @!method initialize(id:, actions:, created_at:, effect:, organization_id:, record_type:, updated_at:)
|
|
52
|
+
# @param id [String] The guardrail statement's ID.
|
|
53
|
+
#
|
|
54
|
+
# @param actions [Array<String>] Action IDs, wildcards such as `number.*`, or `*`.
|
|
55
|
+
#
|
|
56
|
+
# @param created_at [Time] When the statement was created.
|
|
57
|
+
#
|
|
58
|
+
# @param effect [Symbol, Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::Effect] Whether the statement allows or denies its actions.
|
|
59
|
+
#
|
|
60
|
+
# @param organization_id [String] The organization the guardrail belongs to.
|
|
61
|
+
#
|
|
62
|
+
# @param record_type [Symbol, Telnyx::Models::Iam::Guardrail::IamGuardrailStatement::RecordType] Identifies the type of the resource.
|
|
63
|
+
#
|
|
64
|
+
# @param updated_at [Time] When the statement was last changed.
|
|
65
|
+
|
|
66
|
+
# Whether the statement allows or denies its actions.
|
|
67
|
+
#
|
|
68
|
+
# @see Telnyx::Models::Iam::Guardrail::IamGuardrailStatement#effect
|
|
69
|
+
module Effect
|
|
70
|
+
extend Telnyx::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
ALLOW = :allow
|
|
73
|
+
DENY = :deny
|
|
74
|
+
|
|
75
|
+
# @!method self.values
|
|
76
|
+
# @return [Array<Symbol>]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Identifies the type of the resource.
|
|
80
|
+
#
|
|
81
|
+
# @see Telnyx::Models::Iam::Guardrail::IamGuardrailStatement#record_type
|
|
82
|
+
module RecordType
|
|
83
|
+
extend Telnyx::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
IAM_GUARDRAIL_STATEMENT = :iam_guardrail_statement
|
|
86
|
+
|
|
87
|
+
# @!method self.values
|
|
88
|
+
# @return [Array<Symbol>]
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|