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
|
@@ -44,17 +44,17 @@ module Telnyx
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
type condition =
|
|
47
|
-
Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
48
|
-
| Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
49
|
-
| Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
50
|
-
| Telnyx::BrowserSessions::WaitForAction::Condition::
|
|
47
|
+
Telnyx::BrowserSessions::WaitForAction::Condition::URLPattern
|
|
48
|
+
| Telnyx::BrowserSessions::WaitForAction::Condition::Ref
|
|
49
|
+
| Telnyx::BrowserSessions::WaitForAction::Condition::Text
|
|
50
|
+
| Telnyx::BrowserSessions::WaitForAction::Condition::DomStable
|
|
51
51
|
|
|
52
52
|
module Condition
|
|
53
53
|
extend Telnyx::Internal::Type::Union
|
|
54
54
|
|
|
55
|
-
type
|
|
55
|
+
type url_pattern = { kind: :url_pattern, pattern: String }
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class URLPattern < Telnyx::Internal::Type::BaseModel
|
|
58
58
|
attr_accessor kind: :url_pattern
|
|
59
59
|
|
|
60
60
|
attr_accessor pattern: String
|
|
@@ -64,10 +64,9 @@ module Telnyx
|
|
|
64
64
|
def to_hash: -> { kind: :url_pattern, pattern: String }
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
type
|
|
68
|
-
{ kind: :ref, observation_id: String, ref: String }
|
|
67
|
+
type ref = { kind: :ref, observation_id: String, ref: String }
|
|
69
68
|
|
|
70
|
-
class
|
|
69
|
+
class Ref < Telnyx::Internal::Type::BaseModel
|
|
71
70
|
attr_accessor kind: :ref
|
|
72
71
|
|
|
73
72
|
attr_accessor observation_id: String
|
|
@@ -83,9 +82,9 @@ module Telnyx
|
|
|
83
82
|
def to_hash: -> { kind: :ref, observation_id: String, ref: String }
|
|
84
83
|
end
|
|
85
84
|
|
|
86
|
-
type
|
|
85
|
+
type text = { kind: :text, text: String }
|
|
87
86
|
|
|
88
|
-
class
|
|
87
|
+
class Text < Telnyx::Internal::Type::BaseModel
|
|
89
88
|
attr_accessor kind: :text
|
|
90
89
|
|
|
91
90
|
attr_accessor text: String
|
|
@@ -95,9 +94,9 @@ module Telnyx
|
|
|
95
94
|
def to_hash: -> { kind: :text, text: String }
|
|
96
95
|
end
|
|
97
96
|
|
|
98
|
-
type
|
|
97
|
+
type dom_stable = { kind: :dom_stable }
|
|
99
98
|
|
|
100
|
-
class
|
|
99
|
+
class DomStable < Telnyx::Internal::Type::BaseModel
|
|
101
100
|
attr_accessor kind: :dom_stable
|
|
102
101
|
|
|
103
102
|
def initialize: (?kind: :dom_stable) -> void
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type deepgram_flux_config =
|
|
5
|
+
{
|
|
6
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_engine,
|
|
7
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_model,
|
|
8
|
+
interim_results: bool,
|
|
9
|
+
keyterms: ::Array[String],
|
|
10
|
+
language: Telnyx::Models::Calls::DeepgramFluxConfig::language
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor transcription_engine: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_engine
|
|
15
|
+
|
|
16
|
+
attr_accessor transcription_model: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_model
|
|
17
|
+
|
|
18
|
+
attr_reader interim_results: bool?
|
|
19
|
+
|
|
20
|
+
def interim_results=: (bool) -> bool
|
|
21
|
+
|
|
22
|
+
attr_reader keyterms: ::Array[String]?
|
|
23
|
+
|
|
24
|
+
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
25
|
+
|
|
26
|
+
attr_reader language: Telnyx::Models::Calls::DeepgramFluxConfig::language?
|
|
27
|
+
|
|
28
|
+
def language=: (
|
|
29
|
+
Telnyx::Models::Calls::DeepgramFluxConfig::language
|
|
30
|
+
) -> Telnyx::Models::Calls::DeepgramFluxConfig::language
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_engine,
|
|
34
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_model,
|
|
35
|
+
?interim_results: bool,
|
|
36
|
+
?keyterms: ::Array[String],
|
|
37
|
+
?language: Telnyx::Models::Calls::DeepgramFluxConfig::language
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_engine,
|
|
42
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxConfig::transcription_model,
|
|
43
|
+
interim_results: bool,
|
|
44
|
+
keyterms: ::Array[String],
|
|
45
|
+
language: Telnyx::Models::Calls::DeepgramFluxConfig::language
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type transcription_engine = :Deepgram
|
|
49
|
+
|
|
50
|
+
module TranscriptionEngine
|
|
51
|
+
extend Telnyx::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
DEEPGRAM: :Deepgram
|
|
54
|
+
|
|
55
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxConfig::transcription_engine]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
type transcription_model = :"deepgram/flux"
|
|
59
|
+
|
|
60
|
+
module TranscriptionModel
|
|
61
|
+
extend Telnyx::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
64
|
+
|
|
65
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxConfig::transcription_model]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type language = :en
|
|
69
|
+
|
|
70
|
+
module Language
|
|
71
|
+
extend Telnyx::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
EN: :en
|
|
74
|
+
|
|
75
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxConfig::language]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type deepgram_flux_multi_config =
|
|
5
|
+
{
|
|
6
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_engine,
|
|
7
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_model,
|
|
8
|
+
interim_results: bool,
|
|
9
|
+
keyterms: ::Array[String],
|
|
10
|
+
language: Telnyx::Models::Calls::DeepgramFluxMultiConfig::language
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor transcription_engine: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_engine
|
|
15
|
+
|
|
16
|
+
attr_accessor transcription_model: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_model
|
|
17
|
+
|
|
18
|
+
attr_reader interim_results: bool?
|
|
19
|
+
|
|
20
|
+
def interim_results=: (bool) -> bool
|
|
21
|
+
|
|
22
|
+
attr_reader keyterms: ::Array[String]?
|
|
23
|
+
|
|
24
|
+
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
25
|
+
|
|
26
|
+
attr_reader language: Telnyx::Models::Calls::DeepgramFluxMultiConfig::language?
|
|
27
|
+
|
|
28
|
+
def language=: (
|
|
29
|
+
Telnyx::Models::Calls::DeepgramFluxMultiConfig::language
|
|
30
|
+
) -> Telnyx::Models::Calls::DeepgramFluxMultiConfig::language
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_engine,
|
|
34
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_model,
|
|
35
|
+
?interim_results: bool,
|
|
36
|
+
?keyterms: ::Array[String],
|
|
37
|
+
?language: Telnyx::Models::Calls::DeepgramFluxMultiConfig::language
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_engine,
|
|
42
|
+
transcription_model: Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_model,
|
|
43
|
+
interim_results: bool,
|
|
44
|
+
keyterms: ::Array[String],
|
|
45
|
+
language: Telnyx::Models::Calls::DeepgramFluxMultiConfig::language
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type transcription_engine = :Deepgram
|
|
49
|
+
|
|
50
|
+
module TranscriptionEngine
|
|
51
|
+
extend Telnyx::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
DEEPGRAM: :Deepgram
|
|
54
|
+
|
|
55
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_engine]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
type transcription_model = :"deepgram/flux-multi"
|
|
59
|
+
|
|
60
|
+
module TranscriptionModel
|
|
61
|
+
extend Telnyx::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
DEEPGRAM_FLUX_MULTI: :"deepgram/flux-multi"
|
|
64
|
+
|
|
65
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxMultiConfig::transcription_model]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type language =
|
|
69
|
+
:en | :es | :fr | :de | :hi | :ru | :pt | :ja | :it | :nl | :auto
|
|
70
|
+
|
|
71
|
+
module Language
|
|
72
|
+
extend Telnyx::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
EN: :en
|
|
75
|
+
ES: :es
|
|
76
|
+
FR: :fr
|
|
77
|
+
DE: :de
|
|
78
|
+
HI: :hi
|
|
79
|
+
RU: :ru
|
|
80
|
+
PT: :pt
|
|
81
|
+
JA: :ja
|
|
82
|
+
IT: :it
|
|
83
|
+
NL: :nl
|
|
84
|
+
AUTO: :auto
|
|
85
|
+
|
|
86
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramFluxMultiConfig::language]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type deepgram_nova2_specialty_config =
|
|
5
|
+
{
|
|
6
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
7
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
8
|
+
hints: ::Array[String],
|
|
9
|
+
interim_results: bool,
|
|
10
|
+
keywords_boosting: ::Hash[Symbol, Float],
|
|
11
|
+
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
12
|
+
smart_format: bool,
|
|
13
|
+
utterance_end_ms: Integer
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor transcription_engine: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_engine
|
|
18
|
+
|
|
19
|
+
attr_accessor transcription_model: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_model
|
|
20
|
+
|
|
21
|
+
attr_reader hints: ::Array[String]?
|
|
22
|
+
|
|
23
|
+
def hints=: (::Array[String]) -> ::Array[String]
|
|
24
|
+
|
|
25
|
+
attr_reader interim_results: bool?
|
|
26
|
+
|
|
27
|
+
def interim_results=: (bool) -> bool
|
|
28
|
+
|
|
29
|
+
attr_reader keywords_boosting: ::Hash[Symbol, Float]?
|
|
30
|
+
|
|
31
|
+
def keywords_boosting=: (::Hash[Symbol, Float]) -> ::Hash[Symbol, Float]
|
|
32
|
+
|
|
33
|
+
attr_reader language: Telnyx::Models::Calls::deepgram_english_transcription_language?
|
|
34
|
+
|
|
35
|
+
def language=: (
|
|
36
|
+
Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
37
|
+
) -> Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
38
|
+
|
|
39
|
+
attr_reader smart_format: bool?
|
|
40
|
+
|
|
41
|
+
def smart_format=: (bool) -> bool
|
|
42
|
+
|
|
43
|
+
attr_reader utterance_end_ms: Integer?
|
|
44
|
+
|
|
45
|
+
def utterance_end_ms=: (Integer) -> Integer
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
49
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
50
|
+
?hints: ::Array[String],
|
|
51
|
+
?interim_results: bool,
|
|
52
|
+
?keywords_boosting: ::Hash[Symbol, Float],
|
|
53
|
+
?language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
54
|
+
?smart_format: bool,
|
|
55
|
+
?utterance_end_ms: Integer
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_engine,
|
|
60
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_model,
|
|
61
|
+
hints: ::Array[String],
|
|
62
|
+
interim_results: bool,
|
|
63
|
+
keywords_boosting: ::Hash[Symbol, Float],
|
|
64
|
+
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
65
|
+
smart_format: bool,
|
|
66
|
+
utterance_end_ms: Integer
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type transcription_engine = :Deepgram
|
|
70
|
+
|
|
71
|
+
module TranscriptionEngine
|
|
72
|
+
extend Telnyx::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
DEEPGRAM: :Deepgram
|
|
75
|
+
|
|
76
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_engine]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
type transcription_model =
|
|
80
|
+
:"deepgram/nova-2-medical" | :"deepgram/nova-2-phonecall"
|
|
81
|
+
|
|
82
|
+
module TranscriptionModel
|
|
83
|
+
extend Telnyx::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
DEEPGRAM_NOVA_2_MEDICAL: :"deepgram/nova-2-medical"
|
|
86
|
+
DEEPGRAM_NOVA_2_PHONECALL: :"deepgram/nova-2-phonecall"
|
|
87
|
+
|
|
88
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig::transcription_model]
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type deepgram_nova3_medical_config =
|
|
5
|
+
{
|
|
6
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_engine,
|
|
7
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_model,
|
|
8
|
+
interim_results: bool,
|
|
9
|
+
keyterms: ::Array[String],
|
|
10
|
+
keywords_boosting: ::Hash[Symbol, Float],
|
|
11
|
+
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
12
|
+
smart_format: bool,
|
|
13
|
+
utterance_end_ms: Integer
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class DeepgramNova3MedicalConfig < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor transcription_engine: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_engine
|
|
18
|
+
|
|
19
|
+
attr_accessor transcription_model: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_model
|
|
20
|
+
|
|
21
|
+
attr_reader interim_results: bool?
|
|
22
|
+
|
|
23
|
+
def interim_results=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
attr_reader keyterms: ::Array[String]?
|
|
26
|
+
|
|
27
|
+
def keyterms=: (::Array[String]) -> ::Array[String]
|
|
28
|
+
|
|
29
|
+
attr_reader keywords_boosting: ::Hash[Symbol, Float]?
|
|
30
|
+
|
|
31
|
+
def keywords_boosting=: (::Hash[Symbol, Float]) -> ::Hash[Symbol, Float]
|
|
32
|
+
|
|
33
|
+
attr_reader language: Telnyx::Models::Calls::deepgram_english_transcription_language?
|
|
34
|
+
|
|
35
|
+
def language=: (
|
|
36
|
+
Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
37
|
+
) -> Telnyx::Models::Calls::deepgram_english_transcription_language
|
|
38
|
+
|
|
39
|
+
attr_reader smart_format: bool?
|
|
40
|
+
|
|
41
|
+
def smart_format=: (bool) -> bool
|
|
42
|
+
|
|
43
|
+
attr_reader utterance_end_ms: Integer?
|
|
44
|
+
|
|
45
|
+
def utterance_end_ms=: (Integer) -> Integer
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_engine,
|
|
49
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_model,
|
|
50
|
+
?interim_results: bool,
|
|
51
|
+
?keyterms: ::Array[String],
|
|
52
|
+
?keywords_boosting: ::Hash[Symbol, Float],
|
|
53
|
+
?language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
54
|
+
?smart_format: bool,
|
|
55
|
+
?utterance_end_ms: Integer
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
transcription_engine: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_engine,
|
|
60
|
+
transcription_model: Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_model,
|
|
61
|
+
interim_results: bool,
|
|
62
|
+
keyterms: ::Array[String],
|
|
63
|
+
keywords_boosting: ::Hash[Symbol, Float],
|
|
64
|
+
language: Telnyx::Models::Calls::deepgram_english_transcription_language,
|
|
65
|
+
smart_format: bool,
|
|
66
|
+
utterance_end_ms: Integer
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type transcription_engine = :Deepgram
|
|
70
|
+
|
|
71
|
+
module TranscriptionEngine
|
|
72
|
+
extend Telnyx::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
DEEPGRAM: :Deepgram
|
|
75
|
+
|
|
76
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_engine]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
type transcription_model = :"deepgram/nova-3-medical"
|
|
80
|
+
|
|
81
|
+
module TranscriptionModel
|
|
82
|
+
extend Telnyx::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
DEEPGRAM_NOVA_3_MEDICAL: :"deepgram/nova-3-medical"
|
|
85
|
+
|
|
86
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::DeepgramNova3MedicalConfig::transcription_model]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type transcription_engine_community_config =
|
|
5
|
+
{
|
|
6
|
+
api_key_ref: String,
|
|
7
|
+
interim_results: bool,
|
|
8
|
+
language: String,
|
|
9
|
+
transcription_model: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class TranscriptionEngineCommunityConfig < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor api_key_ref: String
|
|
14
|
+
|
|
15
|
+
attr_reader interim_results: bool?
|
|
16
|
+
|
|
17
|
+
def interim_results=: (bool) -> bool
|
|
18
|
+
|
|
19
|
+
attr_reader language: String?
|
|
20
|
+
|
|
21
|
+
def language=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader transcription_model: String?
|
|
24
|
+
|
|
25
|
+
def transcription_model=: (String) -> String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
api_key_ref: String,
|
|
29
|
+
?interim_results: bool,
|
|
30
|
+
?language: String,
|
|
31
|
+
?transcription_model: String
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
api_key_ref: String,
|
|
36
|
+
interim_results: bool,
|
|
37
|
+
language: String,
|
|
38
|
+
transcription_model: String
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|