telnyx 5.102.1 → 5.103.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +170 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +170 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +171 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +169 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +31 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +31 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models.rb +0 -14
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +5 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -19
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
- data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +355 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +340 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +56 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +51 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models.rbi +0 -14
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +6 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/sig/telnyx/models/ai/assistant_create_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +145 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +142 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +39 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +39 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models.rbs +0 -14
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- metadata +4 -58
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -39
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -33
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -72
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -44
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -30
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -32
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class UacOutbound < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias { T.any(Telnyx::UacOutbound, Telnyx::Internal::AnyHash) }
|
|
8
|
-
|
|
9
|
-
# Set a phone number as the ani_override value to override caller id number on
|
|
10
|
-
# outbound calls.
|
|
11
|
-
sig { returns(T.nilable(String)) }
|
|
12
|
-
attr_reader :ani_override
|
|
13
|
-
|
|
14
|
-
sig { params(ani_override: String).void }
|
|
15
|
-
attr_writer :ani_override
|
|
16
|
-
|
|
17
|
-
# Specifies when we apply your ani_override setting. Only applies when
|
|
18
|
-
# ani_override is not blank.
|
|
19
|
-
sig { returns(T.nilable(Telnyx::UacOutbound::AniOverrideType::OrSymbol)) }
|
|
20
|
-
attr_reader :ani_override_type
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
ani_override_type: Telnyx::UacOutbound::AniOverrideType::OrSymbol
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
27
|
-
attr_writer :ani_override_type
|
|
28
|
-
|
|
29
|
-
# Forces all SIP calls originated on this connection to be "parked" instead of
|
|
30
|
-
# "bridged" to the destination specified on the URI. Parked calls will return
|
|
31
|
-
# ringback to the caller and will await for a Call Control command to define which
|
|
32
|
-
# action will be taken next.
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_accessor :call_parking_enabled
|
|
35
|
-
|
|
36
|
-
# When set, this will limit the total number of outbound calls to phone numbers
|
|
37
|
-
# associated with this connection.
|
|
38
|
-
sig { returns(T.nilable(Integer)) }
|
|
39
|
-
attr_reader :channel_limit
|
|
40
|
-
|
|
41
|
-
sig { params(channel_limit: Integer).void }
|
|
42
|
-
attr_writer :channel_limit
|
|
43
|
-
|
|
44
|
-
# Generate ringback tone through 183 session progress message with early media.
|
|
45
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
46
|
-
attr_reader :generate_ringback_tone
|
|
47
|
-
|
|
48
|
-
sig { params(generate_ringback_tone: T::Boolean).void }
|
|
49
|
-
attr_writer :generate_ringback_tone
|
|
50
|
-
|
|
51
|
-
# When set, ringback will not wait for indication before sending ringback tone to
|
|
52
|
-
# calling party.
|
|
53
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
54
|
-
attr_reader :instant_ringback_enabled
|
|
55
|
-
|
|
56
|
-
sig { params(instant_ringback_enabled: T::Boolean).void }
|
|
57
|
-
attr_writer :instant_ringback_enabled
|
|
58
|
-
|
|
59
|
-
# A 2-character country code specifying the country whose national dialing rules
|
|
60
|
-
# should be used. For example, if set to `US` then any US number can be dialed
|
|
61
|
-
# without preprending +1 to the number. When left blank, Telnyx will try US and GB
|
|
62
|
-
# dialing rules, in that order, by default.
|
|
63
|
-
sig { returns(T.nilable(String)) }
|
|
64
|
-
attr_reader :localization
|
|
65
|
-
|
|
66
|
-
sig { params(localization: String).void }
|
|
67
|
-
attr_writer :localization
|
|
68
|
-
|
|
69
|
-
# Identifies the associated outbound voice profile.
|
|
70
|
-
sig { returns(T.nilable(String)) }
|
|
71
|
-
attr_reader :outbound_voice_profile_id
|
|
72
|
-
|
|
73
|
-
sig { params(outbound_voice_profile_id: String).void }
|
|
74
|
-
attr_writer :outbound_voice_profile_id
|
|
75
|
-
|
|
76
|
-
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
77
|
-
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
78
|
-
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
79
|
-
# expected to send the t.38 reinvite.
|
|
80
|
-
sig do
|
|
81
|
-
returns(T.nilable(Telnyx::UacOutbound::T38ReinviteSource::OrSymbol))
|
|
82
|
-
end
|
|
83
|
-
attr_reader :t38_reinvite_source
|
|
84
|
-
|
|
85
|
-
sig do
|
|
86
|
-
params(
|
|
87
|
-
t38_reinvite_source: Telnyx::UacOutbound::T38ReinviteSource::OrSymbol
|
|
88
|
-
).void
|
|
89
|
-
end
|
|
90
|
-
attr_writer :t38_reinvite_source
|
|
91
|
-
|
|
92
|
-
sig do
|
|
93
|
-
params(
|
|
94
|
-
ani_override: String,
|
|
95
|
-
ani_override_type: Telnyx::UacOutbound::AniOverrideType::OrSymbol,
|
|
96
|
-
call_parking_enabled: T.nilable(T::Boolean),
|
|
97
|
-
channel_limit: Integer,
|
|
98
|
-
generate_ringback_tone: T::Boolean,
|
|
99
|
-
instant_ringback_enabled: T::Boolean,
|
|
100
|
-
localization: String,
|
|
101
|
-
outbound_voice_profile_id: String,
|
|
102
|
-
t38_reinvite_source: Telnyx::UacOutbound::T38ReinviteSource::OrSymbol
|
|
103
|
-
).returns(T.attached_class)
|
|
104
|
-
end
|
|
105
|
-
def self.new(
|
|
106
|
-
# Set a phone number as the ani_override value to override caller id number on
|
|
107
|
-
# outbound calls.
|
|
108
|
-
ani_override: nil,
|
|
109
|
-
# Specifies when we apply your ani_override setting. Only applies when
|
|
110
|
-
# ani_override is not blank.
|
|
111
|
-
ani_override_type: nil,
|
|
112
|
-
# Forces all SIP calls originated on this connection to be "parked" instead of
|
|
113
|
-
# "bridged" to the destination specified on the URI. Parked calls will return
|
|
114
|
-
# ringback to the caller and will await for a Call Control command to define which
|
|
115
|
-
# action will be taken next.
|
|
116
|
-
call_parking_enabled: nil,
|
|
117
|
-
# When set, this will limit the total number of outbound calls to phone numbers
|
|
118
|
-
# associated with this connection.
|
|
119
|
-
channel_limit: nil,
|
|
120
|
-
# Generate ringback tone through 183 session progress message with early media.
|
|
121
|
-
generate_ringback_tone: nil,
|
|
122
|
-
# When set, ringback will not wait for indication before sending ringback tone to
|
|
123
|
-
# calling party.
|
|
124
|
-
instant_ringback_enabled: nil,
|
|
125
|
-
# A 2-character country code specifying the country whose national dialing rules
|
|
126
|
-
# should be used. For example, if set to `US` then any US number can be dialed
|
|
127
|
-
# without preprending +1 to the number. When left blank, Telnyx will try US and GB
|
|
128
|
-
# dialing rules, in that order, by default.
|
|
129
|
-
localization: nil,
|
|
130
|
-
# Identifies the associated outbound voice profile.
|
|
131
|
-
outbound_voice_profile_id: nil,
|
|
132
|
-
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
133
|
-
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
134
|
-
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
135
|
-
# expected to send the t.38 reinvite.
|
|
136
|
-
t38_reinvite_source: nil
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
sig do
|
|
141
|
-
override.returns(
|
|
142
|
-
{
|
|
143
|
-
ani_override: String,
|
|
144
|
-
ani_override_type: Telnyx::UacOutbound::AniOverrideType::OrSymbol,
|
|
145
|
-
call_parking_enabled: T.nilable(T::Boolean),
|
|
146
|
-
channel_limit: Integer,
|
|
147
|
-
generate_ringback_tone: T::Boolean,
|
|
148
|
-
instant_ringback_enabled: T::Boolean,
|
|
149
|
-
localization: String,
|
|
150
|
-
outbound_voice_profile_id: String,
|
|
151
|
-
t38_reinvite_source:
|
|
152
|
-
Telnyx::UacOutbound::T38ReinviteSource::OrSymbol
|
|
153
|
-
}
|
|
154
|
-
)
|
|
155
|
-
end
|
|
156
|
-
def to_hash
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# Specifies when we apply your ani_override setting. Only applies when
|
|
160
|
-
# ani_override is not blank.
|
|
161
|
-
module AniOverrideType
|
|
162
|
-
extend Telnyx::Internal::Type::Enum
|
|
163
|
-
|
|
164
|
-
TaggedSymbol =
|
|
165
|
-
T.type_alias { T.all(Symbol, Telnyx::UacOutbound::AniOverrideType) }
|
|
166
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
167
|
-
|
|
168
|
-
ALWAYS =
|
|
169
|
-
T.let(:always, Telnyx::UacOutbound::AniOverrideType::TaggedSymbol)
|
|
170
|
-
NORMAL =
|
|
171
|
-
T.let(:normal, Telnyx::UacOutbound::AniOverrideType::TaggedSymbol)
|
|
172
|
-
EMERGENCY =
|
|
173
|
-
T.let(:emergency, Telnyx::UacOutbound::AniOverrideType::TaggedSymbol)
|
|
174
|
-
|
|
175
|
-
sig do
|
|
176
|
-
override.returns(
|
|
177
|
-
T::Array[Telnyx::UacOutbound::AniOverrideType::TaggedSymbol]
|
|
178
|
-
)
|
|
179
|
-
end
|
|
180
|
-
def self.values
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
185
|
-
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
186
|
-
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
187
|
-
# expected to send the t.38 reinvite.
|
|
188
|
-
module T38ReinviteSource
|
|
189
|
-
extend Telnyx::Internal::Type::Enum
|
|
190
|
-
|
|
191
|
-
TaggedSymbol =
|
|
192
|
-
T.type_alias { T.all(Symbol, Telnyx::UacOutbound::T38ReinviteSource) }
|
|
193
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
194
|
-
|
|
195
|
-
TELNYX =
|
|
196
|
-
T.let(:telnyx, Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol)
|
|
197
|
-
CUSTOMER =
|
|
198
|
-
T.let(:customer, Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol)
|
|
199
|
-
DISABLED =
|
|
200
|
-
T.let(:disabled, Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol)
|
|
201
|
-
PASSTHRU =
|
|
202
|
-
T.let(:passthru, Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol)
|
|
203
|
-
CALLER_PASSTHRU =
|
|
204
|
-
T.let(
|
|
205
|
-
:"caller-passthru",
|
|
206
|
-
Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol
|
|
207
|
-
)
|
|
208
|
-
CALLEE_PASSTHRU =
|
|
209
|
-
T.let(
|
|
210
|
-
:"callee-passthru",
|
|
211
|
-
Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol
|
|
212
|
-
)
|
|
213
|
-
|
|
214
|
-
sig do
|
|
215
|
-
override.returns(
|
|
216
|
-
T::Array[Telnyx::UacOutbound::T38ReinviteSource::TaggedSymbol]
|
|
217
|
-
)
|
|
218
|
-
end
|
|
219
|
-
def self.values
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
end
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class XaiVoiceSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Telnyx::XaiVoiceSettings, Telnyx::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Voice settings provider type
|
|
12
|
-
sig { returns(Telnyx::XaiVoiceSettings::Type::OrSymbol) }
|
|
13
|
-
attr_accessor :type
|
|
14
|
-
|
|
15
|
-
# Language code, or `auto` to detect automatically.
|
|
16
|
-
sig { returns(T.nilable(String)) }
|
|
17
|
-
attr_reader :language
|
|
18
|
-
|
|
19
|
-
sig { params(language: String).void }
|
|
20
|
-
attr_writer :language
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
type: Telnyx::XaiVoiceSettings::Type::OrSymbol,
|
|
25
|
-
language: String
|
|
26
|
-
).returns(T.attached_class)
|
|
27
|
-
end
|
|
28
|
-
def self.new(
|
|
29
|
-
# Voice settings provider type
|
|
30
|
-
type:,
|
|
31
|
-
# Language code, or `auto` to detect automatically.
|
|
32
|
-
language: nil
|
|
33
|
-
)
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
sig do
|
|
37
|
-
override.returns(
|
|
38
|
-
{ type: Telnyx::XaiVoiceSettings::Type::OrSymbol, language: String }
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
def to_hash
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
# Voice settings provider type
|
|
45
|
-
module Type
|
|
46
|
-
extend Telnyx::Internal::Type::Enum
|
|
47
|
-
|
|
48
|
-
TaggedSymbol =
|
|
49
|
-
T.type_alias { T.all(Symbol, Telnyx::XaiVoiceSettings::Type) }
|
|
50
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
51
|
-
|
|
52
|
-
XAI = T.let(:xai, Telnyx::XaiVoiceSettings::Type::TaggedSymbol)
|
|
53
|
-
|
|
54
|
-
sig do
|
|
55
|
-
override.returns(
|
|
56
|
-
T::Array[Telnyx::XaiVoiceSettings::Type::TaggedSymbol]
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
def self.values
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
type assistant_integration =
|
|
5
|
-
{ integration_id: String, allowed_list: ::Array[String] }
|
|
6
|
-
|
|
7
|
-
class AssistantIntegration < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor integration_id: String
|
|
9
|
-
|
|
10
|
-
attr_reader allowed_list: ::Array[String]?
|
|
11
|
-
|
|
12
|
-
def allowed_list=: (::Array[String]) -> ::Array[String]
|
|
13
|
-
|
|
14
|
-
def initialize: (
|
|
15
|
-
integration_id: String,
|
|
16
|
-
?allowed_list: ::Array[String]
|
|
17
|
-
) -> void
|
|
18
|
-
|
|
19
|
-
def to_hash: -> {
|
|
20
|
-
integration_id: String,
|
|
21
|
-
allowed_list: ::Array[String]
|
|
22
|
-
}
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
type assistant_mcp_server = { id: String, allowed_tools: ::Array[String] }
|
|
5
|
-
|
|
6
|
-
class AssistantMcpServer < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor id: String
|
|
8
|
-
|
|
9
|
-
attr_reader allowed_tools: ::Array[String]?
|
|
10
|
-
|
|
11
|
-
def allowed_tools=: (::Array[String]) -> ::Array[String]
|
|
12
|
-
|
|
13
|
-
def initialize: (id: String, ?allowed_tools: ::Array[String]) -> void
|
|
14
|
-
|
|
15
|
-
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
module Assistants
|
|
5
|
-
type clause =
|
|
6
|
-
{
|
|
7
|
-
attribute: String,
|
|
8
|
-
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
9
|
-
values: ::Array[String]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class Clause < Telnyx::Internal::Type::BaseModel
|
|
13
|
-
attr_accessor attribute: String
|
|
14
|
-
|
|
15
|
-
attr_accessor operator: Telnyx::Models::AI::Assistants::Clause::operator
|
|
16
|
-
|
|
17
|
-
attr_accessor values: ::Array[String]
|
|
18
|
-
|
|
19
|
-
def initialize: (
|
|
20
|
-
attribute: String,
|
|
21
|
-
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
22
|
-
values: ::Array[String]
|
|
23
|
-
) -> void
|
|
24
|
-
|
|
25
|
-
def to_hash: -> {
|
|
26
|
-
attribute: String,
|
|
27
|
-
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
28
|
-
values: ::Array[String]
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type operator = :in | :not_in | :starts_with
|
|
32
|
-
|
|
33
|
-
module Operator
|
|
34
|
-
extend Telnyx::Internal::Type::Enum
|
|
35
|
-
|
|
36
|
-
IN: :in
|
|
37
|
-
NOT_IN: :not_in
|
|
38
|
-
STARTS_WITH: :starts_with
|
|
39
|
-
|
|
40
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::Assistants::Clause::operator]
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
module Assistants
|
|
5
|
-
type rollout_slot = { version_id: String, weight: Float }
|
|
6
|
-
|
|
7
|
-
class RolloutSlot < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor version_id: String
|
|
9
|
-
|
|
10
|
-
attr_accessor weight: Float
|
|
11
|
-
|
|
12
|
-
def initialize: (version_id: String, weight: Float) -> void
|
|
13
|
-
|
|
14
|
-
def to_hash: -> { version_id: String, weight: Float }
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
module Assistants
|
|
5
|
-
type rule_input =
|
|
6
|
-
{
|
|
7
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
8
|
-
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class RuleInput < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor serve: Telnyx::AI::Assistants::Serve
|
|
13
|
-
|
|
14
|
-
attr_reader match: ::Array[Telnyx::AI::Assistants::Clause]?
|
|
15
|
-
|
|
16
|
-
def match=: (
|
|
17
|
-
::Array[Telnyx::AI::Assistants::Clause]
|
|
18
|
-
) -> ::Array[Telnyx::AI::Assistants::Clause]
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
22
|
-
?match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
23
|
-
) -> void
|
|
24
|
-
|
|
25
|
-
def to_hash: -> {
|
|
26
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
27
|
-
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
28
|
-
}
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
module Assistants
|
|
5
|
-
type rule_output =
|
|
6
|
-
{
|
|
7
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
8
|
-
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class RuleOutput < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor serve: Telnyx::AI::Assistants::Serve
|
|
13
|
-
|
|
14
|
-
attr_reader match: ::Array[Telnyx::AI::Assistants::Clause]?
|
|
15
|
-
|
|
16
|
-
def match=: (
|
|
17
|
-
::Array[Telnyx::AI::Assistants::Clause]
|
|
18
|
-
) -> ::Array[Telnyx::AI::Assistants::Clause]
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
22
|
-
?match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
23
|
-
) -> void
|
|
24
|
-
|
|
25
|
-
def to_hash: -> {
|
|
26
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
27
|
-
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
28
|
-
}
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
module Assistants
|
|
5
|
-
type serve =
|
|
6
|
-
{
|
|
7
|
-
rollout: ::Array[Telnyx::AI::Assistants::RolloutSlot],
|
|
8
|
-
version_id: String
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class Serve < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_reader rollout: ::Array[Telnyx::AI::Assistants::RolloutSlot]?
|
|
13
|
-
|
|
14
|
-
def rollout=: (
|
|
15
|
-
::Array[Telnyx::AI::Assistants::RolloutSlot]
|
|
16
|
-
) -> ::Array[Telnyx::AI::Assistants::RolloutSlot]
|
|
17
|
-
|
|
18
|
-
attr_reader version_id: String?
|
|
19
|
-
|
|
20
|
-
def version_id=: (String) -> String
|
|
21
|
-
|
|
22
|
-
def initialize: (
|
|
23
|
-
?rollout: ::Array[Telnyx::AI::Assistants::RolloutSlot],
|
|
24
|
-
?version_id: String
|
|
25
|
-
) -> void
|
|
26
|
-
|
|
27
|
-
def to_hash: -> {
|
|
28
|
-
rollout: ::Array[Telnyx::AI::Assistants::RolloutSlot],
|
|
29
|
-
version_id: String
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
type inference_embedding_interruption_settings =
|
|
5
|
-
{ enable: bool, start_speaking_plan: Telnyx::AI::StartSpeakingPlan }
|
|
6
|
-
|
|
7
|
-
class InferenceEmbeddingInterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_reader enable: bool?
|
|
9
|
-
|
|
10
|
-
def enable=: (bool) -> bool
|
|
11
|
-
|
|
12
|
-
attr_reader start_speaking_plan: Telnyx::AI::StartSpeakingPlan?
|
|
13
|
-
|
|
14
|
-
def start_speaking_plan=: (
|
|
15
|
-
Telnyx::AI::StartSpeakingPlan
|
|
16
|
-
) -> Telnyx::AI::StartSpeakingPlan
|
|
17
|
-
|
|
18
|
-
def initialize: (
|
|
19
|
-
?enable: bool,
|
|
20
|
-
?start_speaking_plan: Telnyx::AI::StartSpeakingPlan
|
|
21
|
-
) -> void
|
|
22
|
-
|
|
23
|
-
def to_hash: -> {
|
|
24
|
-
enable: bool,
|
|
25
|
-
start_speaking_plan: Telnyx::AI::StartSpeakingPlan
|
|
26
|
-
}
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
type start_speaking_plan =
|
|
5
|
-
{
|
|
6
|
-
transcription_endpointing_plan: Telnyx::AI::TranscriptionEndpointingPlan,
|
|
7
|
-
wait_seconds: Float
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
11
|
-
attr_reader transcription_endpointing_plan: Telnyx::AI::TranscriptionEndpointingPlan?
|
|
12
|
-
|
|
13
|
-
def transcription_endpointing_plan=: (
|
|
14
|
-
Telnyx::AI::TranscriptionEndpointingPlan
|
|
15
|
-
) -> Telnyx::AI::TranscriptionEndpointingPlan
|
|
16
|
-
|
|
17
|
-
attr_reader wait_seconds: Float?
|
|
18
|
-
|
|
19
|
-
def wait_seconds=: (Float) -> Float
|
|
20
|
-
|
|
21
|
-
def initialize: (
|
|
22
|
-
?transcription_endpointing_plan: Telnyx::AI::TranscriptionEndpointingPlan,
|
|
23
|
-
?wait_seconds: Float
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
transcription_endpointing_plan: Telnyx::AI::TranscriptionEndpointingPlan,
|
|
28
|
-
wait_seconds: Float
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module AI
|
|
4
|
-
type transcription_endpointing_plan =
|
|
5
|
-
{
|
|
6
|
-
on_no_punctuation_seconds: Float,
|
|
7
|
-
on_number_seconds: Float,
|
|
8
|
-
on_punctuation_seconds: Float
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_reader on_no_punctuation_seconds: Float?
|
|
13
|
-
|
|
14
|
-
def on_no_punctuation_seconds=: (Float) -> Float
|
|
15
|
-
|
|
16
|
-
attr_reader on_number_seconds: Float?
|
|
17
|
-
|
|
18
|
-
def on_number_seconds=: (Float) -> Float
|
|
19
|
-
|
|
20
|
-
attr_reader on_punctuation_seconds: Float?
|
|
21
|
-
|
|
22
|
-
def on_punctuation_seconds=: (Float) -> Float
|
|
23
|
-
|
|
24
|
-
def initialize: (
|
|
25
|
-
?on_no_punctuation_seconds: Float,
|
|
26
|
-
?on_number_seconds: Float,
|
|
27
|
-
?on_punctuation_seconds: Float
|
|
28
|
-
) -> void
|
|
29
|
-
|
|
30
|
-
def to_hash: -> {
|
|
31
|
-
on_no_punctuation_seconds: Float,
|
|
32
|
-
on_number_seconds: Float,
|
|
33
|
-
on_punctuation_seconds: Float
|
|
34
|
-
}
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
module Telnyx
|
|
2
|
-
module Models
|
|
3
|
-
module Calls
|
|
4
|
-
type transcription_engine_assemblyai_config =
|
|
5
|
-
{
|
|
6
|
-
interim_results: bool,
|
|
7
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine,
|
|
8
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class TranscriptionEngineAssemblyaiConfig < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_reader interim_results: bool?
|
|
13
|
-
|
|
14
|
-
def interim_results=: (bool) -> bool
|
|
15
|
-
|
|
16
|
-
attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine?
|
|
17
|
-
|
|
18
|
-
def transcription_engine=: (
|
|
19
|
-
Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine
|
|
20
|
-
) -> Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine
|
|
21
|
-
|
|
22
|
-
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model?
|
|
23
|
-
|
|
24
|
-
def transcription_model=: (
|
|
25
|
-
Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model
|
|
26
|
-
) -> Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model
|
|
27
|
-
|
|
28
|
-
def initialize: (
|
|
29
|
-
?interim_results: bool,
|
|
30
|
-
?transcription_engine: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine,
|
|
31
|
-
?transcription_model: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model
|
|
32
|
-
) -> void
|
|
33
|
-
|
|
34
|
-
def to_hash: -> {
|
|
35
|
-
interim_results: bool,
|
|
36
|
-
transcription_engine: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine,
|
|
37
|
-
transcription_model: Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type transcription_engine = :AssemblyAI
|
|
41
|
-
|
|
42
|
-
module TranscriptionEngine
|
|
43
|
-
extend Telnyx::Internal::Type::Enum
|
|
44
|
-
|
|
45
|
-
ASSEMBLY_AI: :AssemblyAI
|
|
46
|
-
|
|
47
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_engine]
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
type transcription_model = :"assemblyai/universal-streaming"
|
|
51
|
-
|
|
52
|
-
module TranscriptionModel
|
|
53
|
-
extend Telnyx::Internal::Type::Enum
|
|
54
|
-
|
|
55
|
-
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
56
|
-
|
|
57
|
-
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::transcription_model]
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|