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,210 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class UacInbound < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute ani_number_format
|
|
7
|
-
# This setting allows you to set the format with which the caller's number (ANI)
|
|
8
|
-
# is sent for inbound phone calls.
|
|
9
|
-
#
|
|
10
|
-
# @return [Symbol, Telnyx::Models::UacInbound::AniNumberFormat, nil]
|
|
11
|
-
optional :ani_number_format, enum: -> { Telnyx::UacInbound::AniNumberFormat }
|
|
12
|
-
|
|
13
|
-
# @!attribute channel_limit
|
|
14
|
-
# When set, this will limit the total number of inbound calls to phone numbers
|
|
15
|
-
# associated with this connection.
|
|
16
|
-
#
|
|
17
|
-
# @return [Integer, nil]
|
|
18
|
-
optional :channel_limit, Integer
|
|
19
|
-
|
|
20
|
-
# @!attribute codecs
|
|
21
|
-
# Defines the list of codecs that Telnyx will send for inbound calls to a specific
|
|
22
|
-
# number on your portal account, in priority order. This only works when the
|
|
23
|
-
# Connection the number is assigned to uses Media Handling mode: default. OPUS and
|
|
24
|
-
# H.264 codecs are available only when using TCP or TLS transport for SIP.
|
|
25
|
-
#
|
|
26
|
-
# @return [Array<String>, nil]
|
|
27
|
-
optional :codecs, Telnyx::Internal::Type::ArrayOf[String]
|
|
28
|
-
|
|
29
|
-
# @!attribute default_routing_method
|
|
30
|
-
# Default routing method to be used when a number is associated with the
|
|
31
|
-
# connection. Must be one of the routing method types or left blank, other values
|
|
32
|
-
# are not allowed.
|
|
33
|
-
#
|
|
34
|
-
# @return [Symbol, Telnyx::Models::UacInbound::DefaultRoutingMethod, nil]
|
|
35
|
-
optional :default_routing_method, enum: -> { Telnyx::UacInbound::DefaultRoutingMethod }
|
|
36
|
-
|
|
37
|
-
# @!attribute dnis_number_format
|
|
38
|
-
#
|
|
39
|
-
# @return [Symbol, Telnyx::Models::UacInbound::DnisNumberFormat, nil]
|
|
40
|
-
optional :dnis_number_format, enum: -> { Telnyx::UacInbound::DnisNumberFormat }
|
|
41
|
-
|
|
42
|
-
# @!attribute generate_ringback_tone
|
|
43
|
-
# Generate ringback tone through 183 session progress message with early media.
|
|
44
|
-
#
|
|
45
|
-
# @return [Boolean, nil]
|
|
46
|
-
optional :generate_ringback_tone, Telnyx::Internal::Type::Boolean
|
|
47
|
-
|
|
48
|
-
# @!attribute isup_headers_enabled
|
|
49
|
-
# When set, inbound phone calls will receive ISUP parameters via SIP headers.
|
|
50
|
-
# (Only when available and only when using TCP or TLS transport.)
|
|
51
|
-
#
|
|
52
|
-
# @return [Boolean, nil]
|
|
53
|
-
optional :isup_headers_enabled, Telnyx::Internal::Type::Boolean
|
|
54
|
-
|
|
55
|
-
# @!attribute prack_enabled
|
|
56
|
-
# Enable PRACK messages as defined in RFC3262.
|
|
57
|
-
#
|
|
58
|
-
# @return [Boolean, nil]
|
|
59
|
-
optional :prack_enabled, Telnyx::Internal::Type::Boolean
|
|
60
|
-
|
|
61
|
-
# @!attribute shaken_stir_enabled
|
|
62
|
-
# When enabled the SIP Connection will receive the Identity header with
|
|
63
|
-
# Shaken/Stir data in the SIP INVITE message of inbound calls, even when using UDP
|
|
64
|
-
# transport.
|
|
65
|
-
#
|
|
66
|
-
# @return [Boolean, nil]
|
|
67
|
-
optional :shaken_stir_enabled, Telnyx::Internal::Type::Boolean
|
|
68
|
-
|
|
69
|
-
# @!attribute simultaneous_ringing
|
|
70
|
-
# When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
71
|
-
#
|
|
72
|
-
# @return [Symbol, Telnyx::Models::UacInbound::SimultaneousRinging, nil]
|
|
73
|
-
optional :simultaneous_ringing, enum: -> { Telnyx::UacInbound::SimultaneousRinging }
|
|
74
|
-
|
|
75
|
-
# @!attribute sip_compact_headers_enabled
|
|
76
|
-
# Defaults to true.
|
|
77
|
-
#
|
|
78
|
-
# @return [Boolean, nil]
|
|
79
|
-
optional :sip_compact_headers_enabled, Telnyx::Internal::Type::Boolean
|
|
80
|
-
|
|
81
|
-
# @!attribute sip_subdomain
|
|
82
|
-
# The Telnyx-generated SIP subdomain for this UAC connection.
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :sip_subdomain, String
|
|
86
|
-
|
|
87
|
-
# @!attribute sip_subdomain_receive_settings
|
|
88
|
-
# Controls which SIP URI callers may reach this connection.
|
|
89
|
-
#
|
|
90
|
-
# @return [Symbol, Telnyx::Models::UacInbound::SipSubdomainReceiveSettings, nil]
|
|
91
|
-
optional :sip_subdomain_receive_settings, enum: -> { Telnyx::UacInbound::SipSubdomainReceiveSettings }
|
|
92
|
-
|
|
93
|
-
# @!attribute timeout_1xx_secs
|
|
94
|
-
# Time(sec) before aborting if connection is not made.
|
|
95
|
-
#
|
|
96
|
-
# @return [Integer, nil]
|
|
97
|
-
optional :timeout_1xx_secs, Integer
|
|
98
|
-
|
|
99
|
-
# @!attribute timeout_2xx_secs
|
|
100
|
-
# Time(sec) before aborting if call is unanswered (min: 1, max: 600).
|
|
101
|
-
#
|
|
102
|
-
# @return [Integer, nil]
|
|
103
|
-
optional :timeout_2xx_secs, Integer
|
|
104
|
-
|
|
105
|
-
# @!method initialize(ani_number_format: nil, channel_limit: nil, codecs: nil, default_routing_method: nil, dnis_number_format: nil, generate_ringback_tone: nil, isup_headers_enabled: nil, prack_enabled: nil, shaken_stir_enabled: nil, simultaneous_ringing: nil, sip_compact_headers_enabled: nil, sip_subdomain: nil, sip_subdomain_receive_settings: nil, timeout_1xx_secs: nil, timeout_2xx_secs: nil)
|
|
106
|
-
# Some parameter documentations has been truncated, see
|
|
107
|
-
# {Telnyx::Models::UacInbound} for more details.
|
|
108
|
-
#
|
|
109
|
-
# @param ani_number_format [Symbol, Telnyx::Models::UacInbound::AniNumberFormat] This setting allows you to set the format with which the caller's number (ANI) i
|
|
110
|
-
#
|
|
111
|
-
# @param channel_limit [Integer] When set, this will limit the total number of inbound calls to phone numbers ass
|
|
112
|
-
#
|
|
113
|
-
# @param codecs [Array<String>] Defines the list of codecs that Telnyx will send for inbound calls to a specific
|
|
114
|
-
#
|
|
115
|
-
# @param default_routing_method [Symbol, Telnyx::Models::UacInbound::DefaultRoutingMethod] Default routing method to be used when a number is associated with the connectio
|
|
116
|
-
#
|
|
117
|
-
# @param dnis_number_format [Symbol, Telnyx::Models::UacInbound::DnisNumberFormat]
|
|
118
|
-
#
|
|
119
|
-
# @param generate_ringback_tone [Boolean] Generate ringback tone through 183 session progress message with early media.
|
|
120
|
-
#
|
|
121
|
-
# @param isup_headers_enabled [Boolean] When set, inbound phone calls will receive ISUP parameters via SIP headers. (Onl
|
|
122
|
-
#
|
|
123
|
-
# @param prack_enabled [Boolean] Enable PRACK messages as defined in RFC3262.
|
|
124
|
-
#
|
|
125
|
-
# @param shaken_stir_enabled [Boolean] When enabled the SIP Connection will receive the Identity header with Shaken/Sti
|
|
126
|
-
#
|
|
127
|
-
# @param simultaneous_ringing [Symbol, Telnyx::Models::UacInbound::SimultaneousRinging] When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
128
|
-
#
|
|
129
|
-
# @param sip_compact_headers_enabled [Boolean] Defaults to true.
|
|
130
|
-
#
|
|
131
|
-
# @param sip_subdomain [String] The Telnyx-generated SIP subdomain for this UAC connection.
|
|
132
|
-
#
|
|
133
|
-
# @param sip_subdomain_receive_settings [Symbol, Telnyx::Models::UacInbound::SipSubdomainReceiveSettings] Controls which SIP URI callers may reach this connection.
|
|
134
|
-
#
|
|
135
|
-
# @param timeout_1xx_secs [Integer] Time(sec) before aborting if connection is not made.
|
|
136
|
-
#
|
|
137
|
-
# @param timeout_2xx_secs [Integer] Time(sec) before aborting if call is unanswered (min: 1, max: 600).
|
|
138
|
-
|
|
139
|
-
# This setting allows you to set the format with which the caller's number (ANI)
|
|
140
|
-
# is sent for inbound phone calls.
|
|
141
|
-
#
|
|
142
|
-
# @see Telnyx::Models::UacInbound#ani_number_format
|
|
143
|
-
module AniNumberFormat
|
|
144
|
-
extend Telnyx::Internal::Type::Enum
|
|
145
|
-
|
|
146
|
-
PLUS_E_164 = :"+E.164"
|
|
147
|
-
E_164 = :"E.164"
|
|
148
|
-
PLUS_E_164_NATIONAL = :"+E.164-national"
|
|
149
|
-
E_164_NATIONAL = :"E.164-national"
|
|
150
|
-
|
|
151
|
-
# @!method self.values
|
|
152
|
-
# @return [Array<Symbol>]
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
# Default routing method to be used when a number is associated with the
|
|
156
|
-
# connection. Must be one of the routing method types or left blank, other values
|
|
157
|
-
# are not allowed.
|
|
158
|
-
#
|
|
159
|
-
# @see Telnyx::Models::UacInbound#default_routing_method
|
|
160
|
-
module DefaultRoutingMethod
|
|
161
|
-
extend Telnyx::Internal::Type::Enum
|
|
162
|
-
|
|
163
|
-
SEQUENTIAL = :sequential
|
|
164
|
-
ROUND_ROBIN = :"round-robin"
|
|
165
|
-
|
|
166
|
-
# @!method self.values
|
|
167
|
-
# @return [Array<Symbol>]
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# @see Telnyx::Models::UacInbound#dnis_number_format
|
|
171
|
-
module DnisNumberFormat
|
|
172
|
-
extend Telnyx::Internal::Type::Enum
|
|
173
|
-
|
|
174
|
-
PLUS_E164 = :"+e164"
|
|
175
|
-
E164 = :e164
|
|
176
|
-
NATIONAL = :national
|
|
177
|
-
SIP_USERNAME = :sip_username
|
|
178
|
-
|
|
179
|
-
# @!method self.values
|
|
180
|
-
# @return [Array<Symbol>]
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
# When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
184
|
-
#
|
|
185
|
-
# @see Telnyx::Models::UacInbound#simultaneous_ringing
|
|
186
|
-
module SimultaneousRinging
|
|
187
|
-
extend Telnyx::Internal::Type::Enum
|
|
188
|
-
|
|
189
|
-
DISABLED = :disabled
|
|
190
|
-
ENABLED = :enabled
|
|
191
|
-
|
|
192
|
-
# @!method self.values
|
|
193
|
-
# @return [Array<Symbol>]
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# Controls which SIP URI callers may reach this connection.
|
|
197
|
-
#
|
|
198
|
-
# @see Telnyx::Models::UacInbound#sip_subdomain_receive_settings
|
|
199
|
-
module SipSubdomainReceiveSettings
|
|
200
|
-
extend Telnyx::Internal::Type::Enum
|
|
201
|
-
|
|
202
|
-
ONLY_MY_CONNECTIONS = :only_my_connections
|
|
203
|
-
FROM_ANYONE = :from_anyone
|
|
204
|
-
|
|
205
|
-
# @!method self.values
|
|
206
|
-
# @return [Array<Symbol>]
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class UacInternalSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute destination_uri
|
|
7
|
-
# The SIP URI that Telnyx will call when handling an inbound request from the
|
|
8
|
-
# external peer. Do not include a `sip:` prefix. The value must be in the format
|
|
9
|
-
# `userinfo@[subdomain.]sip.telnyx.com` or
|
|
10
|
-
# `userinfo@[subdomain.]sipdev.telnyx.com`; the userinfo portion may contain only
|
|
11
|
-
# letters, digits, hyphens, and underscores.
|
|
12
|
-
#
|
|
13
|
-
# @return [String, nil]
|
|
14
|
-
optional :destination_uri, String
|
|
15
|
-
|
|
16
|
-
# @!method initialize(destination_uri: nil)
|
|
17
|
-
# Some parameter documentations has been truncated, see
|
|
18
|
-
# {Telnyx::Models::UacInternalSettings} for more details.
|
|
19
|
-
#
|
|
20
|
-
# Internal Telnyx-side settings for a UAC connection.
|
|
21
|
-
#
|
|
22
|
-
# @param destination_uri [String] The SIP URI that Telnyx will call when handling an inbound request from the exte
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class UacOutbound < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute ani_override
|
|
7
|
-
# Set a phone number as the ani_override value to override caller id number on
|
|
8
|
-
# outbound calls.
|
|
9
|
-
#
|
|
10
|
-
# @return [String, nil]
|
|
11
|
-
optional :ani_override, String
|
|
12
|
-
|
|
13
|
-
# @!attribute ani_override_type
|
|
14
|
-
# Specifies when we apply your ani_override setting. Only applies when
|
|
15
|
-
# ani_override is not blank.
|
|
16
|
-
#
|
|
17
|
-
# @return [Symbol, Telnyx::Models::UacOutbound::AniOverrideType, nil]
|
|
18
|
-
optional :ani_override_type, enum: -> { Telnyx::UacOutbound::AniOverrideType }
|
|
19
|
-
|
|
20
|
-
# @!attribute call_parking_enabled
|
|
21
|
-
# Forces all SIP calls originated on this connection to be "parked" instead of
|
|
22
|
-
# "bridged" to the destination specified on the URI. Parked calls will return
|
|
23
|
-
# ringback to the caller and will await for a Call Control command to define which
|
|
24
|
-
# action will be taken next.
|
|
25
|
-
#
|
|
26
|
-
# @return [Boolean, nil]
|
|
27
|
-
optional :call_parking_enabled, Telnyx::Internal::Type::Boolean, nil?: true
|
|
28
|
-
|
|
29
|
-
# @!attribute channel_limit
|
|
30
|
-
# When set, this will limit the total number of outbound calls to phone numbers
|
|
31
|
-
# associated with this connection.
|
|
32
|
-
#
|
|
33
|
-
# @return [Integer, nil]
|
|
34
|
-
optional :channel_limit, Integer
|
|
35
|
-
|
|
36
|
-
# @!attribute generate_ringback_tone
|
|
37
|
-
# Generate ringback tone through 183 session progress message with early media.
|
|
38
|
-
#
|
|
39
|
-
# @return [Boolean, nil]
|
|
40
|
-
optional :generate_ringback_tone, Telnyx::Internal::Type::Boolean
|
|
41
|
-
|
|
42
|
-
# @!attribute instant_ringback_enabled
|
|
43
|
-
# When set, ringback will not wait for indication before sending ringback tone to
|
|
44
|
-
# calling party.
|
|
45
|
-
#
|
|
46
|
-
# @return [Boolean, nil]
|
|
47
|
-
optional :instant_ringback_enabled, Telnyx::Internal::Type::Boolean
|
|
48
|
-
|
|
49
|
-
# @!attribute localization
|
|
50
|
-
# A 2-character country code specifying the country whose national dialing rules
|
|
51
|
-
# should be used. For example, if set to `US` then any US number can be dialed
|
|
52
|
-
# without preprending +1 to the number. When left blank, Telnyx will try US and GB
|
|
53
|
-
# dialing rules, in that order, by default.
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
optional :localization, String
|
|
57
|
-
|
|
58
|
-
# @!attribute outbound_voice_profile_id
|
|
59
|
-
# Identifies the associated outbound voice profile.
|
|
60
|
-
#
|
|
61
|
-
# @return [String, nil]
|
|
62
|
-
optional :outbound_voice_profile_id, String
|
|
63
|
-
|
|
64
|
-
# @!attribute t38_reinvite_source
|
|
65
|
-
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
66
|
-
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
67
|
-
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
68
|
-
# expected to send the t.38 reinvite.
|
|
69
|
-
#
|
|
70
|
-
# @return [Symbol, Telnyx::Models::UacOutbound::T38ReinviteSource, nil]
|
|
71
|
-
optional :t38_reinvite_source, enum: -> { Telnyx::UacOutbound::T38ReinviteSource }
|
|
72
|
-
|
|
73
|
-
# @!method initialize(ani_override: nil, ani_override_type: nil, call_parking_enabled: nil, channel_limit: nil, generate_ringback_tone: nil, instant_ringback_enabled: nil, localization: nil, outbound_voice_profile_id: nil, t38_reinvite_source: nil)
|
|
74
|
-
# Some parameter documentations has been truncated, see
|
|
75
|
-
# {Telnyx::Models::UacOutbound} for more details.
|
|
76
|
-
#
|
|
77
|
-
# @param ani_override [String] Set a phone number as the ani_override value to override caller id number on out
|
|
78
|
-
#
|
|
79
|
-
# @param ani_override_type [Symbol, Telnyx::Models::UacOutbound::AniOverrideType] Specifies when we apply your ani_override setting. Only applies when ani_overrid
|
|
80
|
-
#
|
|
81
|
-
# @param call_parking_enabled [Boolean, nil] Forces all SIP calls originated on this connection to be "parked" instead of "br
|
|
82
|
-
#
|
|
83
|
-
# @param channel_limit [Integer] When set, this will limit the total number of outbound calls to phone numbers as
|
|
84
|
-
#
|
|
85
|
-
# @param generate_ringback_tone [Boolean] Generate ringback tone through 183 session progress message with early media.
|
|
86
|
-
#
|
|
87
|
-
# @param instant_ringback_enabled [Boolean] When set, ringback will not wait for indication before sending ringback tone to
|
|
88
|
-
#
|
|
89
|
-
# @param localization [String] A 2-character country code specifying the country whose national dialing rules s
|
|
90
|
-
#
|
|
91
|
-
# @param outbound_voice_profile_id [String] Identifies the associated outbound voice profile.
|
|
92
|
-
#
|
|
93
|
-
# @param t38_reinvite_source [Symbol, Telnyx::Models::UacOutbound::T38ReinviteSource] This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
94
|
-
|
|
95
|
-
# Specifies when we apply your ani_override setting. Only applies when
|
|
96
|
-
# ani_override is not blank.
|
|
97
|
-
#
|
|
98
|
-
# @see Telnyx::Models::UacOutbound#ani_override_type
|
|
99
|
-
module AniOverrideType
|
|
100
|
-
extend Telnyx::Internal::Type::Enum
|
|
101
|
-
|
|
102
|
-
ALWAYS = :always
|
|
103
|
-
NORMAL = :normal
|
|
104
|
-
EMERGENCY = :emergency
|
|
105
|
-
|
|
106
|
-
# @!method self.values
|
|
107
|
-
# @return [Array<Symbol>]
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
111
|
-
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
112
|
-
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
113
|
-
# expected to send the t.38 reinvite.
|
|
114
|
-
#
|
|
115
|
-
# @see Telnyx::Models::UacOutbound#t38_reinvite_source
|
|
116
|
-
module T38ReinviteSource
|
|
117
|
-
extend Telnyx::Internal::Type::Enum
|
|
118
|
-
|
|
119
|
-
TELNYX = :telnyx
|
|
120
|
-
CUSTOMER = :customer
|
|
121
|
-
DISABLED = :disabled
|
|
122
|
-
PASSTHRU = :passthru
|
|
123
|
-
CALLER_PASSTHRU = :"caller-passthru"
|
|
124
|
-
CALLEE_PASSTHRU = :"callee-passthru"
|
|
125
|
-
|
|
126
|
-
# @!method self.values
|
|
127
|
-
# @return [Array<Symbol>]
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
end
|
|
131
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
class XaiVoiceSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute type
|
|
7
|
-
# Voice settings provider type
|
|
8
|
-
#
|
|
9
|
-
# @return [Symbol, Telnyx::Models::XaiVoiceSettings::Type]
|
|
10
|
-
required :type, enum: -> { Telnyx::XaiVoiceSettings::Type }
|
|
11
|
-
|
|
12
|
-
# @!attribute language
|
|
13
|
-
# Language code, or `auto` to detect automatically.
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :language, String
|
|
17
|
-
|
|
18
|
-
# @!method initialize(type:, language: nil)
|
|
19
|
-
# @param type [Symbol, Telnyx::Models::XaiVoiceSettings::Type] Voice settings provider type
|
|
20
|
-
#
|
|
21
|
-
# @param language [String] Language code, or `auto` to detect automatically.
|
|
22
|
-
|
|
23
|
-
# Voice settings provider type
|
|
24
|
-
#
|
|
25
|
-
# @see Telnyx::Models::XaiVoiceSettings#type
|
|
26
|
-
module Type
|
|
27
|
-
extend Telnyx::Internal::Type::Enum
|
|
28
|
-
|
|
29
|
-
XAI = :xai
|
|
30
|
-
|
|
31
|
-
# @!method self.values
|
|
32
|
-
# @return [Array<Symbol>]
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
class AssistantIntegration < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(Telnyx::AI::AssistantIntegration, Telnyx::Internal::AnyHash)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
13
|
-
# at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
14
|
-
# entries returned by `/ai/integrations/connections`). It is **not** the
|
|
15
|
-
# connection-level `id` from `/ai/integrations/connections`.
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :integration_id
|
|
18
|
-
|
|
19
|
-
# Optional per-assistant allowlist of integration tool names. When omitted or
|
|
20
|
-
# empty, all tools allowed by the connected integration are available to the
|
|
21
|
-
# assistant.
|
|
22
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
23
|
-
attr_reader :allowed_list
|
|
24
|
-
|
|
25
|
-
sig { params(allowed_list: T::Array[String]).void }
|
|
26
|
-
attr_writer :allowed_list
|
|
27
|
-
|
|
28
|
-
# Reference to a connected integration attached to an assistant. Discover
|
|
29
|
-
# available integrations with `/ai/integrations` and connected integrations with
|
|
30
|
-
# `/ai/integrations/connections`.
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
integration_id: String,
|
|
34
|
-
allowed_list: T::Array[String]
|
|
35
|
-
).returns(T.attached_class)
|
|
36
|
-
end
|
|
37
|
-
def self.new(
|
|
38
|
-
# Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
39
|
-
# at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
40
|
-
# entries returned by `/ai/integrations/connections`). It is **not** the
|
|
41
|
-
# connection-level `id` from `/ai/integrations/connections`.
|
|
42
|
-
integration_id:,
|
|
43
|
-
# Optional per-assistant allowlist of integration tool names. When omitted or
|
|
44
|
-
# empty, all tools allowed by the connected integration are available to the
|
|
45
|
-
# assistant.
|
|
46
|
-
allowed_list: nil
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
sig do
|
|
51
|
-
override.returns(
|
|
52
|
-
{ integration_id: String, allowed_list: T::Array[String] }
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
def to_hash
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
class AssistantMcpServer < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(Telnyx::AI::AssistantMcpServer, Telnyx::Internal::AnyHash)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
13
|
-
# by the `/ai/mcp_servers` endpoints.
|
|
14
|
-
sig { returns(String) }
|
|
15
|
-
attr_accessor :id
|
|
16
|
-
|
|
17
|
-
# Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
18
|
-
# uses the MCP server's configured `allowed_tools`.
|
|
19
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
20
|
-
attr_reader :allowed_tools
|
|
21
|
-
|
|
22
|
-
sig { params(allowed_tools: T::Array[String]).void }
|
|
23
|
-
attr_writer :allowed_tools
|
|
24
|
-
|
|
25
|
-
# Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
26
|
-
# servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
27
|
-
# ID.
|
|
28
|
-
sig do
|
|
29
|
-
params(id: String, allowed_tools: T::Array[String]).returns(
|
|
30
|
-
T.attached_class
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
def self.new(
|
|
34
|
-
# ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
35
|
-
# by the `/ai/mcp_servers` endpoints.
|
|
36
|
-
id:,
|
|
37
|
-
# Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
38
|
-
# uses the MCP server's configured `allowed_tools`.
|
|
39
|
-
allowed_tools: nil
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
sig do
|
|
44
|
-
override.returns({ id: String, allowed_tools: T::Array[String] })
|
|
45
|
-
end
|
|
46
|
-
def to_hash
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
module Assistants
|
|
7
|
-
class Clause < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(Telnyx::AI::Assistants::Clause, Telnyx::Internal::AnyHash)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
# Attribute name from the routing context
|
|
14
|
-
sig { returns(String) }
|
|
15
|
-
attr_accessor :attribute
|
|
16
|
-
|
|
17
|
-
# Match operator
|
|
18
|
-
sig { returns(Telnyx::AI::Assistants::Clause::Operator::OrSymbol) }
|
|
19
|
-
attr_accessor :operator
|
|
20
|
-
|
|
21
|
-
sig { returns(T::Array[String]) }
|
|
22
|
-
attr_accessor :values
|
|
23
|
-
|
|
24
|
-
# A single attribute/operator/values check.
|
|
25
|
-
#
|
|
26
|
-
# A clause matches when the routing context's value for `attribute` satisfies
|
|
27
|
-
# `operator` against any of `values`.
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
attribute: String,
|
|
31
|
-
operator: Telnyx::AI::Assistants::Clause::Operator::OrSymbol,
|
|
32
|
-
values: T::Array[String]
|
|
33
|
-
).returns(T.attached_class)
|
|
34
|
-
end
|
|
35
|
-
def self.new(
|
|
36
|
-
# Attribute name from the routing context
|
|
37
|
-
attribute:,
|
|
38
|
-
# Match operator
|
|
39
|
-
operator:,
|
|
40
|
-
values:
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
override.returns(
|
|
46
|
-
{
|
|
47
|
-
attribute: String,
|
|
48
|
-
operator: Telnyx::AI::Assistants::Clause::Operator::OrSymbol,
|
|
49
|
-
values: T::Array[String]
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
def to_hash
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Match operator
|
|
57
|
-
module Operator
|
|
58
|
-
extend Telnyx::Internal::Type::Enum
|
|
59
|
-
|
|
60
|
-
TaggedSymbol =
|
|
61
|
-
T.type_alias do
|
|
62
|
-
T.all(Symbol, Telnyx::AI::Assistants::Clause::Operator)
|
|
63
|
-
end
|
|
64
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
65
|
-
|
|
66
|
-
IN =
|
|
67
|
-
T.let(:in, Telnyx::AI::Assistants::Clause::Operator::TaggedSymbol)
|
|
68
|
-
NOT_IN =
|
|
69
|
-
T.let(
|
|
70
|
-
:not_in,
|
|
71
|
-
Telnyx::AI::Assistants::Clause::Operator::TaggedSymbol
|
|
72
|
-
)
|
|
73
|
-
STARTS_WITH =
|
|
74
|
-
T.let(
|
|
75
|
-
:starts_with,
|
|
76
|
-
Telnyx::AI::Assistants::Clause::Operator::TaggedSymbol
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
sig do
|
|
80
|
-
override.returns(
|
|
81
|
-
T::Array[Telnyx::AI::Assistants::Clause::Operator::TaggedSymbol]
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
def self.values
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
module Assistants
|
|
7
|
-
class RolloutSlot < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Telnyx::AI::Assistants::RolloutSlot,
|
|
12
|
-
Telnyx::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :version_id
|
|
18
|
-
|
|
19
|
-
sig { returns(Float) }
|
|
20
|
-
attr_accessor :weight
|
|
21
|
-
|
|
22
|
-
# One slot in a percentage rollout.
|
|
23
|
-
sig do
|
|
24
|
-
params(version_id: String, weight: Float).returns(T.attached_class)
|
|
25
|
-
end
|
|
26
|
-
def self.new(version_id:, weight:)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
sig { override.returns({ version_id: String, weight: Float }) }
|
|
30
|
-
def to_hash
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|