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
|
@@ -319,6 +319,17 @@ module Telnyx
|
|
|
319
319
|
enum: -> { Telnyx::AI::TelephonySettings::RecordingSettings::Format },
|
|
320
320
|
api_name: :format
|
|
321
321
|
|
|
322
|
+
# @!attribute redaction
|
|
323
|
+
# Silences spoken details of the given kinds in the call recording: `pci` (card
|
|
324
|
+
# number, expiry date, security code), `pii` (personal details such as names,
|
|
325
|
+
# phone numbers, addresses and other identifying numbers) and `phi` (health
|
|
326
|
+
# details such as medications, doses and conditions). An empty list (the default)
|
|
327
|
+
# records without redaction. Redaction works on English speech only.
|
|
328
|
+
#
|
|
329
|
+
# @return [Array<Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Redaction>, nil]
|
|
330
|
+
optional :redaction,
|
|
331
|
+
-> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::AI::TelephonySettings::RecordingSettings::Redaction] }
|
|
332
|
+
|
|
322
333
|
# @!attribute stop_on_conversation_end
|
|
323
334
|
# When enabled, the call recording will stop when the conversation ends (for
|
|
324
335
|
# example, when the assistant hangs up or the call is transferred). When disabled,
|
|
@@ -327,7 +338,7 @@ module Telnyx
|
|
|
327
338
|
# @return [Boolean, nil]
|
|
328
339
|
optional :stop_on_conversation_end, Telnyx::Internal::Type::Boolean
|
|
329
340
|
|
|
330
|
-
# @!method initialize(channels: nil, enabled: nil, file_format: nil, stop_on_conversation_end: nil)
|
|
341
|
+
# @!method initialize(channels: nil, enabled: nil, file_format: nil, redaction: nil, stop_on_conversation_end: nil)
|
|
331
342
|
# Some parameter documentations has been truncated, see
|
|
332
343
|
# {Telnyx::Models::AI::TelephonySettings::RecordingSettings} for more details.
|
|
333
344
|
#
|
|
@@ -339,6 +350,8 @@ module Telnyx
|
|
|
339
350
|
#
|
|
340
351
|
# @param file_format [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format] The format of the recording file.
|
|
341
352
|
#
|
|
353
|
+
# @param redaction [Array<Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Redaction>] Silences spoken details of the given kinds in the call recording: `pci` (card nu
|
|
354
|
+
#
|
|
342
355
|
# @param stop_on_conversation_end [Boolean] When enabled, the call recording will stop when the conversation ends (for examp
|
|
343
356
|
|
|
344
357
|
# The number of channels for the recording. 'single' for mono, 'dual' for stereo.
|
|
@@ -366,6 +379,17 @@ module Telnyx
|
|
|
366
379
|
# @!method self.values
|
|
367
380
|
# @return [Array<Symbol>]
|
|
368
381
|
end
|
|
382
|
+
|
|
383
|
+
module Redaction
|
|
384
|
+
extend Telnyx::Internal::Type::Enum
|
|
385
|
+
|
|
386
|
+
PCI = :pci
|
|
387
|
+
PII = :pii
|
|
388
|
+
PHI = :phi
|
|
389
|
+
|
|
390
|
+
# @!method self.values
|
|
391
|
+
# @return [Array<Symbol>]
|
|
392
|
+
end
|
|
369
393
|
end
|
|
370
394
|
|
|
371
395
|
# @see Telnyx::Models::AI::TelephonySettings#voicemail_detection
|
|
@@ -100,7 +100,7 @@ module Telnyx
|
|
|
100
100
|
|
|
101
101
|
variant String
|
|
102
102
|
|
|
103
|
-
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Choice::Instructions::
|
|
103
|
+
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Choice::Instructions::ContentObjectMap }
|
|
104
104
|
|
|
105
105
|
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Choice::Instructions::UnionMember2Array }
|
|
106
106
|
|
|
@@ -108,7 +108,7 @@ module Telnyx
|
|
|
108
108
|
# @return [Array(String, Hash{Symbol=>Object}, Array<Object>)]
|
|
109
109
|
|
|
110
110
|
# @type [Telnyx::Internal::Type::Converter]
|
|
111
|
-
|
|
111
|
+
ContentObjectMap = Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
112
112
|
|
|
113
113
|
# @type [Telnyx::Internal::Type::Converter]
|
|
114
114
|
UnionMember2Array = Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::Unknown]
|
|
@@ -157,7 +157,7 @@ module Telnyx
|
|
|
157
157
|
|
|
158
158
|
variant String
|
|
159
159
|
|
|
160
|
-
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Noul::Instructions::
|
|
160
|
+
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Noul::Instructions::ContentObjectMap }
|
|
161
161
|
|
|
162
162
|
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Noul::Instructions::UnionMember2Array }
|
|
163
163
|
|
|
@@ -165,7 +165,7 @@ module Telnyx
|
|
|
165
165
|
# @return [Array(String, Hash{Symbol=>Object}, Array<Object>)]
|
|
166
166
|
|
|
167
167
|
# @type [Telnyx::Internal::Type::Converter]
|
|
168
|
-
|
|
168
|
+
ContentObjectMap = Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
169
169
|
|
|
170
170
|
# @type [Telnyx::Internal::Type::Converter]
|
|
171
171
|
UnionMember2Array = Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::Unknown]
|
|
@@ -237,7 +237,7 @@ module Telnyx
|
|
|
237
237
|
|
|
238
238
|
variant String
|
|
239
239
|
|
|
240
|
-
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Score::Instructions::
|
|
240
|
+
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Score::Instructions::ContentObjectMap }
|
|
241
241
|
|
|
242
242
|
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::Question::Score::Instructions::UnionMember2Array }
|
|
243
243
|
|
|
@@ -245,7 +245,7 @@ module Telnyx
|
|
|
245
245
|
# @return [Array(String, Hash{Symbol=>Object}, Array<Object>)]
|
|
246
246
|
|
|
247
247
|
# @type [Telnyx::Internal::Type::Converter]
|
|
248
|
-
|
|
248
|
+
ContentObjectMap = Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
249
249
|
|
|
250
250
|
# @type [Telnyx::Internal::Type::Converter]
|
|
251
251
|
UnionMember2Array = Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::Unknown]
|
|
@@ -262,7 +262,7 @@ module Telnyx
|
|
|
262
262
|
|
|
263
263
|
variant String
|
|
264
264
|
|
|
265
|
-
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::State::
|
|
265
|
+
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::State::ContentObjectMap }
|
|
266
266
|
|
|
267
267
|
variant -> { Telnyx::Models::AI::Typesafe::V1SystemoneParams::State::UnionMember2Array }
|
|
268
268
|
|
|
@@ -270,7 +270,7 @@ module Telnyx
|
|
|
270
270
|
# @return [Array(String, Hash{Symbol=>Object}, Array<Object>)]
|
|
271
271
|
|
|
272
272
|
# @type [Telnyx::Internal::Type::Converter]
|
|
273
|
-
|
|
273
|
+
ContentObjectMap = Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
274
274
|
|
|
275
275
|
# @type [Telnyx::Internal::Type::Converter]
|
|
276
276
|
UnionMember2Array = Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::Unknown]
|
|
@@ -6,7 +6,7 @@ module Telnyx
|
|
|
6
6
|
class WaitForAction < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute condition
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::BrowserSessions::WaitForAction::Condition::
|
|
9
|
+
# @return [Telnyx::Models::BrowserSessions::WaitForAction::Condition::URLPattern, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Ref, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Text, Telnyx::Models::BrowserSessions::WaitForAction::Condition::DomStable]
|
|
10
10
|
required :condition, union: -> { Telnyx::BrowserSessions::WaitForAction::Condition }
|
|
11
11
|
|
|
12
12
|
# @!attribute type
|
|
@@ -32,7 +32,7 @@ module Telnyx
|
|
|
32
32
|
# @!method initialize(condition:, idempotency_key: nil, include_observation: nil, timeout_ms: nil, type: :wait_for)
|
|
33
33
|
# Wait for a condition before continuing.
|
|
34
34
|
#
|
|
35
|
-
# @param condition [Telnyx::Models::BrowserSessions::WaitForAction::Condition::
|
|
35
|
+
# @param condition [Telnyx::Models::BrowserSessions::WaitForAction::Condition::URLPattern, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Ref, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Text, Telnyx::Models::BrowserSessions::WaitForAction::Condition::DomStable]
|
|
36
36
|
# @param idempotency_key [String]
|
|
37
37
|
# @param include_observation [Boolean]
|
|
38
38
|
# @param timeout_ms [Integer]
|
|
@@ -42,15 +42,15 @@ module Telnyx
|
|
|
42
42
|
module Condition
|
|
43
43
|
extend Telnyx::Internal::Type::Union
|
|
44
44
|
|
|
45
|
-
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
45
|
+
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern }
|
|
46
46
|
|
|
47
|
-
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
47
|
+
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::Ref }
|
|
48
48
|
|
|
49
|
-
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
49
|
+
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::Text }
|
|
50
50
|
|
|
51
|
-
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
51
|
+
variant -> { Telnyx::BrowserSessions::WaitForAction::Condition::DomStable }
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class URLPattern < Telnyx::Internal::Type::BaseModel
|
|
54
54
|
# @!attribute kind
|
|
55
55
|
#
|
|
56
56
|
# @return [Symbol, :url_pattern]
|
|
@@ -66,7 +66,7 @@ module Telnyx
|
|
|
66
66
|
# @param kind [Symbol, :url_pattern]
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
class
|
|
69
|
+
class Ref < Telnyx::Internal::Type::BaseModel
|
|
70
70
|
# @!attribute kind
|
|
71
71
|
#
|
|
72
72
|
# @return [Symbol, :ref]
|
|
@@ -88,7 +88,7 @@ module Telnyx
|
|
|
88
88
|
# @param kind [Symbol, :ref]
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
class
|
|
91
|
+
class Text < Telnyx::Internal::Type::BaseModel
|
|
92
92
|
# @!attribute kind
|
|
93
93
|
#
|
|
94
94
|
# @return [Symbol, :text]
|
|
@@ -104,7 +104,7 @@ module Telnyx
|
|
|
104
104
|
# @param kind [Symbol, :text]
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class DomStable < Telnyx::Internal::Type::BaseModel
|
|
108
108
|
# @!attribute kind
|
|
109
109
|
#
|
|
110
110
|
# @return [Symbol, :dom_stable]
|
|
@@ -115,7 +115,7 @@ module Telnyx
|
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# @!method self.variants
|
|
118
|
-
# @return [Array(Telnyx::Models::BrowserSessions::WaitForAction::Condition::
|
|
118
|
+
# @return [Array(Telnyx::Models::BrowserSessions::WaitForAction::Condition::URLPattern, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Ref, Telnyx::Models::BrowserSessions::WaitForAction::Condition::Text, Telnyx::Models::BrowserSessions::WaitForAction::Condition::DomStable)]
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine, enum: -> { Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine }
|
|
11
|
+
|
|
12
|
+
# @!attribute transcription_model
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::TranscriptionModel]
|
|
15
|
+
required :transcription_model, enum: -> { Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel }
|
|
16
|
+
|
|
17
|
+
# @!attribute interim_results
|
|
18
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
19
|
+
# be sent.
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean, nil]
|
|
22
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
23
|
+
|
|
24
|
+
# @!attribute keyterms
|
|
25
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
26
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
27
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
28
|
+
# on Nova-2.
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<String>, nil]
|
|
31
|
+
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
32
|
+
|
|
33
|
+
# @!attribute language
|
|
34
|
+
# Language to transcribe. `deepgram/flux` supports English only.
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::Language, nil]
|
|
37
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramFluxConfig::Language }
|
|
38
|
+
|
|
39
|
+
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, language: nil)
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Telnyx::Models::Calls::DeepgramFluxConfig} for more details.
|
|
42
|
+
#
|
|
43
|
+
# Deepgram Flux (English), a conversational speech recognition model with built-in
|
|
44
|
+
# end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
45
|
+
# `keywords_boosting` do not apply to Flux.
|
|
46
|
+
#
|
|
47
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::TranscriptionEngine]
|
|
48
|
+
#
|
|
49
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::TranscriptionModel]
|
|
50
|
+
#
|
|
51
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
52
|
+
#
|
|
53
|
+
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
54
|
+
#
|
|
55
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramFluxConfig::Language] Language to transcribe. `deepgram/flux` supports English only.
|
|
56
|
+
|
|
57
|
+
# @see Telnyx::Models::Calls::DeepgramFluxConfig#transcription_engine
|
|
58
|
+
module TranscriptionEngine
|
|
59
|
+
extend Telnyx::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
DEEPGRAM = :Deepgram
|
|
62
|
+
|
|
63
|
+
# @!method self.values
|
|
64
|
+
# @return [Array<Symbol>]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @see Telnyx::Models::Calls::DeepgramFluxConfig#transcription_model
|
|
68
|
+
module TranscriptionModel
|
|
69
|
+
extend Telnyx::Internal::Type::Enum
|
|
70
|
+
|
|
71
|
+
DEEPGRAM_FLUX = :"deepgram/flux"
|
|
72
|
+
|
|
73
|
+
# @!method self.values
|
|
74
|
+
# @return [Array<Symbol>]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Language to transcribe. `deepgram/flux` supports English only.
|
|
78
|
+
#
|
|
79
|
+
# @see Telnyx::Models::Calls::DeepgramFluxConfig#language
|
|
80
|
+
module Language
|
|
81
|
+
extend Telnyx::Internal::Type::Enum
|
|
82
|
+
|
|
83
|
+
EN = :en
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine, enum: -> { Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine }
|
|
11
|
+
|
|
12
|
+
# @!attribute transcription_model
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::TranscriptionModel]
|
|
15
|
+
required :transcription_model, enum: -> { Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel }
|
|
16
|
+
|
|
17
|
+
# @!attribute interim_results
|
|
18
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
19
|
+
# be sent.
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean, nil]
|
|
22
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
23
|
+
|
|
24
|
+
# @!attribute keyterms
|
|
25
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
26
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
27
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
28
|
+
# on Nova-2.
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<String>, nil]
|
|
31
|
+
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
32
|
+
|
|
33
|
+
# @!attribute language
|
|
34
|
+
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
35
|
+
# detect the language.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::Language, nil]
|
|
38
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramFluxMultiConfig::Language }
|
|
39
|
+
|
|
40
|
+
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, language: nil)
|
|
41
|
+
# Some parameter documentations has been truncated, see
|
|
42
|
+
# {Telnyx::Models::Calls::DeepgramFluxMultiConfig} for more details.
|
|
43
|
+
#
|
|
44
|
+
# Deepgram Flux multilingual, a conversational speech recognition model with
|
|
45
|
+
# built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
46
|
+
# `keywords_boosting` do not apply to Flux.
|
|
47
|
+
#
|
|
48
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::TranscriptionEngine]
|
|
49
|
+
#
|
|
50
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::TranscriptionModel]
|
|
51
|
+
#
|
|
52
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
53
|
+
#
|
|
54
|
+
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
55
|
+
#
|
|
56
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramFluxMultiConfig::Language] Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
57
|
+
|
|
58
|
+
# @see Telnyx::Models::Calls::DeepgramFluxMultiConfig#transcription_engine
|
|
59
|
+
module TranscriptionEngine
|
|
60
|
+
extend Telnyx::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
DEEPGRAM = :Deepgram
|
|
63
|
+
|
|
64
|
+
# @!method self.values
|
|
65
|
+
# @return [Array<Symbol>]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @see Telnyx::Models::Calls::DeepgramFluxMultiConfig#transcription_model
|
|
69
|
+
module TranscriptionModel
|
|
70
|
+
extend Telnyx::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
DEEPGRAM_FLUX_MULTI = :"deepgram/flux-multi"
|
|
73
|
+
|
|
74
|
+
# @!method self.values
|
|
75
|
+
# @return [Array<Symbol>]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
79
|
+
# detect the language.
|
|
80
|
+
#
|
|
81
|
+
# @see Telnyx::Models::Calls::DeepgramFluxMultiConfig#language
|
|
82
|
+
module Language
|
|
83
|
+
extend Telnyx::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
EN = :en
|
|
86
|
+
ES = :es
|
|
87
|
+
FR = :fr
|
|
88
|
+
DE = :de
|
|
89
|
+
HI = :hi
|
|
90
|
+
RU = :ru
|
|
91
|
+
PT = :pt
|
|
92
|
+
JA = :ja
|
|
93
|
+
IT = :it
|
|
94
|
+
NL = :nl
|
|
95
|
+
AUTO = :auto
|
|
96
|
+
|
|
97
|
+
# @!method self.values
|
|
98
|
+
# @return [Array<Symbol>]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine,
|
|
11
|
+
enum: -> { Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine }
|
|
12
|
+
|
|
13
|
+
# @!attribute transcription_model
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
16
|
+
required :transcription_model,
|
|
17
|
+
enum: -> { Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel }
|
|
18
|
+
|
|
19
|
+
# @!attribute hints
|
|
20
|
+
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
21
|
+
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
22
|
+
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
23
|
+
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
24
|
+
#
|
|
25
|
+
# @return [Array<String>, nil]
|
|
26
|
+
optional :hints, Telnyx::Internal::Type::ArrayOf[String]
|
|
27
|
+
|
|
28
|
+
# @!attribute interim_results
|
|
29
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
30
|
+
# be sent.
|
|
31
|
+
#
|
|
32
|
+
# @return [Boolean, nil]
|
|
33
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
34
|
+
|
|
35
|
+
# @!attribute keywords_boosting
|
|
36
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
37
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
38
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
39
|
+
#
|
|
40
|
+
# @return [Hash{Symbol=>Float}, nil]
|
|
41
|
+
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
42
|
+
|
|
43
|
+
# @!attribute language
|
|
44
|
+
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
45
|
+
# only.
|
|
46
|
+
#
|
|
47
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
48
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
49
|
+
|
|
50
|
+
# @!attribute smart_format
|
|
51
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
52
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
53
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
54
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
55
|
+
# punctuation.
|
|
56
|
+
#
|
|
57
|
+
# @return [Boolean, nil]
|
|
58
|
+
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
59
|
+
|
|
60
|
+
# @!attribute utterance_end_ms
|
|
61
|
+
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
62
|
+
# to 5000 ms.
|
|
63
|
+
#
|
|
64
|
+
# @return [Integer, nil]
|
|
65
|
+
optional :utterance_end_ms, Integer
|
|
66
|
+
|
|
67
|
+
# @!method initialize(transcription_engine:, transcription_model:, hints: nil, interim_results: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig} for more details.
|
|
70
|
+
#
|
|
71
|
+
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
|
|
72
|
+
# and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
73
|
+
#
|
|
74
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
75
|
+
#
|
|
76
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
77
|
+
#
|
|
78
|
+
# @param hints [Array<String>] Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
79
|
+
#
|
|
80
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
81
|
+
#
|
|
82
|
+
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
83
|
+
#
|
|
84
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
85
|
+
#
|
|
86
|
+
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
87
|
+
#
|
|
88
|
+
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
89
|
+
|
|
90
|
+
# @see Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig#transcription_engine
|
|
91
|
+
module TranscriptionEngine
|
|
92
|
+
extend Telnyx::Internal::Type::Enum
|
|
93
|
+
|
|
94
|
+
DEEPGRAM = :Deepgram
|
|
95
|
+
|
|
96
|
+
# @!method self.values
|
|
97
|
+
# @return [Array<Symbol>]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @see Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig#transcription_model
|
|
101
|
+
module TranscriptionModel
|
|
102
|
+
extend Telnyx::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
DEEPGRAM_NOVA_2_MEDICAL = :"deepgram/nova-2-medical"
|
|
105
|
+
DEEPGRAM_NOVA_2_PHONECALL = :"deepgram/nova-2-phonecall"
|
|
106
|
+
|
|
107
|
+
# @!method self.values
|
|
108
|
+
# @return [Array<Symbol>]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramNova3MedicalConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova3MedicalConfig::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine,
|
|
11
|
+
enum: -> { Telnyx::Calls::DeepgramNova3MedicalConfig::TranscriptionEngine }
|
|
12
|
+
|
|
13
|
+
# @!attribute transcription_model
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova3MedicalConfig::TranscriptionModel]
|
|
16
|
+
required :transcription_model, enum: -> { Telnyx::Calls::DeepgramNova3MedicalConfig::TranscriptionModel }
|
|
17
|
+
|
|
18
|
+
# @!attribute interim_results
|
|
19
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
20
|
+
# be sent.
|
|
21
|
+
#
|
|
22
|
+
# @return [Boolean, nil]
|
|
23
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
24
|
+
|
|
25
|
+
# @!attribute keyterms
|
|
26
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
27
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
28
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
29
|
+
# on Nova-2.
|
|
30
|
+
#
|
|
31
|
+
# @return [Array<String>, nil]
|
|
32
|
+
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
33
|
+
|
|
34
|
+
# @!attribute keywords_boosting
|
|
35
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
36
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
37
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
38
|
+
#
|
|
39
|
+
# @return [Hash{Symbol=>Float}, nil]
|
|
40
|
+
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
41
|
+
|
|
42
|
+
# @!attribute language
|
|
43
|
+
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
44
|
+
# only.
|
|
45
|
+
#
|
|
46
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
47
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
48
|
+
|
|
49
|
+
# @!attribute smart_format
|
|
50
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
51
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
52
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
53
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
54
|
+
# punctuation.
|
|
55
|
+
#
|
|
56
|
+
# @return [Boolean, nil]
|
|
57
|
+
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
58
|
+
|
|
59
|
+
# @!attribute utterance_end_ms
|
|
60
|
+
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
61
|
+
# to 5000 ms.
|
|
62
|
+
#
|
|
63
|
+
# @return [Integer, nil]
|
|
64
|
+
optional :utterance_end_ms, Integer
|
|
65
|
+
|
|
66
|
+
# @!method initialize(transcription_engine:, transcription_model:, interim_results: nil, keyterms: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
|
|
67
|
+
# Some parameter documentations has been truncated, see
|
|
68
|
+
# {Telnyx::Models::Calls::DeepgramNova3MedicalConfig} for more details.
|
|
69
|
+
#
|
|
70
|
+
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
71
|
+
#
|
|
72
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramNova3MedicalConfig::TranscriptionEngine]
|
|
73
|
+
#
|
|
74
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramNova3MedicalConfig::TranscriptionModel]
|
|
75
|
+
#
|
|
76
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
77
|
+
#
|
|
78
|
+
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
79
|
+
#
|
|
80
|
+
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
81
|
+
#
|
|
82
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
83
|
+
#
|
|
84
|
+
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
85
|
+
#
|
|
86
|
+
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
87
|
+
|
|
88
|
+
# @see Telnyx::Models::Calls::DeepgramNova3MedicalConfig#transcription_engine
|
|
89
|
+
module TranscriptionEngine
|
|
90
|
+
extend Telnyx::Internal::Type::Enum
|
|
91
|
+
|
|
92
|
+
DEEPGRAM = :Deepgram
|
|
93
|
+
|
|
94
|
+
# @!method self.values
|
|
95
|
+
# @return [Array<Symbol>]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @see Telnyx::Models::Calls::DeepgramNova3MedicalConfig#transcription_model
|
|
99
|
+
module TranscriptionModel
|
|
100
|
+
extend Telnyx::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
DEEPGRAM_NOVA_3_MEDICAL = :"deepgram/nova-3-medical"
|
|
103
|
+
|
|
104
|
+
# @!method self.values
|
|
105
|
+
# @return [Array<Symbol>]
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class TranscriptionEngineCommunityConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute api_key_ref
|
|
8
|
+
# The identifier of the
|
|
9
|
+
# [integration secret](/api-reference/integration-secrets/create-a-secret) in your
|
|
10
|
+
# organization that holds the key the engine expects. The engine is called with
|
|
11
|
+
# your own key: Telnyx holds none for it.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :api_key_ref, String
|
|
15
|
+
|
|
16
|
+
# @!attribute interim_results
|
|
17
|
+
# Whether to send interim (non-final) transcription results in addition to final
|
|
18
|
+
# ones.
|
|
19
|
+
#
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
22
|
+
|
|
23
|
+
# @!attribute language
|
|
24
|
+
# The language of the audio to be transcribed. Unlike the built-in engines, this
|
|
25
|
+
# isn't checked against a fixed list: it is passed through to the registered
|
|
26
|
+
# engine, which accepts the languages its selected model lists. `auto` resolves to
|
|
27
|
+
# that model's language when it lists only one.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :language, String
|
|
31
|
+
|
|
32
|
+
# @!attribute transcription_model
|
|
33
|
+
# One of the community engine's own models, as listed in its `models`. Without it,
|
|
34
|
+
# the engine's default model is used.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :transcription_model, String
|
|
38
|
+
|
|
39
|
+
# @!method initialize(api_key_ref:, interim_results: nil, language: nil, transcription_model: nil)
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Telnyx::Models::Calls::TranscriptionEngineCommunityConfig} for more details.
|
|
42
|
+
#
|
|
43
|
+
# Settings for a community STT engine, used with the engine's name in
|
|
44
|
+
# `transcription_engine` (any name that is not a built-in engine). See
|
|
45
|
+
# [Community STT engines](/docs/voice/stt/community-engines).
|
|
46
|
+
#
|
|
47
|
+
# @param api_key_ref [String] The identifier of the [integration secret](/api-reference/integration-secrets/cr
|
|
48
|
+
#
|
|
49
|
+
# @param interim_results [Boolean] Whether to send interim (non-final) transcription results in addition to final o
|
|
50
|
+
#
|
|
51
|
+
# @param language [String] The language of the audio to be transcribed. Unlike the built-in engines, this i
|
|
52
|
+
#
|
|
53
|
+
# @param transcription_model [String] One of the community engine's own models, as listed in its `models`. Without it,
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|