telnyx 5.173.0 → 5.174.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/client.rb +0 -4
- data/lib/telnyx/lib/access_token.rb +141 -0
- data/lib/telnyx/lib/telephony_credentials.rb +87 -0
- data/lib/telnyx/lib.rb +2 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings.rb +26 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings_response.rb +3 -41
- data/lib/telnyx/models/ai/memory/namespaces/summary_settings.rb +33 -0
- data/lib/telnyx/models/ai/transcription_challenger.rb +148 -0
- data/lib/telnyx/models/ai/transcription_fallback_model.rb +78 -0
- data/lib/telnyx/models/ai/transcription_settings.rb +6 -219
- data/lib/telnyx/models/compute/funcs/func_log_export_config.rb +96 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +3 -89
- data/lib/telnyx/models/email_template_common.rb +5 -26
- data/lib/telnyx/models/email_template_create_params.rb +5 -26
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/messaging_profile_features.rb +16 -1
- data/lib/telnyx/models/model_metadata.rb +10 -1
- data/lib/telnyx/models/outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/phone_numbers/numbers_phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rb +28 -0
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rb +28 -0
- data/lib/telnyx/models/update_email_template_request.rb +5 -26
- data/lib/telnyx/models/variable_schema_entry.rb +28 -0
- data/lib/telnyx/models/whatsapp/hosted_signup_create_response.rb +3 -83
- data/lib/telnyx/models/whatsapp/hosted_signup_retrieve_response.rb +3 -84
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +3 -191
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +3 -192
- data/lib/telnyx/models/whatsapp/{hosted_signup_list_response.rb → whatsapp_hosted_signup.rb} +8 -6
- data/lib/telnyx/models/whatsapp/{phone_number_list_response.rb → whatsapp_phone_response.rb} +12 -12
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/email_templates.rb +3 -3
- data/lib/telnyx/resources/portouts.rb +2 -1
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/hosted_signups.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -5
- data/rbi/telnyx/client.rbi +0 -3
- data/rbi/telnyx/lib/access_token.rbi +73 -0
- data/rbi/telnyx/lib/telephony_credentials.rbi +50 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbi +4 -107
- data/rbi/telnyx/models/ai/memory/namespaces/summary_settings.rbi +51 -0
- data/rbi/telnyx/models/ai/transcription_challenger.rbi +318 -0
- data/rbi/telnyx/models/ai/transcription_fallback_model.rbi +171 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +7 -531
- data/rbi/telnyx/models/compute/funcs/func_log_export_config.rbi +175 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +4 -176
- data/rbi/telnyx/models/email_template_common.rbi +3 -56
- data/rbi/telnyx/models/email_template_create_params.rbi +3 -59
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +36 -5
- data/rbi/telnyx/models/model_metadata.rbi +13 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbi +8 -96
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job.rbi +8 -94
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbi +49 -0
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbi +49 -0
- data/rbi/telnyx/models/update_email_template_request.rbi +3 -59
- data/rbi/telnyx/models/variable_schema_entry.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/hosted_signup_create_response.rbi +6 -173
- data/rbi/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbi +6 -175
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +4 -366
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +6 -368
- data/rbi/telnyx/models/whatsapp/{hosted_signup_list_response.rbi → whatsapp_hosted_signup.rbi} +11 -12
- data/rbi/telnyx/models/whatsapp/{phone_number_list_response.rbi → whatsapp_phone_response.rbi} +23 -23
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/email_templates.rbi +3 -18
- data/rbi/telnyx/resources/portouts.rbi +2 -1
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/hosted_signups.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/client.rbs +0 -2
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings.rbs +30 -0
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbs +4 -37
- data/sig/telnyx/models/ai/memory/namespaces/summary_settings.rbs +19 -0
- data/sig/telnyx/models/ai/transcription_challenger.rbs +98 -0
- data/sig/telnyx/models/ai/transcription_fallback_model.rbs +63 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +8 -159
- data/sig/telnyx/models/compute/funcs/func_log_export_config.rbs +96 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +6 -95
- data/sig/telnyx/models/email_template_common.rbs +4 -18
- data/sig/telnyx/models/email_template_create_params.rbs +4 -18
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +14 -3
- data/sig/telnyx/models/model_metadata.rbs +7 -0
- data/sig/telnyx/models/outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbs +24 -0
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbs +24 -0
- data/sig/telnyx/models/update_email_template_request.rbs +4 -18
- data/sig/telnyx/models/variable_schema_entry.rbs +17 -0
- data/sig/telnyx/models/whatsapp/hosted_signup_create_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +6 -185
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +4 -189
- data/sig/telnyx/models/whatsapp/{hosted_signup_list_response.rbs → whatsapp_hosted_signup.rbs} +11 -9
- data/sig/telnyx/models/whatsapp/{phone_number_list_response.rbs → whatsapp_phone_response.rbs} +13 -11
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/email_templates.rbs +3 -3
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/hosted_signups.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +36 -17
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +0 -198
- data/lib/telnyx/resources/tts_integrations/actions.rb +0 -16
- data/lib/telnyx/resources/tts_integrations.rb +0 -18
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +0 -358
- data/rbi/telnyx/resources/tts_integrations/actions.rbi +0 -14
- data/rbi/telnyx/resources/tts_integrations.rbi +0 -15
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +0 -186
- data/sig/telnyx/resources/tts_integrations/actions.rbs +0 -9
- data/sig/telnyx/resources/tts_integrations.rbs +0 -9
data/sig/telnyx/client.rbs
CHANGED
|
@@ -402,8 +402,6 @@ module Telnyx
|
|
|
402
402
|
|
|
403
403
|
attr_reader dial_metrics: Telnyx::Resources::DialMetrics
|
|
404
404
|
|
|
405
|
-
attr_reader tts_integrations: Telnyx::Resources::TtsIntegrations
|
|
406
|
-
|
|
407
405
|
attr_reader tailscale_subnet_routers: Telnyx::Resources::TailscaleSubnetRouters
|
|
408
406
|
|
|
409
407
|
attr_reader artifact_downloads: Telnyx::Resources::ArtifactDownloads
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Memory
|
|
5
|
+
class NamespaceSettings = Namespaces::NamespaceSettings
|
|
6
|
+
|
|
7
|
+
module Namespaces
|
|
8
|
+
type namespace_settings =
|
|
9
|
+
{ summary: Telnyx::AI::Memory::Namespaces::SummarySettings }
|
|
10
|
+
|
|
11
|
+
class NamespaceSettings < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_reader summary: Telnyx::AI::Memory::Namespaces::SummarySettings?
|
|
13
|
+
|
|
14
|
+
def summary=: (
|
|
15
|
+
Telnyx::AI::Memory::Namespaces::SummarySettings
|
|
16
|
+
) -> Telnyx::AI::Memory::Namespaces::SummarySettings
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
?summary: Telnyx::AI::Memory::Namespaces::SummarySettings
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
summary: Telnyx::AI::Memory::Namespaces::SummarySettings
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -6,51 +6,18 @@ module Telnyx
|
|
|
6
6
|
|
|
7
7
|
module Namespaces
|
|
8
8
|
type namespace_settings_response =
|
|
9
|
-
{
|
|
10
|
-
data: Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data
|
|
11
|
-
}
|
|
9
|
+
{ data: Telnyx::AI::Memory::Namespaces::NamespaceSettings }
|
|
12
10
|
|
|
13
11
|
class NamespaceSettingsResponse < Telnyx::Internal::Type::BaseModel
|
|
14
|
-
attr_accessor data: Telnyx::AI::Memory::Namespaces::
|
|
12
|
+
attr_accessor data: Telnyx::AI::Memory::Namespaces::NamespaceSettings
|
|
15
13
|
|
|
16
14
|
def initialize: (
|
|
17
|
-
data: Telnyx::AI::Memory::Namespaces::
|
|
15
|
+
data: Telnyx::AI::Memory::Namespaces::NamespaceSettings
|
|
18
16
|
) -> void
|
|
19
17
|
|
|
20
18
|
def to_hash: -> {
|
|
21
|
-
data: Telnyx::AI::Memory::Namespaces::
|
|
19
|
+
data: Telnyx::AI::Memory::Namespaces::NamespaceSettings
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
type data =
|
|
25
|
-
{
|
|
26
|
-
summary: Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
30
|
-
attr_reader summary: Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary?
|
|
31
|
-
|
|
32
|
-
def summary=: (
|
|
33
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
34
|
-
) -> Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
35
|
-
|
|
36
|
-
def initialize: (
|
|
37
|
-
?summary: Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
38
|
-
) -> void
|
|
39
|
-
|
|
40
|
-
def to_hash: -> {
|
|
41
|
-
summary: Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type summary = { instructions: String? }
|
|
45
|
-
|
|
46
|
-
class Summary < Telnyx::Internal::Type::BaseModel
|
|
47
|
-
attr_accessor instructions: String?
|
|
48
|
-
|
|
49
|
-
def initialize: (?instructions: String?) -> void
|
|
50
|
-
|
|
51
|
-
def to_hash: -> { instructions: String? }
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
21
|
end
|
|
55
22
|
end
|
|
56
23
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Memory
|
|
5
|
+
module Namespaces
|
|
6
|
+
type summary_settings = { instructions: String? }
|
|
7
|
+
|
|
8
|
+
class SummarySettings < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor instructions: String?
|
|
10
|
+
|
|
11
|
+
def initialize: (?instructions: String?) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { instructions: String? }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type transcription_challenger =
|
|
5
|
+
{
|
|
6
|
+
model: Telnyx::Models::AI::TranscriptionChallenger::model,
|
|
7
|
+
language: String?,
|
|
8
|
+
rule: Telnyx::Models::AI::TranscriptionChallenger::rule,
|
|
9
|
+
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class TranscriptionChallenger < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor model: Telnyx::Models::AI::TranscriptionChallenger::model
|
|
14
|
+
|
|
15
|
+
attr_accessor language: String?
|
|
16
|
+
|
|
17
|
+
attr_reader rule: Telnyx::Models::AI::TranscriptionChallenger::rule?
|
|
18
|
+
|
|
19
|
+
def rule=: (
|
|
20
|
+
Telnyx::Models::AI::TranscriptionChallenger::rule
|
|
21
|
+
) -> Telnyx::Models::AI::TranscriptionChallenger::rule
|
|
22
|
+
|
|
23
|
+
attr_accessor settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
model: Telnyx::Models::AI::TranscriptionChallenger::model,
|
|
27
|
+
?language: String?,
|
|
28
|
+
?rule: Telnyx::Models::AI::TranscriptionChallenger::rule,
|
|
29
|
+
?settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
model: Telnyx::Models::AI::TranscriptionChallenger::model,
|
|
34
|
+
language: String?,
|
|
35
|
+
rule: Telnyx::Models::AI::TranscriptionChallenger::rule,
|
|
36
|
+
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type model =
|
|
40
|
+
:"deepgram/flux"
|
|
41
|
+
| :"deepgram/nova-3"
|
|
42
|
+
| :"deepgram/nova-2"
|
|
43
|
+
| :"azure/fast"
|
|
44
|
+
| :"assemblyai/universal-3-6-pro"
|
|
45
|
+
| :"assemblyai/universal-3-5-pro"
|
|
46
|
+
| :"assemblyai/universal-streaming"
|
|
47
|
+
| :"xai/grok-stt"
|
|
48
|
+
| :"soniox/stt-rt-v4"
|
|
49
|
+
| :"soniox/stt-rt-v5"
|
|
50
|
+
| :"nvidia/parakeet-v3"
|
|
51
|
+
| :"omi-health/omi-med-stt-v1"
|
|
52
|
+
| :"humain/realtime"
|
|
53
|
+
| :"reson8/turns"
|
|
54
|
+
| :"cohere/ar-stt"
|
|
55
|
+
| :"telnyx/basira"
|
|
56
|
+
| :"distil-whisper/distil-large-v2"
|
|
57
|
+
| :"openai/whisper-large-v3-turbo"
|
|
58
|
+
|
|
59
|
+
module Model
|
|
60
|
+
extend Telnyx::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
63
|
+
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
64
|
+
DEEPGRAM_NOVA_2: :"deepgram/nova-2"
|
|
65
|
+
AZURE_FAST: :"azure/fast"
|
|
66
|
+
ASSEMBLYAI_UNIVERSAL_3_6_PRO: :"assemblyai/universal-3-6-pro"
|
|
67
|
+
ASSEMBLYAI_UNIVERSAL_3_5_PRO: :"assemblyai/universal-3-5-pro"
|
|
68
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
69
|
+
XAI_GROK_STT: :"xai/grok-stt"
|
|
70
|
+
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
71
|
+
SONIOX_STT_RT_V5: :"soniox/stt-rt-v5"
|
|
72
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
73
|
+
OMI_HEALTH_OMI_MED_STT_V1: :"omi-health/omi-med-stt-v1"
|
|
74
|
+
HUMAIN_REALTIME: :"humain/realtime"
|
|
75
|
+
RESON8_TURNS: :"reson8/turns"
|
|
76
|
+
COHERE_AR_STT: :"cohere/ar-stt"
|
|
77
|
+
TELNYX_BASIRA: :"telnyx/basira"
|
|
78
|
+
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
79
|
+
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
80
|
+
|
|
81
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionChallenger::model]
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
type rule = :best_turn | :best_engine | :merge_words
|
|
85
|
+
|
|
86
|
+
module Rule
|
|
87
|
+
extend Telnyx::Internal::Type::Enum
|
|
88
|
+
|
|
89
|
+
BEST_TURN: :best_turn
|
|
90
|
+
BEST_ENGINE: :best_engine
|
|
91
|
+
MERGE_WORDS: :merge_words
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionChallenger::rule]
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type transcription_fallback_model =
|
|
5
|
+
{
|
|
6
|
+
model: Telnyx::Models::AI::TranscriptionFallbackModel::model,
|
|
7
|
+
language: String?,
|
|
8
|
+
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class TranscriptionFallbackModel < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor model: Telnyx::Models::AI::TranscriptionFallbackModel::model
|
|
13
|
+
|
|
14
|
+
attr_accessor language: String?
|
|
15
|
+
|
|
16
|
+
attr_accessor settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
model: Telnyx::Models::AI::TranscriptionFallbackModel::model,
|
|
20
|
+
?language: String?,
|
|
21
|
+
?settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
model: Telnyx::Models::AI::TranscriptionFallbackModel::model,
|
|
26
|
+
language: String?,
|
|
27
|
+
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type model =
|
|
31
|
+
:"deepgram/flux"
|
|
32
|
+
| :"deepgram/nova-3"
|
|
33
|
+
| :"deepgram/nova-2"
|
|
34
|
+
| :"assemblyai/universal-3-6-pro"
|
|
35
|
+
| :"assemblyai/universal-3-5-pro"
|
|
36
|
+
| :"assemblyai/universal-streaming"
|
|
37
|
+
| :"xai/grok-stt"
|
|
38
|
+
| :"soniox/stt-rt-v4"
|
|
39
|
+
| :"soniox/stt-rt-v5"
|
|
40
|
+
| :"humain/realtime"
|
|
41
|
+
| :"reson8/turns"
|
|
42
|
+
|
|
43
|
+
module Model
|
|
44
|
+
extend Telnyx::Internal::Type::Enum
|
|
45
|
+
|
|
46
|
+
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
47
|
+
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
48
|
+
DEEPGRAM_NOVA_2: :"deepgram/nova-2"
|
|
49
|
+
ASSEMBLYAI_UNIVERSAL_3_6_PRO: :"assemblyai/universal-3-6-pro"
|
|
50
|
+
ASSEMBLYAI_UNIVERSAL_3_5_PRO: :"assemblyai/universal-3-5-pro"
|
|
51
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
52
|
+
XAI_GROK_STT: :"xai/grok-stt"
|
|
53
|
+
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
54
|
+
SONIOX_STT_RT_V5: :"soniox/stt-rt-v5"
|
|
55
|
+
HUMAIN_REALTIME: :"humain/realtime"
|
|
56
|
+
RESON8_TURNS: :"reson8/turns"
|
|
57
|
+
|
|
58
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionFallbackModel::model]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
type transcription_settings =
|
|
5
5
|
{
|
|
6
6
|
api_key_ref: String,
|
|
7
|
-
challenger: Telnyx::AI::
|
|
8
|
-
fallback_models: ::Array[Telnyx::AI::
|
|
7
|
+
challenger: Telnyx::AI::TranscriptionChallenger?,
|
|
8
|
+
fallback_models: ::Array[Telnyx::AI::TranscriptionFallbackModel]?,
|
|
9
9
|
language: String,
|
|
10
10
|
model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
11
11
|
region: String,
|
|
@@ -17,9 +17,9 @@ module Telnyx
|
|
|
17
17
|
|
|
18
18
|
def api_key_ref=: (String) -> String
|
|
19
19
|
|
|
20
|
-
attr_accessor challenger: Telnyx::AI::
|
|
20
|
+
attr_accessor challenger: Telnyx::AI::TranscriptionChallenger?
|
|
21
21
|
|
|
22
|
-
attr_accessor fallback_models: ::Array[Telnyx::AI::
|
|
22
|
+
attr_accessor fallback_models: ::Array[Telnyx::AI::TranscriptionFallbackModel]?
|
|
23
23
|
|
|
24
24
|
attr_reader language: String?
|
|
25
25
|
|
|
@@ -43,8 +43,8 @@ module Telnyx
|
|
|
43
43
|
|
|
44
44
|
def initialize: (
|
|
45
45
|
?api_key_ref: String,
|
|
46
|
-
?challenger: Telnyx::AI::
|
|
47
|
-
?fallback_models: ::Array[Telnyx::AI::
|
|
46
|
+
?challenger: Telnyx::AI::TranscriptionChallenger?,
|
|
47
|
+
?fallback_models: ::Array[Telnyx::AI::TranscriptionFallbackModel]?,
|
|
48
48
|
?language: String,
|
|
49
49
|
?model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
50
50
|
?region: String,
|
|
@@ -53,165 +53,14 @@ module Telnyx
|
|
|
53
53
|
|
|
54
54
|
def to_hash: -> {
|
|
55
55
|
api_key_ref: String,
|
|
56
|
-
challenger: Telnyx::AI::
|
|
57
|
-
fallback_models: ::Array[Telnyx::AI::
|
|
56
|
+
challenger: Telnyx::AI::TranscriptionChallenger?,
|
|
57
|
+
fallback_models: ::Array[Telnyx::AI::TranscriptionFallbackModel]?,
|
|
58
58
|
language: String,
|
|
59
59
|
model: Telnyx::Models::AI::TranscriptionSettings::model,
|
|
60
60
|
region: String,
|
|
61
61
|
settings: Telnyx::AI::TranscriptionSettingsConfig
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
type challenger =
|
|
65
|
-
{
|
|
66
|
-
model: Telnyx::Models::AI::TranscriptionSettings::Challenger::model,
|
|
67
|
-
language: String?,
|
|
68
|
-
rule: Telnyx::Models::AI::TranscriptionSettings::Challenger::rule,
|
|
69
|
-
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
class Challenger < Telnyx::Internal::Type::BaseModel
|
|
73
|
-
attr_accessor model: Telnyx::Models::AI::TranscriptionSettings::Challenger::model
|
|
74
|
-
|
|
75
|
-
attr_accessor language: String?
|
|
76
|
-
|
|
77
|
-
attr_reader rule: Telnyx::Models::AI::TranscriptionSettings::Challenger::rule?
|
|
78
|
-
|
|
79
|
-
def rule=: (
|
|
80
|
-
Telnyx::Models::AI::TranscriptionSettings::Challenger::rule
|
|
81
|
-
) -> Telnyx::Models::AI::TranscriptionSettings::Challenger::rule
|
|
82
|
-
|
|
83
|
-
attr_accessor settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
84
|
-
|
|
85
|
-
def initialize: (
|
|
86
|
-
model: Telnyx::Models::AI::TranscriptionSettings::Challenger::model,
|
|
87
|
-
?language: String?,
|
|
88
|
-
?rule: Telnyx::Models::AI::TranscriptionSettings::Challenger::rule,
|
|
89
|
-
?settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
90
|
-
) -> void
|
|
91
|
-
|
|
92
|
-
def to_hash: -> {
|
|
93
|
-
model: Telnyx::Models::AI::TranscriptionSettings::Challenger::model,
|
|
94
|
-
language: String?,
|
|
95
|
-
rule: Telnyx::Models::AI::TranscriptionSettings::Challenger::rule,
|
|
96
|
-
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
type model =
|
|
100
|
-
:"deepgram/flux"
|
|
101
|
-
| :"deepgram/nova-3"
|
|
102
|
-
| :"deepgram/nova-2"
|
|
103
|
-
| :"azure/fast"
|
|
104
|
-
| :"assemblyai/universal-3-6-pro"
|
|
105
|
-
| :"assemblyai/universal-3-5-pro"
|
|
106
|
-
| :"assemblyai/universal-streaming"
|
|
107
|
-
| :"xai/grok-stt"
|
|
108
|
-
| :"soniox/stt-rt-v4"
|
|
109
|
-
| :"soniox/stt-rt-v5"
|
|
110
|
-
| :"nvidia/parakeet-v3"
|
|
111
|
-
| :"omi-health/omi-med-stt-v1"
|
|
112
|
-
| :"humain/realtime"
|
|
113
|
-
| :"reson8/turns"
|
|
114
|
-
| :"cohere/ar-stt"
|
|
115
|
-
| :"telnyx/basira"
|
|
116
|
-
| :"distil-whisper/distil-large-v2"
|
|
117
|
-
| :"openai/whisper-large-v3-turbo"
|
|
118
|
-
|
|
119
|
-
module Model
|
|
120
|
-
extend Telnyx::Internal::Type::Enum
|
|
121
|
-
|
|
122
|
-
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
123
|
-
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
124
|
-
DEEPGRAM_NOVA_2: :"deepgram/nova-2"
|
|
125
|
-
AZURE_FAST: :"azure/fast"
|
|
126
|
-
ASSEMBLYAI_UNIVERSAL_3_6_PRO: :"assemblyai/universal-3-6-pro"
|
|
127
|
-
ASSEMBLYAI_UNIVERSAL_3_5_PRO: :"assemblyai/universal-3-5-pro"
|
|
128
|
-
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
129
|
-
XAI_GROK_STT: :"xai/grok-stt"
|
|
130
|
-
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
131
|
-
SONIOX_STT_RT_V5: :"soniox/stt-rt-v5"
|
|
132
|
-
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
133
|
-
OMI_HEALTH_OMI_MED_STT_V1: :"omi-health/omi-med-stt-v1"
|
|
134
|
-
HUMAIN_REALTIME: :"humain/realtime"
|
|
135
|
-
RESON8_TURNS: :"reson8/turns"
|
|
136
|
-
COHERE_AR_STT: :"cohere/ar-stt"
|
|
137
|
-
TELNYX_BASIRA: :"telnyx/basira"
|
|
138
|
-
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
139
|
-
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
140
|
-
|
|
141
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionSettings::Challenger::model]
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
type rule = :best_turn | :best_engine | :merge_words
|
|
145
|
-
|
|
146
|
-
module Rule
|
|
147
|
-
extend Telnyx::Internal::Type::Enum
|
|
148
|
-
|
|
149
|
-
BEST_TURN: :best_turn
|
|
150
|
-
BEST_ENGINE: :best_engine
|
|
151
|
-
MERGE_WORDS: :merge_words
|
|
152
|
-
|
|
153
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionSettings::Challenger::rule]
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
type fallback_model =
|
|
158
|
-
{
|
|
159
|
-
model: Telnyx::Models::AI::TranscriptionSettings::FallbackModel::model,
|
|
160
|
-
language: String?,
|
|
161
|
-
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
class FallbackModel < Telnyx::Internal::Type::BaseModel
|
|
165
|
-
attr_accessor model: Telnyx::Models::AI::TranscriptionSettings::FallbackModel::model
|
|
166
|
-
|
|
167
|
-
attr_accessor language: String?
|
|
168
|
-
|
|
169
|
-
attr_accessor settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
170
|
-
|
|
171
|
-
def initialize: (
|
|
172
|
-
model: Telnyx::Models::AI::TranscriptionSettings::FallbackModel::model,
|
|
173
|
-
?language: String?,
|
|
174
|
-
?settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
175
|
-
) -> void
|
|
176
|
-
|
|
177
|
-
def to_hash: -> {
|
|
178
|
-
model: Telnyx::Models::AI::TranscriptionSettings::FallbackModel::model,
|
|
179
|
-
language: String?,
|
|
180
|
-
settings: Telnyx::AI::TranscriptionSettingsConfig?
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
type model =
|
|
184
|
-
:"deepgram/flux"
|
|
185
|
-
| :"deepgram/nova-3"
|
|
186
|
-
| :"deepgram/nova-2"
|
|
187
|
-
| :"assemblyai/universal-3-6-pro"
|
|
188
|
-
| :"assemblyai/universal-3-5-pro"
|
|
189
|
-
| :"assemblyai/universal-streaming"
|
|
190
|
-
| :"xai/grok-stt"
|
|
191
|
-
| :"soniox/stt-rt-v4"
|
|
192
|
-
| :"soniox/stt-rt-v5"
|
|
193
|
-
| :"humain/realtime"
|
|
194
|
-
| :"reson8/turns"
|
|
195
|
-
|
|
196
|
-
module Model
|
|
197
|
-
extend Telnyx::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
DEEPGRAM_FLUX: :"deepgram/flux"
|
|
200
|
-
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
201
|
-
DEEPGRAM_NOVA_2: :"deepgram/nova-2"
|
|
202
|
-
ASSEMBLYAI_UNIVERSAL_3_6_PRO: :"assemblyai/universal-3-6-pro"
|
|
203
|
-
ASSEMBLYAI_UNIVERSAL_3_5_PRO: :"assemblyai/universal-3-5-pro"
|
|
204
|
-
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
205
|
-
XAI_GROK_STT: :"xai/grok-stt"
|
|
206
|
-
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
207
|
-
SONIOX_STT_RT_V5: :"soniox/stt-rt-v5"
|
|
208
|
-
HUMAIN_REALTIME: :"humain/realtime"
|
|
209
|
-
RESON8_TURNS: :"reson8/turns"
|
|
210
|
-
|
|
211
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::TranscriptionSettings::FallbackModel::model]
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
64
|
type model =
|
|
216
65
|
:"deepgram/flux"
|
|
217
66
|
| :"deepgram/nova-3"
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Compute
|
|
4
|
+
class FuncLogExportConfig = Funcs::FuncLogExportConfig
|
|
5
|
+
|
|
6
|
+
module Funcs
|
|
7
|
+
type func_log_export_config =
|
|
8
|
+
{
|
|
9
|
+
id: String,
|
|
10
|
+
created_at: Time,
|
|
11
|
+
enabled: bool,
|
|
12
|
+
endpoint: String,
|
|
13
|
+
func_id: String,
|
|
14
|
+
invocation_export_enabled: bool,
|
|
15
|
+
record_type: Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type,
|
|
16
|
+
runtime_export_enabled: bool,
|
|
17
|
+
updated_at: Time
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class FuncLogExportConfig < Telnyx::Internal::Type::BaseModel
|
|
21
|
+
attr_reader id: String?
|
|
22
|
+
|
|
23
|
+
def id=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader created_at: Time?
|
|
26
|
+
|
|
27
|
+
def created_at=: (Time) -> Time
|
|
28
|
+
|
|
29
|
+
attr_reader enabled: bool?
|
|
30
|
+
|
|
31
|
+
def enabled=: (bool) -> bool
|
|
32
|
+
|
|
33
|
+
attr_reader endpoint: String?
|
|
34
|
+
|
|
35
|
+
def endpoint=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader func_id: String?
|
|
38
|
+
|
|
39
|
+
def func_id=: (String) -> String
|
|
40
|
+
|
|
41
|
+
attr_reader invocation_export_enabled: bool?
|
|
42
|
+
|
|
43
|
+
def invocation_export_enabled=: (bool) -> bool
|
|
44
|
+
|
|
45
|
+
attr_reader record_type: Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type?
|
|
46
|
+
|
|
47
|
+
def record_type=: (
|
|
48
|
+
Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type
|
|
49
|
+
) -> Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type
|
|
50
|
+
|
|
51
|
+
attr_reader runtime_export_enabled: bool?
|
|
52
|
+
|
|
53
|
+
def runtime_export_enabled=: (bool) -> bool
|
|
54
|
+
|
|
55
|
+
attr_reader updated_at: Time?
|
|
56
|
+
|
|
57
|
+
def updated_at=: (Time) -> Time
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
?id: String,
|
|
61
|
+
?created_at: Time,
|
|
62
|
+
?enabled: bool,
|
|
63
|
+
?endpoint: String,
|
|
64
|
+
?func_id: String,
|
|
65
|
+
?invocation_export_enabled: bool,
|
|
66
|
+
?record_type: Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type,
|
|
67
|
+
?runtime_export_enabled: bool,
|
|
68
|
+
?updated_at: Time
|
|
69
|
+
) -> void
|
|
70
|
+
|
|
71
|
+
def to_hash: -> {
|
|
72
|
+
id: String,
|
|
73
|
+
created_at: Time,
|
|
74
|
+
enabled: bool,
|
|
75
|
+
endpoint: String,
|
|
76
|
+
func_id: String,
|
|
77
|
+
invocation_export_enabled: bool,
|
|
78
|
+
record_type: Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type,
|
|
79
|
+
runtime_export_enabled: bool,
|
|
80
|
+
updated_at: Time
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type record_type = :compute_func_log_export_config
|
|
84
|
+
|
|
85
|
+
module RecordType
|
|
86
|
+
extend Telnyx::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
COMPUTE_FUNC_LOG_EXPORT_CONFIG: :compute_func_log_export_config
|
|
89
|
+
|
|
90
|
+
def self?.values: -> ::Array[Telnyx::Models::Compute::Funcs::FuncLogExportConfig::record_type]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|