telnyx 5.111.0 → 5.112.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +178 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +178 -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/update_assistant.rb +179 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +177 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +210 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +210 -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/action_start_conversation_relay_params.rb +491 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
- 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/network_list_interfaces_response.rb +2 -112
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +10 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +8 -3
- 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/virtual_cross_connect_create_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +10 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_create_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_list_response.rb +10 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +8 -3
- data/lib/telnyx/models.rb +0 -20
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- 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 +101 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +8 -22
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +352 -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/update_assistant.rbi +366 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +351 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +315 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +310 -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/action_start_conversation_relay_params.rbi +1075 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
- 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/network_list_interfaces_response.rbi +4 -181
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +23 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +38 -6
- 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/virtual_cross_connect_create_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +23 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +23 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +36 -6
- data/rbi/telnyx/models.rbi +0 -20
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- 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 +152 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +149 -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/update_assistant.rbs +152 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +149 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +149 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +149 -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/action_start_conversation_relay_params.rbs +416 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
- 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/network_list_interfaces_response.rbs +4 -106
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +11 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +18 -6
- 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/virtual_cross_connect_create_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +11 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +11 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +18 -6
- data/sig/telnyx/models.rbs +0 -20
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +29 -0
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +26 -68
- 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 -47
- 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 -212
- data/lib/telnyx/models/public_internet_gateway_read.rb +0 -83
- 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/virtual_cross_connect_combined.rb +0 -212
- data/lib/telnyx/models/wireguard_interface_read.rb +0 -136
- 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 -83
- 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 -272
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +0 -128
- 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/virtual_cross_connect_combined.rbi +0 -345
- data/rbi/telnyx/models/wireguard_interface_read.rbi +0 -213
- 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 -40
- 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 -142
- data/sig/telnyx/models/public_internet_gateway_read.rbs +0 -80
- 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/virtual_cross_connect_combined.rbs +0 -190
- data/sig/telnyx/models/wireguard_interface_read.rbs +0 -127
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
# @see Telnyx::Resources::WireguardInterfaces#list
|
|
6
|
-
class WireguardInterfaceRead < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute enable_sip_trunking
|
|
8
|
-
# Enable SIP traffic forwarding over VPN interface.
|
|
9
|
-
#
|
|
10
|
-
# @return [Boolean, nil]
|
|
11
|
-
optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
|
|
12
|
-
|
|
13
|
-
# @!attribute name
|
|
14
|
-
# A user specified name for the interface.
|
|
15
|
-
#
|
|
16
|
-
# @return [String, nil]
|
|
17
|
-
optional :name, String
|
|
18
|
-
|
|
19
|
-
# @!attribute network_id
|
|
20
|
-
# The id of the network associated with the interface.
|
|
21
|
-
#
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
optional :network_id, String
|
|
24
|
-
|
|
25
|
-
# @!attribute region
|
|
26
|
-
#
|
|
27
|
-
# @return [Telnyx::Models::WireguardInterfaceRead::Region, nil]
|
|
28
|
-
optional :region, -> { Telnyx::WireguardInterfaceRead::Region }
|
|
29
|
-
|
|
30
|
-
# @!attribute region_code
|
|
31
|
-
# The region interface is deployed to.
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :region_code, String
|
|
35
|
-
|
|
36
|
-
response_only do
|
|
37
|
-
# @!attribute id
|
|
38
|
-
# Identifies the resource.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :id, String
|
|
42
|
-
|
|
43
|
-
# @!attribute created_at
|
|
44
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :created_at, String
|
|
48
|
-
|
|
49
|
-
# @!attribute endpoint
|
|
50
|
-
# The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :endpoint, String
|
|
54
|
-
|
|
55
|
-
# @!attribute public_key
|
|
56
|
-
# The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
57
|
-
#
|
|
58
|
-
# @return [String, nil]
|
|
59
|
-
optional :public_key, String
|
|
60
|
-
|
|
61
|
-
# @!attribute record_type
|
|
62
|
-
# Identifies the type of the resource.
|
|
63
|
-
#
|
|
64
|
-
# @return [String, nil]
|
|
65
|
-
optional :record_type, String
|
|
66
|
-
|
|
67
|
-
# @!attribute status
|
|
68
|
-
# The current status of the interface deployment.
|
|
69
|
-
#
|
|
70
|
-
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
71
|
-
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
72
|
-
|
|
73
|
-
# @!attribute updated_at
|
|
74
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
75
|
-
#
|
|
76
|
-
# @return [String, nil]
|
|
77
|
-
optional :updated_at, String
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# @!method initialize(id: nil, created_at: nil, enable_sip_trunking: nil, endpoint: nil, name: nil, network_id: nil, public_key: nil, record_type: nil, region: nil, region_code: nil, status: nil, updated_at: nil)
|
|
81
|
-
# @param id [String] Identifies the resource.
|
|
82
|
-
#
|
|
83
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
84
|
-
#
|
|
85
|
-
# @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
|
|
86
|
-
#
|
|
87
|
-
# @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
88
|
-
#
|
|
89
|
-
# @param name [String] A user specified name for the interface.
|
|
90
|
-
#
|
|
91
|
-
# @param network_id [String] The id of the network associated with the interface.
|
|
92
|
-
#
|
|
93
|
-
# @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
94
|
-
#
|
|
95
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
96
|
-
#
|
|
97
|
-
# @param region [Telnyx::Models::WireguardInterfaceRead::Region]
|
|
98
|
-
#
|
|
99
|
-
# @param region_code [String] The region interface is deployed to.
|
|
100
|
-
#
|
|
101
|
-
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
102
|
-
#
|
|
103
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
104
|
-
|
|
105
|
-
# @see Telnyx::Models::WireguardInterfaceRead#region
|
|
106
|
-
class Region < Telnyx::Internal::Type::BaseModel
|
|
107
|
-
# @!attribute code
|
|
108
|
-
# Region code of the interface.
|
|
109
|
-
#
|
|
110
|
-
# @return [String, nil]
|
|
111
|
-
optional :code, String
|
|
112
|
-
|
|
113
|
-
# @!attribute name
|
|
114
|
-
# Region name of the interface.
|
|
115
|
-
#
|
|
116
|
-
# @return [String, nil]
|
|
117
|
-
optional :name, String
|
|
118
|
-
|
|
119
|
-
response_only do
|
|
120
|
-
# @!attribute record_type
|
|
121
|
-
# Identifies the type of the resource.
|
|
122
|
-
#
|
|
123
|
-
# @return [String, nil]
|
|
124
|
-
optional :record_type, String
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# @!method initialize(code: nil, name: nil, record_type: nil)
|
|
128
|
-
# @param code [String] Region code of the interface.
|
|
129
|
-
#
|
|
130
|
-
# @param name [String] Region name of the interface.
|
|
131
|
-
#
|
|
132
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
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
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
module Assistants
|
|
7
|
-
class RuleInput < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Telnyx::AI::Assistants::RuleInput,
|
|
12
|
-
Telnyx::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# What a rule serves when matched.
|
|
17
|
-
#
|
|
18
|
-
# Exactly one of:
|
|
19
|
-
#
|
|
20
|
-
# - `version_id` — serve a specific version
|
|
21
|
-
# - `rollout` — weighted random across versions; weights must sum to less than
|
|
22
|
-
# 100, with the leftover routing to the main version
|
|
23
|
-
sig { returns(Telnyx::AI::Assistants::Serve) }
|
|
24
|
-
attr_reader :serve
|
|
25
|
-
|
|
26
|
-
sig { params(serve: Telnyx::AI::Assistants::Serve::OrHash).void }
|
|
27
|
-
attr_writer :serve
|
|
28
|
-
|
|
29
|
-
sig { returns(T.nilable(T::Array[Telnyx::AI::Assistants::Clause])) }
|
|
30
|
-
attr_reader :match
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(match: T::Array[Telnyx::AI::Assistants::Clause::OrHash]).void
|
|
34
|
-
end
|
|
35
|
-
attr_writer :match
|
|
36
|
-
|
|
37
|
-
# A targeting rule: `match` clauses (AND) gate `serve`.
|
|
38
|
-
#
|
|
39
|
-
# An empty `match` is a catch-all (always fires).
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
serve: Telnyx::AI::Assistants::Serve::OrHash,
|
|
43
|
-
match: T::Array[Telnyx::AI::Assistants::Clause::OrHash]
|
|
44
|
-
).returns(T.attached_class)
|
|
45
|
-
end
|
|
46
|
-
def self.new(
|
|
47
|
-
# What a rule serves when matched.
|
|
48
|
-
#
|
|
49
|
-
# Exactly one of:
|
|
50
|
-
#
|
|
51
|
-
# - `version_id` — serve a specific version
|
|
52
|
-
# - `rollout` — weighted random across versions; weights must sum to less than
|
|
53
|
-
# 100, with the leftover routing to the main version
|
|
54
|
-
serve:,
|
|
55
|
-
match: nil
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
override.returns(
|
|
61
|
-
{
|
|
62
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
63
|
-
match: T::Array[Telnyx::AI::Assistants::Clause]
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
def to_hash
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
module Assistants
|
|
7
|
-
class RuleOutput < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Telnyx::AI::Assistants::RuleOutput,
|
|
12
|
-
Telnyx::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# What a rule serves when matched.
|
|
17
|
-
#
|
|
18
|
-
# Exactly one of:
|
|
19
|
-
#
|
|
20
|
-
# - `version_id` — serve a specific version
|
|
21
|
-
# - `rollout` — weighted random across versions; weights must sum to less than
|
|
22
|
-
# 100, with the leftover routing to the main version
|
|
23
|
-
sig { returns(Telnyx::AI::Assistants::Serve) }
|
|
24
|
-
attr_reader :serve
|
|
25
|
-
|
|
26
|
-
sig { params(serve: Telnyx::AI::Assistants::Serve::OrHash).void }
|
|
27
|
-
attr_writer :serve
|
|
28
|
-
|
|
29
|
-
sig { returns(T.nilable(T::Array[Telnyx::AI::Assistants::Clause])) }
|
|
30
|
-
attr_reader :match
|
|
31
|
-
|
|
32
|
-
sig do
|
|
33
|
-
params(match: T::Array[Telnyx::AI::Assistants::Clause::OrHash]).void
|
|
34
|
-
end
|
|
35
|
-
attr_writer :match
|
|
36
|
-
|
|
37
|
-
# A targeting rule: `match` clauses (AND) gate `serve`.
|
|
38
|
-
#
|
|
39
|
-
# An empty `match` is a catch-all (always fires).
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
serve: Telnyx::AI::Assistants::Serve::OrHash,
|
|
43
|
-
match: T::Array[Telnyx::AI::Assistants::Clause::OrHash]
|
|
44
|
-
).returns(T.attached_class)
|
|
45
|
-
end
|
|
46
|
-
def self.new(
|
|
47
|
-
# What a rule serves when matched.
|
|
48
|
-
#
|
|
49
|
-
# Exactly one of:
|
|
50
|
-
#
|
|
51
|
-
# - `version_id` — serve a specific version
|
|
52
|
-
# - `rollout` — weighted random across versions; weights must sum to less than
|
|
53
|
-
# 100, with the leftover routing to the main version
|
|
54
|
-
serve:,
|
|
55
|
-
match: nil
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
override.returns(
|
|
61
|
-
{
|
|
62
|
-
serve: Telnyx::AI::Assistants::Serve,
|
|
63
|
-
match: T::Array[Telnyx::AI::Assistants::Clause]
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
def to_hash
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
module Assistants
|
|
7
|
-
class Serve < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(Telnyx::AI::Assistants::Serve, Telnyx::Internal::AnyHash)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
sig do
|
|
14
|
-
returns(T.nilable(T::Array[Telnyx::AI::Assistants::RolloutSlot]))
|
|
15
|
-
end
|
|
16
|
-
attr_reader :rollout
|
|
17
|
-
|
|
18
|
-
sig do
|
|
19
|
-
params(
|
|
20
|
-
rollout: T::Array[Telnyx::AI::Assistants::RolloutSlot::OrHash]
|
|
21
|
-
).void
|
|
22
|
-
end
|
|
23
|
-
attr_writer :rollout
|
|
24
|
-
|
|
25
|
-
sig { returns(T.nilable(String)) }
|
|
26
|
-
attr_reader :version_id
|
|
27
|
-
|
|
28
|
-
sig { params(version_id: String).void }
|
|
29
|
-
attr_writer :version_id
|
|
30
|
-
|
|
31
|
-
# What a rule serves when matched.
|
|
32
|
-
#
|
|
33
|
-
# Exactly one of:
|
|
34
|
-
#
|
|
35
|
-
# - `version_id` — serve a specific version
|
|
36
|
-
# - `rollout` — weighted random across versions; weights must sum to less than
|
|
37
|
-
# 100, with the leftover routing to the main version
|
|
38
|
-
sig do
|
|
39
|
-
params(
|
|
40
|
-
rollout: T::Array[Telnyx::AI::Assistants::RolloutSlot::OrHash],
|
|
41
|
-
version_id: String
|
|
42
|
-
).returns(T.attached_class)
|
|
43
|
-
end
|
|
44
|
-
def self.new(rollout: nil, version_id: nil)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig do
|
|
48
|
-
override.returns(
|
|
49
|
-
{
|
|
50
|
-
rollout: T::Array[Telnyx::AI::Assistants::RolloutSlot],
|
|
51
|
-
version_id: String
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
def to_hash
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|