telnyx 5.110.1 → 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 +16 -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/texml_initiate_ai_call_params.rb +30 -19
- 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/texml.rb +18 -7
- 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/texml_initiate_ai_call_params.rbi +42 -22
- 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/texml.rbi +30 -10
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class NetworkListInterfacesResponse < Telnyx::
|
|
5
|
+
class NetworkListInterfacesResponse < Telnyx::Models::Record
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
@@ -11,190 +11,13 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
attr_reader :name
|
|
17
|
-
|
|
18
|
-
sig { params(name: String).void }
|
|
19
|
-
attr_writer :name
|
|
20
|
-
|
|
21
|
-
# The id of the network associated with the interface.
|
|
22
|
-
sig { returns(T.nilable(String)) }
|
|
23
|
-
attr_reader :network_id
|
|
24
|
-
|
|
25
|
-
sig { params(network_id: String).void }
|
|
26
|
-
attr_writer :network_id
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
returns(
|
|
30
|
-
T.nilable(Telnyx::Models::NetworkListInterfacesResponse::Region)
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
attr_reader :region
|
|
34
|
-
|
|
35
|
-
sig do
|
|
36
|
-
params(
|
|
37
|
-
region: Telnyx::Models::NetworkListInterfacesResponse::Region::OrHash
|
|
38
|
-
).void
|
|
14
|
+
sig { returns(T.attached_class) }
|
|
15
|
+
def self.new
|
|
39
16
|
end
|
|
40
|
-
attr_writer :region
|
|
41
|
-
|
|
42
|
-
# The region interface is deployed to.
|
|
43
|
-
sig { returns(T.nilable(String)) }
|
|
44
|
-
attr_reader :region_code
|
|
45
|
-
|
|
46
|
-
sig { params(region_code: String).void }
|
|
47
|
-
attr_writer :region_code
|
|
48
|
-
|
|
49
|
-
# Identifies the resource.
|
|
50
|
-
sig { returns(T.nilable(String)) }
|
|
51
|
-
attr_reader :id
|
|
52
|
-
|
|
53
|
-
sig { params(id: String).void }
|
|
54
|
-
attr_writer :id
|
|
55
|
-
|
|
56
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
57
|
-
sig { returns(T.nilable(String)) }
|
|
58
|
-
attr_reader :created_at
|
|
59
|
-
|
|
60
|
-
sig { params(created_at: String).void }
|
|
61
|
-
attr_writer :created_at
|
|
62
|
-
|
|
63
|
-
# Identifies the type of the resource.
|
|
64
|
-
sig { returns(T.nilable(String)) }
|
|
65
|
-
attr_reader :record_type
|
|
66
|
-
|
|
67
|
-
sig { params(record_type: String).void }
|
|
68
|
-
attr_writer :record_type
|
|
69
|
-
|
|
70
|
-
# The current status of the interface deployment.
|
|
71
|
-
sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
|
|
72
|
-
attr_reader :status
|
|
73
|
-
|
|
74
|
-
sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
|
|
75
|
-
attr_writer :status
|
|
76
|
-
|
|
77
|
-
# Identifies the type of the interface.
|
|
78
|
-
sig { returns(T.nilable(String)) }
|
|
79
|
-
attr_reader :type
|
|
80
|
-
|
|
81
|
-
sig { params(type: String).void }
|
|
82
|
-
attr_writer :type
|
|
83
|
-
|
|
84
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
85
|
-
sig { returns(T.nilable(String)) }
|
|
86
|
-
attr_reader :updated_at
|
|
87
|
-
|
|
88
|
-
sig { params(updated_at: String).void }
|
|
89
|
-
attr_writer :updated_at
|
|
90
17
|
|
|
91
|
-
sig
|
|
92
|
-
params(
|
|
93
|
-
id: String,
|
|
94
|
-
created_at: String,
|
|
95
|
-
name: String,
|
|
96
|
-
network_id: String,
|
|
97
|
-
record_type: String,
|
|
98
|
-
region: Telnyx::Models::NetworkListInterfacesResponse::Region::OrHash,
|
|
99
|
-
region_code: String,
|
|
100
|
-
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
101
|
-
type: String,
|
|
102
|
-
updated_at: String
|
|
103
|
-
).returns(T.attached_class)
|
|
104
|
-
end
|
|
105
|
-
def self.new(
|
|
106
|
-
# Identifies the resource.
|
|
107
|
-
id: nil,
|
|
108
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
109
|
-
created_at: nil,
|
|
110
|
-
# A user specified name for the interface.
|
|
111
|
-
name: nil,
|
|
112
|
-
# The id of the network associated with the interface.
|
|
113
|
-
network_id: nil,
|
|
114
|
-
# Identifies the type of the resource.
|
|
115
|
-
record_type: nil,
|
|
116
|
-
region: nil,
|
|
117
|
-
# The region interface is deployed to.
|
|
118
|
-
region_code: nil,
|
|
119
|
-
# The current status of the interface deployment.
|
|
120
|
-
status: nil,
|
|
121
|
-
# Identifies the type of the interface.
|
|
122
|
-
type: nil,
|
|
123
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
124
|
-
updated_at: nil
|
|
125
|
-
)
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
sig do
|
|
129
|
-
override.returns(
|
|
130
|
-
{
|
|
131
|
-
id: String,
|
|
132
|
-
created_at: String,
|
|
133
|
-
name: String,
|
|
134
|
-
network_id: String,
|
|
135
|
-
record_type: String,
|
|
136
|
-
region: Telnyx::Models::NetworkListInterfacesResponse::Region,
|
|
137
|
-
region_code: String,
|
|
138
|
-
status: Telnyx::InterfaceStatus::TaggedSymbol,
|
|
139
|
-
type: String,
|
|
140
|
-
updated_at: String
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
end
|
|
18
|
+
sig { override.returns({}) }
|
|
144
19
|
def to_hash
|
|
145
20
|
end
|
|
146
|
-
|
|
147
|
-
class Region < Telnyx::Internal::Type::BaseModel
|
|
148
|
-
OrHash =
|
|
149
|
-
T.type_alias do
|
|
150
|
-
T.any(
|
|
151
|
-
Telnyx::Models::NetworkListInterfacesResponse::Region,
|
|
152
|
-
Telnyx::Internal::AnyHash
|
|
153
|
-
)
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
# Region code of the interface.
|
|
157
|
-
sig { returns(T.nilable(String)) }
|
|
158
|
-
attr_reader :code
|
|
159
|
-
|
|
160
|
-
sig { params(code: String).void }
|
|
161
|
-
attr_writer :code
|
|
162
|
-
|
|
163
|
-
# Region name of the interface.
|
|
164
|
-
sig { returns(T.nilable(String)) }
|
|
165
|
-
attr_reader :name
|
|
166
|
-
|
|
167
|
-
sig { params(name: String).void }
|
|
168
|
-
attr_writer :name
|
|
169
|
-
|
|
170
|
-
# Identifies the type of the resource.
|
|
171
|
-
sig { returns(T.nilable(String)) }
|
|
172
|
-
attr_reader :record_type
|
|
173
|
-
|
|
174
|
-
sig { params(record_type: String).void }
|
|
175
|
-
attr_writer :record_type
|
|
176
|
-
|
|
177
|
-
sig do
|
|
178
|
-
params(code: String, name: String, record_type: String).returns(
|
|
179
|
-
T.attached_class
|
|
180
|
-
)
|
|
181
|
-
end
|
|
182
|
-
def self.new(
|
|
183
|
-
# Region code of the interface.
|
|
184
|
-
code: nil,
|
|
185
|
-
# Region name of the interface.
|
|
186
|
-
name: nil,
|
|
187
|
-
# Identifies the type of the resource.
|
|
188
|
-
record_type: nil
|
|
189
|
-
)
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
sig do
|
|
193
|
-
override.returns({ code: String, name: String, record_type: String })
|
|
194
|
-
end
|
|
195
|
-
def to_hash
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
21
|
end
|
|
199
22
|
end
|
|
200
23
|
end
|
|
@@ -11,23 +11,55 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
T.nilable(Telnyx::Models::PublicInternetGatewayCreateResponse::Data)
|
|
17
|
+
)
|
|
18
|
+
end
|
|
15
19
|
attr_reader :data
|
|
16
20
|
|
|
17
|
-
sig
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
data:
|
|
24
|
+
Telnyx::Models::PublicInternetGatewayCreateResponse::Data::OrHash
|
|
25
|
+
).void
|
|
26
|
+
end
|
|
18
27
|
attr_writer :data
|
|
19
28
|
|
|
20
29
|
sig do
|
|
21
|
-
params(
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
params(
|
|
31
|
+
data:
|
|
32
|
+
Telnyx::Models::PublicInternetGatewayCreateResponse::Data::OrHash
|
|
33
|
+
).returns(T.attached_class)
|
|
24
34
|
end
|
|
25
35
|
def self.new(data: nil)
|
|
26
36
|
end
|
|
27
37
|
|
|
28
|
-
sig
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{ data: Telnyx::Models::PublicInternetGatewayCreateResponse::Data }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
29
43
|
def to_hash
|
|
30
44
|
end
|
|
45
|
+
|
|
46
|
+
class Data < Telnyx::Models::Record
|
|
47
|
+
OrHash =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.any(
|
|
50
|
+
Telnyx::Models::PublicInternetGatewayCreateResponse::Data,
|
|
51
|
+
Telnyx::Internal::AnyHash
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { returns(T.attached_class) }
|
|
56
|
+
def self.new
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { override.returns({}) }
|
|
60
|
+
def to_hash
|
|
61
|
+
end
|
|
62
|
+
end
|
|
31
63
|
end
|
|
32
64
|
end
|
|
33
65
|
end
|
|
@@ -11,23 +11,55 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
T.nilable(Telnyx::Models::PublicInternetGatewayDeleteResponse::Data)
|
|
17
|
+
)
|
|
18
|
+
end
|
|
15
19
|
attr_reader :data
|
|
16
20
|
|
|
17
|
-
sig
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
data:
|
|
24
|
+
Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::OrHash
|
|
25
|
+
).void
|
|
26
|
+
end
|
|
18
27
|
attr_writer :data
|
|
19
28
|
|
|
20
29
|
sig do
|
|
21
|
-
params(
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
params(
|
|
31
|
+
data:
|
|
32
|
+
Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::OrHash
|
|
33
|
+
).returns(T.attached_class)
|
|
24
34
|
end
|
|
25
35
|
def self.new(data: nil)
|
|
26
36
|
end
|
|
27
37
|
|
|
28
|
-
sig
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{ data: Telnyx::Models::PublicInternetGatewayDeleteResponse::Data }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
29
43
|
def to_hash
|
|
30
44
|
end
|
|
45
|
+
|
|
46
|
+
class Data < Telnyx::Models::Record
|
|
47
|
+
OrHash =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.any(
|
|
50
|
+
Telnyx::Models::PublicInternetGatewayDeleteResponse::Data,
|
|
51
|
+
Telnyx::Internal::AnyHash
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { returns(T.attached_class) }
|
|
56
|
+
def self.new
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { override.returns({}) }
|
|
60
|
+
def to_hash
|
|
61
|
+
end
|
|
62
|
+
end
|
|
31
63
|
end
|
|
32
64
|
end
|
|
33
65
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class PublicInternetGatewayListResponse < Telnyx::Models::Record
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::Models::PublicInternetGatewayListResponse,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(T.attached_class) }
|
|
15
|
+
def self.new
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { override.returns({}) }
|
|
19
|
+
def to_hash
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -11,23 +11,55 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
14
|
+
sig do
|
|
15
|
+
returns(
|
|
16
|
+
T.nilable(Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data)
|
|
17
|
+
)
|
|
18
|
+
end
|
|
15
19
|
attr_reader :data
|
|
16
20
|
|
|
17
|
-
sig
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
data:
|
|
24
|
+
Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::OrHash
|
|
25
|
+
).void
|
|
26
|
+
end
|
|
18
27
|
attr_writer :data
|
|
19
28
|
|
|
20
29
|
sig do
|
|
21
|
-
params(
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
params(
|
|
31
|
+
data:
|
|
32
|
+
Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::OrHash
|
|
33
|
+
).returns(T.attached_class)
|
|
24
34
|
end
|
|
25
35
|
def self.new(data: nil)
|
|
26
36
|
end
|
|
27
37
|
|
|
28
|
-
sig
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{ data: Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
29
43
|
def to_hash
|
|
30
44
|
end
|
|
45
|
+
|
|
46
|
+
class Data < Telnyx::Models::Record
|
|
47
|
+
OrHash =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.any(
|
|
50
|
+
Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data,
|
|
51
|
+
Telnyx::Internal::AnyHash
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { returns(T.attached_class) }
|
|
56
|
+
def self.new
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { override.returns({}) }
|
|
60
|
+
def to_hash
|
|
61
|
+
end
|
|
62
|
+
end
|
|
31
63
|
end
|
|
32
64
|
end
|
|
33
65
|
end
|
|
@@ -87,14 +87,15 @@ module Telnyx
|
|
|
87
87
|
sig { params(caller_id: String).void }
|
|
88
88
|
attr_writer :caller_id
|
|
89
89
|
|
|
90
|
-
# URL destination for Telnyx to send conversation callback events
|
|
90
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
91
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
91
92
|
sig { returns(T.nilable(String)) }
|
|
92
93
|
attr_reader :conversation_callback
|
|
93
94
|
|
|
94
95
|
sig { params(conversation_callback: String).void }
|
|
95
96
|
attr_writer :conversation_callback
|
|
96
97
|
|
|
97
|
-
# HTTP request type used for `ConversationCallback`.
|
|
98
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
98
99
|
sig do
|
|
99
100
|
returns(
|
|
100
101
|
T.nilable(
|
|
@@ -112,7 +113,8 @@ module Telnyx
|
|
|
112
113
|
end
|
|
113
114
|
attr_writer :conversation_callback_method
|
|
114
115
|
|
|
115
|
-
#
|
|
116
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
117
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
116
118
|
sig { returns(T.nilable(T::Array[String])) }
|
|
117
119
|
attr_reader :conversation_callbacks
|
|
118
120
|
|
|
@@ -335,23 +337,29 @@ module Telnyx
|
|
|
335
337
|
end
|
|
336
338
|
attr_writer :sip_region
|
|
337
339
|
|
|
338
|
-
# URL destination for Telnyx to send status callback events
|
|
340
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
341
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
342
|
+
# the TeXML application/connection.
|
|
339
343
|
sig { returns(T.nilable(String)) }
|
|
340
344
|
attr_reader :status_callback
|
|
341
345
|
|
|
342
346
|
sig { params(status_callback: String).void }
|
|
343
347
|
attr_writer :status_callback
|
|
344
348
|
|
|
345
|
-
# The
|
|
346
|
-
# defined when separated by a space. Valid values:
|
|
347
|
-
# completed
|
|
349
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
350
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
351
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
352
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
353
|
+
# events configured on the TeXML application/connection.
|
|
348
354
|
sig { returns(T.nilable(String)) }
|
|
349
355
|
attr_reader :status_callback_event
|
|
350
356
|
|
|
351
357
|
sig { params(status_callback_event: String).void }
|
|
352
358
|
attr_writer :status_callback_event
|
|
353
359
|
|
|
354
|
-
# HTTP request type used for `StatusCallback
|
|
360
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
361
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
362
|
+
# configured on the TeXML application/connection.
|
|
355
363
|
sig do
|
|
356
364
|
returns(
|
|
357
365
|
T.nilable(
|
|
@@ -369,8 +377,9 @@ module Telnyx
|
|
|
369
377
|
end
|
|
370
378
|
attr_writer :status_callback_method
|
|
371
379
|
|
|
372
|
-
#
|
|
373
|
-
# the
|
|
380
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
381
|
+
# call. When provided, these per-call values override the status callback URL
|
|
382
|
+
# configured on the TeXML application/connection.
|
|
374
383
|
sig { returns(T.nilable(T::Array[String])) }
|
|
375
384
|
attr_reader :status_callbacks
|
|
376
385
|
|
|
@@ -486,11 +495,13 @@ module Telnyx
|
|
|
486
495
|
# containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
487
496
|
# omitted, the display name will be the same as the number in the `From` field.
|
|
488
497
|
caller_id: nil,
|
|
489
|
-
# URL destination for Telnyx to send conversation callback events
|
|
498
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
499
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
490
500
|
conversation_callback: nil,
|
|
491
|
-
# HTTP request type used for `ConversationCallback`.
|
|
501
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
492
502
|
conversation_callback_method: nil,
|
|
493
|
-
#
|
|
503
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
504
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
494
505
|
conversation_callbacks: nil,
|
|
495
506
|
# Custom HTTP headers to be sent with the call. Each header should be an object
|
|
496
507
|
# with 'name' and 'value' properties.
|
|
@@ -540,16 +551,23 @@ module Telnyx
|
|
|
540
551
|
sip_auth_username: nil,
|
|
541
552
|
# Defines the SIP region to be used for the call.
|
|
542
553
|
sip_region: nil,
|
|
543
|
-
# URL destination for Telnyx to send status callback events
|
|
554
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
555
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
556
|
+
# the TeXML application/connection.
|
|
544
557
|
status_callback: nil,
|
|
545
|
-
# The
|
|
546
|
-
# defined when separated by a space. Valid values:
|
|
547
|
-
# completed
|
|
558
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
559
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
560
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
561
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
562
|
+
# events configured on the TeXML application/connection.
|
|
548
563
|
status_callback_event: nil,
|
|
549
|
-
# HTTP request type used for `StatusCallback
|
|
564
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
565
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
566
|
+
# configured on the TeXML application/connection.
|
|
550
567
|
status_callback_method: nil,
|
|
551
|
-
#
|
|
552
|
-
# the
|
|
568
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
569
|
+
# call. When provided, these per-call values override the status callback URL
|
|
570
|
+
# configured on the TeXML application/connection.
|
|
553
571
|
status_callbacks: nil,
|
|
554
572
|
# The maximum duration of the call in seconds. The minimum value is 30 and the
|
|
555
573
|
# maximum value is 14400 (4 hours). Default is 14400 seconds.
|
|
@@ -659,7 +677,7 @@ module Telnyx
|
|
|
659
677
|
end
|
|
660
678
|
end
|
|
661
679
|
|
|
662
|
-
# HTTP request type used for `ConversationCallback`.
|
|
680
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
663
681
|
module ConversationCallbackMethod
|
|
664
682
|
extend Telnyx::Internal::Type::Enum
|
|
665
683
|
|
|
@@ -940,7 +958,9 @@ module Telnyx
|
|
|
940
958
|
end
|
|
941
959
|
end
|
|
942
960
|
|
|
943
|
-
# HTTP request type used for `StatusCallback
|
|
961
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
962
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
963
|
+
# configured on the TeXML application/connection.
|
|
944
964
|
module StatusCallbackMethod
|
|
945
965
|
extend Telnyx::Internal::Type::Enum
|
|
946
966
|
|
|
@@ -1357,32 +1357,32 @@ module Telnyx
|
|
|
1357
1357
|
end
|
|
1358
1358
|
OrInteger = T.type_alias { Integer }
|
|
1359
1359
|
|
|
1360
|
-
|
|
1360
|
+
SAMPLE_RATE_8000 =
|
|
1361
1361
|
T.let(
|
|
1362
1362
|
8000,
|
|
1363
1363
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|
|
1364
1364
|
)
|
|
1365
|
-
|
|
1365
|
+
SAMPLE_RATE_16000 =
|
|
1366
1366
|
T.let(
|
|
1367
1367
|
16_000,
|
|
1368
1368
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|
|
1369
1369
|
)
|
|
1370
|
-
|
|
1370
|
+
SAMPLE_RATE_22050 =
|
|
1371
1371
|
T.let(
|
|
1372
1372
|
22_050,
|
|
1373
1373
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|
|
1374
1374
|
)
|
|
1375
|
-
|
|
1375
|
+
SAMPLE_RATE_24000 =
|
|
1376
1376
|
T.let(
|
|
1377
1377
|
24_000,
|
|
1378
1378
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|
|
1379
1379
|
)
|
|
1380
|
-
|
|
1380
|
+
SAMPLE_RATE_44100 =
|
|
1381
1381
|
T.let(
|
|
1382
1382
|
44_100,
|
|
1383
1383
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|
|
1384
1384
|
)
|
|
1385
|
-
|
|
1385
|
+
SAMPLE_RATE_48000 =
|
|
1386
1386
|
T.let(
|
|
1387
1387
|
48_000,
|
|
1388
1388
|
::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate::TaggedInteger
|